@archildata/api-types 0.0.86 → 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 +22 -10
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -602,7 +602,7 @@ export interface paths {
602
602
  get: operations["getAllowedIPs"];
603
603
  /**
604
604
  * Set IP allowlist
605
- * @description Replaces the IP allowlist for a disk. When non-empty, only clients connecting from listed IPs or CIDR ranges can mount the disk. Pass an empty array to remove all restrictions.
605
+ * @description Replaces the IP allowlist for a disk. When non-empty, only clients connecting from listed IPs or CIDR ranges can mount the disk. Pass an empty array to remove all restrictions. Changes to allowed IPs can take up to one minute to fully propagate everywhere. The saved and returned allowlist is always current, but dependent APIs may still enforce the previous list until their cached state refreshes. This includes restrictions and removals; excluded IPs may retain access during this time.
606
606
  */
607
607
  put: operations["setAllowedIPs"];
608
608
  post?: never;
@@ -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
  };
@@ -2445,7 +2456,7 @@ export interface components {
2445
2456
  /** @description Storage mount to attach. Omit for archil-managed storage. */
2446
2457
  mounts?: components["schemas"]["MountConfig"][];
2447
2458
  /**
2448
- * @description IP allowlist for mount access. When non-empty, only clients connecting from these IPs or CIDR ranges can mount the disk. An empty list (default) allows all IPs.
2459
+ * @description IP allowlist for mount access. When non-empty, only clients connecting from these IPs or CIDR ranges can mount the disk. An empty list (default) allows all IPs. Changes to allowed IPs can take up to one minute to fully propagate everywhere. The saved and returned allowlist is always current, but dependent APIs may still enforce the previous list until their cached state refreshes. This includes restrictions and removals; excluded IPs may retain access during this time.
2449
2460
  * @example [
2450
2461
  * "203.0.113.0/24",
2451
2462
  * "198.51.100.42"
@@ -2789,7 +2800,7 @@ export interface components {
2789
2800
  connectedClients?: components["schemas"]["ConnectedClient"][];
2790
2801
  authorizedUsers?: components["schemas"]["AuthorizedUser"][];
2791
2802
  /**
2792
- * @description IP allowlist for mount access. Empty means all IPs are allowed.
2803
+ * @description IP allowlist for mount access. Empty means all IPs are allowed. Changes to allowed IPs can take up to one minute to fully propagate everywhere. The saved and returned allowlist is always current, but dependent APIs may still enforce the previous list until their cached state refreshes. This includes restrictions and removals; excluded IPs may retain access during this time.
2793
2804
  * @example [
2794
2805
  * "203.0.113.0/24"
2795
2806
  * ]
@@ -2962,6 +2973,7 @@ export interface components {
2962
2973
  success: boolean;
2963
2974
  data: {
2964
2975
  /**
2976
+ * @description Configured IP allowlist. Empty means all IPs are allowed. Changes to allowed IPs can take up to one minute to fully propagate everywhere. The saved and returned allowlist is always current, but dependent APIs may still enforce the previous list until their cached state refreshes. This includes restrictions and removals; excluded IPs may retain access during this time.
2965
2977
  * @example [
2966
2978
  * "203.0.113.0/24",
2967
2979
  * "198.51.100.42"
@@ -4908,7 +4920,7 @@ export interface operations {
4908
4920
  content: {
4909
4921
  "application/json": {
4910
4922
  /**
4911
- * @description List of IPs or CIDR ranges. Empty array removes restrictions.
4923
+ * @description List of IPs or CIDR ranges. Empty array removes restrictions. Changes to allowed IPs can take up to one minute to fully propagate everywhere. The saved and returned allowlist is always current, but dependent APIs may still enforce the previous list until their cached state refreshes. This includes restrictions and removals; excluded IPs may retain access during this time.
4912
4924
  * @example [
4913
4925
  * "203.0.113.0/24",
4914
4926
  * "198.51.100.42"
@@ -4919,7 +4931,7 @@ export interface operations {
4919
4931
  };
4920
4932
  };
4921
4933
  responses: {
4922
- /** @description Allowlist updated */
4934
+ /** @description Current saved allowlist; dependent APIs may take up to one minute to enforce changes. */
4923
4935
  200: {
4924
4936
  headers: {
4925
4937
  [name: string]: unknown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archildata/api-types",
3
- "version": "0.0.86",
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",