@vercel/sandbox 1.8.1 → 1.9.1

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.
Files changed (190) hide show
  1. package/README.md +8 -0
  2. package/dist/_virtual/rolldown_runtime.cjs +29 -0
  3. package/dist/api-client/api-client.cjs +375 -0
  4. package/dist/api-client/api-client.cjs.map +1 -0
  5. package/dist/api-client/api-client.d.cts +403 -0
  6. package/dist/api-client/api-client.d.ts +397 -391
  7. package/dist/api-client/api-client.js +365 -404
  8. package/dist/api-client/api-client.js.map +1 -1
  9. package/dist/api-client/api-error.cjs +31 -0
  10. package/dist/api-client/api-error.cjs.map +1 -0
  11. package/dist/api-client/api-error.d.cts +27 -0
  12. package/dist/api-client/api-error.d.ts +19 -16
  13. package/dist/api-client/api-error.js +27 -32
  14. package/dist/api-client/api-error.js.map +1 -1
  15. package/dist/api-client/base-client.cjs +113 -0
  16. package/dist/api-client/base-client.cjs.map +1 -0
  17. package/dist/api-client/base-client.d.cts +38 -0
  18. package/dist/api-client/base-client.d.ts +31 -36
  19. package/dist/api-client/base-client.js +101 -118
  20. package/dist/api-client/base-client.js.map +1 -1
  21. package/dist/api-client/file-writer.cjs +62 -0
  22. package/dist/api-client/file-writer.cjs.map +1 -0
  23. package/dist/api-client/file-writer.d.cts +66 -0
  24. package/dist/api-client/file-writer.d.ts +56 -42
  25. package/dist/api-client/file-writer.js +57 -61
  26. package/dist/api-client/file-writer.js.map +1 -1
  27. package/dist/api-client/index.cjs +2 -0
  28. package/dist/api-client/index.d.ts +2 -2
  29. package/dist/api-client/index.js +4 -21
  30. package/dist/api-client/validators.cjs +149 -0
  31. package/dist/api-client/validators.cjs.map +1 -0
  32. package/dist/api-client/validators.d.cts +1677 -0
  33. package/dist/api-client/validators.d.ts +1501 -2412
  34. package/dist/api-client/validators.js +124 -154
  35. package/dist/api-client/validators.js.map +1 -1
  36. package/dist/api-client/with-retry.cjs +89 -0
  37. package/dist/api-client/with-retry.cjs.map +1 -0
  38. package/dist/api-client/with-retry.d.cts +10 -0
  39. package/dist/api-client/with-retry.d.ts +9 -13
  40. package/dist/api-client/with-retry.js +81 -102
  41. package/dist/api-client/with-retry.js.map +1 -1
  42. package/dist/auth/api.cjs +29 -0
  43. package/dist/auth/api.cjs.map +1 -0
  44. package/dist/auth/api.js +26 -25
  45. package/dist/auth/api.js.map +1 -1
  46. package/dist/auth/error.cjs +13 -0
  47. package/dist/auth/error.cjs.map +1 -0
  48. package/dist/auth/error.js +11 -11
  49. package/dist/auth/error.js.map +1 -1
  50. package/dist/auth/file.cjs +64 -0
  51. package/dist/auth/file.cjs.map +1 -0
  52. package/dist/auth/file.d.cts +26 -0
  53. package/dist/auth/file.d.ts +19 -15
  54. package/dist/auth/file.js +49 -64
  55. package/dist/auth/file.js.map +1 -1
  56. package/dist/auth/index.cjs +12 -0
  57. package/dist/auth/index.d.cts +5 -0
  58. package/dist/auth/index.d.ts +5 -6
  59. package/dist/auth/index.js +6 -27
  60. package/dist/auth/linked-project.cjs +38 -0
  61. package/dist/auth/linked-project.cjs.map +1 -0
  62. package/dist/auth/linked-project.js +30 -64
  63. package/dist/auth/linked-project.js.map +1 -1
  64. package/dist/auth/oauth.cjs +205 -0
  65. package/dist/auth/oauth.cjs.map +1 -0
  66. package/dist/auth/oauth.d.cts +135 -0
  67. package/dist/auth/oauth.d.ts +113 -109
  68. package/dist/auth/oauth.js +185 -252
  69. package/dist/auth/oauth.js.map +1 -1
  70. package/dist/auth/poll-for-token.cjs +82 -0
  71. package/dist/auth/poll-for-token.cjs.map +1 -0
  72. package/dist/auth/poll-for-token.d.cts +28 -0
  73. package/dist/auth/poll-for-token.d.ts +23 -15
  74. package/dist/auth/poll-for-token.js +79 -64
  75. package/dist/auth/poll-for-token.js.map +1 -1
  76. package/dist/auth/project.cjs +80 -0
  77. package/dist/auth/project.cjs.map +1 -0
  78. package/dist/auth/project.d.cts +44 -0
  79. package/dist/auth/project.d.ts +12 -8
  80. package/dist/auth/project.js +70 -72
  81. package/dist/auth/project.js.map +1 -1
  82. package/dist/auth/zod.cjs +22 -0
  83. package/dist/auth/zod.cjs.map +1 -0
  84. package/dist/auth/zod.js +18 -17
  85. package/dist/auth/zod.js.map +1 -1
  86. package/dist/command.cjs +326 -0
  87. package/dist/command.cjs.map +1 -0
  88. package/dist/command.d.cts +289 -0
  89. package/dist/command.d.ts +265 -171
  90. package/dist/command.js +321 -226
  91. package/dist/command.js.map +1 -1
  92. package/dist/constants.d.cts +5 -0
  93. package/dist/constants.d.ts +5 -1
  94. package/dist/index.cjs +11 -0
  95. package/dist/index.d.cts +6 -0
  96. package/dist/index.d.ts +6 -5
  97. package/dist/index.js +6 -15
  98. package/dist/network-policy.d.cts +100 -0
  99. package/dist/network-policy.d.ts +32 -28
  100. package/dist/sandbox.cjs +543 -0
  101. package/dist/sandbox.cjs.map +1 -0
  102. package/dist/sandbox.d.cts +538 -0
  103. package/dist/sandbox.d.ts +521 -472
  104. package/dist/sandbox.js +539 -506
  105. package/dist/sandbox.js.map +1 -1
  106. package/dist/snapshot.cjs +116 -0
  107. package/dist/snapshot.cjs.map +1 -0
  108. package/dist/snapshot.d.cts +109 -0
  109. package/dist/snapshot.d.ts +100 -92
  110. package/dist/snapshot.js +114 -114
  111. package/dist/snapshot.js.map +1 -1
  112. package/dist/utils/array.cjs +17 -0
  113. package/dist/utils/array.cjs.map +1 -0
  114. package/dist/utils/array.js +12 -15
  115. package/dist/utils/array.js.map +1 -1
  116. package/dist/utils/consume-readable.cjs +18 -0
  117. package/dist/utils/consume-readable.cjs.map +1 -0
  118. package/dist/utils/consume-readable.js +13 -12
  119. package/dist/utils/consume-readable.js.map +1 -1
  120. package/dist/utils/decode-base64-url.cjs +15 -0
  121. package/dist/utils/decode-base64-url.cjs.map +1 -0
  122. package/dist/utils/decode-base64-url.js +10 -9
  123. package/dist/utils/decode-base64-url.js.map +1 -1
  124. package/dist/utils/dev-credentials.cjs +142 -0
  125. package/dist/utils/dev-credentials.cjs.map +1 -0
  126. package/dist/utils/dev-credentials.js +126 -184
  127. package/dist/utils/dev-credentials.js.map +1 -1
  128. package/dist/utils/get-credentials.cjs +123 -0
  129. package/dist/utils/get-credentials.cjs.map +1 -0
  130. package/dist/utils/get-credentials.d.cts +21 -0
  131. package/dist/utils/get-credentials.d.ts +19 -61
  132. package/dist/utils/get-credentials.js +106 -140
  133. package/dist/utils/get-credentials.js.map +1 -1
  134. package/dist/utils/log.cjs +25 -0
  135. package/dist/utils/log.cjs.map +1 -0
  136. package/dist/utils/log.js +15 -17
  137. package/dist/utils/log.js.map +1 -1
  138. package/dist/utils/network-policy.cjs +65 -0
  139. package/dist/utils/network-policy.cjs.map +1 -0
  140. package/dist/utils/network-policy.js +58 -77
  141. package/dist/utils/network-policy.js.map +1 -1
  142. package/dist/utils/normalizePath.cjs +27 -0
  143. package/dist/utils/normalizePath.cjs.map +1 -0
  144. package/dist/utils/normalizePath.js +21 -28
  145. package/dist/utils/normalizePath.js.map +1 -1
  146. package/dist/utils/resolveSignal.cjs +20 -0
  147. package/dist/utils/resolveSignal.cjs.map +1 -0
  148. package/dist/utils/resolveSignal.d.cts +15 -0
  149. package/dist/utils/resolveSignal.d.ts +12 -10
  150. package/dist/utils/resolveSignal.js +14 -17
  151. package/dist/utils/resolveSignal.js.map +1 -1
  152. package/dist/utils/sandbox-snapshot.cjs +14 -0
  153. package/dist/utils/sandbox-snapshot.cjs.map +1 -0
  154. package/dist/utils/sandbox-snapshot.d.cts +10 -0
  155. package/dist/utils/sandbox-snapshot.d.ts +11 -0
  156. package/dist/utils/sandbox-snapshot.js +14 -0
  157. package/dist/utils/sandbox-snapshot.js.map +1 -0
  158. package/dist/utils/types.cjs +13 -0
  159. package/dist/utils/types.cjs.map +1 -0
  160. package/dist/utils/types.d.cts +11 -0
  161. package/dist/utils/types.d.ts +5 -7
  162. package/dist/utils/types.js +8 -8
  163. package/dist/utils/types.js.map +1 -1
  164. package/dist/version.cjs +7 -0
  165. package/dist/version.cjs.map +1 -0
  166. package/dist/version.js +5 -5
  167. package/dist/version.js.map +1 -1
  168. package/package.json +23 -3
  169. package/dist/api-client/index.js.map +0 -1
  170. package/dist/auth/api.d.ts +0 -6
  171. package/dist/auth/error.d.ts +0 -11
  172. package/dist/auth/index.js.map +0 -1
  173. package/dist/auth/linked-project.d.ts +0 -10
  174. package/dist/auth/zod.d.ts +0 -5
  175. package/dist/constants.js +0 -3
  176. package/dist/constants.js.map +0 -1
  177. package/dist/index.js.map +0 -1
  178. package/dist/network-policy.js +0 -3
  179. package/dist/network-policy.js.map +0 -1
  180. package/dist/utils/array.d.ts +0 -9
  181. package/dist/utils/consume-readable.d.ts +0 -5
  182. package/dist/utils/convert-sandbox.d.ts +0 -6
  183. package/dist/utils/convert-sandbox.js +0 -14
  184. package/dist/utils/convert-sandbox.js.map +0 -1
  185. package/dist/utils/decode-base64-url.d.ts +0 -7
  186. package/dist/utils/dev-credentials.d.ts +0 -37
  187. package/dist/utils/log.d.ts +0 -2
  188. package/dist/utils/network-policy.d.ts +0 -7
  189. package/dist/utils/normalizePath.d.ts +0 -17
  190. package/dist/version.d.ts +0 -1
@@ -1,86 +1,273 @@
1
1
  import { z } from "zod";
2
- export type SandboxMetaData = z.infer<typeof Sandbox>;
3
- export declare const InjectionRuleValidator: z.ZodObject<{
4
- domain: z.ZodString;
5
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
6
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7
- }, "strip", z.ZodTypeAny, {
8
- domain: string;
9
- headers?: Record<string, string> | undefined;
10
- headerNames?: string[] | undefined;
11
- }, {
12
- domain: string;
13
- headers?: Record<string, string> | undefined;
14
- headerNames?: string[] | undefined;
15
- }>;
16
- export declare const NetworkPolicyValidator: z.ZodUnion<[z.ZodObject<{
2
+
3
+ //#region src/api-client/validators.d.ts
4
+ type SandboxMetaData = z.infer<typeof Sandbox>;
5
+ declare const Sandbox: z.ZodObject<{
6
+ id: z.ZodString;
7
+ memory: z.ZodNumber;
8
+ vcpus: z.ZodNumber;
9
+ region: z.ZodString;
10
+ runtime: z.ZodString;
11
+ timeout: z.ZodNumber;
12
+ status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
13
+ requestedAt: z.ZodNumber;
14
+ startedAt: z.ZodOptional<z.ZodNumber>;
15
+ requestedStopAt: z.ZodOptional<z.ZodNumber>;
16
+ stoppedAt: z.ZodOptional<z.ZodNumber>;
17
+ abortedAt: z.ZodOptional<z.ZodNumber>;
18
+ duration: z.ZodOptional<z.ZodNumber>;
19
+ sourceSnapshotId: z.ZodOptional<z.ZodString>;
20
+ snapshottedAt: z.ZodOptional<z.ZodNumber>;
21
+ createdAt: z.ZodNumber;
22
+ cwd: z.ZodString;
23
+ updatedAt: z.ZodNumber;
24
+ interactivePort: z.ZodOptional<z.ZodNumber>;
25
+ networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
17
26
  mode: z.ZodLiteral<"allow-all">;
18
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
27
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
19
28
  mode: z.ZodLiteral<"allow-all">;
20
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
29
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
21
30
  mode: z.ZodLiteral<"allow-all">;
22
- }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
31
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
23
32
  mode: z.ZodLiteral<"deny-all">;
24
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
33
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
25
34
  mode: z.ZodLiteral<"deny-all">;
26
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
35
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
27
36
  mode: z.ZodLiteral<"deny-all">;
28
- }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
37
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
29
38
  mode: z.ZodLiteral<"custom">;
30
39
  allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
31
40
  allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
32
41
  deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
33
42
  injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
34
- domain: z.ZodString;
35
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
36
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
43
+ domain: z.ZodString;
44
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
45
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
37
46
  }, "strip", z.ZodTypeAny, {
38
- domain: string;
39
- headers?: Record<string, string> | undefined;
40
- headerNames?: string[] | undefined;
47
+ domain: string;
48
+ headers?: Record<string, string> | undefined;
49
+ headerNames?: string[] | undefined;
41
50
  }, {
42
- domain: string;
43
- headers?: Record<string, string> | undefined;
44
- headerNames?: string[] | undefined;
51
+ domain: string;
52
+ headers?: Record<string, string> | undefined;
53
+ headerNames?: string[] | undefined;
45
54
  }>, "many">>;
46
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
55
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
47
56
  mode: z.ZodLiteral<"custom">;
48
57
  allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
49
58
  allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
50
59
  deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
51
60
  injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
52
- domain: z.ZodString;
53
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
54
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
61
+ domain: z.ZodString;
62
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
63
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
55
64
  }, "strip", z.ZodTypeAny, {
56
- domain: string;
57
- headers?: Record<string, string> | undefined;
58
- headerNames?: string[] | undefined;
65
+ domain: string;
66
+ headers?: Record<string, string> | undefined;
67
+ headerNames?: string[] | undefined;
59
68
  }, {
60
- domain: string;
61
- headers?: Record<string, string> | undefined;
62
- headerNames?: string[] | undefined;
69
+ domain: string;
70
+ headers?: Record<string, string> | undefined;
71
+ headerNames?: string[] | undefined;
63
72
  }>, "many">>;
64
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
73
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
65
74
  mode: z.ZodLiteral<"custom">;
66
75
  allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
67
76
  allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
68
77
  deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
69
78
  injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
70
- domain: z.ZodString;
71
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
72
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
79
+ domain: z.ZodString;
80
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
81
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
73
82
  }, "strip", z.ZodTypeAny, {
74
- domain: string;
75
- headers?: Record<string, string> | undefined;
76
- headerNames?: string[] | undefined;
83
+ domain: string;
84
+ headers?: Record<string, string> | undefined;
85
+ headerNames?: string[] | undefined;
77
86
  }, {
78
- domain: string;
79
- headers?: Record<string, string> | undefined;
80
- headerNames?: string[] | undefined;
87
+ domain: string;
88
+ headers?: Record<string, string> | undefined;
89
+ headerNames?: string[] | undefined;
90
+ }>, "many">>;
91
+ }, z.ZodTypeAny, "passthrough">>]>>;
92
+ activeCpuDurationMs: z.ZodOptional<z.ZodNumber>;
93
+ networkTransfer: z.ZodOptional<z.ZodObject<{
94
+ ingress: z.ZodNumber;
95
+ egress: z.ZodNumber;
96
+ }, "strip", z.ZodTypeAny, {
97
+ ingress: number;
98
+ egress: number;
99
+ }, {
100
+ ingress: number;
101
+ egress: number;
102
+ }>>;
103
+ }, "strip", z.ZodTypeAny, {
104
+ status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
105
+ id: string;
106
+ memory: number;
107
+ vcpus: number;
108
+ region: string;
109
+ runtime: string;
110
+ timeout: number;
111
+ requestedAt: number;
112
+ createdAt: number;
113
+ cwd: string;
114
+ updatedAt: number;
115
+ startedAt?: number | undefined;
116
+ requestedStopAt?: number | undefined;
117
+ stoppedAt?: number | undefined;
118
+ abortedAt?: number | undefined;
119
+ duration?: number | undefined;
120
+ sourceSnapshotId?: string | undefined;
121
+ snapshottedAt?: number | undefined;
122
+ interactivePort?: number | undefined;
123
+ networkPolicy?: z.objectOutputType<{
124
+ mode: z.ZodLiteral<"allow-all">;
125
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
126
+ mode: z.ZodLiteral<"deny-all">;
127
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
128
+ mode: z.ZodLiteral<"custom">;
129
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
130
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
131
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
132
+ injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
133
+ domain: z.ZodString;
134
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
135
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
136
+ }, "strip", z.ZodTypeAny, {
137
+ domain: string;
138
+ headers?: Record<string, string> | undefined;
139
+ headerNames?: string[] | undefined;
140
+ }, {
141
+ domain: string;
142
+ headers?: Record<string, string> | undefined;
143
+ headerNames?: string[] | undefined;
144
+ }>, "many">>;
145
+ }, z.ZodTypeAny, "passthrough"> | undefined;
146
+ activeCpuDurationMs?: number | undefined;
147
+ networkTransfer?: {
148
+ ingress: number;
149
+ egress: number;
150
+ } | undefined;
151
+ }, {
152
+ status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
153
+ id: string;
154
+ memory: number;
155
+ vcpus: number;
156
+ region: string;
157
+ runtime: string;
158
+ timeout: number;
159
+ requestedAt: number;
160
+ createdAt: number;
161
+ cwd: string;
162
+ updatedAt: number;
163
+ startedAt?: number | undefined;
164
+ requestedStopAt?: number | undefined;
165
+ stoppedAt?: number | undefined;
166
+ abortedAt?: number | undefined;
167
+ duration?: number | undefined;
168
+ sourceSnapshotId?: string | undefined;
169
+ snapshottedAt?: number | undefined;
170
+ interactivePort?: number | undefined;
171
+ networkPolicy?: z.objectInputType<{
172
+ mode: z.ZodLiteral<"allow-all">;
173
+ }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
174
+ mode: z.ZodLiteral<"deny-all">;
175
+ }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
176
+ mode: z.ZodLiteral<"custom">;
177
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
178
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
179
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
180
+ injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
181
+ domain: z.ZodString;
182
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
183
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
184
+ }, "strip", z.ZodTypeAny, {
185
+ domain: string;
186
+ headers?: Record<string, string> | undefined;
187
+ headerNames?: string[] | undefined;
188
+ }, {
189
+ domain: string;
190
+ headers?: Record<string, string> | undefined;
191
+ headerNames?: string[] | undefined;
81
192
  }>, "many">>;
