@archildata/api-types 0.0.14 → 0.0.16
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 +79 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -390,6 +390,35 @@ export interface paths {
|
|
|
390
390
|
patch?: never;
|
|
391
391
|
trace?: never;
|
|
392
392
|
};
|
|
393
|
+
"/api/sandboxes/{sid}/connections": {
|
|
394
|
+
parameters: {
|
|
395
|
+
query?: never;
|
|
396
|
+
header?: never;
|
|
397
|
+
path?: never;
|
|
398
|
+
cookie?: never;
|
|
399
|
+
};
|
|
400
|
+
get?: never;
|
|
401
|
+
put?: never;
|
|
402
|
+
/**
|
|
403
|
+
* Create a direct sandbox connection
|
|
404
|
+
* @description Returns a short-lived WebSocket URL for an interactive shell in a
|
|
405
|
+
* running sandbox. Connecting starts `/bin/sh` with a PTY. The connection
|
|
406
|
+
* has no stored history or reconnect support.
|
|
407
|
+
*
|
|
408
|
+
* The URL contains a signed token that expires at `expires_at`. An open
|
|
409
|
+
* WebSocket can remain connected after the token expires. Clients send
|
|
410
|
+
* input as `{"type":"input","data":"..."}` and terminal size changes as
|
|
411
|
+
* `{"type":"resize","rows":24,"cols":80}`. The server returns terminal
|
|
412
|
+
* output as text frames. Closing the WebSocket ends the shell. Pausing or
|
|
413
|
+
* stopping the sandbox also closes the connection.
|
|
414
|
+
*/
|
|
415
|
+
post: operations["createSandboxConnection"];
|
|
416
|
+
delete?: never;
|
|
417
|
+
options?: never;
|
|
418
|
+
head?: never;
|
|
419
|
+
patch?: never;
|
|
420
|
+
trace?: never;
|
|
421
|
+
};
|
|
393
422
|
"/api/sandboxes/{sid}/execs": {
|
|
394
423
|
parameters: {
|
|
395
424
|
query?: never;
|
|
@@ -669,6 +698,17 @@ export interface components {
|
|
|
669
698
|
port: number;
|
|
670
699
|
hostname: string;
|
|
671
700
|
};
|
|
701
|
+
SandboxConnection: {
|
|
702
|
+
/** Format: uri */
|
|
703
|
+
url: string;
|
|
704
|
+
/** Format: date-time */
|
|
705
|
+
expires_at: string;
|
|
706
|
+
};
|
|
707
|
+
ApiResponse_SandboxConnection: {
|
|
708
|
+
/** @example true */
|
|
709
|
+
success: boolean;
|
|
710
|
+
data: components["schemas"]["SandboxConnection"];
|
|
711
|
+
};
|
|
672
712
|
SandboxPortMapping: {
|
|
673
713
|
container_port: number;
|
|
674
714
|
/** @enum {string} */
|
|
@@ -702,8 +742,10 @@ export interface components {
|
|
|
702
742
|
CreateSandboxRequest: {
|
|
703
743
|
/** @description Sandbox name, unique within the account. A random word-list name is generated when omitted. */
|
|
704
744
|
name?: string;
|
|
705
|
-
|
|
706
|
-
|
|
745
|
+
/** @default 1 */
|
|
746
|
+
vcpu_count: number;
|
|
747
|
+
/** @default 2048 */
|
|
748
|
+
mem_size_mib: number;
|
|
707
749
|
/**
|
|
708
750
|
* @description Public Linux OCI image reference. Docker shorthand and tags are accepted; the selected platform manifest is pinned at creation.
|
|
709
751
|
* @default ubuntu:26.04
|
|
@@ -2332,6 +2374,41 @@ export interface operations {
|
|
|
2332
2374
|
500: components["responses"]["InternalError"];
|
|
2333
2375
|
};
|
|
2334
2376
|
};
|
|
2377
|
+
createSandboxConnection: {
|
|
2378
|
+
parameters: {
|
|
2379
|
+
query?: never;
|
|
2380
|
+
header?: never;
|
|
2381
|
+
path: {
|
|
2382
|
+
/** @description Sandbox UUID */
|
|
2383
|
+
sid: components["parameters"]["SandboxId"];
|
|
2384
|
+
};
|
|
2385
|
+
cookie?: never;
|
|
2386
|
+
};
|
|
2387
|
+
requestBody?: never;
|
|
2388
|
+
responses: {
|
|
2389
|
+
/** @description A short-lived direct connection URL */
|
|
2390
|
+
200: {
|
|
2391
|
+
headers: {
|
|
2392
|
+
[name: string]: unknown;
|
|
2393
|
+
};
|
|
2394
|
+
content: {
|
|
2395
|
+
"application/json": components["schemas"]["ApiResponse_SandboxConnection"];
|
|
2396
|
+
};
|
|
2397
|
+
};
|
|
2398
|
+
401: components["responses"]["Unauthorized"];
|
|
2399
|
+
404: components["responses"]["NotFound"];
|
|
2400
|
+
/** @description The sandbox is not running */
|
|
2401
|
+
409: {
|
|
2402
|
+
headers: {
|
|
2403
|
+
[name: string]: unknown;
|
|
2404
|
+
};
|
|
2405
|
+
content: {
|
|
2406
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
2407
|
+
};
|
|
2408
|
+
};
|
|
2409
|
+
500: components["responses"]["InternalError"];
|
|
2410
|
+
};
|
|
2411
|
+
};
|
|
2335
2412
|
listSandboxExecs: {
|
|
2336
2413
|
parameters: {
|
|
2337
2414
|
query?: never;
|