@archildata/api-types 0.0.21 → 0.0.23

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.
Files changed (2) hide show
  1. package/index.d.ts +21 -276
  2. 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, and shuts down the container. Returns immediately
200
- * with the container info; poll the container endpoint for completion.
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 direct sandbox connection
404
- * @description Returns a short-lived WebSocket URL for an interactive shell in a
405
- * running sandbox. Connecting starts `/bin/sh` with a PTY. The connection
406
- * has no stored history or reconnect support.
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`. Any in-flight execs are cancelled. A sandbox
502
- * that is still `pending` must reach `running` before it can be paused.
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 execs receive the guest shutdown signal.
526
+ * checkpoint. In-flight processes receive the guest shutdown signal.
599
527
  */
600
528
  post: operations["stopSandbox"];
601
529
  delete?: never;
@@ -662,12 +590,12 @@ export interface components {
662
590
  SandboxState: "pending" | "running" | "pausing" | "paused" | "stopping" | "stopped" | "exited" | "failed" | "deleting" | "deleted";
663
591
  /** @enum {string} */
664
592
  SandboxNetworkAction: "allow" | "deny";
665
- /** @description Deny targets take precedence when an address matches both lists. */
593
+ /** @description Deny targets take precedence when an address or domain matches both lists. Domain rules inspect TLS SNI on TCP port 443 without terminating TLS. When domain rules are present, DNS to the sandbox's configured resolvers is allowed and UDP port 443 is denied. */
666
594
  SandboxEgressPolicy: {
667
595
  default: components["schemas"]["SandboxNetworkAction"];
668
- /** @description Allowed IPv4 addresses or CIDR ranges. */
596
+ /** @description Allowed IPv4 addresses, CIDR ranges, exact domains, or wildcard domains beginning with `*.`. A wildcard matches subdomains but not the apex domain. */
669
597
  allow?: string[];
670
- /** @description Denied IPv4 addresses or CIDR ranges. */
598
+ /** @description Denied IPv4 addresses, CIDR ranges, exact domains, or wildcard domains beginning with `*.`. A wildcard matches subdomains but not the apex domain. */
671
599
  deny?: string[];
672
600
  };
673
601
  /** @description Sandbox network policy. Egress is unrestricted when omitted. */
@@ -684,7 +612,7 @@ export interface components {
684
612
  mem_size_mib: number;
685
613
  /** @description Full lifetime budget applied independently to each powered-on session. */
686
614
  max_ttl_seconds: number;
687
- /** @description Maximum number of concurrently attached exec sessions. Detached processes and one-shot process controls do not count. */
615
+ /** @description Maximum number of concurrently attached process sessions. Detached processes and one-shot process controls do not count. */
688
616
  max_concurrent_execs: number;
689
617
  /** @description OCI reference requested when the sandbox was created. */
690
618
  base_image: string;
@@ -735,26 +663,6 @@ export interface components {
735
663
  success: boolean;
736
664
  data: components["schemas"]["Sandbox"];
737
665
  };
738
- /** @enum {string} */
739
- SandboxExecState: "running" | "completed" | "failed" | "cancelled" | "timed_out";
740
- SandboxExec: {
741
- /** Format: uuid */
742
- sandbox_id: string;
743
- /** Format: uuid */
744
- exec_id: string;
745
- command: string;
746
- status: components["schemas"]["SandboxExecState"];
747
- exit_code?: number;
748
- stdout?: string;
749
- stderr?: string;
750
- exit_reason?: string;
751
- /** Format: int64 */
752
- execute_time_ms?: number;
753
- /** Format: date-time */
754
- started_at: string;
755
- /** Format: date-time */
756
- finished_at?: string;
757
- };
758
666
  CreateSandboxRequest: {
759
667
  /** @description Sandbox name, unique within the account. A random word-list name is generated when omitted. */
760
668
  name?: string;
@@ -768,35 +676,20 @@ export interface components {
768
676
  */
769
677
  base_image: string;
770
678
  port_mappings?: components["schemas"]["SandboxPortMapping"][];
771
- /** @description Environment variables applied to every exec */
679
+ /** @description Environment variables applied to every process */
772
680
  env?: {
773
681
  [key: string]: string;
774
682
  };
775
683
  network?: components["schemas"]["SandboxNetwork"];
776
684
  /** @description Lifetime budget applied independently to each powered-on session */
777
685
  max_ttl_seconds?: number;
778
- /** @description Maximum number of concurrently attached exec sessions. Detached processes and one-shot process controls do not count. */
686
+ /** @description Maximum number of concurrently attached process sessions. Detached processes and one-shot process controls do not count. */
779
687
  max_concurrent_execs?: number;
780
688
  };
781
689
  ForkSandboxRequest: {
782
690
  /** @description Name for the fork. A random word-list name is generated when omitted. */
783
691
  name?: string;
784
692
  };
785
- SandboxExecRequest: {
786
- /** @description Shell command, run via `/bin/sh -c` */
787
- command: string;
788
- /** @description Allocate a TTY for the command */
789
- command_tty?: boolean;
790
- /** @description Extra environment variables for this command */
791
- env?: {
792
- [key: string]: string;
793
- };
794
- /**
795
- * Format: int64
796
- * @description Server-side execution deadline; the exec reports timed_out past it
797
- */
798
- timeout_seconds?: number;
799
- };
800
693
  ApiResponse_SandboxList: {
801
694
  /** @example true */
802
695
  success: boolean;
@@ -804,18 +697,6 @@ export interface components {
804
697
  sandboxes?: components["schemas"]["Sandbox"][];
805
698
  };
806
699
  };
807
- ApiResponse_SandboxExec: {
808
- /** @example true */
809
- success: boolean;
810
- data: components["schemas"]["SandboxExec"];
811
- };
812
- ApiResponse_SandboxExecList: {
813
- /** @example true */
814
- success: boolean;
815
- data: {
816
- execs?: components["schemas"]["SandboxExec"][];
817
- };
818
- };
819
700
  CreateDiskRequest: {
820
701
  /**
821
702
  * @description Disk name (alphanumeric, dashes, underscores)
@@ -1673,9 +1554,7 @@ export interface components {
1673
1554
  DiskId: string;
1674
1555
  /** @description Sandbox UUID */
1675
1556
  SandboxId: string;
1676
- /** @description Exec UUID */
1677
- ExecId: string;
1678
- /** @description Hold the request for a completed start or exec result */
1557
+ /** @description Hold the request for a completed sandbox lifecycle transition */
1679
1558
  Wait: boolean;
1680
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. */
1681
1560
  Limit: number;
@@ -2316,7 +2195,7 @@ export interface operations {
2316
2195
  createSandbox: {
2317
2196
  parameters: {
2318
2197
  query?: {
2319
- /** @description Hold the request for a completed start or exec result */
2198
+ /** @description Hold the request for a completed sandbox lifecycle transition */
2320
2199
  wait?: components["parameters"]["Wait"];
2321
2200
  };
2322
2201
  header?: never;
@@ -2455,140 +2334,6 @@ export interface operations {
2455
2334
  500: components["responses"]["InternalError"];
2456
2335
  };
2457
2336
  };
2458
- listSandboxExecs: {
2459
- parameters: {
2460
- query?: never;
2461
- header?: never;
2462
- path: {
2463
- /** @description Sandbox UUID */
2464
- sid: components["parameters"]["SandboxId"];
2465
- };
2466
- cookie?: never;
2467
- };
2468
- requestBody?: never;
2469
- responses: {
2470
- /** @description Recent execs */
2471
- 200: {
2472
- headers: {
2473
- [name: string]: unknown;
2474
- };
2475
- content: {
2476
- "application/json": components["schemas"]["ApiResponse_SandboxExecList"];
2477
- };
2478
- };
2479
- 401: components["responses"]["Unauthorized"];
2480
- 404: components["responses"]["NotFound"];
2481
- 500: components["responses"]["InternalError"];
2482
- };
2483
- };
2484
- execInSandbox: {
2485
- parameters: {
2486
- query?: {
2487
- /** @description Hold the request for a completed start or exec result */
2488
- wait?: components["parameters"]["Wait"];
2489
- };
2490
- header?: never;
2491
- path: {
2492
- /** @description Sandbox UUID */
2493
- sid: components["parameters"]["SandboxId"];
2494
- };
2495
- cookie?: never;
2496
- };
2497
- requestBody: {
2498
- content: {
2499
- "application/json": components["schemas"]["SandboxExecRequest"];
2500
- };
2501
- };
2502
- responses: {
2503
- /** @description The exec, terminal (result fields set) or still running */
2504
- 202: {
2505
- headers: {
2506
- [name: string]: unknown;
2507
- };
2508
- content: {
2509
- "application/json": components["schemas"]["ApiResponse_SandboxExec"];
2510
- };
2511
- };
2512
- 400: components["responses"]["ValidationError"];
2513
- 401: components["responses"]["Unauthorized"];
2514
- 404: components["responses"]["NotFound"];
2515
- /** @description The sandbox is not running */
2516
- 409: {
2517
- headers: {
2518
- [name: string]: unknown;
2519
- };
2520
- content: {
2521
- "application/json": components["schemas"]["ErrorResponse"];
2522
- };
2523
- };
2524
- /** @description The sandbox's max_concurrent_execs cap is reached */
2525
- 429: {
2526
- headers: {
2527
- [name: string]: unknown;
2528
- };
2529
- content: {
2530
- "application/json": components["schemas"]["ErrorResponse"];
2531
- };
2532
- };
2533
- 500: components["responses"]["InternalError"];
2534
- };
2535
- };
2536
- getSandboxExec: {
2537
- parameters: {
2538
- query?: never;
2539
- header?: never;
2540
- path: {
2541
- /** @description Sandbox UUID */
2542
- sid: components["parameters"]["SandboxId"];
2543
- /** @description Exec UUID */
2544
- eid: components["parameters"]["ExecId"];
2545
- };
2546
- cookie?: never;
2547
- };
2548
- requestBody?: never;
2549
- responses: {
2550
- /** @description The exec; result fields are set once terminal */
2551
- 200: {
2552
- headers: {
2553
- [name: string]: unknown;
2554
- };
2555
- content: {
2556
- "application/json": components["schemas"]["ApiResponse_SandboxExec"];
2557
- };
2558
- };
2559
- 401: components["responses"]["Unauthorized"];
2560
- 404: components["responses"]["NotFound"];
2561
- 500: components["responses"]["InternalError"];
2562
- };
2563
- };
2564
- cancelSandboxExec: {
2565
- parameters: {
2566
- query?: never;
2567
- header?: never;
2568
- path: {
2569
- /** @description Sandbox UUID */
2570
- sid: components["parameters"]["SandboxId"];
2571
- /** @description Exec UUID */
2572
- eid: components["parameters"]["ExecId"];
2573
- };
2574
- cookie?: never;
2575
- };
2576
- requestBody?: never;
2577
- responses: {
2578
- /** @description The exec after the cancel */
2579
- 200: {
2580
- headers: {
2581
- [name: string]: unknown;
2582
- };
2583
- content: {
2584
- "application/json": components["schemas"]["ApiResponse_SandboxExec"];
2585
- };
2586
- };
2587
- 401: components["responses"]["Unauthorized"];
2588
- 404: components["responses"]["NotFound"];
2589
- 500: components["responses"]["InternalError"];
2590
- };
2591
- };
2592
2337
  pauseSandbox: {
2593
2338
  parameters: {
2594
2339
  query?: never;
@@ -2638,7 +2383,7 @@ export interface operations {
2638
2383
  forkSandbox: {
2639
2384
  parameters: {
2640
2385
  query?: {
2641
- /** @description Hold the request for a completed start or exec result */
2386
+ /** @description Hold the request for a completed sandbox lifecycle transition */
2642
2387
  wait?: components["parameters"]["Wait"];
2643
2388
  };
2644
2389
  header?: never;
@@ -2682,7 +2427,7 @@ export interface operations {
2682
2427
  resumeSandbox: {
2683
2428
  parameters: {
2684
2429
  query?: {
2685
- /** @description Hold the request for a completed start or exec result */
2430
+ /** @description Hold the request for a completed sandbox lifecycle transition */
2686
2431
  wait?: components["parameters"]["Wait"];
2687
2432
  };
2688
2433
  header?: never;
@@ -2731,7 +2476,7 @@ export interface operations {
2731
2476
  startSandbox: {
2732
2477
  parameters: {
2733
2478
  query?: {
2734
- /** @description Hold the request for a completed start or exec result */
2479
+ /** @description Hold the request for a completed sandbox lifecycle transition */
2735
2480
  wait?: components["parameters"]["Wait"];
2736
2481
  };
2737
2482
  header?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archildata/api-types",
3
- "version": "0.0.21",
3
+ "version": "0.0.23",
4
4
  "description": "API types for the Archil control plane",
5
5
  "type": "module",
6
6
  "types": "index.d.ts",