@archildata/api-types 0.0.11 → 0.0.13
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.
- package/index.d.ts +120 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -248,6 +248,27 @@ export interface paths {
|
|
|
248
248
|
patch?: never;
|
|
249
249
|
trace?: never;
|
|
250
250
|
};
|
|
251
|
+
"/api/disks/{id}/share": {
|
|
252
|
+
parameters: {
|
|
253
|
+
query?: never;
|
|
254
|
+
header?: never;
|
|
255
|
+
path?: never;
|
|
256
|
+
cookie?: never;
|
|
257
|
+
};
|
|
258
|
+
get?: never;
|
|
259
|
+
put?: never;
|
|
260
|
+
/**
|
|
261
|
+
* Create a share URL for a file
|
|
262
|
+
* @description Creates a signed, time-limited URL for downloading a file without
|
|
263
|
+
* authentication. The URL expires after 24 hours by default.
|
|
264
|
+
*/
|
|
265
|
+
post: operations["createShareUrl"];
|
|
266
|
+
delete?: never;
|
|
267
|
+
options?: never;
|
|
268
|
+
head?: never;
|
|
269
|
+
patch?: never;
|
|
270
|
+
trace?: never;
|
|
271
|
+
};
|
|
251
272
|
"/api/exec": {
|
|
252
273
|
parameters: {
|
|
253
274
|
query?: never;
|
|
@@ -359,7 +380,11 @@ export interface paths {
|
|
|
359
380
|
get: operations["getSandbox"];
|
|
360
381
|
put?: never;
|
|
361
382
|
post?: never;
|
|
362
|
-
|
|
383
|
+
/**
|
|
384
|
+
* Delete a sandbox
|
|
385
|
+
* @description Permanently deletes a stopped, exited, or failed sandbox.
|
|
386
|
+
*/
|
|
387
|
+
delete: operations["deleteSandbox"];
|
|
363
388
|
options?: never;
|
|
364
389
|
head?: never;
|
|
365
390
|
patch?: never;
|
|
@@ -580,10 +605,12 @@ export interface components {
|
|
|
580
605
|
};
|
|
581
606
|
};
|
|
582
607
|
/** @enum {string} */
|
|
583
|
-
SandboxState: "pending" | "running" | "pausing" | "paused" | "stopping" | "stopped" | "exited" | "failed";
|
|
608
|
+
SandboxState: "pending" | "running" | "pausing" | "paused" | "stopping" | "stopped" | "exited" | "failed" | "deleting" | "deleted";
|
|
584
609
|
Sandbox: {
|
|
585
610
|
/** Format: uuid */
|
|
586
611
|
sandbox_id: string;
|
|
612
|
+
/** @description Sandbox name. */
|
|
613
|
+
name: string;
|
|
587
614
|
status: components["schemas"]["SandboxState"];
|
|
588
615
|
vcpu_count: number;
|
|
589
616
|
mem_size_mib: number;
|
|
@@ -648,6 +675,8 @@ export interface components {
|
|
|
648
675
|
finished_at?: string;
|
|
649
676
|
};
|
|
650
677
|
CreateSandboxRequest: {
|
|
678
|
+
/** @description Sandbox name, unique within the account. A random word-list name is generated when omitted. */
|
|
679
|
+
name?: string;
|
|
651
680
|
vcpu_count?: number;
|
|
652
681
|
mem_size_mib?: number;
|
|
653
682
|
/**
|
|
@@ -1143,6 +1172,22 @@ export interface components {
|
|
|
1143
1172
|
success: boolean;
|
|
1144
1173
|
data: components["schemas"]["AuthorizedUser"];
|
|
1145
1174
|
};
|
|
1175
|
+
CreateShareUrlRequest: {
|
|
1176
|
+
/** @description File key within the disk. */
|
|
1177
|
+
key: string;
|
|
1178
|
+
/** @description URL lifetime in seconds. Defaults to 86400 (24 hours). */
|
|
1179
|
+
expiresIn?: number;
|
|
1180
|
+
};
|
|
1181
|
+
ApiResponse_ShareUrl: {
|
|
1182
|
+
/** @example true */
|
|
1183
|
+
success: boolean;
|
|
1184
|
+
data: {
|
|
1185
|
+
/** Format: uri */
|
|
1186
|
+
url: string;
|
|
1187
|
+
/** @description URL lifetime in seconds. */
|
|
1188
|
+
expiresIn: number;
|
|
1189
|
+
};
|
|
1190
|
+
};
|
|
1146
1191
|
ApiResponse_AllowedIPs: {
|
|
1147
1192
|
/** @example true */
|
|
1148
1193
|
success: boolean;
|
|
@@ -1977,6 +2022,37 @@ export interface operations {
|
|
|
1977
2022
|
500: components["responses"]["InternalError"];
|
|
1978
2023
|
};
|
|
1979
2024
|
};
|
|
2025
|
+
createShareUrl: {
|
|
2026
|
+
parameters: {
|
|
2027
|
+
query?: never;
|
|
2028
|
+
header?: never;
|
|
2029
|
+
path: {
|
|
2030
|
+
/** @description Disk ID (format `dsk-{16 hex chars}`) */
|
|
2031
|
+
id: components["parameters"]["DiskId"];
|
|
2032
|
+
};
|
|
2033
|
+
cookie?: never;
|
|
2034
|
+
};
|
|
2035
|
+
requestBody: {
|
|
2036
|
+
content: {
|
|
2037
|
+
"application/json": components["schemas"]["CreateShareUrlRequest"];
|
|
2038
|
+
};
|
|
2039
|
+
};
|
|
2040
|
+
responses: {
|
|
2041
|
+
/** @description Share URL created */
|
|
2042
|
+
200: {
|
|
2043
|
+
headers: {
|
|
2044
|
+
[name: string]: unknown;
|
|
2045
|
+
};
|
|
2046
|
+
content: {
|
|
2047
|
+
"application/json": components["schemas"]["ApiResponse_ShareUrl"];
|
|
2048
|
+
};
|
|
2049
|
+
};
|
|
2050
|
+
400: components["responses"]["ValidationError"];
|
|
2051
|
+
401: components["responses"]["Unauthorized"];
|
|
2052
|
+
404: components["responses"]["NotFound"];
|
|
2053
|
+
500: components["responses"]["InternalError"];
|
|
2054
|
+
};
|
|
2055
|
+
};
|
|
1980
2056
|
exec: {
|
|
1981
2057
|
parameters: {
|
|
1982
2058
|
query?: never;
|
|
@@ -2147,6 +2223,15 @@ export interface operations {
|
|
|
2147
2223
|
};
|
|
2148
2224
|
400: components["responses"]["ValidationError"];
|
|
2149
2225
|
401: components["responses"]["Unauthorized"];
|
|
2226
|
+
/** @description The requested sandbox name already exists in the account */
|
|
2227
|
+
409: {
|
|
2228
|
+
headers: {
|
|
2229
|
+
[name: string]: unknown;
|
|
2230
|
+
};
|
|
2231
|
+
content: {
|
|
2232
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
2233
|
+
};
|
|
2234
|
+
};
|
|
2150
2235
|
/** @description Sandbox capacity reached */
|
|
2151
2236
|
429: {
|
|
2152
2237
|
headers: {
|
|
@@ -2185,6 +2270,39 @@ export interface operations {
|
|
|
2185
2270
|
500: components["responses"]["InternalError"];
|
|
2186
2271
|
};
|
|
2187
2272
|
};
|
|
2273
|
+
deleteSandbox: {
|
|
2274
|
+
parameters: {
|
|
2275
|
+
query?: never;
|
|
2276
|
+
header?: never;
|
|
2277
|
+
path: {
|
|
2278
|
+
/** @description Sandbox UUID */
|
|
2279
|
+
sid: components["parameters"]["SandboxId"];
|
|
2280
|
+
};
|
|
2281
|
+
cookie?: never;
|
|
2282
|
+
};
|
|
2283
|
+
requestBody?: never;
|
|
2284
|
+
responses: {
|
|
2285
|
+
/** @description The sandbox was deleted */
|
|
2286
|
+
204: {
|
|
2287
|
+
headers: {
|
|
2288
|
+
[name: string]: unknown;
|
|
2289
|
+
};
|
|
2290
|
+
content?: never;
|
|
2291
|
+
};
|
|
2292
|
+
401: components["responses"]["Unauthorized"];
|
|
2293
|
+
404: components["responses"]["NotFound"];
|
|
2294
|
+
/** @description The sandbox must be stopped, exited, or failed before it can be deleted */
|
|
2295
|
+
409: {
|
|
2296
|
+
headers: {
|
|
2297
|
+
[name: string]: unknown;
|
|
2298
|
+
};
|
|
2299
|
+
content: {
|
|
2300
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
2301
|
+
};
|
|
2302
|
+
};
|
|
2303
|
+
500: components["responses"]["InternalError"];
|
|
2304
|
+
};
|
|
2305
|
+
};
|
|
2188
2306
|
listSandboxExecs: {
|
|
2189
2307
|
parameters: {
|
|
2190
2308
|
query?: never;
|