82
- }, z.ZodTypeAny, "passthrough">>]>;
83
- export declare const Sandbox: z.ZodObject<{
193
+ }, z.ZodTypeAny, "passthrough"> | undefined;
194
+ activeCpuDurationMs?: number | undefined;
195
+ networkTransfer?: {
196
+ ingress: number;
197
+ egress: number;
198
+ } | undefined;
199
+ }>;
200
+ type SandboxRouteData = z.infer<typeof SandboxRoute>;
201
+ declare const SandboxRoute: z.ZodObject<{
202
+ url: z.ZodString;
203
+ subdomain: z.ZodString;
204
+ port: z.ZodNumber;
205
+ }, "strip", z.ZodTypeAny, {
206
+ url: string;
207
+ subdomain: string;
208
+ port: number;
209
+ }, {
210
+ url: string;
211
+ subdomain: string;
212
+ port: number;
213
+ }>;
214
+ type SnapshotMetadata = z.infer<typeof Snapshot>;
215
+ declare const Snapshot: z.ZodObject<{
216
+ id: z.ZodString;
217
+ sourceSandboxId: z.ZodString;
218
+ region: z.ZodString;
219
+ status: z.ZodEnum<["created", "deleted", "failed"]>;
220
+ sizeBytes: z.ZodNumber;
221
+ expiresAt: z.ZodOptional<z.ZodNumber>;
222
+ createdAt: z.ZodNumber;
223
+ updatedAt: z.ZodNumber;
224
+ }, "strip", z.ZodTypeAny, {
225
+ status: "failed" | "created" | "deleted";
226
+ id: string;
227
+ region: string;
228
+ createdAt: number;
229
+ updatedAt: number;
230
+ sourceSandboxId: string;
231
+ sizeBytes: number;
232
+ expiresAt?: number | undefined;
233
+ }, {
234
+ status: "failed" | "created" | "deleted";
235
+ id: string;
236
+ region: string;
237
+ createdAt: number;
238
+ updatedAt: number;
239
+ sourceSandboxId: string;
240
+ sizeBytes: number;
241
+ expiresAt?: number | undefined;
242
+ }>;
243
+ type CommandData = z.infer<typeof Command>;
244
+ declare const Command: z.ZodObject<{
245
+ id: z.ZodString;
246
+ name: z.ZodString;
247
+ args: z.ZodArray<z.ZodString, "many">;
248
+ cwd: z.ZodString;
249
+ sandboxId: z.ZodString;
250
+ exitCode: z.ZodNullable<z.ZodNumber>;
251
+ startedAt: z.ZodNumber;
252
+ }, "strip", z.ZodTypeAny, {
253
+ id: string;
254
+ startedAt: number;
255
+ cwd: string;
256
+ name: string;
257
+ args: string[];
258
+ sandboxId: string;
259
+ exitCode: number | null;
260
+ }, {
261
+ id: string;
262
+ startedAt: number;
263
+ cwd: string;
264
+ name: string;
265
+ args: string[];
266
+ sandboxId: string;
267
+ exitCode: number | null;
268
+ }>;
269
+ declare const SandboxResponse: z.ZodObject<{
270
+ sandbox: z.ZodObject<{
84
271
  id: z.ZodString;
85
272
  memory: z.ZodNumber;
86
273
  vcpus: z.ZodNumber;
@@ -101,91 +288,91 @@ export declare const Sandbox: z.ZodObject<{
101
288
  updatedAt: z.ZodNumber;
102
289
  interactivePort: z.ZodOptional<z.ZodNumber>;
103
290
  networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
104
- mode: z.ZodLiteral<"allow-all">;
291
+ mode: z.ZodLiteral<"allow-all">;
105
292
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
106
- mode: z.ZodLiteral<"allow-all">;
293
+ mode: z.ZodLiteral<"allow-all">;
107
294
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
108
- mode: z.ZodLiteral<"allow-all">;
295
+ mode: z.ZodLiteral<"allow-all">;
109
296
  }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
110
- mode: z.ZodLiteral<"deny-all">;
297
+ mode: z.ZodLiteral<"deny-all">;
111
298
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
112
- mode: z.ZodLiteral<"deny-all">;
299
+ mode: z.ZodLiteral<"deny-all">;
113
300
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
114
- mode: z.ZodLiteral<"deny-all">;
301
+ mode: z.ZodLiteral<"deny-all">;
115
302
  }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
116
- mode: z.ZodLiteral<"custom">;
117
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
118
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
119
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
120
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
121
- domain: z.ZodString;
122
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
123
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
124
- }, "strip", z.ZodTypeAny, {
125
- domain: string;
126
- headers?: Record<string, string> | undefined;
127
- headerNames?: string[] | undefined;
128
- }, {
129
- domain: string;
130
- headers?: Record<string, string> | undefined;
131
- headerNames?: string[] | undefined;
132
- }>, "many">>;
303
+ mode: z.ZodLiteral<"custom">;
304
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
305
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
306
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
307
+ injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
308
+ domain: z.ZodString;
309
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
310
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
311
+ }, "strip", z.ZodTypeAny, {
312
+ domain: string;
313
+ headers?: Record<string, string> | undefined;
314
+ headerNames?: string[] | undefined;
315
+ }, {
316
+ domain: string;
317
+ headers?: Record<string, string> | undefined;
318
+ headerNames?: string[] | undefined;
319
+ }>, "many">>;
133
320
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
134
- mode: z.ZodLiteral<"custom">;
135
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
136
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
137
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
138
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
139
- domain: z.ZodString;
140
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
141
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
142
- }, "strip", z.ZodTypeAny, {
143
- domain: string;
144
- headers?: Record<string, string> | undefined;
145
- headerNames?: string[] | undefined;
146
- }, {
147
- domain: string;
148
- headers?: Record<string, string> | undefined;
149
- headerNames?: string[] | undefined;
150
- }>, "many">>;
321
+ mode: z.ZodLiteral<"custom">;
322
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
323
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
324
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
325
+ injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
326
+ domain: z.ZodString;
327
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
328
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
329
+ }, "strip", z.ZodTypeAny, {
330
+ domain: string;
331
+ headers?: Record<string, string> | undefined;
332
+ headerNames?: string[] | undefined;
333
+ }, {
334
+ domain: string;
335
+ headers?: Record<string, string> | undefined;
336
+ headerNames?: string[] | undefined;
337
+ }>, "many">>;
151
338
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
152
- mode: z.ZodLiteral<"custom">;
153
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
154
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
155
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
156
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
157
- domain: z.ZodString;
158
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
159
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
160
- }, "strip", z.ZodTypeAny, {
161
- domain: string;
162
- headers?: Record<string, string> | undefined;
163
- headerNames?: string[] | undefined;
164
- }, {
165
- domain: string;
166
- headers?: Record<string, string> | undefined;
167
- headerNames?: string[] | undefined;
168
- }>, "many">>;
339
+ mode: z.ZodLiteral<"custom">;
340
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
341
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
342
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
343
+ injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
344
+ domain: z.ZodString;
345
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
346
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
347
+ }, "strip", z.ZodTypeAny, {
348
+ domain: string;
349
+ headers?: Record<string, string> | undefined;
350
+ headerNames?: string[] | undefined;
351
+ }, {
352
+ domain: string;
353
+ headers?: Record<string, string> | undefined;
354
+ headerNames?: string[] | undefined;
355
+ }>, "many">>;
169
356
  }, z.ZodTypeAny, "passthrough">>]>>;
170
357
  activeCpuDurationMs: z.ZodOptional<z.ZodNumber>;
171
358
  networkTransfer: z.ZodOptional<z.ZodObject<{
172
- ingress: z.ZodNumber;
173
- egress: z.ZodNumber;
359
+ ingress: z.ZodNumber;
360
+ egress: z.ZodNumber;
174
361
  }, "strip", z.ZodTypeAny, {
175
- ingress: number;
176
- egress: number;
362
+ ingress: number;
363
+ egress: number;
177
364
  }, {
178
- ingress: number;
179
- egress: number;
365
+ ingress: number;
366
+ egress: number;
180
367
  }>>;
181
- }, "strip", z.ZodTypeAny, {
368
+ }, "strip", z.ZodTypeAny, {
369
+ status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
182
370
  id: string;
183
371
  memory: number;
184
372
  vcpus: number;
185
373
  region: string;
186
374
  runtime: string;
187
375
  timeout: number;
188
- status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
189
376
  requestedAt: number;
190
377
  createdAt: number;
191
378
  cwd: string;
@@ -199,41 +386,41 @@ export declare const Sandbox: z.ZodObject<{
199
386
  snapshottedAt?: number | undefined;
200
387
  interactivePort?: number | undefined;
201
388
  networkPolicy?: z.objectOutputType<{
202
- mode: z.ZodLiteral<"allow-all">;
389
+ mode: z.ZodLiteral<"allow-all">;
203
390
  }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
204
- mode: z.ZodLiteral<"deny-all">;
391
+ mode: z.ZodLiteral<"deny-all">;
205
392
  }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
206
- mode: z.ZodLiteral<"custom">;
207
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
208
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
209
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
210
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
211
- domain: z.ZodString;
212
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
213
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
214
- }, "strip", z.ZodTypeAny, {
215
- domain: string;
216
- headers?: Record<string, string> | undefined;
217
- headerNames?: string[] | undefined;
218
- }, {
219
- domain: string;
220
- headers?: Record<string, string> | undefined;
221
- headerNames?: string[] | undefined;
222
- }>, "many">>;
393
+ mode: z.ZodLiteral<"custom">;
394
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
395
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
396
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
397
+ injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
398
+ domain: z.ZodString;
399
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
400
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
401
+ }, "strip", z.ZodTypeAny, {
402
+ domain: string;
403
+ headers?: Record<string, string> | undefined;
404
+ headerNames?: string[] | undefined;
405
+ }, {
406
+ domain: string;
407
+ headers?: Record<string, string> | undefined;
408
+ headerNames?: string[] | undefined;
409
+ }>, "many">>;
223
410
  }, z.ZodTypeAny, "passthrough"> | undefined;
224
411
  activeCpuDurationMs?: number | undefined;
225
412
  networkTransfer?: {
226
- ingress: number;
227
- egress: number;
413
+ ingress: number;
414
+ egress: number;
228
415
  } | undefined;
229
- }, {
416
+ }, {
417
+ status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
230
418
  id: string;
231
419
  memory: number;
232
420
  vcpus: number;
233
421
  region: string;
234
422
  runtime: string;
235
423
  timeout: number;
236
- status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
237
424
  requestedAt: number;
238
425
  createdAt: number;
239
426
  cwd: string;
@@ -247,104 +434,137 @@ export declare const Sandbox: z.ZodObject<{
247
434
  snapshottedAt?: number | undefined;
248
435
  interactivePort?: number | undefined;
249
436
  networkPolicy?: z.objectInputType<{
250
- mode: z.ZodLiteral<"allow-all">;
437
+ mode: z.ZodLiteral<"allow-all">;
251
438
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
252
- mode: z.ZodLiteral<"deny-all">;
439
+ mode: z.ZodLiteral<"deny-all">;
253
440
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
254
- mode: z.ZodLiteral<"custom">;
255
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
256
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
257
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
258
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
259
- domain: z.ZodString;
260
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
261
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
262
- }, "strip", z.ZodTypeAny, {
263
- domain: string;
264
- headers?: Record<string, string> | undefined;
265
- headerNames?: string[] | undefined;
266
- }, {
267
- domain: string;
268
- headers?: Record<string, string> | undefined;
269
- headerNames?: string[] | undefined;
270
- }>, "many">>;
441
+ mode: z.ZodLiteral<"custom">;
442
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
443
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
444
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
445
+ injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
446
+ domain: z.ZodString;
447
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
448
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
449
+ }, "strip", z.ZodTypeAny, {
450
+ domain: string;
451
+ headers?: Record<string, string> | undefined;
452
+ headerNames?: string[] | undefined;
453
+ }, {
454
+ domain: string;
455
+ headers?: Record<string, string> | undefined;
456
+ headerNames?: string[] | undefined;
457
+ }>, "many">>;
271
458
  }, z.ZodTypeAny, "passthrough"> | undefined;
272
459
  activeCpuDurationMs?: number | undefined;
273
460
  networkTransfer?: {
274
- ingress: number;
275
- egress: number;
461
+ ingress: number;
462
+ egress: number;
276
463
  } | undefined;
277
- }>;
278
- export type SandboxRouteData = z.infer<typeof SandboxRoute>;
279
- export declare const SandboxRoute: z.ZodObject<{
280
- url: z.ZodString;
281
- subdomain: z.ZodString;
282
- port: z.ZodNumber;
283
- }, "strip", z.ZodTypeAny, {
284
- url: string;
285
- subdomain: string;
286
- port: number;
287
- }, {
288
- url: string;
289
- subdomain: string;
290
- port: number;
291
- }>;
292
- export type SnapshotMetadata = z.infer<typeof Snapshot>;
293
- export declare const Snapshot: z.ZodObject<{
294
- id: z.ZodString;
295
- sourceSandboxId: z.ZodString;
296
- region: z.ZodString;
297
- status: z.ZodEnum<["created", "deleted", "failed"]>;
298
- sizeBytes: z.ZodNumber;
299
- expiresAt: z.ZodOptional<z.ZodNumber>;
300
- createdAt: z.ZodNumber;
301
- updatedAt: z.ZodNumber;
464
+ }>;
302
465
  }, "strip", z.ZodTypeAny, {
466
+ sandbox: {
467
+ status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
303
468
  id: string;
469
+ memory: number;
470
+ vcpus: number;
304
471
  region: string;
305
- status: "failed" | "created" | "deleted";
472
+ runtime: string;
473
+ timeout: number;
474
+ requestedAt: number;
306
475
  createdAt: number;
476
+ cwd: string;
307
477
  updatedAt: number;
308
- sourceSandboxId: string;
309
- sizeBytes: number;
310
- expiresAt?: number | undefined;
478
+ startedAt?: number | undefined;
479
+ requestedStopAt?: number | undefined;
480
+ stoppedAt?: number | undefined;
481
+ abortedAt?: number | undefined;
482
+ duration?: number | undefined;
483
+ sourceSnapshotId?: string | undefined;
484
+ snapshottedAt?: number | undefined;
485
+ interactivePort?: number | undefined;
486
+ networkPolicy?: z.objectOutputType<{
487
+ mode: z.ZodLiteral<"allow-all">;
488
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
489
+ mode: z.ZodLiteral<"deny-all">;
490
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
491
+ mode: z.ZodLiteral<"custom">;
492
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
493
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
494
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
495
+ injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
496
+ domain: z.ZodString;
497
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
498
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
499
+ }, "strip", z.ZodTypeAny, {
500
+ domain: string;
501
+ headers?: Record<string, string> | undefined;
502
+ headerNames?: string[] | undefined;
503
+ }, {
504
+ domain: string;
505
+ headers?: Record<string, string> | undefined;
506
+ headerNames?: string[] | undefined;
507
+ }>, "many">>;
508
+ }, z.ZodTypeAny, "passthrough"> | undefined;
509
+ activeCpuDurationMs?: number | undefined;
510
+ networkTransfer?: {
511
+ ingress: number;
512
+ egress: number;
513
+ } | undefined;
514
+ };
311
515
  }, {
516
+ sandbox: {
517
+ status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
312
518
  id: string;
519
+ memory: number;
520
+ vcpus: number;
313
521
  region: string;
314
- status: "failed" | "created" | "deleted";
522
+ runtime: string;
523
+ timeout: number;
524
+ requestedAt: number;
315
525
  createdAt: number;
526
+ cwd: string;
316
527
  updatedAt: number;
317
- sourceSandboxId: string;
318
- sizeBytes: number;
319
- expiresAt?: number | undefined;
320
- }>;
321
- export declare const Pagination: z.ZodObject<{
322
- /**
323
- * Amount of items in the current page.
324
- * @example 20
325
- */
326
- count: z.ZodNumber;
327
- /**
328
- * Timestamp that must be used to request the next page.
329
- * @example 1540095775951
330
- */
331
- next: z.ZodNullable<z.ZodNumber>;
332
- /**
333
- * Timestamp that must be used to request the previous page.
334
- * @example 1540095775951
335
- */
336
- prev: z.ZodNullable<z.ZodNumber>;
337
- }, "strip", z.ZodTypeAny, {
338
- count: number;
339
- next: number | null;
340
- prev: number | null;
341
- }, {
342
- count: number;
343
- next: number | null;
344
- prev: number | null;
528
+ startedAt?: number | undefined;
529
+ requestedStopAt?: number | undefined;
530
+ stoppedAt?: number | undefined;
531
+ abortedAt?: number | undefined;
532
+ duration?: number | undefined;
533
+ sourceSnapshotId?: string | undefined;
534
+ snapshottedAt?: number | undefined;
535
+ interactivePort?: number | undefined;
536
+ networkPolicy?: z.objectInputType<{
537
+ mode: z.ZodLiteral<"allow-all">;
538
+ }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
539
+ mode: z.ZodLiteral<"deny-all">;
540
+ }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
541
+ mode: z.ZodLiteral<"custom">;
542
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
543
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
544
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
545
+ injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
546
+ domain: z.ZodString;
547
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
548
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
549
+ }, "strip", z.ZodTypeAny, {
550
+ domain: string;
551
+ headers?: Record<string, string> | undefined;
552
+ headerNames?: string[] | undefined;
553
+ }, {
554
+ domain: string;
555
+ headers?: Record<string, string> | undefined;
556
+ headerNames?: string[] | undefined;
557
+ }>, "many">>;
558
+ }, z.ZodTypeAny, "passthrough"> | undefined;
559
+ activeCpuDurationMs?: number | undefined;
560
+ networkTransfer?: {
561
+ ingress: number;
562
+ egress: number;
563
+ } | undefined;
564
+ };
345
565
  }>;
