Publish curated Unraid-AppOps-Gateway source from ba66029223865607deddc234e283c11127324eb8
This commit is contained in:
1 parent
820244dbb3
commit
8dd4b40252
52 files changed
+11814
-288
No files matched your search
+14
-1
@@ -4,7 +4,7 @@ import { AISummary, AIRecommendation, AIChatMessage, AIAutopilotRule, AITool } f
|
||||
import { toIsoString } from '@/lib/backendDateTime';
|
||||
import type { AiSecurityFinding, AiSecurityRecommendation, AiSecurityReviewResult, AiSecurityScope, AiSecuritySummary, NotificationChannel, NotificationEvaluationResult, NotificationEvent, NotificationRule, NotificationSummary, RemediationApprovalProposal, RemediationDryRunResult, RemediationPlan, RemediationPlanCollection, SafetyDashboard, SafetyFinding, SafetyRecommendation, SafetyScoreBreakdown, SafetySection, SafetySummary, UnraidDisksResponse, UnraidDockerResponse, UnraidSharesResponse, UnraidVmCapabilitiesResponse, UnraidVmsResponse } from '../types/appops';
|
||||
import type { GiteaActionsStatus, IntegrationStatus, GatewayUser, IdentityProvider, PermissionDefinition, UserAccessUpdate, UserAuthSession, RagQueryResult, RagStatus, RunnerFleetStatus } from '../types/appops';
|
||||
import type { DeliveryStatus, DeploymentJob, Enrollment, EnrollmentCapabilities, EnrollmentStorageRootSelection, EnrollmentTrustStatus, WorkMeshPromotion } from '../types/appops';
|
||||
import type { DeliveryStatus, DeploymentJob, Enrollment, EnrollmentCapabilities, EnrollmentStorageRootSelection, EnrollmentTrustStatus, ForgeRouteStageResult, WorkMeshPromotion } from '../types/appops';
|
||||
import type { ExposurePreferences, ManagedAiConfig, ManagedAiConfigUpdate, ManagedAiStatus, ManagedAiInference } from '../types/appops';
|
||||
|
||||
type HealthStatus = {
|
||||
@@ -371,6 +371,19 @@ export const createLiveClient = () => ({
|
||||
});
|
||||
},
|
||||
async getDeliveryStatus(): Promise<DeliveryStatus> { return get<DeliveryStatus>('/api/deployments/delivery-status', defaultConfig); },
|
||||
async stageForgeRoute(jobId: string, idempotencyKey: string): Promise<ForgeRouteStageResult> {
|
||||
return request<ForgeRouteStageResult>(
|
||||
`/api/deployments/forge-bootstrap/first-install/${encodeURIComponent(jobId)}/route`,
|
||||
defaultConfig,
|
||||
{ method: 'POST', headers: { 'Idempotency-Key': idempotencyKey } },
|
||||
);
|
||||
},
|
||||
async getForgeRouteStage(jobId: string): Promise<ForgeRouteStageResult> {
|
||||
return get<ForgeRouteStageResult>(
|
||||
`/api/deployments/forge-bootstrap/first-install/${encodeURIComponent(jobId)}/route`,
|
||||
defaultConfig,
|
||||
);
|
||||
},
|
||||
async getEnrollmentCapabilities(): Promise<EnrollmentCapabilities> { return get<EnrollmentCapabilities>('/api/enrollments/capabilities', defaultConfig); },
|
||||
async getEnrollmentTrustStatus(): Promise<EnrollmentTrustStatus> { return get<EnrollmentTrustStatus>('/api/enrollments/trust', defaultConfig); },
|
||||
async updateEnrollmentStorageRoot(payload: EnrollmentStorageRootSelection): Promise<EnrollmentTrustStatus> {
|
||||
|
||||
@@ -32,6 +32,18 @@ export interface DeploymentJob {
|
||||
idempotentReplay?: boolean;
|
||||
}
|
||||
|
||||
export interface ForgeRouteStageResult {
|
||||
success: boolean;
|
||||
status: 'host_staged_disabled' | 'blocked' | 'conflict' | 'failed' | 'outcome_unknown' | 'not_found';
|
||||
message: string;
|
||||
target: 'itworx-forge';
|
||||
jobId: string;
|
||||
hostname: 'forge.example.com';
|
||||
upstream: 'http://itworx-forge:8080';
|
||||
routeState: 'host_staged_disabled' | 'not_routed';
|
||||
routed: false;
|
||||
}
|
||||
|
||||
export interface WorkMeshPromotion {
|
||||
promotionId: string;
|
||||
jobId: string;
|
||||
|
||||
Reference in new issue
Block a user