@archildata/api-types 0.0.20 → 0.0.22
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 +34 -273
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -196,8 +196,8 @@ export interface paths {
|
|
|
196
196
|
/**
|
|
197
197
|
* Execute a command on a disk
|
|
198
198
|
* @description Launches a container with the specified disk mounted, runs the given
|
|
199
|
-
* command to completion,
|
|
200
|
-
*
|
|
199
|
+
* command to completion, shuts down the container, and returns the command
|
|
200
|
+
* result.
|
|
201
201
|
*/
|
|
202
202
|
post: operations["execDisk"];
|
|
203
203
|
delete?: never;
|
|
@@ -400,17 +400,10 @@ export interface paths {
|
|
|
400
400
|
get?: never;
|
|
401
401
|
put?: never;
|
|
402
402
|
/**
|
|
403
|
-
* Create a
|
|
404
|
-
* @description Returns a short-lived WebSocket URL
|
|
405
|
-
*
|
|
406
|
-
*
|
|
407
|
-
*
|
|
408
|
-
* The URL contains a signed token that expires at `expires_at`. An open
|
|
409
|
-
* WebSocket can remain connected after the token expires. Clients send
|
|
410
|
-
* raw terminal input as binary frames and terminal size changes as text
|
|
411
|
-
* frames containing `{"type":"resize","rows":24,"cols":80}`. The server
|
|
412
|
-
* returns raw terminal output as binary frames. Closing the WebSocket ends
|
|
413
|
-
* the shell. Pausing or stopping the sandbox also closes the connection.
|
|
403
|
+
* Create a sandbox process connection
|
|
404
|
+
* @description Returns a short-lived WebSocket URL used by the sandbox process API.
|
|
405
|
+
* The URL contains a signed token that expires at `expires_at`; an open
|
|
406
|
+
* WebSocket can remain connected after the token expires.
|
|
414
407
|
*/
|
|
415
408
|
post: operations["createSandboxConnection"];
|
|
416
409
|
delete?: never;
|
|
@@ -419,72 +412,6 @@ export interface paths {
|
|
|
419
412
|
patch?: never;
|
|
420
413
|
trace?: never;
|
|
421
414
|
};
|
|
422
|
-
"/api/sandboxes/{sid}/execs": {
|
|
423
|
-
parameters: {
|
|
424
|
-
query?: never;
|
|
425
|
-
header?: never;
|
|
426
|
-
path?: never;
|
|
427
|
-
cookie?: never;
|
|
428
|
-
};
|
|
429
|
-
/**
|
|
430
|
-
* List recent execs
|
|
431
|
-
* @description The sandbox's most recent execs, newest first.
|
|
432
|
-
*/
|
|
433
|
-
get: operations["listSandboxExecs"];
|
|
434
|
-
put?: never;
|
|
435
|
-
/**
|
|
436
|
-
* Run a command in a sandbox
|
|
437
|
-
* @description Submits a shell command to a running sandbox. By default the response
|
|
438
|
-
* reports `running` after the runtime accepts it. Set `wait=true` to hold
|
|
439
|
-
* for a terminal result; if the wait budget expires, the response remains
|
|
440
|
-
* `running` and the result is available from getSandboxExec. Only
|
|
441
|
-
* `running` sandboxes accept execs (409 otherwise).
|
|
442
|
-
*/
|
|
443
|
-
post: operations["execInSandbox"];
|
|
444
|
-
delete?: never;
|
|
445
|
-
options?: never;
|
|
446
|
-
head?: never;
|
|
447
|
-
patch?: never;
|
|
448
|
-
trace?: never;
|
|
449
|
-
};
|
|
450
|
-
"/api/sandboxes/{sid}/execs/{eid}": {
|
|
451
|
-
parameters: {
|
|
452
|
-
query?: never;
|
|
453
|
-
header?: never;
|
|
454
|
-
path?: never;
|
|
455
|
-
cookie?: never;
|
|
456
|
-
};
|
|
457
|
-
/** Get an exec's status and result */
|
|
458
|
-
get: operations["getSandboxExec"];
|
|
459
|
-
put?: never;
|
|
460
|
-
post?: never;
|
|
461
|
-
delete?: never;
|
|
462
|
-
options?: never;
|
|
463
|
-
head?: never;
|
|
464
|
-
patch?: never;
|
|
465
|
-
trace?: never;
|
|
466
|
-
};
|
|
467
|
-
"/api/sandboxes/{sid}/execs/{eid}/cancel": {
|
|
468
|
-
parameters: {
|
|
469
|
-
query?: never;
|
|
470
|
-
header?: never;
|
|
471
|
-
path?: never;
|
|
472
|
-
cookie?: never;
|
|
473
|
-
};
|
|
474
|
-
get?: never;
|
|
475
|
-
put?: never;
|
|
476
|
-
/**
|
|
477
|
-
* Cancel a running exec
|
|
478
|
-
* @description Aborts a running exec. Idempotent; cancelling an exec that already
|
|
479
|
-
* finished returns its terminal result unchanged.
|
|
480
|
-
*/
|
|
481
|
-
post: operations["cancelSandboxExec"];
|
|
482
|
-
delete?: never;
|
|
483
|
-
options?: never;
|
|
484
|
-
head?: never;
|
|
485
|
-
patch?: never;
|
|
486
|
-
trace?: never;
|
|
487
|
-
};
|
|
488
415
|
"/api/sandboxes/{sid}/pause": {
|
|
489
416
|
parameters: {
|
|
490
417
|
query?: never;
|
|
@@ -498,8 +425,9 @@ export interface paths {
|
|
|
498
425
|
* Pause a sandbox
|
|
499
426
|
* @description Snapshot the CPU & memory state, then stop the VM. The sandbox reports
|
|
500
427
|
* `pausing` until the snapshot commit marker is durable and the VM exits,
|
|
501
|
-
* then reports `paused`.
|
|
502
|
-
*
|
|
428
|
+
* then reports `paused`. Attached process connections close, while
|
|
429
|
+
* agent-owned processes remain available for reattachment after resume.
|
|
430
|
+
* A sandbox that is still `pending` must reach `running` before it can be paused.
|
|
503
431
|
* To restore the snapshot, call `/resume`.
|
|
504
432
|
*/
|
|
505
433
|
post: operations["pauseSandbox"];
|
|
@@ -595,7 +523,7 @@ export interface paths {
|
|
|
595
523
|
* @description Gracefully shuts down the guest, then checkpoints its disk before
|
|
596
524
|
* entering `stopped`. The sandbox and any forks from it cold-boot from
|
|
597
525
|
* disk state. Stopping a paused sandbox reuses its existing disk
|
|
598
|
-
* checkpoint. In-flight
|
|
526
|
+
* checkpoint. In-flight processes receive the guest shutdown signal.
|
|
599
527
|
*/
|
|
600
528
|
post: operations["stopSandbox"];
|
|
601
529
|
delete?: never;
|
|
@@ -660,6 +588,20 @@ export interface components {
|
|
|
660
588
|
};
|
|
661
589
|
/** @enum {string} */
|
|
662
590
|
SandboxState: "pending" | "running" | "pausing" | "paused" | "stopping" | "stopped" | "exited" | "failed" | "deleting" | "deleted";
|
|
591
|
+
/** @enum {string} */
|
|
592
|
+
SandboxNetworkAction: "allow" | "deny";
|
|
593
|
+
/** @description Deny targets take precedence when an address matches both lists. */
|
|
594
|
+
SandboxEgressPolicy: {
|
|
595
|
+
default: components["schemas"]["SandboxNetworkAction"];
|
|
596
|
+
/** @description Allowed IPv4 addresses or CIDR ranges. */
|
|
597
|
+
allow?: string[];
|
|
598
|
+
/** @description Denied IPv4 addresses or CIDR ranges. */
|
|
599
|
+
deny?: string[];
|
|
600
|
+
};
|
|
601
|
+
/** @description Sandbox network policy. Egress is unrestricted when omitted. */
|
|
602
|
+
SandboxNetwork: {
|
|
603
|
+
egress?: components["schemas"]["SandboxEgressPolicy"];
|
|
604
|
+
};
|
|
663
605
|
Sandbox: {
|
|
664
606
|
/** Format: uuid */
|
|
665
607
|
sandbox_id: string;
|
|
@@ -670,7 +612,7 @@ export interface components {
|
|
|
670
612
|
mem_size_mib: number;
|
|
671
613
|
/** @description Full lifetime budget applied independently to each powered-on session. */
|
|
672
614
|
max_ttl_seconds: number;
|
|
673
|
-
/** @description Maximum number of concurrently attached
|
|
615
|
+
/** @description Maximum number of concurrently attached process sessions. Detached processes and one-shot process controls do not count. */
|
|
674
616
|
max_concurrent_execs: number;
|
|
675
617
|
/** @description OCI reference requested when the sandbox was created. */
|
|
676
618
|
base_image: string;
|
|
@@ -680,6 +622,7 @@ export interface components {
|
|
|
680
622
|
*/
|
|
681
623
|
platform?: "arm64" | "amd64";
|
|
682
624
|
endpoints?: components["schemas"]["SandboxEndpoint"][];
|
|
625
|
+
network?: components["schemas"]["SandboxNetwork"];
|
|
683
626
|
/** Format: date-time */
|
|
684
627
|
created_at: string;
|
|
685
628
|
/** Format: date-time */
|
|
@@ -720,26 +663,6 @@ export interface components {
|
|
|
720
663
|
success: boolean;
|
|
721
664
|
data: components["schemas"]["Sandbox"];
|
|
722
665
|
};
|
|
723
|
-
/** @enum {string} */
|
|
724
|
-
SandboxExecState: "running" | "completed" | "failed" | "cancelled" | "timed_out";
|
|
725
|
-
SandboxExec: {
|
|
726
|
-
/** Format: uuid */
|
|
727
|
-
sandbox_id: string;
|
|
728
|
-
/** Format: uuid */
|
|
729
|
-
exec_id: string;
|
|
730
|
-
command: string;
|
|
731
|
-
status: components["schemas"]["SandboxExecState"];
|
|
732
|
-
exit_code?: number;
|
|
733
|
-
stdout?: string;
|
|
734
|
-
stderr?: string;
|
|
735
|
-
exit_reason?: string;
|
|
736
|
-
/** Format: int64 */
|
|
737
|
-
execute_time_ms?: number;
|
|
738
|
-
/** Format: date-time */
|
|
739
|
-
started_at: string;
|
|
740
|
-
/** Format: date-time */
|
|
741
|
-
finished_at?: string;
|
|
742
|
-
};
|
|
743
666
|
CreateSandboxRequest: {
|
|
744
667
|
/** @description Sandbox name, unique within the account. A random word-list name is generated when omitted. */
|
|
745
668
|
name?: string;
|
|
@@ -753,34 +676,20 @@ export interface components {
|
|
|
753
676
|
*/
|
|
754
677
|
base_image: string;
|
|
755
678
|
port_mappings?: components["schemas"]["SandboxPortMapping"][];
|
|
756
|
-
/** @description Environment variables applied to every
|
|
679
|
+
/** @description Environment variables applied to every process */
|
|
757
680
|
env?: {
|
|
758
681
|
[key: string]: string;
|
|
759
682
|
};
|
|
683
|
+
network?: components["schemas"]["SandboxNetwork"];
|
|
760
684
|
/** @description Lifetime budget applied independently to each powered-on session */
|
|
761
685
|
max_ttl_seconds?: number;
|
|
762
|
-
/** @description Maximum number of concurrently attached
|
|
686
|
+
/** @description Maximum number of concurrently attached process sessions. Detached processes and one-shot process controls do not count. */
|
|
763
687
|
max_concurrent_execs?: number;
|
|
764
688
|
};
|
|
765
689
|
ForkSandboxRequest: {
|
|
766
690
|
/** @description Name for the fork. A random word-list name is generated when omitted. */
|
|
767
691
|
name?: string;
|
|
768
692
|
};
|
|
769
|
-
SandboxExecRequest: {
|
|
770
|
-
/** @description Shell command, run via `/bin/sh -c` */
|
|
771
|
-
command: string;
|
|
772
|
-
/** @description Allocate a TTY for the command */
|
|
773
|
-
command_tty?: boolean;
|
|
774
|
-
/** @description Extra environment variables for this command */
|
|
775
|
-
env?: {
|
|
776
|
-
[key: string]: string;
|
|
777
|
-
};
|
|
778
|
-
/**
|
|
779
|
-
* Format: int64
|
|
780
|
-
* @description Server-side execution deadline; the exec reports timed_out past it
|
|
781
|
-
*/
|
|
782
|
-
timeout_seconds?: number;
|
|
783
|
-
};
|
|
784
693
|
ApiResponse_SandboxList: {
|
|
785
694
|
/** @example true */
|
|
786
695
|
success: boolean;
|
|
@@ -788,18 +697,6 @@ export interface components {
|
|
|
788
697
|
sandboxes?: components["schemas"]["Sandbox"][];
|
|
789
698
|
};
|
|
790
699
|
};
|
|
791
|
-
ApiResponse_SandboxExec: {
|
|
792
|
-
/** @example true */
|
|
793
|
-
success: boolean;
|
|
794
|
-
data: components["schemas"]["SandboxExec"];
|
|
795
|
-
};
|
|
796
|
-
ApiResponse_SandboxExecList: {
|
|
797
|
-
/** @example true */
|
|
798
|
-
success: boolean;
|
|
799
|
-
data: {
|
|
800
|
-
execs?: components["schemas"]["SandboxExec"][];
|
|
801
|
-
};
|
|
802
|
-
};
|
|
803
700
|
CreateDiskRequest: {
|
|
804
701
|
/**
|
|
805
702
|
* @description Disk name (alphanumeric, dashes, underscores)
|
|
@@ -1657,9 +1554,7 @@ export interface components {
|
|
|
1657
1554
|
DiskId: string;
|
|
1658
1555
|
/** @description Sandbox UUID */
|
|
1659
1556
|
SandboxId: string;
|
|
1660
|
-
/** @description
|
|
1661
|
-
ExecId: string;
|
|
1662
|
-
/** @description Hold the request for a completed start or exec result */
|
|
1557
|
+
/** @description Hold the request for a completed sandbox lifecycle transition */
|
|
1663
1558
|
Wait: boolean;
|
|
1664
1559
|
/** @description Maximum number of items to return. Omit to return all items in a single unpaginated response; when set, the response may include a nextCursor to fetch the next page. */
|
|
1665
1560
|
Limit: number;
|
|
@@ -2300,7 +2195,7 @@ export interface operations {
|
|
|
2300
2195
|
createSandbox: {
|
|
2301
2196
|
parameters: {
|
|
2302
2197
|
query?: {
|
|
2303
|
-
/** @description Hold the request for a completed
|
|
2198
|
+
/** @description Hold the request for a completed sandbox lifecycle transition */
|
|
2304
2199
|
wait?: components["parameters"]["Wait"];
|
|
2305
2200
|
};
|
|
2306
2201
|
header?: never;
|
|
@@ -2439,140 +2334,6 @@ export interface operations {
|
|
|
2439
2334
|
500: components["responses"]["InternalError"];
|
|
2440
2335
|
};
|
|
2441
2336
|
};
|
|
2442
|
-
listSandboxExecs: {
|
|
2443
|
-
parameters: {
|
|
2444
|
-
query?: never;
|
|
2445
|
-
header?: never;
|
|
2446
|
-
path: {
|
|
2447
|
-
/** @description Sandbox UUID */
|
|
2448
|
-
sid: components["parameters"]["SandboxId"];
|
|
2449
|
-
};
|
|
2450
|
-
cookie?: never;
|
|
2451
|
-
};
|
|
2452
|
-
requestBody?: never;
|
|
2453
|
-
responses: {
|
|
2454
|
-
/** @description Recent execs */
|
|
2455
|
-
200: {
|
|
2456
|
-
headers: {
|
|
2457
|
-
[name: string]: unknown;
|
|
2458
|
-
};
|
|
2459
|
-
content: {
|
|
2460
|
-
"application/json": components["schemas"]["ApiResponse_SandboxExecList"];
|
|
2461
|
-
};
|
|
2462
|
-
};
|
|
2463
|
-
401: components["responses"]["Unauthorized"];
|
|
2464
|
-
404: components["responses"]["NotFound"];
|
|
2465
|
-
500: components["responses"]["InternalError"];
|
|
2466
|
-
};
|
|
2467
|
-
};
|
|
2468
|
-
execInSandbox: {
|
|
2469
|
-
parameters: {
|
|
2470
|
-
query?: {
|
|
2471
|
-
/** @description Hold the request for a completed start or exec result */
|
|
2472
|
-
wait?: components["parameters"]["Wait"];
|
|
2473
|
-
};
|
|
2474
|
-
header?: never;
|
|
2475
|
-
path: {
|
|
2476
|
-
/** @description Sandbox UUID */
|
|
2477
|
-
sid: components["parameters"]["SandboxId"];
|
|
2478
|
-
};
|
|
2479
|
-
cookie?: never;
|
|
2480
|
-
};
|
|
2481
|
-
requestBody: {
|
|
2482
|
-
content: {
|
|
2483
|
-
"application/json": components["schemas"]["SandboxExecRequest"];
|
|
2484
|
-
};
|
|
2485
|
-
};
|
|
2486
|
-
responses: {
|
|
2487
|
-
/** @description The exec, terminal (result fields set) or still running */
|
|
2488
|
-
202: {
|
|
2489
|
-
headers: {
|
|
2490
|
-
[name: string]: unknown;
|
|
2491
|
-
};
|
|
2492
|
-
content: {
|
|
2493
|
-
"application/json": components["schemas"]["ApiResponse_SandboxExec"];
|
|
2494
|
-
};
|
|
2495
|
-
};
|
|
2496
|
-
400: components["responses"]["ValidationError"];
|
|
2497
|
-
401: components["responses"]["Unauthorized"];
|
|
2498
|
-
404: components["responses"]["NotFound"];
|
|
2499
|
-
/** @description The sandbox is not running */
|
|
2500
|
-
409: {
|
|
2501
|
-
headers: {
|
|
2502
|
-
[name: string]: unknown;
|
|
2503
|
-
};
|
|
2504
|
-
content: {
|
|
2505
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
2506
|
-
};
|
|
2507
|
-
};
|
|
2508
|
-
/** @description The sandbox's max_concurrent_execs cap is reached */
|
|
2509
|
-
429: {
|
|
2510
|
-
headers: {
|
|
2511
|
-
[name: string]: unknown;
|
|
2512
|
-
};
|
|
2513
|
-
content: {
|
|
2514
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
2515
|
-
};
|
|
2516
|
-
};
|
|
2517
|
-
500: components["responses"]["InternalError"];
|
|
2518
|
-
};
|
|
2519
|
-
};
|
|
2520
|
-
getSandboxExec: {
|
|
2521
|
-
parameters: {
|
|
2522
|
-
query?: never;
|
|
2523
|
-
header?: never;
|
|
2524
|
-
path: {
|
|
2525
|
-
/** @description Sandbox UUID */
|
|
2526
|
-
sid: components["parameters"]["SandboxId"];
|
|
2527
|
-
/** @description Exec UUID */
|
|
2528
|
-
eid: components["parameters"]["ExecId"];
|
|
2529
|
-
};
|
|
2530
|
-
cookie?: never;
|
|
2531
|
-
};
|
|
2532
|
-
requestBody?: never;
|
|
2533
|
-
responses: {
|
|
2534
|
-
/** @description The exec; result fields are set once terminal */
|
|
2535
|
-
200: {
|
|
2536
|
-
headers: {
|
|
2537
|
-
[name: string]: unknown;
|
|
2538
|
-
};
|
|
2539
|
-
content: {
|
|
2540
|
-
"application/json": components["schemas"]["ApiResponse_SandboxExec"];
|
|
2541
|
-
};
|
|
2542
|
-
};
|
|
2543
|
-
401: components["responses"]["Unauthorized"];
|
|
2544
|
-
404: components["responses"]["NotFound"];
|
|
2545
|
-
500: components["responses"]["InternalError"];
|
|
2546
|
-
};
|
|
2547
|
-
};
|
|
2548
|
-
cancelSandboxExec: {
|
|
2549
|
-
parameters: {
|
|
2550
|
-
query?: never;
|
|
2551
|
-
header?: never;
|
|
2552
|
-
path: {
|
|
2553
|
-
/** @description Sandbox UUID */
|
|
2554
|
-
sid: components["parameters"]["SandboxId"];
|
|
2555
|
-
/** @description Exec UUID */
|
|
2556
|
-
eid: components["parameters"]["ExecId"];
|
|
2557
|
-
};
|
|
2558
|
-
cookie?: never;
|
|
2559
|
-
};
|
|
2560
|
-
requestBody?: never;
|
|
2561
|
-
responses: {
|
|
2562
|
-
/** @description The exec after the cancel */
|
|
2563
|
-
200: {
|
|
2564
|
-
headers: {
|
|
2565
|
-
[name: string]: unknown;
|
|
2566
|
-
};
|
|
2567
|
-
content: {
|
|
2568
|
-
"application/json": components["schemas"]["ApiResponse_SandboxExec"];
|
|
2569
|
-
};
|
|
2570
|
-
};
|
|
2571
|
-
401: components["responses"]["Unauthorized"];
|
|
2572
|
-
404: components["responses"]["NotFound"];
|
|
2573
|
-
500: components["responses"]["InternalError"];
|
|
2574
|
-
};
|
|
2575
|
-
};
|
|
2576
2337
|
pauseSandbox: {
|
|
2577
2338
|
parameters: {
|
|
2578
2339
|
query?: never;
|
|
@@ -2622,7 +2383,7 @@ export interface operations {
|
|
|
2622
2383
|
forkSandbox: {
|
|
2623
2384
|
parameters: {
|
|
2624
2385
|
query?: {
|
|
2625
|
-
/** @description Hold the request for a completed
|
|
2386
|
+
/** @description Hold the request for a completed sandbox lifecycle transition */
|
|
2626
2387
|
wait?: components["parameters"]["Wait"];
|
|
2627
2388
|
};
|
|
2628
2389
|
header?: never;
|
|
@@ -2666,7 +2427,7 @@ export interface operations {
|
|
|
2666
2427
|
resumeSandbox: {
|
|
2667
2428
|
parameters: {
|
|
2668
2429
|
query?: {
|
|
2669
|
-
/** @description Hold the request for a completed
|
|
2430
|
+
/** @description Hold the request for a completed sandbox lifecycle transition */
|
|
2670
2431
|
wait?: components["parameters"]["Wait"];
|
|
2671
2432
|
};
|
|
2672
2433
|
header?: never;
|
|
@@ -2715,7 +2476,7 @@ export interface operations {
|
|
|
2715
2476
|
startSandbox: {
|
|
2716
2477
|
parameters: {
|
|
2717
2478
|
query?: {
|
|
2718
|
-
/** @description Hold the request for a completed
|
|
2479
|
+
/** @description Hold the request for a completed sandbox lifecycle transition */
|
|
2719
2480
|
wait?: components["parameters"]["Wait"];
|
|
2720
2481
|
};
|
|
2721
2482
|
header?: never;
|