@archildata/api-types 0.0.87 → 0.0.88

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 +16 -5
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -2082,6 +2082,11 @@ export interface components {
2082
2082
  };
2083
2083
  /** @enum {string} */
2084
2084
  SandboxState: "pending" | "running" | "pausing" | "paused" | "stopping" | "stopped" | "exited" | "failed" | "deleting" | "deleted";
2085
+ /**
2086
+ * @description What happens when `max_ttl_seconds` or `idle_ttl_seconds` runs out. `pause` preserves memory and processes for resume. `delete` shuts the sandbox down without a snapshot and deletes it with its disk; a sandbox whose forks still exist is left stopped instead.
2087
+ * @enum {string}
2088
+ */
2089
+ SandboxTimeoutAction: "pause" | "delete";
2085
2090
  /** @enum {string} */
2086
2091
  SandboxNetworkAction: "allow" | "deny";
2087
2092
  /** @description Denied addresses block all traffic to them, and allowed addresses admit all traffic to them regardless of domain rules. Other connections are matched by TLS SNI, or HTTP Host on any port, against domain denies, then domain allows, then the default. When domain rules are present, TCP connections without a hostname are denied; UDP follows the address rules and the default, except that UDP port 443 is denied. Header transforms, forwarding, and drain selectors apply to plaintext HTTP on any port, and to TLS on any port whose handshake offers HTTP through ALPN (or, on port 443, offers no ALPN). */
@@ -2129,7 +2134,7 @@ export interface components {
2129
2134
  SandboxTimeoutRequest: {
2130
2135
  /** @description Seconds from now until a running sandbox expires, capped at the plan's session ceiling (24 hours at most) after its session started, and the lifetime budget for its next powered-on session. Held to the plan's session ceiling and to what is left of its sandbox allowance (403). */
2131
2136
  timeout?: number;
2132
- /** @description Seconds without a direct process connection before the sandbox pauses. Zero disables idle expiry. */
2137
+ /** @description Seconds without a direct process connection before the sandbox pauses or is deleted, per its `on_timeout`. Zero disables idle expiry. */
2133
2138
  idle_ttl_seconds?: number;
2134
2139
  };
2135
2140
  Sandbox: {
@@ -2140,10 +2145,11 @@ export interface components {
2140
2145
  status: components["schemas"]["SandboxState"];
2141
2146
  vcpu_count: number;
2142
2147
  mem_size_mib: number;
2143
- /** @description Lifetime budget applied independently to each powered-on session. Expiry pauses the sandbox, preserving memory and processes for resume. Defaults to 24 hours, or to the longest session the plan allows; a start, resume or fork lowers a stored value the plan no longer allows. The timeout endpoint can move the deadline, but no session runs longer than 24 hours. */
2148
+ /** @description Lifetime budget applied independently to each powered-on session. Expiry pauses or deletes the sandbox, per `on_timeout`. Defaults to 24 hours, or to the longest session the plan allows; a start, resume or fork lowers a stored value the plan no longer allows. The timeout endpoint can move the deadline, but no session runs longer than 24 hours. */
2144
2149
  max_ttl_seconds: number;
2145
- /** @description Seconds without a direct process connection before the sandbox pauses, preserving memory and processes for resume. Zero disables idle expiry. */
2150
+ /** @description Seconds without a direct process connection before the sandbox pauses or is deleted, per `on_timeout`. Zero disables idle expiry. */
2146
2151
  idle_ttl_seconds: number;
2152
+ on_timeout?: components["schemas"]["SandboxTimeoutAction"];
2147
2153
  /** @description Maximum number of concurrently attached process sessions. Detached processes and one-shot process controls do not count. */
2148
2154
  max_concurrent_execs: number;
2149
2155
  /** @description OCI reference requested when the sandbox was created. Empty for a sandbox created from `image_id`. */
@@ -2401,15 +2407,20 @@ export interface components {
2401
2407
  /** @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. */
2402
2408
  mounts?: components["schemas"]["SandboxMount"][];
2403
2409
  /**
2404
- * @description Lifetime budget applied independently to each powered-on session. Expiry pauses the sandbox, preserving memory and processes for resume. An omitted value is lowered to the longest session the plan allows for the sandbox's size (its session ceiling, then the remaining monthly allowance); an explicit value past that is refused with 403 (`sandbox_ttl_limit_exceeded` or `allowance_insufficient`).
2410
+ * @description Lifetime budget applied independently to each powered-on session. Expiry pauses or deletes the sandbox, per `on_timeout`. An omitted value is lowered to the longest session the plan allows for the sandbox's size (its session ceiling, then the remaining monthly allowance); an explicit value past that is refused with 403 (`sandbox_ttl_limit_exceeded` or `allowance_insufficient`).
2405
2411
  * @default 86400
2406
2412
  */
2407
2413
  max_ttl_seconds: number;
2408
2414
  /**
2409
- * @description Pause after this many seconds without a direct process connection, preserving memory and processes for resume. Defaults to 30 minutes; zero disables idle expiry.
2415
+ * @description Pause or delete the sandbox, per `on_timeout`, after this many seconds without a direct process connection. Defaults to 30 minutes; zero disables idle expiry.
2410
2416
  * @default 1800
2411
2417
  */
2412
2418
  idle_ttl_seconds: number;
2419
+ /**
2420
+ * @description Inherited by forks.
2421
+ * @default pause
2422
+ */
2423
+ on_timeout: components["schemas"]["SandboxTimeoutAction"];
2413
2424
  /** @description Maximum number of concurrently attached process sessions. Detached processes and one-shot process controls do not count. */
2414
2425
  max_concurrent_execs?: number;
2415
2426
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archildata/api-types",
3
- "version": "0.0.87",
3
+ "version": "0.0.88",
4
4
  "description": "API types for the Archil control plane",
5
5
  "type": "module",
6
6
  "types": "index.d.ts",