346
- export type CommandData = z.infer<typeof Command>;
347
- export declare const Command: z.ZodObject<{
566
+ declare const CommandResponse: z.ZodObject<{
567
+ command: z.ZodObject<{
348
568
  id: z.ZodString;
349
569
  name: z.ZodString;
350
570
  args: z.ZodArray<z.ZodString, "many">;
@@ -352,2237 +572,1106 @@ export declare const Command: z.ZodObject<{
352
572
  sandboxId: z.ZodString;
353
573
  exitCode: z.ZodNullable<z.ZodNumber>;
354
574
  startedAt: z.ZodNumber;
355
- }, "strip", z.ZodTypeAny, {
575
+ }, "strip", z.ZodTypeAny, {
576
+ id: string;
577
+ startedAt: number;
578
+ cwd: string;
579
+ name: string;
580
+ args: string[];
356
581
  sandboxId: string;
582
+ exitCode: number | null;
583
+ }, {
357
584
  id: string;
358
585
  startedAt: number;
359
586
  cwd: string;
360
587
  name: string;
361
588
  args: string[];
589
+ sandboxId: string;
362
590
  exitCode: number | null;
363
- }, {
591
+ }>;
592
+ }, "strip", z.ZodTypeAny, {
593
+ command: {
594
+ id: string;
595
+ startedAt: number;
596
+ cwd: string;
597
+ name: string;
598
+ args: string[];
364
599
  sandboxId: string;
600
+ exitCode: number | null;
601
+ };
602
+ }, {
603
+ command: {
365
604
  id: string;
366
605
  startedAt: number;
367
606
  cwd: string;
368
607
  name: string;
369
608
  args: string[];
609
+ sandboxId: string;
370
610
  exitCode: number | null;
611
+ };
371
612
  }>;
372
- export declare const SandboxResponse: z.ZodObject<{
373
- sandbox: z.ZodObject<{
374
- id: z.ZodString;
375
- memory: z.ZodNumber;
376
- vcpus: z.ZodNumber;
377
- region: z.ZodString;
378
- runtime: z.ZodString;
379
- timeout: z.ZodNumber;
380
- status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
381
- requestedAt: z.ZodNumber;
382
- startedAt: z.ZodOptional<z.ZodNumber>;
383
- requestedStopAt: z.ZodOptional<z.ZodNumber>;
384
- stoppedAt: z.ZodOptional<z.ZodNumber>;
385
- abortedAt: z.ZodOptional<z.ZodNumber>;
386
- duration: z.ZodOptional<z.ZodNumber>;
387
- sourceSnapshotId: z.ZodOptional<z.ZodString>;
388
- snapshottedAt: z.ZodOptional<z.ZodNumber>;
389
- createdAt: z.ZodNumber;
390
- cwd: z.ZodString;
391
- updatedAt: z.ZodNumber;
392
- interactivePort: z.ZodOptional<z.ZodNumber>;
393
- networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
394
- mode: z.ZodLiteral<"allow-all">;
395
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
396
- mode: z.ZodLiteral<"allow-all">;
397
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
398
- mode: z.ZodLiteral<"allow-all">;
399
- }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
400
- mode: z.ZodLiteral<"deny-all">;
401
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
402
- mode: z.ZodLiteral<"deny-all">;
403
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
404
- mode: z.ZodLiteral<"deny-all">;
405
- }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
406
- mode: z.ZodLiteral<"custom">;
407
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
408
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
409
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
410
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
411
- domain: z.ZodString;
412
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
413
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
414
- }, "strip", z.ZodTypeAny, {
415
- domain: string;
416
- headers?: Record<string, string> | undefined;
417
- headerNames?: string[] | undefined;
418
- }, {
419
- domain: string;
420
- headers?: Record<string, string> | undefined;
421
- headerNames?: string[] | undefined;
422
- }>, "many">>;
423
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
424
- mode: z.ZodLiteral<"custom">;
425
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
426
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
427
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
428
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
429
- domain: z.ZodString;
430
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
431
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
432
- }, "strip", z.ZodTypeAny, {
433
- domain: string;
434
- headers?: Record<string, string> | undefined;
435
- headerNames?: string[] | undefined;
436
- }, {
437
- domain: string;
438
- headers?: Record<string, string> | undefined;
439
- headerNames?: string[] | undefined;
440
- }>, "many">>;
441
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
442
- mode: z.ZodLiteral<"custom">;
443
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
444
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
445
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
446
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
447
- domain: z.ZodString;
448
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
449
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
450
- }, "strip", z.ZodTypeAny, {
451
- domain: string;
452
- headers?: Record<string, string> | undefined;
453
- headerNames?: string[] | undefined;
454
- }, {
455
- domain: string;
456
- headers?: Record<string, string> | undefined;
457
- headerNames?: string[] | undefined;
458
- }>, "many">>;
459
- }, z.ZodTypeAny, "passthrough">>]>>;
460
- activeCpuDurationMs: z.ZodOptional<z.ZodNumber>;
461
- networkTransfer: z.ZodOptional<z.ZodObject<{
462
- ingress: z.ZodNumber;
463
- egress: z.ZodNumber;
464
- }, "strip", z.ZodTypeAny, {
465
- ingress: number;
466
- egress: number;
467
- }, {
468
- ingress: number;
469
- egress: number;
470
- }>>;
471
- }, "strip", z.ZodTypeAny, {
472
- id: string;
473
- memory: number;
474
- vcpus: number;
475
- region: string;
476
- runtime: string;
477
- timeout: number;
478
- status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
479
- requestedAt: number;
480
- createdAt: number;
481
- cwd: string;
482
- updatedAt: number;
483
- startedAt?: number | undefined;
484
- requestedStopAt?: number | undefined;
485
- stoppedAt?: number | undefined;
486
- abortedAt?: number | undefined;
487
- duration?: number | undefined;
488
- sourceSnapshotId?: string | undefined;
489
- snapshottedAt?: number | undefined;
490
- interactivePort?: number | undefined;
491
- networkPolicy?: z.objectOutputType<{
492
- mode: z.ZodLiteral<"allow-all">;
493
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
494
- mode: z.ZodLiteral<"deny-all">;
495
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
496
- mode: z.ZodLiteral<"custom">;
497
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
498
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
499
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
500
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
501
- domain: z.ZodString;
502
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
503
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
504
- }, "strip", z.ZodTypeAny, {
505
- domain: string;
506
- headers?: Record<string, string> | undefined;
507
- headerNames?: string[] | undefined;
508
- }, {
509
- domain: string;
510
- headers?: Record<string, string> | undefined;
511
- headerNames?: string[] | undefined;
512
- }>, "many">>;
513
- }, z.ZodTypeAny, "passthrough"> | undefined;
514
- activeCpuDurationMs?: number | undefined;
515
- networkTransfer?: {
516
- ingress: number;
517
- egress: number;
518
- } | undefined;
519
- }, {
520
- id: string;
521
- memory: number;
522
- vcpus: number;
523
- region: string;
524
- runtime: string;
525
- timeout: number;
526
- status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
527
- requestedAt: number;
528
- createdAt: number;
529
- cwd: string;
530
- updatedAt: number;
531
- startedAt?: number | undefined;
532
- requestedStopAt?: number | undefined;
533
- stoppedAt?: number | undefined;
534
- abortedAt?: number | undefined;
535
- duration?: number | undefined;
536
- sourceSnapshotId?: string | undefined;
537
- snapshottedAt?: number | undefined;
538
- interactivePort?: number | undefined;
539
- networkPolicy?: z.objectInputType<{
540
- mode: z.ZodLiteral<"allow-all">;
541
- }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
542
- mode: z.ZodLiteral<"deny-all">;
543
- }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
544
- mode: z.ZodLiteral<"custom">;
545
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
546
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
547
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
548
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
549
- domain: z.ZodString;
550
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
551
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
552
- }, "strip", z.ZodTypeAny, {
553
- domain: string;
554
- headers?: Record<string, string> | undefined;
555
- headerNames?: string[] | undefined;
556
- }, {
557
- domain: string;
558
- headers?: Record<string, string> | undefined;
559
- headerNames?: string[] | undefined;
560
- }>, "many">>;
561
- }, z.ZodTypeAny, "passthrough"> | undefined;
562
- activeCpuDurationMs?: number | undefined;
563
- networkTransfer?: {
564
- ingress: number;
565
- egress: number;
566
- } | undefined;
567
- }>;
613
+ type CommandFinishedData = z.infer<typeof CommandFinishedResponse>["command"];
614
+ declare const CommandFinishedResponse: z.ZodObject<{
615
+ command: z.ZodObject<{
616
+ id: z.ZodString;
617
+ name: z.ZodString;
618
+ args: z.ZodArray<z.ZodString, "many">;
619
+ cwd: z.ZodString;
620
+ sandboxId: z.ZodString;
621
+ startedAt: z.ZodNumber;
622
+ } & {
623
+ exitCode: z.ZodNumber;
624
+ }, "strip", z.ZodTypeAny, {
625
+ id: string;
626
+ startedAt: number;
627
+ cwd: string;
628
+ name: string;
629
+ args: string[];
630
+ sandboxId: string;
631
+ exitCode: number;
632
+ }, {
633
+ id: string;
634
+ startedAt: number;
635
+ cwd: string;
636
+ name: string;
637
+ args: string[];
638
+ sandboxId: string;
639
+ exitCode: number;
640
+ }>;
568
641
  }, "strip", z.ZodTypeAny, {
569
- sandbox: {
570
- id: string;
571
- memory: number;
572
- vcpus: number;
573
- region: string;
574
- runtime: string;
575
- timeout: number;
576
- status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
577
- requestedAt: number;
578
- createdAt: number;
579
- cwd: string;
580
- updatedAt: number;
581
- startedAt?: number | undefined;
582
- requestedStopAt?: number | undefined;
583
- stoppedAt?: number | undefined;
584
- abortedAt?: number | undefined;
585
- duration?: number | undefined;
586
- sourceSnapshotId?: string | undefined;
587
- snapshottedAt?: number | undefined;
588
- interactivePort?: number | undefined;
589
- networkPolicy?: z.objectOutputType<{
590
- mode: z.ZodLiteral<"allow-all">;
591
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
592
- mode: z.ZodLiteral<"deny-all">;
593
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
594
- mode: z.ZodLiteral<"custom">;
595
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
596
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
597
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
598
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
599
- domain: z.ZodString;
600
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
601
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
602
- }, "strip", z.ZodTypeAny, {
603
- domain: string;
604
- headers?: Record<string, string> | undefined;
605
- headerNames?: string[] | undefined;
606
- }, {
607
- domain: string;
608
- headers?: Record<string, string> | undefined;
609
- headerNames?: string[] | undefined;
610
- }>, "many">>;
611
- }, z.ZodTypeAny, "passthrough"> | undefined;
612
- activeCpuDurationMs?: number | undefined;
613
- networkTransfer?: {
614
- ingress: number;
615
- egress: number;
616
- } | undefined;
617
- };
642
+ command: {
643
+ id: string;
644
+ startedAt: number;
645
+ cwd: string;
646
+ name: string;
647
+ args: string[];
648
+ sandboxId: string;
649
+ exitCode: number;
650
+ };
618
651
  }, {
619
- sandbox: {
620
- id: string;
621
- memory: number;
622
- vcpus: number;
623
- region: string;
624
- runtime: string;
625
- timeout: number;
626
- status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
627
- requestedAt: number;
628
- createdAt: number;
629
- cwd: string;
630
- updatedAt: number;
631
- startedAt?: number | undefined;
632
- requestedStopAt?: number | undefined;
633
- stoppedAt?: number | undefined;
634
- abortedAt?: number | undefined;
635
- duration?: number | undefined;
636
- sourceSnapshotId?: string | undefined;
637
- snapshottedAt?: number | undefined;
638
- interactivePort?: number | undefined;
639
- networkPolicy?: z.objectInputType<{
640
- mode: z.ZodLiteral<"allow-all">;
641
- }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
642
- mode: z.ZodLiteral<"deny-all">;
643
- }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
644
- mode: z.ZodLiteral<"custom">;
645
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
646
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
647
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
648
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
649
- domain: z.ZodString;
650
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
651
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
652
- }, "strip", z.ZodTypeAny, {
653
- domain: string;
654
- headers?: Record<string, string> | undefined;
655
- headerNames?: string[] | undefined;
656
- }, {
657
- domain: string;
658
- headers?: Record<string, string> | undefined;
659
- headerNames?: string[] | undefined;
660
- }>, "many">>;
661
- }, z.ZodTypeAny, "passthrough"> | undefined;
662
- activeCpuDurationMs?: number | undefined;
663
- networkTransfer?: {
664
- ingress: number;
665
- egress: number;
666
- } | undefined;
667
- };
652
+ command: {
653
+ id: string;
654
+ startedAt: number;
655
+ cwd: string;
656
+ name: string;
657
+ args: string[];
658
+ sandboxId: string;
659
+ exitCode: number;
660
+ };
668
661
  }>;
669
- export declare const SandboxAndRoutesResponse: z.ZodObject<{
670
- sandbox: z.ZodObject<{
671
- id: z.ZodString;
672
- memory: z.ZodNumber;
673
- vcpus: z.ZodNumber;
674
- region: z.ZodString;
675
- runtime: z.ZodString;
676
- timeout: z.ZodNumber;
677
- status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
678
- requestedAt: z.ZodNumber;
679
- startedAt: z.ZodOptional<z.ZodNumber>;
680
- requestedStopAt: z.ZodOptional<z.ZodNumber>;
681
- stoppedAt: z.ZodOptional<z.ZodNumber>;
682
- abortedAt: z.ZodOptional<z.ZodNumber>;
683
- duration: z.ZodOptional<z.ZodNumber>;
684
- sourceSnapshotId: z.ZodOptional<z.ZodString>;
685
- snapshottedAt: z.ZodOptional<z.ZodNumber>;
686
- createdAt: z.ZodNumber;
687
- cwd: z.ZodString;
688
- updatedAt: z.ZodNumber;
689
- interactivePort: z.ZodOptional<z.ZodNumber>;
690
- networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
691
- mode: z.ZodLiteral<"allow-all">;
692
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
693
- mode: z.ZodLiteral<"allow-all">;
694
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
695
- mode: z.ZodLiteral<"allow-all">;
696
- }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
697
- mode: z.ZodLiteral<"deny-all">;
698
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
699
- mode: z.ZodLiteral<"deny-all">;
700
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
701
- mode: z.ZodLiteral<"deny-all">;
702
- }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
703
- mode: z.ZodLiteral<"custom">;
704
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
705
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
706
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
707
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
708
- domain: z.ZodString;
709
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
710
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
711
- }, "strip", z.ZodTypeAny, {
712
- domain: string;
713
- headers?: Record<string, string> | undefined;
714
- headerNames?: string[] | undefined;
715
- }, {
716
- domain: string;
717
- headers?: Record<string, string> | undefined;
718
- headerNames?: string[] | undefined;
719
- }>, "many">>;
720
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
721
- mode: z.ZodLiteral<"custom">;
722
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
723
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
724
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
725
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
726
- domain: z.ZodString;
727
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
728
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
729
- }, "strip", z.ZodTypeAny, {
730
- domain: string;
731
- headers?: Record<string, string> | undefined;
732
- headerNames?: string[] | undefined;
733
- }, {
734
- domain: string;
735
- headers?: Record<string, string> | undefined;
736
- headerNames?: string[] | undefined;
737
- }>, "many">>;
738
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
739
- mode: z.ZodLiteral<"custom">;
740
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
741
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
742
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
743
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
744
- domain: z.ZodString;
745
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
746
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
747
- }, "strip", z.ZodTypeAny, {
748
- domain: string;
749
- headers?: Record<string, string> | undefined;
750
- headerNames?: string[] | undefined;
751
- }, {
752
- domain: string;
753
- headers?: Record<string, string> | undefined;
754
- headerNames?: string[] | undefined;
755
- }>, "many">>;
756
- }, z.ZodTypeAny, "passthrough">>]>>;
757
- activeCpuDurationMs: z.ZodOptional<z.ZodNumber>;
758
- networkTransfer: z.ZodOptional<z.ZodObject<{
759
- ingress: z.ZodNumber;
760
- egress: z.ZodNumber;
761
- }, "strip", z.ZodTypeAny, {
762
- ingress: number;
763
- egress: number;
764
- }, {
765
- ingress: number;
766
- egress: number;
767
- }>>;
768
- }, "strip", z.ZodTypeAny, {
769
- id: string;
770
- memory: number;
771
- vcpus: number;
772
- region: string;
773
- runtime: string;
774
- timeout: number;
775
- status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
776
- requestedAt: number;
777
- createdAt: number;
778
- cwd: string;
779
- updatedAt: number;
780
- startedAt?: number | undefined;
781
- requestedStopAt?: number | undefined;
782
- stoppedAt?: number | undefined;
783
- abortedAt?: number | undefined;
784
- duration?: number | undefined;
785
- sourceSnapshotId?: string | undefined;
786
- snapshottedAt?: number | undefined;
787
- interactivePort?: number | undefined;
788
- networkPolicy?: z.objectOutputType<{
789
- mode: z.ZodLiteral<"allow-all">;
790
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
791
- mode: z.ZodLiteral<"deny-all">;
792
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
793
- mode: z.ZodLiteral<"custom">;
794
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
795
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
796
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
797
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
798
- domain: z.ZodString;
799
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
800
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
801
- }, "strip", z.ZodTypeAny, {
802
- domain: string;
803
- headers?: Record<string, string> | undefined;
804
- headerNames?: string[] | undefined;
805
- }, {
806
- domain: string;
807
- headers?: Record<string, string> | undefined;
808
- headerNames?: string[] | undefined;
809
- }>, "many">>;
810
- }, z.ZodTypeAny, "passthrough"> | undefined;
811
- activeCpuDurationMs?: number | undefined;
812
- networkTransfer?: {
813
- ingress: number;
814
- egress: number;
815
- } | undefined;
816
- }, {
817
- id: string;
818
- memory: number;
819
- vcpus: number;
820
- region: string;
821
- runtime: string;
822
- timeout: number;
823
- status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
824
- requestedAt: number;
825
- createdAt: number;
826
- cwd: string;
827
- updatedAt: number;
828
- startedAt?: number | undefined;
829
- requestedStopAt?: number | undefined;
830
- stoppedAt?: number | undefined;
831
- abortedAt?: number | undefined;
832
- duration?: number | undefined;
833
- sourceSnapshotId?: string | undefined;
834
- snapshottedAt?: number | undefined;
835
- interactivePort?: number | undefined;
836
- networkPolicy?: z.objectInputType<{
837
- mode: z.ZodLiteral<"allow-all">;
838
- }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
839
- mode: z.ZodLiteral<"deny-all">;
840
- }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
841
- mode: z.ZodLiteral<"custom">;
842
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
843
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
844
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
845
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
846
- domain: z.ZodString;
847
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
848
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
849
- }, "strip", z.ZodTypeAny, {
850
- domain: string;
851
- headers?: Record<string, string> | undefined;
852
- headerNames?: string[] | undefined;
853
- }, {
854
- domain: string;
855
- headers?: Record<string, string> | undefined;
856
- headerNames?: string[] | undefined;
857
- }>, "many">>;
858
- }, z.ZodTypeAny, "passthrough"> | undefined;
859
- activeCpuDurationMs?: number | undefined;
860
- networkTransfer?: {
861
- ingress: number;
862
- egress: number;
863
- } | undefined;
864
- }>;
662
+ declare const LogLineStdout: z.ZodObject<{
663
+ data: z.ZodString;
865
664
  } & {
866
- routes: z.ZodArray<z.ZodObject<{
867
- url: z.ZodString;
868
- subdomain: z.ZodString;
869
- port: z.ZodNumber;
870
- }, "strip", z.ZodTypeAny, {
871
- url: string;
872
- subdomain: string;
873
- port: number;
874
- }, {
875
- url: string;
876
- subdomain: string;
877
- port: number;
878
- }>, "many">;
665
+ stream: z.ZodLiteral<"stdout">;
879
666
  }, "strip", z.ZodTypeAny, {
880
- sandbox: {
881
- id: string;
882
- memory: number;
883
- vcpus: number;
884
- region: string;
885
- runtime: string;
886
- timeout: number;
887
- status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
888
- requestedAt: number;
889
- createdAt: number;
890
- cwd: string;
891
- updatedAt: number;
892
- startedAt?: number | undefined;
893
- requestedStopAt?: number | undefined;
894
- stoppedAt?: number | undefined;
895
- abortedAt?: number | undefined;
896
- duration?: number | undefined;
897
- sourceSnapshotId?: string | undefined;
898
- snapshottedAt?: number | undefined;
899
- interactivePort?: number | undefined;
900
- networkPolicy?: z.objectOutputType<{
901
- mode: z.ZodLiteral<"allow-all">;
902
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
903
- mode: z.ZodLiteral<"deny-all">;
904
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
905
- mode: z.ZodLiteral<"custom">;
906
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
907
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
908
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
909
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
910
- domain: z.ZodString;
911
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
912
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
913
- }, "strip", z.ZodTypeAny, {
914
- domain: string;
915
- headers?: Record<string, string> | undefined;
916
- headerNames?: string[] | undefined;
917
- }, {
918
- domain: string;
919
- headers?: Record<string, string> | undefined;
920
- headerNames?: string[] | undefined;
921
- }>, "many">>;
922
- }, z.ZodTypeAny, "passthrough"> | undefined;
923
- activeCpuDurationMs?: number | undefined;
924
- networkTransfer?: {
925
- ingress: number;
926
- egress: number;
927
- } | undefined;
928
- };
929
- routes: {
930
- url: string;
931
- subdomain: string;
932
- port: number;
933
- }[];
667
+ data: string;
668
+ stream: "stdout";
934
669
  }, {
935
- sandbox: {
936
- id: string;
937
- memory: number;
938
- vcpus: number;
939
- region: string;
940
- runtime: string;
941
- timeout: number;
942
- status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
943
- requestedAt: number;
944
- createdAt: number;
945
- cwd: string;
946
- updatedAt: number;
947
- startedAt?: number | undefined;
948
- requestedStopAt?: number | undefined;
949
- stoppedAt?: number | undefined;
950
- abortedAt?: number | undefined;
951
- duration?: number | undefined;
952
- sourceSnapshotId?: string | undefined;
953
- snapshottedAt?: number | undefined;
954
- interactivePort?: number | undefined;
955
- networkPolicy?: z.objectInputType<{
956
- mode: z.ZodLiteral<"allow-all">;
957
- }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
958
- mode: z.ZodLiteral<"deny-all">;
959
- }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
960
- mode: z.ZodLiteral<"custom">;
961
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
962
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
963
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
964
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
965
- domain: z.ZodString;
966
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
967
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
968
- }, "strip", z.ZodTypeAny, {
969
- domain: string;
970
- headers?: Record<string, string> | undefined;
971
- headerNames?: string[] | undefined;
972
- }, {
973
- domain: string;
974
- headers?: Record<string, string> | undefined;
975
- headerNames?: string[] | undefined;
976
- }>, "many">>;
977
- }, z.ZodTypeAny, "passthrough"> | undefined;
978
- activeCpuDurationMs?: number | undefined;
979
- networkTransfer?: {
980
- ingress: number;
981
- egress: number;
982
- } | undefined;
983
- };
984
- routes: {
985
- url: string;
986
- subdomain: string;
987
- port: number;
988
- }[];
670
+ data: string;
671
+ stream: "stdout";
989
672
  }>;
