@archildata/api-types 0.0.92 → 0.0.94

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 +21 -1
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -920,7 +920,7 @@ export interface paths {
920
920
  };
921
921
  /**
922
922
  * List sandboxes
923
- * @description All the account's sandboxes, oldest first.
923
+ * @description The account's sandboxes, oldest first, keeping only those that match every filter given. With `limit`, a page may hold fewer sandboxes than asked while `nextCursor` is set; follow it until it is absent.
924
924
  */
925
925
  get: operations["listSandboxes"];
926
926
  put?: never;
@@ -2185,6 +2185,7 @@ export interface components {
2185
2185
  sandbox_id: string;
2186
2186
  /** @description Sandbox name. */
2187
2187
  name: string;
2188
+ labels?: components["schemas"]["SandboxLabels"];
2188
2189
  status: components["schemas"]["SandboxState"];
2189
2190
  vcpu_count: number;
2190
2191
  mem_size_mib: number;
@@ -2229,6 +2230,10 @@ export interface components {
2229
2230
  */
2230
2231
  checkpoint?: string;
2231
2232
  };
2233
+ /** @description Key-value labels set when the sandbox is created or forked, for finding it later. Keys and values are 1-63 letters, numbers, `.`, `_`, or `-`; keys starting with `archil.`, in any case, are reserved. */
2234
+ SandboxLabels: {
2235
+ [key: string]: string;
2236
+ };
2232
2237
  SandboxMount: {
2233
2238
  disk_id: string;
2234
2239
  /** @description Absolute guest directory to mount at. Required when more than one disk is mounted; a sole mount defaults to /mnt/archil. Guest system directories (/usr, /etc, /var, /opt, ...) are reserved, and a disk can be mounted once per sandbox. */
@@ -2453,6 +2458,7 @@ export interface components {
2453
2458
  env?: {
2454
2459
  [key: string]: string;
2455
2460
  };
2461
+ labels?: components["schemas"]["SandboxLabels"];
2456
2462
  network?: components["schemas"]["SandboxNetwork"];
2457
2463
  /** @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. */
2458
2464
  mounts?: components["schemas"]["SandboxMount"][];
@@ -2481,6 +2487,8 @@ export interface components {
2481
2487
  ForkSandboxRequest: {
2482
2488
  /** @description Name for the fork. A random word-list name is generated when omitted. */
2483
2489
  name?: string;
2490
+ /** @description Labels for the fork. Omit to keep the source's labels; an empty object clears them. */
2491
+ labels?: components["schemas"]["SandboxLabels"];
2484
2492
  /**
2485
2493
  * @description Fork this checkpoint of the source, as returned by pause, stop, or
2486
2494
  * describe, instead of the source's live state. The source is neither
@@ -2496,6 +2504,8 @@ export interface components {
2496
2504
  data: {
2497
2505
  sandboxes?: components["schemas"]["Sandbox"][];
2498
2506
  };
2507
+ /** @description Set when more sandboxes may remain. */
2508
+ nextCursor?: string;
2499
2509
  };
2500
2510
  CreateDiskRequest: {
2501
2511
  /**
@@ -5454,6 +5464,16 @@ export interface operations {
5454
5464
  query?: {
5455
5465
  /** @description Only sandboxes that mount this disk */
5456
5466
  filesystem?: string;
5467
+ /** @description Only sandboxes with this label, given as `key=value`. Repeat to require several. */
5468
+ label?: string[];
5469
+ /** @description Only the sandbox with this name. */
5470
+ name?: string;
5471
+ /** @description Only sandboxes whose name starts with this. */
5472
+ name_prefix?: string;
5473
+ /** @description Maximum number of items to return. Omit to return all items in a single unpaginated response; when set, the response may include a nextCursor to fetch the next page. */
5474
+ limit?: components["parameters"]["Limit"];
5475
+ /** @description Pagination cursor from a previous response */
5476
+ cursor?: components["parameters"]["Cursor"];
5457
5477
  };
5458
5478
  header?: never;
5459
5479
  path?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archildata/api-types",
3
- "version": "0.0.92",
3
+ "version": "0.0.94",
4
4
  "description": "Public API types for Archil",
5
5
  "type": "module",
6
6
  "types": "index.d.ts",