@archildata/api-types 0.0.14 → 0.0.15
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 +75 -0
- 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} */
|
|
@@ -2332,6 +2372,41 @@ export interface operations {
|
|
|
2332
2372
|
500: components["responses"]["InternalError"];
|
|
2333
2373
|
};
|
|
2334
2374
|
};
|
|
2375
|
+
createSandboxConnection: {
|
|
2376
|
+
parameters: {
|
|
2377
|
+
query?: never;
|
|
2378
|
+
header?: never;
|
|
2379
|
+
path: {
|
|
2380
|
+
/** @description Sandbox UUID */
|
|
2381
|
+
sid: components["parameters"]["SandboxId"];
|
|
2382
|
+
};
|
|
2383
|
+
cookie?: never;
|
|
2384
|
+
};
|
|
2385
|
+
requestBody?: never;
|
|
2386
|
+
responses: {
|
|
2387
|
+
/** @description A short-lived direct connection URL */
|
|
2388
|
+
200: {
|
|
2389
|
+
headers: {
|
|
2390
|
+
[name: string]: unknown;
|
|
2391
|
+
};
|
|
2392
|
+
content: {
|
|
2393
|
+
"application/json": components["schemas"]["ApiResponse_SandboxConnection"];
|
|
2394
|
+
};
|
|
2395
|
+
};
|
|
2396
|
+
401: components["responses"]["Unauthorized"];
|
|
2397
|
+
404: components["responses"]["NotFound"];
|
|
2398
|
+
/** @description The sandbox is not running */
|
|
2399
|
+
409: {
|
|
2400
|
+
headers: {
|
|
2401
|
+
[name: string]: unknown;
|
|
2402
|
+
};
|
|
2403
|
+
content: {
|
|
2404
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
2405
|
+
};
|
|
2406
|
+
};
|
|
2407
|
+
500: components["responses"]["InternalError"];
|
|
2408
|
+
};
|
|
2409
|
+
};
|
|
2335
2410
|
listSandboxExecs: {
|
|
2336
2411
|
parameters: {
|
|
2337
2412
|
query?: never;
|