@archildata/api-types 0.0.11 → 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 +52 -2
  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
  /**
@@ -2147,6 +2155,15 @@ export interface operations {
2147
2155
  };
2148
2156
  400: components["responses"]["ValidationError"];
2149
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
+ };
2150
2167
  /** @description Sandbox capacity reached */
2151
2168
  429: {
2152
2169
  headers: {
@@ -2185,6 +2202,39 @@ export interface operations {
2185
2202
  500: components["responses"]["InternalError"];
2186
2203
  };
2187
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
+ };
2188
2238
  listSandboxExecs: {
2189
2239
  parameters: {
2190
2240
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archildata/api-types",
3
- "version": "0.0.11",
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",