990
- export declare const CommandResponse: z.ZodObject<{
991
- command: z.ZodObject<{
992
- id: z.ZodString;
993
- name: z.ZodString;
994
- args: z.ZodArray<z.ZodString, "many">;
995
- cwd: z.ZodString;
996
- sandboxId: z.ZodString;
997
- exitCode: z.ZodNullable<z.ZodNumber>;
998
- startedAt: z.ZodNumber;
999
- }, "strip", z.ZodTypeAny, {
1000
- sandboxId: string;
1001
- id: string;
1002
- startedAt: number;
1003
- cwd: string;
1004
- name: string;
1005
- args: string[];
1006
- exitCode: number | null;
1007
- }, {
1008
- sandboxId: string;
1009
- id: string;
1010
- startedAt: number;
1011
- cwd: string;
1012
- name: string;
1013
- args: string[];
1014
- exitCode: number | null;
1015
- }>;
673
+ declare const LogLineStderr: z.ZodObject<{
674
+ data: z.ZodString;
675
+ } & {
676
+ stream: z.ZodLiteral<"stderr">;
1016
677
  }, "strip", z.ZodTypeAny, {
1017
- command: {
1018
- sandboxId: string;
1019
- id: string;
1020
- startedAt: number;
1021
- cwd: string;
1022
- name: string;
1023
- args: string[];
1024
- exitCode: number | null;
1025
- };
678
+ data: string;
679
+ stream: "stderr";
1026
680
  }, {
1027
- command: {
1028
- sandboxId: string;
1029
- id: string;
1030
- startedAt: number;
1031
- cwd: string;
1032
- name: string;
1033
- args: string[];
1034
- exitCode: number | null;
1035
- };
681
+ data: string;
682
+ stream: "stderr";
1036
683
  }>;
1037
- export type CommandFinishedData = z.infer<typeof CommandFinishedResponse>["command"];
1038
- export declare const CommandFinishedResponse: z.ZodObject<{
1039
- command: z.ZodObject<{
1040
- id: z.ZodString;
1041
- name: z.ZodString;
1042
- args: z.ZodArray<z.ZodString, "many">;
1043
- cwd: z.ZodString;
1044
- sandboxId: z.ZodString;
1045
- startedAt: z.ZodNumber;
1046
- } & {
1047
- exitCode: z.ZodNumber;
1048
- }, "strip", z.ZodTypeAny, {
1049
- sandboxId: string;
1050
- id: string;
1051
- startedAt: number;
1052
- cwd: string;
1053
- name: string;
1054
- args: string[];
1055
- exitCode: number;
1056
- }, {
1057
- sandboxId: string;
1058
- id: string;
1059
- startedAt: number;
1060
- cwd: string;
1061
- name: string;
1062
- args: string[];
1063
- exitCode: number;
1064
- }>;
1065
- }, "strip", z.ZodTypeAny, {
1066
- command: {
1067
- sandboxId: string;
1068
- id: string;
1069
- startedAt: number;
1070
- cwd: string;
1071
- name: string;
1072
- args: string[];
1073
- exitCode: number;
1074
- };
1075
- }, {
1076
- command: {
1077
- sandboxId: string;
1078
- id: string;
1079
- startedAt: number;
1080
- cwd: string;
1081
- name: string;
1082
- args: string[];
1083
- exitCode: number;
1084
- };
1085
- }>;
1086
- export declare const EmptyResponse: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
1087
- export declare const LogLineStdout: z.ZodObject<{
1088
- data: z.ZodString;
1089
- } & {
1090
- stream: z.ZodLiteral<"stdout">;
1091
- }, "strip", z.ZodTypeAny, {
1092
- data: string;
1093
- stream: "stdout";
1094
- }, {
1095
- data: string;
1096
- stream: "stdout";
1097
- }>;
1098
- export declare const LogLineStderr: z.ZodObject<{
1099
- data: z.ZodString;
1100
- } & {
1101
- stream: z.ZodLiteral<"stderr">;
1102
- }, "strip", z.ZodTypeAny, {
1103
- data: string;
1104
- stream: "stderr";
1105
- }, {
1106
- data: string;
1107
- stream: "stderr";
1108
- }>;
1109
- export declare const LogError: z.ZodObject<{
1110
- stream: z.ZodLiteral<"error">;
1111
- data: z.ZodObject<{
1112
- code: z.ZodString;
1113
- message: z.ZodString;
1114
- }, "strip", z.ZodTypeAny, {
1115
- message: string;
1116
- code: string;
1117
- }, {
1118
- message: string;
1119
- code: string;
1120
- }>;
1121
- }, "strip", z.ZodTypeAny, {
1122
- data: {
1123
- message: string;
1124
- code: string;
1125
- };
1126
- stream: "error";
1127
- }, {
1128
- data: {
1129
- message: string;
1130
- code: string;
1131
- };
1132
- stream: "error";
1133
- }>;
1134
- export declare const LogLine: z.ZodDiscriminatedUnion<"stream", [z.ZodObject<{
1135
- data: z.ZodString;
1136
- } & {
1137
- stream: z.ZodLiteral<"stdout">;
1138
- }, "strip", z.ZodTypeAny, {
1139
- data: string;
1140
- stream: "stdout";
1141
- }, {
1142
- data: string;
1143
- stream: "stdout";
1144
- }>, z.ZodObject<{
1145
- data: z.ZodString;
1146
- } & {
1147
- stream: z.ZodLiteral<"stderr">;
1148
- }, "strip", z.ZodTypeAny, {
1149
- data: string;
1150
- stream: "stderr";
1151
- }, {
1152
- data: string;
1153
- stream: "stderr";
1154
- }>, z.ZodObject<{
1155
- stream: z.ZodLiteral<"error">;
1156
- data: z.ZodObject<{
1157
- code: z.ZodString;
1158
- message: z.ZodString;
1159
- }, "strip", z.ZodTypeAny, {
1160
- message: string;
1161
- code: string;
1162
- }, {
1163
- message: string;
1164
- code: string;
1165
- }>;
1166
- }, "strip", z.ZodTypeAny, {
1167
- data: {
1168
- message: string;
1169
- code: string;
1170
- };
1171
- stream: "error";
1172
- }, {
1173
- data: {
1174
- message: string;
1175
- code: string;
1176
- };
1177
- stream: "error";
1178
- }>]>;
1179
- export declare const SandboxesResponse: z.ZodObject<{
1180
- sandboxes: z.ZodArray<z.ZodObject<{
1181
- id: z.ZodString;
1182
- memory: z.ZodNumber;
1183
- vcpus: z.ZodNumber;
1184
- region: z.ZodString;
1185
- runtime: z.ZodString;
1186
- timeout: z.ZodNumber;
1187
- status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
1188
- requestedAt: z.ZodNumber;
1189
- startedAt: z.ZodOptional<z.ZodNumber>;
1190
- requestedStopAt: z.ZodOptional<z.ZodNumber>;
1191
- stoppedAt: z.ZodOptional<z.ZodNumber>;
1192
- abortedAt: z.ZodOptional<z.ZodNumber>;
1193
- duration: z.ZodOptional<z.ZodNumber>;
1194
- sourceSnapshotId: z.ZodOptional<z.ZodString>;
1195
- snapshottedAt: z.ZodOptional<z.ZodNumber>;
1196
- createdAt: z.ZodNumber;
1197
- cwd: z.ZodString;
1198
- updatedAt: z.ZodNumber;
1199
- interactivePort: z.ZodOptional<z.ZodNumber>;
1200
- networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1201
- mode: z.ZodLiteral<"allow-all">;
1202
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1203
- mode: z.ZodLiteral<"allow-all">;
1204
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1205
- mode: z.ZodLiteral<"allow-all">;
1206
- }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
1207
- mode: z.ZodLiteral<"deny-all">;
1208
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1209
- mode: z.ZodLiteral<"deny-all">;
1210
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1211
- mode: z.ZodLiteral<"deny-all">;
1212
- }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
1213
- mode: z.ZodLiteral<"custom">;
1214
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1215
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1216
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1217
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
1218
- domain: z.ZodString;
1219
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1220
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1221
- }, "strip", z.ZodTypeAny, {
1222
- domain: string;
1223
- headers?: Record<string, string> | undefined;
1224
- headerNames?: string[] | undefined;
1225
- }, {
1226
- domain: string;
1227
- headers?: Record<string, string> | undefined;
1228
- headerNames?: string[] | undefined;
1229
- }>, "many">>;
1230
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1231
- mode: z.ZodLiteral<"custom">;
1232
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1233
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1234
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1235
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
1236
- domain: z.ZodString;
1237
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1238
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1239
- }, "strip", z.ZodTypeAny, {
1240
- domain: string;
1241
- headers?: Record<string, string> | undefined;
1242
- headerNames?: string[] | undefined;
1243
- }, {
1244
- domain: string;
1245
- headers?: Record<string, string> | undefined;
1246
- headerNames?: string[] | undefined;
1247
- }>, "many">>;
1248
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1249
- mode: z.ZodLiteral<"custom">;
1250
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1251
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1252
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1253
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
1254
- domain: z.ZodString;
1255
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1256
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1257
- }, "strip", z.ZodTypeAny, {
1258
- domain: string;
1259
- headers?: Record<string, string> | undefined;
1260
- headerNames?: string[] | undefined;
1261
- }, {
1262
- domain: string;
1263
- headers?: Record<string, string> | undefined;
1264
- headerNames?: string[] | undefined;
1265
- }>, "many">>;
1266
- }, z.ZodTypeAny, "passthrough">>]>>;
1267
- activeCpuDurationMs: z.ZodOptional<z.ZodNumber>;
1268
- networkTransfer: z.ZodOptional<z.ZodObject<{
1269
- ingress: z.ZodNumber;
1270
- egress: z.ZodNumber;
1271
- }, "strip", z.ZodTypeAny, {
1272
- ingress: number;
1273
- egress: number;
1274
- }, {
1275
- ingress: number;
1276
- egress: number;
1277
- }>>;
1278
- }, "strip", z.ZodTypeAny, {
1279
- id: string;
1280
- memory: number;
1281
- vcpus: number;
1282
- region: string;
1283
- runtime: string;
1284
- timeout: number;
1285
- status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
1286
- requestedAt: number;
1287
- createdAt: number;
1288
- cwd: string;
1289
- updatedAt: number;
1290
- startedAt?: number | undefined;
1291
- requestedStopAt?: number | undefined;
1292
- stoppedAt?: number | undefined;
1293
- abortedAt?: number | undefined;
1294
- duration?: number | undefined;
1295
- sourceSnapshotId?: string | undefined;
1296
- snapshottedAt?: number | undefined;
1297
- interactivePort?: number | undefined;
1298
- networkPolicy?: z.objectOutputType<{
1299
- mode: z.ZodLiteral<"allow-all">;
1300
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
1301
- mode: z.ZodLiteral<"deny-all">;
1302
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
1303
- mode: z.ZodLiteral<"custom">;
1304
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1305
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1306
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1307
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
1308
- domain: z.ZodString;
1309
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1310
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1311
- }, "strip", z.ZodTypeAny, {
1312
- domain: string;
1313
- headers?: Record<string, string> | undefined;
1314
- headerNames?: string[] | undefined;
1315
- }, {
1316
- domain: string;
1317
- headers?: Record<string, string> | undefined;
1318
- headerNames?: string[] | undefined;
1319
- }>, "many">>;
1320
- }, z.ZodTypeAny, "passthrough"> | undefined;
1321
- activeCpuDurationMs?: number | undefined;
1322
- networkTransfer?: {
1323
- ingress: number;
1324
- egress: number;
1325
- } | undefined;
1326
- }, {
1327
- id: string;
1328
- memory: number;
1329
- vcpus: number;
1330
- region: string;
1331
- runtime: string;
1332
- timeout: number;
1333
- status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
1334
- requestedAt: number;
1335
- createdAt: number;
1336
- cwd: string;
1337
- updatedAt: number;
1338
- startedAt?: number | undefined;
1339
- requestedStopAt?: number | undefined;
1340
- stoppedAt?: number | undefined;
1341
- abortedAt?: number | undefined;
1342
- duration?: number | undefined;
1343
- sourceSnapshotId?: string | undefined;
1344
- snapshottedAt?: number | undefined;
1345
- interactivePort?: number | undefined;
1346
- networkPolicy?: z.objectInputType<{
1347
- mode: z.ZodLiteral<"allow-all">;
1348
- }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1349
- mode: z.ZodLiteral<"deny-all">;
1350
- }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1351
- mode: z.ZodLiteral<"custom">;
1352
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1353
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1354
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1355
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
1356
- domain: z.ZodString;
1357
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1358
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1359
- }, "strip", z.ZodTypeAny, {
1360
- domain: string;
1361
- headers?: Record<string, string> | undefined;
1362
- headerNames?: string[] | undefined;
1363
- }, {
1364
- domain: string;
1365
- headers?: Record<string, string> | undefined;
1366
- headerNames?: string[] | undefined;
1367
- }>, "many">>;
1368
- }, z.ZodTypeAny, "passthrough"> | undefined;
1369
- activeCpuDurationMs?: number | undefined;
1370
- networkTransfer?: {
1371
- ingress: number;
1372
- egress: number;
1373
- } | undefined;
1374
- }>, "many">;
1375
- pagination: z.ZodObject<{
1376
- /**
1377
- * Amount of items in the current page.
1378
- * @example 20
1379
- */
1380
- count: z.ZodNumber;
1381
- /**
1382
- * Timestamp that must be used to request the next page.
1383
- * @example 1540095775951
1384
- */
1385
- next: z.ZodNullable<z.ZodNumber>;
1386
- /**
1387
- * Timestamp that must be used to request the previous page.
1388
- * @example 1540095775951
1389
- */
1390
- prev: z.ZodNullable<z.ZodNumber>;
1391
- }, "strip", z.ZodTypeAny, {
1392
- count: number;
1393
- next: number | null;
1394
- prev: number | null;
1395
- }, {
1396
- count: number;
1397
- next: number | null;
1398
- prev: number | null;
1399
- }>;
1400
- }, "strip", z.ZodTypeAny, {
1401
- sandboxes: {
1402
- id: string;
1403
- memory: number;
1404
- vcpus: number;
1405
- region: string;
1406
- runtime: string;
1407
- timeout: number;
1408
- status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
1409
- requestedAt: number;
1410
- createdAt: number;
1411
- cwd: string;
1412
- updatedAt: number;
1413
- startedAt?: number | undefined;
1414
- requestedStopAt?: number | undefined;
1415
- stoppedAt?: number | undefined;
1416
- abortedAt?: number | undefined;
1417
- duration?: number | undefined;
1418
- sourceSnapshotId?: string | undefined;
1419
- snapshottedAt?: number | undefined;
1420
- interactivePort?: number | undefined;
1421
- networkPolicy?: z.objectOutputType<{
1422
- mode: z.ZodLiteral<"allow-all">;
1423
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
1424
- mode: z.ZodLiteral<"deny-all">;
1425
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
1426
- mode: z.ZodLiteral<"custom">;
1427
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1428
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1429
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1430
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
1431
- domain: z.ZodString;
1432
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1433
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1434
- }, "strip", z.ZodTypeAny, {
1435
- domain: string;
1436
- headers?: Record<string, string> | undefined;
1437
- headerNames?: string[] | undefined;
1438
- }, {
1439
- domain: string;
1440
- headers?: Record<string, string> | undefined;
1441
- headerNames?: string[] | undefined;
1442
- }>, "many">>;
1443
- }, z.ZodTypeAny, "passthrough"> | undefined;
1444
- activeCpuDurationMs?: number | undefined;
1445
- networkTransfer?: {
1446
- ingress: number;
1447
- egress: number;
1448
- } | undefined;
1449
- }[];
1450
- pagination: {
1451
- count: number;
1452
- next: number | null;
1453
- prev: number | null;
1454
- };
1455
- }, {
1456
- sandboxes: {
1457
- id: string;
1458
- memory: number;
1459
- vcpus: number;
1460
- region: string;
1461
- runtime: string;
1462
- timeout: number;
1463
- status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
1464
- requestedAt: number;
1465
- createdAt: number;
1466
- cwd: string;
1467
- updatedAt: number;
1468
- startedAt?: number | undefined;
1469
- requestedStopAt?: number | undefined;
1470
- stoppedAt?: number | undefined;
1471
- abortedAt?: number | undefined;
1472
- duration?: number | undefined;
1473
- sourceSnapshotId?: string | undefined;
1474
- snapshottedAt?: number | undefined;
1475
- interactivePort?: number | undefined;
1476
- networkPolicy?: z.objectInputType<{
1477
- mode: z.ZodLiteral<"allow-all">;
1478
- }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1479
- mode: z.ZodLiteral<"deny-all">;
1480
- }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1481
- mode: z.ZodLiteral<"custom">;
1482
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1483
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1484
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1485
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
1486
- domain: z.ZodString;
1487
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1488
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1489
- }, "strip", z.ZodTypeAny, {
1490
- domain: string;
1491
- headers?: Record<string, string> | undefined;
1492
- headerNames?: string[] | undefined;
1493
- }, {
1494
- domain: string;
1495
- headers?: Record<string, string> | undefined;
1496
- headerNames?: string[] | undefined;
1497
- }>, "many">>;
1498
- }, z.ZodTypeAny, "passthrough"> | undefined;
1499
- activeCpuDurationMs?: number | undefined;
1500
- networkTransfer?: {
1501
- ingress: number;
1502
- egress: number;
1503
- } | undefined;
1504
- }[];
1505
- pagination: {
1506
- count: number;
1507
- next: number | null;
1508
- prev: number | null;
1509
- };
1510
- }>;
1511
- export declare const SnapshotsResponse: z.ZodObject<{
1512
- snapshots: z.ZodArray<z.ZodObject<{
1513
- id: z.ZodString;
1514
- sourceSandboxId: z.ZodString;
1515
- region: z.ZodString;
1516
- status: z.ZodEnum<["created", "deleted", "failed"]>;
1517
- sizeBytes: z.ZodNumber;
1518
- expiresAt: z.ZodOptional<z.ZodNumber>;
1519
- createdAt: z.ZodNumber;
1520
- updatedAt: z.ZodNumber;
1521
- }, "strip", z.ZodTypeAny, {
1522
- id: string;
1523
- region: string;
1524
- status: "failed" | "created" | "deleted";
1525
- createdAt: number;
1526
- updatedAt: number;
1527
- sourceSandboxId: string;
1528
- sizeBytes: number;
1529
- expiresAt?: number | undefined;
1530
- }, {
1531
- id: string;
1532
- region: string;
1533
- status: "failed" | "created" | "deleted";
1534
- createdAt: number;
1535
- updatedAt: number;
1536
- sourceSandboxId: string;
1537
- sizeBytes: number;
1538
- expiresAt?: number | undefined;
1539
- }>, "many">;
1540
- pagination: z.ZodObject<{
1541
- /**
1542
- * Amount of items in the current page.
1543
- * @example 20
1544
- */
1545
- count: z.ZodNumber;
1546
- /**
1547
- * Timestamp that must be used to request the next page.
1548
- * @example 1540095775951
1549
- */
1550
- next: z.ZodNullable<z.ZodNumber>;
1551
- /**
1552
- * Timestamp that must be used to request the previous page.
1553
- * @example 1540095775951
1554
- */
1555
- prev: z.ZodNullable<z.ZodNumber>;
1556
- }, "strip", z.ZodTypeAny, {
1557
- count: number;
1558
- next: number | null;
1559
- prev: number | null;
1560
- }, {
1561
- count: number;
1562
- next: number | null;
1563
- prev: number | null;
1564
- }>;
1565
- }, "strip", z.ZodTypeAny, {
1566
- pagination: {
1567
- count: number;
1568
- next: number | null;
1569
- prev: number | null;
1570
- };
1571
- snapshots: {
1572
- id: string;
1573
- region: string;
1574
- status: "failed" | "created" | "deleted";
1575
- createdAt: number;
1576
- updatedAt: number;
1577
- sourceSandboxId: string;
1578
- sizeBytes: number;
1579
- expiresAt?: number | undefined;
1580
- }[];
1581
- }, {
1582
- pagination: {
1583
- count: number;
1584
- next: number | null;
1585
- prev: number | null;
1586
- };
1587
- snapshots: {
1588
- id: string;
1589
- region: string;
1590
- status: "failed" | "created" | "deleted";
1591
- createdAt: number;
1592
- updatedAt: number;
1593
- sourceSandboxId: string;
1594
- sizeBytes: number;
1595
- expiresAt?: number | undefined;
1596
- }[];
1597
- }>;
1598
- export declare const ExtendTimeoutResponse: z.ZodObject<{
1599
- sandbox: z.ZodObject<{
1600
- id: z.ZodString;
1601
- memory: z.ZodNumber;
1602
- vcpus: z.ZodNumber;
1603
- region: z.ZodString;
1604
- runtime: z.ZodString;
1605
- timeout: z.ZodNumber;
1606
- status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
1607
- requestedAt: z.ZodNumber;
1608
- startedAt: z.ZodOptional<z.ZodNumber>;
1609
- requestedStopAt: z.ZodOptional<z.ZodNumber>;
1610
- stoppedAt: z.ZodOptional<z.ZodNumber>;
1611
- abortedAt: z.ZodOptional<z.ZodNumber>;
1612
- duration: z.ZodOptional<z.ZodNumber>;
1613
- sourceSnapshotId: z.ZodOptional<z.ZodString>;
1614
- snapshottedAt: z.ZodOptional<z.ZodNumber>;
1615
- createdAt: z.ZodNumber;
1616
- cwd: z.ZodString;
1617
- updatedAt: z.ZodNumber;
1618
- interactivePort: z.ZodOptional<z.ZodNumber>;
1619
- networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1620
- mode: z.ZodLiteral<"allow-all">;
1621
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1622
- mode: z.ZodLiteral<"allow-all">;
1623
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1624
- mode: z.ZodLiteral<"allow-all">;
1625
- }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
1626
- mode: z.ZodLiteral<"deny-all">;
1627
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1628
- mode: z.ZodLiteral<"deny-all">;
1629
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1630
- mode: z.ZodLiteral<"deny-all">;
1631
- }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
1632
- mode: z.ZodLiteral<"custom">;
1633
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1634
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1635
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1636
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
1637
- domain: z.ZodString;
1638
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1639
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1640
- }, "strip", z.ZodTypeAny, {
1641
- domain: string;
1642
- headers?: Record<string, string> | undefined;
1643
- headerNames?: string[] | undefined;
1644
- }, {
1645
- domain: string;
1646
- headers?: Record<string, string> | undefined;
1647
- headerNames?: string[] | undefined;
1648
- }>, "many">>;
1649
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1650
- mode: z.ZodLiteral<"custom">;
1651
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1652
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1653
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1654
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
1655
- domain: z.ZodString;
1656
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1657
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1658
- }, "strip", z.ZodTypeAny, {
1659
- domain: string;
1660
- headers?: Record<string, string> | undefined;
1661
- headerNames?: string[] | undefined;
1662
- }, {
1663
- domain: string;
1664
- headers?: Record<string, string> | undefined;
1665
- headerNames?: string[] | undefined;
1666
- }>, "many">>;
1667
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1668
- mode: z.ZodLiteral<"custom">;
1669
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1670
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1671
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1672
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
1673
- domain: z.ZodString;
1674
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1675
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1676
- }, "strip", z.ZodTypeAny, {
1677
- domain: string;
1678
- headers?: Record<string, string> | undefined;
1679
- headerNames?: string[] | undefined;
1680
- }, {
1681
- domain: string;
1682
- headers?: Record<string, string> | undefined;
1683
- headerNames?: string[] | undefined;
1684
- }>, "many">>;
1685
- }, z.ZodTypeAny, "passthrough">>]>>;
1686
- activeCpuDurationMs: z.ZodOptional<z.ZodNumber>;
1687
- networkTransfer: z.ZodOptional<z.ZodObject<{
1688
- ingress: z.ZodNumber;
1689
- egress: z.ZodNumber;
1690
- }, "strip", z.ZodTypeAny, {
1691
- ingress: number;
1692
- egress: number;
1693
- }, {
1694
- ingress: number;
1695
- egress: number;
1696
- }>>;
684
+ declare const ExtendTimeoutResponse: z.ZodObject<{
685
+ sandbox: z.ZodObject<{
686
+ id: z.ZodString;
687
+ memory: z.ZodNumber;
688
+ vcpus: z.ZodNumber;
689
+ region: z.ZodString;
690
+ runtime: z.ZodString;
691
+ timeout: z.ZodNumber;
692
+ status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
693
+ requestedAt: z.ZodNumber;
694
+ startedAt: z.ZodOptional<z.ZodNumber>;
695
+ requestedStopAt: z.ZodOptional<z.ZodNumber>;
696
+ stoppedAt: z.ZodOptional<z.ZodNumber>;
697
+ abortedAt: z.ZodOptional<z.ZodNumber>;
698
+ duration: z.ZodOptional<z.ZodNumber>;
699
+ sourceSnapshotId: z.ZodOptional<z.ZodString>;
700
+ snapshottedAt: z.ZodOptional<z.ZodNumber>;
701
+ createdAt: z.ZodNumber;
702
+ cwd: z.ZodString;
703
+ updatedAt: z.ZodNumber;
704
+ interactivePort: z.ZodOptional<z.ZodNumber>;
705
+ networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
706
+ mode: z.ZodLiteral<"allow-all">;
707
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
708
+ mode: z.ZodLiteral<"allow-all">;
709
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
710
+ mode: z.ZodLiteral<"allow-all">;
711
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
712
+ mode: z.ZodLiteral<"deny-all">;
713
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
714
+ mode: z.ZodLiteral<"deny-all">;
715
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
716
+ mode: z.ZodLiteral<"deny-all">;
717
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
718
+ mode: z.ZodLiteral<"custom">;
719
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
720
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
721
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
722
+ injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
723
+ domain: z.ZodString;
724
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
725
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
726
+ }, "strip", z.ZodTypeAny, {
727
+ domain: string;
728
+ headers?: Record<string, string> | undefined;
729
+ headerNames?: string[] | undefined;
730
+ }, {
731
+ domain: string;
732
+ headers?: Record<string, string> | undefined;
733
+ headerNames?: string[] | undefined;
734
+ }>, "many">>;
735
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
736
+ mode: z.ZodLiteral<"custom">;
737
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
738
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
739
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
740
+ injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
741
+ domain: z.ZodString;
742
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
743
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
744
+ }, "strip", z.ZodTypeAny, {
745
+ domain: string;
746
+ headers?: Record<string, string> | undefined;
747
+ headerNames?: string[] | undefined;
748
+ }, {
749
+ domain: string;
750
+ headers?: Record<string, string> | undefined;
751
+ headerNames?: string[] | undefined;
752
+ }>, "many">>;
753
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
754
+ mode: z.ZodLiteral<"custom">;
755
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
756
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
757
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
758
+ injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
759
+ domain: z.ZodString;
760
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
761
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
762
+ }, "strip", z.ZodTypeAny, {
763
+ domain: string;
764
+ headers?: Record<string, string> | undefined;
765
+ headerNames?: string[] | undefined;
766
+ }, {
767
+ domain: string;
768
+ headers?: Record<string, string> | undefined;
769
+ headerNames?: string[] | undefined;
770
+ }>, "many">>;
771
+ }, z.ZodTypeAny, "passthrough">>]>>;
772
+ activeCpuDurationMs: z.ZodOptional<z.ZodNumber>;
773
+ networkTransfer: z.ZodOptional<z.ZodObject<{
774
+ ingress: z.ZodNumber;
775
+ egress: z.ZodNumber;
1697
776
  }, "strip", z.ZodTypeAny, {
1698
- id: string;
1699
- memory: number;
1700
- vcpus: number;
1701
- region: string;
1702
- runtime: string;
1703
- timeout: number;
1704
- status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
1705
- requestedAt: number;
1706
- createdAt: number;
1707
- cwd: string;
1708
- updatedAt: number;
1709
- startedAt?: number | undefined;
1710
- requestedStopAt?: number | undefined;
1711
- stoppedAt?: number | undefined;
1712
- abortedAt?: number | undefined;
1713
- duration?: number | undefined;
1714
- sourceSnapshotId?: string | undefined;
1715
- snapshottedAt?: number | undefined;
1716
- interactivePort?: number | undefined;
1717
- networkPolicy?: z.objectOutputType<{
1718
- mode: z.ZodLiteral<"allow-all">;
1719
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
1720
- mode: z.ZodLiteral<"deny-all">;
1721
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
1722
- mode: z.ZodLiteral<"custom">;
1723
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1724
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1725
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1726
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
1727
- domain: z.ZodString;
1728
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1729
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1730
- }, "strip", z.ZodTypeAny, {
1731
- domain: string;
1732
- headers?: Record<string, string> | undefined;
1733
- headerNames?: string[] | undefined;
1734
- }, {
1735
- domain: string;
1736
- headers?: Record<string, string> | undefined;
1737
- headerNames?: string[] | undefined;
1738
- }>, "many">>;
1739
- }, z.ZodTypeAny, "passthrough"> | undefined;
1740
- activeCpuDurationMs?: number | undefined;
1741
- networkTransfer?: {
1742
- ingress: number;
1743
- egress: number;
1744
- } | undefined;
777
+ ingress: number;
778
+ egress: number;
1745
779
  }, {
1746
- id: string;
1747
- memory: number;
1748
- vcpus: number;
1749
- region: string;
1750
- runtime: string;
1751
- timeout: number;
1752
- status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
1753
- requestedAt: number;
1754
- createdAt: number;
1755
- cwd: string;
1756
- updatedAt: number;
1757
- startedAt?: number | undefined;
1758
- requestedStopAt?: number | undefined;
1759
- stoppedAt?: number | undefined;
1760
- abortedAt?: number | undefined;
1761
- duration?: number | undefined;
1762
- sourceSnapshotId?: string | undefined;
1763
- snapshottedAt?: number | undefined;
1764
- interactivePort?: number | undefined;
1765
- networkPolicy?: z.objectInputType<{
1766
- mode: z.ZodLiteral<"allow-all">;
1767
- }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1768
- mode: z.ZodLiteral<"deny-all">;
1769
- }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1770
- mode: z.ZodLiteral<"custom">;
1771
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1772
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1773
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1774
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
1775
- domain: z.ZodString;
1776
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1777
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1778
- }, "strip", z.ZodTypeAny, {
1779
- domain: string;
1780
- headers?: Record<string, string> | undefined;
1781
- headerNames?: string[] | undefined;
1782
- }, {
1783
- domain: string;
1784
- headers?: Record<string, string> | undefined;
1785
- headerNames?: string[] | undefined;
1786
- }>, "many">>;
1787
- }, z.ZodTypeAny, "passthrough"> | undefined;
1788
- activeCpuDurationMs?: number | undefined;
1789
- networkTransfer?: {
1790
- ingress: number;
1791
- egress: number;
1792
- } | undefined;
1793
- }>;
780
+ ingress: number;
781
+ egress: number;
782
+ }>>;
783
+ }, "strip", z.ZodTypeAny, {
784
+ status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
785
+ id: string;
786
+ memory: number;
787
+ vcpus: number;
788
+ region: string;
789
+ runtime: string;
790
+ timeout: number;
791
+ requestedAt: number;
792
+ createdAt: number;
793
+ cwd: string;
794
+ updatedAt: number;
795
+ startedAt?: number | undefined;
796
+ requestedStopAt?: number | undefined;
797
+ stoppedAt?: number | undefined;
798
+ abortedAt?: number | undefined;
799
+ duration?: number | undefined;
800
+ sourceSnapshotId?: string | undefined;
801
+ snapshottedAt?: number | undefined;
802
+ interactivePort?: number | undefined;
803
+ networkPolicy?: z.objectOutputType<{
804
+ mode: z.ZodLiteral<"allow-all">;
805
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
806
+ mode: z.ZodLiteral<"deny-all">;
807
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
808
+ mode: z.ZodLiteral<"custom">;
809
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
810
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
811
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
812
+ injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
813
+ domain: z.ZodString;
814
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
815
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
816
+ }, "strip", z.ZodTypeAny, {
817
+ domain: string;
818
+ headers?: Record<string, string> | undefined;
819
+ headerNames?: string[] | undefined;
820
+ }, {
821
+ domain: string;
822
+ headers?: Record<string, string> | undefined;
823
+ headerNames?: string[] | undefined;
824
+ }>, "many">>;
825
+ }, z.ZodTypeAny, "passthrough"> | undefined;
826
+ activeCpuDurationMs?: number | undefined;
827
+ networkTransfer?: {
828
+ ingress: number;
829
+ egress: number;
830
+ } | undefined;
831
+ }, {
832
+ status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
833
+ id: string;
834
+ memory: number;
835
+ vcpus: number;
836
+ region: string;
837
+ runtime: string;
838
+ timeout: number;
839
+ requestedAt: number;
840
+ createdAt: number;
841
+ cwd: string;
842
+ updatedAt: number;
843
+ startedAt?: number | undefined;
844
+ requestedStopAt?: number | undefined;
845
+ stoppedAt?: number | undefined;
846
+ abortedAt?: number | undefined;
847
+ duration?: number | undefined;
848
+ sourceSnapshotId?: string | undefined;
849
+ snapshottedAt?: number | undefined;
850
+ interactivePort?: number | undefined;
851
+ networkPolicy?: z.objectInputType<{
852
+ mode: z.ZodLiteral<"allow-all">;
853
+ }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
854
+ mode: z.ZodLiteral<"deny-all">;
855
+ }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
856
+ mode: z.ZodLiteral<"custom">;
857
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
858
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
859
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
860
+ injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
861
+ domain: z.ZodString;
862
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
863
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
864
+ }, "strip", z.ZodTypeAny, {
865
+ domain: string;
866
+ headers?: Record<string, string> | undefined;
867
+ headerNames?: string[] | undefined;
868
+ }, {
869
+ domain: string;
870
+ headers?: Record<string, string> | undefined;
871
+ headerNames?: string[] | undefined;
872
+ }>, "many">>;
873
+ }, z.ZodTypeAny, "passthrough"> | undefined;
874
+ activeCpuDurationMs?: number | undefined;
875
+ networkTransfer?: {
876
+ ingress: number;
877
+ egress: number;
878
+ } | undefined;
879
+ }>;
1794
880
  }, "strip", z.ZodTypeAny, {
1795
- sandbox: {
1796
- id: string;
1797
- memory: number;
1798
- vcpus: number;
1799
- region: string;
1800
- runtime: string;
1801
- timeout: number;
1802
- status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
1803
- requestedAt: number;
1804
- createdAt: number;
1805
- cwd: string;
1806
- updatedAt: number;
1807
- startedAt?: number | undefined;
1808
- requestedStopAt?: number | undefined;
1809
- stoppedAt?: number | undefined;
1810
- abortedAt?: number | undefined;
1811
- duration?: number | undefined;
1812
- sourceSnapshotId?: string | undefined;
1813
- snapshottedAt?: number | undefined;
1814
- interactivePort?: number | undefined;
1815
- networkPolicy?: z.objectOutputType<{
1816
- mode: z.ZodLiteral<"allow-all">;
1817
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
1818
- mode: z.ZodLiteral<"deny-all">;
1819
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
1820
- mode: z.ZodLiteral<"custom">;
1821
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1822
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1823
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1824
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
1825
- domain: z.ZodString;
1826
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1827
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1828
- }, "strip", z.ZodTypeAny, {
1829
- domain: string;
1830
- headers?: Record<string, string> | undefined;
1831
- headerNames?: string[] | undefined;
1832
- }, {
1833
- domain: string;
1834
- headers?: Record<string, string> | undefined;
1835
- headerNames?: string[] | undefined;
1836
- }>, "many">>;
1837
- }, z.ZodTypeAny, "passthrough"> | undefined;
1838
- activeCpuDurationMs?: number | undefined;
1839
- networkTransfer?: {
1840
- ingress: number;
1841
- egress: number;
1842
- } | undefined;
1843
- };
881
+ sandbox: {
882
+ status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
883
+ id: string;
884
+ memory: number;
885
+ vcpus: number;
886
+ region: string;
887
+ runtime: string;
888
+ timeout: number;
889
+ requestedAt: number;
890
+ createdAt: number;
891
+ cwd: string;
892
+ updatedAt: number;
893
+ startedAt?: number | undefined;
894
+ requestedStopAt?: number | undefined;
895
+ stoppedAt?: number | undefined;
896
+ abortedAt?: number | undefined;
897
+ duration?: number | undefined;
898
+ sourceSnapshotId?: string | undefined;
899
+ snapshottedAt?: number | undefined;
900
+ interactivePort?: number | undefined;
901
+ networkPolicy?: z.objectOutputType<{
902
+ mode: z.ZodLiteral<"allow-all">;
903
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
904
+ mode: z.ZodLiteral<"deny-all">;
905
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
906
+ mode: z.ZodLiteral<"custom">;
907
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
908
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
909
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
910
+ injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
911
+ domain: z.ZodString;
912
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
913
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
914
+ }, "strip", z.ZodTypeAny, {
915
+ domain: string;
916
+ headers?: Record<string, string> | undefined;
917
+ headerNames?: string[] | undefined;
918
+ }, {
919
+ domain: string;
920
+ headers?: Record<string, string> | undefined;
921
+ headerNames?: string[] | undefined;
922
+ }>, "many">>;
923
+ }, z.ZodTypeAny, "passthrough"> | undefined;
924
+ activeCpuDurationMs?: number | undefined;
925
+ networkTransfer?: {
926
+ ingress: number;
927
+ egress: number;
928
+ } | undefined;
929
+ };
1844
930
  }, {
1845
- sandbox: {
1846
- id: string;
1847
- memory: number;
1848
- vcpus: number;
1849
- region: string;
1850
- runtime: string;
1851
- timeout: number;
1852
- status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
1853
- requestedAt: number;
1854
- createdAt: number;
1855
- cwd: string;
1856
- updatedAt: number;
1857
- startedAt?: number | undefined;
1858
- requestedStopAt?: number | undefined;
1859
- stoppedAt?: number | undefined;
1860
- abortedAt?: number | undefined;
1861
- duration?: number | undefined;
1862
- sourceSnapshotId?: string | undefined;
1863
- snapshottedAt?: number | undefined;
1864
- interactivePort?: number | undefined;
1865
- networkPolicy?: z.objectInputType<{
1866
- mode: z.ZodLiteral<"allow-all">;
1867
- }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1868
- mode: z.ZodLiteral<"deny-all">;
1869
- }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1870
- mode: z.ZodLiteral<"custom">;
1871
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1872
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1873
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1874
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
1875
- domain: z.ZodString;
1876
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1877
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1878
- }, "strip", z.ZodTypeAny, {
1879
- domain: string;
1880
- headers?: Record<string, string> | undefined;
1881
- headerNames?: string[] | undefined;
1882
- }, {
1883
- domain: string;
1884
- headers?: Record<string, string> | undefined;
1885
- headerNames?: string[] | undefined;
1886
- }>, "many">>;
1887
- }, z.ZodTypeAny, "passthrough"> | undefined;
1888
- activeCpuDurationMs?: number | undefined;
1889
- networkTransfer?: {
1890
- ingress: number;
1891
- egress: number;
1892
- } | undefined;
1893
- };
931
+ sandbox: {
932
+ status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
933
+ id: string;
934
+ memory: number;
935
+ vcpus: number;
936
+ region: string;
937
+ runtime: string;
938
+ timeout: number;
939
+ requestedAt: number;
940
+ createdAt: number;
941
+ cwd: string;
942
+ updatedAt: number;
943
+ startedAt?: number | undefined;
944
+ requestedStopAt?: number | undefined;
945
+ stoppedAt?: number | undefined;
946
+ abortedAt?: number | undefined;
947
+ duration?: number | undefined;
948
+ sourceSnapshotId?: string | undefined;
949
+ snapshottedAt?: number | undefined;
950
+ interactivePort?: number | undefined;
951
+ networkPolicy?: z.objectInputType<{
952
+ mode: z.ZodLiteral<"allow-all">;
953
+ }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
954
+ mode: z.ZodLiteral<"deny-all">;
955
+ }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
956
+ mode: z.ZodLiteral<"custom">;
957
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
958
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
959
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
960
+ injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
961
+ domain: z.ZodString;
962
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
963
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
964
+ }, "strip", z.ZodTypeAny, {
965
+ domain: string;
966
+ headers?: Record<string, string> | undefined;
967
+ headerNames?: string[] | undefined;
968
+ }, {
969
+ domain: string;
970
+ headers?: Record<string, string> | undefined;
971
+ headerNames?: string[] | undefined;
972
+ }>, "many">>;
973
+ }, z.ZodTypeAny, "passthrough"> | undefined;
974
+ activeCpuDurationMs?: number | undefined;
975
+ networkTransfer?: {
976
+ ingress: number;
977
+ egress: number;
978
+ } | undefined;
979
+ };
1894
980
  }>;
