@vercel/sandbox 1.4.1 → 1.6.0

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.
@@ -1,5 +1,33 @@
1
1
  import { z } from "zod";
2
2
  export type SandboxMetaData = z.infer<typeof Sandbox>;
3
+ export declare const NetworkPolicyValidator: z.ZodUnion<[z.ZodObject<{
4
+ mode: z.ZodLiteral<"allow-all">;
5
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
6
+ mode: z.ZodLiteral<"allow-all">;
7
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
8
+ mode: z.ZodLiteral<"allow-all">;
9
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
10
+ mode: z.ZodLiteral<"deny-all">;
11
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
12
+ mode: z.ZodLiteral<"deny-all">;
13
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
14
+ mode: z.ZodLiteral<"deny-all">;
15
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
16
+ mode: z.ZodLiteral<"custom">;
17
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
18
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
19
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
20
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
21
+ mode: z.ZodLiteral<"custom">;
22
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
23
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
24
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
25
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
26
+ mode: z.ZodLiteral<"custom">;
27
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
28
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
29
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
30
+ }, z.ZodTypeAny, "passthrough">>]>;
3
31
  export declare const Sandbox: z.ZodObject<{
4
32
  id: z.ZodString;
5
33
  memory: z.ZodNumber;
@@ -7,11 +35,12 @@ export declare const Sandbox: z.ZodObject<{
7
35
  region: z.ZodString;
8
36
  runtime: z.ZodString;
9
37
  timeout: z.ZodNumber;
10
- status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "snapshotting"]>;
38
+ status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
11
39
  requestedAt: z.ZodNumber;
12
40
  startedAt: z.ZodOptional<z.ZodNumber>;
13
41
  requestedStopAt: z.ZodOptional<z.ZodNumber>;
14
42
  stoppedAt: z.ZodOptional<z.ZodNumber>;
43
+ abortedAt: z.ZodOptional<z.ZodNumber>;
15
44
  duration: z.ZodOptional<z.ZodNumber>;
16
45
  sourceSnapshotId: z.ZodOptional<z.ZodString>;
17
46
  snapshottedAt: z.ZodOptional<z.ZodNumber>;
@@ -19,6 +48,34 @@ export declare const Sandbox: z.ZodObject<{
19
48
  cwd: z.ZodString;
20
49
  updatedAt: z.ZodNumber;
21
50
  interactivePort: z.ZodOptional<z.ZodNumber>;
51
+ networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
52
+ mode: z.ZodLiteral<"allow-all">;
53
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
54
+ mode: z.ZodLiteral<"allow-all">;
55
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
56
+ mode: z.ZodLiteral<"allow-all">;
57
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
58
+ mode: z.ZodLiteral<"deny-all">;
59
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
60
+ mode: z.ZodLiteral<"deny-all">;
61
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
62
+ mode: z.ZodLiteral<"deny-all">;
63
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
64
+ mode: z.ZodLiteral<"custom">;
65
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
66
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
67
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
68
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
69
+ mode: z.ZodLiteral<"custom">;
70
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
71
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
72
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
73
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
74
+ mode: z.ZodLiteral<"custom">;
75
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
76
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
77
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
78
+ }, z.ZodTypeAny, "passthrough">>]>>;
22
79
  }, "strip", z.ZodTypeAny, {
23
80
  id: string;
24
81
  memory: number;
@@ -26,7 +83,7 @@ export declare const Sandbox: z.ZodObject<{
26
83
  region: string;
27
84
  runtime: string;
28
85
  timeout: number;
29
- status: "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
86
+ status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
30
87
  requestedAt: number;
31
88
  createdAt: number;
32
89
  cwd: string;
@@ -34,10 +91,21 @@ export declare const Sandbox: z.ZodObject<{
34
91
  startedAt?: number | undefined;
35
92
  requestedStopAt?: number | undefined;
36
93
  stoppedAt?: number | undefined;
94
+ abortedAt?: number | undefined;
37
95
  duration?: number | undefined;
38
96
  sourceSnapshotId?: string | undefined;
39
97
  snapshottedAt?: number | undefined;
40
98
  interactivePort?: number | undefined;
99
+ networkPolicy?: z.objectOutputType<{
100
+ mode: z.ZodLiteral<"allow-all">;
101
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
102
+ mode: z.ZodLiteral<"deny-all">;
103
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
104
+ mode: z.ZodLiteral<"custom">;
105
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
106
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
107
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
108
+ }, z.ZodTypeAny, "passthrough"> | undefined;
41
109
  }, {
42
110
  id: string;
43
111
  memory: number;
@@ -45,7 +113,7 @@ export declare const Sandbox: z.ZodObject<{
45
113
  region: string;
46
114
  runtime: string;
47
115
  timeout: number;
48
- status: "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
116
+ status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
49
117
  requestedAt: number;
50
118
  createdAt: number;
51
119
  cwd: string;
@@ -53,10 +121,21 @@ export declare const Sandbox: z.ZodObject<{
53
121
  startedAt?: number | undefined;
54
122
  requestedStopAt?: number | undefined;
55
123
  stoppedAt?: number | undefined;
124
+ abortedAt?: number | undefined;
56
125
  duration?: number | undefined;
57
126
  sourceSnapshotId?: string | undefined;
58
127
  snapshottedAt?: number | undefined;
59
128
  interactivePort?: number | undefined;
129
+ networkPolicy?: z.objectInputType<{
130
+ mode: z.ZodLiteral<"allow-all">;
131
+ }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
132
+ mode: z.ZodLiteral<"deny-all">;
133
+ }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
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
+ }, z.ZodTypeAny, "passthrough"> | undefined;
60
139
  }>;
61
140
  export type SandboxRouteData = z.infer<typeof SandboxRoute>;
62
141
  export declare const SandboxRoute: z.ZodObject<{
@@ -79,7 +158,7 @@ export declare const Snapshot: z.ZodObject<{
79
158
  region: z.ZodString;
80
159
  status: z.ZodEnum<["created", "deleted", "failed"]>;
81
160
  sizeBytes: z.ZodNumber;
82
- expiresAt: z.ZodNumber;
161
+ expiresAt: z.ZodOptional<z.ZodNumber>;
83
162
  createdAt: z.ZodNumber;
84
163
  updatedAt: z.ZodNumber;
85
164
  }, "strip", z.ZodTypeAny, {
@@ -90,7 +169,7 @@ export declare const Snapshot: z.ZodObject<{
90
169
  updatedAt: number;
91
170
  sourceSandboxId: string;
92
171
  sizeBytes: number;
93
- expiresAt: number;
172
+ expiresAt?: number | undefined;
94
173
  }, {
95
174
  id: string;
96
175
  region: string;
@@ -99,7 +178,7 @@ export declare const Snapshot: z.ZodObject<{
99
178
  updatedAt: number;
100
179
  sourceSandboxId: string;
101
180
  sizeBytes: number;
102
- expiresAt: number;
181
+ expiresAt?: number | undefined;
103
182
  }>;
104
183
  export declare const Pagination: z.ZodObject<{
105
184
  /**
@@ -160,11 +239,12 @@ export declare const SandboxResponse: z.ZodObject<{
160
239
  region: z.ZodString;
161
240
  runtime: z.ZodString;
162
241
  timeout: z.ZodNumber;
163
- status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "snapshotting"]>;
242
+ status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
164
243
  requestedAt: z.ZodNumber;
165
244
  startedAt: z.ZodOptional<z.ZodNumber>;
166
245
  requestedStopAt: z.ZodOptional<z.ZodNumber>;
167
246
  stoppedAt: z.ZodOptional<z.ZodNumber>;
247
+ abortedAt: z.ZodOptional<z.ZodNumber>;
168
248
  duration: z.ZodOptional<z.ZodNumber>;
169
249
  sourceSnapshotId: z.ZodOptional<z.ZodString>;
170
250
  snapshottedAt: z.ZodOptional<z.ZodNumber>;
@@ -172,6 +252,34 @@ export declare const SandboxResponse: z.ZodObject<{
172
252
  cwd: z.ZodString;
173
253
  updatedAt: z.ZodNumber;
174
254
  interactivePort: z.ZodOptional<z.ZodNumber>;
255
+ networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
256
+ mode: z.ZodLiteral<"allow-all">;
257
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
258
+ mode: z.ZodLiteral<"allow-all">;
259
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
260
+ mode: z.ZodLiteral<"allow-all">;
261
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
262
+ mode: z.ZodLiteral<"deny-all">;
263
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
264
+ mode: z.ZodLiteral<"deny-all">;
265
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
266
+ mode: z.ZodLiteral<"deny-all">;
267
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
268
+ mode: z.ZodLiteral<"custom">;
269
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
270
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
271
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
272
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
273
+ mode: z.ZodLiteral<"custom">;
274
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
275
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
276
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
277
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
278
+ mode: z.ZodLiteral<"custom">;
279
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
280
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
281
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
282
+ }, z.ZodTypeAny, "passthrough">>]>>;
175
283
  }, "strip", z.ZodTypeAny, {
176
284
  id: string;
177
285
  memory: number;
@@ -179,7 +287,7 @@ export declare const SandboxResponse: z.ZodObject<{
179
287
  region: string;
180
288
  runtime: string;
181
289
  timeout: number;
182
- status: "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
290
+ status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
183
291
  requestedAt: number;
184
292
  createdAt: number;
185
293
  cwd: string;
@@ -187,10 +295,21 @@ export declare const SandboxResponse: z.ZodObject<{
187
295
  startedAt?: number | undefined;
188
296
  requestedStopAt?: number | undefined;
189
297
  stoppedAt?: number | undefined;
298
+ abortedAt?: number | undefined;
190
299
  duration?: number | undefined;
191
300
  sourceSnapshotId?: string | undefined;
192
301
  snapshottedAt?: number | undefined;
193
302
  interactivePort?: number | undefined;
303
+ networkPolicy?: z.objectOutputType<{
304
+ mode: z.ZodLiteral<"allow-all">;
305
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
306
+ mode: z.ZodLiteral<"deny-all">;
307
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
308
+ mode: z.ZodLiteral<"custom">;
309
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
310
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
311
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
312
+ }, z.ZodTypeAny, "passthrough"> | undefined;
194
313
  }, {
195
314
  id: string;
196
315
  memory: number;
@@ -198,7 +317,7 @@ export declare const SandboxResponse: z.ZodObject<{
198
317
  region: string;
199
318
  runtime: string;
200
319
  timeout: number;
201
- status: "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
320
+ status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
202
321
  requestedAt: number;
203
322
  createdAt: number;
204
323
  cwd: string;
@@ -206,10 +325,21 @@ export declare const SandboxResponse: z.ZodObject<{
206
325
  startedAt?: number | undefined;
207
326
  requestedStopAt?: number | undefined;
208
327
  stoppedAt?: number | undefined;
328
+ abortedAt?: number | undefined;
209
329
  duration?: number | undefined;
210
330
  sourceSnapshotId?: string | undefined;
211
331
  snapshottedAt?: number | undefined;
212
332
  interactivePort?: number | undefined;
333
+ networkPolicy?: z.objectInputType<{
334
+ mode: z.ZodLiteral<"allow-all">;
335
+ }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
336
+ mode: z.ZodLiteral<"deny-all">;
337
+ }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
338
+ mode: z.ZodLiteral<"custom">;
339
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
340
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
341
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
342
+ }, z.ZodTypeAny, "passthrough"> | undefined;
213
343
  }>;
214
344
  }, "strip", z.ZodTypeAny, {
215
345
  sandbox: {
@@ -219,7 +349,7 @@ export declare const SandboxResponse: z.ZodObject<{
219
349
  region: string;
220
350
  runtime: string;
221
351
  timeout: number;
222
- status: "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
352
+ status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
223
353
  requestedAt: number;
224
354
  createdAt: number;
225
355
  cwd: string;
@@ -227,10 +357,21 @@ export declare const SandboxResponse: z.ZodObject<{
227
357
  startedAt?: number | undefined;
228
358
  requestedStopAt?: number | undefined;
229
359
  stoppedAt?: number | undefined;
360
+ abortedAt?: number | undefined;
230
361
  duration?: number | undefined;
231
362
  sourceSnapshotId?: string | undefined;
232
363
  snapshottedAt?: number | undefined;
233
364
  interactivePort?: number | undefined;
365
+ networkPolicy?: z.objectOutputType<{
366
+ mode: z.ZodLiteral<"allow-all">;
367
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
368
+ mode: z.ZodLiteral<"deny-all">;
369
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
370
+ mode: z.ZodLiteral<"custom">;
371
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
372
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
373
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
374
+ }, z.ZodTypeAny, "passthrough"> | undefined;
234
375
  };
235
376
  }, {
236
377
  sandbox: {
@@ -240,7 +381,7 @@ export declare const SandboxResponse: z.ZodObject<{
240
381
  region: string;
241
382
  runtime: string;
242
383
  timeout: number;
243
- status: "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
384
+ status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
244
385
  requestedAt: number;
245
386
  createdAt: number;
246
387
  cwd: string;
@@ -248,10 +389,21 @@ export declare const SandboxResponse: z.ZodObject<{
248
389
  startedAt?: number | undefined;
249
390
  requestedStopAt?: number | undefined;
250
391
  stoppedAt?: number | undefined;
392
+ abortedAt?: number | undefined;
251
393
  duration?: number | undefined;
252
394
  sourceSnapshotId?: string | undefined;
253
395
  snapshottedAt?: number | undefined;
254
396
  interactivePort?: number | undefined;
397
+ networkPolicy?: z.objectInputType<{
398
+ mode: z.ZodLiteral<"allow-all">;
399
+ }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
400
+ mode: z.ZodLiteral<"deny-all">;
401
+ }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
402
+ mode: z.ZodLiteral<"custom">;
403
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
404
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
405
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
406
+ }, z.ZodTypeAny, "passthrough"> | undefined;
255
407
  };
256
408
  }>;
257
409
  export declare const SandboxAndRoutesResponse: z.ZodObject<{
@@ -262,11 +414,12 @@ export declare const SandboxAndRoutesResponse: z.ZodObject<{
262
414
  region: z.ZodString;
263
415
  runtime: z.ZodString;
264
416
  timeout: z.ZodNumber;
265
- status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "snapshotting"]>;
417
+ status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
266
418
  requestedAt: z.ZodNumber;
267
419
  startedAt: z.ZodOptional<z.ZodNumber>;
268
420
  requestedStopAt: z.ZodOptional<z.ZodNumber>;
269
421
  stoppedAt: z.ZodOptional<z.ZodNumber>;
422
+ abortedAt: z.ZodOptional<z.ZodNumber>;
270
423
  duration: z.ZodOptional<z.ZodNumber>;
271
424
  sourceSnapshotId: z.ZodOptional<z.ZodString>;
272
425
  snapshottedAt: z.ZodOptional<z.ZodNumber>;
@@ -274,6 +427,34 @@ export declare const SandboxAndRoutesResponse: z.ZodObject<{
274
427
  cwd: z.ZodString;
275
428
  updatedAt: z.ZodNumber;
276
429
  interactivePort: z.ZodOptional<z.ZodNumber>;
430
+ networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
431
+ mode: z.ZodLiteral<"allow-all">;
432
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
433
+ mode: z.ZodLiteral<"allow-all">;
434
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
435
+ mode: z.ZodLiteral<"allow-all">;
436
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
437
+ mode: z.ZodLiteral<"deny-all">;
438
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
439
+ mode: z.ZodLiteral<"deny-all">;
440
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
441
+ mode: z.ZodLiteral<"deny-all">;
442
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
443
+ mode: z.ZodLiteral<"custom">;
444
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
445
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
446
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
447
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
448
+ mode: z.ZodLiteral<"custom">;
449
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
450
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
451
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
452
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
453
+ mode: z.ZodLiteral<"custom">;
454
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
455
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
456
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
457
+ }, z.ZodTypeAny, "passthrough">>]>>;
277
458
  }, "strip", z.ZodTypeAny, {
278
459
  id: string;
279
460
  memory: number;
@@ -281,7 +462,7 @@ export declare const SandboxAndRoutesResponse: z.ZodObject<{
281
462
  region: string;
282
463
  runtime: string;
283
464
  timeout: number;
284
- status: "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
465
+ status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
285
466
  requestedAt: number;
286
467
  createdAt: number;
287
468
  cwd: string;
@@ -289,10 +470,21 @@ export declare const SandboxAndRoutesResponse: z.ZodObject<{
289
470
  startedAt?: number | undefined;
290
471
  requestedStopAt?: number | undefined;
291
472
  stoppedAt?: number | undefined;
473
+ abortedAt?: number | undefined;
292
474
  duration?: number | undefined;
293
475
  sourceSnapshotId?: string | undefined;
294
476
  snapshottedAt?: number | undefined;
295
477
  interactivePort?: number | undefined;
478
+ networkPolicy?: z.objectOutputType<{
479
+ mode: z.ZodLiteral<"allow-all">;
480
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
481
+ mode: z.ZodLiteral<"deny-all">;
482
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
483
+ mode: z.ZodLiteral<"custom">;
484
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
485
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
486
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
487
+ }, z.ZodTypeAny, "passthrough"> | undefined;
296
488
  }, {
297
489
  id: string;
298
490
  memory: number;
@@ -300,7 +492,7 @@ export declare const SandboxAndRoutesResponse: z.ZodObject<{
300
492
  region: string;
301
493
  runtime: string;
302
494
  timeout: number;
303
- status: "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
495
+ status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
304
496
  requestedAt: number;
305
497
  createdAt: number;
306
498
  cwd: string;
@@ -308,10 +500,21 @@ export declare const SandboxAndRoutesResponse: z.ZodObject<{
308
500
  startedAt?: number | undefined;
309
501
  requestedStopAt?: number | undefined;
310
502
  stoppedAt?: number | undefined;
503
+ abortedAt?: number | undefined;
311
504
  duration?: number | undefined;
312
505
  sourceSnapshotId?: string | undefined;
313
506
  snapshottedAt?: number | undefined;
314
507
  interactivePort?: number | undefined;
508
+ networkPolicy?: z.objectInputType<{
509
+ mode: z.ZodLiteral<"allow-all">;
510
+ }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
511
+ mode: z.ZodLiteral<"deny-all">;
512
+ }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
513
+ mode: z.ZodLiteral<"custom">;
514
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
515
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
516
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
517
+ }, z.ZodTypeAny, "passthrough"> | undefined;
315
518
  }>;
316
519
  } & {
317
520
  routes: z.ZodArray<z.ZodObject<{
@@ -335,7 +538,7 @@ export declare const SandboxAndRoutesResponse: z.ZodObject<{
335
538
  region: string;
336
539
  runtime: string;
337
540
  timeout: number;
338
- status: "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
541
+ status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
339
542
  requestedAt: number;
340
543
  createdAt: number;
341
544
  cwd: string;
@@ -343,10 +546,21 @@ export declare const SandboxAndRoutesResponse: z.ZodObject<{
343
546
  startedAt?: number | undefined;
344
547
  requestedStopAt?: number | undefined;
345
548
  stoppedAt?: number | undefined;
549
+ abortedAt?: number | undefined;
346
550
  duration?: number | undefined;
347
551
  sourceSnapshotId?: string | undefined;
348
552
  snapshottedAt?: number | undefined;
349
553
  interactivePort?: number | undefined;
554
+ networkPolicy?: z.objectOutputType<{
555
+ mode: z.ZodLiteral<"allow-all">;
556
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
557
+ mode: z.ZodLiteral<"deny-all">;
558
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
559
+ mode: z.ZodLiteral<"custom">;
560
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
561
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
562
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
563
+ }, z.ZodTypeAny, "passthrough"> | undefined;
350
564
  };
351
565
  routes: {
352
566
  url: string;
@@ -361,7 +575,7 @@ export declare const SandboxAndRoutesResponse: z.ZodObject<{
361
575
  region: string;
362
576
  runtime: string;
363
577
  timeout: number;
364
- status: "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
578
+ status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
365
579
  requestedAt: number;
366
580
  createdAt: number;
367
581
  cwd: string;
@@ -369,10 +583,21 @@ export declare const SandboxAndRoutesResponse: z.ZodObject<{
369
583
  startedAt?: number | undefined;
370
584
  requestedStopAt?: number | undefined;
371
585
  stoppedAt?: number | undefined;
586
+ abortedAt?: number | undefined;
372
587
  duration?: number | undefined;
373
588
  sourceSnapshotId?: string | undefined;
374
589
  snapshottedAt?: number | undefined;
375
590
  interactivePort?: number | undefined;
591
+ networkPolicy?: z.objectInputType<{
592
+ mode: z.ZodLiteral<"allow-all">;
593
+ }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
594
+ mode: z.ZodLiteral<"deny-all">;
595
+ }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
596
+ mode: z.ZodLiteral<"custom">;
597
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
598
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
599
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
600
+ }, z.ZodTypeAny, "passthrough"> | undefined;
376
601
  };
377
602
  routes: {
378
603
  url: string;
@@ -577,11 +802,12 @@ export declare const SandboxesResponse: z.ZodObject<{
577
802
  region: z.ZodString;
578
803
  runtime: z.ZodString;
579
804
  timeout: z.ZodNumber;
580
- status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "snapshotting"]>;
805
+ status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
581
806
  requestedAt: z.ZodNumber;
582
807
  startedAt: z.ZodOptional<z.ZodNumber>;
583
808
  requestedStopAt: z.ZodOptional<z.ZodNumber>;
584
809
  stoppedAt: z.ZodOptional<z.ZodNumber>;
810
+ abortedAt: z.ZodOptional<z.ZodNumber>;
585
811
  duration: z.ZodOptional<z.ZodNumber>;
586
812
  sourceSnapshotId: z.ZodOptional<z.ZodString>;
587
813
  snapshottedAt: z.ZodOptional<z.ZodNumber>;
@@ -589,6 +815,34 @@ export declare const SandboxesResponse: z.ZodObject<{
589
815
  cwd: z.ZodString;
590
816
  updatedAt: z.ZodNumber;
591
817
  interactivePort: z.ZodOptional<z.ZodNumber>;
818
+ networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
819
+ mode: z.ZodLiteral<"allow-all">;
820
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
821
+ mode: z.ZodLiteral<"allow-all">;
822
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
823
+ mode: z.ZodLiteral<"allow-all">;
824
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
825
+ mode: z.ZodLiteral<"deny-all">;
826
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
827
+ mode: z.ZodLiteral<"deny-all">;
828
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
829
+ mode: z.ZodLiteral<"deny-all">;
830
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
831
+ mode: z.ZodLiteral<"custom">;
832
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
833
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
834
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
835
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
836
+ mode: z.ZodLiteral<"custom">;
837
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
838
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
839
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
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
+ }, z.ZodTypeAny, "passthrough">>]>>;
592
846
  }, "strip", z.ZodTypeAny, {
593
847
  id: string;
594
848
  memory: number;
@@ -596,7 +850,7 @@ export declare const SandboxesResponse: z.ZodObject<{
596
850
  region: string;
597
851
  runtime: string;
598
852
  timeout: number;
599
- status: "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
853
+ status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
600
854
  requestedAt: number;
601
855
  createdAt: number;
602
856
  cwd: string;
@@ -604,10 +858,21 @@ export declare const SandboxesResponse: z.ZodObject<{
604
858
  startedAt?: number | undefined;
605
859
  requestedStopAt?: number | undefined;
606
860
  stoppedAt?: number | undefined;
861
+ abortedAt?: number | undefined;
607
862
  duration?: number | undefined;
608
863
  sourceSnapshotId?: string | undefined;
609
864
  snapshottedAt?: number | undefined;
610
865
  interactivePort?: number | undefined;
866
+ networkPolicy?: z.objectOutputType<{
867
+ mode: z.ZodLiteral<"allow-all">;
868
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
869
+ mode: z.ZodLiteral<"deny-all">;
870
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
871
+ mode: z.ZodLiteral<"custom">;
872
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
873
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
874
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
875
+ }, z.ZodTypeAny, "passthrough"> | undefined;
611
876
  }, {
612
877
  id: string;
613
878
  memory: number;
@@ -615,7 +880,7 @@ export declare const SandboxesResponse: z.ZodObject<{
615
880
  region: string;
616
881
  runtime: string;
617
882
  timeout: number;
618
- status: "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
883
+ status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
619
884
  requestedAt: number;
620
885
  createdAt: number;
621
886
  cwd: string;
@@ -623,10 +888,21 @@ export declare const SandboxesResponse: z.ZodObject<{
623
888
  startedAt?: number | undefined;
624
889
  requestedStopAt?: number | undefined;
625
890
  stoppedAt?: number | undefined;
891
+ abortedAt?: number | undefined;
626
892
  duration?: number | undefined;
627
893
  sourceSnapshotId?: string | undefined;
628
894
  snapshottedAt?: number | undefined;
629
895
  interactivePort?: number | undefined;
896
+ networkPolicy?: z.objectInputType<{
897
+ mode: z.ZodLiteral<"allow-all">;
898
+ }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
899
+ mode: z.ZodLiteral<"deny-all">;
900
+ }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
901
+ mode: z.ZodLiteral<"custom">;
902
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
903
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
904
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
905
+ }, z.ZodTypeAny, "passthrough"> | undefined;
630
906
  }>, "many">;
631
907
  pagination: z.ZodObject<{
632
908
  /**
@@ -661,7 +937,7 @@ export declare const SandboxesResponse: z.ZodObject<{
661
937
  region: string;
662
938
  runtime: string;
663
939
  timeout: number;
664
- status: "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
940
+ status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
665
941
  requestedAt: number;
666
942
  createdAt: number;
667
943
  cwd: string;
@@ -669,10 +945,21 @@ export declare const SandboxesResponse: z.ZodObject<{
669
945
  startedAt?: number | undefined;
670
946
  requestedStopAt?: number | undefined;
671
947
  stoppedAt?: number | undefined;
948
+ abortedAt?: number | undefined;
672
949
  duration?: number | undefined;
673
950
  sourceSnapshotId?: string | undefined;
674
951
  snapshottedAt?: number | undefined;
675
952
  interactivePort?: number | undefined;
953
+ networkPolicy?: z.objectOutputType<{
954
+ mode: z.ZodLiteral<"allow-all">;
955
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
956
+ mode: z.ZodLiteral<"deny-all">;
957
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
958
+ mode: z.ZodLiteral<"custom">;
959
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
960
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
961
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
962
+ }, z.ZodTypeAny, "passthrough"> | undefined;
676
963
  }[];
677
964
  pagination: {
678
965
  count: number;
@@ -687,7 +974,7 @@ export declare const SandboxesResponse: z.ZodObject<{
687
974
  region: string;
688
975
  runtime: string;
689
976
  timeout: number;
690
- status: "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
977
+ status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
691
978
  requestedAt: number;
692
979
  createdAt: number;
693
980
  cwd: string;
@@ -695,10 +982,21 @@ export declare const SandboxesResponse: z.ZodObject<{
695
982
  startedAt?: number | undefined;
696
983
  requestedStopAt?: number | undefined;
697
984
  stoppedAt?: number | undefined;
985
+ abortedAt?: number | undefined;
698
986
  duration?: number | undefined;
699
987
  sourceSnapshotId?: string | undefined;
700
988
  snapshottedAt?: number | undefined;
701
989
  interactivePort?: number | undefined;
990
+ networkPolicy?: z.objectInputType<{
991
+ mode: z.ZodLiteral<"allow-all">;
992
+ }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
993
+ mode: z.ZodLiteral<"deny-all">;
994
+ }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
995
+ mode: z.ZodLiteral<"custom">;
996
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
997
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
998
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
999
+ }, z.ZodTypeAny, "passthrough"> | undefined;
702
1000
  }[];
703
1001
  pagination: {
704
1002
  count: number;
@@ -713,7 +1011,7 @@ export declare const SnapshotsResponse: z.ZodObject<{
713
1011
  region: z.ZodString;
714
1012
  status: z.ZodEnum<["created", "deleted", "failed"]>;
715
1013
  sizeBytes: z.ZodNumber;
716
- expiresAt: z.ZodNumber;
1014
+ expiresAt: z.ZodOptional<z.ZodNumber>;
717
1015
  createdAt: z.ZodNumber;
718
1016
  updatedAt: z.ZodNumber;
719
1017
  }, "strip", z.ZodTypeAny, {
@@ -724,7 +1022,7 @@ export declare const SnapshotsResponse: z.ZodObject<{
724
1022
  updatedAt: number;
725
1023
  sourceSandboxId: string;
726
1024
  sizeBytes: number;
727
- expiresAt: number;
1025
+ expiresAt?: number | undefined;
728
1026
  }, {
729
1027
  id: string;
730
1028
  region: string;
@@ -733,7 +1031,7 @@ export declare const SnapshotsResponse: z.ZodObject<{
733
1031
  updatedAt: number;
734
1032
  sourceSandboxId: string;
735
1033
  sizeBytes: number;
736
- expiresAt: number;
1034
+ expiresAt?: number | undefined;
737
1035
  }>, "many">;
738
1036
  pagination: z.ZodObject<{
739
1037
  /**
@@ -774,7 +1072,7 @@ export declare const SnapshotsResponse: z.ZodObject<{
774
1072
  updatedAt: number;
775
1073
  sourceSandboxId: string;
776
1074
  sizeBytes: number;
777
- expiresAt: number;
1075
+ expiresAt?: number | undefined;
778
1076
  }[];
779
1077
  }, {
780
1078
  pagination: {
@@ -790,7 +1088,7 @@ export declare const SnapshotsResponse: z.ZodObject<{
790
1088
  updatedAt: number;
791
1089
  sourceSandboxId: string;
792
1090
  sizeBytes: number;
793
- expiresAt: number;
1091
+ expiresAt?: number | undefined;
794
1092
  }[];
795
1093
  }>;
796
1094
  export declare const ExtendTimeoutResponse: z.ZodObject<{
@@ -801,11 +1099,12 @@ export declare const ExtendTimeoutResponse: z.ZodObject<{
801
1099
  region: z.ZodString;
802
1100
  runtime: z.ZodString;
803
1101
  timeout: z.ZodNumber;
804
- status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "snapshotting"]>;
1102
+ status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
805
1103
  requestedAt: z.ZodNumber;
806
1104
  startedAt: z.ZodOptional<z.ZodNumber>;
807
1105
  requestedStopAt: z.ZodOptional<z.ZodNumber>;
808
1106
  stoppedAt: z.ZodOptional<z.ZodNumber>;
1107
+ abortedAt: z.ZodOptional<z.ZodNumber>;
809
1108
  duration: z.ZodOptional<z.ZodNumber>;
810
1109
  sourceSnapshotId: z.ZodOptional<z.ZodString>;
811
1110
  snapshottedAt: z.ZodOptional<z.ZodNumber>;
@@ -813,6 +1112,34 @@ export declare const ExtendTimeoutResponse: z.ZodObject<{
813
1112
  cwd: z.ZodString;
814
1113
  updatedAt: z.ZodNumber;
815
1114
  interactivePort: z.ZodOptional<z.ZodNumber>;
1115
+ networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1116
+ mode: z.ZodLiteral<"allow-all">;
1117
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1118
+ mode: z.ZodLiteral<"allow-all">;
1119
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1120
+ mode: z.ZodLiteral<"allow-all">;
1121
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
1122
+ mode: z.ZodLiteral<"deny-all">;
1123
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1124
+ mode: z.ZodLiteral<"deny-all">;
1125
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1126
+ mode: z.ZodLiteral<"deny-all">;
1127
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
1128
+ mode: z.ZodLiteral<"custom">;
1129
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1130
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1131
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1132
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1133
+ mode: z.ZodLiteral<"custom">;
1134
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1135
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1136
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1137
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1138
+ mode: z.ZodLiteral<"custom">;
1139
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1140
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1141
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1142
+ }, z.ZodTypeAny, "passthrough">>]>>;
816
1143
  }, "strip", z.ZodTypeAny, {
817
1144
  id: string;
818
1145
  memory: number;
@@ -820,7 +1147,7 @@ export declare const ExtendTimeoutResponse: z.ZodObject<{
820
1147
  region: string;
821
1148
  runtime: string;
822
1149
  timeout: number;
823
- status: "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
1150
+ status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
824
1151
  requestedAt: number;
825
1152
  createdAt: number;
826
1153
  cwd: string;
@@ -828,10 +1155,21 @@ export declare const ExtendTimeoutResponse: z.ZodObject<{
828
1155
  startedAt?: number | undefined;
829
1156
  requestedStopAt?: number | undefined;
830
1157
  stoppedAt?: number | undefined;
1158
+ abortedAt?: number | undefined;
831
1159
  duration?: number | undefined;
832
1160
  sourceSnapshotId?: string | undefined;
833
1161
  snapshottedAt?: number | undefined;
834
1162
  interactivePort?: number | undefined;
1163
+ networkPolicy?: z.objectOutputType<{
1164
+ mode: z.ZodLiteral<"allow-all">;
1165
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
1166
+ mode: z.ZodLiteral<"deny-all">;
1167
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
1168
+ mode: z.ZodLiteral<"custom">;
1169
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1170
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1171
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1172
+ }, z.ZodTypeAny, "passthrough"> | undefined;
835
1173
  }, {
836
1174
  id: string;
837
1175
  memory: number;
@@ -839,7 +1177,7 @@ export declare const ExtendTimeoutResponse: z.ZodObject<{
839
1177
  region: string;
840
1178
  runtime: string;
841
1179
  timeout: number;
842
- status: "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
1180
+ status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
843
1181
  requestedAt: number;
844
1182
  createdAt: number;
845
1183
  cwd: string;
@@ -847,10 +1185,21 @@ export declare const ExtendTimeoutResponse: z.ZodObject<{
847
1185
  startedAt?: number | undefined;
848
1186
  requestedStopAt?: number | undefined;
849
1187
  stoppedAt?: number | undefined;
1188
+ abortedAt?: number | undefined;
850
1189
  duration?: number | undefined;
851
1190
  sourceSnapshotId?: string | undefined;
852
1191
  snapshottedAt?: number | undefined;
853
1192
  interactivePort?: number | undefined;
1193
+ networkPolicy?: z.objectInputType<{
1194
+ mode: z.ZodLiteral<"allow-all">;
1195
+ }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1196
+ mode: z.ZodLiteral<"deny-all">;
1197
+ }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1198
+ mode: z.ZodLiteral<"custom">;
1199
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1200
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1201
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1202
+ }, z.ZodTypeAny, "passthrough"> | undefined;
854
1203
  }>;
855
1204
  }, "strip", z.ZodTypeAny, {
856
1205
  sandbox: {
@@ -860,7 +1209,7 @@ export declare const ExtendTimeoutResponse: z.ZodObject<{
860
1209
  region: string;
861
1210
  runtime: string;
862
1211
  timeout: number;
863
- status: "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
1212
+ status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
864
1213
  requestedAt: number;
865
1214
  createdAt: number;
866
1215
  cwd: string;
@@ -868,10 +1217,21 @@ export declare const ExtendTimeoutResponse: z.ZodObject<{
868
1217
  startedAt?: number | undefined;
869
1218
  requestedStopAt?: number | undefined;
870
1219
  stoppedAt?: number | undefined;
1220
+ abortedAt?: number | undefined;
871
1221
  duration?: number | undefined;
872
1222
  sourceSnapshotId?: string | undefined;
873
1223
  snapshottedAt?: number | undefined;
874
1224
  interactivePort?: number | undefined;
1225
+ networkPolicy?: z.objectOutputType<{
1226
+ mode: z.ZodLiteral<"allow-all">;
1227
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
1228
+ mode: z.ZodLiteral<"deny-all">;
1229
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
1230
+ mode: z.ZodLiteral<"custom">;
1231
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1232
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1233
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1234
+ }, z.ZodTypeAny, "passthrough"> | undefined;
875
1235
  };
876
1236
  }, {
877
1237
  sandbox: {
@@ -881,7 +1241,7 @@ export declare const ExtendTimeoutResponse: z.ZodObject<{
881
1241
  region: string;
882
1242
  runtime: string;
883
1243
  timeout: number;
884
- status: "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
1244
+ status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
885
1245
  requestedAt: number;
886
1246
  createdAt: number;
887
1247
  cwd: string;
@@ -889,10 +1249,196 @@ export declare const ExtendTimeoutResponse: z.ZodObject<{
889
1249
  startedAt?: number | undefined;
890
1250
  requestedStopAt?: number | undefined;
891
1251
  stoppedAt?: number | undefined;
1252
+ abortedAt?: number | undefined;
892
1253
  duration?: number | undefined;
893
1254
  sourceSnapshotId?: string | undefined;
894
1255
  snapshottedAt?: number | undefined;
895
1256
  interactivePort?: number | undefined;
1257
+ networkPolicy?: z.objectInputType<{
1258
+ mode: z.ZodLiteral<"allow-all">;
1259
+ }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1260
+ mode: z.ZodLiteral<"deny-all">;
1261
+ }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1262
+ mode: z.ZodLiteral<"custom">;
1263
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1264
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1265
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1266
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1267
+ };
1268
+ }>;
1269
+ export declare const UpdateNetworkPolicyResponse: z.ZodObject<{
1270
+ sandbox: z.ZodObject<{
1271
+ id: z.ZodString;
1272
+ memory: z.ZodNumber;
1273
+ vcpus: z.ZodNumber;
1274
+ region: z.ZodString;
1275
+ runtime: z.ZodString;
1276
+ timeout: z.ZodNumber;
1277
+ status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
1278
+ requestedAt: z.ZodNumber;
1279
+ startedAt: z.ZodOptional<z.ZodNumber>;
1280
+ requestedStopAt: z.ZodOptional<z.ZodNumber>;
1281
+ stoppedAt: z.ZodOptional<z.ZodNumber>;
1282
+ abortedAt: z.ZodOptional<z.ZodNumber>;
1283
+ duration: z.ZodOptional<z.ZodNumber>;
1284
+ sourceSnapshotId: z.ZodOptional<z.ZodString>;
1285
+ snapshottedAt: z.ZodOptional<z.ZodNumber>;
1286
+ createdAt: z.ZodNumber;
1287
+ cwd: z.ZodString;
1288
+ updatedAt: z.ZodNumber;
1289
+ interactivePort: z.ZodOptional<z.ZodNumber>;
1290
+ networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1291
+ mode: z.ZodLiteral<"allow-all">;
1292
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1293
+ mode: z.ZodLiteral<"allow-all">;
1294
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1295
+ mode: z.ZodLiteral<"allow-all">;
1296
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
1297
+ mode: z.ZodLiteral<"deny-all">;
1298
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1299
+ mode: z.ZodLiteral<"deny-all">;
1300
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1301
+ mode: z.ZodLiteral<"deny-all">;
1302
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
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
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1308
+ mode: z.ZodLiteral<"custom">;
1309
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1310
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1311
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1312
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1313
+ mode: z.ZodLiteral<"custom">;
1314
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1315
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1316
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1317
+ }, z.ZodTypeAny, "passthrough">>]>>;
1318
+ }, "strip", z.ZodTypeAny, {
1319
+ id: string;
1320
+ memory: number;
1321
+ vcpus: number;
1322
+ region: string;
1323
+ runtime: string;
1324
+ timeout: number;
1325
+ status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
1326
+ requestedAt: number;
1327
+ createdAt: number;
1328
+ cwd: string;
1329
+ updatedAt: number;
1330
+ startedAt?: number | undefined;
1331
+ requestedStopAt?: number | undefined;
1332
+ stoppedAt?: number | undefined;
1333
+ abortedAt?: number | undefined;
1334
+ duration?: number | undefined;
1335
+ sourceSnapshotId?: string | undefined;
1336
+ snapshottedAt?: number | undefined;
1337
+ interactivePort?: number | undefined;
1338
+ networkPolicy?: z.objectOutputType<{
1339
+ mode: z.ZodLiteral<"allow-all">;
1340
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
1341
+ mode: z.ZodLiteral<"deny-all">;
1342
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
1343
+ mode: z.ZodLiteral<"custom">;
1344
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1345
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1346
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1347
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1348
+ }, {
1349
+ id: string;
1350
+ memory: number;
1351
+ vcpus: number;
1352
+ region: string;
1353
+ runtime: string;
1354
+ timeout: number;
1355
+ status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
1356
+ requestedAt: number;
1357
+ createdAt: number;
1358
+ cwd: string;
1359
+ updatedAt: number;
1360
+ startedAt?: number | undefined;
1361
+ requestedStopAt?: number | undefined;
1362
+ stoppedAt?: number | undefined;
1363
+ abortedAt?: number | undefined;
1364
+ duration?: number | undefined;
1365
+ sourceSnapshotId?: string | undefined;
1366
+ snapshottedAt?: number | undefined;
1367
+ interactivePort?: number | undefined;
1368
+ networkPolicy?: z.objectInputType<{
1369
+ mode: z.ZodLiteral<"allow-all">;
1370
+ }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1371
+ mode: z.ZodLiteral<"deny-all">;
1372
+ }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1373
+ mode: z.ZodLiteral<"custom">;
1374
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1375
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1376
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1377
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1378
+ }>;
1379
+ }, "strip", z.ZodTypeAny, {
1380
+ sandbox: {
1381
+ id: string;
1382
+ memory: number;
1383
+ vcpus: number;
1384
+ region: string;
1385
+ runtime: string;
1386
+ timeout: number;
1387
+ status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
1388
+ requestedAt: number;
1389
+ createdAt: number;
1390
+ cwd: string;
1391
+ updatedAt: number;
1392
+ startedAt?: number | undefined;
1393
+ requestedStopAt?: number | undefined;
1394
+ stoppedAt?: number | undefined;
1395
+ abortedAt?: number | undefined;
1396
+ duration?: number | undefined;
1397
+ sourceSnapshotId?: string | undefined;
1398
+ snapshottedAt?: number | undefined;
1399
+ interactivePort?: number | undefined;
1400
+ networkPolicy?: z.objectOutputType<{
1401
+ mode: z.ZodLiteral<"allow-all">;
1402
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
1403
+ mode: z.ZodLiteral<"deny-all">;
1404
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
1405
+ mode: z.ZodLiteral<"custom">;
1406
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1407
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1408
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1409
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1410
+ };
1411
+ }, {
1412
+ sandbox: {
1413
+ id: string;
1414
+ memory: number;
1415
+ vcpus: number;
1416
+ region: string;
1417
+ runtime: string;
1418
+ timeout: number;
1419
+ status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
1420
+ requestedAt: number;
1421
+ createdAt: number;
1422
+ cwd: string;
1423
+ updatedAt: number;
1424
+ startedAt?: number | undefined;
1425
+ requestedStopAt?: number | undefined;
1426
+ stoppedAt?: number | undefined;
1427
+ abortedAt?: number | undefined;
1428
+ duration?: number | undefined;
1429
+ sourceSnapshotId?: string | undefined;
1430
+ snapshottedAt?: number | undefined;
1431
+ interactivePort?: number | undefined;
1432
+ networkPolicy?: z.objectInputType<{
1433
+ mode: z.ZodLiteral<"allow-all">;
1434
+ }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1435
+ mode: z.ZodLiteral<"deny-all">;
1436
+ }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1437
+ mode: z.ZodLiteral<"custom">;
1438
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1439
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1440
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1441
+ }, z.ZodTypeAny, "passthrough"> | undefined;
896
1442
  };
897
1443
  }>;
898
1444
  export declare const CreateSnapshotResponse: z.ZodObject<{
@@ -902,7 +1448,7 @@ export declare const CreateSnapshotResponse: z.ZodObject<{
902
1448
  region: z.ZodString;
903
1449
  status: z.ZodEnum<["created", "deleted", "failed"]>;
904
1450
  sizeBytes: z.ZodNumber;
905
- expiresAt: z.ZodNumber;
1451
+ expiresAt: z.ZodOptional<z.ZodNumber>;
906
1452
  createdAt: z.ZodNumber;
907
1453
  updatedAt: z.ZodNumber;
908
1454
  }, "strip", z.ZodTypeAny, {
@@ -913,7 +1459,7 @@ export declare const CreateSnapshotResponse: z.ZodObject<{
913
1459
  updatedAt: number;
914
1460
  sourceSandboxId: string;
915
1461
  sizeBytes: number;
916
- expiresAt: number;
1462
+ expiresAt?: number | undefined;
917
1463
  }, {
918
1464
  id: string;
919
1465
  region: string;
@@ -922,7 +1468,7 @@ export declare const CreateSnapshotResponse: z.ZodObject<{
922
1468
  updatedAt: number;
923
1469
  sourceSandboxId: string;
924
1470
  sizeBytes: number;
925
- expiresAt: number;
1471
+ expiresAt?: number | undefined;
926
1472
  }>;
927
1473
  sandbox: z.ZodObject<{
928
1474
  id: z.ZodString;
@@ -931,11 +1477,12 @@ export declare const CreateSnapshotResponse: z.ZodObject<{
931
1477
  region: z.ZodString;
932
1478
  runtime: z.ZodString;
933
1479
  timeout: z.ZodNumber;
934
- status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "snapshotting"]>;
1480
+ status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
935
1481
  requestedAt: z.ZodNumber;
936
1482
  startedAt: z.ZodOptional<z.ZodNumber>;
937
1483
  requestedStopAt: z.ZodOptional<z.ZodNumber>;
938
1484
  stoppedAt: z.ZodOptional<z.ZodNumber>;
1485
+ abortedAt: z.ZodOptional<z.ZodNumber>;
939
1486
  duration: z.ZodOptional<z.ZodNumber>;
940
1487
  sourceSnapshotId: z.ZodOptional<z.ZodString>;
941
1488
  snapshottedAt: z.ZodOptional<z.ZodNumber>;
@@ -943,6 +1490,34 @@ export declare const CreateSnapshotResponse: z.ZodObject<{
943
1490
  cwd: z.ZodString;
944
1491
  updatedAt: z.ZodNumber;
945
1492
  interactivePort: z.ZodOptional<z.ZodNumber>;
1493
+ networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1494
+ mode: z.ZodLiteral<"allow-all">;
1495
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1496
+ mode: z.ZodLiteral<"allow-all">;
1497
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1498
+ mode: z.ZodLiteral<"allow-all">;
1499
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
1500
+ mode: z.ZodLiteral<"deny-all">;
1501
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1502
+ mode: z.ZodLiteral<"deny-all">;
1503
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1504
+ mode: z.ZodLiteral<"deny-all">;
1505
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
1506
+ mode: z.ZodLiteral<"custom">;
1507
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1508
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1509
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1510
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1511
+ mode: z.ZodLiteral<"custom">;
1512
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1513
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1514
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1515
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1516
+ mode: z.ZodLiteral<"custom">;
1517
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1518
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1519
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1520
+ }, z.ZodTypeAny, "passthrough">>]>>;
946
1521
  }, "strip", z.ZodTypeAny, {
947
1522
  id: string;
948
1523
  memory: number;
@@ -950,7 +1525,7 @@ export declare const CreateSnapshotResponse: z.ZodObject<{
950
1525
  region: string;
951
1526
  runtime: string;
952
1527
  timeout: number;
953
- status: "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
1528
+ status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
954
1529
  requestedAt: number;
955
1530
  createdAt: number;
956
1531
  cwd: string;
@@ -958,10 +1533,21 @@ export declare const CreateSnapshotResponse: z.ZodObject<{
958
1533
  startedAt?: number | undefined;
959
1534
  requestedStopAt?: number | undefined;
960
1535
  stoppedAt?: number | undefined;
1536
+ abortedAt?: number | undefined;
961
1537
  duration?: number | undefined;
962
1538
  sourceSnapshotId?: string | undefined;
963
1539
  snapshottedAt?: number | undefined;
964
1540
  interactivePort?: number | undefined;
1541
+ networkPolicy?: z.objectOutputType<{
1542
+ mode: z.ZodLiteral<"allow-all">;
1543
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
1544
+ mode: z.ZodLiteral<"deny-all">;
1545
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
1546
+ mode: z.ZodLiteral<"custom">;
1547
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1548
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1549
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1550
+ }, z.ZodTypeAny, "passthrough"> | undefined;
965
1551
  }, {
966
1552
  id: string;
967
1553
  memory: number;
@@ -969,7 +1555,7 @@ export declare const CreateSnapshotResponse: z.ZodObject<{
969
1555
  region: string;
970
1556
  runtime: string;
971
1557
  timeout: number;
972
- status: "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
1558
+ status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
973
1559
  requestedAt: number;
974
1560
  createdAt: number;
975
1561
  cwd: string;
@@ -977,10 +1563,21 @@ export declare const CreateSnapshotResponse: z.ZodObject<{
977
1563
  startedAt?: number | undefined;
978
1564
  requestedStopAt?: number | undefined;
979
1565
  stoppedAt?: number | undefined;
1566
+ abortedAt?: number | undefined;
980
1567
  duration?: number | undefined;
981
1568
  sourceSnapshotId?: string | undefined;
982
1569
  snapshottedAt?: number | undefined;
983
1570
  interactivePort?: number | undefined;
1571
+ networkPolicy?: z.objectInputType<{
1572
+ mode: z.ZodLiteral<"allow-all">;
1573
+ }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1574
+ mode: z.ZodLiteral<"deny-all">;
1575
+ }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1576
+ mode: z.ZodLiteral<"custom">;
1577
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1578
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1579
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1580
+ }, z.ZodTypeAny, "passthrough"> | undefined;
984
1581
  }>;
985
1582
  }, "strip", z.ZodTypeAny, {
986
1583
  sandbox: {
@@ -990,7 +1587,7 @@ export declare const CreateSnapshotResponse: z.ZodObject<{
990
1587
  region: string;
991
1588
  runtime: string;
992
1589
  timeout: number;
993
- status: "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
1590
+ status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
994
1591
  requestedAt: number;
995
1592
  createdAt: number;
996
1593
  cwd: string;
@@ -998,10 +1595,21 @@ export declare const CreateSnapshotResponse: z.ZodObject<{
998
1595
  startedAt?: number | undefined;
999
1596
  requestedStopAt?: number | undefined;
1000
1597
  stoppedAt?: number | undefined;
1598
+ abortedAt?: number | undefined;
1001
1599
  duration?: number | undefined;
1002
1600
  sourceSnapshotId?: string | undefined;
1003
1601
  snapshottedAt?: number | undefined;
1004
1602
  interactivePort?: number | undefined;
1603
+ networkPolicy?: z.objectOutputType<{
1604
+ mode: z.ZodLiteral<"allow-all">;
1605
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
1606
+ mode: z.ZodLiteral<"deny-all">;
1607
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
1608
+ mode: z.ZodLiteral<"custom">;
1609
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1610
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1611
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1612
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1005
1613
  };
1006
1614
  snapshot: {
1007
1615
  id: string;
@@ -1011,7 +1619,7 @@ export declare const CreateSnapshotResponse: z.ZodObject<{
1011
1619
  updatedAt: number;
1012
1620
  sourceSandboxId: string;
1013
1621
  sizeBytes: number;
1014
- expiresAt: number;
1622
+ expiresAt?: number | undefined;
1015
1623
  };
1016
1624
  }, {
1017
1625
  sandbox: {
@@ -1021,7 +1629,7 @@ export declare const CreateSnapshotResponse: z.ZodObject<{
1021
1629
  region: string;
1022
1630
  runtime: string;
1023
1631
  timeout: number;
1024
- status: "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
1632
+ status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
1025
1633
  requestedAt: number;
1026
1634
  createdAt: number;
1027
1635
  cwd: string;
@@ -1029,10 +1637,21 @@ export declare const CreateSnapshotResponse: z.ZodObject<{
1029
1637
  startedAt?: number | undefined;
1030
1638
  requestedStopAt?: number | undefined;
1031
1639
  stoppedAt?: number | undefined;
1640
+ abortedAt?: number | undefined;
1032
1641
  duration?: number | undefined;
1033
1642
  sourceSnapshotId?: string | undefined;
1034
1643
  snapshottedAt?: number | undefined;
1035
1644
  interactivePort?: number | undefined;
1645
+ networkPolicy?: z.objectInputType<{
1646
+ mode: z.ZodLiteral<"allow-all">;
1647
+ }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1648
+ mode: z.ZodLiteral<"deny-all">;
1649
+ }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
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
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1036
1655
  };
1037
1656
  snapshot: {
1038
1657
  id: string;
@@ -1042,7 +1661,7 @@ export declare const CreateSnapshotResponse: z.ZodObject<{
1042
1661
  updatedAt: number;
1043
1662
  sourceSandboxId: string;
1044
1663
  sizeBytes: number;
1045
- expiresAt: number;
1664
+ expiresAt?: number | undefined;
1046
1665
  };
1047
1666
  }>;
1048
1667
  export declare const SnapshotResponse: z.ZodObject<{
@@ -1052,7 +1671,7 @@ export declare const SnapshotResponse: z.ZodObject<{
1052
1671
  region: z.ZodString;
1053
1672
  status: z.ZodEnum<["created", "deleted", "failed"]>;
1054
1673
  sizeBytes: z.ZodNumber;
1055
- expiresAt: z.ZodNumber;
1674
+ expiresAt: z.ZodOptional<z.ZodNumber>;
1056
1675
  createdAt: z.ZodNumber;
1057
1676
  updatedAt: z.ZodNumber;
1058
1677
  }, "strip", z.ZodTypeAny, {
@@ -1063,7 +1682,7 @@ export declare const SnapshotResponse: z.ZodObject<{
1063
1682
  updatedAt: number;
1064
1683
  sourceSandboxId: string;
1065
1684
  sizeBytes: number;
1066
- expiresAt: number;
1685
+ expiresAt?: number | undefined;
1067
1686
  }, {
1068
1687
  id: string;
1069
1688
  region: string;
@@ -1072,7 +1691,7 @@ export declare const SnapshotResponse: z.ZodObject<{
1072
1691
  updatedAt: number;
1073
1692
  sourceSandboxId: string;
1074
1693
  sizeBytes: number;
1075
- expiresAt: number;
1694
+ expiresAt?: number | undefined;
1076
1695
  }>;
1077
1696
  }, "strip", z.ZodTypeAny, {
1078
1697
  snapshot: {
@@ -1083,7 +1702,7 @@ export declare const SnapshotResponse: z.ZodObject<{
1083
1702
  updatedAt: number;
1084
1703
  sourceSandboxId: string;
1085
1704
  sizeBytes: number;
1086
- expiresAt: number;
1705
+ expiresAt?: number | undefined;
1087
1706
  };
1088
1707
  }, {
1089
1708
  snapshot: {
@@ -1094,6 +1713,6 @@ export declare const SnapshotResponse: z.ZodObject<{
1094
1713
  updatedAt: number;
1095
1714
  sourceSandboxId: string;
1096
1715
  sizeBytes: number;
1097
- expiresAt: number;
1716
+ expiresAt?: number | undefined;
1098
1717
  };
1099
1718
  }>;