@archildata/api-types 0.0.4 → 0.0.6

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 +28 -19
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -335,10 +335,11 @@ export interface paths {
335
335
  put?: never;
336
336
  /**
337
337
  * Create a sandbox
338
- * @description Provisions a sandbox VM with the requested shape and Archil disks
339
- * mounted. By default the response reports `pending` after the runtime
340
- * accepts the start. Set `wait=true` to hold for `running`; if the wait
341
- * budget expires, the response remains `pending` and startup continues.
338
+ * @description Provisions a sandbox VM with the requested shape and a dedicated,
339
+ * persistent Archil disk. By default the response reports `pending` after
340
+ * the runtime accepts the start. Set `wait=true` to hold for `running`; if
341
+ * the wait budget expires, the response remains `pending` and startup
342
+ * continues.
342
343
  */
343
344
  post: operations["createSandbox"];
344
345
  delete?: never;
@@ -482,6 +483,8 @@ export interface components {
482
483
  success: boolean;
483
484
  /** @example Invalid request parameters */
484
485
  error: string;
486
+ /** @description Stable machine-readable error code. */
487
+ code?: string;
485
488
  };
486
489
  ActivityEvent: {
487
490
  accountId: string;
@@ -582,24 +585,15 @@ export interface components {
582
585
  /** Format: date-time */
583
586
  finished_at?: string;
584
587
  };
585
- SandboxMount: {
586
- disk_id: string;
587
- /** @description Mount point relative to the sandbox's archil root. May be omitted when the sandbox mounts a single disk. */
588
- relative_path?: string;
589
- /** @description Expose this subdirectory of the disk instead of its root */
590
- subdirectory?: string;
591
- /** @description Writes against the mountpoint fail with EROFS */
592
- read_only?: boolean;
593
- /** @description Mount in shared mode, allowing concurrent writers on other clients. Defaults to true. */
594
- shared?: boolean;
595
- region?: string;
596
- };
597
588
  CreateSandboxRequest: {
598
589
  vcpu_count?: number;
599
590
  mem_size_mib?: number;
600
591
  kernel?: string;
601
- base_image?: string;
602
- archil_mounts?: components["schemas"]["SandboxMount"][];
592
+ /**
593
+ * @description Base image for the sandbox root. Currently only `ubuntu:26.04` is supported.
594
+ * @default ubuntu:26.04
595
+ */
596
+ base_image: string;
603
597
  port_mappings?: components["schemas"]["SandboxPortMapping"][];
604
598
  /** @description Environment variables applied to every exec */
605
599
  env?: {
@@ -1558,7 +1552,13 @@ export interface operations {
1558
1552
  };
1559
1553
  400: components["responses"]["ValidationError"];
1560
1554
  401: components["responses"]["Unauthorized"];
1561
- /** @description Access denied (e.g., preview region not enabled) */
1555
+ /**
1556
+ * @description Access denied. `code` is `disk_limit_reached` (free personal
1557
+ * accounts have a per-region disk limit) or
1558
+ * `organization_plan_required` (free organizations cannot create
1559
+ * disks until upgraded to Team or Enterprise). Preview-region
1560
+ * denials carry no `code`.
1561
+ */
1562
1562
  403: {
1563
1563
  headers: {
1564
1564
  [name: string]: unknown;
@@ -1577,6 +1577,15 @@ export interface operations {
1577
1577
  };
1578
1578
  };
1579
1579
  500: components["responses"]["InternalError"];
1580
+ /** @description Temporarily unavailable; safe to retry. */
1581
+ 503: {
1582
+ headers: {
1583
+ [name: string]: unknown;
1584
+ };
1585
+ content: {
1586
+ "application/json": components["schemas"]["ErrorResponse"];
1587
+ };
1588
+ };
1580
1589
  };
1581
1590
  };
1582
1591
  getDisk: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archildata/api-types",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "description": "API types for the Archil control plane",
5
5
  "type": "module",
6
6
  "types": "index.d.ts",