sandbox0 0.10.3 → 0.10.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +134 -0
- package/dist/apispec/src/apis/FilesApi.d.ts +14 -10
- package/dist/apispec/src/apis/FilesApi.d.ts.map +1 -1
- package/dist/apispec/src/apis/FilesApi.js +14 -10
- package/dist/apispec/src/apis/SandboxRootfsApi.d.ts +96 -5
- package/dist/apispec/src/apis/SandboxRootfsApi.d.ts.map +1 -1
- package/dist/apispec/src/apis/SandboxRootfsApi.js +291 -5
- package/dist/apispec/src/apis/SandboxesApi.d.ts +345 -6
- package/dist/apispec/src/apis/SandboxesApi.d.ts.map +1 -1
- package/dist/apispec/src/apis/SandboxesApi.js +1017 -7
- package/dist/apispec/src/apis/SessionsApi.d.ts +51 -1
- package/dist/apispec/src/apis/SessionsApi.d.ts.map +1 -1
- package/dist/apispec/src/apis/SessionsApi.js +159 -1
- package/dist/apispec/src/models/CaptureSandboxRootFSSnapshotRequest.d.ts +51 -0
- package/dist/apispec/src/models/CaptureSandboxRootFSSnapshotRequest.d.ts.map +1 -0
- package/dist/apispec/src/models/CaptureSandboxRootFSSnapshotRequest.js +49 -0
- package/dist/apispec/src/models/ConditionalExecutionSessionRequest.d.ts +46 -0
- package/dist/apispec/src/models/ConditionalExecutionSessionRequest.d.ts.map +1 -0
- package/dist/apispec/src/models/ConditionalExecutionSessionRequest.js +52 -0
- package/dist/apispec/src/models/ContainerSpec.d.ts +1 -2
- package/dist/apispec/src/models/ContainerSpec.d.ts.map +1 -1
- package/dist/apispec/src/models/ContainerSpec.js +0 -1
- package/dist/apispec/src/models/ForkSandboxConfig.d.ts +6 -0
- package/dist/apispec/src/models/ForkSandboxConfig.d.ts.map +1 -1
- package/dist/apispec/src/models/ForkSandboxConfig.js +2 -0
- package/dist/apispec/src/models/ForkSandboxRequest.d.ts +6 -0
- package/dist/apispec/src/models/ForkSandboxRequest.d.ts.map +1 -1
- package/dist/apispec/src/models/ForkSandboxRequest.js +2 -0
- package/dist/apispec/src/models/ManagedFileReadResponse.d.ts +64 -0
- package/dist/apispec/src/models/ManagedFileReadResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/ManagedFileReadResponse.js +65 -0
- package/dist/apispec/src/models/ManagedFileWriteRequest.d.ts +39 -0
- package/dist/apispec/src/models/ManagedFileWriteRequest.d.ts.map +1 -0
- package/dist/apispec/src/models/ManagedFileWriteRequest.js +47 -0
- package/dist/apispec/src/models/ManagedFilesState.d.ts +58 -0
- package/dist/apispec/src/models/ManagedFilesState.d.ts.map +1 -0
- package/dist/apispec/src/models/ManagedFilesState.js +61 -0
- package/dist/apispec/src/models/PauseSandboxResponse.d.ts +12 -0
- package/dist/apispec/src/models/PauseSandboxResponse.d.ts.map +1 -1
- package/dist/apispec/src/models/PauseSandboxResponse.js +4 -0
- package/dist/apispec/src/models/QuotaDimension.d.ts +6 -1
- package/dist/apispec/src/models/QuotaDimension.d.ts.map +1 -1
- package/dist/apispec/src/models/QuotaDimension.js +6 -1
- package/dist/apispec/src/models/ResourceQuota.d.ts +1 -1
- package/dist/apispec/src/models/ResumeSandboxResponse.d.ts +25 -1
- package/dist/apispec/src/models/ResumeSandboxResponse.d.ts.map +1 -1
- package/dist/apispec/src/models/ResumeSandboxResponse.js +8 -0
- package/dist/apispec/src/models/SandboxExecutionStateRequest.d.ts +14 -2
- package/dist/apispec/src/models/SandboxExecutionStateRequest.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxExecutionStateRequest.js +4 -0
- package/dist/apispec/src/models/SandboxHealth.d.ts +99 -0
- package/dist/apispec/src/models/SandboxHealth.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxHealth.js +90 -0
- package/dist/apispec/src/models/SandboxHealthObservation.d.ts +109 -0
- package/dist/apispec/src/models/SandboxHealthObservation.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxHealthObservation.js +110 -0
- package/dist/apispec/src/models/SandboxMemoryOperation.d.ts +115 -0
- package/dist/apispec/src/models/SandboxMemoryOperation.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxMemoryOperation.js +100 -0
- package/dist/apispec/src/models/SandboxMemoryRestoration.d.ts +64 -0
- package/dist/apispec/src/models/SandboxMemoryRestoration.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxMemoryRestoration.js +64 -0
- package/dist/apispec/src/models/SandboxMemoryRestorationStep.d.ts +63 -0
- package/dist/apispec/src/models/SandboxMemoryRestorationStep.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxMemoryRestorationStep.js +63 -0
- package/dist/apispec/src/models/SandboxPauseRequest.d.ts +39 -0
- package/dist/apispec/src/models/SandboxPauseRequest.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxPauseRequest.js +43 -0
- package/dist/apispec/src/models/SandboxRestartFinalCapture.d.ts +79 -0
- package/dist/apispec/src/models/SandboxRestartFinalCapture.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxRestartFinalCapture.js +70 -0
- package/dist/apispec/src/models/SandboxRestartFinalCaptureAcknowledgement.d.ts +39 -0
- package/dist/apispec/src/models/SandboxRestartFinalCaptureAcknowledgement.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxRestartFinalCaptureAcknowledgement.js +47 -0
- package/dist/apispec/src/models/SandboxRestartFinalCaptureFile.d.ts +69 -0
- package/dist/apispec/src/models/SandboxRestartFinalCaptureFile.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxRestartFinalCaptureFile.js +67 -0
- package/dist/apispec/src/models/SandboxRestartOperation.d.ts +115 -0
- package/dist/apispec/src/models/SandboxRestartOperation.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxRestartOperation.js +95 -0
- package/dist/apispec/src/models/SandboxRestartRequest.d.ts +33 -0
- package/dist/apispec/src/models/SandboxRestartRequest.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxRestartRequest.js +43 -0
- package/dist/apispec/src/models/SandboxRestartRetryObservation.d.ts +83 -0
- package/dist/apispec/src/models/SandboxRestartRetryObservation.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxRestartRetryObservation.js +75 -0
- package/dist/apispec/src/models/SandboxRootFSForkLaunch.d.ts +123 -0
- package/dist/apispec/src/models/SandboxRootFSForkLaunch.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxRootFSForkLaunch.js +104 -0
- package/dist/apispec/src/models/SandboxRootFSForkLaunchRequest.d.ts +51 -0
- package/dist/apispec/src/models/SandboxRootFSForkLaunchRequest.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxRootFSForkLaunchRequest.js +55 -0
- package/dist/apispec/src/models/SandboxRootFSForkObservation.d.ts +129 -0
- package/dist/apispec/src/models/SandboxRootFSForkObservation.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxRootFSForkObservation.js +107 -0
- package/dist/apispec/src/models/SandboxRootFSIdentity.d.ts +138 -0
- package/dist/apispec/src/models/SandboxRootFSIdentity.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxRootFSIdentity.js +111 -0
- package/dist/apispec/src/models/SandboxRootFSSnapshot.d.ts +6 -0
- package/dist/apispec/src/models/SandboxRootFSSnapshot.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxRootFSSnapshot.js +2 -0
- package/dist/apispec/src/models/SandboxRuntimeHealth.d.ts +40 -0
- package/dist/apispec/src/models/SandboxRuntimeHealth.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxRuntimeHealth.js +48 -0
- package/dist/apispec/src/models/SandboxSnapshotRestoreOperation.d.ts +139 -0
- package/dist/apispec/src/models/SandboxSnapshotRestoreOperation.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxSnapshotRestoreOperation.js +109 -0
- package/dist/apispec/src/models/SandboxSnapshotRestoreRequest.d.ts +51 -0
- package/dist/apispec/src/models/SandboxSnapshotRestoreRequest.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxSnapshotRestoreRequest.js +55 -0
- package/dist/apispec/src/models/SandboxStorageHealth.d.ts +46 -0
- package/dist/apispec/src/models/SandboxStorageHealth.d.ts.map +1 -0
- package/dist/apispec/src/models/SandboxStorageHealth.js +52 -0
- package/dist/apispec/src/models/SandboxUpdateConfig.d.ts +15 -3
- package/dist/apispec/src/models/SandboxUpdateConfig.d.ts.map +1 -1
- package/dist/apispec/src/models/SandboxUpdateConfig.js +3 -0
- package/dist/apispec/src/models/SuccessManagedFileReadResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessManagedFileReadResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessManagedFileReadResponse.js +48 -0
- package/dist/apispec/src/models/SuccessManagedFilesStateResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessManagedFilesStateResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessManagedFilesStateResponse.js +48 -0
- package/dist/apispec/src/models/SuccessSandboxHealthResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessSandboxHealthResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessSandboxHealthResponse.js +48 -0
- package/dist/apispec/src/models/SuccessSandboxMemoryOperationResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessSandboxMemoryOperationResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessSandboxMemoryOperationResponse.js +48 -0
- package/dist/apispec/src/models/SuccessSandboxMemoryRestorationResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessSandboxMemoryRestorationResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessSandboxMemoryRestorationResponse.js +48 -0
- package/dist/apispec/src/models/SuccessSandboxRestartFinalCaptureFileResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessSandboxRestartFinalCaptureFileResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessSandboxRestartFinalCaptureFileResponse.js +48 -0
- package/dist/apispec/src/models/SuccessSandboxRestartFinalCaptureResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessSandboxRestartFinalCaptureResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessSandboxRestartFinalCaptureResponse.js +48 -0
- package/dist/apispec/src/models/SuccessSandboxRestartOperationResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessSandboxRestartOperationResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessSandboxRestartOperationResponse.js +48 -0
- package/dist/apispec/src/models/SuccessSandboxRootFSForkLaunchResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessSandboxRootFSForkLaunchResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessSandboxRootFSForkLaunchResponse.js +48 -0
- package/dist/apispec/src/models/SuccessSandboxRootFSForkObservationResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessSandboxRootFSForkObservationResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessSandboxRootFSForkObservationResponse.js +48 -0
- package/dist/apispec/src/models/SuccessSandboxRootFSIdentityResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessSandboxRootFSIdentityResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessSandboxRootFSIdentityResponse.js +48 -0
- package/dist/apispec/src/models/SuccessSandboxSnapshotRestoreOperationResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessSandboxSnapshotRestoreOperationResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessSandboxSnapshotRestoreOperationResponse.js +48 -0
- package/dist/apispec/src/models/index.d.ts +37 -0
- package/dist/apispec/src/models/index.d.ts.map +1 -1
- package/dist/apispec/src/models/index.js +37 -0
- package/dist/fork_launch.d.ts +15 -0
- package/dist/fork_launch.d.ts.map +1 -0
- package/dist/fork_launch.js +38 -0
- package/dist/health.d.ts +4 -0
- package/dist/health.d.ts.map +1 -0
- package/dist/health.js +46 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/memory_operation.d.ts +12 -0
- package/dist/memory_operation.d.ts.map +1 -0
- package/dist/memory_operation.js +44 -0
- package/dist/memory_restoration.d.ts +5 -0
- package/dist/memory_restoration.d.ts.map +1 -0
- package/dist/memory_restoration.js +29 -0
- package/dist/models.d.ts +2 -0
- package/dist/models.d.ts.map +1 -1
- package/dist/resources/sandboxes.d.ts +73 -1
- package/dist/resources/sandboxes.d.ts.map +1 -1
- package/dist/resources/sandboxes.js +336 -3
- package/dist/restart_final_capture.d.ts +10 -0
- package/dist/restart_final_capture.d.ts.map +1 -0
- package/dist/restart_final_capture.js +52 -0
- package/dist/sandbox_managed_files.d.ts +34 -0
- package/dist/sandbox_managed_files.d.ts.map +1 -0
- package/dist/sandbox_managed_files.js +96 -0
- package/dist/sandbox_sessions.d.ts +5 -0
- package/dist/sandbox_sessions.d.ts.map +1 -1
- package/dist/sandbox_sessions.js +103 -1
- package/dist/ws_client.d.ts +8 -0
- package/dist/ws_client.d.ts.map +1 -1
- package/dist/ws_client.js +20 -2
- package/package.json +2 -2
|
@@ -10,7 +10,18 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
|
-
import type { CreateExecutionSessionAttemptRequest, ExecutionSessionDesiredStateRequest, ExecutionSessionInputRequest, ExecutionSessionSignalRequest, ExecutionSessionSpec, ExecutionSessionTerminalResizeRequest, SuccessAcceptedResponse, SuccessDeletedResponse, SuccessExecutionSessionEventPageResponse, SuccessExecutionSessionInputResponse, SuccessExecutionSessionListResponse, SuccessExecutionSessionResponse, SuccessResizedResponse } from '../models/index.js';
|
|
13
|
+
import type { ConditionalExecutionSessionRequest, CreateExecutionSessionAttemptRequest, ExecutionSessionDesiredStateRequest, ExecutionSessionInputRequest, ExecutionSessionSignalRequest, ExecutionSessionSpec, ExecutionSessionTerminalResizeRequest, SuccessAcceptedResponse, SuccessDeletedResponse, SuccessExecutionSessionEventPageResponse, SuccessExecutionSessionInputResponse, SuccessExecutionSessionListResponse, SuccessExecutionSessionResponse, SuccessResizedResponse } from '../models/index.js';
|
|
14
|
+
export interface ApiV1SandboxesIdSessionsConditionalLookupGetRequest {
|
|
15
|
+
id: string;
|
|
16
|
+
runtimeGeneration: number;
|
|
17
|
+
idempotencyKey: string;
|
|
18
|
+
creationRuntimeGeneration?: number;
|
|
19
|
+
}
|
|
20
|
+
export interface ApiV1SandboxesIdSessionsConditionalPostRequest {
|
|
21
|
+
id: string;
|
|
22
|
+
idempotencyKey: string;
|
|
23
|
+
conditionalExecutionSessionRequest: ConditionalExecutionSessionRequest;
|
|
24
|
+
}
|
|
14
25
|
export interface ApiV1SandboxesIdSessionsGetRequest {
|
|
15
26
|
id: string;
|
|
16
27
|
}
|
|
@@ -24,6 +35,15 @@ export interface ApiV1SandboxesIdSessionsSessionIdAttemptsPostRequest {
|
|
|
24
35
|
sessionId: string;
|
|
25
36
|
createExecutionSessionAttemptRequest?: CreateExecutionSessionAttemptRequest;
|
|
26
37
|
}
|
|
38
|
+
export interface ApiV1SandboxesIdSessionsSessionIdConditionalWsGetRequest {
|
|
39
|
+
id: string;
|
|
40
|
+
sessionId: string;
|
|
41
|
+
idempotencyKey: string;
|
|
42
|
+
runtimeGeneration: number;
|
|
43
|
+
attemptId: string;
|
|
44
|
+
creationRuntimeGeneration?: number;
|
|
45
|
+
after?: number;
|
|
46
|
+
}
|
|
27
47
|
export interface ApiV1SandboxesIdSessionsSessionIdDeleteRequest {
|
|
28
48
|
id: string;
|
|
29
49
|
sessionId: string;
|
|
@@ -78,6 +98,26 @@ export interface ApiV1SandboxesIdSessionsSessionIdWsGetRequest {
|
|
|
78
98
|
*
|
|
79
99
|
*/
|
|
80
100
|
export declare class SessionsApi extends runtime.BaseAPI {
|
|
101
|
+
/**
|
|
102
|
+
* Read-only receipt lookup in an exact currently running generation. Never auto-resumes, creates a session, starts an attempt or repairs state. Both the gateway and supervisor verify the sandbox and runtime generation. Only conditional creations are eligible. A session_not_found response means that key was absent at observation time, not permission to create or proof that an earlier request cannot still finish. Other 404 replies may indicate unsupported servers. Clients must not fall back to ordinary queries or creation. The returned receipt is not lifecycle/storage authority, current credential admission, or permission to attach later. For a memory-restored original attempt, explicitly supply an earlier creation_runtime_generation. Omission retains same-generation semantics. The supervisor requires the exact original conditional creation and a still-running attempt from that origin in the requested current runtime. This does not verify external memory lineage or credential qualification; applications must verify those independently before adoption. Never use failure as permission to create a new attempt or fall back to cold restart.
|
|
103
|
+
* Find a conditional session by its original creation key
|
|
104
|
+
*/
|
|
105
|
+
apiV1SandboxesIdSessionsConditionalLookupGetRaw(requestParameters: ApiV1SandboxesIdSessionsConditionalLookupGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessExecutionSessionResponse>>;
|
|
106
|
+
/**
|
|
107
|
+
* Read-only receipt lookup in an exact currently running generation. Never auto-resumes, creates a session, starts an attempt or repairs state. Both the gateway and supervisor verify the sandbox and runtime generation. Only conditional creations are eligible. A session_not_found response means that key was absent at observation time, not permission to create or proof that an earlier request cannot still finish. Other 404 replies may indicate unsupported servers. Clients must not fall back to ordinary queries or creation. The returned receipt is not lifecycle/storage authority, current credential admission, or permission to attach later. For a memory-restored original attempt, explicitly supply an earlier creation_runtime_generation. Omission retains same-generation semantics. The supervisor requires the exact original conditional creation and a still-running attempt from that origin in the requested current runtime. This does not verify external memory lineage or credential qualification; applications must verify those independently before adoption. Never use failure as permission to create a new attempt or fall back to cold restart.
|
|
108
|
+
* Find a conditional session by its original creation key
|
|
109
|
+
*/
|
|
110
|
+
apiV1SandboxesIdSessionsConditionalLookupGet(requestParameters: ApiV1SandboxesIdSessionsConditionalLookupGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessExecutionSessionResponse>;
|
|
111
|
+
/**
|
|
112
|
+
* Requires a currently running sandbox with the exact sandbox identity and runtime generation. Never auto-resumes. The gateway checks regional state and the supervisor checks identity atomically through initial process startup. A stale idempotent retry fails after runtime replacement. This condition governs creation; the session lifecycle policy still governs later attempts and recovery. Older servers return an unsupported route; clients must not fall back to unconditional creation.
|
|
113
|
+
* Create an execution session in an exact runtime generation
|
|
114
|
+
*/
|
|
115
|
+
apiV1SandboxesIdSessionsConditionalPostRaw(requestParameters: ApiV1SandboxesIdSessionsConditionalPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessExecutionSessionResponse>>;
|
|
116
|
+
/**
|
|
117
|
+
* Requires a currently running sandbox with the exact sandbox identity and runtime generation. Never auto-resumes. The gateway checks regional state and the supervisor checks identity atomically through initial process startup. A stale idempotent retry fails after runtime replacement. This condition governs creation; the session lifecycle policy still governs later attempts and recovery. Older servers return an unsupported route; clients must not fall back to unconditional creation.
|
|
118
|
+
* Create an execution session in an exact runtime generation
|
|
119
|
+
*/
|
|
120
|
+
apiV1SandboxesIdSessionsConditionalPost(requestParameters: ApiV1SandboxesIdSessionsConditionalPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessExecutionSessionResponse>;
|
|
81
121
|
/**
|
|
82
122
|
* Lists durable process-backed sessions in the sandbox.
|
|
83
123
|
* List execution sessions
|
|
@@ -108,6 +148,16 @@ export declare class SessionsApi extends runtime.BaseAPI {
|
|
|
108
148
|
* Create a new execution session attempt
|
|
109
149
|
*/
|
|
110
150
|
apiV1SandboxesIdSessionsSessionIdAttemptsPost(requestParameters: ApiV1SandboxesIdSessionsSessionIdAttemptsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessExecutionSessionResponse>;
|
|
151
|
+
/**
|
|
152
|
+
* Requires the original conditional creation key, exact runtime generation and attempt. Never resumes, creates or falls back to an ordinary attachment. A generation change revokes the connection; every control message rechecks identity. Replay excludes other attempts. Closing the socket does not stop the process or close its input. This is process control, not lifecycle, storage or credential admission. For a memory-restored original attempt, explicitly supply an earlier creation_runtime_generation. Omission retains same-generation semantics. The supervisor requires the exact original conditional creation and a still-running attempt from that origin in the requested current runtime. This does not verify external memory lineage or credential qualification; applications must verify those independently before adoption. Never use failure as permission to create a new attempt or fall back to cold restart.
|
|
153
|
+
* Attach to one conditional execution session attempt
|
|
154
|
+
*/
|
|
155
|
+
apiV1SandboxesIdSessionsSessionIdConditionalWsGetRaw(requestParameters: ApiV1SandboxesIdSessionsSessionIdConditionalWsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
156
|
+
/**
|
|
157
|
+
* Requires the original conditional creation key, exact runtime generation and attempt. Never resumes, creates or falls back to an ordinary attachment. A generation change revokes the connection; every control message rechecks identity. Replay excludes other attempts. Closing the socket does not stop the process or close its input. This is process control, not lifecycle, storage or credential admission. For a memory-restored original attempt, explicitly supply an earlier creation_runtime_generation. Omission retains same-generation semantics. The supervisor requires the exact original conditional creation and a still-running attempt from that origin in the requested current runtime. This does not verify external memory lineage or credential qualification; applications must verify those independently before adoption. Never use failure as permission to create a new attempt or fall back to cold restart.
|
|
158
|
+
* Attach to one conditional execution session attempt
|
|
159
|
+
*/
|
|
160
|
+
apiV1SandboxesIdSessionsSessionIdConditionalWsGet(requestParameters: ApiV1SandboxesIdSessionsSessionIdConditionalWsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
111
161
|
/**
|
|
112
162
|
* Delete an execution session
|
|
113
163
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionsApi.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/apis/SessionsApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,oCAAoC,EAEpC,mCAAmC,EACnC,4BAA4B,EAC5B,6BAA6B,EAC7B,oBAAoB,EACpB,qCAAqC,EACrC,uBAAuB,EACvB,sBAAsB,EACtB,wCAAwC,EACxC,oCAAoC,EACpC,mCAAmC,EACnC,+BAA+B,EAC/B,sBAAsB,EACvB,MAAM,iBAAiB,CAAC;
|
|
1
|
+
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,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAKvN;;;OAGG;IACG,yCAAyC,CAAC,iBAAiB,EAAE,6CAA6C,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IA8CjN;;;OAGG;IACG,sCAAsC,CAAC,iBAAiB,EAAE,6CAA6C,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC;CAI5L"}
|
|
@@ -12,11 +12,107 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime.js';
|
|
15
|
-
import { CreateExecutionSessionAttemptRequestToJSON, ExecutionSessionDesiredStateRequestToJSON, ExecutionSessionInputRequestToJSON, ExecutionSessionSignalRequestToJSON, ExecutionSessionSpecToJSON, ExecutionSessionTerminalResizeRequestToJSON, SuccessAcceptedResponseFromJSON, SuccessDeletedResponseFromJSON, SuccessExecutionSessionEventPageResponseFromJSON, SuccessExecutionSessionInputResponseFromJSON, SuccessExecutionSessionListResponseFromJSON, SuccessExecutionSessionResponseFromJSON, SuccessResizedResponseFromJSON, } from '../models/index.js';
|
|
15
|
+
import { ConditionalExecutionSessionRequestToJSON, CreateExecutionSessionAttemptRequestToJSON, ExecutionSessionDesiredStateRequestToJSON, ExecutionSessionInputRequestToJSON, ExecutionSessionSignalRequestToJSON, ExecutionSessionSpecToJSON, ExecutionSessionTerminalResizeRequestToJSON, SuccessAcceptedResponseFromJSON, SuccessDeletedResponseFromJSON, SuccessExecutionSessionEventPageResponseFromJSON, SuccessExecutionSessionInputResponseFromJSON, SuccessExecutionSessionListResponseFromJSON, SuccessExecutionSessionResponseFromJSON, SuccessResizedResponseFromJSON, } from '../models/index.js';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
19
19
|
export class SessionsApi extends runtime.BaseAPI {
|
|
20
|
+
/**
|
|
21
|
+
* Read-only receipt lookup in an exact currently running generation. Never auto-resumes, creates a session, starts an attempt or repairs state. Both the gateway and supervisor verify the sandbox and runtime generation. Only conditional creations are eligible. A session_not_found response means that key was absent at observation time, not permission to create or proof that an earlier request cannot still finish. Other 404 replies may indicate unsupported servers. Clients must not fall back to ordinary queries or creation. The returned receipt is not lifecycle/storage authority, current credential admission, or permission to attach later. For a memory-restored original attempt, explicitly supply an earlier creation_runtime_generation. Omission retains same-generation semantics. The supervisor requires the exact original conditional creation and a still-running attempt from that origin in the requested current runtime. This does not verify external memory lineage or credential qualification; applications must verify those independently before adoption. Never use failure as permission to create a new attempt or fall back to cold restart.
|
|
22
|
+
* Find a conditional session by its original creation key
|
|
23
|
+
*/
|
|
24
|
+
async apiV1SandboxesIdSessionsConditionalLookupGetRaw(requestParameters, initOverrides) {
|
|
25
|
+
if (requestParameters['id'] == null) {
|
|
26
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxesIdSessionsConditionalLookupGet().');
|
|
27
|
+
}
|
|
28
|
+
if (requestParameters['runtimeGeneration'] == null) {
|
|
29
|
+
throw new runtime.RequiredError('runtimeGeneration', 'Required parameter "runtimeGeneration" was null or undefined when calling apiV1SandboxesIdSessionsConditionalLookupGet().');
|
|
30
|
+
}
|
|
31
|
+
if (requestParameters['idempotencyKey'] == null) {
|
|
32
|
+
throw new runtime.RequiredError('idempotencyKey', 'Required parameter "idempotencyKey" was null or undefined when calling apiV1SandboxesIdSessionsConditionalLookupGet().');
|
|
33
|
+
}
|
|
34
|
+
const queryParameters = {};
|
|
35
|
+
if (requestParameters['creationRuntimeGeneration'] != null) {
|
|
36
|
+
queryParameters['creation_runtime_generation'] = requestParameters['creationRuntimeGeneration'];
|
|
37
|
+
}
|
|
38
|
+
if (requestParameters['runtimeGeneration'] != null) {
|
|
39
|
+
queryParameters['runtime_generation'] = requestParameters['runtimeGeneration'];
|
|
40
|
+
}
|
|
41
|
+
const headerParameters = {};
|
|
42
|
+
if (requestParameters['idempotencyKey'] != null) {
|
|
43
|
+
headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
|
|
44
|
+
}
|
|
45
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
46
|
+
const token = this.configuration.accessToken;
|
|
47
|
+
const tokenString = await token("bearerAuth", []);
|
|
48
|
+
if (tokenString) {
|
|
49
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
let urlPath = `/api/v1/sandboxes/{id}/sessions/conditional/lookup`;
|
|
53
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
54
|
+
const response = await this.request({
|
|
55
|
+
path: urlPath,
|
|
56
|
+
method: 'GET',
|
|
57
|
+
headers: headerParameters,
|
|
58
|
+
query: queryParameters,
|
|
59
|
+
}, initOverrides);
|
|
60
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessExecutionSessionResponseFromJSON(jsonValue));
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Read-only receipt lookup in an exact currently running generation. Never auto-resumes, creates a session, starts an attempt or repairs state. Both the gateway and supervisor verify the sandbox and runtime generation. Only conditional creations are eligible. A session_not_found response means that key was absent at observation time, not permission to create or proof that an earlier request cannot still finish. Other 404 replies may indicate unsupported servers. Clients must not fall back to ordinary queries or creation. The returned receipt is not lifecycle/storage authority, current credential admission, or permission to attach later. For a memory-restored original attempt, explicitly supply an earlier creation_runtime_generation. Omission retains same-generation semantics. The supervisor requires the exact original conditional creation and a still-running attempt from that origin in the requested current runtime. This does not verify external memory lineage or credential qualification; applications must verify those independently before adoption. Never use failure as permission to create a new attempt or fall back to cold restart.
|
|
64
|
+
* Find a conditional session by its original creation key
|
|
65
|
+
*/
|
|
66
|
+
async apiV1SandboxesIdSessionsConditionalLookupGet(requestParameters, initOverrides) {
|
|
67
|
+
const response = await this.apiV1SandboxesIdSessionsConditionalLookupGetRaw(requestParameters, initOverrides);
|
|
68
|
+
return await response.value();
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Requires a currently running sandbox with the exact sandbox identity and runtime generation. Never auto-resumes. The gateway checks regional state and the supervisor checks identity atomically through initial process startup. A stale idempotent retry fails after runtime replacement. This condition governs creation; the session lifecycle policy still governs later attempts and recovery. Older servers return an unsupported route; clients must not fall back to unconditional creation.
|
|
72
|
+
* Create an execution session in an exact runtime generation
|
|
73
|
+
*/
|
|
74
|
+
async apiV1SandboxesIdSessionsConditionalPostRaw(requestParameters, initOverrides) {
|
|
75
|
+
if (requestParameters['id'] == null) {
|
|
76
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxesIdSessionsConditionalPost().');
|
|
77
|
+
}
|
|
78
|
+
if (requestParameters['idempotencyKey'] == null) {
|
|
79
|
+
throw new runtime.RequiredError('idempotencyKey', 'Required parameter "idempotencyKey" was null or undefined when calling apiV1SandboxesIdSessionsConditionalPost().');
|
|
80
|
+
}
|
|
81
|
+
if (requestParameters['conditionalExecutionSessionRequest'] == null) {
|
|
82
|
+
throw new runtime.RequiredError('conditionalExecutionSessionRequest', 'Required parameter "conditionalExecutionSessionRequest" was null or undefined when calling apiV1SandboxesIdSessionsConditionalPost().');
|
|
83
|
+
}
|
|
84
|
+
const queryParameters = {};
|
|
85
|
+
const headerParameters = {};
|
|
86
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
87
|
+
if (requestParameters['idempotencyKey'] != null) {
|
|
88
|
+
headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
|
|
89
|
+
}
|
|
90
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
91
|
+
const token = this.configuration.accessToken;
|
|
92
|
+
const tokenString = await token("bearerAuth", []);
|
|
93
|
+
if (tokenString) {
|
|
94
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
let urlPath = `/api/v1/sandboxes/{id}/sessions/conditional`;
|
|
98
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
99
|
+
const response = await this.request({
|
|
100
|
+
path: urlPath,
|
|
101
|
+
method: 'POST',
|
|
102
|
+
headers: headerParameters,
|
|
103
|
+
query: queryParameters,
|
|
104
|
+
body: ConditionalExecutionSessionRequestToJSON(requestParameters['conditionalExecutionSessionRequest']),
|
|
105
|
+
}, initOverrides);
|
|
106
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessExecutionSessionResponseFromJSON(jsonValue));
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Requires a currently running sandbox with the exact sandbox identity and runtime generation. Never auto-resumes. The gateway checks regional state and the supervisor checks identity atomically through initial process startup. A stale idempotent retry fails after runtime replacement. This condition governs creation; the session lifecycle policy still governs later attempts and recovery. Older servers return an unsupported route; clients must not fall back to unconditional creation.
|
|
110
|
+
* Create an execution session in an exact runtime generation
|
|
111
|
+
*/
|
|
112
|
+
async apiV1SandboxesIdSessionsConditionalPost(requestParameters, initOverrides) {
|
|
113
|
+
const response = await this.apiV1SandboxesIdSessionsConditionalPostRaw(requestParameters, initOverrides);
|
|
114
|
+
return await response.value();
|
|
115
|
+
}
|
|
20
116
|
/**
|
|
21
117
|
* Lists durable process-backed sessions in the sandbox.
|
|
22
118
|
* List execution sessions
|
|
@@ -136,6 +232,68 @@ export class SessionsApi extends runtime.BaseAPI {
|
|
|
136
232
|
const response = await this.apiV1SandboxesIdSessionsSessionIdAttemptsPostRaw(requestParameters, initOverrides);
|
|
137
233
|
return await response.value();
|
|
138
234
|
}
|
|
235
|
+
/**
|
|
236
|
+
* Requires the original conditional creation key, exact runtime generation and attempt. Never resumes, creates or falls back to an ordinary attachment. A generation change revokes the connection; every control message rechecks identity. Replay excludes other attempts. Closing the socket does not stop the process or close its input. This is process control, not lifecycle, storage or credential admission. For a memory-restored original attempt, explicitly supply an earlier creation_runtime_generation. Omission retains same-generation semantics. The supervisor requires the exact original conditional creation and a still-running attempt from that origin in the requested current runtime. This does not verify external memory lineage or credential qualification; applications must verify those independently before adoption. Never use failure as permission to create a new attempt or fall back to cold restart.
|
|
237
|
+
* Attach to one conditional execution session attempt
|
|
238
|
+
*/
|
|
239
|
+
async apiV1SandboxesIdSessionsSessionIdConditionalWsGetRaw(requestParameters, initOverrides) {
|
|
240
|
+
if (requestParameters['id'] == null) {
|
|
241
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxesIdSessionsSessionIdConditionalWsGet().');
|
|
242
|
+
}
|
|
243
|
+
if (requestParameters['sessionId'] == null) {
|
|
244
|
+
throw new runtime.RequiredError('sessionId', 'Required parameter "sessionId" was null or undefined when calling apiV1SandboxesIdSessionsSessionIdConditionalWsGet().');
|
|
245
|
+
}
|
|
246
|
+
if (requestParameters['idempotencyKey'] == null) {
|
|
247
|
+
throw new runtime.RequiredError('idempotencyKey', 'Required parameter "idempotencyKey" was null or undefined when calling apiV1SandboxesIdSessionsSessionIdConditionalWsGet().');
|
|
248
|
+
}
|
|
249
|
+
if (requestParameters['runtimeGeneration'] == null) {
|
|
250
|
+
throw new runtime.RequiredError('runtimeGeneration', 'Required parameter "runtimeGeneration" was null or undefined when calling apiV1SandboxesIdSessionsSessionIdConditionalWsGet().');
|
|
251
|
+
}
|
|
252
|
+
if (requestParameters['attemptId'] == null) {
|
|
253
|
+
throw new runtime.RequiredError('attemptId', 'Required parameter "attemptId" was null or undefined when calling apiV1SandboxesIdSessionsSessionIdConditionalWsGet().');
|
|
254
|
+
}
|
|
255
|
+
const queryParameters = {};
|
|
256
|
+
if (requestParameters['creationRuntimeGeneration'] != null) {
|
|
257
|
+
queryParameters['creation_runtime_generation'] = requestParameters['creationRuntimeGeneration'];
|
|
258
|
+
}
|
|
259
|
+
if (requestParameters['runtimeGeneration'] != null) {
|
|
260
|
+
queryParameters['runtime_generation'] = requestParameters['runtimeGeneration'];
|
|
261
|
+
}
|
|
262
|
+
if (requestParameters['attemptId'] != null) {
|
|
263
|
+
queryParameters['attempt_id'] = requestParameters['attemptId'];
|
|
264
|
+
}
|
|
265
|
+
if (requestParameters['after'] != null) {
|
|
266
|
+
queryParameters['after'] = requestParameters['after'];
|
|
267
|
+
}
|
|
268
|
+
const headerParameters = {};
|
|
269
|
+
if (requestParameters['idempotencyKey'] != null) {
|
|
270
|
+
headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
|
|
271
|
+
}
|
|
272
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
273
|
+
const token = this.configuration.accessToken;
|
|
274
|
+
const tokenString = await token("bearerAuth", []);
|
|
275
|
+
if (tokenString) {
|
|
276
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
let urlPath = `/api/v1/sandboxes/{id}/sessions/{session_id}/conditional/ws`;
|
|
280
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
281
|
+
urlPath = urlPath.replace(`{${"session_id"}}`, encodeURIComponent(String(requestParameters['sessionId'])));
|
|
282
|
+
const response = await this.request({
|
|
283
|
+
path: urlPath,
|
|
284
|
+
method: 'GET',
|
|
285
|
+
headers: headerParameters,
|
|
286
|
+
query: queryParameters,
|
|
287
|
+
}, initOverrides);
|
|
288
|
+
return new runtime.VoidApiResponse(response);
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* Requires the original conditional creation key, exact runtime generation and attempt. Never resumes, creates or falls back to an ordinary attachment. A generation change revokes the connection; every control message rechecks identity. Replay excludes other attempts. Closing the socket does not stop the process or close its input. This is process control, not lifecycle, storage or credential admission. For a memory-restored original attempt, explicitly supply an earlier creation_runtime_generation. Omission retains same-generation semantics. The supervisor requires the exact original conditional creation and a still-running attempt from that origin in the requested current runtime. This does not verify external memory lineage or credential qualification; applications must verify those independently before adoption. Never use failure as permission to create a new attempt or fall back to cold restart.
|
|
292
|
+
* Attach to one conditional execution session attempt
|
|
293
|
+
*/
|
|
294
|
+
async apiV1SandboxesIdSessionsSessionIdConditionalWsGet(requestParameters, initOverrides) {
|
|
295
|
+
await this.apiV1SandboxesIdSessionsSessionIdConditionalWsGetRaw(requestParameters, initOverrides);
|
|
296
|
+
}
|
|
139
297
|
/**
|
|
140
298
|
* Delete an execution session
|
|
141
299
|
*/
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sandbox0 API
|
|
3
|
+
* Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CaptureSandboxRootFSSnapshotRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface CaptureSandboxRootFSSnapshotRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Exact source runtime generation; retries bind the originally admitted generation.
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof CaptureSandboxRootFSSnapshotRequest
|
|
22
|
+
*/
|
|
23
|
+
expectedRuntimeGeneration: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CaptureSandboxRootFSSnapshotRequest
|
|
28
|
+
*/
|
|
29
|
+
name?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CaptureSandboxRootFSSnapshotRequest
|
|
34
|
+
*/
|
|
35
|
+
description?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof CaptureSandboxRootFSSnapshotRequest
|
|
40
|
+
*/
|
|
41
|
+
expiresAt?: Date;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the CaptureSandboxRootFSSnapshotRequest interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfCaptureSandboxRootFSSnapshotRequest(value: object): value is CaptureSandboxRootFSSnapshotRequest;
|
|
47
|
+
export declare function CaptureSandboxRootFSSnapshotRequestFromJSON(json: any): CaptureSandboxRootFSSnapshotRequest;
|
|
48
|
+
export declare function CaptureSandboxRootFSSnapshotRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CaptureSandboxRootFSSnapshotRequest;
|
|
49
|
+
export declare function CaptureSandboxRootFSSnapshotRequestToJSON(json: any): CaptureSandboxRootFSSnapshotRequest;
|
|
50
|
+
export declare function CaptureSandboxRootFSSnapshotRequestToJSONTyped(value?: CaptureSandboxRootFSSnapshotRequest | null, ignoreDiscriminator?: boolean): any;
|
|
51
|
+
//# sourceMappingURL=CaptureSandboxRootFSSnapshotRequest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CaptureSandboxRootFSSnapshotRequest.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/CaptureSandboxRootFSSnapshotRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,mCAAmC;IAChD;;;;OAIG;IACH,yBAAyB,EAAE,MAAM,CAAC;IAClC;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,SAAS,CAAC,EAAE,IAAI,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,6CAA6C,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,mCAAmC,CAGzH;AAED,wBAAgB,2CAA2C,CAAC,IAAI,EAAE,GAAG,GAAG,mCAAmC,CAE1G;AAED,wBAAgB,gDAAgD,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,mCAAmC,CAW7I;AAED,wBAAgB,yCAAyC,CAAC,IAAI,EAAE,GAAG,GAAG,mCAAmC,CAExG;AAED,wBAAgB,8CAA8C,CAAC,KAAK,CAAC,EAAE,mCAAmC,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAY5J"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sandbox0 API
|
|
5
|
+
* Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the CaptureSandboxRootFSSnapshotRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfCaptureSandboxRootFSSnapshotRequest(value) {
|
|
18
|
+
if (!('expectedRuntimeGeneration' in value) || value['expectedRuntimeGeneration'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function CaptureSandboxRootFSSnapshotRequestFromJSON(json) {
|
|
23
|
+
return CaptureSandboxRootFSSnapshotRequestFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function CaptureSandboxRootFSSnapshotRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'expectedRuntimeGeneration': json['expected_runtime_generation'],
|
|
31
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
32
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
33
|
+
'expiresAt': json['expires_at'] == null ? undefined : (new Date(json['expires_at'])),
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function CaptureSandboxRootFSSnapshotRequestToJSON(json) {
|
|
37
|
+
return CaptureSandboxRootFSSnapshotRequestToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function CaptureSandboxRootFSSnapshotRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'expected_runtime_generation': value['expectedRuntimeGeneration'],
|
|
45
|
+
'name': value['name'],
|
|
46
|
+
'description': value['description'],
|
|
47
|
+
'expires_at': value['expiresAt'] == null ? value['expiresAt'] : value['expiresAt'].toISOString(),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sandbox0 API
|
|
3
|
+
* Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ExecutionSessionSpec } from './ExecutionSessionSpec.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ConditionalExecutionSessionRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface ConditionalExecutionSessionRequest {
|
|
19
|
+
/**
|
|
20
|
+
* Must equal the sandbox path identity and active supervisor owner.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ConditionalExecutionSessionRequest
|
|
23
|
+
*/
|
|
24
|
+
sandboxId: string;
|
|
25
|
+
/**
|
|
26
|
+
* Exact current runtime generation; never interpreted as a minimum.
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof ConditionalExecutionSessionRequest
|
|
29
|
+
*/
|
|
30
|
+
runtimeGeneration: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {ExecutionSessionSpec}
|
|
34
|
+
* @memberof ConditionalExecutionSessionRequest
|
|
35
|
+
*/
|
|
36
|
+
spec: ExecutionSessionSpec;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ConditionalExecutionSessionRequest interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfConditionalExecutionSessionRequest(value: object): value is ConditionalExecutionSessionRequest;
|
|
42
|
+
export declare function ConditionalExecutionSessionRequestFromJSON(json: any): ConditionalExecutionSessionRequest;
|
|
43
|
+
export declare function ConditionalExecutionSessionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConditionalExecutionSessionRequest;
|
|
44
|
+
export declare function ConditionalExecutionSessionRequestToJSON(json: any): ConditionalExecutionSessionRequest;
|
|
45
|
+
export declare function ConditionalExecutionSessionRequestToJSONTyped(value?: ConditionalExecutionSessionRequest | null, ignoreDiscriminator?: boolean): any;
|
|
46
|
+
//# sourceMappingURL=ConditionalExecutionSessionRequest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConditionalExecutionSessionRequest.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/ConditionalExecutionSessionRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAQnE;;;;GAIG;AACH,MAAM,WAAW,kCAAkC;IAC/C;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,IAAI,EAAE,oBAAoB,CAAC;CAC9B;AAED;;GAEG;AACH,wBAAgB,4CAA4C,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,kCAAkC,CAKvH;AAED,wBAAgB,0CAA0C,CAAC,IAAI,EAAE,GAAG,GAAG,kCAAkC,CAExG;AAED,wBAAgB,+CAA+C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,kCAAkC,CAU3I;AAED,wBAAgB,wCAAwC,CAAC,IAAI,EAAE,GAAG,GAAG,kCAAkC,CAEtG;AAED,wBAAgB,6CAA6C,CAAC,KAAK,CAAC,EAAE,kCAAkC,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAW1J"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sandbox0 API
|
|
5
|
+
* Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { ExecutionSessionSpecFromJSON, ExecutionSessionSpecToJSON, } from './ExecutionSessionSpec.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ConditionalExecutionSessionRequest interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfConditionalExecutionSessionRequest(value) {
|
|
19
|
+
if (!('sandboxId' in value) || value['sandboxId'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('runtimeGeneration' in value) || value['runtimeGeneration'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('spec' in value) || value['spec'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
export function ConditionalExecutionSessionRequestFromJSON(json) {
|
|
28
|
+
return ConditionalExecutionSessionRequestFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function ConditionalExecutionSessionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'sandboxId': json['sandbox_id'],
|
|
36
|
+
'runtimeGeneration': json['runtime_generation'],
|
|
37
|
+
'spec': ExecutionSessionSpecFromJSON(json['spec']),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export function ConditionalExecutionSessionRequestToJSON(json) {
|
|
41
|
+
return ConditionalExecutionSessionRequestToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
export function ConditionalExecutionSessionRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'sandbox_id': value['sandboxId'],
|
|
49
|
+
'runtime_generation': value['runtimeGeneration'],
|
|
50
|
+
'spec': ExecutionSessionSpecToJSON(value['spec']),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -36,7 +36,7 @@ export interface ContainerSpec {
|
|
|
36
36
|
*/
|
|
37
37
|
resources: ResourceQuota;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Sandboxes use privileged capabilities inside the gVisor guest. This does not bypass runsc or expose host devices.
|
|
40
40
|
* @type {string}
|
|
41
41
|
* @memberof ContainerSpec
|
|
42
42
|
*/
|
|
@@ -46,7 +46,6 @@ export interface ContainerSpec {
|
|
|
46
46
|
* @export
|
|
47
47
|
*/
|
|
48
48
|
export declare const ContainerSpecSecurityClassEnum: {
|
|
49
|
-
readonly Standard: "standard";
|
|
50
49
|
readonly Privileged: "privileged";
|
|
51
50
|
};
|
|
52
51
|
export type ContainerSpecSecurityClassEnum = typeof ContainerSpecSecurityClassEnum[keyof typeof ContainerSpecSecurityClassEnum];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContainerSpec.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/ContainerSpec.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAOrD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAQvC;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,GAAG,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACpB;;;;OAIG;IACH,SAAS,EAAE,aAAa,CAAC;IACzB;;;;OAIG;IACH,aAAa,CAAC,EAAE,8BAA8B,CAAC;CAClD;AAGD;;GAEG;AACH,eAAO,MAAM,8BAA8B
|
|
1
|
+
{"version":3,"file":"ContainerSpec.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/ContainerSpec.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAOrD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAQvC;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,GAAG,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACpB;;;;OAIG;IACH,SAAS,EAAE,aAAa,CAAC;IACzB;;;;OAIG;IACH,aAAa,CAAC,EAAE,8BAA8B,CAAC;CAClD;AAGD;;GAEG;AACH,eAAO,MAAM,8BAA8B;;CAEjC,CAAC;AACX,MAAM,MAAM,8BAA8B,GAAG,OAAO,8BAA8B,CAAC,MAAM,OAAO,8BAA8B,CAAC,CAAC;AAGhI;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAI7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CAWjG;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE5D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAYhH"}
|
|
@@ -15,6 +15,12 @@
|
|
|
15
15
|
* @interface ForkSandboxConfig
|
|
16
16
|
*/
|
|
17
17
|
export interface ForkSandboxConfig {
|
|
18
|
+
/**
|
|
19
|
+
* Override automatic resume for the child at creation. Omit to inherit the source setting. False also disables resume on all inherited ingress routes atomically; the child still permits an explicit resume. Retries with the same Idempotency-Key must retain any explicit override.
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof ForkSandboxConfig
|
|
22
|
+
*/
|
|
23
|
+
autoResume?: boolean;
|
|
18
24
|
/**
|
|
19
25
|
* Runtime soft time-to-live in seconds for the forked sandbox. Omit to inherit the source setting. Set 0 to disable soft expiration.
|
|
20
26
|
* @type {number}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ForkSandboxConfig.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/ForkSandboxConfig.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iBAAiB,CAErF;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEtE;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iBAAiB,
|
|
1
|
+
{"version":3,"file":"ForkSandboxConfig.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/ForkSandboxConfig.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iBAAiB,CAErF;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEtE;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iBAAiB,CAUzG;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEpE;AAED,wBAAgB,4BAA4B,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWxH"}
|
|
@@ -25,6 +25,7 @@ export function ForkSandboxConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
25
25
|
return json;
|
|
26
26
|
}
|
|
27
27
|
return {
|
|
28
|
+
'autoResume': json['auto_resume'] == null ? undefined : json['auto_resume'],
|
|
28
29
|
'ttl': json['ttl'] == null ? undefined : json['ttl'],
|
|
29
30
|
'hardTtl': json['hard_ttl'] == null ? undefined : json['hard_ttl'],
|
|
30
31
|
};
|
|
@@ -37,6 +38,7 @@ export function ForkSandboxConfigToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
37
38
|
return value;
|
|
38
39
|
}
|
|
39
40
|
return {
|
|
41
|
+
'auto_resume': value['autoResume'],
|
|
40
42
|
'ttl': value['ttl'],
|
|
41
43
|
'hard_ttl': value['hardTtl'],
|
|
42
44
|
};
|
|
@@ -19,6 +19,12 @@ import type { ForkSandboxConfig } from './ForkSandboxConfig.js';
|
|
|
19
19
|
* @interface ForkSandboxRequest
|
|
20
20
|
*/
|
|
21
21
|
export interface ForkSandboxRequest {
|
|
22
|
+
/**
|
|
23
|
+
* Optional exact source runtime generation. Requires a stable Idempotency-Key. First admission checks the source under its lifecycle lock; retries compare the original accepted capture, even after the parent resumes. Zero is valid for a never-run paused source. With memory=true the value must be below the maximum. Keep the original value and key after an uncertain response.
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof ForkSandboxRequest
|
|
26
|
+
*/
|
|
27
|
+
expectedRuntimeGeneration?: number;
|
|
22
28
|
/**
|
|
23
29
|
* Preserve process execution state together with RootFS. Requires Idempotency-Key. A paused source must have a retained memory image; a running source is captured and resumed before completion. Unsupported or unavailable memory never falls back to filesystem-only.
|
|
24
30
|
* @type {boolean}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ForkSandboxRequest.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/ForkSandboxRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAQ7D;;;;;;;GAOG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,MAAM,CAAC,EAAE,iBAAiB,CAAC;CAC9B;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,kBAAkB,CAEvF;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAExE;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,kBAAkB,
|
|
1
|
+
{"version":3,"file":"ForkSandboxRequest.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/ForkSandboxRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAQ7D;;;;;;;GAOG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,MAAM,CAAC,EAAE,iBAAiB,CAAC;CAC9B;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,kBAAkB,CAEvF;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAExE;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,kBAAkB,CAU3G;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAEtE;AAED,wBAAgB,6BAA6B,CAAC,KAAK,CAAC,EAAE,kBAAkB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAW1H"}
|
|
@@ -26,6 +26,7 @@ export function ForkSandboxRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
26
26
|
return json;
|
|
27
27
|
}
|
|
28
28
|
return {
|
|
29
|
+
'expectedRuntimeGeneration': json['expected_runtime_generation'] == null ? undefined : json['expected_runtime_generation'],
|
|
29
30
|
'memory': json['memory'] == null ? undefined : json['memory'],
|
|
30
31
|
'config': json['config'] == null ? undefined : ForkSandboxConfigFromJSON(json['config']),
|
|
31
32
|
};
|
|
@@ -38,6 +39,7 @@ export function ForkSandboxRequestToJSONTyped(value, ignoreDiscriminator = false
|
|
|
38
39
|
return value;
|
|
39
40
|
}
|
|
40
41
|
return {
|
|
42
|
+
'expected_runtime_generation': value['expectedRuntimeGeneration'],
|
|
41
43
|
'memory': value['memory'],
|
|
42
44
|
'config': ForkSandboxConfigToJSON(value['config']),
|
|
43
45
|
};
|