@archildata/api-types 0.0.42 → 0.0.43
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/index.d.ts +31 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -664,7 +664,8 @@ export interface paths {
|
|
|
664
664
|
* was paused, its memory snapshot is consumed and discarded before the
|
|
665
665
|
* new VM runs; disk state remains. Starting a running sandbox or a pending
|
|
666
666
|
* cold start is idempotent. A sandbox that is stopping, pausing, or
|
|
667
|
-
* pending a resume returns 409.
|
|
667
|
+
* pending a resume returns 409. An optional body replaces the sandbox's
|
|
668
|
+
* disk mounts for this and later sessions.
|
|
668
669
|
*/
|
|
669
670
|
post: operations["startSandbox"];
|
|
670
671
|
delete?: never;
|
|
@@ -823,6 +824,7 @@ export interface components {
|
|
|
823
824
|
* @default false
|
|
824
825
|
*/
|
|
825
826
|
enable_service_ingress: boolean;
|
|
827
|
+
mounts?: components["schemas"]["SandboxMount"][];
|
|
826
828
|
/** Format: date-time */
|
|
827
829
|
created_at: string;
|
|
828
830
|
/** Format: date-time */
|
|
@@ -840,6 +842,22 @@ export interface components {
|
|
|
840
842
|
*/
|
|
841
843
|
checkpoint?: string;
|
|
842
844
|
};
|
|
845
|
+
SandboxMount: {
|
|
846
|
+
disk_id: string;
|
|
847
|
+
/** @description Absolute guest directory to mount at. Required when more than one disk is mounted; a sole mount defaults to /mnt/archil. Guest system directories (/usr, /etc, /var, /opt, ...) are reserved, and a disk can be mounted once per sandbox. */
|
|
848
|
+
path?: string;
|
|
849
|
+
/** @description Relative subdirectory of the disk to expose instead of its root. */
|
|
850
|
+
subdirectory?: string;
|
|
851
|
+
/** @default false */
|
|
852
|
+
read_only: boolean;
|
|
853
|
+
/**
|
|
854
|
+
* @description Send mutating operations directly to the server without a delegation checkout, allowing concurrent writers.
|
|
855
|
+
* @default false
|
|
856
|
+
*/
|
|
857
|
+
conditional: boolean;
|
|
858
|
+
/** @description Milliseconds to wait for the disk's exclusive root delegation before the mount fails. Not allowed with read_only or conditional. */
|
|
859
|
+
queue_ms?: number;
|
|
860
|
+
};
|
|
843
861
|
SandboxEndpoint: {
|
|
844
862
|
port: number;
|
|
845
863
|
hostname: string;
|
|
@@ -953,6 +971,8 @@ export interface components {
|
|
|
953
971
|
[key: string]: string;
|
|
954
972
|
};
|
|
955
973
|
network?: components["schemas"]["SandboxNetwork"];
|
|
974
|
+
/** @description Archil disks mounted inside the guest for the first session; `start` can replace them for later sessions. Inherited by forks. A sandbox with mounts must be stopped before it can be forked. */
|
|
975
|
+
mounts?: components["schemas"]["SandboxMount"][];
|
|
956
976
|
/**
|
|
957
977
|
* @description Lifetime budget applied independently to each powered-on session. Expiry pauses the sandbox, preserving memory and processes for resume.
|
|
958
978
|
* @default 86400
|
|
@@ -963,6 +983,10 @@ export interface components {
|
|
|
963
983
|
/** @description Maximum number of concurrently attached process sessions. Detached processes and one-shot process controls do not count. */
|
|
964
984
|
max_concurrent_execs?: number;
|
|
965
985
|
};
|
|
986
|
+
StartSandboxRequest: {
|
|
987
|
+
/** @description Replace the sandbox's disk mounts for this and later sessions. Omit to keep the current ones. Not accepted by resume, and 409 while the sandbox is running or pending. */
|
|
988
|
+
mounts?: components["schemas"]["SandboxMount"][];
|
|
989
|
+
};
|
|
966
990
|
ForkSandboxRequest: {
|
|
967
991
|
/** @description Name for the fork. A random word-list name is generated when omitted. */
|
|
968
992
|
name?: string;
|
|
@@ -2515,6 +2539,7 @@ export interface operations {
|
|
|
2515
2539
|
};
|
|
2516
2540
|
400: components["responses"]["ValidationError"];
|
|
2517
2541
|
401: components["responses"]["Unauthorized"];
|
|
2542
|
+
404: components["responses"]["NotFound"];
|
|
2518
2543
|
/** @description The requested sandbox name already exists in the account */
|
|
2519
2544
|
409: {
|
|
2520
2545
|
headers: {
|
|
@@ -3104,7 +3129,11 @@ export interface operations {
|
|
|
3104
3129
|
};
|
|
3105
3130
|
cookie?: never;
|
|
3106
3131
|
};
|
|
3107
|
-
requestBody?:
|
|
3132
|
+
requestBody?: {
|
|
3133
|
+
content: {
|
|
3134
|
+
"application/json": components["schemas"]["StartSandboxRequest"];
|
|
3135
|
+
};
|
|
3136
|
+
};
|
|
3108
3137
|
responses: {
|
|
3109
3138
|
/** @description The sandbox was already running */
|
|
3110
3139
|
200: {
|