1895
- export declare const UpdateNetworkPolicyResponse: z.ZodObject<{
1896
- sandbox: z.ZodObject<{
1897
- id: z.ZodString;
1898
- memory: z.ZodNumber;
1899
- vcpus: z.ZodNumber;
1900
- region: z.ZodString;
1901
- runtime: z.ZodString;
1902
- timeout: z.ZodNumber;
1903
- status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
1904
- requestedAt: z.ZodNumber;
1905
- startedAt: z.ZodOptional<z.ZodNumber>;
1906
- requestedStopAt: z.ZodOptional<z.ZodNumber>;
1907
- stoppedAt: z.ZodOptional<z.ZodNumber>;
1908
- abortedAt: z.ZodOptional<z.ZodNumber>;
1909
- duration: z.ZodOptional<z.ZodNumber>;
1910
- sourceSnapshotId: z.ZodOptional<z.ZodString>;
1911
- snapshottedAt: z.ZodOptional<z.ZodNumber>;
1912
- createdAt: z.ZodNumber;
1913
- cwd: z.ZodString;
1914
- updatedAt: z.ZodNumber;
1915
- interactivePort: z.ZodOptional<z.ZodNumber>;
1916
- networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1917
- mode: z.ZodLiteral<"allow-all">;
1918
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1919
- mode: z.ZodLiteral<"allow-all">;
1920
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1921
- mode: z.ZodLiteral<"allow-all">;
1922
- }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
1923
- mode: z.ZodLiteral<"deny-all">;
1924
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1925
- mode: z.ZodLiteral<"deny-all">;
1926
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1927
- mode: z.ZodLiteral<"deny-all">;
1928
- }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
1929
- mode: z.ZodLiteral<"custom">;
1930
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1931
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1932
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1933
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
1934
- domain: z.ZodString;
1935
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1936
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1937
- }, "strip", z.ZodTypeAny, {
1938
- domain: string;
1939
- headers?: Record<string, string> | undefined;
1940
- headerNames?: string[] | undefined;
1941
- }, {
1942
- domain: string;
1943
- headers?: Record<string, string> | undefined;
1944
- headerNames?: string[] | undefined;
1945
- }>, "many">>;
1946
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1947
- mode: z.ZodLiteral<"custom">;
1948
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1949
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1950
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1951
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
1952
- domain: z.ZodString;
1953
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1954
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1955
- }, "strip", z.ZodTypeAny, {
1956
- domain: string;
1957
- headers?: Record<string, string> | undefined;
1958
- headerNames?: string[] | undefined;
1959
- }, {
1960
- domain: string;
1961
- headers?: Record<string, string> | undefined;
1962
- headerNames?: string[] | undefined;
1963
- }>, "many">>;
1964
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1965
- mode: z.ZodLiteral<"custom">;
1966
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1967
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1968
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1969
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
1970
- domain: z.ZodString;
1971
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1972
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1973
- }, "strip", z.ZodTypeAny, {
1974
- domain: string;
1975
- headers?: Record<string, string> | undefined;
1976
- headerNames?: string[] | undefined;
1977
- }, {
1978
- domain: string;
1979
- headers?: Record<string, string> | undefined;
1980
- headerNames?: string[] | undefined;
1981
- }>, "many">>;
1982
- }, z.ZodTypeAny, "passthrough">>]>>;
1983
- activeCpuDurationMs: z.ZodOptional<z.ZodNumber>;
1984
- networkTransfer: z.ZodOptional<z.ZodObject<{
1985
- ingress: z.ZodNumber;
1986
- egress: z.ZodNumber;
1987
- }, "strip", z.ZodTypeAny, {
1988
- ingress: number;
1989
- egress: number;
1990
- }, {
1991
- ingress: number;
1992
- egress: number;
1993
- }>>;
981
+ declare const UpdateNetworkPolicyResponse: z.ZodObject<{
982
+ sandbox: z.ZodObject<{
983
+ id: z.ZodString;
984
+ memory: z.ZodNumber;
985
+ vcpus: z.ZodNumber;
986
+ region: z.ZodString;
987
+ runtime: z.ZodString;
988
+ timeout: z.ZodNumber;
989
+ status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
990
+ requestedAt: z.ZodNumber;
991
+ startedAt: z.ZodOptional<z.ZodNumber>;
992
+ requestedStopAt: z.ZodOptional<z.ZodNumber>;
993
+ stoppedAt: z.ZodOptional<z.ZodNumber>;
994
+ abortedAt: z.ZodOptional<z.ZodNumber>;
995
+ duration: z.ZodOptional<z.ZodNumber>;
996
+ sourceSnapshotId: z.ZodOptional<z.ZodString>;
997
+ snapshottedAt: z.ZodOptional<z.ZodNumber>;
998
+ createdAt: z.ZodNumber;
999
+ cwd: z.ZodString;
1000
+ updatedAt: z.ZodNumber;
1001
+ interactivePort: z.ZodOptional<z.ZodNumber>;
1002
+ networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1003
+ mode: z.ZodLiteral<"allow-all">;
1004
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1005
+ mode: z.ZodLiteral<"allow-all">;
1006
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1007
+ mode: z.ZodLiteral<"allow-all">;
1008
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
1009
+ mode: z.ZodLiteral<"deny-all">;
1010
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1011
+ mode: z.ZodLiteral<"deny-all">;
1012
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1013
+ mode: z.ZodLiteral<"deny-all">;
1014
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
1015
+ mode: z.ZodLiteral<"custom">;
1016
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1017
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1018
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1019
+ injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
1020
+ domain: z.ZodString;
1021
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1022
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1023
+ }, "strip", z.ZodTypeAny, {
1024
+ domain: string;
1025
+ headers?: Record<string, string> | undefined;
1026
+ headerNames?: string[] | undefined;
1027
+ }, {
1028
+ domain: string;
1029
+ headers?: Record<string, string> | undefined;
1030
+ headerNames?: string[] | undefined;
1031
+ }>, "many">>;
1032
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1033
+ mode: z.ZodLiteral<"custom">;
1034
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1035
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1036
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1037
+ injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
1038
+ domain: z.ZodString;
1039
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1040
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1041
+ }, "strip", z.ZodTypeAny, {
1042
+ domain: string;
1043
+ headers?: Record<string, string> | undefined;
1044
+ headerNames?: string[] | undefined;
1045
+ }, {
1046
+ domain: string;
1047
+ headers?: Record<string, string> | undefined;
1048
+ headerNames?: string[] | undefined;
1049
+ }>, "many">>;
1050
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1051
+ mode: z.ZodLiteral<"custom">;
1052
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1053
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1054
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1055
+ injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
1056
+ domain: z.ZodString;
1057
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1058
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1059
+ }, "strip", z.ZodTypeAny, {
1060
+ domain: string;
1061
+ headers?: Record<string, string> | undefined;
1062
+ headerNames?: string[] | undefined;
1063
+ }, {
1064
+ domain: string;
1065
+ headers?: Record<string, string> | undefined;
1066
+ headerNames?: string[] | undefined;
1067
+ }>, "many">>;
1068
+ }, z.ZodTypeAny, "passthrough">>]>>;
1069
+ activeCpuDurationMs: z.ZodOptional<z.ZodNumber>;
1070
+ networkTransfer: z.ZodOptional<z.ZodObject<{
1071
+ ingress: z.ZodNumber;
1072
+ egress: z.ZodNumber;
1994
1073
  }, "strip", z.ZodTypeAny, {
1995
- id: string;
1996
- memory: number;
1997
- vcpus: number;
1998
- region: string;
1999
- runtime: string;
2000
- timeout: number;
2001
- status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
2002
- requestedAt: number;
2003
- createdAt: number;
2004
- cwd: string;
2005
- updatedAt: number;
2006
- startedAt?: number | undefined;
2007
- requestedStopAt?: number | undefined;
2008
- stoppedAt?: number | undefined;
2009
- abortedAt?: number | undefined;
2010
- duration?: number | undefined;
2011
- sourceSnapshotId?: string | undefined;
2012
- snapshottedAt?: number | undefined;
2013
- interactivePort?: number | undefined;
2014
- networkPolicy?: z.objectOutputType<{
2015
- mode: z.ZodLiteral<"allow-all">;
2016
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
2017
- mode: z.ZodLiteral<"deny-all">;
2018
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
2019
- mode: z.ZodLiteral<"custom">;
2020
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2021
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2022
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2023
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
2024
- domain: z.ZodString;
2025
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2026
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2027
- }, "strip", z.ZodTypeAny, {
2028
- domain: string;
2029
- headers?: Record<string, string> | undefined;
2030
- headerNames?: string[] | undefined;
2031
- }, {
2032
- domain: string;
2033
- headers?: Record<string, string> | undefined;
2034
- headerNames?: string[] | undefined;
2035
- }>, "many">>;
2036
- }, z.ZodTypeAny, "passthrough"> | undefined;
2037
- activeCpuDurationMs?: number | undefined;
2038
- networkTransfer?: {
2039
- ingress: number;
2040
- egress: number;
2041
- } | undefined;
1074
+ ingress: number;
1075
+ egress: number;
2042
1076
  }, {
2043
- id: string;
2044
- memory: number;
2045
- vcpus: number;
2046
- region: string;
2047
- runtime: string;
2048
- timeout: number;
2049
- status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
2050
- requestedAt: number;
2051
- createdAt: number;
2052
- cwd: string;
2053
- updatedAt: number;
2054
- startedAt?: number | undefined;
2055
- requestedStopAt?: number | undefined;
2056
- stoppedAt?: number | undefined;
2057
- abortedAt?: number | undefined;
2058
- duration?: number | undefined;
2059
- sourceSnapshotId?: string | undefined;
2060
- snapshottedAt?: number | undefined;
2061
- interactivePort?: number | undefined;
2062
- networkPolicy?: z.objectInputType<{
2063
- mode: z.ZodLiteral<"allow-all">;
2064
- }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
2065
- mode: z.ZodLiteral<"deny-all">;
2066
- }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
2067
- mode: z.ZodLiteral<"custom">;
2068
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2069
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2070
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2071
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
2072
- domain: z.ZodString;
2073
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2074
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2075
- }, "strip", z.ZodTypeAny, {
2076
- domain: string;
2077
- headers?: Record<string, string> | undefined;
2078
- headerNames?: string[] | undefined;
2079
- }, {
2080
- domain: string;
2081
- headers?: Record<string, string> | undefined;
2082
- headerNames?: string[] | undefined;
2083
- }>, "many">>;
2084
- }, z.ZodTypeAny, "passthrough"> | undefined;
2085
- activeCpuDurationMs?: number | undefined;
2086
- networkTransfer?: {
2087
- ingress: number;
2088
- egress: number;
2089
- } | undefined;
2090
- }>;
1077
+ ingress: number;
1078
+ egress: number;
1079
+ }>>;
1080
+ }, "strip", z.ZodTypeAny, {
1081
+ status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
1082
+ id: string;
1083
+ memory: number;
1084
+ vcpus: number;
1085
+ region: string;
1086
+ runtime: string;
1087
+ timeout: number;
1088
+ requestedAt: number;
1089
+ createdAt: number;
1090
+ cwd: string;
1091
+ updatedAt: number;
1092
+ startedAt?: number | undefined;
1093
+ requestedStopAt?: number | undefined;
1094
+ stoppedAt?: number | undefined;
1095
+ abortedAt?: number | undefined;
1096
+ duration?: number | undefined;
1097
+ sourceSnapshotId?: string | undefined;
1098
+ snapshottedAt?: number | undefined;
1099
+ interactivePort?: number | undefined;
1100
+ networkPolicy?: z.objectOutputType<{
1101
+ mode: z.ZodLiteral<"allow-all">;
1102
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
1103
+ mode: z.ZodLiteral<"deny-all">;
1104
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
1105
+ mode: z.ZodLiteral<"custom">;
1106
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1107
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1108
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1109
+ injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
1110
+ domain: z.ZodString;
1111
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1112
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1113
+ }, "strip", z.ZodTypeAny, {
1114
+ domain: string;
1115
+ headers?: Record<string, string> | undefined;
1116
+ headerNames?: string[] | undefined;
1117
+ }, {
1118
+ domain: string;
1119
+ headers?: Record<string, string> | undefined;
1120
+ headerNames?: string[] | undefined;
1121
+ }>, "many">>;
1122
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1123
+ activeCpuDurationMs?: number | undefined;
1124
+ networkTransfer?: {
1125
+ ingress: number;
1126
+ egress: number;
1127
+ } | undefined;
1128
+ }, {
1129
+ status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
1130
+ id: string;
1131
+ memory: number;
1132
+ vcpus: number;
1133
+ region: string;
1134
+ runtime: string;
1135
+ timeout: number;
1136
+ requestedAt: number;
1137
+ createdAt: number;
1138
+ cwd: string;
1139
+ updatedAt: number;
1140
+ startedAt?: number | undefined;
1141
+ requestedStopAt?: number | undefined;
1142
+ stoppedAt?: number | undefined;
1143
+ abortedAt?: number | undefined;
1144
+ duration?: number | undefined;
1145
+ sourceSnapshotId?: string | undefined;
1146
+ snapshottedAt?: number | undefined;
1147
+ interactivePort?: number | undefined;
1148
+ networkPolicy?: z.objectInputType<{
1149
+ mode: z.ZodLiteral<"allow-all">;
1150
+ }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1151
+ mode: z.ZodLiteral<"deny-all">;
1152
+ }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1153
+ mode: z.ZodLiteral<"custom">;
1154
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1155
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1156
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1157
+ injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
1158
+ domain: z.ZodString;
1159
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1160
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1161
+ }, "strip", z.ZodTypeAny, {
1162
+ domain: string;
1163
+ headers?: Record<string, string> | undefined;
1164
+ headerNames?: string[] | undefined;
1165
+ }, {
1166
+ domain: string;
1167
+ headers?: Record<string, string> | undefined;
1168
+ headerNames?: string[] | undefined;
1169
+ }>, "many">>;
1170
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1171
+ activeCpuDurationMs?: number | undefined;
1172
+ networkTransfer?: {
1173
+ ingress: number;
1174
+ egress: number;
1175
+ } | undefined;
1176
+ }>;
2091
1177
  }, "strip", z.ZodTypeAny, {
2092
- sandbox: {
2093
- id: string;
2094
- memory: number;
2095
- vcpus: number;
2096
- region: string;
2097
- runtime: string;
2098
- timeout: number;
2099
- status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
2100
- requestedAt: number;
2101
- createdAt: number;
2102
- cwd: string;
2103
- updatedAt: number;
2104
- startedAt?: number | undefined;
2105
- requestedStopAt?: number | undefined;
2106
- stoppedAt?: number | undefined;
2107
- abortedAt?: number | undefined;
2108
- duration?: number | undefined;
2109
- sourceSnapshotId?: string | undefined;
2110
- snapshottedAt?: number | undefined;
2111
- interactivePort?: number | undefined;
2112
- networkPolicy?: z.objectOutputType<{
2113
- mode: z.ZodLiteral<"allow-all">;
2114
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
2115
- mode: z.ZodLiteral<"deny-all">;
2116
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
2117
- mode: z.ZodLiteral<"custom">;
2118
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2119
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2120
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2121
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
2122
- domain: z.ZodString;
2123
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2124
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2125
- }, "strip", z.ZodTypeAny, {
2126
- domain: string;
2127
- headers?: Record<string, string> | undefined;
2128
- headerNames?: string[] | undefined;
2129
- }, {
2130
- domain: string;
2131
- headers?: Record<string, string> | undefined;
2132
- headerNames?: string[] | undefined;
2133
- }>, "many">>;
2134
- }, z.ZodTypeAny, "passthrough"> | undefined;
2135
- activeCpuDurationMs?: number | undefined;
2136
- networkTransfer?: {
2137
- ingress: number;
2138
- egress: number;
2139
- } | undefined;
2140
- };
1178
+ sandbox: {
1179
+ status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
1180
+ id: string;
1181
+ memory: number;
1182
+ vcpus: number;
1183
+ region: string;
1184
+ runtime: string;
1185
+ timeout: number;
1186
+ requestedAt: number;
1187
+ createdAt: number;
1188
+ cwd: string;
1189
+ updatedAt: number;
1190
+ startedAt?: number | undefined;
1191
+ requestedStopAt?: number | undefined;
1192
+ stoppedAt?: number | undefined;
1193
+ abortedAt?: number | undefined;
1194
+ duration?: number | undefined;
1195
+ sourceSnapshotId?: string | undefined;
1196
+ snapshottedAt?: number | undefined;
1197
+ interactivePort?: number | undefined;
1198
+ networkPolicy?: z.objectOutputType<{
1199
+ mode: z.ZodLiteral<"allow-all">;
1200
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
1201
+ mode: z.ZodLiteral<"deny-all">;
1202
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
1203
+ mode: z.ZodLiteral<"custom">;
1204
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1205
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1206
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1207
+ injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
1208
+ domain: z.ZodString;
1209
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1210
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1211
+ }, "strip", z.ZodTypeAny, {
1212
+ domain: string;
1213
+ headers?: Record<string, string> | undefined;
1214
+ headerNames?: string[] | undefined;
1215
+ }, {
1216
+ domain: string;
1217
+ headers?: Record<string, string> | undefined;
1218
+ headerNames?: string[] | undefined;
1219
+ }>, "many">>;
1220
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1221
+ activeCpuDurationMs?: number | undefined;
1222
+ networkTransfer?: {
1223
+ ingress: number;
1224
+ egress: number;
1225
+ } | undefined;
1226
+ };
2141
1227
  }, {
2142
- sandbox: {
2143
- id: string;
2144
- memory: number;
2145
- vcpus: number;
2146
- region: string;
2147
- runtime: string;
2148
- timeout: number;
2149
- status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
2150
- requestedAt: number;
2151
- createdAt: number;
2152
- cwd: string;
2153
- updatedAt: number;
2154
- startedAt?: number | undefined;
2155
- requestedStopAt?: number | undefined;
2156
- stoppedAt?: number | undefined;
2157
- abortedAt?: number | undefined;
2158
- duration?: number | undefined;
2159
- sourceSnapshotId?: string | undefined;
2160
- snapshottedAt?: number | undefined;
2161
- interactivePort?: number | undefined;
2162
- networkPolicy?: z.objectInputType<{
2163
- mode: z.ZodLiteral<"allow-all">;
2164
- }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
2165
- mode: z.ZodLiteral<"deny-all">;
2166
- }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
2167
- mode: z.ZodLiteral<"custom">;
2168
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2169
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2170
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2171
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
2172
- domain: z.ZodString;
2173
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2174
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2175
- }, "strip", z.ZodTypeAny, {
2176
- domain: string;
2177
- headers?: Record<string, string> | undefined;
2178
- headerNames?: string[] | undefined;
2179
- }, {
2180
- domain: string;
2181
- headers?: Record<string, string> | undefined;
2182
- headerNames?: string[] | undefined;
2183
- }>, "many">>;
2184
- }, z.ZodTypeAny, "passthrough"> | undefined;
2185
- activeCpuDurationMs?: number | undefined;
2186
- networkTransfer?: {
2187
- ingress: number;
2188
- egress: number;
2189
- } | undefined;
2190
- };
1228
+ sandbox: {
1229
+ status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
1230
+ id: string;
1231
+ memory: number;
1232
+ vcpus: number;
1233
+ region: string;
1234
+ runtime: string;
1235
+ timeout: number;
1236
+ requestedAt: number;
1237
+ createdAt: number;
1238
+ cwd: string;
1239
+ updatedAt: number;
1240
+ startedAt?: number | undefined;
1241
+ requestedStopAt?: number | undefined;
1242
+ stoppedAt?: number | undefined;
1243
+ abortedAt?: number | undefined;
1244
+ duration?: number | undefined;
1245
+ sourceSnapshotId?: string | undefined;
1246
+ snapshottedAt?: number | undefined;
1247
+ interactivePort?: number | undefined;
1248
+ networkPolicy?: z.objectInputType<{
1249
+ mode: z.ZodLiteral<"allow-all">;
1250
+ }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1251
+ mode: z.ZodLiteral<"deny-all">;
1252
+ }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1253
+ mode: z.ZodLiteral<"custom">;
1254
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1255
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1256
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1257
+ injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
1258
+ domain: z.ZodString;
1259
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1260
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1261
+ }, "strip", z.ZodTypeAny, {
1262
+ domain: string;
1263
+ headers?: Record<string, string> | undefined;
1264
+ headerNames?: string[] | undefined;
1265
+ }, {
1266
+ domain: string;
1267
+ headers?: Record<string, string> | undefined;
1268
+ headerNames?: string[] | undefined;
1269
+ }>, "many">>;
1270
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1271
+ activeCpuDurationMs?: number | undefined;
1272
+ networkTransfer?: {
1273
+ ingress: number;
1274
+ egress: number;
1275
+ } | undefined;
1276
+ };
2191
1277
  }>;
