@archildata/api-types 0.0.34 → 0.0.35

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 +17 -14
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -570,13 +570,15 @@ export interface paths {
570
570
  get?: never;
571
571
  put?: never;
572
572
  /**
573
- * Set a sandbox's timeout
574
- * @description Replaces the sandbox's lifetime budget and, while it is running, resets
575
- * its expiration deadline to the requested number of seconds from now.
576
- * The new budget is retained across later stops and starts. For an
577
- * inactive sandbox, it applies to the next powered-on session. Sandboxes
578
- * that are starting or shutting down, or whose timeout changes
579
- * concurrently, return 409.
573
+ * Set a sandbox's timeouts
574
+ * @description Replaces one or both sandbox timeout settings. Updating `timeout` while
575
+ * the sandbox is running resets its hard expiration deadline to that many
576
+ * seconds from now. Updating `idle_ttl_seconds` resets the idle
577
+ * countdown when no direct process connection is active; zero disables
578
+ * idle expiry. Omitted settings remain unchanged. Updates are retained
579
+ * across later stops and starts. For an inactive sandbox, they apply to
580
+ * the next powered-on session. Sandboxes that are starting or shutting
581
+ * down, or whose timeout changes concurrently, return 409.
580
582
  */
581
583
  post: operations["setSandboxTimeout"];
582
584
  delete?: never;
@@ -725,7 +727,9 @@ export interface components {
725
727
  };
726
728
  SandboxTimeoutRequest: {
727
729
  /** @description Seconds from now until a running sandbox expires, and the lifetime budget for its next powered-on session. */
728
- timeout: number;
730
+ timeout?: number;
731
+ /** @description Seconds without a direct process connection before the sandbox pauses. Zero disables idle expiry. */
732
+ idle_ttl_seconds?: number;
729
733
  };
730
734
  Sandbox: {
731
735
  /** Format: uuid */
@@ -737,6 +741,8 @@ export interface components {
737
741
  mem_size_mib: number;
738
742
  /** @description Lifetime budget applied independently to each powered-on session. Expiry pauses the sandbox, preserving memory and processes for resume. Defaults to 24 hours and can be reset with the timeout endpoint. */
739
743
  max_ttl_seconds: number;
744
+ /** @description Seconds without a direct process connection before the sandbox pauses, preserving memory and processes for resume. Zero disables idle expiry. */
745
+ idle_ttl_seconds: number;
740
746
  /** @description Maximum number of concurrently attached process sessions. Detached processes and one-shot process controls do not count. */
741
747
  max_concurrent_execs: number;
742
748
  /** @description OCI reference requested when the sandbox was created. */
@@ -756,11 +762,6 @@ export interface components {
756
762
  finished_at?: string;
757
763
  /** Format: date-time */
758
764
  last_active_at: string;
759
- /**
760
- * Format: date-time
761
- * @description Current powered-on session deadline; absent while inactive.
762
- */
763
- expires_at?: string;
764
765
  exit_reason?: string;
765
766
  };
766
767
  SandboxEndpoint: {
@@ -829,6 +830,8 @@ export interface components {
829
830
  * @default 86400
830
831
  */
831
832
  max_ttl_seconds: number;
833
+ /** @description Pause after this many seconds without a direct process connection, preserving memory and processes for resume. Omit or set to zero to disable idle expiry. */
834
+ idle_ttl_seconds?: number;
832
835
  /** @description Maximum number of concurrently attached process sessions. Detached processes and one-shot process controls do not count. */
833
836
  max_concurrent_execs?: number;
834
837
  };
@@ -2805,7 +2808,7 @@ export interface operations {
2805
2808
  };
2806
2809
  };
2807
2810
  responses: {
2808
- /** @description The sandbox timeout was set */
2811
+ /** @description The sandbox timeouts were set */
2809
2812
  200: {
2810
2813
  headers: {
2811
2814
  [name: string]: unknown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archildata/api-types",
3
- "version": "0.0.34",
3
+ "version": "0.0.35",
4
4
  "description": "API types for the Archil control plane",
5
5
  "type": "module",
6
6
  "types": "index.d.ts",