@archildata/api-types 0.0.5 → 0.0.7

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 +23 -2
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -483,6 +483,8 @@ export interface components {
483
483
  success: boolean;
484
484
  /** @example Invalid request parameters */
485
485
  error: string;
486
+ /** @description Stable machine-readable error code. */
487
+ code?: string;
486
488
  };
487
489
  ActivityEvent: {
488
490
  accountId: string;
@@ -537,7 +539,7 @@ export interface components {
537
539
  /** @description Full lifetime budget applied independently to each powered-on session. */
538
540
  max_ttl_seconds: number;
539
541
  max_concurrent_execs: number;
540
- port_mappings?: components["schemas"]["SandboxPortMapping"][];
542
+ endpoints?: components["schemas"]["SandboxEndpoint"][];
541
543
  /** Format: date-time */
542
544
  created_at: string;
543
545
  /** Format: date-time */
@@ -553,6 +555,10 @@ export interface components {
553
555
  expires_at?: string;
554
556
  exit_reason?: string;
555
557
  };
558
+ SandboxEndpoint: {
559
+ port: number;
560
+ hostname: string;
561
+ };
556
562
  SandboxPortMapping: {
557
563
  container_port: number;
558
564
  /** @enum {string} */
@@ -1550,7 +1556,13 @@ export interface operations {
1550
1556
  };
1551
1557
  400: components["responses"]["ValidationError"];
1552
1558
  401: components["responses"]["Unauthorized"];
1553
- /** @description Access denied (e.g., preview region not enabled) */
1559
+ /**
1560
+ * @description Access denied. `code` is `disk_limit_reached` (free personal
1561
+ * accounts have a per-region disk limit) or
1562
+ * `organization_plan_required` (free organizations cannot create
1563
+ * disks until upgraded to Team or Enterprise). Preview-region
1564
+ * denials carry no `code`.
1565
+ */
1554
1566
  403: {
1555
1567
  headers: {
1556
1568
  [name: string]: unknown;
@@ -1569,6 +1581,15 @@ export interface operations {
1569
1581
  };
1570
1582
  };
1571
1583
  500: components["responses"]["InternalError"];
1584
+ /** @description Temporarily unavailable; safe to retry. */
1585
+ 503: {
1586
+ headers: {
1587
+ [name: string]: unknown;
1588
+ };
1589
+ content: {
1590
+ "application/json": components["schemas"]["ErrorResponse"];
1591
+ };
1592
+ };
1572
1593
  };
1573
1594
  };
1574
1595
  getDisk: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archildata/api-types",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "API types for the Archil control plane",
5
5
  "type": "module",
6
6
  "types": "index.d.ts",