@archildata/api-types 0.0.10 → 0.0.12

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 +59 -4
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -359,7 +359,11 @@ export interface paths {
359
359
  get: operations["getSandbox"];
360
360
  put?: never;
361
361
  post?: never;
362
- delete?: never;
362
+ /**
363
+ * Delete a sandbox
364
+ * @description Permanently deletes a stopped, exited, or failed sandbox.
365
+ */
366
+ delete: operations["deleteSandbox"];
363
367
  options?: never;
364
368
  head?: never;
365
369
  patch?: never;
@@ -580,10 +584,12 @@ export interface components {
580
584
  };
581
585
  };
582
586
  /** @enum {string} */
583
- SandboxState: "pending" | "running" | "pausing" | "paused" | "stopping" | "stopped" | "exited" | "failed";
587
+ SandboxState: "pending" | "running" | "pausing" | "paused" | "stopping" | "stopped" | "exited" | "failed" | "deleting" | "deleted";
584
588
  Sandbox: {
585
589
  /** Format: uuid */
586
590
  sandbox_id: string;
591
+ /** @description Sandbox name. */
592
+ name: string;
587
593
  status: components["schemas"]["SandboxState"];
588
594
  vcpu_count: number;
589
595
  mem_size_mib: number;
@@ -648,6 +654,8 @@ export interface components {
648
654
  finished_at?: string;
649
655
  };
650
656
  CreateSandboxRequest: {
657
+ /** @description Sandbox name, unique within the account. A random word-list name is generated when omitted. */
658
+ name?: string;
651
659
  vcpu_count?: number;
652
660
  mem_size_mib?: number;
653
661
  /**
@@ -988,9 +996,14 @@ export interface components {
988
996
  lastAccessed?: string;
989
997
  /**
990
998
  * Format: int64
991
- * @description Total data size in bytes
999
+ * @description Active data size in bytes (data in high-speed cache)
992
1000
  */
993
- dataSize?: number;
1001
+ activeDataBytes?: number;
1002
+ /**
1003
+ * Format: int64
1004
+ * @description Total logical data written to the disk in bytes
1005
+ */
1006
+ totalDataBytes?: number;
994
1007
  /** @description Monthly usage amount formatted as a currency string (e.g., "$1.23") */
995
1008
  monthlyUsage?: string;
996
1009
  mounts?: components["schemas"]["MountResponse"][];
@@ -2142,6 +2155,15 @@ export interface operations {
2142
2155
  };
2143
2156
  400: components["responses"]["ValidationError"];
2144
2157
  401: components["responses"]["Unauthorized"];
2158
+ /** @description The requested sandbox name already exists in the account */
2159
+ 409: {
2160
+ headers: {
2161
+ [name: string]: unknown;
2162
+ };
2163
+ content: {
2164
+ "application/json": components["schemas"]["ErrorResponse"];
2165
+ };
2166
+ };
2145
2167
  /** @description Sandbox capacity reached */
2146
2168
  429: {
2147
2169
  headers: {
@@ -2180,6 +2202,39 @@ export interface operations {
2180
2202
  500: components["responses"]["InternalError"];
2181
2203
  };
2182
2204
  };
2205
+ deleteSandbox: {
2206
+ parameters: {
2207
+ query?: never;
2208
+ header?: never;
2209
+ path: {
2210
+ /** @description Sandbox UUID */
2211
+ sid: components["parameters"]["SandboxId"];
2212
+ };
2213
+ cookie?: never;
2214
+ };
2215
+ requestBody?: never;
2216
+ responses: {
2217
+ /** @description The sandbox was deleted */
2218
+ 204: {
2219
+ headers: {
2220
+ [name: string]: unknown;
2221
+ };
2222
+ content?: never;
2223
+ };
2224
+ 401: components["responses"]["Unauthorized"];
2225
+ 404: components["responses"]["NotFound"];
2226
+ /** @description The sandbox must be stopped, exited, or failed before it can be deleted */
2227
+ 409: {
2228
+ headers: {
2229
+ [name: string]: unknown;
2230
+ };
2231
+ content: {
2232
+ "application/json": components["schemas"]["ErrorResponse"];
2233
+ };
2234
+ };
2235
+ 500: components["responses"]["InternalError"];
2236
+ };
2237
+ };
2183
2238
  listSandboxExecs: {
2184
2239
  parameters: {
2185
2240
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archildata/api-types",
3
- "version": "0.0.10",
3
+ "version": "0.0.12",
4
4
  "description": "API types for the Archil control plane",
5
5
  "type": "module",
6
6
  "types": "index.d.ts",