@archildata/api-types 0.0.32 → 0.0.34
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 +155 -8
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -412,6 +412,50 @@ export interface paths {
|
|
|
412
412
|
patch?: never;
|
|
413
413
|
trace?: never;
|
|
414
414
|
};
|
|
415
|
+
"/api/sandboxes/{sid}/ports": {
|
|
416
|
+
parameters: {
|
|
417
|
+
query?: never;
|
|
418
|
+
header?: never;
|
|
419
|
+
path?: never;
|
|
420
|
+
cookie?: never;
|
|
421
|
+
};
|
|
422
|
+
/**
|
|
423
|
+
* List exposed sandbox ports
|
|
424
|
+
* @description Lists the explicitly exposed public ports for the sandbox.
|
|
425
|
+
*/
|
|
426
|
+
get: operations["listSandboxPorts"];
|
|
427
|
+
put?: never;
|
|
428
|
+
post?: never;
|
|
429
|
+
delete?: never;
|
|
430
|
+
options?: never;
|
|
431
|
+
head?: never;
|
|
432
|
+
patch?: never;
|
|
433
|
+
trace?: never;
|
|
434
|
+
};
|
|
435
|
+
"/api/sandboxes/{sid}/ports/{port}": {
|
|
436
|
+
parameters: {
|
|
437
|
+
query?: never;
|
|
438
|
+
header?: never;
|
|
439
|
+
path?: never;
|
|
440
|
+
cookie?: never;
|
|
441
|
+
};
|
|
442
|
+
get?: never;
|
|
443
|
+
/**
|
|
444
|
+
* Expose a sandbox port
|
|
445
|
+
* @description Creates or returns public access to a TCP port in the sandbox.
|
|
446
|
+
*/
|
|
447
|
+
put: operations["exposeSandboxPort"];
|
|
448
|
+
post?: never;
|
|
449
|
+
/**
|
|
450
|
+
* Stop exposing a sandbox port
|
|
451
|
+
* @description Removes an explicitly exposed public port. An enabled sandbox service publishing the same TCP port remains publicly reachable.
|
|
452
|
+
*/
|
|
453
|
+
delete: operations["deleteSandboxPort"];
|
|
454
|
+
options?: never;
|
|
455
|
+
head?: never;
|
|
456
|
+
patch?: never;
|
|
457
|
+
trace?: never;
|
|
458
|
+
};
|
|
415
459
|
"/api/sandboxes/{sid}/pause": {
|
|
416
460
|
parameters: {
|
|
417
461
|
query?: never;
|
|
@@ -691,7 +735,7 @@ export interface components {
|
|
|
691
735
|
status: components["schemas"]["SandboxState"];
|
|
692
736
|
vcpu_count: number;
|
|
693
737
|
mem_size_mib: number;
|
|
694
|
-
/** @description
|
|
738
|
+
/** @description Lifetime budget applied independently to each powered-on session. Expiry pauses the sandbox, preserving memory and processes for resume. Defaults to 24 hours and can be reset with the timeout endpoint. */
|
|
695
739
|
max_ttl_seconds: number;
|
|
696
740
|
/** @description Maximum number of concurrently attached process sessions. Detached processes and one-shot process controls do not count. */
|
|
697
741
|
max_concurrent_execs: number;
|
|
@@ -702,6 +746,7 @@ export interface components {
|
|
|
702
746
|
* @enum {string}
|
|
703
747
|
*/
|
|
704
748
|
platform?: "arm64" | "amd64";
|
|
749
|
+
/** @description Public hostnames published by enabled sandbox services. */
|
|
705
750
|
endpoints?: components["schemas"]["SandboxEndpoint"][];
|
|
706
751
|
/** Format: date-time */
|
|
707
752
|
created_at: string;
|
|
@@ -722,6 +767,23 @@ export interface components {
|
|
|
722
767
|
port: number;
|
|
723
768
|
hostname: string;
|
|
724
769
|
};
|
|
770
|
+
SandboxPort: {
|
|
771
|
+
port: number;
|
|
772
|
+
hostname: string;
|
|
773
|
+
};
|
|
774
|
+
SandboxPortList: {
|
|
775
|
+
ports: components["schemas"]["SandboxPort"][];
|
|
776
|
+
};
|
|
777
|
+
ApiResponse_SandboxPort: {
|
|
778
|
+
/** @example true */
|
|
779
|
+
success: boolean;
|
|
780
|
+
data: components["schemas"]["SandboxPort"];
|
|
781
|
+
};
|
|
782
|
+
ApiResponse_SandboxPortList: {
|
|
783
|
+
/** @example true */
|
|
784
|
+
success: boolean;
|
|
785
|
+
data: components["schemas"]["SandboxPortList"];
|
|
786
|
+
};
|
|
725
787
|
SandboxConnection: {
|
|
726
788
|
/** Format: uri */
|
|
727
789
|
url: string;
|
|
@@ -733,11 +795,6 @@ export interface components {
|
|
|
733
795
|
success: boolean;
|
|
734
796
|
data: components["schemas"]["SandboxConnection"];
|
|
735
797
|
};
|
|
736
|
-
SandboxPortMapping: {
|
|
737
|
-
container_port: number;
|
|
738
|
-
/** @enum {string} */
|
|
739
|
-
protocol: "tcp" | "udp";
|
|
740
|
-
};
|
|
741
798
|
ApiResponse_Sandbox: {
|
|
742
799
|
/** @example true */
|
|
743
800
|
success: boolean;
|
|
@@ -760,14 +817,15 @@ export interface components {
|
|
|
760
817
|
* @default ubuntu:26.04
|
|
761
818
|
*/
|
|
762
819
|
base_image: string;
|
|
763
|
-
|
|
820
|
+
/** @description TCP ports to expose publicly when the sandbox is created. */
|
|
821
|
+
ports?: number[];
|
|
764
822
|
/** @description Environment variables applied to every process */
|
|
765
823
|
env?: {
|
|
766
824
|
[key: string]: string;
|
|
767
825
|
};
|
|
768
826
|
network?: components["schemas"]["SandboxNetwork"];
|
|
769
827
|
/**
|
|
770
|
-
* @description Lifetime budget applied independently to each powered-on session
|
|
828
|
+
* @description Lifetime budget applied independently to each powered-on session. Expiry pauses the sandbox, preserving memory and processes for resume.
|
|
771
829
|
* @default 86400
|
|
772
830
|
*/
|
|
773
831
|
max_ttl_seconds: number;
|
|
@@ -2426,6 +2484,95 @@ export interface operations {
|
|
|
2426
2484
|
500: components["responses"]["InternalError"];
|
|
2427
2485
|
};
|
|
2428
2486
|
};
|
|
2487
|
+
listSandboxPorts: {
|
|
2488
|
+
parameters: {
|
|
2489
|
+
query?: never;
|
|
2490
|
+
header?: never;
|
|
2491
|
+
path: {
|
|
2492
|
+
/** @description Sandbox UUID */
|
|
2493
|
+
sid: components["parameters"]["SandboxId"];
|
|
2494
|
+
};
|
|
2495
|
+
cookie?: never;
|
|
2496
|
+
};
|
|
2497
|
+
requestBody?: never;
|
|
2498
|
+
responses: {
|
|
2499
|
+
/** @description Exposed sandbox ports */
|
|
2500
|
+
200: {
|
|
2501
|
+
headers: {
|
|
2502
|
+
[name: string]: unknown;
|
|
2503
|
+
};
|
|
2504
|
+
content: {
|
|
2505
|
+
"application/json": components["schemas"]["ApiResponse_SandboxPortList"];
|
|
2506
|
+
};
|
|
2507
|
+
};
|
|
2508
|
+
401: components["responses"]["Unauthorized"];
|
|
2509
|
+
404: components["responses"]["NotFound"];
|
|
2510
|
+
500: components["responses"]["InternalError"];
|
|
2511
|
+
};
|
|
2512
|
+
};
|
|
2513
|
+
exposeSandboxPort: {
|
|
2514
|
+
parameters: {
|
|
2515
|
+
query?: never;
|
|
2516
|
+
header?: never;
|
|
2517
|
+
path: {
|
|
2518
|
+
/** @description Sandbox UUID */
|
|
2519
|
+
sid: components["parameters"]["SandboxId"];
|
|
2520
|
+
port: number;
|
|
2521
|
+
};
|
|
2522
|
+
cookie?: never;
|
|
2523
|
+
};
|
|
2524
|
+
requestBody?: never;
|
|
2525
|
+
responses: {
|
|
2526
|
+
/** @description Existing exposed port */
|
|
2527
|
+
200: {
|
|
2528
|
+
headers: {
|
|
2529
|
+
[name: string]: unknown;
|
|
2530
|
+
};
|
|
2531
|
+
content: {
|
|
2532
|
+
"application/json": components["schemas"]["ApiResponse_SandboxPort"];
|
|
2533
|
+
};
|
|
2534
|
+
};
|
|
2535
|
+
/** @description Port was exposed */
|
|
2536
|
+
201: {
|
|
2537
|
+
headers: {
|
|
2538
|
+
[name: string]: unknown;
|
|
2539
|
+
};
|
|
2540
|
+
content: {
|
|
2541
|
+
"application/json": components["schemas"]["ApiResponse_SandboxPort"];
|
|
2542
|
+
};
|
|
2543
|
+
};
|
|
2544
|
+
400: components["responses"]["ValidationError"];
|
|
2545
|
+
401: components["responses"]["Unauthorized"];
|
|
2546
|
+
404: components["responses"]["NotFound"];
|
|
2547
|
+
500: components["responses"]["InternalError"];
|
|
2548
|
+
};
|
|
2549
|
+
};
|
|
2550
|
+
deleteSandboxPort: {
|
|
2551
|
+
parameters: {
|
|
2552
|
+
query?: never;
|
|
2553
|
+
header?: never;
|
|
2554
|
+
path: {
|
|
2555
|
+
/** @description Sandbox UUID */
|
|
2556
|
+
sid: components["parameters"]["SandboxId"];
|
|
2557
|
+
port: number;
|
|
2558
|
+
};
|
|
2559
|
+
cookie?: never;
|
|
2560
|
+
};
|
|
2561
|
+
requestBody?: never;
|
|
2562
|
+
responses: {
|
|
2563
|
+
/** @description Sandbox port is no longer explicitly exposed */
|
|
2564
|
+
204: {
|
|
2565
|
+
headers: {
|
|
2566
|
+
[name: string]: unknown;
|
|
2567
|
+
};
|
|
2568
|
+
content?: never;
|
|
2569
|
+
};
|
|
2570
|
+
400: components["responses"]["ValidationError"];
|
|
2571
|
+
401: components["responses"]["Unauthorized"];
|
|
2572
|
+
404: components["responses"]["NotFound"];
|
|
2573
|
+
500: components["responses"]["InternalError"];
|
|
2574
|
+
};
|
|
2575
|
+
};
|
|
2429
2576
|
pauseSandbox: {
|
|
2430
2577
|
parameters: {
|
|
2431
2578
|
query?: never;
|