feat: reveal saved server deployment inputs
This commit is contained in:
@@ -89,6 +89,7 @@ import type {
|
||||
ServerLifecycleCreateRequest,
|
||||
ServerLifecycleResponse,
|
||||
ServerDeploymentRequest,
|
||||
ServerDeploymentRevealResponse,
|
||||
ServerDeploymentResponse,
|
||||
ServerConfigWriteApprovalRequest,
|
||||
ServerConfigWriteDispatchResponse,
|
||||
@@ -188,7 +189,11 @@ export class PlatformApiClient {
|
||||
}
|
||||
|
||||
async getServerDeployment(id: string): Promise<ServerDeploymentResponse> {
|
||||
return this.request<ServerDeploymentResponse>(`/server-instances/${encodeURIComponent(id)}/deployment`);
|
||||
return this.request<ServerDeploymentResponse>(`/server-instances/${encodeURIComponent(id)}/deployment`);
|
||||
}
|
||||
|
||||
async revealServerDeployment(id: string): Promise<ServerDeploymentRevealResponse> {
|
||||
return this.request<ServerDeploymentRevealResponse>(`/server-instances/${encodeURIComponent(id)}/deployment/reveal`);
|
||||
}
|
||||
|
||||
async updateServerDeployment(id: string, request: ServerDeploymentRequest): Promise<ServerDeploymentResponse> {
|
||||
|
||||
@@ -528,7 +528,25 @@ export interface ServerDeploymentResponse {
|
||||
shell?: ServerCommandShell;
|
||||
revision: number;
|
||||
updatedAt?: string;
|
||||
projection?: ServerDeploymentProjectionResponse;
|
||||
projection?: ServerDeploymentProjectionResponse;
|
||||
latestDispatch?: ServerDeploymentDispatchEvidenceResponse;
|
||||
}
|
||||
|
||||
export interface ServerDeploymentRevealResponse {
|
||||
serverInstanceId: string;
|
||||
serverRoot: string;
|
||||
workingDirectory: string;
|
||||
installCommand: string;
|
||||
startCommand: string;
|
||||
stopCommand: string;
|
||||
statusCommand: string;
|
||||
}
|
||||
|
||||
export interface ServerDeploymentDispatchEvidenceResponse {
|
||||
jobId: string;
|
||||
jobState: JobState;
|
||||
deploymentRevision: number;
|
||||
deploymentDefinitionIncluded: boolean;
|
||||
}
|
||||
|
||||
export interface RuntimeBindingUpdateRequest {
|
||||
|
||||
Reference in New Issue
Block a user