2192
- export declare const CreateSnapshotResponse: z.ZodObject<{
2193
- snapshot: z.ZodObject<{
2194
- id: z.ZodString;
2195
- sourceSandboxId: z.ZodString;
2196
- region: z.ZodString;
2197
- status: z.ZodEnum<["created", "deleted", "failed"]>;
2198
- sizeBytes: z.ZodNumber;
2199
- expiresAt: z.ZodOptional<z.ZodNumber>;
2200
- createdAt: z.ZodNumber;
2201
- updatedAt: z.ZodNumber;
2202
- }, "strip", z.ZodTypeAny, {
2203
- id: string;
2204
- region: string;
2205
- status: "failed" | "created" | "deleted";
2206
- createdAt: number;
2207
- updatedAt: number;
2208
- sourceSandboxId: string;
2209
- sizeBytes: number;
2210
- expiresAt?: number | undefined;
2211
- }, {
2212
- id: string;
2213
- region: string;
2214
- status: "failed" | "created" | "deleted";
2215
- createdAt: number;
2216
- updatedAt: number;
2217
- sourceSandboxId: string;
2218
- sizeBytes: number;
2219
- expiresAt?: number | undefined;
2220
- }>;
2221
- sandbox: z.ZodObject<{
2222
- id: z.ZodString;
2223
- memory: z.ZodNumber;
2224
- vcpus: z.ZodNumber;
2225
- region: z.ZodString;
2226
- runtime: z.ZodString;
2227
- timeout: z.ZodNumber;
2228
- status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
2229
- requestedAt: z.ZodNumber;
2230
- startedAt: z.ZodOptional<z.ZodNumber>;
2231
- requestedStopAt: z.ZodOptional<z.ZodNumber>;
2232
- stoppedAt: z.ZodOptional<z.ZodNumber>;
2233
- abortedAt: z.ZodOptional<z.ZodNumber>;
2234
- duration: z.ZodOptional<z.ZodNumber>;
2235
- sourceSnapshotId: z.ZodOptional<z.ZodString>;
2236
- snapshottedAt: z.ZodOptional<z.ZodNumber>;
2237
- createdAt: z.ZodNumber;
2238
- cwd: z.ZodString;
2239
- updatedAt: z.ZodNumber;
2240
- interactivePort: z.ZodOptional<z.ZodNumber>;
2241
- networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2242
- mode: z.ZodLiteral<"allow-all">;
2243
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2244
- mode: z.ZodLiteral<"allow-all">;
2245
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2246
- mode: z.ZodLiteral<"allow-all">;
2247
- }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
2248
- mode: z.ZodLiteral<"deny-all">;
2249
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2250
- mode: z.ZodLiteral<"deny-all">;
2251
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2252
- mode: z.ZodLiteral<"deny-all">;
2253
- }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
2254
- mode: z.ZodLiteral<"custom">;
2255
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2256
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2257
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2258
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
2259
- domain: z.ZodString;
2260
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2261
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2262
- }, "strip", z.ZodTypeAny, {
2263
- domain: string;
2264
- headers?: Record<string, string> | undefined;
2265
- headerNames?: string[] | undefined;
2266
- }, {
2267
- domain: string;
2268
- headers?: Record<string, string> | undefined;
2269
- headerNames?: string[] | undefined;
2270
- }>, "many">>;
2271
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2272
- mode: z.ZodLiteral<"custom">;
2273
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2274
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2275
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2276
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
2277
- domain: z.ZodString;
2278
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2279
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2280
- }, "strip", z.ZodTypeAny, {
2281
- domain: string;
2282
- headers?: Record<string, string> | undefined;
2283
- headerNames?: string[] | undefined;
2284
- }, {
2285
- domain: string;
2286
- headers?: Record<string, string> | undefined;
2287
- headerNames?: string[] | undefined;
2288
- }>, "many">>;
2289
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2290
- mode: z.ZodLiteral<"custom">;
2291
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2292
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2293
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2294
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
2295
- domain: z.ZodString;
2296
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2297
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2298
- }, "strip", z.ZodTypeAny, {
2299
- domain: string;
2300
- headers?: Record<string, string> | undefined;
2301
- headerNames?: string[] | undefined;
2302
- }, {
2303
- domain: string;
2304
- headers?: Record<string, string> | undefined;
2305
- headerNames?: string[] | undefined;
2306
- }>, "many">>;
2307
- }, z.ZodTypeAny, "passthrough">>]>>;
2308
- activeCpuDurationMs: z.ZodOptional<z.ZodNumber>;
2309
- networkTransfer: z.ZodOptional<z.ZodObject<{
2310
- ingress: z.ZodNumber;
2311
- egress: z.ZodNumber;
2312
- }, "strip", z.ZodTypeAny, {
2313
- ingress: number;
2314
- egress: number;
2315
- }, {
2316
- ingress: number;
2317
- egress: number;
2318
- }>>;
1278
+ declare const CreateSnapshotResponse: z.ZodObject<{
1279
+ snapshot: z.ZodObject<{
1280
+ id: z.ZodString;
1281
+ sourceSandboxId: z.ZodString;
1282
+ region: z.ZodString;
1283
+ status: z.ZodEnum<["created", "deleted", "failed"]>;
1284
+ sizeBytes: z.ZodNumber;
1285
+ expiresAt: z.ZodOptional<z.ZodNumber>;
1286
+ createdAt: z.ZodNumber;
1287
+ updatedAt: z.ZodNumber;
1288
+ }, "strip", z.ZodTypeAny, {
1289
+ status: "failed" | "created" | "deleted";
1290
+ id: string;
1291
+ region: string;
1292
+ createdAt: number;
1293
+ updatedAt: number;
1294
+ sourceSandboxId: string;
1295
+ sizeBytes: number;
1296
+ expiresAt?: number | undefined;
1297
+ }, {
1298
+ status: "failed" | "created" | "deleted";
1299
+ id: string;
1300
+ region: string;
1301
+ createdAt: number;
1302
+ updatedAt: number;
1303
+ sourceSandboxId: string;
1304
+ sizeBytes: number;
1305
+ expiresAt?: number | undefined;
1306
+ }>;
1307
+ sandbox: z.ZodObject<{
1308
+ id: z.ZodString;
1309
+ memory: z.ZodNumber;
1310
+ vcpus: z.ZodNumber;
1311
+ region: z.ZodString;
1312
+ runtime: z.ZodString;
1313
+ timeout: z.ZodNumber;
1314
+ status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
1315
+ requestedAt: z.ZodNumber;
1316
+ startedAt: z.ZodOptional<z.ZodNumber>;
1317
+ requestedStopAt: z.ZodOptional<z.ZodNumber>;
1318
+ stoppedAt: z.ZodOptional<z.ZodNumber>;
1319
+ abortedAt: z.ZodOptional<z.ZodNumber>;
1320
+ duration: z.ZodOptional<z.ZodNumber>;
1321
+ sourceSnapshotId: z.ZodOptional<z.ZodString>;
1322
+ snapshottedAt: z.ZodOptional<z.ZodNumber>;
1323
+ createdAt: z.ZodNumber;
1324
+ cwd: z.ZodString;
1325
+ updatedAt: z.ZodNumber;
1326
+ interactivePort: z.ZodOptional<z.ZodNumber>;
1327
+ networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1328
+ mode: z.ZodLiteral<"allow-all">;
1329
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1330
+ mode: z.ZodLiteral<"allow-all">;
1331
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1332
+ mode: z.ZodLiteral<"allow-all">;
1333
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
1334
+ mode: z.ZodLiteral<"deny-all">;
1335
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1336
+ mode: z.ZodLiteral<"deny-all">;
1337
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1338
+ mode: z.ZodLiteral<"deny-all">;
1339
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
1340
+ mode: z.ZodLiteral<"custom">;
1341
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1342
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1343
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1344
+ injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
1345
+ domain: z.ZodString;
1346
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1347
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1348
+ }, "strip", z.ZodTypeAny, {
1349
+ domain: string;
1350
+ headers?: Record<string, string> | undefined;
1351
+ headerNames?: string[] | undefined;
1352
+ }, {
1353
+ domain: string;
1354
+ headers?: Record<string, string> | undefined;
1355
+ headerNames?: string[] | undefined;
1356
+ }>, "many">>;
1357
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1358
+ mode: z.ZodLiteral<"custom">;
1359
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1360
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1361
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1362
+ injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
1363
+ domain: z.ZodString;
1364
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1365
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1366
+ }, "strip", z.ZodTypeAny, {
1367
+ domain: string;
1368
+ headers?: Record<string, string> | undefined;
1369
+ headerNames?: string[] | undefined;
1370
+ }, {
1371
+ domain: string;
1372
+ headers?: Record<string, string> | undefined;
1373
+ headerNames?: string[] | undefined;
1374
+ }>, "many">>;
1375
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1376
+ mode: z.ZodLiteral<"custom">;
1377
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1378
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1379
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1380
+ injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
1381
+ domain: z.ZodString;
1382
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1383
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1384
+ }, "strip", z.ZodTypeAny, {
1385
+ domain: string;
1386
+ headers?: Record<string, string> | undefined;
1387
+ headerNames?: string[] | undefined;
1388
+ }, {
1389
+ domain: string;
1390
+ headers?: Record<string, string> | undefined;
1391
+ headerNames?: string[] | undefined;
1392
+ }>, "many">>;
1393
+ }, z.ZodTypeAny, "passthrough">>]>>;
1394
+ activeCpuDurationMs: z.ZodOptional<z.ZodNumber>;
1395
+ networkTransfer: z.ZodOptional<z.ZodObject<{
1396
+ ingress: z.ZodNumber;
1397
+ egress: z.ZodNumber;
2319
1398
  }, "strip", z.ZodTypeAny, {
2320
- id: string;
2321
- memory: number;
2322
- vcpus: number;
2323
- region: string;
2324
- runtime: string;
2325
- timeout: number;
2326
- status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
2327
- requestedAt: number;
2328
- createdAt: number;
2329
- cwd: string;
2330
- updatedAt: number;
2331
- startedAt?: number | undefined;
2332
- requestedStopAt?: number | undefined;
2333
- stoppedAt?: number | undefined;
2334
- abortedAt?: number | undefined;
2335
- duration?: number | undefined;
2336
- sourceSnapshotId?: string | undefined;
2337
- snapshottedAt?: number | undefined;
2338
- interactivePort?: number | undefined;
2339
- networkPolicy?: z.objectOutputType<{
2340
- mode: z.ZodLiteral<"allow-all">;
2341
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
2342
- mode: z.ZodLiteral<"deny-all">;
2343
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
2344
- mode: z.ZodLiteral<"custom">;
2345
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2346
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2347
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2348
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
2349
- domain: z.ZodString;
2350
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2351
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2352
- }, "strip", z.ZodTypeAny, {
2353
- domain: string;
2354
- headers?: Record<string, string> | undefined;
2355
- headerNames?: string[] | undefined;
2356
- }, {
2357
- domain: string;
2358
- headers?: Record<string, string> | undefined;
2359
- headerNames?: string[] | undefined;
2360
- }>, "many">>;
2361
- }, z.ZodTypeAny, "passthrough"> | undefined;
2362
- activeCpuDurationMs?: number | undefined;
2363
- networkTransfer?: {
2364
- ingress: number;
2365
- egress: number;
2366
- } | undefined;
1399
+ ingress: number;
1400
+ egress: number;
2367
1401
  }, {
2368
- id: string;
2369
- memory: number;
2370
- vcpus: number;
2371
- region: string;
2372
- runtime: string;
2373
- timeout: number;
2374
- status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
2375
- requestedAt: number;
2376
- createdAt: number;
2377
- cwd: string;
2378
- updatedAt: number;
2379
- startedAt?: number | undefined;
2380
- requestedStopAt?: number | undefined;
2381
- stoppedAt?: number | undefined;
2382
- abortedAt?: number | undefined;
2383
- duration?: number | undefined;
2384
- sourceSnapshotId?: string | undefined;
2385
- snapshottedAt?: number | undefined;
2386
- interactivePort?: number | undefined;
2387
- networkPolicy?: z.objectInputType<{
2388
- mode: z.ZodLiteral<"allow-all">;
2389
- }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
2390
- mode: z.ZodLiteral<"deny-all">;
2391
- }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
2392
- mode: z.ZodLiteral<"custom">;
2393
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2394
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2395
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2396
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
2397
- domain: z.ZodString;
2398
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2399
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2400
- }, "strip", z.ZodTypeAny, {
2401
- domain: string;
2402
- headers?: Record<string, string> | undefined;
2403
- headerNames?: string[] | undefined;
2404
- }, {
2405
- domain: string;
2406
- headers?: Record<string, string> | undefined;
2407
- headerNames?: string[] | undefined;
2408
- }>, "many">>;
2409
- }, z.ZodTypeAny, "passthrough"> | undefined;
2410
- activeCpuDurationMs?: number | undefined;
2411
- networkTransfer?: {
2412
- ingress: number;
2413
- egress: number;
2414
- } | undefined;
2415
- }>;
1402
+ ingress: number;
1403
+ egress: number;
1404
+ }>>;
1405
+ }, "strip", z.ZodTypeAny, {
1406
+ status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
1407
+ id: string;
1408
+ memory: number;
1409
+ vcpus: number;
1410
+ region: string;
1411
+ runtime: string;
1412
+ timeout: number;
1413
+ requestedAt: number;
1414
+ createdAt: number;
1415
+ cwd: string;
1416
+ updatedAt: number;
1417
+ startedAt?: number | undefined;
1418
+ requestedStopAt?: number | undefined;
1419
+ stoppedAt?: number | undefined;
1420
+ abortedAt?: number | undefined;
1421
+ duration?: number | undefined;
1422
+ sourceSnapshotId?: string | undefined;
1423
+ snapshottedAt?: number | undefined;
1424
+ interactivePort?: number | undefined;
1425
+ networkPolicy?: z.objectOutputType<{
1426
+ mode: z.ZodLiteral<"allow-all">;
1427
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
1428
+ mode: z.ZodLiteral<"deny-all">;
1429
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
1430
+ mode: z.ZodLiteral<"custom">;
1431
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1432
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1433
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1434
+ injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
1435
+ domain: z.ZodString;
1436
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1437
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1438
+ }, "strip", z.ZodTypeAny, {
1439
+ domain: string;
1440
+ headers?: Record<string, string> | undefined;
1441
+ headerNames?: string[] | undefined;
1442
+ }, {
1443
+ domain: string;
1444
+ headers?: Record<string, string> | undefined;
1445
+ headerNames?: string[] | undefined;
1446
+ }>, "many">>;
1447
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1448
+ activeCpuDurationMs?: number | undefined;
1449
+ networkTransfer?: {
1450
+ ingress: number;
1451
+ egress: number;
1452
+ } | undefined;
1453
+ }, {
1454
+ status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
1455
+ id: string;
1456
+ memory: number;
1457
+ vcpus: number;
1458
+ region: string;
1459
+ runtime: string;
1460
+ timeout: number;
1461
+ requestedAt: number;
1462
+ createdAt: number;
1463
+ cwd: string;
1464
+ updatedAt: number;
1465
+ startedAt?: number | undefined;
1466
+ requestedStopAt?: number | undefined;
1467
+ stoppedAt?: number | undefined;
1468
+ abortedAt?: number | undefined;
1469
+ duration?: number | undefined;
1470
+ sourceSnapshotId?: string | undefined;
1471
+ snapshottedAt?: number | undefined;
1472
+ interactivePort?: number | undefined;
1473
+ networkPolicy?: z.objectInputType<{
1474
+ mode: z.ZodLiteral<"allow-all">;
1475
+ }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1476
+ mode: z.ZodLiteral<"deny-all">;
1477
+ }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1478
+ mode: z.ZodLiteral<"custom">;
1479
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1480
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1481
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1482
+ injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
1483
+ domain: z.ZodString;
1484
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1485
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1486
+ }, "strip", z.ZodTypeAny, {
1487
+ domain: string;
1488
+ headers?: Record<string, string> | undefined;
1489
+ headerNames?: string[] | undefined;
1490
+ }, {
1491
+ domain: string;
1492
+ headers?: Record<string, string> | undefined;
1493
+ headerNames?: string[] | undefined;
1494
+ }>, "many">>;
1495
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1496
+ activeCpuDurationMs?: number | undefined;
1497
+ networkTransfer?: {
1498
+ ingress: number;
1499
+ egress: number;
1500
+ } | undefined;
1501
+ }>;
2416
1502
  }, "strip", z.ZodTypeAny, {
2417
- sandbox: {
2418
- id: string;
2419
- memory: number;
2420
- vcpus: number;
2421
- region: string;
2422
- runtime: string;
2423
- timeout: number;
2424
- status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
2425
- requestedAt: number;
2426
- createdAt: number;
2427
- cwd: string;
2428
- updatedAt: number;
2429
- startedAt?: number | undefined;
2430
- requestedStopAt?: number | undefined;
2431
- stoppedAt?: number | undefined;
2432
- abortedAt?: number | undefined;
2433
- duration?: number | undefined;
2434
- sourceSnapshotId?: string | undefined;
2435
- snapshottedAt?: number | undefined;
2436
- interactivePort?: number | undefined;
2437
- networkPolicy?: z.objectOutputType<{
2438
- mode: z.ZodLiteral<"allow-all">;
2439
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
2440
- mode: z.ZodLiteral<"deny-all">;
2441
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
2442
- mode: z.ZodLiteral<"custom">;
2443
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2444
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2445
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2446
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
2447
- domain: z.ZodString;
2448
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2449
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2450
- }, "strip", z.ZodTypeAny, {
2451
- domain: string;
2452
- headers?: Record<string, string> | undefined;
2453
- headerNames?: string[] | undefined;
2454
- }, {
2455
- domain: string;
2456
- headers?: Record<string, string> | undefined;
2457
- headerNames?: string[] | undefined;
2458
- }>, "many">>;
2459
- }, z.ZodTypeAny, "passthrough"> | undefined;
2460
- activeCpuDurationMs?: number | undefined;
2461
- networkTransfer?: {
2462
- ingress: number;
2463
- egress: number;
2464
- } | undefined;
2465
- };
2466
- snapshot: {
2467
- id: string;
2468
- region: string;
2469
- status: "failed" | "created" | "deleted";
2470
- createdAt: number;
2471
- updatedAt: number;
2472
- sourceSandboxId: string;
2473
- sizeBytes: number;
2474
- expiresAt?: number | undefined;
2475
- };
1503
+ sandbox: {
1504
+ status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
1505
+ id: string;
1506
+ memory: number;
1507
+ vcpus: number;
1508
+ region: string;
1509
+ runtime: string;
1510
+ timeout: number;
1511
+ requestedAt: number;
1512
+ createdAt: number;
1513
+ cwd: string;
1514
+ updatedAt: number;
1515
+ startedAt?: number | undefined;
1516
+ requestedStopAt?: number | undefined;
1517
+ stoppedAt?: number | undefined;
1518
+ abortedAt?: number | undefined;
1519
+ duration?: number | undefined;
1520
+ sourceSnapshotId?: string | undefined;
1521
+ snapshottedAt?: number | undefined;
1522
+ interactivePort?: number | undefined;
1523
+ networkPolicy?: z.objectOutputType<{
1524
+ mode: z.ZodLiteral<"allow-all">;
1525
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
1526
+ mode: z.ZodLiteral<"deny-all">;
1527
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
1528
+ mode: z.ZodLiteral<"custom">;
1529
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1530
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1531
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1532
+ injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
1533
+ domain: z.ZodString;
1534
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1535
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1536
+ }, "strip", z.ZodTypeAny, {
1537
+ domain: string;
1538
+ headers?: Record<string, string> | undefined;
1539
+ headerNames?: string[] | undefined;
1540
+ }, {
1541
+ domain: string;
1542
+ headers?: Record<string, string> | undefined;
1543
+ headerNames?: string[] | undefined;
1544
+ }>, "many">>;
1545
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1546
+ activeCpuDurationMs?: number | undefined;
1547
+ networkTransfer?: {
1548
+ ingress: number;
1549
+ egress: number;
1550
+ } | undefined;
1551
+ };
1552
+ snapshot: {
1553
+ status: "failed" | "created" | "deleted";
1554
+ id: string;
1555
+ region: string;
1556
+ createdAt: number;
1557
+ updatedAt: number;
1558
+ sourceSandboxId: string;
1559
+ sizeBytes: number;
1560
+ expiresAt?: number | undefined;
1561
+ };
2476
1562
  }, {
2477
- sandbox: {
2478
- id: string;
2479
- memory: number;
2480
- vcpus: number;
2481
- region: string;
2482
- runtime: string;
2483
- timeout: number;
2484
- status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
2485
- requestedAt: number;
2486
- createdAt: number;
2487
- cwd: string;
2488
- updatedAt: number;
2489
- startedAt?: number | undefined;
2490
- requestedStopAt?: number | undefined;
2491
- stoppedAt?: number | undefined;
2492
- abortedAt?: number | undefined;
2493
- duration?: number | undefined;
2494
- sourceSnapshotId?: string | undefined;
2495
- snapshottedAt?: number | undefined;
2496
- interactivePort?: number | undefined;
2497
- networkPolicy?: z.objectInputType<{
2498
- mode: z.ZodLiteral<"allow-all">;
2499
- }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
2500
- mode: z.ZodLiteral<"deny-all">;
2501
- }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
2502
- mode: z.ZodLiteral<"custom">;
2503
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2504
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2505
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2506
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
2507
- domain: z.ZodString;
2508
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2509
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2510
- }, "strip", z.ZodTypeAny, {
2511
- domain: string;
2512
- headers?: Record<string, string> | undefined;
2513
- headerNames?: string[] | undefined;
2514
- }, {
2515
- domain: string;
2516
- headers?: Record<string, string> | undefined;
2517
- headerNames?: string[] | undefined;
2518
- }>, "many">>;
2519
- }, z.ZodTypeAny, "passthrough"> | undefined;
2520
- activeCpuDurationMs?: number | undefined;
2521
- networkTransfer?: {
2522
- ingress: number;
2523
- egress: number;
2524
- } | undefined;
2525
- };
2526
- snapshot: {
2527
- id: string;
2528
- region: string;
2529
- status: "failed" | "created" | "deleted";
2530
- createdAt: number;
2531
- updatedAt: number;
2532
- sourceSandboxId: string;
2533
- sizeBytes: number;
2534
- expiresAt?: number | undefined;
2535
- };
1563
+ sandbox: {
1564
+ status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
1565
+ id: string;
1566
+ memory: number;
1567
+ vcpus: number;
1568
+ region: string;
1569
+ runtime: string;
1570
+ timeout: number;
1571
+ requestedAt: number;
1572
+ createdAt: number;
1573
+ cwd: string;
1574
+ updatedAt: number;
1575
+ startedAt?: number | undefined;
1576
+ requestedStopAt?: number | undefined;
1577
+ stoppedAt?: number | undefined;
1578
+ abortedAt?: number | undefined;
1579
+ duration?: number | undefined;
1580
+ sourceSnapshotId?: string | undefined;
1581
+ snapshottedAt?: number | undefined;
1582
+ interactivePort?: number | undefined;
1583
+ networkPolicy?: z.objectInputType<{
1584
+ mode: z.ZodLiteral<"allow-all">;
1585
+ }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1586
+ mode: z.ZodLiteral<"deny-all">;
1587
+ }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1588
+ mode: z.ZodLiteral<"custom">;
1589
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1590
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1591
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1592
+ injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
1593
+ domain: z.ZodString;
1594
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1595
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1596
+ }, "strip", z.ZodTypeAny, {
1597
+ domain: string;
1598
+ headers?: Record<string, string> | undefined;
1599
+ headerNames?: string[] | undefined;
1600
+ }, {
1601
+ domain: string;
1602
+ headers?: Record<string, string> | undefined;
1603
+ headerNames?: string[] | undefined;
1604
+ }>, "many">>;
1605
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1606
+ activeCpuDurationMs?: number | undefined;
1607
+ networkTransfer?: {
1608
+ ingress: number;
1609
+ egress: number;
1610
+ } | undefined;
1611
+ };
1612
+ snapshot: {
1613
+ status: "failed" | "created" | "deleted";
1614
+ id: string;
1615
+ region: string;
1616
+ createdAt: number;
1617
+ updatedAt: number;
1618
+ sourceSandboxId: string;
1619
+ sizeBytes: number;
1620
+ expiresAt?: number | undefined;
1621
+ };
2536
1622
  }>;
