@vercel/sandbox 2.0.0-beta.0 → 2.0.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -1
- package/dist/api-client/api-client.d.ts +238 -167
- package/dist/api-client/api-client.js +71 -70
- package/dist/api-client/api-client.js.map +1 -1
- package/dist/api-client/api-error.d.ts +6 -4
- package/dist/api-client/api-error.js +4 -3
- package/dist/api-client/api-error.js.map +1 -1
- package/dist/api-client/base-client.js +24 -9
- package/dist/api-client/base-client.js.map +1 -1
- package/dist/api-client/file-writer.d.ts +10 -0
- package/dist/api-client/file-writer.js +2 -2
- package/dist/api-client/file-writer.js.map +1 -1
- package/dist/api-client/validators.d.ts +1290 -1263
- package/dist/api-client/validators.js +34 -54
- package/dist/api-client/validators.js.map +1 -1
- package/dist/command.d.ts +9 -9
- package/dist/command.js +10 -10
- package/dist/sandbox.d.ts +203 -119
- package/dist/sandbox.js +130 -59
- package/dist/sandbox.js.map +1 -1
- package/dist/session.d.ts +29 -23
- package/dist/session.js +93 -72
- package/dist/session.js.map +1 -1
- package/dist/snapshot.d.ts +6 -7
- package/dist/snapshot.js +5 -4
- package/dist/snapshot.js.map +1 -1
- package/dist/utils/convert-sandbox.d.ts +3 -3
- package/dist/utils/convert-sandbox.js +3 -3
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export type
|
|
2
|
+
export type SessionMetaData = z.infer<typeof Session>;
|
|
3
3
|
export declare const InjectionRuleValidator: z.ZodObject<{
|
|
4
4
|
domain: z.ZodString;
|
|
5
5
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -80,7 +80,7 @@ export declare const NetworkPolicyValidator: z.ZodUnion<[z.ZodObject<{
|
|
|
80
80
|
headerNames?: string[] | undefined;
|
|
81
81
|
}>, "many">>;
|
|
82
82
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
83
|
-
export declare const
|
|
83
|
+
export declare const Session: z.ZodObject<{
|
|
84
84
|
id: z.ZodString;
|
|
85
85
|
memory: z.ZodNumber;
|
|
86
86
|
vcpus: z.ZodNumber;
|
|
@@ -292,7 +292,7 @@ export declare const SandboxRoute: z.ZodObject<{
|
|
|
292
292
|
export type SnapshotMetadata = z.infer<typeof Snapshot>;
|
|
293
293
|
export declare const Snapshot: z.ZodObject<{
|
|
294
294
|
id: z.ZodString;
|
|
295
|
-
|
|
295
|
+
sourceSessionId: z.ZodString;
|
|
296
296
|
region: z.ZodString;
|
|
297
297
|
status: z.ZodEnum<["created", "deleted", "failed"]>;
|
|
298
298
|
sizeBytes: z.ZodNumber;
|
|
@@ -305,7 +305,7 @@ export declare const Snapshot: z.ZodObject<{
|
|
|
305
305
|
status: "failed" | "created" | "deleted";
|
|
306
306
|
createdAt: number;
|
|
307
307
|
updatedAt: number;
|
|
308
|
-
|
|
308
|
+
sourceSessionId: string;
|
|
309
309
|
sizeBytes: number;
|
|
310
310
|
expiresAt?: number | undefined;
|
|
311
311
|
}, {
|
|
@@ -314,34 +314,19 @@ export declare const Snapshot: z.ZodObject<{
|
|
|
314
314
|
status: "failed" | "created" | "deleted";
|
|
315
315
|
createdAt: number;
|
|
316
316
|
updatedAt: number;
|
|
317
|
-
|
|
317
|
+
sourceSessionId: string;
|
|
318
318
|
sizeBytes: number;
|
|
319
319
|
expiresAt?: number | undefined;
|
|
320
320
|
}>;
|
|
321
|
-
export declare const
|
|
322
|
-
/**
|
|
323
|
-
* Amount of items in the current page.
|
|
324
|
-
* @example 20
|
|
325
|
-
*/
|
|
321
|
+
export declare const CursorPagination: z.ZodObject<{
|
|
326
322
|
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>;
|
|
323
|
+
next: z.ZodNullable<z.ZodString>;
|
|
337
324
|
}, "strip", z.ZodTypeAny, {
|
|
338
325
|
count: number;
|
|
339
|
-
next:
|
|
340
|
-
prev: number | null;
|
|
326
|
+
next: string | null;
|
|
341
327
|
}, {
|
|
342
328
|
count: number;
|
|
343
|
-
next:
|
|
344
|
-
prev: number | null;
|
|
329
|
+
next: string | null;
|
|
345
330
|
}>;
|
|
346
331
|
export type CommandData = z.infer<typeof Command>;
|
|
347
332
|
export declare const Command: z.ZodObject<{
|
|
@@ -349,11 +334,11 @@ export declare const Command: z.ZodObject<{
|
|
|
349
334
|
name: z.ZodString;
|
|
350
335
|
args: z.ZodArray<z.ZodString, "many">;
|
|
351
336
|
cwd: z.ZodString;
|
|
352
|
-
|
|
337
|
+
sessionId: z.ZodString;
|
|
353
338
|
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
354
339
|
startedAt: z.ZodNumber;
|
|
355
340
|
}, "strip", z.ZodTypeAny, {
|
|
356
|
-
|
|
341
|
+
sessionId: string;
|
|
357
342
|
id: string;
|
|
358
343
|
startedAt: number;
|
|
359
344
|
cwd: string;
|
|
@@ -361,7 +346,7 @@ export declare const Command: z.ZodObject<{
|
|
|
361
346
|
args: string[];
|
|
362
347
|
exitCode: number | null;
|
|
363
348
|
}, {
|
|
364
|
-
|
|
349
|
+
sessionId: string;
|
|
365
350
|
id: string;
|
|
366
351
|
startedAt: number;
|
|
367
352
|
cwd: string;
|
|
@@ -369,8 +354,8 @@ export declare const Command: z.ZodObject<{
|
|
|
369
354
|
args: string[];
|
|
370
355
|
exitCode: number | null;
|
|
371
356
|
}>;
|
|
372
|
-
export declare const
|
|
373
|
-
|
|
357
|
+
export declare const SessionResponse: z.ZodObject<{
|
|
358
|
+
session: z.ZodObject<{
|
|
374
359
|
id: z.ZodString;
|
|
375
360
|
memory: z.ZodNumber;
|
|
376
361
|
vcpus: z.ZodNumber;
|
|
@@ -468,31 +453,39 @@ export declare const SandboxResponse: z.ZodObject<{
|
|
|
468
453
|
ingress: number;
|
|
469
454
|
egress: number;
|
|
470
455
|
}>>;
|
|
471
|
-
}, "
|
|
472
|
-
id:
|
|
473
|
-
memory:
|
|
474
|
-
vcpus:
|
|
475
|
-
region:
|
|
476
|
-
runtime:
|
|
477
|
-
timeout:
|
|
478
|
-
status: "
|
|
479
|
-
requestedAt:
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
interactivePort
|
|
491
|
-
networkPolicy
|
|
456
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
457
|
+
id: z.ZodString;
|
|
458
|
+
memory: z.ZodNumber;
|
|
459
|
+
vcpus: z.ZodNumber;
|
|
460
|
+
region: z.ZodString;
|
|
461
|
+
runtime: z.ZodString;
|
|
462
|
+
timeout: z.ZodNumber;
|
|
463
|
+
status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
|
|
464
|
+
requestedAt: z.ZodNumber;
|
|
465
|
+
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
466
|
+
requestedStopAt: z.ZodOptional<z.ZodNumber>;
|
|
467
|
+
stoppedAt: z.ZodOptional<z.ZodNumber>;
|
|
468
|
+
abortedAt: z.ZodOptional<z.ZodNumber>;
|
|
469
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
470
|
+
sourceSnapshotId: z.ZodOptional<z.ZodString>;
|
|
471
|
+
snapshottedAt: z.ZodOptional<z.ZodNumber>;
|
|
472
|
+
createdAt: z.ZodNumber;
|
|
473
|
+
cwd: z.ZodString;
|
|
474
|
+
updatedAt: z.ZodNumber;
|
|
475
|
+
interactivePort: z.ZodOptional<z.ZodNumber>;
|
|
476
|
+
networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
492
477
|
mode: z.ZodLiteral<"allow-all">;
|
|
493
|
-
}, z.ZodTypeAny,
|
|
478
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
479
|
+
mode: z.ZodLiteral<"allow-all">;
|
|
480
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
481
|
+
mode: z.ZodLiteral<"allow-all">;
|
|
482
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
494
483
|
mode: z.ZodLiteral<"deny-all">;
|
|
495
|
-
}, z.ZodTypeAny,
|
|
484
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
485
|
+
mode: z.ZodLiteral<"deny-all">;
|
|
486
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
487
|
+
mode: z.ZodLiteral<"deny-all">;
|
|
488
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
496
489
|
mode: z.ZodLiteral<"custom">;
|
|
497
490
|
allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
498
491
|
allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -510,37 +503,7 @@ export declare const SandboxResponse: z.ZodObject<{
|
|
|
510
503
|
headers?: Record<string, string> | undefined;
|
|
511
504
|
headerNames?: string[] | undefined;
|
|
512
505
|
}>, "many">>;
|
|
513
|
-
}, z.ZodTypeAny,
|
|
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<{
|
|
506
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
544
507
|
mode: z.ZodLiteral<"custom">;
|
|
545
508
|
allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
546
509
|
allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -558,39 +521,7 @@ export declare const SandboxResponse: z.ZodObject<{
|
|
|
558
521
|
headers?: Record<string, string> | undefined;
|
|
559
522
|
headerNames?: string[] | undefined;
|
|
560
523
|
}>, "many">>;
|
|
561
|
-
}, z.ZodTypeAny, "passthrough"
|
|
562
|
-
activeCpuDurationMs?: number | undefined;
|
|
563
|
-
networkTransfer?: {
|
|
564
|
-
ingress: number;
|
|
565
|
-
egress: number;
|
|
566
|
-
} | undefined;
|
|
567
|
-
}>;
|
|
568
|
-
}, "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<{
|
|
524
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
594
525
|
mode: z.ZodLiteral<"custom">;
|
|
595
526
|
allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
596
527
|
allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -608,66 +539,19 @@ export declare const SandboxResponse: z.ZodObject<{
|
|
|
608
539
|
headers?: Record<string, string> | undefined;
|
|
609
540
|
headerNames?: string[] | undefined;
|
|
610
541
|
}>, "many">>;
|
|
611
|
-
}, z.ZodTypeAny, "passthrough"
|
|
612
|
-
activeCpuDurationMs
|
|
613
|
-
networkTransfer
|
|
542
|
+
}, z.ZodTypeAny, "passthrough">>]>>;
|
|
543
|
+
activeCpuDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
544
|
+
networkTransfer: z.ZodOptional<z.ZodObject<{
|
|
545
|
+
ingress: z.ZodNumber;
|
|
546
|
+
egress: z.ZodNumber;
|
|
547
|
+
}, "strip", z.ZodTypeAny, {
|
|
614
548
|
ingress: number;
|
|
615
549
|
egress: number;
|
|
616
|
-
}
|
|
617
|
-
};
|
|
618
|
-
}, {
|
|
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?: {
|
|
550
|
+
}, {
|
|
664
551
|
ingress: number;
|
|
665
552
|
egress: number;
|
|
666
|
-
}
|
|
667
|
-
}
|
|
668
|
-
}>;
|
|
669
|
-
export declare const SandboxAndRoutesResponse: z.ZodObject<{
|
|
670
|
-
sandbox: z.ZodObject<{
|
|
553
|
+
}>>;
|
|
554
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
671
555
|
id: z.ZodString;
|
|
672
556
|
memory: z.ZodNumber;
|
|
673
557
|
vcpus: z.ZodNumber;
|
|
@@ -765,7 +649,9 @@ export declare const SandboxAndRoutesResponse: z.ZodObject<{
|
|
|
765
649
|
ingress: number;
|
|
766
650
|
egress: number;
|
|
767
651
|
}>>;
|
|
768
|
-
},
|
|
652
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
653
|
+
}, "strip", z.ZodTypeAny, {
|
|
654
|
+
session: {
|
|
769
655
|
id: string;
|
|
770
656
|
memory: number;
|
|
771
657
|
vcpus: number;
|
|
@@ -813,7 +699,11 @@ export declare const SandboxAndRoutesResponse: z.ZodObject<{
|
|
|
813
699
|
ingress: number;
|
|
814
700
|
egress: number;
|
|
815
701
|
} | undefined;
|
|
816
|
-
}
|
|
702
|
+
} & {
|
|
703
|
+
[k: string]: unknown;
|
|
704
|
+
};
|
|
705
|
+
}, {
|
|
706
|
+
session: {
|
|
817
707
|
id: string;
|
|
818
708
|
memory: number;
|
|
819
709
|
vcpus: number;
|
|
@@ -861,323 +751,12 @@ export declare const SandboxAndRoutesResponse: z.ZodObject<{
|
|
|
861
751
|
ingress: number;
|
|
862
752
|
egress: number;
|
|
863
753
|
} | undefined;
|
|
864
|
-
}>;
|
|
865
|
-
} & {
|
|
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">;
|
|
879
|
-
}, "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
|
-
}[];
|
|
934
|
-
}, {
|
|
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
|
-
}[];
|
|
989
|
-
}>;
|
|
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
|
-
}>;
|
|
1016
|
-
}, "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
|
-
};
|
|
1026
|
-
}, {
|
|
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
|
-
};
|
|
1036
|
-
}>;
|
|
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
754
|
} & {
|
|
1047
|
-
|
|
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;
|
|
755
|
+
[k: string]: unknown;
|
|
1131
756
|
};
|
|
1132
|
-
stream: "error";
|
|
1133
757
|
}>;
|
|
1134
|
-
export declare const
|
|
1135
|
-
|
|
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<{
|
|
758
|
+
export declare const SessionAndRoutesResponse: z.ZodObject<{
|
|
759
|
+
session: z.ZodObject<{
|
|
1181
760
|
id: z.ZodString;
|
|
1182
761
|
memory: z.ZodNumber;
|
|
1183
762
|
vcpus: z.ZodNumber;
|
|
@@ -1275,31 +854,39 @@ export declare const SandboxesResponse: z.ZodObject<{
|
|
|
1275
854
|
ingress: number;
|
|
1276
855
|
egress: number;
|
|
1277
856
|
}>>;
|
|
1278
|
-
}, "
|
|
1279
|
-
id:
|
|
1280
|
-
memory:
|
|
1281
|
-
vcpus:
|
|
1282
|
-
region:
|
|
1283
|
-
runtime:
|
|
1284
|
-
timeout:
|
|
1285
|
-
status: "
|
|
1286
|
-
requestedAt:
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
interactivePort
|
|
1298
|
-
networkPolicy
|
|
857
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
858
|
+
id: z.ZodString;
|
|
859
|
+
memory: z.ZodNumber;
|
|
860
|
+
vcpus: z.ZodNumber;
|
|
861
|
+
region: z.ZodString;
|
|
862
|
+
runtime: z.ZodString;
|
|
863
|
+
timeout: z.ZodNumber;
|
|
864
|
+
status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
|
|
865
|
+
requestedAt: z.ZodNumber;
|
|
866
|
+
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
867
|
+
requestedStopAt: z.ZodOptional<z.ZodNumber>;
|
|
868
|
+
stoppedAt: z.ZodOptional<z.ZodNumber>;
|
|
869
|
+
abortedAt: z.ZodOptional<z.ZodNumber>;
|
|
870
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
871
|
+
sourceSnapshotId: z.ZodOptional<z.ZodString>;
|
|
872
|
+
snapshottedAt: z.ZodOptional<z.ZodNumber>;
|
|
873
|
+
createdAt: z.ZodNumber;
|
|
874
|
+
cwd: z.ZodString;
|
|
875
|
+
updatedAt: z.ZodNumber;
|
|
876
|
+
interactivePort: z.ZodOptional<z.ZodNumber>;
|
|
877
|
+
networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1299
878
|
mode: z.ZodLiteral<"allow-all">;
|
|
1300
|
-
}, z.ZodTypeAny,
|
|
879
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
880
|
+
mode: z.ZodLiteral<"allow-all">;
|
|
881
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
882
|
+
mode: z.ZodLiteral<"allow-all">;
|
|
883
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
1301
884
|
mode: z.ZodLiteral<"deny-all">;
|
|
1302
|
-
}, z.ZodTypeAny,
|
|
885
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
886
|
+
mode: z.ZodLiteral<"deny-all">;
|
|
887
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
888
|
+
mode: z.ZodLiteral<"deny-all">;
|
|
889
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
1303
890
|
mode: z.ZodLiteral<"custom">;
|
|
1304
891
|
allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1305
892
|
allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -1317,37 +904,7 @@ export declare const SandboxesResponse: z.ZodObject<{
|
|
|
1317
904
|
headers?: Record<string, string> | undefined;
|
|
1318
905
|
headerNames?: string[] | undefined;
|
|
1319
906
|
}>, "many">>;
|
|
1320
|
-
}, z.ZodTypeAny,
|
|
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<{
|
|
907
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1351
908
|
mode: z.ZodLiteral<"custom">;
|
|
1352
909
|
allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1353
910
|
allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -1365,64 +922,7 @@ export declare const SandboxesResponse: z.ZodObject<{
|
|
|
1365
922
|
headers?: Record<string, string> | undefined;
|
|
1366
923
|
headerNames?: string[] | undefined;
|
|
1367
924
|
}>, "many">>;
|
|
1368
|
-
}, z.ZodTypeAny, "passthrough"
|
|
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<{
|
|
925
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1426
926
|
mode: z.ZodLiteral<"custom">;
|
|
1427
927
|
allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1428
928
|
allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -1440,163 +940,19 @@ export declare const SandboxesResponse: z.ZodObject<{
|
|
|
1440
940
|
headers?: Record<string, string> | undefined;
|
|
1441
941
|
headerNames?: string[] | undefined;
|
|
1442
942
|
}>, "many">>;
|
|
1443
|
-
}, z.ZodTypeAny, "passthrough"
|
|
1444
|
-
activeCpuDurationMs
|
|
1445
|
-
networkTransfer
|
|
943
|
+
}, z.ZodTypeAny, "passthrough">>]>>;
|
|
944
|
+
activeCpuDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
945
|
+
networkTransfer: z.ZodOptional<z.ZodObject<{
|
|
946
|
+
ingress: z.ZodNumber;
|
|
947
|
+
egress: z.ZodNumber;
|
|
948
|
+
}, "strip", z.ZodTypeAny, {
|
|
1446
949
|
ingress: number;
|
|
1447
950
|
egress: number;
|
|
1448
|
-
}
|
|
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?: {
|
|
951
|
+
}, {
|
|
1501
952
|
ingress: number;
|
|
1502
953
|
egress: number;
|
|
1503
|
-
}
|
|
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<{
|
|
954
|
+
}>>;
|
|
955
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1600
956
|
id: z.ZodString;
|
|
1601
957
|
memory: z.ZodNumber;
|
|
1602
958
|
vcpus: z.ZodNumber;
|
|
@@ -1694,13 +1050,29 @@ export declare const ExtendTimeoutResponse: z.ZodObject<{
|
|
|
1694
1050
|
ingress: number;
|
|
1695
1051
|
egress: number;
|
|
1696
1052
|
}>>;
|
|
1053
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
1054
|
+
} & {
|
|
1055
|
+
routes: z.ZodArray<z.ZodObject<{
|
|
1056
|
+
url: z.ZodString;
|
|
1057
|
+
subdomain: z.ZodString;
|
|
1058
|
+
port: z.ZodNumber;
|
|
1697
1059
|
}, "strip", z.ZodTypeAny, {
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1060
|
+
url: string;
|
|
1061
|
+
subdomain: string;
|
|
1062
|
+
port: number;
|
|
1063
|
+
}, {
|
|
1064
|
+
url: string;
|
|
1065
|
+
subdomain: string;
|
|
1066
|
+
port: number;
|
|
1067
|
+
}>, "many">;
|
|
1068
|
+
}, "strip", z.ZodTypeAny, {
|
|
1069
|
+
session: {
|
|
1070
|
+
id: string;
|
|
1071
|
+
memory: number;
|
|
1072
|
+
vcpus: number;
|
|
1073
|
+
region: string;
|
|
1074
|
+
runtime: string;
|
|
1075
|
+
timeout: number;
|
|
1704
1076
|
status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
|
|
1705
1077
|
requestedAt: number;
|
|
1706
1078
|
createdAt: number;
|
|
@@ -1742,7 +1114,16 @@ export declare const ExtendTimeoutResponse: z.ZodObject<{
|
|
|
1742
1114
|
ingress: number;
|
|
1743
1115
|
egress: number;
|
|
1744
1116
|
} | undefined;
|
|
1745
|
-
}
|
|
1117
|
+
} & {
|
|
1118
|
+
[k: string]: unknown;
|
|
1119
|
+
};
|
|
1120
|
+
routes: {
|
|
1121
|
+
url: string;
|
|
1122
|
+
subdomain: string;
|
|
1123
|
+
port: number;
|
|
1124
|
+
}[];
|
|
1125
|
+
}, {
|
|
1126
|
+
session: {
|
|
1746
1127
|
id: string;
|
|
1747
1128
|
memory: number;
|
|
1748
1129
|
vcpus: number;
|
|
@@ -1790,33 +1171,49 @@ export declare const ExtendTimeoutResponse: z.ZodObject<{
|
|
|
1790
1171
|
ingress: number;
|
|
1791
1172
|
egress: number;
|
|
1792
1173
|
} | undefined;
|
|
1793
|
-
}
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1174
|
+
} & {
|
|
1175
|
+
[k: string]: unknown;
|
|
1176
|
+
};
|
|
1177
|
+
routes: {
|
|
1178
|
+
url: string;
|
|
1179
|
+
subdomain: string;
|
|
1180
|
+
port: number;
|
|
1181
|
+
}[];
|
|
1182
|
+
}>;
|
|
1183
|
+
export declare const SessionsResponse: z.ZodObject<{
|
|
1184
|
+
sessions: z.ZodArray<z.ZodObject<{
|
|
1185
|
+
id: z.ZodString;
|
|
1186
|
+
memory: z.ZodNumber;
|
|
1187
|
+
vcpus: z.ZodNumber;
|
|
1188
|
+
region: z.ZodString;
|
|
1189
|
+
runtime: z.ZodString;
|
|
1190
|
+
timeout: z.ZodNumber;
|
|
1191
|
+
status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
|
|
1192
|
+
requestedAt: z.ZodNumber;
|
|
1193
|
+
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
1194
|
+
requestedStopAt: z.ZodOptional<z.ZodNumber>;
|
|
1195
|
+
stoppedAt: z.ZodOptional<z.ZodNumber>;
|
|
1196
|
+
abortedAt: z.ZodOptional<z.ZodNumber>;
|
|
1197
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
1198
|
+
sourceSnapshotId: z.ZodOptional<z.ZodString>;
|
|
1199
|
+
snapshottedAt: z.ZodOptional<z.ZodNumber>;
|
|
1200
|
+
createdAt: z.ZodNumber;
|
|
1201
|
+
cwd: z.ZodString;
|
|
1202
|
+
updatedAt: z.ZodNumber;
|
|
1203
|
+
interactivePort: z.ZodOptional<z.ZodNumber>;
|
|
1204
|
+
networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1816
1205
|
mode: z.ZodLiteral<"allow-all">;
|
|
1817
|
-
}, z.ZodTypeAny,
|
|
1206
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1207
|
+
mode: z.ZodLiteral<"allow-all">;
|
|
1208
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1209
|
+
mode: z.ZodLiteral<"allow-all">;
|
|
1210
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
1818
1211
|
mode: z.ZodLiteral<"deny-all">;
|
|
1819
|
-
}, z.ZodTypeAny,
|
|
1212
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1213
|
+
mode: z.ZodLiteral<"deny-all">;
|
|
1214
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1215
|
+
mode: z.ZodLiteral<"deny-all">;
|
|
1216
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
1820
1217
|
mode: z.ZodLiteral<"custom">;
|
|
1821
1218
|
allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1822
1219
|
allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -1834,39 +1231,7 @@ export declare const ExtendTimeoutResponse: z.ZodObject<{
|
|
|
1834
1231
|
headers?: Record<string, string> | undefined;
|
|
1835
1232
|
headerNames?: string[] | undefined;
|
|
1836
1233
|
}>, "many">>;
|
|
1837
|
-
}, z.ZodTypeAny,
|
|
1838
|
-
activeCpuDurationMs?: number | undefined;
|
|
1839
|
-
networkTransfer?: {
|
|
1840
|
-
ingress: number;
|
|
1841
|
-
egress: number;
|
|
1842
|
-
} | undefined;
|
|
1843
|
-
};
|
|
1844
|
-
}, {
|
|
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<{
|
|
1234
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1870
1235
|
mode: z.ZodLiteral<"custom">;
|
|
1871
1236
|
allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1872
1237
|
allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -1884,16 +1249,37 @@ export declare const ExtendTimeoutResponse: z.ZodObject<{
|
|
|
1884
1249
|
headers?: Record<string, string> | undefined;
|
|
1885
1250
|
headerNames?: string[] | undefined;
|
|
1886
1251
|
}>, "many">>;
|
|
1887
|
-
}, z.ZodTypeAny, "passthrough"
|
|
1888
|
-
|
|
1889
|
-
|
|
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">>]>>;
|
|
1271
|
+
activeCpuDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
1272
|
+
networkTransfer: z.ZodOptional<z.ZodObject<{
|
|
1273
|
+
ingress: z.ZodNumber;
|
|
1274
|
+
egress: z.ZodNumber;
|
|
1275
|
+
}, "strip", z.ZodTypeAny, {
|
|
1890
1276
|
ingress: number;
|
|
1891
1277
|
egress: number;
|
|
1892
|
-
}
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1278
|
+
}, {
|
|
1279
|
+
ingress: number;
|
|
1280
|
+
egress: number;
|
|
1281
|
+
}>>;
|
|
1282
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1897
1283
|
id: z.ZodString;
|
|
1898
1284
|
memory: z.ZodNumber;
|
|
1899
1285
|
vcpus: z.ZodNumber;
|
|
@@ -1991,31 +1377,39 @@ export declare const UpdateNetworkPolicyResponse: z.ZodObject<{
|
|
|
1991
1377
|
ingress: number;
|
|
1992
1378
|
egress: number;
|
|
1993
1379
|
}>>;
|
|
1994
|
-
}, "
|
|
1995
|
-
id:
|
|
1996
|
-
memory:
|
|
1997
|
-
vcpus:
|
|
1998
|
-
region:
|
|
1999
|
-
runtime:
|
|
2000
|
-
timeout:
|
|
2001
|
-
status: "
|
|
2002
|
-
requestedAt:
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
interactivePort
|
|
2014
|
-
networkPolicy
|
|
1380
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1381
|
+
id: z.ZodString;
|
|
1382
|
+
memory: z.ZodNumber;
|
|
1383
|
+
vcpus: z.ZodNumber;
|
|
1384
|
+
region: z.ZodString;
|
|
1385
|
+
runtime: z.ZodString;
|
|
1386
|
+
timeout: z.ZodNumber;
|
|
1387
|
+
status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
|
|
1388
|
+
requestedAt: z.ZodNumber;
|
|
1389
|
+
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
1390
|
+
requestedStopAt: z.ZodOptional<z.ZodNumber>;
|
|
1391
|
+
stoppedAt: z.ZodOptional<z.ZodNumber>;
|
|
1392
|
+
abortedAt: z.ZodOptional<z.ZodNumber>;
|
|
1393
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
1394
|
+
sourceSnapshotId: z.ZodOptional<z.ZodString>;
|
|
1395
|
+
snapshottedAt: z.ZodOptional<z.ZodNumber>;
|
|
1396
|
+
createdAt: z.ZodNumber;
|
|
1397
|
+
cwd: z.ZodString;
|
|
1398
|
+
updatedAt: z.ZodNumber;
|
|
1399
|
+
interactivePort: z.ZodOptional<z.ZodNumber>;
|
|
1400
|
+
networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
2015
1401
|
mode: z.ZodLiteral<"allow-all">;
|
|
2016
|
-
}, z.ZodTypeAny,
|
|
1402
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1403
|
+
mode: z.ZodLiteral<"allow-all">;
|
|
1404
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1405
|
+
mode: z.ZodLiteral<"allow-all">;
|
|
1406
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
2017
1407
|
mode: z.ZodLiteral<"deny-all">;
|
|
2018
|
-
}, z.ZodTypeAny,
|
|
1408
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1409
|
+
mode: z.ZodLiteral<"deny-all">;
|
|
1410
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1411
|
+
mode: z.ZodLiteral<"deny-all">;
|
|
1412
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
2019
1413
|
mode: z.ZodLiteral<"custom">;
|
|
2020
1414
|
allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2021
1415
|
allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -2033,37 +1427,7 @@ export declare const UpdateNetworkPolicyResponse: z.ZodObject<{
|
|
|
2033
1427
|
headers?: Record<string, string> | undefined;
|
|
2034
1428
|
headerNames?: string[] | undefined;
|
|
2035
1429
|
}>, "many">>;
|
|
2036
|
-
}, z.ZodTypeAny,
|
|
2037
|
-
activeCpuDurationMs?: number | undefined;
|
|
2038
|
-
networkTransfer?: {
|
|
2039
|
-
ingress: number;
|
|
2040
|
-
egress: number;
|
|
2041
|
-
} | undefined;
|
|
2042
|
-
}, {
|
|
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<{
|
|
1430
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2067
1431
|
mode: z.ZodLiteral<"custom">;
|
|
2068
1432
|
allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2069
1433
|
allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -2081,39 +1445,81 @@ export declare const UpdateNetworkPolicyResponse: z.ZodObject<{
|
|
|
2081
1445
|
headers?: Record<string, string> | undefined;
|
|
2082
1446
|
headerNames?: string[] | undefined;
|
|
2083
1447
|
}>, "many">>;
|
|
2084
|
-
}, z.ZodTypeAny, "passthrough"
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
1448
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1449
|
+
mode: z.ZodLiteral<"custom">;
|
|
1450
|
+
allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1451
|
+
allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1452
|
+
deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1453
|
+
injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1454
|
+
domain: z.ZodString;
|
|
1455
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1456
|
+
headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1457
|
+
}, "strip", z.ZodTypeAny, {
|
|
1458
|
+
domain: string;
|
|
1459
|
+
headers?: Record<string, string> | undefined;
|
|
1460
|
+
headerNames?: string[] | undefined;
|
|
1461
|
+
}, {
|
|
1462
|
+
domain: string;
|
|
1463
|
+
headers?: Record<string, string> | undefined;
|
|
1464
|
+
headerNames?: string[] | undefined;
|
|
1465
|
+
}>, "many">>;
|
|
1466
|
+
}, z.ZodTypeAny, "passthrough">>]>>;
|
|
1467
|
+
activeCpuDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
1468
|
+
networkTransfer: z.ZodOptional<z.ZodObject<{
|
|
1469
|
+
ingress: z.ZodNumber;
|
|
1470
|
+
egress: z.ZodNumber;
|
|
1471
|
+
}, "strip", z.ZodTypeAny, {
|
|
1472
|
+
ingress: number;
|
|
1473
|
+
egress: number;
|
|
1474
|
+
}, {
|
|
1475
|
+
ingress: number;
|
|
1476
|
+
egress: number;
|
|
1477
|
+
}>>;
|
|
1478
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
1479
|
+
pagination: z.ZodObject<{
|
|
1480
|
+
count: z.ZodNumber;
|
|
1481
|
+
next: z.ZodNullable<z.ZodString>;
|
|
1482
|
+
}, "strip", z.ZodTypeAny, {
|
|
1483
|
+
count: number;
|
|
1484
|
+
next: string | null;
|
|
1485
|
+
}, {
|
|
1486
|
+
count: number;
|
|
1487
|
+
next: string | null;
|
|
1488
|
+
}>;
|
|
1489
|
+
}, "strip", z.ZodTypeAny, {
|
|
1490
|
+
sessions: z.objectOutputType<{
|
|
1491
|
+
id: z.ZodString;
|
|
1492
|
+
memory: z.ZodNumber;
|
|
1493
|
+
vcpus: z.ZodNumber;
|
|
1494
|
+
region: z.ZodString;
|
|
1495
|
+
runtime: z.ZodString;
|
|
1496
|
+
timeout: z.ZodNumber;
|
|
1497
|
+
status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
|
|
1498
|
+
requestedAt: z.ZodNumber;
|
|
1499
|
+
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
1500
|
+
requestedStopAt: z.ZodOptional<z.ZodNumber>;
|
|
1501
|
+
stoppedAt: z.ZodOptional<z.ZodNumber>;
|
|
1502
|
+
abortedAt: z.ZodOptional<z.ZodNumber>;
|
|
1503
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
1504
|
+
sourceSnapshotId: z.ZodOptional<z.ZodString>;
|
|
1505
|
+
snapshottedAt: z.ZodOptional<z.ZodNumber>;
|
|
1506
|
+
createdAt: z.ZodNumber;
|
|
1507
|
+
cwd: z.ZodString;
|
|
1508
|
+
updatedAt: z.ZodNumber;
|
|
1509
|
+
interactivePort: z.ZodOptional<z.ZodNumber>;
|
|
1510
|
+
networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
2113
1511
|
mode: z.ZodLiteral<"allow-all">;
|
|
2114
|
-
}, z.ZodTypeAny,
|
|
1512
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1513
|
+
mode: z.ZodLiteral<"allow-all">;
|
|
1514
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1515
|
+
mode: z.ZodLiteral<"allow-all">;
|
|
1516
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
2115
1517
|
mode: z.ZodLiteral<"deny-all">;
|
|
2116
|
-
}, z.ZodTypeAny,
|
|
1518
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1519
|
+
mode: z.ZodLiteral<"deny-all">;
|
|
1520
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1521
|
+
mode: z.ZodLiteral<"deny-all">;
|
|
1522
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
2117
1523
|
mode: z.ZodLiteral<"custom">;
|
|
2118
1524
|
allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2119
1525
|
allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -2131,39 +1537,93 @@ export declare const UpdateNetworkPolicyResponse: z.ZodObject<{
|
|
|
2131
1537
|
headers?: Record<string, string> | undefined;
|
|
2132
1538
|
headerNames?: string[] | undefined;
|
|
2133
1539
|
}>, "many">>;
|
|
2134
|
-
}, z.ZodTypeAny,
|
|
2135
|
-
|
|
2136
|
-
|
|
1540
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1541
|
+
mode: z.ZodLiteral<"custom">;
|
|
1542
|
+
allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1543
|
+
allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1544
|
+
deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1545
|
+
injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1546
|
+
domain: z.ZodString;
|
|
1547
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1548
|
+
headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1549
|
+
}, "strip", z.ZodTypeAny, {
|
|
1550
|
+
domain: string;
|
|
1551
|
+
headers?: Record<string, string> | undefined;
|
|
1552
|
+
headerNames?: string[] | undefined;
|
|
1553
|
+
}, {
|
|
1554
|
+
domain: string;
|
|
1555
|
+
headers?: Record<string, string> | undefined;
|
|
1556
|
+
headerNames?: string[] | undefined;
|
|
1557
|
+
}>, "many">>;
|
|
1558
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1559
|
+
mode: z.ZodLiteral<"custom">;
|
|
1560
|
+
allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1561
|
+
allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1562
|
+
deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1563
|
+
injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1564
|
+
domain: z.ZodString;
|
|
1565
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1566
|
+
headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1567
|
+
}, "strip", z.ZodTypeAny, {
|
|
1568
|
+
domain: string;
|
|
1569
|
+
headers?: Record<string, string> | undefined;
|
|
1570
|
+
headerNames?: string[] | undefined;
|
|
1571
|
+
}, {
|
|
1572
|
+
domain: string;
|
|
1573
|
+
headers?: Record<string, string> | undefined;
|
|
1574
|
+
headerNames?: string[] | undefined;
|
|
1575
|
+
}>, "many">>;
|
|
1576
|
+
}, z.ZodTypeAny, "passthrough">>]>>;
|
|
1577
|
+
activeCpuDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
1578
|
+
networkTransfer: z.ZodOptional<z.ZodObject<{
|
|
1579
|
+
ingress: z.ZodNumber;
|
|
1580
|
+
egress: z.ZodNumber;
|
|
1581
|
+
}, "strip", z.ZodTypeAny, {
|
|
2137
1582
|
ingress: number;
|
|
2138
1583
|
egress: number;
|
|
2139
|
-
}
|
|
1584
|
+
}, {
|
|
1585
|
+
ingress: number;
|
|
1586
|
+
egress: number;
|
|
1587
|
+
}>>;
|
|
1588
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
1589
|
+
pagination: {
|
|
1590
|
+
count: number;
|
|
1591
|
+
next: string | null;
|
|
2140
1592
|
};
|
|
2141
1593
|
}, {
|
|
2142
|
-
|
|
2143
|
-
id:
|
|
2144
|
-
memory:
|
|
2145
|
-
vcpus:
|
|
2146
|
-
region:
|
|
2147
|
-
runtime:
|
|
2148
|
-
timeout:
|
|
2149
|
-
status: "
|
|
2150
|
-
requestedAt:
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
interactivePort
|
|
2162
|
-
networkPolicy
|
|
1594
|
+
sessions: z.objectInputType<{
|
|
1595
|
+
id: z.ZodString;
|
|
1596
|
+
memory: z.ZodNumber;
|
|
1597
|
+
vcpus: z.ZodNumber;
|
|
1598
|
+
region: z.ZodString;
|
|
1599
|
+
runtime: z.ZodString;
|
|
1600
|
+
timeout: z.ZodNumber;
|
|
1601
|
+
status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
|
|
1602
|
+
requestedAt: z.ZodNumber;
|
|
1603
|
+
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
1604
|
+
requestedStopAt: z.ZodOptional<z.ZodNumber>;
|
|
1605
|
+
stoppedAt: z.ZodOptional<z.ZodNumber>;
|
|
1606
|
+
abortedAt: z.ZodOptional<z.ZodNumber>;
|
|
1607
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
1608
|
+
sourceSnapshotId: z.ZodOptional<z.ZodString>;
|
|
1609
|
+
snapshottedAt: z.ZodOptional<z.ZodNumber>;
|
|
1610
|
+
createdAt: z.ZodNumber;
|
|
1611
|
+
cwd: z.ZodString;
|
|
1612
|
+
updatedAt: z.ZodNumber;
|
|
1613
|
+
interactivePort: z.ZodOptional<z.ZodNumber>;
|
|
1614
|
+
networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
2163
1615
|
mode: z.ZodLiteral<"allow-all">;
|
|
2164
|
-
}, z.ZodTypeAny,
|
|
1616
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1617
|
+
mode: z.ZodLiteral<"allow-all">;
|
|
1618
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1619
|
+
mode: z.ZodLiteral<"allow-all">;
|
|
1620
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
2165
1621
|
mode: z.ZodLiteral<"deny-all">;
|
|
2166
|
-
}, z.ZodTypeAny,
|
|
1622
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1623
|
+
mode: z.ZodLiteral<"deny-all">;
|
|
1624
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1625
|
+
mode: z.ZodLiteral<"deny-all">;
|
|
1626
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
2167
1627
|
mode: z.ZodLiteral<"custom">;
|
|
2168
1628
|
allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2169
1629
|
allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -2181,22 +1641,257 @@ export declare const UpdateNetworkPolicyResponse: z.ZodObject<{
|
|
|
2181
1641
|
headers?: Record<string, string> | undefined;
|
|
2182
1642
|
headerNames?: string[] | undefined;
|
|
2183
1643
|
}>, "many">>;
|
|
2184
|
-
}, z.ZodTypeAny,
|
|
2185
|
-
|
|
2186
|
-
|
|
1644
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1645
|
+
mode: z.ZodLiteral<"custom">;
|
|
1646
|
+
allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1647
|
+
allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1648
|
+
deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1649
|
+
injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1650
|
+
domain: z.ZodString;
|
|
1651
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1652
|
+
headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1653
|
+
}, "strip", z.ZodTypeAny, {
|
|
1654
|
+
domain: string;
|
|
1655
|
+
headers?: Record<string, string> | undefined;
|
|
1656
|
+
headerNames?: string[] | undefined;
|
|
1657
|
+
}, {
|
|
1658
|
+
domain: string;
|
|
1659
|
+
headers?: Record<string, string> | undefined;
|
|
1660
|
+
headerNames?: string[] | undefined;
|
|
1661
|
+
}>, "many">>;
|
|
1662
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1663
|
+
mode: z.ZodLiteral<"custom">;
|
|
1664
|
+
allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1665
|
+
allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1666
|
+
deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1667
|
+
injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1668
|
+
domain: z.ZodString;
|
|
1669
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1670
|
+
headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1671
|
+
}, "strip", z.ZodTypeAny, {
|
|
1672
|
+
domain: string;
|
|
1673
|
+
headers?: Record<string, string> | undefined;
|
|
1674
|
+
headerNames?: string[] | undefined;
|
|
1675
|
+
}, {
|
|
1676
|
+
domain: string;
|
|
1677
|
+
headers?: Record<string, string> | undefined;
|
|
1678
|
+
headerNames?: string[] | undefined;
|
|
1679
|
+
}>, "many">>;
|
|
1680
|
+
}, z.ZodTypeAny, "passthrough">>]>>;
|
|
1681
|
+
activeCpuDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
1682
|
+
networkTransfer: z.ZodOptional<z.ZodObject<{
|
|
1683
|
+
ingress: z.ZodNumber;
|
|
1684
|
+
egress: z.ZodNumber;
|
|
1685
|
+
}, "strip", z.ZodTypeAny, {
|
|
2187
1686
|
ingress: number;
|
|
2188
1687
|
egress: number;
|
|
2189
|
-
}
|
|
1688
|
+
}, {
|
|
1689
|
+
ingress: number;
|
|
1690
|
+
egress: number;
|
|
1691
|
+
}>>;
|
|
1692
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
1693
|
+
pagination: {
|
|
1694
|
+
count: number;
|
|
1695
|
+
next: string | null;
|
|
2190
1696
|
};
|
|
2191
1697
|
}>;
|
|
2192
|
-
export declare const
|
|
2193
|
-
|
|
1698
|
+
export declare const CommandResponse: z.ZodObject<{
|
|
1699
|
+
command: z.ZodObject<{
|
|
2194
1700
|
id: z.ZodString;
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
1701
|
+
name: z.ZodString;
|
|
1702
|
+
args: z.ZodArray<z.ZodString, "many">;
|
|
1703
|
+
cwd: z.ZodString;
|
|
1704
|
+
sessionId: z.ZodString;
|
|
1705
|
+
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
1706
|
+
startedAt: z.ZodNumber;
|
|
1707
|
+
}, "strip", z.ZodTypeAny, {
|
|
1708
|
+
sessionId: string;
|
|
1709
|
+
id: string;
|
|
1710
|
+
startedAt: number;
|
|
1711
|
+
cwd: string;
|
|
1712
|
+
name: string;
|
|
1713
|
+
args: string[];
|
|
1714
|
+
exitCode: number | null;
|
|
1715
|
+
}, {
|
|
1716
|
+
sessionId: string;
|
|
1717
|
+
id: string;
|
|
1718
|
+
startedAt: number;
|
|
1719
|
+
cwd: string;
|
|
1720
|
+
name: string;
|
|
1721
|
+
args: string[];
|
|
1722
|
+
exitCode: number | null;
|
|
1723
|
+
}>;
|
|
1724
|
+
}, "strip", z.ZodTypeAny, {
|
|
1725
|
+
command: {
|
|
1726
|
+
sessionId: string;
|
|
1727
|
+
id: string;
|
|
1728
|
+
startedAt: number;
|
|
1729
|
+
cwd: string;
|
|
1730
|
+
name: string;
|
|
1731
|
+
args: string[];
|
|
1732
|
+
exitCode: number | null;
|
|
1733
|
+
};
|
|
1734
|
+
}, {
|
|
1735
|
+
command: {
|
|
1736
|
+
sessionId: string;
|
|
1737
|
+
id: string;
|
|
1738
|
+
startedAt: number;
|
|
1739
|
+
cwd: string;
|
|
1740
|
+
name: string;
|
|
1741
|
+
args: string[];
|
|
1742
|
+
exitCode: number | null;
|
|
1743
|
+
};
|
|
1744
|
+
}>;
|
|
1745
|
+
export type CommandFinishedData = z.infer<typeof CommandFinishedResponse>["command"];
|
|
1746
|
+
export declare const CommandFinishedResponse: z.ZodObject<{
|
|
1747
|
+
command: z.ZodObject<{
|
|
1748
|
+
id: z.ZodString;
|
|
1749
|
+
name: z.ZodString;
|
|
1750
|
+
args: z.ZodArray<z.ZodString, "many">;
|
|
1751
|
+
cwd: z.ZodString;
|
|
1752
|
+
sessionId: z.ZodString;
|
|
1753
|
+
startedAt: z.ZodNumber;
|
|
1754
|
+
} & {
|
|
1755
|
+
exitCode: z.ZodNumber;
|
|
1756
|
+
}, "strip", z.ZodTypeAny, {
|
|
1757
|
+
sessionId: string;
|
|
1758
|
+
id: string;
|
|
1759
|
+
startedAt: number;
|
|
1760
|
+
cwd: string;
|
|
1761
|
+
name: string;
|
|
1762
|
+
args: string[];
|
|
1763
|
+
exitCode: number;
|
|
1764
|
+
}, {
|
|
1765
|
+
sessionId: string;
|
|
1766
|
+
id: string;
|
|
1767
|
+
startedAt: number;
|
|
1768
|
+
cwd: string;
|
|
1769
|
+
name: string;
|
|
1770
|
+
args: string[];
|
|
1771
|
+
exitCode: number;
|
|
1772
|
+
}>;
|
|
1773
|
+
}, "strip", z.ZodTypeAny, {
|
|
1774
|
+
command: {
|
|
1775
|
+
sessionId: string;
|
|
1776
|
+
id: string;
|
|
1777
|
+
startedAt: number;
|
|
1778
|
+
cwd: string;
|
|
1779
|
+
name: string;
|
|
1780
|
+
args: string[];
|
|
1781
|
+
exitCode: number;
|
|
1782
|
+
};
|
|
1783
|
+
}, {
|
|
1784
|
+
command: {
|
|
1785
|
+
sessionId: string;
|
|
1786
|
+
id: string;
|
|
1787
|
+
startedAt: number;
|
|
1788
|
+
cwd: string;
|
|
1789
|
+
name: string;
|
|
1790
|
+
args: string[];
|
|
1791
|
+
exitCode: number;
|
|
1792
|
+
};
|
|
1793
|
+
}>;
|
|
1794
|
+
export declare const EmptyResponse: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
1795
|
+
export declare const LogLineStdout: z.ZodObject<{
|
|
1796
|
+
data: z.ZodString;
|
|
1797
|
+
} & {
|
|
1798
|
+
stream: z.ZodLiteral<"stdout">;
|
|
1799
|
+
}, "strip", z.ZodTypeAny, {
|
|
1800
|
+
data: string;
|
|
1801
|
+
stream: "stdout";
|
|
1802
|
+
}, {
|
|
1803
|
+
data: string;
|
|
1804
|
+
stream: "stdout";
|
|
1805
|
+
}>;
|
|
1806
|
+
export declare const LogLineStderr: z.ZodObject<{
|
|
1807
|
+
data: z.ZodString;
|
|
1808
|
+
} & {
|
|
1809
|
+
stream: z.ZodLiteral<"stderr">;
|
|
1810
|
+
}, "strip", z.ZodTypeAny, {
|
|
1811
|
+
data: string;
|
|
1812
|
+
stream: "stderr";
|
|
1813
|
+
}, {
|
|
1814
|
+
data: string;
|
|
1815
|
+
stream: "stderr";
|
|
1816
|
+
}>;
|
|
1817
|
+
export declare const LogError: z.ZodObject<{
|
|
1818
|
+
stream: z.ZodLiteral<"error">;
|
|
1819
|
+
data: z.ZodObject<{
|
|
1820
|
+
code: z.ZodString;
|
|
1821
|
+
message: z.ZodString;
|
|
1822
|
+
}, "strip", z.ZodTypeAny, {
|
|
1823
|
+
message: string;
|
|
1824
|
+
code: string;
|
|
1825
|
+
}, {
|
|
1826
|
+
message: string;
|
|
1827
|
+
code: string;
|
|
1828
|
+
}>;
|
|
1829
|
+
}, "strip", z.ZodTypeAny, {
|
|
1830
|
+
data: {
|
|
1831
|
+
message: string;
|
|
1832
|
+
code: string;
|
|
1833
|
+
};
|
|
1834
|
+
stream: "error";
|
|
1835
|
+
}, {
|
|
1836
|
+
data: {
|
|
1837
|
+
message: string;
|
|
1838
|
+
code: string;
|
|
1839
|
+
};
|
|
1840
|
+
stream: "error";
|
|
1841
|
+
}>;
|
|
1842
|
+
export declare const LogLine: z.ZodDiscriminatedUnion<"stream", [z.ZodObject<{
|
|
1843
|
+
data: z.ZodString;
|
|
1844
|
+
} & {
|
|
1845
|
+
stream: z.ZodLiteral<"stdout">;
|
|
1846
|
+
}, "strip", z.ZodTypeAny, {
|
|
1847
|
+
data: string;
|
|
1848
|
+
stream: "stdout";
|
|
1849
|
+
}, {
|
|
1850
|
+
data: string;
|
|
1851
|
+
stream: "stdout";
|
|
1852
|
+
}>, z.ZodObject<{
|
|
1853
|
+
data: z.ZodString;
|
|
1854
|
+
} & {
|
|
1855
|
+
stream: z.ZodLiteral<"stderr">;
|
|
1856
|
+
}, "strip", z.ZodTypeAny, {
|
|
1857
|
+
data: string;
|
|
1858
|
+
stream: "stderr";
|
|
1859
|
+
}, {
|
|
1860
|
+
data: string;
|
|
1861
|
+
stream: "stderr";
|
|
1862
|
+
}>, z.ZodObject<{
|
|
1863
|
+
stream: z.ZodLiteral<"error">;
|
|
1864
|
+
data: z.ZodObject<{
|
|
1865
|
+
code: z.ZodString;
|
|
1866
|
+
message: z.ZodString;
|
|
1867
|
+
}, "strip", z.ZodTypeAny, {
|
|
1868
|
+
message: string;
|
|
1869
|
+
code: string;
|
|
1870
|
+
}, {
|
|
1871
|
+
message: string;
|
|
1872
|
+
code: string;
|
|
1873
|
+
}>;
|
|
1874
|
+
}, "strip", z.ZodTypeAny, {
|
|
1875
|
+
data: {
|
|
1876
|
+
message: string;
|
|
1877
|
+
code: string;
|
|
1878
|
+
};
|
|
1879
|
+
stream: "error";
|
|
1880
|
+
}, {
|
|
1881
|
+
data: {
|
|
1882
|
+
message: string;
|
|
1883
|
+
code: string;
|
|
1884
|
+
};
|
|
1885
|
+
stream: "error";
|
|
1886
|
+
}>]>;
|
|
1887
|
+
export declare const SnapshotsResponse: z.ZodObject<{
|
|
1888
|
+
snapshots: z.ZodArray<z.ZodObject<{
|
|
1889
|
+
id: z.ZodString;
|
|
1890
|
+
sourceSessionId: z.ZodString;
|
|
1891
|
+
region: z.ZodString;
|
|
1892
|
+
status: z.ZodEnum<["created", "deleted", "failed"]>;
|
|
1893
|
+
sizeBytes: z.ZodNumber;
|
|
1894
|
+
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
2200
1895
|
createdAt: z.ZodNumber;
|
|
2201
1896
|
updatedAt: z.ZodNumber;
|
|
2202
1897
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2205,7 +1900,7 @@ export declare const CreateSnapshotResponse: z.ZodObject<{
|
|
|
2205
1900
|
status: "failed" | "created" | "deleted";
|
|
2206
1901
|
createdAt: number;
|
|
2207
1902
|
updatedAt: number;
|
|
2208
|
-
|
|
1903
|
+
sourceSessionId: string;
|
|
2209
1904
|
sizeBytes: number;
|
|
2210
1905
|
expiresAt?: number | undefined;
|
|
2211
1906
|
}, {
|
|
@@ -2214,11 +1909,179 @@ export declare const CreateSnapshotResponse: z.ZodObject<{
|
|
|
2214
1909
|
status: "failed" | "created" | "deleted";
|
|
2215
1910
|
createdAt: number;
|
|
2216
1911
|
updatedAt: number;
|
|
2217
|
-
|
|
1912
|
+
sourceSessionId: string;
|
|
2218
1913
|
sizeBytes: number;
|
|
2219
1914
|
expiresAt?: number | undefined;
|
|
1915
|
+
}>, "many">;
|
|
1916
|
+
pagination: z.ZodObject<{
|
|
1917
|
+
count: z.ZodNumber;
|
|
1918
|
+
next: z.ZodNullable<z.ZodString>;
|
|
1919
|
+
}, "strip", z.ZodTypeAny, {
|
|
1920
|
+
count: number;
|
|
1921
|
+
next: string | null;
|
|
1922
|
+
}, {
|
|
1923
|
+
count: number;
|
|
1924
|
+
next: string | null;
|
|
2220
1925
|
}>;
|
|
2221
|
-
|
|
1926
|
+
}, "strip", z.ZodTypeAny, {
|
|
1927
|
+
pagination: {
|
|
1928
|
+
count: number;
|
|
1929
|
+
next: string | null;
|
|
1930
|
+
};
|
|
1931
|
+
snapshots: {
|
|
1932
|
+
id: string;
|
|
1933
|
+
region: string;
|
|
1934
|
+
status: "failed" | "created" | "deleted";
|
|
1935
|
+
createdAt: number;
|
|
1936
|
+
updatedAt: number;
|
|
1937
|
+
sourceSessionId: string;
|
|
1938
|
+
sizeBytes: number;
|
|
1939
|
+
expiresAt?: number | undefined;
|
|
1940
|
+
}[];
|
|
1941
|
+
}, {
|
|
1942
|
+
pagination: {
|
|
1943
|
+
count: number;
|
|
1944
|
+
next: string | null;
|
|
1945
|
+
};
|
|
1946
|
+
snapshots: {
|
|
1947
|
+
id: string;
|
|
1948
|
+
region: string;
|
|
1949
|
+
status: "failed" | "created" | "deleted";
|
|
1950
|
+
createdAt: number;
|
|
1951
|
+
updatedAt: number;
|
|
1952
|
+
sourceSessionId: string;
|
|
1953
|
+
sizeBytes: number;
|
|
1954
|
+
expiresAt?: number | undefined;
|
|
1955
|
+
}[];
|
|
1956
|
+
}>;
|
|
1957
|
+
export declare const CreateSnapshotResponse: z.ZodObject<{
|
|
1958
|
+
snapshot: z.ZodObject<{
|
|
1959
|
+
id: z.ZodString;
|
|
1960
|
+
sourceSessionId: z.ZodString;
|
|
1961
|
+
region: z.ZodString;
|
|
1962
|
+
status: z.ZodEnum<["created", "deleted", "failed"]>;
|
|
1963
|
+
sizeBytes: z.ZodNumber;
|
|
1964
|
+
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
1965
|
+
createdAt: z.ZodNumber;
|
|
1966
|
+
updatedAt: z.ZodNumber;
|
|
1967
|
+
}, "strip", z.ZodTypeAny, {
|
|
1968
|
+
id: string;
|
|
1969
|
+
region: string;
|
|
1970
|
+
status: "failed" | "created" | "deleted";
|
|
1971
|
+
createdAt: number;
|
|
1972
|
+
updatedAt: number;
|
|
1973
|
+
sourceSessionId: string;
|
|
1974
|
+
sizeBytes: number;
|
|
1975
|
+
expiresAt?: number | undefined;
|
|
1976
|
+
}, {
|
|
1977
|
+
id: string;
|
|
1978
|
+
region: string;
|
|
1979
|
+
status: "failed" | "created" | "deleted";
|
|
1980
|
+
createdAt: number;
|
|
1981
|
+
updatedAt: number;
|
|
1982
|
+
sourceSessionId: string;
|
|
1983
|
+
sizeBytes: number;
|
|
1984
|
+
expiresAt?: number | undefined;
|
|
1985
|
+
}>;
|
|
1986
|
+
session: z.ZodObject<{
|
|
1987
|
+
id: z.ZodString;
|
|
1988
|
+
memory: z.ZodNumber;
|
|
1989
|
+
vcpus: z.ZodNumber;
|
|
1990
|
+
region: z.ZodString;
|
|
1991
|
+
runtime: z.ZodString;
|
|
1992
|
+
timeout: z.ZodNumber;
|
|
1993
|
+
status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
|
|
1994
|
+
requestedAt: z.ZodNumber;
|
|
1995
|
+
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
1996
|
+
requestedStopAt: z.ZodOptional<z.ZodNumber>;
|
|
1997
|
+
stoppedAt: z.ZodOptional<z.ZodNumber>;
|
|
1998
|
+
abortedAt: z.ZodOptional<z.ZodNumber>;
|
|
1999
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
2000
|
+
sourceSnapshotId: z.ZodOptional<z.ZodString>;
|
|
2001
|
+
snapshottedAt: z.ZodOptional<z.ZodNumber>;
|
|
2002
|
+
createdAt: z.ZodNumber;
|
|
2003
|
+
cwd: z.ZodString;
|
|
2004
|
+
updatedAt: z.ZodNumber;
|
|
2005
|
+
interactivePort: z.ZodOptional<z.ZodNumber>;
|
|
2006
|
+
networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
2007
|
+
mode: z.ZodLiteral<"allow-all">;
|
|
2008
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2009
|
+
mode: z.ZodLiteral<"allow-all">;
|
|
2010
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2011
|
+
mode: z.ZodLiteral<"allow-all">;
|
|
2012
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
2013
|
+
mode: z.ZodLiteral<"deny-all">;
|
|
2014
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2015
|
+
mode: z.ZodLiteral<"deny-all">;
|
|
2016
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2017
|
+
mode: z.ZodLiteral<"deny-all">;
|
|
2018
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
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
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2037
|
+
mode: z.ZodLiteral<"custom">;
|
|
2038
|
+
allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2039
|
+
allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2040
|
+
deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2041
|
+
injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2042
|
+
domain: z.ZodString;
|
|
2043
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2044
|
+
headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2045
|
+
}, "strip", z.ZodTypeAny, {
|
|
2046
|
+
domain: string;
|
|
2047
|
+
headers?: Record<string, string> | undefined;
|
|
2048
|
+
headerNames?: string[] | undefined;
|
|
2049
|
+
}, {
|
|
2050
|
+
domain: string;
|
|
2051
|
+
headers?: Record<string, string> | undefined;
|
|
2052
|
+
headerNames?: string[] | undefined;
|
|
2053
|
+
}>, "many">>;
|
|
2054
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2055
|
+
mode: z.ZodLiteral<"custom">;
|
|
2056
|
+
allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2057
|
+
allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2058
|
+
deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2059
|
+
injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2060
|
+
domain: z.ZodString;
|
|
2061
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2062
|
+
headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2063
|
+
}, "strip", z.ZodTypeAny, {
|
|
2064
|
+
domain: string;
|
|
2065
|
+
headers?: Record<string, string> | undefined;
|
|
2066
|
+
headerNames?: string[] | undefined;
|
|
2067
|
+
}, {
|
|
2068
|
+
domain: string;
|
|
2069
|
+
headers?: Record<string, string> | undefined;
|
|
2070
|
+
headerNames?: string[] | undefined;
|
|
2071
|
+
}>, "many">>;
|
|
2072
|
+
}, z.ZodTypeAny, "passthrough">>]>>;
|
|
2073
|
+
activeCpuDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
2074
|
+
networkTransfer: z.ZodOptional<z.ZodObject<{
|
|
2075
|
+
ingress: z.ZodNumber;
|
|
2076
|
+
egress: z.ZodNumber;
|
|
2077
|
+
}, "strip", z.ZodTypeAny, {
|
|
2078
|
+
ingress: number;
|
|
2079
|
+
egress: number;
|
|
2080
|
+
}, {
|
|
2081
|
+
ingress: number;
|
|
2082
|
+
egress: number;
|
|
2083
|
+
}>>;
|
|
2084
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2222
2085
|
id: z.ZodString;
|
|
2223
2086
|
memory: z.ZodNumber;
|
|
2224
2087
|
vcpus: z.ZodNumber;
|
|
@@ -2316,31 +2179,39 @@ export declare const CreateSnapshotResponse: z.ZodObject<{
|
|
|
2316
2179
|
ingress: number;
|
|
2317
2180
|
egress: number;
|
|
2318
2181
|
}>>;
|
|
2319
|
-
}, "
|
|
2320
|
-
id:
|
|
2321
|
-
memory:
|
|
2322
|
-
vcpus:
|
|
2323
|
-
region:
|
|
2324
|
-
runtime:
|
|
2325
|
-
timeout:
|
|
2326
|
-
status: "
|
|
2327
|
-
requestedAt:
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
interactivePort
|
|
2339
|
-
networkPolicy
|
|
2182
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2183
|
+
id: z.ZodString;
|
|
2184
|
+
memory: z.ZodNumber;
|
|
2185
|
+
vcpus: z.ZodNumber;
|
|
2186
|
+
region: z.ZodString;
|
|
2187
|
+
runtime: z.ZodString;
|
|
2188
|
+
timeout: z.ZodNumber;
|
|
2189
|
+
status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
|
|
2190
|
+
requestedAt: z.ZodNumber;
|
|
2191
|
+
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
2192
|
+
requestedStopAt: z.ZodOptional<z.ZodNumber>;
|
|
2193
|
+
stoppedAt: z.ZodOptional<z.ZodNumber>;
|
|
2194
|
+
abortedAt: z.ZodOptional<z.ZodNumber>;
|
|
2195
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
2196
|
+
sourceSnapshotId: z.ZodOptional<z.ZodString>;
|
|
2197
|
+
snapshottedAt: z.ZodOptional<z.ZodNumber>;
|
|
2198
|
+
createdAt: z.ZodNumber;
|
|
2199
|
+
cwd: z.ZodString;
|
|
2200
|
+
updatedAt: z.ZodNumber;
|
|
2201
|
+
interactivePort: z.ZodOptional<z.ZodNumber>;
|
|
2202
|
+
networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
2340
2203
|
mode: z.ZodLiteral<"allow-all">;
|
|
2341
|
-
}, z.ZodTypeAny,
|
|
2204
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2205
|
+
mode: z.ZodLiteral<"allow-all">;
|
|
2206
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2207
|
+
mode: z.ZodLiteral<"allow-all">;
|
|
2208
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
2342
2209
|
mode: z.ZodLiteral<"deny-all">;
|
|
2343
|
-
}, z.ZodTypeAny,
|
|
2210
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2211
|
+
mode: z.ZodLiteral<"deny-all">;
|
|
2212
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2213
|
+
mode: z.ZodLiteral<"deny-all">;
|
|
2214
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
2344
2215
|
mode: z.ZodLiteral<"custom">;
|
|
2345
2216
|
allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2346
2217
|
allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -2358,37 +2229,7 @@ export declare const CreateSnapshotResponse: z.ZodObject<{
|
|
|
2358
2229
|
headers?: Record<string, string> | undefined;
|
|
2359
2230
|
headerNames?: string[] | undefined;
|
|
2360
2231
|
}>, "many">>;
|
|
2361
|
-
}, z.ZodTypeAny,
|
|
2362
|
-
activeCpuDurationMs?: number | undefined;
|
|
2363
|
-
networkTransfer?: {
|
|
2364
|
-
ingress: number;
|
|
2365
|
-
egress: number;
|
|
2366
|
-
} | undefined;
|
|
2367
|
-
}, {
|
|
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<{
|
|
2232
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2392
2233
|
mode: z.ZodLiteral<"custom">;
|
|
2393
2234
|
allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2394
2235
|
allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -2406,15 +2247,39 @@ export declare const CreateSnapshotResponse: z.ZodObject<{
|
|
|
2406
2247
|
headers?: Record<string, string> | undefined;
|
|
2407
2248
|
headerNames?: string[] | undefined;
|
|
2408
2249
|
}>, "many">>;
|
|
2409
|
-
}, z.ZodTypeAny, "passthrough"
|
|
2410
|
-
|
|
2411
|
-
|
|
2250
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2251
|
+
mode: z.ZodLiteral<"custom">;
|
|
2252
|
+
allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2253
|
+
allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2254
|
+
deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2255
|
+
injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2256
|
+
domain: z.ZodString;
|
|
2257
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2258
|
+
headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2259
|
+
}, "strip", z.ZodTypeAny, {
|
|
2260
|
+
domain: string;
|
|
2261
|
+
headers?: Record<string, string> | undefined;
|
|
2262
|
+
headerNames?: string[] | undefined;
|
|
2263
|
+
}, {
|
|
2264
|
+
domain: string;
|
|
2265
|
+
headers?: Record<string, string> | undefined;
|
|
2266
|
+
headerNames?: string[] | undefined;
|
|
2267
|
+
}>, "many">>;
|
|
2268
|
+
}, z.ZodTypeAny, "passthrough">>]>>;
|
|
2269
|
+
activeCpuDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
2270
|
+
networkTransfer: z.ZodOptional<z.ZodObject<{
|
|
2271
|
+
ingress: z.ZodNumber;
|
|
2272
|
+
egress: z.ZodNumber;
|
|
2273
|
+
}, "strip", z.ZodTypeAny, {
|
|
2412
2274
|
ingress: number;
|
|
2413
2275
|
egress: number;
|
|
2414
|
-
}
|
|
2415
|
-
|
|
2276
|
+
}, {
|
|
2277
|
+
ingress: number;
|
|
2278
|
+
egress: number;
|
|
2279
|
+
}>>;
|
|
2280
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
2416
2281
|
}, "strip", z.ZodTypeAny, {
|
|
2417
|
-
|
|
2282
|
+
session: {
|
|
2418
2283
|
id: string;
|
|
2419
2284
|
memory: number;
|
|
2420
2285
|
vcpus: number;
|
|
@@ -2462,6 +2327,8 @@ export declare const CreateSnapshotResponse: z.ZodObject<{
|
|
|
2462
2327
|
ingress: number;
|
|
2463
2328
|
egress: number;
|
|
2464
2329
|
} | undefined;
|
|
2330
|
+
} & {
|
|
2331
|
+
[k: string]: unknown;
|
|
2465
2332
|
};
|
|
2466
2333
|
snapshot: {
|
|
2467
2334
|
id: string;
|
|
@@ -2469,12 +2336,12 @@ export declare const CreateSnapshotResponse: z.ZodObject<{
|
|
|
2469
2336
|
status: "failed" | "created" | "deleted";
|
|
2470
2337
|
createdAt: number;
|
|
2471
2338
|
updatedAt: number;
|
|
2472
|
-
|
|
2339
|
+
sourceSessionId: string;
|
|
2473
2340
|
sizeBytes: number;
|
|
2474
2341
|
expiresAt?: number | undefined;
|
|
2475
2342
|
};
|
|
2476
2343
|
}, {
|
|
2477
|
-
|
|
2344
|
+
session: {
|
|
2478
2345
|
id: string;
|
|
2479
2346
|
memory: number;
|
|
2480
2347
|
vcpus: number;
|
|
@@ -2522,6 +2389,8 @@ export declare const CreateSnapshotResponse: z.ZodObject<{
|
|
|
2522
2389
|
ingress: number;
|
|
2523
2390
|
egress: number;
|
|
2524
2391
|
} | undefined;
|
|
2392
|
+
} & {
|
|
2393
|
+
[k: string]: unknown;
|
|
2525
2394
|
};
|
|
2526
2395
|
snapshot: {
|
|
2527
2396
|
id: string;
|
|
@@ -2529,7 +2398,7 @@ export declare const CreateSnapshotResponse: z.ZodObject<{
|
|
|
2529
2398
|
status: "failed" | "created" | "deleted";
|
|
2530
2399
|
createdAt: number;
|
|
2531
2400
|
updatedAt: number;
|
|
2532
|
-
|
|
2401
|
+
sourceSessionId: string;
|
|
2533
2402
|
sizeBytes: number;
|
|
2534
2403
|
expiresAt?: number | undefined;
|
|
2535
2404
|
};
|
|
@@ -2537,7 +2406,7 @@ export declare const CreateSnapshotResponse: z.ZodObject<{
|
|
|
2537
2406
|
export declare const SnapshotResponse: z.ZodObject<{
|
|
2538
2407
|
snapshot: z.ZodObject<{
|
|
2539
2408
|
id: z.ZodString;
|
|
2540
|
-
|
|
2409
|
+
sourceSessionId: z.ZodString;
|
|
2541
2410
|
region: z.ZodString;
|
|
2542
2411
|
status: z.ZodEnum<["created", "deleted", "failed"]>;
|
|
2543
2412
|
sizeBytes: z.ZodNumber;
|
|
@@ -2550,7 +2419,7 @@ export declare const SnapshotResponse: z.ZodObject<{
|
|
|
2550
2419
|
status: "failed" | "created" | "deleted";
|
|
2551
2420
|
createdAt: number;
|
|
2552
2421
|
updatedAt: number;
|
|
2553
|
-
|
|
2422
|
+
sourceSessionId: string;
|
|
2554
2423
|
sizeBytes: number;
|
|
2555
2424
|
expiresAt?: number | undefined;
|
|
2556
2425
|
}, {
|
|
@@ -2559,7 +2428,7 @@ export declare const SnapshotResponse: z.ZodObject<{
|
|
|
2559
2428
|
status: "failed" | "created" | "deleted";
|
|
2560
2429
|
createdAt: number;
|
|
2561
2430
|
updatedAt: number;
|
|
2562
|
-
|
|
2431
|
+
sourceSessionId: string;
|
|
2563
2432
|
sizeBytes: number;
|
|
2564
2433
|
expiresAt?: number | undefined;
|
|
2565
2434
|
}>;
|
|
@@ -2570,7 +2439,7 @@ export declare const SnapshotResponse: z.ZodObject<{
|
|
|
2570
2439
|
status: "failed" | "created" | "deleted";
|
|
2571
2440
|
createdAt: number;
|
|
2572
2441
|
updatedAt: number;
|
|
2573
|
-
|
|
2442
|
+
sourceSessionId: string;
|
|
2574
2443
|
sizeBytes: number;
|
|
2575
2444
|
expiresAt?: number | undefined;
|
|
2576
2445
|
};
|
|
@@ -2581,19 +2450,19 @@ export declare const SnapshotResponse: z.ZodObject<{
|
|
|
2581
2450
|
status: "failed" | "created" | "deleted";
|
|
2582
2451
|
createdAt: number;
|
|
2583
2452
|
updatedAt: number;
|
|
2584
|
-
|
|
2453
|
+
sourceSessionId: string;
|
|
2585
2454
|
sizeBytes: number;
|
|
2586
2455
|
expiresAt?: number | undefined;
|
|
2587
2456
|
};
|
|
2588
2457
|
}>;
|
|
2589
|
-
export declare const
|
|
2458
|
+
export declare const Sandbox: z.ZodObject<{
|
|
2590
2459
|
name: z.ZodString;
|
|
2591
|
-
|
|
2592
|
-
region: z.ZodString
|
|
2593
|
-
vcpus: z.ZodNumber
|
|
2594
|
-
memory: z.ZodNumber
|
|
2595
|
-
runtime: z.ZodString
|
|
2596
|
-
timeout: z.ZodNumber
|
|
2460
|
+
persistent: z.ZodBoolean;
|
|
2461
|
+
region: z.ZodOptional<z.ZodString>;
|
|
2462
|
+
vcpus: z.ZodOptional<z.ZodNumber>;
|
|
2463
|
+
memory: z.ZodOptional<z.ZodNumber>;
|
|
2464
|
+
runtime: z.ZodOptional<z.ZodString>;
|
|
2465
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
2597
2466
|
networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
2598
2467
|
mode: z.ZodLiteral<"allow-all">;
|
|
2599
2468
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -2667,21 +2536,26 @@ export declare const NamedSandbox: z.ZodObject<{
|
|
|
2667
2536
|
totalDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
2668
2537
|
createdAt: z.ZodNumber;
|
|
2669
2538
|
updatedAt: z.ZodNumber;
|
|
2670
|
-
|
|
2539
|
+
currentSessionId: z.ZodString;
|
|
2671
2540
|
currentSnapshotId: z.ZodOptional<z.ZodString>;
|
|
2672
2541
|
status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
|
|
2542
|
+
statusUpdatedAt: z.ZodOptional<z.ZodNumber>;
|
|
2543
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
2544
|
+
tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2545
|
+
snapshotExpiration: z.ZodOptional<z.ZodNumber>;
|
|
2673
2546
|
}, "strip", z.ZodTypeAny, {
|
|
2674
|
-
memory: number;
|
|
2675
|
-
vcpus: number;
|
|
2676
|
-
region: string;
|
|
2677
|
-
runtime: string;
|
|
2678
|
-
timeout: number;
|
|
2679
2547
|
status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
|
|
2680
2548
|
createdAt: number;
|
|
2681
2549
|
updatedAt: number;
|
|
2682
2550
|
name: string;
|
|
2683
|
-
|
|
2684
|
-
|
|
2551
|
+
persistent: boolean;
|
|
2552
|
+
currentSessionId: string;
|
|
2553
|
+
memory?: number | undefined;
|
|
2554
|
+
vcpus?: number | undefined;
|
|
2555
|
+
region?: string | undefined;
|
|
2556
|
+
runtime?: string | undefined;
|
|
2557
|
+
timeout?: number | undefined;
|
|
2558
|
+
cwd?: string | undefined;
|
|
2685
2559
|
networkPolicy?: z.objectOutputType<{
|
|
2686
2560
|
mode: z.ZodLiteral<"allow-all">;
|
|
2687
2561
|
}, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
|
|
@@ -2710,18 +2584,22 @@ export declare const NamedSandbox: z.ZodObject<{
|
|
|
2710
2584
|
totalActiveCpuDurationMs?: number | undefined;
|
|
2711
2585
|
totalDurationMs?: number | undefined;
|
|
2712
2586
|
currentSnapshotId?: string | undefined;
|
|
2587
|
+
statusUpdatedAt?: number | undefined;
|
|
2588
|
+
tags?: Record<string, string> | undefined;
|
|
2589
|
+
snapshotExpiration?: number | undefined;
|
|
2713
2590
|
}, {
|
|
2714
|
-
memory: number;
|
|
2715
|
-
vcpus: number;
|
|
2716
|
-
region: string;
|
|
2717
|
-
runtime: string;
|
|
2718
|
-
timeout: number;
|
|
2719
2591
|
status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
|
|
2720
2592
|
createdAt: number;
|
|
2721
2593
|
updatedAt: number;
|
|
2722
2594
|
name: string;
|
|
2723
|
-
|
|
2724
|
-
|
|
2595
|
+
persistent: boolean;
|
|
2596
|
+
currentSessionId: string;
|
|
2597
|
+
memory?: number | undefined;
|
|
2598
|
+
vcpus?: number | undefined;
|
|
2599
|
+
region?: string | undefined;
|
|
2600
|
+
runtime?: string | undefined;
|
|
2601
|
+
timeout?: number | undefined;
|
|
2602
|
+
cwd?: string | undefined;
|
|
2725
2603
|
networkPolicy?: z.objectInputType<{
|
|
2726
2604
|
mode: z.ZodLiteral<"allow-all">;
|
|
2727
2605
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
@@ -2750,17 +2628,20 @@ export declare const NamedSandbox: z.ZodObject<{
|
|
|
2750
2628
|
totalActiveCpuDurationMs?: number | undefined;
|
|
2751
2629
|
totalDurationMs?: number | undefined;
|
|
2752
2630
|
currentSnapshotId?: string | undefined;
|
|
2631
|
+
statusUpdatedAt?: number | undefined;
|
|
2632
|
+
tags?: Record<string, string> | undefined;
|
|
2633
|
+
snapshotExpiration?: number | undefined;
|
|
2753
2634
|
}>;
|
|
2754
|
-
export type
|
|
2755
|
-
export declare const
|
|
2756
|
-
|
|
2635
|
+
export type SandboxMetaData = z.infer<typeof Sandbox>;
|
|
2636
|
+
export declare const SandboxAndSessionResponse: z.ZodObject<{
|
|
2637
|
+
sandbox: z.ZodObject<{
|
|
2757
2638
|
name: z.ZodString;
|
|
2758
|
-
|
|
2759
|
-
region: z.ZodString
|
|
2760
|
-
vcpus: z.ZodNumber
|
|
2761
|
-
memory: z.ZodNumber
|
|
2762
|
-
runtime: z.ZodString
|
|
2763
|
-
timeout: z.ZodNumber
|
|
2639
|
+
persistent: z.ZodBoolean;
|
|
2640
|
+
region: z.ZodOptional<z.ZodString>;
|
|
2641
|
+
vcpus: z.ZodOptional<z.ZodNumber>;
|
|
2642
|
+
memory: z.ZodOptional<z.ZodNumber>;
|
|
2643
|
+
runtime: z.ZodOptional<z.ZodString>;
|
|
2644
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
2764
2645
|
networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
2765
2646
|
mode: z.ZodLiteral<"allow-all">;
|
|
2766
2647
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -2834,21 +2715,26 @@ export declare const NamedSandboxAndSessionResponse: z.ZodObject<{
|
|
|
2834
2715
|
totalDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
2835
2716
|
createdAt: z.ZodNumber;
|
|
2836
2717
|
updatedAt: z.ZodNumber;
|
|
2837
|
-
|
|
2718
|
+
currentSessionId: z.ZodString;
|
|
2838
2719
|
currentSnapshotId: z.ZodOptional<z.ZodString>;
|
|
2839
2720
|
status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
|
|
2721
|
+
statusUpdatedAt: z.ZodOptional<z.ZodNumber>;
|
|
2722
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
2723
|
+
tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2724
|
+
snapshotExpiration: z.ZodOptional<z.ZodNumber>;
|
|
2840
2725
|
}, "strip", z.ZodTypeAny, {
|
|
2841
|
-
memory: number;
|
|
2842
|
-
vcpus: number;
|
|
2843
|
-
region: string;
|
|
2844
|
-
runtime: string;
|
|
2845
|
-
timeout: number;
|
|
2846
2726
|
status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
|
|
2847
2727
|
createdAt: number;
|
|
2848
2728
|
updatedAt: number;
|
|
2849
2729
|
name: string;
|
|
2850
|
-
|
|
2851
|
-
|
|
2730
|
+
persistent: boolean;
|
|
2731
|
+
currentSessionId: string;
|
|
2732
|
+
memory?: number | undefined;
|
|
2733
|
+
vcpus?: number | undefined;
|
|
2734
|
+
region?: string | undefined;
|
|
2735
|
+
runtime?: string | undefined;
|
|
2736
|
+
timeout?: number | undefined;
|
|
2737
|
+
cwd?: string | undefined;
|
|
2852
2738
|
networkPolicy?: z.objectOutputType<{
|
|
2853
2739
|
mode: z.ZodLiteral<"allow-all">;
|
|
2854
2740
|
}, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
|
|
@@ -2871,29 +2757,129 @@ export declare const NamedSandboxAndSessionResponse: z.ZodObject<{
|
|
|
2871
2757
|
headers?: Record<string, string> | undefined;
|
|
2872
2758
|
headerNames?: string[] | undefined;
|
|
2873
2759
|
}>, "many">>;
|
|
2874
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2875
|
-
totalEgressBytes?: number | undefined;
|
|
2876
|
-
totalIngressBytes?: number | undefined;
|
|
2877
|
-
totalActiveCpuDurationMs?: number | undefined;
|
|
2878
|
-
totalDurationMs?: number | undefined;
|
|
2879
|
-
currentSnapshotId?: string | undefined;
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2760
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2761
|
+
totalEgressBytes?: number | undefined;
|
|
2762
|
+
totalIngressBytes?: number | undefined;
|
|
2763
|
+
totalActiveCpuDurationMs?: number | undefined;
|
|
2764
|
+
totalDurationMs?: number | undefined;
|
|
2765
|
+
currentSnapshotId?: string | undefined;
|
|
2766
|
+
statusUpdatedAt?: number | undefined;
|
|
2767
|
+
tags?: Record<string, string> | undefined;
|
|
2768
|
+
snapshotExpiration?: number | undefined;
|
|
2769
|
+
}, {
|
|
2770
|
+
status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
|
|
2771
|
+
createdAt: number;
|
|
2772
|
+
updatedAt: number;
|
|
2773
|
+
name: string;
|
|
2774
|
+
persistent: boolean;
|
|
2775
|
+
currentSessionId: string;
|
|
2776
|
+
memory?: number | undefined;
|
|
2777
|
+
vcpus?: number | undefined;
|
|
2778
|
+
region?: string | undefined;
|
|
2779
|
+
runtime?: string | undefined;
|
|
2780
|
+
timeout?: number | undefined;
|
|
2781
|
+
cwd?: string | undefined;
|
|
2782
|
+
networkPolicy?: z.objectInputType<{
|
|
2783
|
+
mode: z.ZodLiteral<"allow-all">;
|
|
2784
|
+
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2785
|
+
mode: z.ZodLiteral<"deny-all">;
|
|
2786
|
+
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2787
|
+
mode: z.ZodLiteral<"custom">;
|
|
2788
|
+
allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2789
|
+
allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2790
|
+
deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2791
|
+
injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2792
|
+
domain: z.ZodString;
|
|
2793
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2794
|
+
headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2795
|
+
}, "strip", z.ZodTypeAny, {
|
|
2796
|
+
domain: string;
|
|
2797
|
+
headers?: Record<string, string> | undefined;
|
|
2798
|
+
headerNames?: string[] | undefined;
|
|
2799
|
+
}, {
|
|
2800
|
+
domain: string;
|
|
2801
|
+
headers?: Record<string, string> | undefined;
|
|
2802
|
+
headerNames?: string[] | undefined;
|
|
2803
|
+
}>, "many">>;
|
|
2804
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2805
|
+
totalEgressBytes?: number | undefined;
|
|
2806
|
+
totalIngressBytes?: number | undefined;
|
|
2807
|
+
totalActiveCpuDurationMs?: number | undefined;
|
|
2808
|
+
totalDurationMs?: number | undefined;
|
|
2809
|
+
currentSnapshotId?: string | undefined;
|
|
2810
|
+
statusUpdatedAt?: number | undefined;
|
|
2811
|
+
tags?: Record<string, string> | undefined;
|
|
2812
|
+
snapshotExpiration?: number | undefined;
|
|
2813
|
+
}>;
|
|
2814
|
+
session: z.ZodObject<{
|
|
2815
|
+
id: z.ZodString;
|
|
2816
|
+
memory: z.ZodNumber;
|
|
2817
|
+
vcpus: z.ZodNumber;
|
|
2818
|
+
region: z.ZodString;
|
|
2819
|
+
runtime: z.ZodString;
|
|
2820
|
+
timeout: z.ZodNumber;
|
|
2821
|
+
status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
|
|
2822
|
+
requestedAt: z.ZodNumber;
|
|
2823
|
+
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
2824
|
+
requestedStopAt: z.ZodOptional<z.ZodNumber>;
|
|
2825
|
+
stoppedAt: z.ZodOptional<z.ZodNumber>;
|
|
2826
|
+
abortedAt: z.ZodOptional<z.ZodNumber>;
|
|
2827
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
2828
|
+
sourceSnapshotId: z.ZodOptional<z.ZodString>;
|
|
2829
|
+
snapshottedAt: z.ZodOptional<z.ZodNumber>;
|
|
2830
|
+
createdAt: z.ZodNumber;
|
|
2831
|
+
cwd: z.ZodString;
|
|
2832
|
+
updatedAt: z.ZodNumber;
|
|
2833
|
+
interactivePort: z.ZodOptional<z.ZodNumber>;
|
|
2834
|
+
networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
2835
|
+
mode: z.ZodLiteral<"allow-all">;
|
|
2836
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2837
|
+
mode: z.ZodLiteral<"allow-all">;
|
|
2838
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2839
|
+
mode: z.ZodLiteral<"allow-all">;
|
|
2840
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
2841
|
+
mode: z.ZodLiteral<"deny-all">;
|
|
2842
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2843
|
+
mode: z.ZodLiteral<"deny-all">;
|
|
2844
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2845
|
+
mode: z.ZodLiteral<"deny-all">;
|
|
2846
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
2847
|
+
mode: z.ZodLiteral<"custom">;
|
|
2848
|
+
allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2849
|
+
allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2850
|
+
deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2851
|
+
injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2852
|
+
domain: z.ZodString;
|
|
2853
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2854
|
+
headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2855
|
+
}, "strip", z.ZodTypeAny, {
|
|
2856
|
+
domain: string;
|
|
2857
|
+
headers?: Record<string, string> | undefined;
|
|
2858
|
+
headerNames?: string[] | undefined;
|
|
2859
|
+
}, {
|
|
2860
|
+
domain: string;
|
|
2861
|
+
headers?: Record<string, string> | undefined;
|
|
2862
|
+
headerNames?: string[] | undefined;
|
|
2863
|
+
}>, "many">>;
|
|
2864
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2865
|
+
mode: z.ZodLiteral<"custom">;
|
|
2866
|
+
allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2867
|
+
allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2868
|
+
deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2869
|
+
injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2870
|
+
domain: z.ZodString;
|
|
2871
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2872
|
+
headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2873
|
+
}, "strip", z.ZodTypeAny, {
|
|
2874
|
+
domain: string;
|
|
2875
|
+
headers?: Record<string, string> | undefined;
|
|
2876
|
+
headerNames?: string[] | undefined;
|
|
2877
|
+
}, {
|
|
2878
|
+
domain: string;
|
|
2879
|
+
headers?: Record<string, string> | undefined;
|
|
2880
|
+
headerNames?: string[] | undefined;
|
|
2881
|
+
}>, "many">>;
|
|
2882
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2897
2883
|
mode: z.ZodLiteral<"custom">;
|
|
2898
2884
|
allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2899
2885
|
allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -2911,14 +2897,19 @@ export declare const NamedSandboxAndSessionResponse: z.ZodObject<{
|
|
|
2911
2897
|
headers?: Record<string, string> | undefined;
|
|
2912
2898
|
headerNames?: string[] | undefined;
|
|
2913
2899
|
}>, "many">>;
|
|
2914
|
-
}, z.ZodTypeAny, "passthrough"
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2900
|
+
}, z.ZodTypeAny, "passthrough">>]>>;
|
|
2901
|
+
activeCpuDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
2902
|
+
networkTransfer: z.ZodOptional<z.ZodObject<{
|
|
2903
|
+
ingress: z.ZodNumber;
|
|
2904
|
+
egress: z.ZodNumber;
|
|
2905
|
+
}, "strip", z.ZodTypeAny, {
|
|
2906
|
+
ingress: number;
|
|
2907
|
+
egress: number;
|
|
2908
|
+
}, {
|
|
2909
|
+
ingress: number;
|
|
2910
|
+
egress: number;
|
|
2911
|
+
}>>;
|
|
2912
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2922
2913
|
id: z.ZodString;
|
|
2923
2914
|
memory: z.ZodNumber;
|
|
2924
2915
|
vcpus: z.ZodNumber;
|
|
@@ -3016,31 +3007,39 @@ export declare const NamedSandboxAndSessionResponse: z.ZodObject<{
|
|
|
3016
3007
|
ingress: number;
|
|
3017
3008
|
egress: number;
|
|
3018
3009
|
}>>;
|
|
3019
|
-
}, "
|
|
3020
|
-
id:
|
|
3021
|
-
memory:
|
|
3022
|
-
vcpus:
|
|
3023
|
-
region:
|
|
3024
|
-
runtime:
|
|
3025
|
-
timeout:
|
|
3026
|
-
status: "
|
|
3027
|
-
requestedAt:
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
interactivePort
|
|
3039
|
-
networkPolicy
|
|
3010
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3011
|
+
id: z.ZodString;
|
|
3012
|
+
memory: z.ZodNumber;
|
|
3013
|
+
vcpus: z.ZodNumber;
|
|
3014
|
+
region: z.ZodString;
|
|
3015
|
+
runtime: z.ZodString;
|
|
3016
|
+
timeout: z.ZodNumber;
|
|
3017
|
+
status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
|
|
3018
|
+
requestedAt: z.ZodNumber;
|
|
3019
|
+
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
3020
|
+
requestedStopAt: z.ZodOptional<z.ZodNumber>;
|
|
3021
|
+
stoppedAt: z.ZodOptional<z.ZodNumber>;
|
|
3022
|
+
abortedAt: z.ZodOptional<z.ZodNumber>;
|
|
3023
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
3024
|
+
sourceSnapshotId: z.ZodOptional<z.ZodString>;
|
|
3025
|
+
snapshottedAt: z.ZodOptional<z.ZodNumber>;
|
|
3026
|
+
createdAt: z.ZodNumber;
|
|
3027
|
+
cwd: z.ZodString;
|
|
3028
|
+
updatedAt: z.ZodNumber;
|
|
3029
|
+
interactivePort: z.ZodOptional<z.ZodNumber>;
|
|
3030
|
+
networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
3040
3031
|
mode: z.ZodLiteral<"allow-all">;
|
|
3041
|
-
}, z.ZodTypeAny,
|
|
3032
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3033
|
+
mode: z.ZodLiteral<"allow-all">;
|
|
3034
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3035
|
+
mode: z.ZodLiteral<"allow-all">;
|
|
3036
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
3042
3037
|
mode: z.ZodLiteral<"deny-all">;
|
|
3043
|
-
}, z.ZodTypeAny,
|
|
3038
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3039
|
+
mode: z.ZodLiteral<"deny-all">;
|
|
3040
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3041
|
+
mode: z.ZodLiteral<"deny-all">;
|
|
3042
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
3044
3043
|
mode: z.ZodLiteral<"custom">;
|
|
3045
3044
|
allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3046
3045
|
allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -3058,37 +3057,7 @@ export declare const NamedSandboxAndSessionResponse: z.ZodObject<{
|
|
|
3058
3057
|
headers?: Record<string, string> | undefined;
|
|
3059
3058
|
headerNames?: string[] | undefined;
|
|
3060
3059
|
}>, "many">>;
|
|
3061
|
-
}, z.ZodTypeAny,
|
|
3062
|
-
activeCpuDurationMs?: number | undefined;
|
|
3063
|
-
networkTransfer?: {
|
|
3064
|
-
ingress: number;
|
|
3065
|
-
egress: number;
|
|
3066
|
-
} | undefined;
|
|
3067
|
-
}, {
|
|
3068
|
-
id: string;
|
|
3069
|
-
memory: number;
|
|
3070
|
-
vcpus: number;
|
|
3071
|
-
region: string;
|
|
3072
|
-
runtime: string;
|
|
3073
|
-
timeout: number;
|
|
3074
|
-
status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
|
|
3075
|
-
requestedAt: number;
|
|
3076
|
-
createdAt: number;
|
|
3077
|
-
cwd: string;
|
|
3078
|
-
updatedAt: number;
|
|
3079
|
-
startedAt?: number | undefined;
|
|
3080
|
-
requestedStopAt?: number | undefined;
|
|
3081
|
-
stoppedAt?: number | undefined;
|
|
3082
|
-
abortedAt?: number | undefined;
|
|
3083
|
-
duration?: number | undefined;
|
|
3084
|
-
sourceSnapshotId?: string | undefined;
|
|
3085
|
-
snapshottedAt?: number | undefined;
|
|
3086
|
-
interactivePort?: number | undefined;
|
|
3087
|
-
networkPolicy?: z.objectInputType<{
|
|
3088
|
-
mode: z.ZodLiteral<"allow-all">;
|
|
3089
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3090
|
-
mode: z.ZodLiteral<"deny-all">;
|
|
3091
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3060
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
3092
3061
|
mode: z.ZodLiteral<"custom">;
|
|
3093
3062
|
allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3094
3063
|
allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -3106,13 +3075,37 @@ export declare const NamedSandboxAndSessionResponse: z.ZodObject<{
|
|
|
3106
3075
|
headers?: Record<string, string> | undefined;
|
|
3107
3076
|
headerNames?: string[] | undefined;
|
|
3108
3077
|
}>, "many">>;
|
|
3109
|
-
}, z.ZodTypeAny, "passthrough"
|
|
3110
|
-
|
|
3111
|
-
|
|
3078
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3079
|
+
mode: z.ZodLiteral<"custom">;
|
|
3080
|
+
allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3081
|
+
allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3082
|
+
deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3083
|
+
injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3084
|
+
domain: z.ZodString;
|
|
3085
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3086
|
+
headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3087
|
+
}, "strip", z.ZodTypeAny, {
|
|
3088
|
+
domain: string;
|
|
3089
|
+
headers?: Record<string, string> | undefined;
|
|
3090
|
+
headerNames?: string[] | undefined;
|
|
3091
|
+
}, {
|
|
3092
|
+
domain: string;
|
|
3093
|
+
headers?: Record<string, string> | undefined;
|
|
3094
|
+
headerNames?: string[] | undefined;
|
|
3095
|
+
}>, "many">>;
|
|
3096
|
+
}, z.ZodTypeAny, "passthrough">>]>>;
|
|
3097
|
+
activeCpuDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
3098
|
+
networkTransfer: z.ZodOptional<z.ZodObject<{
|
|
3099
|
+
ingress: z.ZodNumber;
|
|
3100
|
+
egress: z.ZodNumber;
|
|
3101
|
+
}, "strip", z.ZodTypeAny, {
|
|
3112
3102
|
ingress: number;
|
|
3113
3103
|
egress: number;
|
|
3114
|
-
}
|
|
3115
|
-
|
|
3104
|
+
}, {
|
|
3105
|
+
ingress: number;
|
|
3106
|
+
egress: number;
|
|
3107
|
+
}>>;
|
|
3108
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
3116
3109
|
routes: z.ZodArray<z.ZodObject<{
|
|
3117
3110
|
url: z.ZodString;
|
|
3118
3111
|
subdomain: z.ZodString;
|
|
@@ -3127,7 +3120,7 @@ export declare const NamedSandboxAndSessionResponse: z.ZodObject<{
|
|
|
3127
3120
|
port: number;
|
|
3128
3121
|
}>, "many">;
|
|
3129
3122
|
}, "strip", z.ZodTypeAny, {
|
|
3130
|
-
|
|
3123
|
+
session: {
|
|
3131
3124
|
id: string;
|
|
3132
3125
|
memory: number;
|
|
3133
3126
|
vcpus: number;
|
|
@@ -3175,24 +3168,27 @@ export declare const NamedSandboxAndSessionResponse: z.ZodObject<{
|
|
|
3175
3168
|
ingress: number;
|
|
3176
3169
|
egress: number;
|
|
3177
3170
|
} | undefined;
|
|
3171
|
+
} & {
|
|
3172
|
+
[k: string]: unknown;
|
|
3178
3173
|
};
|
|
3179
3174
|
routes: {
|
|
3180
3175
|
url: string;
|
|
3181
3176
|
subdomain: string;
|
|
3182
3177
|
port: number;
|
|
3183
3178
|
}[];
|
|
3184
|
-
|
|
3185
|
-
memory: number;
|
|
3186
|
-
vcpus: number;
|
|
3187
|
-
region: string;
|
|
3188
|
-
runtime: string;
|
|
3189
|
-
timeout: number;
|
|
3179
|
+
sandbox: {
|
|
3190
3180
|
status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
|
|
3191
3181
|
createdAt: number;
|
|
3192
3182
|
updatedAt: number;
|
|
3193
3183
|
name: string;
|
|
3194
|
-
|
|
3195
|
-
|
|
3184
|
+
persistent: boolean;
|
|
3185
|
+
currentSessionId: string;
|
|
3186
|
+
memory?: number | undefined;
|
|
3187
|
+
vcpus?: number | undefined;
|
|
3188
|
+
region?: string | undefined;
|
|
3189
|
+
runtime?: string | undefined;
|
|
3190
|
+
timeout?: number | undefined;
|
|
3191
|
+
cwd?: string | undefined;
|
|
3196
3192
|
networkPolicy?: z.objectOutputType<{
|
|
3197
3193
|
mode: z.ZodLiteral<"allow-all">;
|
|
3198
3194
|
}, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
|
|
@@ -3221,9 +3217,12 @@ export declare const NamedSandboxAndSessionResponse: z.ZodObject<{
|
|
|
3221
3217
|
totalActiveCpuDurationMs?: number | undefined;
|
|
3222
3218
|
totalDurationMs?: number | undefined;
|
|
3223
3219
|
currentSnapshotId?: string | undefined;
|
|
3220
|
+
statusUpdatedAt?: number | undefined;
|
|
3221
|
+
tags?: Record<string, string> | undefined;
|
|
3222
|
+
snapshotExpiration?: number | undefined;
|
|
3224
3223
|
};
|
|
3225
3224
|
}, {
|
|
3226
|
-
|
|
3225
|
+
session: {
|
|
3227
3226
|
id: string;
|
|
3228
3227
|
memory: number;
|
|
3229
3228
|
vcpus: number;
|
|
@@ -3271,24 +3270,27 @@ export declare const NamedSandboxAndSessionResponse: z.ZodObject<{
|
|
|
3271
3270
|
ingress: number;
|
|
3272
3271
|
egress: number;
|
|
3273
3272
|
} | undefined;
|
|
3273
|
+
} & {
|
|
3274
|
+
[k: string]: unknown;
|
|
3274
3275
|
};
|
|
3275
3276
|
routes: {
|
|
3276
3277
|
url: string;
|
|
3277
3278
|
subdomain: string;
|
|
3278
3279
|
port: number;
|
|
3279
3280
|
}[];
|
|
3280
|
-
|
|
3281
|
-
memory: number;
|
|
3282
|
-
vcpus: number;
|
|
3283
|
-
region: string;
|
|
3284
|
-
runtime: string;
|
|
3285
|
-
timeout: number;
|
|
3281
|
+
sandbox: {
|
|
3286
3282
|
status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
|
|
3287
3283
|
createdAt: number;
|
|
3288
3284
|
updatedAt: number;
|
|
3289
3285
|
name: string;
|
|
3290
|
-
|
|
3291
|
-
|
|
3286
|
+
persistent: boolean;
|
|
3287
|
+
currentSessionId: string;
|
|
3288
|
+
memory?: number | undefined;
|
|
3289
|
+
vcpus?: number | undefined;
|
|
3290
|
+
region?: string | undefined;
|
|
3291
|
+
runtime?: string | undefined;
|
|
3292
|
+
timeout?: number | undefined;
|
|
3293
|
+
cwd?: string | undefined;
|
|
3292
3294
|
networkPolicy?: z.objectInputType<{
|
|
3293
3295
|
mode: z.ZodLiteral<"allow-all">;
|
|
3294
3296
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
@@ -3317,30 +3319,20 @@ export declare const NamedSandboxAndSessionResponse: z.ZodObject<{
|
|
|
3317
3319
|
totalActiveCpuDurationMs?: number | undefined;
|
|
3318
3320
|
totalDurationMs?: number | undefined;
|
|
3319
3321
|
currentSnapshotId?: string | undefined;
|
|
3322
|
+
statusUpdatedAt?: number | undefined;
|
|
3323
|
+
tags?: Record<string, string> | undefined;
|
|
3324
|
+
snapshotExpiration?: number | undefined;
|
|
3320
3325
|
};
|
|
3321
3326
|
}>;
|
|
3322
|
-
export declare const
|
|
3323
|
-
|
|
3324
|
-
next: z.ZodNullable<z.ZodString>;
|
|
3325
|
-
total: z.ZodNumber;
|
|
3326
|
-
}, "strip", z.ZodTypeAny, {
|
|
3327
|
-
count: number;
|
|
3328
|
-
next: string | null;
|
|
3329
|
-
total: number;
|
|
3330
|
-
}, {
|
|
3331
|
-
count: number;
|
|
3332
|
-
next: string | null;
|
|
3333
|
-
total: number;
|
|
3334
|
-
}>;
|
|
3335
|
-
export declare const NamedSandboxesPaginationResponse: z.ZodObject<{
|
|
3336
|
-
namedSandboxes: z.ZodArray<z.ZodObject<{
|
|
3327
|
+
export declare const SandboxesPaginationResponse: z.ZodObject<{
|
|
3328
|
+
sandboxes: z.ZodArray<z.ZodObject<{
|
|
3337
3329
|
name: z.ZodString;
|
|
3338
|
-
|
|
3339
|
-
region: z.ZodString
|
|
3340
|
-
vcpus: z.ZodNumber
|
|
3341
|
-
memory: z.ZodNumber
|
|
3342
|
-
runtime: z.ZodString
|
|
3343
|
-
timeout: z.ZodNumber
|
|
3330
|
+
persistent: z.ZodBoolean;
|
|
3331
|
+
region: z.ZodOptional<z.ZodString>;
|
|
3332
|
+
vcpus: z.ZodOptional<z.ZodNumber>;
|
|
3333
|
+
memory: z.ZodOptional<z.ZodNumber>;
|
|
3334
|
+
runtime: z.ZodOptional<z.ZodString>;
|
|
3335
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
3344
3336
|
networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
3345
3337
|
mode: z.ZodLiteral<"allow-all">;
|
|
3346
3338
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -3414,21 +3406,26 @@ export declare const NamedSandboxesPaginationResponse: z.ZodObject<{
|
|
|
3414
3406
|
totalDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
3415
3407
|
createdAt: z.ZodNumber;
|
|
3416
3408
|
updatedAt: z.ZodNumber;
|
|
3417
|
-
|
|
3409
|
+
currentSessionId: z.ZodString;
|
|
3418
3410
|
currentSnapshotId: z.ZodOptional<z.ZodString>;
|
|
3419
3411
|
status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
|
|
3412
|
+
statusUpdatedAt: z.ZodOptional<z.ZodNumber>;
|
|
3413
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
3414
|
+
tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3415
|
+
snapshotExpiration: z.ZodOptional<z.ZodNumber>;
|
|
3420
3416
|
}, "strip", z.ZodTypeAny, {
|
|
3421
|
-
memory: number;
|
|
3422
|
-
vcpus: number;
|
|
3423
|
-
region: string;
|
|
3424
|
-
runtime: string;
|
|
3425
|
-
timeout: number;
|
|
3426
3417
|
status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
|
|
3427
3418
|
createdAt: number;
|
|
3428
3419
|
updatedAt: number;
|
|
3429
3420
|
name: string;
|
|
3430
|
-
|
|
3431
|
-
|
|
3421
|
+
persistent: boolean;
|
|
3422
|
+
currentSessionId: string;
|
|
3423
|
+
memory?: number | undefined;
|
|
3424
|
+
vcpus?: number | undefined;
|
|
3425
|
+
region?: string | undefined;
|
|
3426
|
+
runtime?: string | undefined;
|
|
3427
|
+
timeout?: number | undefined;
|
|
3428
|
+
cwd?: string | undefined;
|
|
3432
3429
|
networkPolicy?: z.objectOutputType<{
|
|
3433
3430
|
mode: z.ZodLiteral<"allow-all">;
|
|
3434
3431
|
}, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
|
|
@@ -3457,18 +3454,22 @@ export declare const NamedSandboxesPaginationResponse: z.ZodObject<{
|
|
|
3457
3454
|
totalActiveCpuDurationMs?: number | undefined;
|
|
3458
3455
|
totalDurationMs?: number | undefined;
|
|
3459
3456
|
currentSnapshotId?: string | undefined;
|
|
3457
|
+
statusUpdatedAt?: number | undefined;
|
|
3458
|
+
tags?: Record<string, string> | undefined;
|
|
3459
|
+
snapshotExpiration?: number | undefined;
|
|
3460
3460
|
}, {
|
|
3461
|
-
memory: number;
|
|
3462
|
-
vcpus: number;
|
|
3463
|
-
region: string;
|
|
3464
|
-
runtime: string;
|
|
3465
|
-
timeout: number;
|
|
3466
3461
|
status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
|
|
3467
3462
|
createdAt: number;
|
|
3468
3463
|
updatedAt: number;
|
|
3469
3464
|
name: string;
|
|
3470
|
-
|
|
3471
|
-
|
|
3465
|
+
persistent: boolean;
|
|
3466
|
+
currentSessionId: string;
|
|
3467
|
+
memory?: number | undefined;
|
|
3468
|
+
vcpus?: number | undefined;
|
|
3469
|
+
region?: string | undefined;
|
|
3470
|
+
runtime?: string | undefined;
|
|
3471
|
+
timeout?: number | undefined;
|
|
3472
|
+
cwd?: string | undefined;
|
|
3472
3473
|
networkPolicy?: z.objectInputType<{
|
|
3473
3474
|
mode: z.ZodLiteral<"allow-all">;
|
|
3474
3475
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
@@ -3497,38 +3498,38 @@ export declare const NamedSandboxesPaginationResponse: z.ZodObject<{
|
|
|
3497
3498
|
totalActiveCpuDurationMs?: number | undefined;
|
|
3498
3499
|
totalDurationMs?: number | undefined;
|
|
3499
3500
|
currentSnapshotId?: string | undefined;
|
|
3501
|
+
statusUpdatedAt?: number | undefined;
|
|
3502
|
+
tags?: Record<string, string> | undefined;
|
|
3503
|
+
snapshotExpiration?: number | undefined;
|
|
3500
3504
|
}>, "many">;
|
|
3501
3505
|
pagination: z.ZodObject<{
|
|
3502
3506
|
count: z.ZodNumber;
|
|
3503
3507
|
next: z.ZodNullable<z.ZodString>;
|
|
3504
|
-
total: z.ZodNumber;
|
|
3505
3508
|
}, "strip", z.ZodTypeAny, {
|
|
3506
3509
|
count: number;
|
|
3507
3510
|
next: string | null;
|
|
3508
|
-
total: number;
|
|
3509
3511
|
}, {
|
|
3510
3512
|
count: number;
|
|
3511
3513
|
next: string | null;
|
|
3512
|
-
total: number;
|
|
3513
3514
|
}>;
|
|
3514
3515
|
}, "strip", z.ZodTypeAny, {
|
|
3515
3516
|
pagination: {
|
|
3516
3517
|
count: number;
|
|
3517
3518
|
next: string | null;
|
|
3518
|
-
total: number;
|
|
3519
3519
|
};
|
|
3520
|
-
|
|
3521
|
-
memory: number;
|
|
3522
|
-
vcpus: number;
|
|
3523
|
-
region: string;
|
|
3524
|
-
runtime: string;
|
|
3525
|
-
timeout: number;
|
|
3520
|
+
sandboxes: {
|
|
3526
3521
|
status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
|
|
3527
3522
|
createdAt: number;
|
|
3528
3523
|
updatedAt: number;
|
|
3529
3524
|
name: string;
|
|
3530
|
-
|
|
3531
|
-
|
|
3525
|
+
persistent: boolean;
|
|
3526
|
+
currentSessionId: string;
|
|
3527
|
+
memory?: number | undefined;
|
|
3528
|
+
vcpus?: number | undefined;
|
|
3529
|
+
region?: string | undefined;
|
|
3530
|
+
runtime?: string | undefined;
|
|
3531
|
+
timeout?: number | undefined;
|
|
3532
|
+
cwd?: string | undefined;
|
|
3532
3533
|
networkPolicy?: z.objectOutputType<{
|
|
3533
3534
|
mode: z.ZodLiteral<"allow-all">;
|
|
3534
3535
|
}, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
|
|
@@ -3557,25 +3558,28 @@ export declare const NamedSandboxesPaginationResponse: z.ZodObject<{
|
|
|
3557
3558
|
totalActiveCpuDurationMs?: number | undefined;
|
|
3558
3559
|
totalDurationMs?: number | undefined;
|
|
3559
3560
|
currentSnapshotId?: string | undefined;
|
|
3561
|
+
statusUpdatedAt?: number | undefined;
|
|
3562
|
+
tags?: Record<string, string> | undefined;
|
|
3563
|
+
snapshotExpiration?: number | undefined;
|
|
3560
3564
|
}[];
|
|
3561
3565
|
}, {
|
|
3562
3566
|
pagination: {
|
|
3563
3567
|
count: number;
|
|
3564
3568
|
next: string | null;
|
|
3565
|
-
total: number;
|
|
3566
3569
|
};
|
|
3567
|
-
|
|
3568
|
-
memory: number;
|
|
3569
|
-
vcpus: number;
|
|
3570
|
-
region: string;
|
|
3571
|
-
runtime: string;
|
|
3572
|
-
timeout: number;
|
|
3570
|
+
sandboxes: {
|
|
3573
3571
|
status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
|
|
3574
3572
|
createdAt: number;
|
|
3575
3573
|
updatedAt: number;
|
|
3576
3574
|
name: string;
|
|
3577
|
-
|
|
3578
|
-
|
|
3575
|
+
persistent: boolean;
|
|
3576
|
+
currentSessionId: string;
|
|
3577
|
+
memory?: number | undefined;
|
|
3578
|
+
vcpus?: number | undefined;
|
|
3579
|
+
region?: string | undefined;
|
|
3580
|
+
runtime?: string | undefined;
|
|
3581
|
+
timeout?: number | undefined;
|
|
3582
|
+
cwd?: string | undefined;
|
|
3579
3583
|
networkPolicy?: z.objectInputType<{
|
|
3580
3584
|
mode: z.ZodLiteral<"allow-all">;
|
|
3581
3585
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
@@ -3604,17 +3608,20 @@ export declare const NamedSandboxesPaginationResponse: z.ZodObject<{
|
|
|
3604
3608
|
totalActiveCpuDurationMs?: number | undefined;
|
|
3605
3609
|
totalDurationMs?: number | undefined;
|
|
3606
3610
|
currentSnapshotId?: string | undefined;
|
|
3611
|
+
statusUpdatedAt?: number | undefined;
|
|
3612
|
+
tags?: Record<string, string> | undefined;
|
|
3613
|
+
snapshotExpiration?: number | undefined;
|
|
3607
3614
|
}[];
|
|
3608
3615
|
}>;
|
|
3609
|
-
export declare const
|
|
3610
|
-
|
|
3616
|
+
export declare const UpdateSandboxResponse: z.ZodObject<{
|
|
3617
|
+
sandbox: z.ZodObject<{
|
|
3611
3618
|
name: z.ZodString;
|
|
3612
|
-
|
|
3613
|
-
region: z.ZodString
|
|
3614
|
-
vcpus: z.ZodNumber
|
|
3615
|
-
memory: z.ZodNumber
|
|
3616
|
-
runtime: z.ZodString
|
|
3617
|
-
timeout: z.ZodNumber
|
|
3619
|
+
persistent: z.ZodBoolean;
|
|
3620
|
+
region: z.ZodOptional<z.ZodString>;
|
|
3621
|
+
vcpus: z.ZodOptional<z.ZodNumber>;
|
|
3622
|
+
memory: z.ZodOptional<z.ZodNumber>;
|
|
3623
|
+
runtime: z.ZodOptional<z.ZodString>;
|
|
3624
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
3618
3625
|
networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
3619
3626
|
mode: z.ZodLiteral<"allow-all">;
|
|
3620
3627
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -3688,21 +3695,26 @@ export declare const UpdateNamedSandboxResponse: z.ZodObject<{
|
|
|
3688
3695
|
totalDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
3689
3696
|
createdAt: z.ZodNumber;
|
|
3690
3697
|
updatedAt: z.ZodNumber;
|
|
3691
|
-
|
|
3698
|
+
currentSessionId: z.ZodString;
|
|
3692
3699
|
currentSnapshotId: z.ZodOptional<z.ZodString>;
|
|
3693
3700
|
status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
|
|
3701
|
+
statusUpdatedAt: z.ZodOptional<z.ZodNumber>;
|
|
3702
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
3703
|
+
tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3704
|
+
snapshotExpiration: z.ZodOptional<z.ZodNumber>;
|
|
3694
3705
|
}, "strip", z.ZodTypeAny, {
|
|
3695
|
-
memory: number;
|
|
3696
|
-
vcpus: number;
|
|
3697
|
-
region: string;
|
|
3698
|
-
runtime: string;
|
|
3699
|
-
timeout: number;
|
|
3700
3706
|
status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
|
|
3701
3707
|
createdAt: number;
|
|
3702
3708
|
updatedAt: number;
|
|
3703
3709
|
name: string;
|
|
3704
|
-
|
|
3705
|
-
|
|
3710
|
+
persistent: boolean;
|
|
3711
|
+
currentSessionId: string;
|
|
3712
|
+
memory?: number | undefined;
|
|
3713
|
+
vcpus?: number | undefined;
|
|
3714
|
+
region?: string | undefined;
|
|
3715
|
+
runtime?: string | undefined;
|
|
3716
|
+
timeout?: number | undefined;
|
|
3717
|
+
cwd?: string | undefined;
|
|
3706
3718
|
networkPolicy?: z.objectOutputType<{
|
|
3707
3719
|
mode: z.ZodLiteral<"allow-all">;
|
|
3708
3720
|
}, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
|
|
@@ -3731,18 +3743,22 @@ export declare const UpdateNamedSandboxResponse: z.ZodObject<{
|
|
|
3731
3743
|
totalActiveCpuDurationMs?: number | undefined;
|
|
3732
3744
|
totalDurationMs?: number | undefined;
|
|
3733
3745
|
currentSnapshotId?: string | undefined;
|
|
3746
|
+
statusUpdatedAt?: number | undefined;
|
|
3747
|
+
tags?: Record<string, string> | undefined;
|
|
3748
|
+
snapshotExpiration?: number | undefined;
|
|
3734
3749
|
}, {
|
|
3735
|
-
memory: number;
|
|
3736
|
-
vcpus: number;
|
|
3737
|
-
region: string;
|
|
3738
|
-
runtime: string;
|
|
3739
|
-
timeout: number;
|
|
3740
3750
|
status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
|
|
3741
3751
|
createdAt: number;
|
|
3742
3752
|
updatedAt: number;
|
|
3743
3753
|
name: string;
|
|
3744
|
-
|
|
3745
|
-
|
|
3754
|
+
persistent: boolean;
|
|
3755
|
+
currentSessionId: string;
|
|
3756
|
+
memory?: number | undefined;
|
|
3757
|
+
vcpus?: number | undefined;
|
|
3758
|
+
region?: string | undefined;
|
|
3759
|
+
runtime?: string | undefined;
|
|
3760
|
+
timeout?: number | undefined;
|
|
3761
|
+
cwd?: string | undefined;
|
|
3746
3762
|
networkPolicy?: z.objectInputType<{
|
|
3747
3763
|
mode: z.ZodLiteral<"allow-all">;
|
|
3748
3764
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
@@ -3771,20 +3787,24 @@ export declare const UpdateNamedSandboxResponse: z.ZodObject<{
|
|
|
3771
3787
|
totalActiveCpuDurationMs?: number | undefined;
|
|
3772
3788
|
totalDurationMs?: number | undefined;
|
|
3773
3789
|
currentSnapshotId?: string | undefined;
|
|
3790
|
+
statusUpdatedAt?: number | undefined;
|
|
3791
|
+
tags?: Record<string, string> | undefined;
|
|
3792
|
+
snapshotExpiration?: number | undefined;
|
|
3774
3793
|
}>;
|
|
3775
3794
|
}, "strip", z.ZodTypeAny, {
|
|
3776
|
-
|
|
3777
|
-
memory: number;
|
|
3778
|
-
vcpus: number;
|
|
3779
|
-
region: string;
|
|
3780
|
-
runtime: string;
|
|
3781
|
-
timeout: number;
|
|
3795
|
+
sandbox: {
|
|
3782
3796
|
status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
|
|
3783
3797
|
createdAt: number;
|
|
3784
3798
|
updatedAt: number;
|
|
3785
3799
|
name: string;
|
|
3786
|
-
|
|
3787
|
-
|
|
3800
|
+
persistent: boolean;
|
|
3801
|
+
currentSessionId: string;
|
|
3802
|
+
memory?: number | undefined;
|
|
3803
|
+
vcpus?: number | undefined;
|
|
3804
|
+
region?: string | undefined;
|
|
3805
|
+
runtime?: string | undefined;
|
|
3806
|
+
timeout?: number | undefined;
|
|
3807
|
+
cwd?: string | undefined;
|
|
3788
3808
|
networkPolicy?: z.objectOutputType<{
|
|
3789
3809
|
mode: z.ZodLiteral<"allow-all">;
|
|
3790
3810
|
}, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
|
|
@@ -3813,20 +3833,24 @@ export declare const UpdateNamedSandboxResponse: z.ZodObject<{
|
|
|
3813
3833
|
totalActiveCpuDurationMs?: number | undefined;
|
|
3814
3834
|
totalDurationMs?: number | undefined;
|
|
3815
3835
|
currentSnapshotId?: string | undefined;
|
|
3836
|
+
statusUpdatedAt?: number | undefined;
|
|
3837
|
+
tags?: Record<string, string> | undefined;
|
|
3838
|
+
snapshotExpiration?: number | undefined;
|
|
3816
3839
|
};
|
|
3817
3840
|
}, {
|
|
3818
|
-
|
|
3819
|
-
memory: number;
|
|
3820
|
-
vcpus: number;
|
|
3821
|
-
region: string;
|
|
3822
|
-
runtime: string;
|
|
3823
|
-
timeout: number;
|
|
3841
|
+
sandbox: {
|
|
3824
3842
|
status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
|
|
3825
3843
|
createdAt: number;
|
|
3826
3844
|
updatedAt: number;
|
|
3827
3845
|
name: string;
|
|
3828
|
-
|
|
3829
|
-
|
|
3846
|
+
persistent: boolean;
|
|
3847
|
+
currentSessionId: string;
|
|
3848
|
+
memory?: number | undefined;
|
|
3849
|
+
vcpus?: number | undefined;
|
|
3850
|
+
region?: string | undefined;
|
|
3851
|
+
runtime?: string | undefined;
|
|
3852
|
+
timeout?: number | undefined;
|
|
3853
|
+
cwd?: string | undefined;
|
|
3830
3854
|
networkPolicy?: z.objectInputType<{
|
|
3831
3855
|
mode: z.ZodLiteral<"allow-all">;
|
|
3832
3856
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
@@ -3855,5 +3879,8 @@ export declare const UpdateNamedSandboxResponse: z.ZodObject<{
|
|
|
3855
3879
|
totalActiveCpuDurationMs?: number | undefined;
|
|
3856
3880
|
totalDurationMs?: number | undefined;
|
|
3857
3881
|
currentSnapshotId?: string | undefined;
|
|
3882
|
+
statusUpdatedAt?: number | undefined;
|
|
3883
|
+
tags?: Record<string, string> | undefined;
|
|
3884
|
+
snapshotExpiration?: number | undefined;
|
|
3858
3885
|
};
|
|
3859
3886
|
}>;
|