@archildata/api-types 0.0.31 → 0.0.33
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 +21 -6
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -501,9 +501,11 @@ export interface paths {
|
|
|
501
501
|
* Replace a running sandbox's network policy
|
|
502
502
|
* @description Applies the complete replacement policy to a running sandbox, then
|
|
503
503
|
* records it as the current policy. A rejected update leaves the previous
|
|
504
|
-
* policy unchanged.
|
|
505
|
-
*
|
|
506
|
-
*
|
|
504
|
+
* policy unchanged. Free-plan accounts cannot update network policies and
|
|
505
|
+
* receive 403 with code sandbox_network_plan_required. For paid accounts,
|
|
506
|
+
* an empty object restores unrestricted egress. Existing network sessions
|
|
507
|
+
* are not terminated; the replacement governs new connections and is
|
|
508
|
+
* retained across later stops and resumes. Sandboxes
|
|
507
509
|
* that are not running, or whose policy changes concurrently, return 409.
|
|
508
510
|
*/
|
|
509
511
|
put: operations["updateSandboxNetwork"];
|
|
@@ -669,7 +671,11 @@ export interface components {
|
|
|
669
671
|
[key: string]: string;
|
|
670
672
|
};
|
|
671
673
|
};
|
|
672
|
-
/**
|
|
674
|
+
/**
|
|
675
|
+
* @description Sandbox network policy. New sandboxes on free plans receive deny-all
|
|
676
|
+
* egress with no allowlist exceptions. Start/resume and forks retain the
|
|
677
|
+
* stored policy. For paid accounts, egress is unrestricted when omitted.
|
|
678
|
+
*/
|
|
673
679
|
SandboxNetwork: {
|
|
674
680
|
egress?: components["schemas"]["SandboxEgressPolicy"];
|
|
675
681
|
};
|
|
@@ -685,7 +691,7 @@ export interface components {
|
|
|
685
691
|
status: components["schemas"]["SandboxState"];
|
|
686
692
|
vcpu_count: number;
|
|
687
693
|
mem_size_mib: number;
|
|
688
|
-
/** @description
|
|
694
|
+
/** @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. */
|
|
689
695
|
max_ttl_seconds: number;
|
|
690
696
|
/** @description Maximum number of concurrently attached process sessions. Detached processes and one-shot process controls do not count. */
|
|
691
697
|
max_concurrent_execs: number;
|
|
@@ -761,7 +767,7 @@ export interface components {
|
|
|
761
767
|
};
|
|
762
768
|
network?: components["schemas"]["SandboxNetwork"];
|
|
763
769
|
/**
|
|
764
|
-
* @description Lifetime budget applied independently to each powered-on session
|
|
770
|
+
* @description Lifetime budget applied independently to each powered-on session. Expiry pauses the sandbox, preserving memory and processes for resume.
|
|
765
771
|
* @default 86400
|
|
766
772
|
*/
|
|
767
773
|
max_ttl_seconds: number;
|
|
@@ -2613,6 +2619,15 @@ export interface operations {
|
|
|
2613
2619
|
};
|
|
2614
2620
|
400: components["responses"]["ValidationError"];
|
|
2615
2621
|
401: components["responses"]["Unauthorized"];
|
|
2622
|
+
/** @description Network policy updates require a paid plan (sandbox_network_plan_required) */
|
|
2623
|
+
403: {
|
|
2624
|
+
headers: {
|
|
2625
|
+
[name: string]: unknown;
|
|
2626
|
+
};
|
|
2627
|
+
content: {
|
|
2628
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
2629
|
+
};
|
|
2630
|
+
};
|
|
2616
2631
|
404: components["responses"]["NotFound"];
|
|
2617
2632
|
/** @description The sandbox is not running or the network policy changed concurrently */
|
|
2618
2633
|
409: {
|