Complete SCUM controlled deployment lifecycle

This commit is contained in:
npc0-hue
2026-07-25 10:13:53 +08:00
parent 6cfd929f7f
commit 15789e15b4
28 changed files with 1349 additions and 123 deletions
+33
View File
@@ -259,6 +259,20 @@ export interface RuntimeInstallPlanResponse {
steps: Array<{ type: string; targetKey: string; packageManager?: string; packageName?: string; version?: string; downloadRef?: string; checksum?: string }>;
}
export interface RuntimeServerDeploymentProfileResponse {
key: string;
version: string;
supportedTargets: Array<{ os: string; arch: string }>;
steamAppId: string;
executableKey: string;
installRootKey: string;
configKey: string;
configFormat: string;
configMappings: Array<{ fieldKey: string; configKey: string; valueType: string; required?: boolean }>;
discoveryMarkers: Array<{ key: string; kind: string; targetKey: string; expected?: string; required?: boolean }>;
verificationChecks: Array<{ key: string; kind: string; targetKey: string; required?: boolean }>;
}
export interface RuntimeLogSourceResponse {
key: string;
kind: string;
@@ -325,6 +339,7 @@ export interface GamePluginRuntimeProfilesResponse {
lifecycleProfiles?: RuntimeLifecycleProfileResponse[];
dependencyProbes?: RuntimeDependencyProbeResponse[];
installPlans?: RuntimeInstallPlanResponse[];
serverDeployments?: RuntimeServerDeploymentProfileResponse[];
logSources?: RuntimeLogSourceResponse[];
logEvents?: RuntimeLogEventResponse[];
transportProfiles?: RuntimeTransportProfileResponse[];
@@ -434,6 +449,23 @@ export interface ServerInstanceResponse {
configUpdatedAt?: string;
createdAt: string;
updatedAt: string;
deploymentProjection?: ServerDeploymentProjectionResponse;
}
export interface ServerDeploymentProjectionResponse {
state?: string;
operation?: string;
templateKey?: string;
templateVersion?: string;
preflightState?: string;
discoveryState?: string;
mappingState?: string;
verificationState?: string;
discoveredFacts?: Record<string, string>;
mappingResults?: Record<string, string>;
verificationResults?: Record<string, string>;
failureCode?: string;
updatedAt?: string;
}
export interface ServerInstanceUpdateRequest {
@@ -494,6 +526,7 @@ export interface ServerDeploymentResponse {
shell?: ServerCommandShell;
revision: number;
updatedAt?: string;
projection?: ServerDeploymentProjectionResponse;
}
export interface RuntimeBindingUpdateRequest {