2537
- export declare const SnapshotResponse: z.ZodObject<{
2538
- snapshot: z.ZodObject<{
2539
- id: z.ZodString;
2540
- sourceSandboxId: z.ZodString;
2541
- region: z.ZodString;
2542
- status: z.ZodEnum<["created", "deleted", "failed"]>;
2543
- sizeBytes: z.ZodNumber;
2544
- expiresAt: z.ZodOptional<z.ZodNumber>;
2545
- createdAt: z.ZodNumber;
2546
- updatedAt: z.ZodNumber;
2547
- }, "strip", z.ZodTypeAny, {
2548
- id: string;
2549
- region: string;
2550
- status: "failed" | "created" | "deleted";
2551
- createdAt: number;
2552
- updatedAt: number;
2553
- sourceSandboxId: string;
2554
- sizeBytes: number;
2555
- expiresAt?: number | undefined;
2556
- }, {
2557
- id: string;
2558
- region: string;
2559
- status: "failed" | "created" | "deleted";
2560
- createdAt: number;
2561
- updatedAt: number;
2562
- sourceSandboxId: string;
2563
- sizeBytes: number;
2564
- expiresAt?: number | undefined;
2565
- }>;
1623
+ declare const SnapshotResponse: z.ZodObject<{
1624
+ snapshot: z.ZodObject<{
1625
+ id: z.ZodString;
1626
+ sourceSandboxId: z.ZodString;
1627
+ region: z.ZodString;
1628
+ status: z.ZodEnum<["created", "deleted", "failed"]>;
1629
+ sizeBytes: z.ZodNumber;
1630
+ expiresAt: z.ZodOptional<z.ZodNumber>;
1631
+ createdAt: z.ZodNumber;
1632
+ updatedAt: z.ZodNumber;
1633
+ }, "strip", z.ZodTypeAny, {
1634
+ status: "failed" | "created" | "deleted";
1635
+ id: string;
1636
+ region: string;
1637
+ createdAt: number;
1638
+ updatedAt: number;
1639
+ sourceSandboxId: string;
1640
+ sizeBytes: number;
1641
+ expiresAt?: number | undefined;
1642
+ }, {
1643
+ status: "failed" | "created" | "deleted";
1644
+ id: string;
1645
+ region: string;
1646
+ createdAt: number;
1647
+ updatedAt: number;
1648
+ sourceSandboxId: string;
1649
+ sizeBytes: number;
1650
+ expiresAt?: number | undefined;
1651
+ }>;
2566
1652
  }, "strip", z.ZodTypeAny, {
2567
- snapshot: {
2568
- id: string;
2569
- region: string;
2570
- status: "failed" | "created" | "deleted";
2571
- createdAt: number;
2572
- updatedAt: number;
2573
- sourceSandboxId: string;
2574
- sizeBytes: number;
2575
- expiresAt?: number | undefined;
2576
- };
1653
+ snapshot: {
1654
+ status: "failed" | "created" | "deleted";
1655
+ id: string;
1656
+ region: string;
1657
+ createdAt: number;
1658
+ updatedAt: number;
1659
+ sourceSandboxId: string;
1660
+ sizeBytes: number;
1661
+ expiresAt?: number | undefined;
1662
+ };
2577
1663
  }, {
2578
- snapshot: {
2579
- id: string;
2580
- region: string;
2581
- status: "failed" | "created" | "deleted";
2582
- createdAt: number;
2583
- updatedAt: number;
2584
- sourceSandboxId: string;
2585
- sizeBytes: number;
2586
- expiresAt?: number | undefined;
2587
- };
1664
+ snapshot: {
1665
+ status: "failed" | "created" | "deleted";
1666
+ id: string;
1667
+ region: string;
1668
+ createdAt: number;
1669
+ updatedAt: number;
1670
+ sourceSandboxId: string;
1671
+ sizeBytes: number;
1672
+ expiresAt?: number | undefined;
1673
+ };
2588
1674
  }>;
1675
+ //#endregion
1676
+ export { Command, CommandData, CommandFinishedData, CommandFinishedResponse, CommandResponse, CreateSnapshotResponse, ExtendTimeoutResponse, LogLineStderr, LogLineStdout, Sandbox, SandboxMetaData, SandboxResponse, SandboxRoute, SandboxRouteData, Snapshot, SnapshotMetadata, SnapshotResponse, UpdateNetworkPolicyResponse };
1677
+ //# sourceMappingURL=validators.d.ts.map