@vercel/sandbox 2.0.0-beta.3 → 2.0.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- export type SandboxMetaData = z.infer<typeof Sandbox>;
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 Sandbox: z.ZodObject<{
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
- sourceSandboxId: z.ZodString;
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
- sourceSandboxId: string;
308
+ sourceSessionId: string;
309
309
  sizeBytes: number;
310
310
  expiresAt?: number | undefined;
311
311
  }, {
@@ -314,7 +314,7 @@ export declare const Snapshot: z.ZodObject<{
314
314
  status: "failed" | "created" | "deleted";
315
315
  createdAt: number;
316
316
  updatedAt: number;
317
- sourceSandboxId: string;
317
+ sourceSessionId: string;
318
318
  sizeBytes: number;
319
319
  expiresAt?: number | undefined;
320
320
  }>;
@@ -349,11 +349,11 @@ export declare const Command: z.ZodObject<{
349
349
  name: z.ZodString;
350
350
  args: z.ZodArray<z.ZodString, "many">;
351
351
  cwd: z.ZodString;
352
- sandboxId: z.ZodString;
352
+ sessionId: z.ZodString;
353
353
  exitCode: z.ZodNullable<z.ZodNumber>;
354
354
  startedAt: z.ZodNumber;
355
355
  }, "strip", z.ZodTypeAny, {
356
- sandboxId: string;
356
+ sessionId: string;
357
357
  id: string;
358
358
  startedAt: number;
359
359
  cwd: string;
@@ -361,7 +361,7 @@ export declare const Command: z.ZodObject<{
361
361
  args: string[];
362
362
  exitCode: number | null;
363
363
  }, {
364
- sandboxId: string;
364
+ sessionId: string;
365
365
  id: string;
366
366
  startedAt: number;
367
367
  cwd: string;
@@ -369,8 +369,8 @@ export declare const Command: z.ZodObject<{
369
369
  args: string[];
370
370
  exitCode: number | null;
371
371
  }>;
372
- export declare const SandboxResponse: z.ZodObject<{
373
- sandbox: z.ZodObject<{
372
+ export declare const SessionResponse: z.ZodObject<{
373
+ session: z.ZodObject<{
374
374
  id: z.ZodString;
375
375
  memory: z.ZodNumber;
376
376
  vcpus: z.ZodNumber;
@@ -468,31 +468,39 @@ export declare const SandboxResponse: z.ZodObject<{
468
468
  ingress: number;
469
469
  egress: number;
470
470
  }>>;
471
- }, "strip", z.ZodTypeAny, {
472
- id: string;
473
- memory: number;
474
- vcpus: number;
475
- region: string;
476
- runtime: string;
477
- timeout: number;
478
- status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
479
- requestedAt: number;
480
- createdAt: number;
481
- cwd: string;
482
- updatedAt: number;
483
- startedAt?: number | undefined;
484
- requestedStopAt?: number | undefined;
485
- stoppedAt?: number | undefined;
486
- abortedAt?: number | undefined;
487
- duration?: number | undefined;
488
- sourceSnapshotId?: string | undefined;
489
- snapshottedAt?: number | undefined;
490
- interactivePort?: number | undefined;
491
- networkPolicy?: z.objectOutputType<{
471
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
472
+ id: z.ZodString;
473
+ memory: z.ZodNumber;
474
+ vcpus: z.ZodNumber;
475
+ region: z.ZodString;
476
+ runtime: z.ZodString;
477
+ timeout: z.ZodNumber;
478
+ status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
479
+ requestedAt: z.ZodNumber;
480
+ startedAt: z.ZodOptional<z.ZodNumber>;
481
+ requestedStopAt: z.ZodOptional<z.ZodNumber>;
482
+ stoppedAt: z.ZodOptional<z.ZodNumber>;
483
+ abortedAt: z.ZodOptional<z.ZodNumber>;
484
+ duration: z.ZodOptional<z.ZodNumber>;
485
+ sourceSnapshotId: z.ZodOptional<z.ZodString>;
486
+ snapshottedAt: z.ZodOptional<z.ZodNumber>;
487
+ createdAt: z.ZodNumber;
488
+ cwd: z.ZodString;
489
+ updatedAt: z.ZodNumber;
490
+ interactivePort: z.ZodOptional<z.ZodNumber>;
491
+ networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
492
492
  mode: z.ZodLiteral<"allow-all">;
493
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
493
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
494
+ mode: z.ZodLiteral<"allow-all">;
495
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
496
+ mode: z.ZodLiteral<"allow-all">;
497
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
494
498
  mode: z.ZodLiteral<"deny-all">;
495
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
499
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
500
+ mode: z.ZodLiteral<"deny-all">;
501
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
502
+ mode: z.ZodLiteral<"deny-all">;
503
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
496
504
  mode: z.ZodLiteral<"custom">;
497
505
  allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
498
506
  allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -510,37 +518,7 @@ export declare const SandboxResponse: z.ZodObject<{
510
518
  headers?: Record<string, string> | undefined;
511
519
  headerNames?: string[] | undefined;
512
520
  }>, "many">>;
513
- }, z.ZodTypeAny, "passthrough"> | undefined;
514
- activeCpuDurationMs?: number | undefined;
515
- networkTransfer?: {
516
- ingress: number;
517
- egress: number;
518
- } | undefined;
519
- }, {
520
- id: string;
521
- memory: number;
522
- vcpus: number;
523
- region: string;
524
- runtime: string;
525
- timeout: number;
526
- status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
527
- requestedAt: number;
528
- createdAt: number;
529
- cwd: string;
530
- updatedAt: number;
531
- startedAt?: number | undefined;
532
- requestedStopAt?: number | undefined;
533
- stoppedAt?: number | undefined;
534
- abortedAt?: number | undefined;
535
- duration?: number | undefined;
536
- sourceSnapshotId?: string | undefined;
537
- snapshottedAt?: number | undefined;
538
- interactivePort?: number | undefined;
539
- networkPolicy?: z.objectInputType<{
540
- mode: z.ZodLiteral<"allow-all">;
541
- }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
542
- mode: z.ZodLiteral<"deny-all">;
543
- }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
521
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
544
522
  mode: z.ZodLiteral<"custom">;
545
523
  allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
546
524
  allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -558,39 +536,7 @@ export declare const SandboxResponse: z.ZodObject<{
558
536
  headers?: Record<string, string> | undefined;
559
537
  headerNames?: string[] | undefined;
560
538
  }>, "many">>;
561
- }, z.ZodTypeAny, "passthrough"> | undefined;
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<{
539
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
594
540
  mode: z.ZodLiteral<"custom">;
595
541
  allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
596
542
  allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -608,66 +554,19 @@ export declare const SandboxResponse: z.ZodObject<{
608
554
  headers?: Record<string, string> | undefined;
609
555
  headerNames?: string[] | undefined;
610
556
  }>, "many">>;
611
- }, z.ZodTypeAny, "passthrough"> | undefined;
612
- activeCpuDurationMs?: number | undefined;
613
- networkTransfer?: {
557
+ }, z.ZodTypeAny, "passthrough">>]>>;
558
+ activeCpuDurationMs: z.ZodOptional<z.ZodNumber>;
559
+ networkTransfer: z.ZodOptional<z.ZodObject<{
560
+ ingress: z.ZodNumber;
561
+ egress: z.ZodNumber;
562
+ }, "strip", z.ZodTypeAny, {
614
563
  ingress: number;
615
564
  egress: number;
616
- } | undefined;
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?: {
565
+ }, {
664
566
  ingress: number;
665
567
  egress: number;
666
- } | undefined;
667
- };
668
- }>;
669
- export declare const SandboxAndRoutesResponse: z.ZodObject<{
670
- sandbox: z.ZodObject<{
568
+ }>>;
569
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
671
570
  id: z.ZodString;
672
571
  memory: z.ZodNumber;
673
572
  vcpus: z.ZodNumber;
@@ -765,7 +664,9 @@ export declare const SandboxAndRoutesResponse: z.ZodObject<{
765
664
  ingress: number;
766
665
  egress: number;
767
666
  }>>;
768
- }, "strip", z.ZodTypeAny, {
667
+ }, z.ZodTypeAny, "passthrough">>;
668
+ }, "strip", z.ZodTypeAny, {
669
+ session: {
769
670
  id: string;
770
671
  memory: number;
771
672
  vcpus: number;
@@ -813,7 +714,11 @@ export declare const SandboxAndRoutesResponse: z.ZodObject<{
813
714
  ingress: number;
814
715
  egress: number;
815
716
  } | undefined;
816
- }, {
717
+ } & {
718
+ [k: string]: unknown;
719
+ };
720
+ }, {
721
+ session: {
817
722
  id: string;
818
723
  memory: number;
819
724
  vcpus: number;
@@ -861,47 +766,44 @@ export declare const SandboxAndRoutesResponse: z.ZodObject<{
861
766
  ingress: number;
862
767
  egress: number;
863
768
  } | 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<{
769
+ } & {
770
+ [k: string]: unknown;
771
+ };
772
+ }>;
773
+ export declare const SessionAndRoutesResponse: z.ZodObject<{
774
+ session: z.ZodObject<{
775
+ id: z.ZodString;
776
+ memory: z.ZodNumber;
777
+ vcpus: z.ZodNumber;
778
+ region: z.ZodString;
779
+ runtime: z.ZodString;
780
+ timeout: z.ZodNumber;
781
+ status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
782
+ requestedAt: z.ZodNumber;
783
+ startedAt: z.ZodOptional<z.ZodNumber>;
784
+ requestedStopAt: z.ZodOptional<z.ZodNumber>;
785
+ stoppedAt: z.ZodOptional<z.ZodNumber>;
786
+ abortedAt: z.ZodOptional<z.ZodNumber>;
787
+ duration: z.ZodOptional<z.ZodNumber>;
788
+ sourceSnapshotId: z.ZodOptional<z.ZodString>;
789
+ snapshottedAt: z.ZodOptional<z.ZodNumber>;
790
+ createdAt: z.ZodNumber;
791
+ cwd: z.ZodString;
792
+ updatedAt: z.ZodNumber;
793
+ interactivePort: z.ZodOptional<z.ZodNumber>;
794
+ networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
901
795
  mode: z.ZodLiteral<"allow-all">;
902
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
903
- mode: z.ZodLiteral<"deny-all">;
904
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
796
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
797
+ mode: z.ZodLiteral<"allow-all">;
798
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
799
+ mode: z.ZodLiteral<"allow-all">;
800
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
801
+ mode: z.ZodLiteral<"deny-all">;
802
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
803
+ mode: z.ZodLiteral<"deny-all">;
804
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
805
+ mode: z.ZodLiteral<"deny-all">;
806
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
905
807
  mode: z.ZodLiteral<"custom">;
906
808
  allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
907
809
  allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -919,44 +821,87 @@ export declare const SandboxAndRoutesResponse: z.ZodObject<{
919
821
  headers?: Record<string, string> | undefined;
920
822
  headerNames?: string[] | undefined;
921
823
  }>, "many">>;
922
- }, z.ZodTypeAny, "passthrough"> | undefined;
923
- activeCpuDurationMs?: number | undefined;
924
- networkTransfer?: {
824
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
825
+ mode: z.ZodLiteral<"custom">;
826
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
827
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
828
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
829
+ injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
830
+ domain: z.ZodString;
831
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
832
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
833
+ }, "strip", z.ZodTypeAny, {
834
+ domain: string;
835
+ headers?: Record<string, string> | undefined;
836
+ headerNames?: string[] | undefined;
837
+ }, {
838
+ domain: string;
839
+ headers?: Record<string, string> | undefined;
840
+ headerNames?: string[] | undefined;
841
+ }>, "many">>;
842
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
843
+ mode: z.ZodLiteral<"custom">;
844
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
845
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
846
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
847
+ injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
848
+ domain: z.ZodString;
849
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
850
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
851
+ }, "strip", z.ZodTypeAny, {
852
+ domain: string;
853
+ headers?: Record<string, string> | undefined;
854
+ headerNames?: string[] | undefined;
855
+ }, {
856
+ domain: string;
857
+ headers?: Record<string, string> | undefined;
858
+ headerNames?: string[] | undefined;
859
+ }>, "many">>;
860
+ }, z.ZodTypeAny, "passthrough">>]>>;
861
+ activeCpuDurationMs: z.ZodOptional<z.ZodNumber>;
862
+ networkTransfer: z.ZodOptional<z.ZodObject<{
863
+ ingress: z.ZodNumber;
864
+ egress: z.ZodNumber;
865
+ }, "strip", z.ZodTypeAny, {
925
866
  ingress: number;
926
867
  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<{
868
+ }, {
869
+ ingress: number;
870
+ egress: number;
871
+ }>>;
872
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
873
+ id: z.ZodString;
874
+ memory: z.ZodNumber;
875
+ vcpus: z.ZodNumber;
876
+ region: z.ZodString;
877
+ runtime: z.ZodString;
878
+ timeout: z.ZodNumber;
879
+ status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
880
+ requestedAt: z.ZodNumber;
881
+ startedAt: z.ZodOptional<z.ZodNumber>;
882
+ requestedStopAt: z.ZodOptional<z.ZodNumber>;
883
+ stoppedAt: z.ZodOptional<z.ZodNumber>;
884
+ abortedAt: z.ZodOptional<z.ZodNumber>;
885
+ duration: z.ZodOptional<z.ZodNumber>;
886
+ sourceSnapshotId: z.ZodOptional<z.ZodString>;
887
+ snapshottedAt: z.ZodOptional<z.ZodNumber>;
888
+ createdAt: z.ZodNumber;
889
+ cwd: z.ZodString;
890
+ updatedAt: z.ZodNumber;
891
+ interactivePort: z.ZodOptional<z.ZodNumber>;
892
+ networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
956
893
  mode: z.ZodLiteral<"allow-all">;
957
- }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
894
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
895
+ mode: z.ZodLiteral<"allow-all">;
896
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
897
+ mode: z.ZodLiteral<"allow-all">;
898
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
958
899
  mode: z.ZodLiteral<"deny-all">;
959
- }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
900
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
901
+ mode: z.ZodLiteral<"deny-all">;
902
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
903
+ mode: z.ZodLiteral<"deny-all">;
904
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
960
905
  mode: z.ZodLiteral<"custom">;
961
906
  allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
962
907
  allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -974,226 +919,71 @@ export declare const SandboxAndRoutesResponse: z.ZodObject<{
974
919
  headers?: Record<string, string> | undefined;
975
920
  headerNames?: string[] | undefined;
976
921
  }>, "many">>;
977
- }, z.ZodTypeAny, "passthrough"> | undefined;
978
- activeCpuDurationMs?: number | undefined;
979
- networkTransfer?: {
922
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
923
+ mode: z.ZodLiteral<"custom">;
924
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
925
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
926
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
927
+ injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
928
+ domain: z.ZodString;
929
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
930
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
931
+ }, "strip", z.ZodTypeAny, {
932
+ domain: string;
933
+ headers?: Record<string, string> | undefined;
934
+ headerNames?: string[] | undefined;
935
+ }, {
936
+ domain: string;
937
+ headers?: Record<string, string> | undefined;
938
+ headerNames?: string[] | undefined;
939
+ }>, "many">>;
940
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
941
+ mode: z.ZodLiteral<"custom">;
942
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
943
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
944
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
945
+ injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
946
+ domain: z.ZodString;
947
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
948
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
949
+ }, "strip", z.ZodTypeAny, {
950
+ domain: string;
951
+ headers?: Record<string, string> | undefined;
952
+ headerNames?: string[] | undefined;
953
+ }, {
954
+ domain: string;
955
+ headers?: Record<string, string> | undefined;
956
+ headerNames?: string[] | undefined;
957
+ }>, "many">>;
958
+ }, z.ZodTypeAny, "passthrough">>]>>;
959
+ activeCpuDurationMs: z.ZodOptional<z.ZodNumber>;
960
+ networkTransfer: z.ZodOptional<z.ZodObject<{
961
+ ingress: z.ZodNumber;
962
+ egress: z.ZodNumber;
963
+ }, "strip", z.ZodTypeAny, {
980
964
  ingress: number;
981
965
  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<{
966
+ }, {
967
+ ingress: number;
968
+ egress: number;
969
+ }>>;
970
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1040
971
  id: z.ZodString;
1041
- name: z.ZodString;
1042
- args: z.ZodArray<z.ZodString, "many">;
1043
- cwd: z.ZodString;
1044
- sandboxId: z.ZodString;
1045
- startedAt: z.ZodNumber;
1046
- } & {
1047
- exitCode: z.ZodNumber;
1048
- }, "strip", z.ZodTypeAny, {
1049
- sandboxId: string;
1050
- id: string;
1051
- startedAt: number;
1052
- cwd: string;
1053
- name: string;
1054
- args: string[];
1055
- exitCode: number;
1056
- }, {
1057
- sandboxId: string;
1058
- id: string;
1059
- startedAt: number;
1060
- cwd: string;
1061
- name: string;
1062
- args: string[];
1063
- exitCode: number;
1064
- }>;
1065
- }, "strip", z.ZodTypeAny, {
1066
- command: {
1067
- sandboxId: string;
1068
- id: string;
1069
- startedAt: number;
1070
- cwd: string;
1071
- name: string;
1072
- args: string[];
1073
- exitCode: number;
1074
- };
1075
- }, {
1076
- command: {
1077
- sandboxId: string;
1078
- id: string;
1079
- startedAt: number;
1080
- cwd: string;
1081
- name: string;
1082
- args: string[];
1083
- exitCode: number;
1084
- };
1085
- }>;
1086
- export declare const EmptyResponse: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
1087
- export declare const LogLineStdout: z.ZodObject<{
1088
- data: z.ZodString;
1089
- } & {
1090
- stream: z.ZodLiteral<"stdout">;
1091
- }, "strip", z.ZodTypeAny, {
1092
- data: string;
1093
- stream: "stdout";
1094
- }, {
1095
- data: string;
1096
- stream: "stdout";
1097
- }>;
1098
- export declare const LogLineStderr: z.ZodObject<{
1099
- data: z.ZodString;
1100
- } & {
1101
- stream: z.ZodLiteral<"stderr">;
1102
- }, "strip", z.ZodTypeAny, {
1103
- data: string;
1104
- stream: "stderr";
1105
- }, {
1106
- data: string;
1107
- stream: "stderr";
1108
- }>;
1109
- export declare const LogError: z.ZodObject<{
1110
- stream: z.ZodLiteral<"error">;
1111
- data: z.ZodObject<{
1112
- code: z.ZodString;
1113
- message: z.ZodString;
1114
- }, "strip", z.ZodTypeAny, {
1115
- message: string;
1116
- code: string;
1117
- }, {
1118
- message: string;
1119
- code: string;
1120
- }>;
1121
- }, "strip", z.ZodTypeAny, {
1122
- data: {
1123
- message: string;
1124
- code: string;
1125
- };
1126
- stream: "error";
1127
- }, {
1128
- data: {
1129
- message: string;
1130
- code: string;
1131
- };
1132
- stream: "error";
1133
- }>;
1134
- export declare const LogLine: z.ZodDiscriminatedUnion<"stream", [z.ZodObject<{
1135
- data: z.ZodString;
1136
- } & {
1137
- stream: z.ZodLiteral<"stdout">;
1138
- }, "strip", z.ZodTypeAny, {
1139
- data: string;
1140
- stream: "stdout";
1141
- }, {
1142
- data: string;
1143
- stream: "stdout";
1144
- }>, z.ZodObject<{
1145
- data: z.ZodString;
1146
- } & {
1147
- stream: z.ZodLiteral<"stderr">;
1148
- }, "strip", z.ZodTypeAny, {
1149
- data: string;
1150
- stream: "stderr";
1151
- }, {
1152
- data: string;
1153
- stream: "stderr";
1154
- }>, z.ZodObject<{
1155
- stream: z.ZodLiteral<"error">;
1156
- data: z.ZodObject<{
1157
- code: z.ZodString;
1158
- message: z.ZodString;
1159
- }, "strip", z.ZodTypeAny, {
1160
- message: string;
1161
- code: string;
1162
- }, {
1163
- message: string;
1164
- code: string;
1165
- }>;
1166
- }, "strip", z.ZodTypeAny, {
1167
- data: {
1168
- message: string;
1169
- code: string;
1170
- };
1171
- stream: "error";
1172
- }, {
1173
- data: {
1174
- message: string;
1175
- code: string;
1176
- };
1177
- stream: "error";
1178
- }>]>;
1179
- export declare const SandboxesResponse: z.ZodObject<{
1180
- sandboxes: z.ZodArray<z.ZodObject<{
1181
- id: z.ZodString;
1182
- memory: z.ZodNumber;
1183
- vcpus: z.ZodNumber;
1184
- region: z.ZodString;
1185
- runtime: z.ZodString;
1186
- timeout: z.ZodNumber;
1187
- status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
1188
- requestedAt: z.ZodNumber;
1189
- startedAt: z.ZodOptional<z.ZodNumber>;
1190
- requestedStopAt: z.ZodOptional<z.ZodNumber>;
1191
- stoppedAt: z.ZodOptional<z.ZodNumber>;
1192
- abortedAt: z.ZodOptional<z.ZodNumber>;
1193
- duration: z.ZodOptional<z.ZodNumber>;
1194
- sourceSnapshotId: z.ZodOptional<z.ZodString>;
1195
- snapshottedAt: z.ZodOptional<z.ZodNumber>;
1196
- createdAt: z.ZodNumber;
972
+ memory: z.ZodNumber;
973
+ vcpus: z.ZodNumber;
974
+ region: z.ZodString;
975
+ runtime: z.ZodString;
976
+ timeout: z.ZodNumber;
977
+ status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
978
+ requestedAt: z.ZodNumber;
979
+ startedAt: z.ZodOptional<z.ZodNumber>;
980
+ requestedStopAt: z.ZodOptional<z.ZodNumber>;
981
+ stoppedAt: z.ZodOptional<z.ZodNumber>;
982
+ abortedAt: z.ZodOptional<z.ZodNumber>;
983
+ duration: z.ZodOptional<z.ZodNumber>;
984
+ sourceSnapshotId: z.ZodOptional<z.ZodString>;
985
+ snapshottedAt: z.ZodOptional<z.ZodNumber>;
986
+ createdAt: z.ZodNumber;
1197
987
  cwd: z.ZodString;
1198
988
  updatedAt: z.ZodNumber;
1199
989
  interactivePort: z.ZodOptional<z.ZodNumber>;
@@ -1275,7 +1065,23 @@ export declare const SandboxesResponse: z.ZodObject<{
1275
1065
  ingress: number;
1276
1066
  egress: number;
1277
1067
  }>>;
1068
+ }, z.ZodTypeAny, "passthrough">>;
1069
+ } & {
1070
+ routes: z.ZodArray<z.ZodObject<{
1071
+ url: z.ZodString;
1072
+ subdomain: z.ZodString;
1073
+ port: z.ZodNumber;
1278
1074
  }, "strip", z.ZodTypeAny, {
1075
+ url: string;
1076
+ subdomain: string;
1077
+ port: number;
1078
+ }, {
1079
+ url: string;
1080
+ subdomain: string;
1081
+ port: number;
1082
+ }>, "many">;
1083
+ }, "strip", z.ZodTypeAny, {
1084
+ session: {
1279
1085
  id: string;
1280
1086
  memory: number;
1281
1087
  vcpus: number;
@@ -1323,7 +1129,16 @@ export declare const SandboxesResponse: z.ZodObject<{
1323
1129
  ingress: number;
1324
1130
  egress: number;
1325
1131
  } | undefined;
1326
- }, {
1132
+ } & {
1133
+ [k: string]: unknown;
1134
+ };
1135
+ routes: {
1136
+ url: string;
1137
+ subdomain: string;
1138
+ port: number;
1139
+ }[];
1140
+ }, {
1141
+ session: {
1327
1142
  id: string;
1328
1143
  memory: number;
1329
1144
  vcpus: number;
@@ -1371,58 +1186,49 @@ export declare const SandboxesResponse: z.ZodObject<{
1371
1186
  ingress: number;
1372
1187
  egress: number;
1373
1188
  } | 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<{
1189
+ } & {
1190
+ [k: string]: unknown;
1191
+ };
1192
+ routes: {
1193
+ url: string;
1194
+ subdomain: string;
1195
+ port: number;
1196
+ }[];
1197
+ }>;
1198
+ export declare const SessionsResponse: z.ZodObject<{
1199
+ sessions: z.ZodArray<z.ZodObject<{
1200
+ id: z.ZodString;
1201
+ memory: z.ZodNumber;
1202
+ vcpus: z.ZodNumber;
1203
+ region: z.ZodString;
1204
+ runtime: z.ZodString;
1205
+ timeout: z.ZodNumber;
1206
+ status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
1207
+ requestedAt: z.ZodNumber;
1208
+ startedAt: z.ZodOptional<z.ZodNumber>;
1209
+ requestedStopAt: z.ZodOptional<z.ZodNumber>;
1210
+ stoppedAt: z.ZodOptional<z.ZodNumber>;
1211
+ abortedAt: z.ZodOptional<z.ZodNumber>;
1212
+ duration: z.ZodOptional<z.ZodNumber>;
1213
+ sourceSnapshotId: z.ZodOptional<z.ZodString>;
1214
+ snapshottedAt: z.ZodOptional<z.ZodNumber>;
1215
+ createdAt: z.ZodNumber;
1216
+ cwd: z.ZodString;
1217
+ updatedAt: z.ZodNumber;
1218
+ interactivePort: z.ZodOptional<z.ZodNumber>;
1219
+ networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1422
1220
  mode: z.ZodLiteral<"allow-all">;
1423
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
1221
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1222
+ mode: z.ZodLiteral<"allow-all">;
1223
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1224
+ mode: z.ZodLiteral<"allow-all">;
1225
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
1424
1226
  mode: z.ZodLiteral<"deny-all">;
1425
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
1227
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1228
+ mode: z.ZodLiteral<"deny-all">;
1229
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1230
+ mode: z.ZodLiteral<"deny-all">;
1231
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
1426
1232
  mode: z.ZodLiteral<"custom">;
1427
1233
  allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1428
1234
  allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1440,44 +1246,7 @@ export declare const SandboxesResponse: z.ZodObject<{
1440
1246
  headers?: Record<string, string> | undefined;
1441
1247
  headerNames?: string[] | undefined;
1442
1248
  }>, "many">>;
1443
- }, z.ZodTypeAny, "passthrough"> | undefined;
1444
- activeCpuDurationMs?: number | undefined;
1445
- networkTransfer?: {
1446
- ingress: number;
1447
- egress: number;
1448
- } | undefined;
1449
- }[];
1450
- pagination: {
1451
- count: number;
1452
- next: number | null;
1453
- prev: number | null;
1454
- };
1455
- }, {
1456
- sandboxes: {
1457
- id: string;
1458
- memory: number;
1459
- vcpus: number;
1460
- region: string;
1461
- runtime: string;
1462
- timeout: number;
1463
- status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
1464
- requestedAt: number;
1465
- createdAt: number;
1466
- cwd: string;
1467
- updatedAt: number;
1468
- startedAt?: number | undefined;
1469
- requestedStopAt?: number | undefined;
1470
- stoppedAt?: number | undefined;
1471
- abortedAt?: number | undefined;
1472
- duration?: number | undefined;
1473
- sourceSnapshotId?: string | undefined;
1474
- snapshottedAt?: number | undefined;
1475
- interactivePort?: number | undefined;
1476
- networkPolicy?: z.objectInputType<{
1477
- mode: z.ZodLiteral<"allow-all">;
1478
- }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1479
- mode: z.ZodLiteral<"deny-all">;
1480
- }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1249
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1481
1250
  mode: z.ZodLiteral<"custom">;
1482
1251
  allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1483
1252
  allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1495,108 +1264,37 @@ export declare const SandboxesResponse: z.ZodObject<{
1495
1264
  headers?: Record<string, string> | undefined;
1496
1265
  headerNames?: string[] | undefined;
1497
1266
  }>, "many">>;
1498
- }, z.ZodTypeAny, "passthrough"> | undefined;
1499
- activeCpuDurationMs?: number | undefined;
1500
- networkTransfer?: {
1267
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1268
+ mode: z.ZodLiteral<"custom">;
1269
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1270
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1271
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1272
+ injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
1273
+ domain: z.ZodString;
1274
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1275
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1276
+ }, "strip", z.ZodTypeAny, {
1277
+ domain: string;
1278
+ headers?: Record<string, string> | undefined;
1279
+ headerNames?: string[] | undefined;
1280
+ }, {
1281
+ domain: string;
1282
+ headers?: Record<string, string> | undefined;
1283
+ headerNames?: string[] | undefined;
1284
+ }>, "many">>;
1285
+ }, z.ZodTypeAny, "passthrough">>]>>;
1286
+ activeCpuDurationMs: z.ZodOptional<z.ZodNumber>;
1287
+ networkTransfer: z.ZodOptional<z.ZodObject<{
1288
+ ingress: z.ZodNumber;
1289
+ egress: z.ZodNumber;
1290
+ }, "strip", z.ZodTypeAny, {
1501
1291
  ingress: number;
1502
1292
  egress: number;
1503
- } | undefined;
1504
- }[];
1505
- pagination: {
1506
- count: number;
1507
- next: number | null;
1508
- prev: number | null;
1509
- };
1510
- }>;
1511
- export declare const SnapshotsResponse: z.ZodObject<{
1512
- snapshots: z.ZodArray<z.ZodObject<{
1513
- id: z.ZodString;
1514
- sourceSandboxId: z.ZodString;
1515
- region: z.ZodString;
1516
- status: z.ZodEnum<["created", "deleted", "failed"]>;
1517
- sizeBytes: z.ZodNumber;
1518
- expiresAt: z.ZodOptional<z.ZodNumber>;
1519
- createdAt: z.ZodNumber;
1520
- updatedAt: z.ZodNumber;
1521
- }, "strip", z.ZodTypeAny, {
1522
- id: string;
1523
- region: string;
1524
- status: "failed" | "created" | "deleted";
1525
- createdAt: number;
1526
- updatedAt: number;
1527
- sourceSandboxId: string;
1528
- sizeBytes: number;
1529
- expiresAt?: number | undefined;
1530
- }, {
1531
- id: string;
1532
- region: string;
1533
- status: "failed" | "created" | "deleted";
1534
- createdAt: number;
1535
- updatedAt: number;
1536
- sourceSandboxId: string;
1537
- sizeBytes: number;
1538
- expiresAt?: number | undefined;
1539
- }>, "many">;
1540
- pagination: z.ZodObject<{
1541
- /**
1542
- * Amount of items in the current page.
1543
- * @example 20
1544
- */
1545
- count: z.ZodNumber;
1546
- /**
1547
- * Timestamp that must be used to request the next page.
1548
- * @example 1540095775951
1549
- */
1550
- next: z.ZodNullable<z.ZodNumber>;
1551
- /**
1552
- * Timestamp that must be used to request the previous page.
1553
- * @example 1540095775951
1554
- */
1555
- prev: z.ZodNullable<z.ZodNumber>;
1556
- }, "strip", z.ZodTypeAny, {
1557
- count: number;
1558
- next: number | null;
1559
- prev: number | null;
1560
- }, {
1561
- count: number;
1562
- next: number | null;
1563
- prev: number | null;
1564
- }>;
1565
- }, "strip", z.ZodTypeAny, {
1566
- pagination: {
1567
- count: number;
1568
- next: number | null;
1569
- prev: number | null;
1570
- };
1571
- snapshots: {
1572
- id: string;
1573
- region: string;
1574
- status: "failed" | "created" | "deleted";
1575
- createdAt: number;
1576
- updatedAt: number;
1577
- sourceSandboxId: string;
1578
- sizeBytes: number;
1579
- expiresAt?: number | undefined;
1580
- }[];
1581
- }, {
1582
- pagination: {
1583
- count: number;
1584
- next: number | null;
1585
- prev: number | null;
1586
- };
1587
- snapshots: {
1588
- id: string;
1589
- region: string;
1590
- status: "failed" | "created" | "deleted";
1591
- createdAt: number;
1592
- updatedAt: number;
1593
- sourceSandboxId: string;
1594
- sizeBytes: number;
1595
- expiresAt?: number | undefined;
1596
- }[];
1597
- }>;
1598
- export declare const ExtendTimeoutResponse: z.ZodObject<{
1599
- sandbox: z.ZodObject<{
1293
+ }, {
1294
+ ingress: number;
1295
+ egress: number;
1296
+ }>>;
1297
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1600
1298
  id: z.ZodString;
1601
1299
  memory: z.ZodNumber;
1602
1300
  vcpus: z.ZodNumber;
@@ -1694,31 +1392,39 @@ export declare const ExtendTimeoutResponse: z.ZodObject<{
1694
1392
  ingress: number;
1695
1393
  egress: number;
1696
1394
  }>>;
1697
- }, "strip", z.ZodTypeAny, {
1698
- id: string;
1699
- memory: number;
1700
- vcpus: number;
1701
- region: string;
1702
- runtime: string;
1703
- timeout: number;
1704
- status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
1705
- requestedAt: number;
1706
- createdAt: number;
1707
- cwd: string;
1708
- updatedAt: number;
1709
- startedAt?: number | undefined;
1710
- requestedStopAt?: number | undefined;
1711
- stoppedAt?: number | undefined;
1712
- abortedAt?: number | undefined;
1713
- duration?: number | undefined;
1714
- sourceSnapshotId?: string | undefined;
1715
- snapshottedAt?: number | undefined;
1716
- interactivePort?: number | undefined;
1717
- networkPolicy?: z.objectOutputType<{
1395
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1396
+ id: z.ZodString;
1397
+ memory: z.ZodNumber;
1398
+ vcpus: z.ZodNumber;
1399
+ region: z.ZodString;
1400
+ runtime: z.ZodString;
1401
+ timeout: z.ZodNumber;
1402
+ status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
1403
+ requestedAt: z.ZodNumber;
1404
+ startedAt: z.ZodOptional<z.ZodNumber>;
1405
+ requestedStopAt: z.ZodOptional<z.ZodNumber>;
1406
+ stoppedAt: z.ZodOptional<z.ZodNumber>;
1407
+ abortedAt: z.ZodOptional<z.ZodNumber>;
1408
+ duration: z.ZodOptional<z.ZodNumber>;
1409
+ sourceSnapshotId: z.ZodOptional<z.ZodString>;
1410
+ snapshottedAt: z.ZodOptional<z.ZodNumber>;
1411
+ createdAt: z.ZodNumber;
1412
+ cwd: z.ZodString;
1413
+ updatedAt: z.ZodNumber;
1414
+ interactivePort: z.ZodOptional<z.ZodNumber>;
1415
+ networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1718
1416
  mode: z.ZodLiteral<"allow-all">;
1719
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
1417
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1418
+ mode: z.ZodLiteral<"allow-all">;
1419
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1420
+ mode: z.ZodLiteral<"allow-all">;
1421
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
1720
1422
  mode: z.ZodLiteral<"deny-all">;
1721
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
1423
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1424
+ mode: z.ZodLiteral<"deny-all">;
1425
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1426
+ mode: z.ZodLiteral<"deny-all">;
1427
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
1722
1428
  mode: z.ZodLiteral<"custom">;
1723
1429
  allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1724
1430
  allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1736,37 +1442,7 @@ export declare const ExtendTimeoutResponse: z.ZodObject<{
1736
1442
  headers?: Record<string, string> | undefined;
1737
1443
  headerNames?: string[] | undefined;
1738
1444
  }>, "many">>;
1739
- }, z.ZodTypeAny, "passthrough"> | undefined;
1740
- activeCpuDurationMs?: number | undefined;
1741
- networkTransfer?: {
1742
- ingress: number;
1743
- egress: number;
1744
- } | undefined;
1745
- }, {
1746
- id: string;
1747
- memory: number;
1748
- vcpus: number;
1749
- region: string;
1750
- runtime: string;
1751
- timeout: number;
1752
- status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
1753
- requestedAt: number;
1754
- createdAt: number;
1755
- cwd: string;
1756
- updatedAt: number;
1757
- startedAt?: number | undefined;
1758
- requestedStopAt?: number | undefined;
1759
- stoppedAt?: number | undefined;
1760
- abortedAt?: number | undefined;
1761
- duration?: number | undefined;
1762
- sourceSnapshotId?: string | undefined;
1763
- snapshottedAt?: number | undefined;
1764
- interactivePort?: number | undefined;
1765
- networkPolicy?: z.objectInputType<{
1766
- mode: z.ZodLiteral<"allow-all">;
1767
- }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1768
- mode: z.ZodLiteral<"deny-all">;
1769
- }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1445
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1770
1446
  mode: z.ZodLiteral<"custom">;
1771
1447
  allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1772
1448
  allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1784,39 +1460,96 @@ export declare const ExtendTimeoutResponse: z.ZodObject<{
1784
1460
  headers?: Record<string, string> | undefined;
1785
1461
  headerNames?: string[] | undefined;
1786
1462
  }>, "many">>;
1787
- }, z.ZodTypeAny, "passthrough"> | undefined;
1788
- activeCpuDurationMs?: number | undefined;
1789
- networkTransfer?: {
1790
- ingress: number;
1791
- egress: number;
1792
- } | undefined;
1793
- }>;
1794
- }, "strip", z.ZodTypeAny, {
1795
- sandbox: {
1796
- id: string;
1797
- memory: number;
1798
- vcpus: number;
1799
- region: string;
1800
- runtime: string;
1801
- timeout: number;
1802
- status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
1803
- requestedAt: number;
1804
- createdAt: number;
1805
- cwd: string;
1806
- updatedAt: number;
1807
- startedAt?: number | undefined;
1808
- requestedStopAt?: number | undefined;
1809
- stoppedAt?: number | undefined;
1810
- abortedAt?: number | undefined;
1811
- duration?: number | undefined;
1812
- sourceSnapshotId?: string | undefined;
1813
- snapshottedAt?: number | undefined;
1814
- interactivePort?: number | undefined;
1815
- networkPolicy?: z.objectOutputType<{
1463
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1464
+ mode: z.ZodLiteral<"custom">;
1465
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1466
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1467
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1468
+ injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
1469
+ domain: z.ZodString;
1470
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1471
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1472
+ }, "strip", z.ZodTypeAny, {
1473
+ domain: string;
1474
+ headers?: Record<string, string> | undefined;
1475
+ headerNames?: string[] | undefined;
1476
+ }, {
1477
+ domain: string;
1478
+ headers?: Record<string, string> | undefined;
1479
+ headerNames?: string[] | undefined;
1480
+ }>, "many">>;
1481
+ }, z.ZodTypeAny, "passthrough">>]>>;
1482
+ activeCpuDurationMs: z.ZodOptional<z.ZodNumber>;
1483
+ networkTransfer: z.ZodOptional<z.ZodObject<{
1484
+ ingress: z.ZodNumber;
1485
+ egress: z.ZodNumber;
1486
+ }, "strip", z.ZodTypeAny, {
1487
+ ingress: number;
1488
+ egress: number;
1489
+ }, {
1490
+ ingress: number;
1491
+ egress: number;
1492
+ }>>;
1493
+ }, z.ZodTypeAny, "passthrough">>, "many">;
1494
+ pagination: z.ZodObject<{
1495
+ /**
1496
+ * Amount of items in the current page.
1497
+ * @example 20
1498
+ */
1499
+ count: z.ZodNumber;
1500
+ /**
1501
+ * Timestamp that must be used to request the next page.
1502
+ * @example 1540095775951
1503
+ */
1504
+ next: z.ZodNullable<z.ZodNumber>;
1505
+ /**
1506
+ * Timestamp that must be used to request the previous page.
1507
+ * @example 1540095775951
1508
+ */
1509
+ prev: z.ZodNullable<z.ZodNumber>;
1510
+ }, "strip", z.ZodTypeAny, {
1511
+ count: number;
1512
+ next: number | null;
1513
+ prev: number | null;
1514
+ }, {
1515
+ count: number;
1516
+ next: number | null;
1517
+ prev: number | null;
1518
+ }>;
1519
+ }, "strip", z.ZodTypeAny, {
1520
+ sessions: z.objectOutputType<{
1521
+ id: z.ZodString;
1522
+ memory: z.ZodNumber;
1523
+ vcpus: z.ZodNumber;
1524
+ region: z.ZodString;
1525
+ runtime: z.ZodString;
1526
+ timeout: z.ZodNumber;
1527
+ status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
1528
+ requestedAt: z.ZodNumber;
1529
+ startedAt: z.ZodOptional<z.ZodNumber>;
1530
+ requestedStopAt: z.ZodOptional<z.ZodNumber>;
1531
+ stoppedAt: z.ZodOptional<z.ZodNumber>;
1532
+ abortedAt: z.ZodOptional<z.ZodNumber>;
1533
+ duration: z.ZodOptional<z.ZodNumber>;
1534
+ sourceSnapshotId: z.ZodOptional<z.ZodString>;
1535
+ snapshottedAt: z.ZodOptional<z.ZodNumber>;
1536
+ createdAt: z.ZodNumber;
1537
+ cwd: z.ZodString;
1538
+ updatedAt: z.ZodNumber;
1539
+ interactivePort: z.ZodOptional<z.ZodNumber>;
1540
+ networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1816
1541
  mode: z.ZodLiteral<"allow-all">;
1817
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
1542
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1543
+ mode: z.ZodLiteral<"allow-all">;
1544
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1545
+ mode: z.ZodLiteral<"allow-all">;
1546
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
1818
1547
  mode: z.ZodLiteral<"deny-all">;
1819
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
1548
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1549
+ mode: z.ZodLiteral<"deny-all">;
1550
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1551
+ mode: z.ZodLiteral<"deny-all">;
1552
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
1820
1553
  mode: z.ZodLiteral<"custom">;
1821
1554
  allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1822
1555
  allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1834,39 +1567,94 @@ export declare const ExtendTimeoutResponse: z.ZodObject<{
1834
1567
  headers?: Record<string, string> | undefined;
1835
1568
  headerNames?: string[] | undefined;
1836
1569
  }>, "many">>;
1837
- }, z.ZodTypeAny, "passthrough"> | undefined;
1838
- activeCpuDurationMs?: number | undefined;
1839
- networkTransfer?: {
1570
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1571
+ mode: z.ZodLiteral<"custom">;
1572
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1573
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1574
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1575
+ injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
1576
+ domain: z.ZodString;
1577
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1578
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1579
+ }, "strip", z.ZodTypeAny, {
1580
+ domain: string;
1581
+ headers?: Record<string, string> | undefined;
1582
+ headerNames?: string[] | undefined;
1583
+ }, {
1584
+ domain: string;
1585
+ headers?: Record<string, string> | undefined;
1586
+ headerNames?: string[] | undefined;
1587
+ }>, "many">>;
1588
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1589
+ mode: z.ZodLiteral<"custom">;
1590
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1591
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1592
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1593
+ injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
1594
+ domain: z.ZodString;
1595
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1596
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1597
+ }, "strip", z.ZodTypeAny, {
1598
+ domain: string;
1599
+ headers?: Record<string, string> | undefined;
1600
+ headerNames?: string[] | undefined;
1601
+ }, {
1602
+ domain: string;
1603
+ headers?: Record<string, string> | undefined;
1604
+ headerNames?: string[] | undefined;
1605
+ }>, "many">>;
1606
+ }, z.ZodTypeAny, "passthrough">>]>>;
1607
+ activeCpuDurationMs: z.ZodOptional<z.ZodNumber>;
1608
+ networkTransfer: z.ZodOptional<z.ZodObject<{
1609
+ ingress: z.ZodNumber;
1610
+ egress: z.ZodNumber;
1611
+ }, "strip", z.ZodTypeAny, {
1840
1612
  ingress: number;
1841
1613
  egress: number;
1842
- } | undefined;
1614
+ }, {
1615
+ ingress: number;
1616
+ egress: number;
1617
+ }>>;
1618
+ }, z.ZodTypeAny, "passthrough">[];
1619
+ pagination: {
1620
+ count: number;
1621
+ next: number | null;
1622
+ prev: number | null;
1843
1623
  };
1844
1624
  }, {
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<{
1625
+ sessions: z.objectInputType<{
1626
+ id: z.ZodString;
1627
+ memory: z.ZodNumber;
1628
+ vcpus: z.ZodNumber;
1629
+ region: z.ZodString;
1630
+ runtime: z.ZodString;
1631
+ timeout: z.ZodNumber;
1632
+ status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
1633
+ requestedAt: z.ZodNumber;
1634
+ startedAt: z.ZodOptional<z.ZodNumber>;
1635
+ requestedStopAt: z.ZodOptional<z.ZodNumber>;
1636
+ stoppedAt: z.ZodOptional<z.ZodNumber>;
1637
+ abortedAt: z.ZodOptional<z.ZodNumber>;
1638
+ duration: z.ZodOptional<z.ZodNumber>;
1639
+ sourceSnapshotId: z.ZodOptional<z.ZodString>;
1640
+ snapshottedAt: z.ZodOptional<z.ZodNumber>;
1641
+ createdAt: z.ZodNumber;
1642
+ cwd: z.ZodString;
1643
+ updatedAt: z.ZodNumber;
1644
+ interactivePort: z.ZodOptional<z.ZodNumber>;
1645
+ networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1866
1646
  mode: z.ZodLiteral<"allow-all">;
1867
- }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1647
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1648
+ mode: z.ZodLiteral<"allow-all">;
1649
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1650
+ mode: z.ZodLiteral<"allow-all">;
1651
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
1868
1652
  mode: z.ZodLiteral<"deny-all">;
1869
- }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
1653
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1654
+ mode: z.ZodLiteral<"deny-all">;
1655
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1656
+ mode: z.ZodLiteral<"deny-all">;
1657
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
1870
1658
  mode: z.ZodLiteral<"custom">;
1871
1659
  allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1872
1660
  allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1884,16 +1672,367 @@ export declare const ExtendTimeoutResponse: z.ZodObject<{
1884
1672
  headers?: Record<string, string> | undefined;
1885
1673
  headerNames?: string[] | undefined;
1886
1674
  }>, "many">>;
1887
- }, z.ZodTypeAny, "passthrough"> | undefined;
1888
- activeCpuDurationMs?: number | undefined;
1889
- networkTransfer?: {
1675
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1676
+ mode: z.ZodLiteral<"custom">;
1677
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1678
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1679
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1680
+ injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
1681
+ domain: z.ZodString;
1682
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1683
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1684
+ }, "strip", z.ZodTypeAny, {
1685
+ domain: string;
1686
+ headers?: Record<string, string> | undefined;
1687
+ headerNames?: string[] | undefined;
1688
+ }, {
1689
+ domain: string;
1690
+ headers?: Record<string, string> | undefined;
1691
+ headerNames?: string[] | undefined;
1692
+ }>, "many">>;
1693
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1694
+ mode: z.ZodLiteral<"custom">;
1695
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1696
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1697
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1698
+ injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
1699
+ domain: z.ZodString;
1700
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1701
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1702
+ }, "strip", z.ZodTypeAny, {
1703
+ domain: string;
1704
+ headers?: Record<string, string> | undefined;
1705
+ headerNames?: string[] | undefined;
1706
+ }, {
1707
+ domain: string;
1708
+ headers?: Record<string, string> | undefined;
1709
+ headerNames?: string[] | undefined;
1710
+ }>, "many">>;
1711
+ }, z.ZodTypeAny, "passthrough">>]>>;
1712
+ activeCpuDurationMs: z.ZodOptional<z.ZodNumber>;
1713
+ networkTransfer: z.ZodOptional<z.ZodObject<{
1714
+ ingress: z.ZodNumber;
1715
+ egress: z.ZodNumber;
1716
+ }, "strip", z.ZodTypeAny, {
1890
1717
  ingress: number;
1891
1718
  egress: number;
1892
- } | undefined;
1893
- };
1894
- }>;
1895
- export declare const UpdateNetworkPolicyResponse: z.ZodObject<{
1896
- sandbox: z.ZodObject<{
1719
+ }, {
1720
+ ingress: number;
1721
+ egress: number;
1722
+ }>>;
1723
+ }, z.ZodTypeAny, "passthrough">[];
1724
+ pagination: {
1725
+ count: number;
1726
+ next: number | null;
1727
+ prev: number | null;
1728
+ };
1729
+ }>;
1730
+ export declare const CommandResponse: z.ZodObject<{
1731
+ command: z.ZodObject<{
1732
+ id: z.ZodString;
1733
+ name: z.ZodString;
1734
+ args: z.ZodArray<z.ZodString, "many">;
1735
+ cwd: z.ZodString;
1736
+ sessionId: z.ZodString;
1737
+ exitCode: z.ZodNullable<z.ZodNumber>;
1738
+ startedAt: z.ZodNumber;
1739
+ }, "strip", z.ZodTypeAny, {
1740
+ sessionId: string;
1741
+ id: string;
1742
+ startedAt: number;
1743
+ cwd: string;
1744
+ name: string;
1745
+ args: string[];
1746
+ exitCode: number | null;
1747
+ }, {
1748
+ sessionId: string;
1749
+ id: string;
1750
+ startedAt: number;
1751
+ cwd: string;
1752
+ name: string;
1753
+ args: string[];
1754
+ exitCode: number | null;
1755
+ }>;
1756
+ }, "strip", z.ZodTypeAny, {
1757
+ command: {
1758
+ sessionId: string;
1759
+ id: string;
1760
+ startedAt: number;
1761
+ cwd: string;
1762
+ name: string;
1763
+ args: string[];
1764
+ exitCode: number | null;
1765
+ };
1766
+ }, {
1767
+ command: {
1768
+ sessionId: string;
1769
+ id: string;
1770
+ startedAt: number;
1771
+ cwd: string;
1772
+ name: string;
1773
+ args: string[];
1774
+ exitCode: number | null;
1775
+ };
1776
+ }>;
1777
+ export type CommandFinishedData = z.infer<typeof CommandFinishedResponse>["command"];
1778
+ export declare const CommandFinishedResponse: z.ZodObject<{
1779
+ command: z.ZodObject<{
1780
+ id: z.ZodString;
1781
+ name: z.ZodString;
1782
+ args: z.ZodArray<z.ZodString, "many">;
1783
+ cwd: z.ZodString;
1784
+ sessionId: z.ZodString;
1785
+ startedAt: z.ZodNumber;
1786
+ } & {
1787
+ exitCode: z.ZodNumber;
1788
+ }, "strip", z.ZodTypeAny, {
1789
+ sessionId: string;
1790
+ id: string;
1791
+ startedAt: number;
1792
+ cwd: string;
1793
+ name: string;
1794
+ args: string[];
1795
+ exitCode: number;
1796
+ }, {
1797
+ sessionId: string;
1798
+ id: string;
1799
+ startedAt: number;
1800
+ cwd: string;
1801
+ name: string;
1802
+ args: string[];
1803
+ exitCode: number;
1804
+ }>;
1805
+ }, "strip", z.ZodTypeAny, {
1806
+ command: {
1807
+ sessionId: string;
1808
+ id: string;
1809
+ startedAt: number;
1810
+ cwd: string;
1811
+ name: string;
1812
+ args: string[];
1813
+ exitCode: number;
1814
+ };
1815
+ }, {
1816
+ command: {
1817
+ sessionId: string;
1818
+ id: string;
1819
+ startedAt: number;
1820
+ cwd: string;
1821
+ name: string;
1822
+ args: string[];
1823
+ exitCode: number;
1824
+ };
1825
+ }>;
1826
+ export declare const EmptyResponse: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
1827
+ export declare const LogLineStdout: z.ZodObject<{
1828
+ data: z.ZodString;
1829
+ } & {
1830
+ stream: z.ZodLiteral<"stdout">;
1831
+ }, "strip", z.ZodTypeAny, {
1832
+ data: string;
1833
+ stream: "stdout";
1834
+ }, {
1835
+ data: string;
1836
+ stream: "stdout";
1837
+ }>;
1838
+ export declare const LogLineStderr: z.ZodObject<{
1839
+ data: z.ZodString;
1840
+ } & {
1841
+ stream: z.ZodLiteral<"stderr">;
1842
+ }, "strip", z.ZodTypeAny, {
1843
+ data: string;
1844
+ stream: "stderr";
1845
+ }, {
1846
+ data: string;
1847
+ stream: "stderr";
1848
+ }>;
1849
+ export declare const LogError: z.ZodObject<{
1850
+ stream: z.ZodLiteral<"error">;
1851
+ data: z.ZodObject<{
1852
+ code: z.ZodString;
1853
+ message: z.ZodString;
1854
+ }, "strip", z.ZodTypeAny, {
1855
+ message: string;
1856
+ code: string;
1857
+ }, {
1858
+ message: string;
1859
+ code: string;
1860
+ }>;
1861
+ }, "strip", z.ZodTypeAny, {
1862
+ data: {
1863
+ message: string;
1864
+ code: string;
1865
+ };
1866
+ stream: "error";
1867
+ }, {
1868
+ data: {
1869
+ message: string;
1870
+ code: string;
1871
+ };
1872
+ stream: "error";
1873
+ }>;
1874
+ export declare const LogLine: z.ZodDiscriminatedUnion<"stream", [z.ZodObject<{
1875
+ data: z.ZodString;
1876
+ } & {
1877
+ stream: z.ZodLiteral<"stdout">;
1878
+ }, "strip", z.ZodTypeAny, {
1879
+ data: string;
1880
+ stream: "stdout";
1881
+ }, {
1882
+ data: string;
1883
+ stream: "stdout";
1884
+ }>, z.ZodObject<{
1885
+ data: z.ZodString;
1886
+ } & {
1887
+ stream: z.ZodLiteral<"stderr">;
1888
+ }, "strip", z.ZodTypeAny, {
1889
+ data: string;
1890
+ stream: "stderr";
1891
+ }, {
1892
+ data: string;
1893
+ stream: "stderr";
1894
+ }>, z.ZodObject<{
1895
+ stream: z.ZodLiteral<"error">;
1896
+ data: z.ZodObject<{
1897
+ code: z.ZodString;
1898
+ message: z.ZodString;
1899
+ }, "strip", z.ZodTypeAny, {
1900
+ message: string;
1901
+ code: string;
1902
+ }, {
1903
+ message: string;
1904
+ code: string;
1905
+ }>;
1906
+ }, "strip", z.ZodTypeAny, {
1907
+ data: {
1908
+ message: string;
1909
+ code: string;
1910
+ };
1911
+ stream: "error";
1912
+ }, {
1913
+ data: {
1914
+ message: string;
1915
+ code: string;
1916
+ };
1917
+ stream: "error";
1918
+ }>]>;
1919
+ export declare const SnapshotsResponse: z.ZodObject<{
1920
+ snapshots: z.ZodArray<z.ZodObject<{
1921
+ id: z.ZodString;
1922
+ sourceSessionId: z.ZodString;
1923
+ region: z.ZodString;
1924
+ status: z.ZodEnum<["created", "deleted", "failed"]>;
1925
+ sizeBytes: z.ZodNumber;
1926
+ expiresAt: z.ZodOptional<z.ZodNumber>;
1927
+ createdAt: z.ZodNumber;
1928
+ updatedAt: z.ZodNumber;
1929
+ }, "strip", z.ZodTypeAny, {
1930
+ id: string;
1931
+ region: string;
1932
+ status: "failed" | "created" | "deleted";
1933
+ createdAt: number;
1934
+ updatedAt: number;
1935
+ sourceSessionId: string;
1936
+ sizeBytes: number;
1937
+ expiresAt?: number | undefined;
1938
+ }, {
1939
+ id: string;
1940
+ region: string;
1941
+ status: "failed" | "created" | "deleted";
1942
+ createdAt: number;
1943
+ updatedAt: number;
1944
+ sourceSessionId: string;
1945
+ sizeBytes: number;
1946
+ expiresAt?: number | undefined;
1947
+ }>, "many">;
1948
+ pagination: z.ZodObject<{
1949
+ /**
1950
+ * Amount of items in the current page.
1951
+ * @example 20
1952
+ */
1953
+ count: z.ZodNumber;
1954
+ /**
1955
+ * Timestamp that must be used to request the next page.
1956
+ * @example 1540095775951
1957
+ */
1958
+ next: z.ZodNullable<z.ZodNumber>;
1959
+ /**
1960
+ * Timestamp that must be used to request the previous page.
1961
+ * @example 1540095775951
1962
+ */
1963
+ prev: z.ZodNullable<z.ZodNumber>;
1964
+ }, "strip", z.ZodTypeAny, {
1965
+ count: number;
1966
+ next: number | null;
1967
+ prev: number | null;
1968
+ }, {
1969
+ count: number;
1970
+ next: number | null;
1971
+ prev: number | null;
1972
+ }>;
1973
+ }, "strip", z.ZodTypeAny, {
1974
+ pagination: {
1975
+ count: number;
1976
+ next: number | null;
1977
+ prev: number | null;
1978
+ };
1979
+ snapshots: {
1980
+ id: string;
1981
+ region: string;
1982
+ status: "failed" | "created" | "deleted";
1983
+ createdAt: number;
1984
+ updatedAt: number;
1985
+ sourceSessionId: string;
1986
+ sizeBytes: number;
1987
+ expiresAt?: number | undefined;
1988
+ }[];
1989
+ }, {
1990
+ pagination: {
1991
+ count: number;
1992
+ next: number | null;
1993
+ prev: number | null;
1994
+ };
1995
+ snapshots: {
1996
+ id: string;
1997
+ region: string;
1998
+ status: "failed" | "created" | "deleted";
1999
+ createdAt: number;
2000
+ updatedAt: number;
2001
+ sourceSessionId: string;
2002
+ sizeBytes: number;
2003
+ expiresAt?: number | undefined;
2004
+ }[];
2005
+ }>;
2006
+ export declare const CreateSnapshotResponse: z.ZodObject<{
2007
+ snapshot: z.ZodObject<{
2008
+ id: z.ZodString;
2009
+ sourceSessionId: z.ZodString;
2010
+ region: z.ZodString;
2011
+ status: z.ZodEnum<["created", "deleted", "failed"]>;
2012
+ sizeBytes: z.ZodNumber;
2013
+ expiresAt: z.ZodOptional<z.ZodNumber>;
2014
+ createdAt: z.ZodNumber;
2015
+ updatedAt: z.ZodNumber;
2016
+ }, "strip", z.ZodTypeAny, {
2017
+ id: string;
2018
+ region: string;
2019
+ status: "failed" | "created" | "deleted";
2020
+ createdAt: number;
2021
+ updatedAt: number;
2022
+ sourceSessionId: string;
2023
+ sizeBytes: number;
2024
+ expiresAt?: number | undefined;
2025
+ }, {
2026
+ id: string;
2027
+ region: string;
2028
+ status: "failed" | "created" | "deleted";
2029
+ createdAt: number;
2030
+ updatedAt: number;
2031
+ sourceSessionId: string;
2032
+ sizeBytes: number;
2033
+ expiresAt?: number | undefined;
2034
+ }>;
2035
+ session: z.ZodObject<{
1897
2036
  id: z.ZodString;
1898
2037
  memory: z.ZodNumber;
1899
2038
  vcpus: z.ZodNumber;
@@ -1976,249 +2115,22 @@ export declare const UpdateNetworkPolicyResponse: z.ZodObject<{
1976
2115
  headerNames?: string[] | undefined;
1977
2116
  }, {
1978
2117
  domain: string;
1979
- headers?: Record<string, string> | undefined;
1980
- headerNames?: string[] | undefined;
1981
- }>, "many">>;
1982
- }, z.ZodTypeAny, "passthrough">>]>>;
1983
- activeCpuDurationMs: z.ZodOptional<z.ZodNumber>;
1984
- networkTransfer: z.ZodOptional<z.ZodObject<{
1985
- ingress: z.ZodNumber;
1986
- egress: z.ZodNumber;
1987
- }, "strip", z.ZodTypeAny, {
1988
- ingress: number;
1989
- egress: number;
1990
- }, {
1991
- ingress: number;
1992
- egress: number;
1993
- }>>;
1994
- }, "strip", z.ZodTypeAny, {
1995
- id: string;
1996
- memory: number;
1997
- vcpus: number;
1998
- region: string;
1999
- runtime: string;
2000
- timeout: number;
2001
- status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
2002
- requestedAt: number;
2003
- createdAt: number;
2004
- cwd: string;
2005
- updatedAt: number;
2006
- startedAt?: number | undefined;
2007
- requestedStopAt?: number | undefined;
2008
- stoppedAt?: number | undefined;
2009
- abortedAt?: number | undefined;
2010
- duration?: number | undefined;
2011
- sourceSnapshotId?: string | undefined;
2012
- snapshottedAt?: number | undefined;
2013
- interactivePort?: number | undefined;
2014
- networkPolicy?: z.objectOutputType<{
2015
- mode: z.ZodLiteral<"allow-all">;
2016
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
2017
- mode: z.ZodLiteral<"deny-all">;
2018
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
2019
- mode: z.ZodLiteral<"custom">;
2020
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2021
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2022
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2023
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
2024
- domain: z.ZodString;
2025
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2026
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2027
- }, "strip", z.ZodTypeAny, {
2028
- domain: string;
2029
- headers?: Record<string, string> | undefined;
2030
- headerNames?: string[] | undefined;
2031
- }, {
2032
- domain: string;
2033
- headers?: Record<string, string> | undefined;
2034
- headerNames?: string[] | undefined;
2035
- }>, "many">>;
2036
- }, z.ZodTypeAny, "passthrough"> | undefined;
2037
- activeCpuDurationMs?: number | undefined;
2038
- networkTransfer?: {
2039
- ingress: number;
2040
- egress: number;
2041
- } | undefined;
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<{
2067
- mode: z.ZodLiteral<"custom">;
2068
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2069
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2070
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2071
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
2072
- domain: z.ZodString;
2073
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2074
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2075
- }, "strip", z.ZodTypeAny, {
2076
- domain: string;
2077
- headers?: Record<string, string> | undefined;
2078
- headerNames?: string[] | undefined;
2079
- }, {
2080
- domain: string;
2081
- headers?: Record<string, string> | undefined;
2082
- headerNames?: string[] | undefined;
2083
- }>, "many">>;
2084
- }, z.ZodTypeAny, "passthrough"> | undefined;
2085
- activeCpuDurationMs?: number | undefined;
2086
- networkTransfer?: {
2087
- ingress: number;
2088
- egress: number;
2089
- } | undefined;
2090
- }>;
2091
- }, "strip", z.ZodTypeAny, {
2092
- sandbox: {
2093
- id: string;
2094
- memory: number;
2095
- vcpus: number;
2096
- region: string;
2097
- runtime: string;
2098
- timeout: number;
2099
- status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
2100
- requestedAt: number;
2101
- createdAt: number;
2102
- cwd: string;
2103
- updatedAt: number;
2104
- startedAt?: number | undefined;
2105
- requestedStopAt?: number | undefined;
2106
- stoppedAt?: number | undefined;
2107
- abortedAt?: number | undefined;
2108
- duration?: number | undefined;
2109
- sourceSnapshotId?: string | undefined;
2110
- snapshottedAt?: number | undefined;
2111
- interactivePort?: number | undefined;
2112
- networkPolicy?: z.objectOutputType<{
2113
- mode: z.ZodLiteral<"allow-all">;
2114
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
2115
- mode: z.ZodLiteral<"deny-all">;
2116
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
2117
- mode: z.ZodLiteral<"custom">;
2118
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2119
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2120
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2121
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
2122
- domain: z.ZodString;
2123
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2124
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2125
- }, "strip", z.ZodTypeAny, {
2126
- domain: string;
2127
- headers?: Record<string, string> | undefined;
2128
- headerNames?: string[] | undefined;
2129
- }, {
2130
- domain: string;
2131
- headers?: Record<string, string> | undefined;
2132
- headerNames?: string[] | undefined;
2133
- }>, "many">>;
2134
- }, z.ZodTypeAny, "passthrough"> | undefined;
2135
- activeCpuDurationMs?: number | undefined;
2136
- networkTransfer?: {
2137
- ingress: number;
2138
- egress: number;
2139
- } | undefined;
2140
- };
2141
- }, {
2142
- sandbox: {
2143
- id: string;
2144
- memory: number;
2145
- vcpus: number;
2146
- region: string;
2147
- runtime: string;
2148
- timeout: number;
2149
- status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
2150
- requestedAt: number;
2151
- createdAt: number;
2152
- cwd: string;
2153
- updatedAt: number;
2154
- startedAt?: number | undefined;
2155
- requestedStopAt?: number | undefined;
2156
- stoppedAt?: number | undefined;
2157
- abortedAt?: number | undefined;
2158
- duration?: number | undefined;
2159
- sourceSnapshotId?: string | undefined;
2160
- snapshottedAt?: number | undefined;
2161
- interactivePort?: number | undefined;
2162
- networkPolicy?: z.objectInputType<{
2163
- mode: z.ZodLiteral<"allow-all">;
2164
- }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
2165
- mode: z.ZodLiteral<"deny-all">;
2166
- }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
2167
- mode: z.ZodLiteral<"custom">;
2168
- allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2169
- allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2170
- deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2171
- injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
2172
- domain: z.ZodString;
2173
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2174
- headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2175
- }, "strip", z.ZodTypeAny, {
2176
- domain: string;
2177
- headers?: Record<string, string> | undefined;
2178
- headerNames?: string[] | undefined;
2179
- }, {
2180
- domain: string;
2181
- headers?: Record<string, string> | undefined;
2182
- headerNames?: string[] | undefined;
2183
- }>, "many">>;
2184
- }, z.ZodTypeAny, "passthrough"> | undefined;
2185
- activeCpuDurationMs?: number | undefined;
2186
- networkTransfer?: {
2187
- ingress: number;
2188
- egress: number;
2189
- } | undefined;
2190
- };
2191
- }>;
2192
- export declare const CreateSnapshotResponse: z.ZodObject<{
2193
- snapshot: z.ZodObject<{
2194
- id: z.ZodString;
2195
- sourceSandboxId: z.ZodString;
2196
- region: z.ZodString;
2197
- status: z.ZodEnum<["created", "deleted", "failed"]>;
2198
- sizeBytes: z.ZodNumber;
2199
- expiresAt: z.ZodOptional<z.ZodNumber>;
2200
- createdAt: z.ZodNumber;
2201
- updatedAt: z.ZodNumber;
2202
- }, "strip", z.ZodTypeAny, {
2203
- id: string;
2204
- region: string;
2205
- status: "failed" | "created" | "deleted";
2206
- createdAt: number;
2207
- updatedAt: number;
2208
- sourceSandboxId: string;
2209
- sizeBytes: number;
2210
- expiresAt?: number | undefined;
2211
- }, {
2212
- id: string;
2213
- region: string;
2214
- status: "failed" | "created" | "deleted";
2215
- createdAt: number;
2216
- updatedAt: number;
2217
- sourceSandboxId: string;
2218
- sizeBytes: number;
2219
- expiresAt?: number | undefined;
2220
- }>;
2221
- sandbox: z.ZodObject<{
2118
+ headers?: Record<string, string> | undefined;
2119
+ headerNames?: string[] | undefined;
2120
+ }>, "many">>;
2121
+ }, z.ZodTypeAny, "passthrough">>]>>;
2122
+ activeCpuDurationMs: z.ZodOptional<z.ZodNumber>;
2123
+ networkTransfer: z.ZodOptional<z.ZodObject<{
2124
+ ingress: z.ZodNumber;
2125
+ egress: z.ZodNumber;
2126
+ }, "strip", z.ZodTypeAny, {
2127
+ ingress: number;
2128
+ egress: number;
2129
+ }, {
2130
+ ingress: number;
2131
+ egress: number;
2132
+ }>>;
2133
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2222
2134
  id: z.ZodString;
2223
2135
  memory: z.ZodNumber;
2224
2136
  vcpus: z.ZodNumber;
@@ -2316,31 +2228,39 @@ export declare const CreateSnapshotResponse: z.ZodObject<{
2316
2228
  ingress: number;
2317
2229
  egress: number;
2318
2230
  }>>;
2319
- }, "strip", z.ZodTypeAny, {
2320
- id: string;
2321
- memory: number;
2322
- vcpus: number;
2323
- region: string;
2324
- runtime: string;
2325
- timeout: number;
2326
- status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
2327
- requestedAt: number;
2328
- createdAt: number;
2329
- cwd: string;
2330
- updatedAt: number;
2331
- startedAt?: number | undefined;
2332
- requestedStopAt?: number | undefined;
2333
- stoppedAt?: number | undefined;
2334
- abortedAt?: number | undefined;
2335
- duration?: number | undefined;
2336
- sourceSnapshotId?: string | undefined;
2337
- snapshottedAt?: number | undefined;
2338
- interactivePort?: number | undefined;
2339
- networkPolicy?: z.objectOutputType<{
2231
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2232
+ id: z.ZodString;
2233
+ memory: z.ZodNumber;
2234
+ vcpus: z.ZodNumber;
2235
+ region: z.ZodString;
2236
+ runtime: z.ZodString;
2237
+ timeout: z.ZodNumber;
2238
+ status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
2239
+ requestedAt: z.ZodNumber;
2240
+ startedAt: z.ZodOptional<z.ZodNumber>;
2241
+ requestedStopAt: z.ZodOptional<z.ZodNumber>;
2242
+ stoppedAt: z.ZodOptional<z.ZodNumber>;
2243
+ abortedAt: z.ZodOptional<z.ZodNumber>;
2244
+ duration: z.ZodOptional<z.ZodNumber>;
2245
+ sourceSnapshotId: z.ZodOptional<z.ZodString>;
2246
+ snapshottedAt: z.ZodOptional<z.ZodNumber>;
2247
+ createdAt: z.ZodNumber;
2248
+ cwd: z.ZodString;
2249
+ updatedAt: z.ZodNumber;
2250
+ interactivePort: z.ZodOptional<z.ZodNumber>;
2251
+ networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2340
2252
  mode: z.ZodLiteral<"allow-all">;
2341
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
2253
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2254
+ mode: z.ZodLiteral<"allow-all">;
2255
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2256
+ mode: z.ZodLiteral<"allow-all">;
2257
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
2342
2258
  mode: z.ZodLiteral<"deny-all">;
2343
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
2259
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2260
+ mode: z.ZodLiteral<"deny-all">;
2261
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2262
+ mode: z.ZodLiteral<"deny-all">;
2263
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
2344
2264
  mode: z.ZodLiteral<"custom">;
2345
2265
  allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2346
2266
  allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -2358,37 +2278,7 @@ export declare const CreateSnapshotResponse: z.ZodObject<{
2358
2278
  headers?: Record<string, string> | undefined;
2359
2279
  headerNames?: string[] | undefined;
2360
2280
  }>, "many">>;
2361
- }, z.ZodTypeAny, "passthrough"> | undefined;
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<{
2281
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2392
2282
  mode: z.ZodLiteral<"custom">;
2393
2283
  allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2394
2284
  allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -2406,15 +2296,39 @@ export declare const CreateSnapshotResponse: z.ZodObject<{
2406
2296
  headers?: Record<string, string> | undefined;
2407
2297
  headerNames?: string[] | undefined;
2408
2298
  }>, "many">>;
2409
- }, z.ZodTypeAny, "passthrough"> | undefined;
2410
- activeCpuDurationMs?: number | undefined;
2411
- networkTransfer?: {
2299
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2300
+ mode: z.ZodLiteral<"custom">;
2301
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2302
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2303
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2304
+ injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
2305
+ domain: z.ZodString;
2306
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2307
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2308
+ }, "strip", z.ZodTypeAny, {
2309
+ domain: string;
2310
+ headers?: Record<string, string> | undefined;
2311
+ headerNames?: string[] | undefined;
2312
+ }, {
2313
+ domain: string;
2314
+ headers?: Record<string, string> | undefined;
2315
+ headerNames?: string[] | undefined;
2316
+ }>, "many">>;
2317
+ }, z.ZodTypeAny, "passthrough">>]>>;
2318
+ activeCpuDurationMs: z.ZodOptional<z.ZodNumber>;
2319
+ networkTransfer: z.ZodOptional<z.ZodObject<{
2320
+ ingress: z.ZodNumber;
2321
+ egress: z.ZodNumber;
2322
+ }, "strip", z.ZodTypeAny, {
2412
2323
  ingress: number;
2413
2324
  egress: number;
2414
- } | undefined;
2415
- }>;
2325
+ }, {
2326
+ ingress: number;
2327
+ egress: number;
2328
+ }>>;
2329
+ }, z.ZodTypeAny, "passthrough">>;
2416
2330
  }, "strip", z.ZodTypeAny, {
2417
- sandbox: {
2331
+ session: {
2418
2332
  id: string;
2419
2333
  memory: number;
2420
2334
  vcpus: number;
@@ -2462,6 +2376,8 @@ export declare const CreateSnapshotResponse: z.ZodObject<{
2462
2376
  ingress: number;
2463
2377
  egress: number;
2464
2378
  } | undefined;
2379
+ } & {
2380
+ [k: string]: unknown;
2465
2381
  };
2466
2382
  snapshot: {
2467
2383
  id: string;
@@ -2469,12 +2385,12 @@ export declare const CreateSnapshotResponse: z.ZodObject<{
2469
2385
  status: "failed" | "created" | "deleted";
2470
2386
  createdAt: number;
2471
2387
  updatedAt: number;
2472
- sourceSandboxId: string;
2388
+ sourceSessionId: string;
2473
2389
  sizeBytes: number;
2474
2390
  expiresAt?: number | undefined;
2475
2391
  };
2476
2392
  }, {
2477
- sandbox: {
2393
+ session: {
2478
2394
  id: string;
2479
2395
  memory: number;
2480
2396
  vcpus: number;
@@ -2522,6 +2438,8 @@ export declare const CreateSnapshotResponse: z.ZodObject<{
2522
2438
  ingress: number;
2523
2439
  egress: number;
2524
2440
  } | undefined;
2441
+ } & {
2442
+ [k: string]: unknown;
2525
2443
  };
2526
2444
  snapshot: {
2527
2445
  id: string;
@@ -2529,7 +2447,7 @@ export declare const CreateSnapshotResponse: z.ZodObject<{
2529
2447
  status: "failed" | "created" | "deleted";
2530
2448
  createdAt: number;
2531
2449
  updatedAt: number;
2532
- sourceSandboxId: string;
2450
+ sourceSessionId: string;
2533
2451
  sizeBytes: number;
2534
2452
  expiresAt?: number | undefined;
2535
2453
  };
@@ -2537,7 +2455,7 @@ export declare const CreateSnapshotResponse: z.ZodObject<{
2537
2455
  export declare const SnapshotResponse: z.ZodObject<{
2538
2456
  snapshot: z.ZodObject<{
2539
2457
  id: z.ZodString;
2540
- sourceSandboxId: z.ZodString;
2458
+ sourceSessionId: z.ZodString;
2541
2459
  region: z.ZodString;
2542
2460
  status: z.ZodEnum<["created", "deleted", "failed"]>;
2543
2461
  sizeBytes: z.ZodNumber;
@@ -2550,7 +2468,7 @@ export declare const SnapshotResponse: z.ZodObject<{
2550
2468
  status: "failed" | "created" | "deleted";
2551
2469
  createdAt: number;
2552
2470
  updatedAt: number;
2553
- sourceSandboxId: string;
2471
+ sourceSessionId: string;
2554
2472
  sizeBytes: number;
2555
2473
  expiresAt?: number | undefined;
2556
2474
  }, {
@@ -2559,7 +2477,7 @@ export declare const SnapshotResponse: z.ZodObject<{
2559
2477
  status: "failed" | "created" | "deleted";
2560
2478
  createdAt: number;
2561
2479
  updatedAt: number;
2562
- sourceSandboxId: string;
2480
+ sourceSessionId: string;
2563
2481
  sizeBytes: number;
2564
2482
  expiresAt?: number | undefined;
2565
2483
  }>;
@@ -2570,7 +2488,7 @@ export declare const SnapshotResponse: z.ZodObject<{
2570
2488
  status: "failed" | "created" | "deleted";
2571
2489
  createdAt: number;
2572
2490
  updatedAt: number;
2573
- sourceSandboxId: string;
2491
+ sourceSessionId: string;
2574
2492
  sizeBytes: number;
2575
2493
  expiresAt?: number | undefined;
2576
2494
  };
@@ -2581,19 +2499,19 @@ export declare const SnapshotResponse: z.ZodObject<{
2581
2499
  status: "failed" | "created" | "deleted";
2582
2500
  createdAt: number;
2583
2501
  updatedAt: number;
2584
- sourceSandboxId: string;
2502
+ sourceSessionId: string;
2585
2503
  sizeBytes: number;
2586
2504
  expiresAt?: number | undefined;
2587
2505
  };
2588
2506
  }>;
2589
- export declare const NamedSandbox: z.ZodObject<{
2507
+ export declare const Sandbox: z.ZodObject<{
2590
2508
  name: z.ZodString;
2591
2509
  persistent: z.ZodBoolean;
2592
- region: z.ZodString;
2593
- vcpus: z.ZodNumber;
2594
- memory: z.ZodNumber;
2595
- runtime: z.ZodString;
2596
- timeout: z.ZodNumber;
2510
+ region: z.ZodOptional<z.ZodString>;
2511
+ vcpus: z.ZodOptional<z.ZodNumber>;
2512
+ memory: z.ZodOptional<z.ZodNumber>;
2513
+ runtime: z.ZodOptional<z.ZodString>;
2514
+ timeout: z.ZodOptional<z.ZodNumber>;
2597
2515
  networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2598
2516
  mode: z.ZodLiteral<"allow-all">;
2599
2517
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -2667,21 +2585,23 @@ export declare const NamedSandbox: z.ZodObject<{
2667
2585
  totalDurationMs: z.ZodOptional<z.ZodNumber>;
2668
2586
  createdAt: z.ZodNumber;
2669
2587
  updatedAt: z.ZodNumber;
2670
- currentSandboxId: z.ZodString;
2588
+ currentSessionId: z.ZodString;
2671
2589
  currentSnapshotId: z.ZodOptional<z.ZodString>;
2672
2590
  status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
2591
+ cwd: z.ZodOptional<z.ZodString>;
2673
2592
  }, "strip", z.ZodTypeAny, {
2674
- memory: number;
2675
- vcpus: number;
2676
- region: string;
2677
- runtime: string;
2678
- timeout: number;
2679
2593
  status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
2680
2594
  createdAt: number;
2681
2595
  updatedAt: number;
2682
2596
  name: string;
2683
2597
  persistent: boolean;
2684
- currentSandboxId: string;
2598
+ currentSessionId: string;
2599
+ memory?: number | undefined;
2600
+ vcpus?: number | undefined;
2601
+ region?: string | undefined;
2602
+ runtime?: string | undefined;
2603
+ timeout?: number | undefined;
2604
+ cwd?: string | undefined;
2685
2605
  networkPolicy?: z.objectOutputType<{
2686
2606
  mode: z.ZodLiteral<"allow-all">;
2687
2607
  }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
@@ -2711,17 +2631,18 @@ export declare const NamedSandbox: z.ZodObject<{
2711
2631
  totalDurationMs?: number | undefined;
2712
2632
  currentSnapshotId?: string | undefined;
2713
2633
  }, {
2714
- memory: number;
2715
- vcpus: number;
2716
- region: string;
2717
- runtime: string;
2718
- timeout: number;
2719
2634
  status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
2720
2635
  createdAt: number;
2721
2636
  updatedAt: number;
2722
2637
  name: string;
2723
2638
  persistent: boolean;
2724
- currentSandboxId: string;
2639
+ currentSessionId: string;
2640
+ memory?: number | undefined;
2641
+ vcpus?: number | undefined;
2642
+ region?: string | undefined;
2643
+ runtime?: string | undefined;
2644
+ timeout?: number | undefined;
2645
+ cwd?: string | undefined;
2725
2646
  networkPolicy?: z.objectInputType<{
2726
2647
  mode: z.ZodLiteral<"allow-all">;
2727
2648
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
@@ -2751,16 +2672,16 @@ export declare const NamedSandbox: z.ZodObject<{
2751
2672
  totalDurationMs?: number | undefined;
2752
2673
  currentSnapshotId?: string | undefined;
2753
2674
  }>;
2754
- export type NamedSandboxMetaData = z.infer<typeof NamedSandbox>;
2755
- export declare const NamedSandboxAndSessionResponse: z.ZodObject<{
2756
- namedSandbox: z.ZodObject<{
2675
+ export type SandboxMetaData = z.infer<typeof Sandbox>;
2676
+ export declare const SandboxAndSessionResponse: z.ZodObject<{
2677
+ sandbox: z.ZodObject<{
2757
2678
  name: z.ZodString;
2758
2679
  persistent: z.ZodBoolean;
2759
- region: z.ZodString;
2760
- vcpus: z.ZodNumber;
2761
- memory: z.ZodNumber;
2762
- runtime: z.ZodString;
2763
- timeout: z.ZodNumber;
2680
+ region: z.ZodOptional<z.ZodString>;
2681
+ vcpus: z.ZodOptional<z.ZodNumber>;
2682
+ memory: z.ZodOptional<z.ZodNumber>;
2683
+ runtime: z.ZodOptional<z.ZodString>;
2684
+ timeout: z.ZodOptional<z.ZodNumber>;
2764
2685
  networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2765
2686
  mode: z.ZodLiteral<"allow-all">;
2766
2687
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -2834,26 +2755,126 @@ export declare const NamedSandboxAndSessionResponse: z.ZodObject<{
2834
2755
  totalDurationMs: z.ZodOptional<z.ZodNumber>;
2835
2756
  createdAt: z.ZodNumber;
2836
2757
  updatedAt: z.ZodNumber;
2837
- currentSandboxId: z.ZodString;
2758
+ currentSessionId: z.ZodString;
2838
2759
  currentSnapshotId: z.ZodOptional<z.ZodString>;
2839
2760
  status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
2761
+ cwd: z.ZodOptional<z.ZodString>;
2840
2762
  }, "strip", z.ZodTypeAny, {
2841
- memory: number;
2842
- vcpus: number;
2843
- region: string;
2844
- runtime: string;
2845
- timeout: number;
2846
2763
  status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
2847
2764
  createdAt: number;
2848
2765
  updatedAt: number;
2849
2766
  name: string;
2850
2767
  persistent: boolean;
2851
- currentSandboxId: string;
2768
+ currentSessionId: string;
2769
+ memory?: number | undefined;
2770
+ vcpus?: number | undefined;
2771
+ region?: string | undefined;
2772
+ runtime?: string | undefined;
2773
+ timeout?: number | undefined;
2774
+ cwd?: string | undefined;
2852
2775
  networkPolicy?: z.objectOutputType<{
2853
2776
  mode: z.ZodLiteral<"allow-all">;
2854
2777
  }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
2855
2778
  mode: z.ZodLiteral<"deny-all">;
2856
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
2779
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
2780
+ mode: z.ZodLiteral<"custom">;
2781
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2782
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2783
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2784
+ injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
2785
+ domain: z.ZodString;
2786
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2787
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2788
+ }, "strip", z.ZodTypeAny, {
2789
+ domain: string;
2790
+ headers?: Record<string, string> | undefined;
2791
+ headerNames?: string[] | undefined;
2792
+ }, {
2793
+ domain: string;
2794
+ headers?: Record<string, string> | undefined;
2795
+ headerNames?: string[] | undefined;
2796
+ }>, "many">>;
2797
+ }, z.ZodTypeAny, "passthrough"> | undefined;
2798
+ totalEgressBytes?: number | undefined;
2799
+ totalIngressBytes?: number | undefined;
2800
+ totalActiveCpuDurationMs?: number | undefined;
2801
+ totalDurationMs?: number | undefined;
2802
+ currentSnapshotId?: string | undefined;
2803
+ }, {
2804
+ status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
2805
+ createdAt: number;
2806
+ updatedAt: number;
2807
+ name: string;
2808
+ persistent: boolean;
2809
+ currentSessionId: string;
2810
+ memory?: number | undefined;
2811
+ vcpus?: number | undefined;
2812
+ region?: string | undefined;
2813
+ runtime?: string | undefined;
2814
+ timeout?: number | undefined;
2815
+ cwd?: string | undefined;
2816
+ networkPolicy?: z.objectInputType<{
2817
+ mode: z.ZodLiteral<"allow-all">;
2818
+ }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
2819
+ mode: z.ZodLiteral<"deny-all">;
2820
+ }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
2821
+ mode: z.ZodLiteral<"custom">;
2822
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2823
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2824
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2825
+ injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
2826
+ domain: z.ZodString;
2827
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2828
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2829
+ }, "strip", z.ZodTypeAny, {
2830
+ domain: string;
2831
+ headers?: Record<string, string> | undefined;
2832
+ headerNames?: string[] | undefined;
2833
+ }, {
2834
+ domain: string;
2835
+ headers?: Record<string, string> | undefined;
2836
+ headerNames?: string[] | undefined;
2837
+ }>, "many">>;
2838
+ }, z.ZodTypeAny, "passthrough"> | undefined;
2839
+ totalEgressBytes?: number | undefined;
2840
+ totalIngressBytes?: number | undefined;
2841
+ totalActiveCpuDurationMs?: number | undefined;
2842
+ totalDurationMs?: number | undefined;
2843
+ currentSnapshotId?: string | undefined;
2844
+ }>;
2845
+ session: z.ZodObject<{
2846
+ id: z.ZodString;
2847
+ memory: z.ZodNumber;
2848
+ vcpus: z.ZodNumber;
2849
+ region: z.ZodString;
2850
+ runtime: z.ZodString;
2851
+ timeout: z.ZodNumber;
2852
+ status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
2853
+ requestedAt: z.ZodNumber;
2854
+ startedAt: z.ZodOptional<z.ZodNumber>;
2855
+ requestedStopAt: z.ZodOptional<z.ZodNumber>;
2856
+ stoppedAt: z.ZodOptional<z.ZodNumber>;
2857
+ abortedAt: z.ZodOptional<z.ZodNumber>;
2858
+ duration: z.ZodOptional<z.ZodNumber>;
2859
+ sourceSnapshotId: z.ZodOptional<z.ZodString>;
2860
+ snapshottedAt: z.ZodOptional<z.ZodNumber>;
2861
+ createdAt: z.ZodNumber;
2862
+ cwd: z.ZodString;
2863
+ updatedAt: z.ZodNumber;
2864
+ interactivePort: z.ZodOptional<z.ZodNumber>;
2865
+ networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2866
+ mode: z.ZodLiteral<"allow-all">;
2867
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2868
+ mode: z.ZodLiteral<"allow-all">;
2869
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2870
+ mode: z.ZodLiteral<"allow-all">;
2871
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
2872
+ mode: z.ZodLiteral<"deny-all">;
2873
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2874
+ mode: z.ZodLiteral<"deny-all">;
2875
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2876
+ mode: z.ZodLiteral<"deny-all">;
2877
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
2857
2878
  mode: z.ZodLiteral<"custom">;
2858
2879
  allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2859
2880
  allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -2871,29 +2892,7 @@ export declare const NamedSandboxAndSessionResponse: z.ZodObject<{
2871
2892
  headers?: Record<string, string> | undefined;
2872
2893
  headerNames?: string[] | undefined;
2873
2894
  }>, "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
- memory: number;
2882
- vcpus: number;
2883
- region: string;
2884
- runtime: string;
2885
- timeout: number;
2886
- status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
2887
- createdAt: number;
2888
- updatedAt: number;
2889
- name: string;
2890
- persistent: boolean;
2891
- currentSandboxId: string;
2892
- networkPolicy?: z.objectInputType<{
2893
- mode: z.ZodLiteral<"allow-all">;
2894
- }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
2895
- mode: z.ZodLiteral<"deny-all">;
2896
- }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
2895
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2897
2896
  mode: z.ZodLiteral<"custom">;
2898
2897
  allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2899
2898
  allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -2911,14 +2910,37 @@ export declare const NamedSandboxAndSessionResponse: z.ZodObject<{
2911
2910
  headers?: Record<string, string> | undefined;
2912
2911
  headerNames?: string[] | undefined;
2913
2912
  }>, "many">>;
2914
- }, z.ZodTypeAny, "passthrough"> | undefined;
2915
- totalEgressBytes?: number | undefined;
2916
- totalIngressBytes?: number | undefined;
2917
- totalActiveCpuDurationMs?: number | undefined;
2918
- totalDurationMs?: number | undefined;
2919
- currentSnapshotId?: string | undefined;
2920
- }>;
2921
- sandbox: z.ZodObject<{
2913
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2914
+ mode: z.ZodLiteral<"custom">;
2915
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2916
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2917
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2918
+ injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
2919
+ domain: z.ZodString;
2920
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2921
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2922
+ }, "strip", z.ZodTypeAny, {
2923
+ domain: string;
2924
+ headers?: Record<string, string> | undefined;
2925
+ headerNames?: string[] | undefined;
2926
+ }, {
2927
+ domain: string;
2928
+ headers?: Record<string, string> | undefined;
2929
+ headerNames?: string[] | undefined;
2930
+ }>, "many">>;
2931
+ }, z.ZodTypeAny, "passthrough">>]>>;
2932
+ activeCpuDurationMs: z.ZodOptional<z.ZodNumber>;
2933
+ networkTransfer: z.ZodOptional<z.ZodObject<{
2934
+ ingress: z.ZodNumber;
2935
+ egress: z.ZodNumber;
2936
+ }, "strip", z.ZodTypeAny, {
2937
+ ingress: number;
2938
+ egress: number;
2939
+ }, {
2940
+ ingress: number;
2941
+ egress: number;
2942
+ }>>;
2943
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2922
2944
  id: z.ZodString;
2923
2945
  memory: z.ZodNumber;
2924
2946
  vcpus: z.ZodNumber;
@@ -3016,31 +3038,39 @@ export declare const NamedSandboxAndSessionResponse: z.ZodObject<{
3016
3038
  ingress: number;
3017
3039
  egress: number;
3018
3040
  }>>;
3019
- }, "strip", z.ZodTypeAny, {
3020
- id: string;
3021
- memory: number;
3022
- vcpus: number;
3023
- region: string;
3024
- runtime: string;
3025
- timeout: number;
3026
- status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
3027
- requestedAt: number;
3028
- createdAt: number;
3029
- cwd: string;
3030
- updatedAt: number;
3031
- startedAt?: number | undefined;
3032
- requestedStopAt?: number | undefined;
3033
- stoppedAt?: number | undefined;
3034
- abortedAt?: number | undefined;
3035
- duration?: number | undefined;
3036
- sourceSnapshotId?: string | undefined;
3037
- snapshottedAt?: number | undefined;
3038
- interactivePort?: number | undefined;
3039
- networkPolicy?: z.objectOutputType<{
3041
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3042
+ id: z.ZodString;
3043
+ memory: z.ZodNumber;
3044
+ vcpus: z.ZodNumber;
3045
+ region: z.ZodString;
3046
+ runtime: z.ZodString;
3047
+ timeout: z.ZodNumber;
3048
+ status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
3049
+ requestedAt: z.ZodNumber;
3050
+ startedAt: z.ZodOptional<z.ZodNumber>;
3051
+ requestedStopAt: z.ZodOptional<z.ZodNumber>;
3052
+ stoppedAt: z.ZodOptional<z.ZodNumber>;
3053
+ abortedAt: z.ZodOptional<z.ZodNumber>;
3054
+ duration: z.ZodOptional<z.ZodNumber>;
3055
+ sourceSnapshotId: z.ZodOptional<z.ZodString>;
3056
+ snapshottedAt: z.ZodOptional<z.ZodNumber>;
3057
+ createdAt: z.ZodNumber;
3058
+ cwd: z.ZodString;
3059
+ updatedAt: z.ZodNumber;
3060
+ interactivePort: z.ZodOptional<z.ZodNumber>;
3061
+ networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
3040
3062
  mode: z.ZodLiteral<"allow-all">;
3041
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
3063
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3064
+ mode: z.ZodLiteral<"allow-all">;
3065
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3066
+ mode: z.ZodLiteral<"allow-all">;
3067
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
3042
3068
  mode: z.ZodLiteral<"deny-all">;
3043
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
3069
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3070
+ mode: z.ZodLiteral<"deny-all">;
3071
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3072
+ mode: z.ZodLiteral<"deny-all">;
3073
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
3044
3074
  mode: z.ZodLiteral<"custom">;
3045
3075
  allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3046
3076
  allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -3058,37 +3088,7 @@ export declare const NamedSandboxAndSessionResponse: z.ZodObject<{
3058
3088
  headers?: Record<string, string> | undefined;
3059
3089
  headerNames?: string[] | undefined;
3060
3090
  }>, "many">>;
3061
- }, z.ZodTypeAny, "passthrough"> | undefined;
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<{
3091
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3092
3092
  mode: z.ZodLiteral<"custom">;
3093
3093
  allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3094
3094
  allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -3106,13 +3106,37 @@ export declare const NamedSandboxAndSessionResponse: z.ZodObject<{
3106
3106
  headers?: Record<string, string> | undefined;
3107
3107
  headerNames?: string[] | undefined;
3108
3108
  }>, "many">>;
3109
- }, z.ZodTypeAny, "passthrough"> | undefined;
3110
- activeCpuDurationMs?: number | undefined;
3111
- networkTransfer?: {
3109
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3110
+ mode: z.ZodLiteral<"custom">;
3111
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3112
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3113
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3114
+ injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
3115
+ domain: z.ZodString;
3116
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3117
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3118
+ }, "strip", z.ZodTypeAny, {
3119
+ domain: string;
3120
+ headers?: Record<string, string> | undefined;
3121
+ headerNames?: string[] | undefined;
3122
+ }, {
3123
+ domain: string;
3124
+ headers?: Record<string, string> | undefined;
3125
+ headerNames?: string[] | undefined;
3126
+ }>, "many">>;
3127
+ }, z.ZodTypeAny, "passthrough">>]>>;
3128
+ activeCpuDurationMs: z.ZodOptional<z.ZodNumber>;
3129
+ networkTransfer: z.ZodOptional<z.ZodObject<{
3130
+ ingress: z.ZodNumber;
3131
+ egress: z.ZodNumber;
3132
+ }, "strip", z.ZodTypeAny, {
3112
3133
  ingress: number;
3113
3134
  egress: number;
3114
- } | undefined;
3115
- }>;
3135
+ }, {
3136
+ ingress: number;
3137
+ egress: number;
3138
+ }>>;
3139
+ }, z.ZodTypeAny, "passthrough">>;
3116
3140
  routes: z.ZodArray<z.ZodObject<{
3117
3141
  url: z.ZodString;
3118
3142
  subdomain: z.ZodString;
@@ -3127,7 +3151,7 @@ export declare const NamedSandboxAndSessionResponse: z.ZodObject<{
3127
3151
  port: number;
3128
3152
  }>, "many">;
3129
3153
  }, "strip", z.ZodTypeAny, {
3130
- sandbox: {
3154
+ session: {
3131
3155
  id: string;
3132
3156
  memory: number;
3133
3157
  vcpus: number;
@@ -3175,24 +3199,27 @@ export declare const NamedSandboxAndSessionResponse: z.ZodObject<{
3175
3199
  ingress: number;
3176
3200
  egress: number;
3177
3201
  } | undefined;
3202
+ } & {
3203
+ [k: string]: unknown;
3178
3204
  };
3179
3205
  routes: {
3180
3206
  url: string;
3181
3207
  subdomain: string;
3182
3208
  port: number;
3183
3209
  }[];
3184
- namedSandbox: {
3185
- memory: number;
3186
- vcpus: number;
3187
- region: string;
3188
- runtime: string;
3189
- timeout: number;
3210
+ sandbox: {
3190
3211
  status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
3191
3212
  createdAt: number;
3192
3213
  updatedAt: number;
3193
3214
  name: string;
3194
3215
  persistent: boolean;
3195
- currentSandboxId: string;
3216
+ currentSessionId: string;
3217
+ memory?: number | undefined;
3218
+ vcpus?: number | undefined;
3219
+ region?: string | undefined;
3220
+ runtime?: string | undefined;
3221
+ timeout?: number | undefined;
3222
+ cwd?: string | undefined;
3196
3223
  networkPolicy?: z.objectOutputType<{
3197
3224
  mode: z.ZodLiteral<"allow-all">;
3198
3225
  }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
@@ -3223,7 +3250,7 @@ export declare const NamedSandboxAndSessionResponse: z.ZodObject<{
3223
3250
  currentSnapshotId?: string | undefined;
3224
3251
  };
3225
3252
  }, {
3226
- sandbox: {
3253
+ session: {
3227
3254
  id: string;
3228
3255
  memory: number;
3229
3256
  vcpus: number;
@@ -3271,24 +3298,27 @@ export declare const NamedSandboxAndSessionResponse: z.ZodObject<{
3271
3298
  ingress: number;
3272
3299
  egress: number;
3273
3300
  } | undefined;
3301
+ } & {
3302
+ [k: string]: unknown;
3274
3303
  };
3275
3304
  routes: {
3276
3305
  url: string;
3277
3306
  subdomain: string;
3278
3307
  port: number;
3279
3308
  }[];
3280
- namedSandbox: {
3281
- memory: number;
3282
- vcpus: number;
3283
- region: string;
3284
- runtime: string;
3285
- timeout: number;
3309
+ sandbox: {
3286
3310
  status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
3287
3311
  createdAt: number;
3288
3312
  updatedAt: number;
3289
3313
  name: string;
3290
3314
  persistent: boolean;
3291
- currentSandboxId: string;
3315
+ currentSessionId: string;
3316
+ memory?: number | undefined;
3317
+ vcpus?: number | undefined;
3318
+ region?: string | undefined;
3319
+ runtime?: string | undefined;
3320
+ timeout?: number | undefined;
3321
+ cwd?: string | undefined;
3292
3322
  networkPolicy?: z.objectInputType<{
3293
3323
  mode: z.ZodLiteral<"allow-all">;
3294
3324
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
@@ -3332,15 +3362,15 @@ export declare const CursorPagination: z.ZodObject<{
3332
3362
  next: string | null;
3333
3363
  total: number;
3334
3364
  }>;
3335
- export declare const NamedSandboxesPaginationResponse: z.ZodObject<{
3336
- namedSandboxes: z.ZodArray<z.ZodObject<{
3365
+ export declare const SandboxesPaginationResponse: z.ZodObject<{
3366
+ sandboxes: z.ZodArray<z.ZodObject<{
3337
3367
  name: z.ZodString;
3338
3368
  persistent: z.ZodBoolean;
3339
- region: z.ZodString;
3340
- vcpus: z.ZodNumber;
3341
- memory: z.ZodNumber;
3342
- runtime: z.ZodString;
3343
- timeout: z.ZodNumber;
3369
+ region: z.ZodOptional<z.ZodString>;
3370
+ vcpus: z.ZodOptional<z.ZodNumber>;
3371
+ memory: z.ZodOptional<z.ZodNumber>;
3372
+ runtime: z.ZodOptional<z.ZodString>;
3373
+ timeout: z.ZodOptional<z.ZodNumber>;
3344
3374
  networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
3345
3375
  mode: z.ZodLiteral<"allow-all">;
3346
3376
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -3414,21 +3444,23 @@ export declare const NamedSandboxesPaginationResponse: z.ZodObject<{
3414
3444
  totalDurationMs: z.ZodOptional<z.ZodNumber>;
3415
3445
  createdAt: z.ZodNumber;
3416
3446
  updatedAt: z.ZodNumber;
3417
- currentSandboxId: z.ZodString;
3447
+ currentSessionId: z.ZodString;
3418
3448
  currentSnapshotId: z.ZodOptional<z.ZodString>;
3419
3449
  status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
3450
+ cwd: z.ZodOptional<z.ZodString>;
3420
3451
  }, "strip", z.ZodTypeAny, {
3421
- memory: number;
3422
- vcpus: number;
3423
- region: string;
3424
- runtime: string;
3425
- timeout: number;
3426
3452
  status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
3427
3453
  createdAt: number;
3428
3454
  updatedAt: number;
3429
3455
  name: string;
3430
3456
  persistent: boolean;
3431
- currentSandboxId: string;
3457
+ currentSessionId: string;
3458
+ memory?: number | undefined;
3459
+ vcpus?: number | undefined;
3460
+ region?: string | undefined;
3461
+ runtime?: string | undefined;
3462
+ timeout?: number | undefined;
3463
+ cwd?: string | undefined;
3432
3464
  networkPolicy?: z.objectOutputType<{
3433
3465
  mode: z.ZodLiteral<"allow-all">;
3434
3466
  }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
@@ -3458,17 +3490,18 @@ export declare const NamedSandboxesPaginationResponse: z.ZodObject<{
3458
3490
  totalDurationMs?: number | undefined;
3459
3491
  currentSnapshotId?: string | undefined;
3460
3492
  }, {
3461
- memory: number;
3462
- vcpus: number;
3463
- region: string;
3464
- runtime: string;
3465
- timeout: number;
3466
3493
  status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
3467
3494
  createdAt: number;
3468
3495
  updatedAt: number;
3469
3496
  name: string;
3470
3497
  persistent: boolean;
3471
- currentSandboxId: string;
3498
+ currentSessionId: string;
3499
+ memory?: number | undefined;
3500
+ vcpus?: number | undefined;
3501
+ region?: string | undefined;
3502
+ runtime?: string | undefined;
3503
+ timeout?: number | undefined;
3504
+ cwd?: string | undefined;
3472
3505
  networkPolicy?: z.objectInputType<{
3473
3506
  mode: z.ZodLiteral<"allow-all">;
3474
3507
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
@@ -3517,18 +3550,19 @@ export declare const NamedSandboxesPaginationResponse: z.ZodObject<{
3517
3550
  next: string | null;
3518
3551
  total: number;
3519
3552
  };
3520
- namedSandboxes: {
3521
- memory: number;
3522
- vcpus: number;
3523
- region: string;
3524
- runtime: string;
3525
- timeout: number;
3553
+ sandboxes: {
3526
3554
  status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
3527
3555
  createdAt: number;
3528
3556
  updatedAt: number;
3529
3557
  name: string;
3530
3558
  persistent: boolean;
3531
- currentSandboxId: string;
3559
+ currentSessionId: string;
3560
+ memory?: number | undefined;
3561
+ vcpus?: number | undefined;
3562
+ region?: string | undefined;
3563
+ runtime?: string | undefined;
3564
+ timeout?: number | undefined;
3565
+ cwd?: string | undefined;
3532
3566
  networkPolicy?: z.objectOutputType<{
3533
3567
  mode: z.ZodLiteral<"allow-all">;
3534
3568
  }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
@@ -3564,18 +3598,19 @@ export declare const NamedSandboxesPaginationResponse: z.ZodObject<{
3564
3598
  next: string | null;
3565
3599
  total: number;
3566
3600
  };
3567
- namedSandboxes: {
3568
- memory: number;
3569
- vcpus: number;
3570
- region: string;
3571
- runtime: string;
3572
- timeout: number;
3601
+ sandboxes: {
3573
3602
  status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
3574
3603
  createdAt: number;
3575
3604
  updatedAt: number;
3576
3605
  name: string;
3577
3606
  persistent: boolean;
3578
- currentSandboxId: string;
3607
+ currentSessionId: string;
3608
+ memory?: number | undefined;
3609
+ vcpus?: number | undefined;
3610
+ region?: string | undefined;
3611
+ runtime?: string | undefined;
3612
+ timeout?: number | undefined;
3613
+ cwd?: string | undefined;
3579
3614
  networkPolicy?: z.objectInputType<{
3580
3615
  mode: z.ZodLiteral<"allow-all">;
3581
3616
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
@@ -3606,15 +3641,15 @@ export declare const NamedSandboxesPaginationResponse: z.ZodObject<{
3606
3641
  currentSnapshotId?: string | undefined;
3607
3642
  }[];
3608
3643
  }>;
3609
- export declare const UpdateNamedSandboxResponse: z.ZodObject<{
3610
- namedSandbox: z.ZodObject<{
3644
+ export declare const UpdateSandboxResponse: z.ZodObject<{
3645
+ sandbox: z.ZodObject<{
3611
3646
  name: z.ZodString;
3612
3647
  persistent: z.ZodBoolean;
3613
- region: z.ZodString;
3614
- vcpus: z.ZodNumber;
3615
- memory: z.ZodNumber;
3616
- runtime: z.ZodString;
3617
- timeout: z.ZodNumber;
3648
+ region: z.ZodOptional<z.ZodString>;
3649
+ vcpus: z.ZodOptional<z.ZodNumber>;
3650
+ memory: z.ZodOptional<z.ZodNumber>;
3651
+ runtime: z.ZodOptional<z.ZodString>;
3652
+ timeout: z.ZodOptional<z.ZodNumber>;
3618
3653
  networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
3619
3654
  mode: z.ZodLiteral<"allow-all">;
3620
3655
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -3688,21 +3723,23 @@ export declare const UpdateNamedSandboxResponse: z.ZodObject<{
3688
3723
  totalDurationMs: z.ZodOptional<z.ZodNumber>;
3689
3724
  createdAt: z.ZodNumber;
3690
3725
  updatedAt: z.ZodNumber;
3691
- currentSandboxId: z.ZodString;
3726
+ currentSessionId: z.ZodString;
3692
3727
  currentSnapshotId: z.ZodOptional<z.ZodString>;
3693
3728
  status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
3729
+ cwd: z.ZodOptional<z.ZodString>;
3694
3730
  }, "strip", z.ZodTypeAny, {
3695
- memory: number;
3696
- vcpus: number;
3697
- region: string;
3698
- runtime: string;
3699
- timeout: number;
3700
3731
  status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
3701
3732
  createdAt: number;
3702
3733
  updatedAt: number;
3703
3734
  name: string;
3704
3735
  persistent: boolean;
3705
- currentSandboxId: string;
3736
+ currentSessionId: string;
3737
+ memory?: number | undefined;
3738
+ vcpus?: number | undefined;
3739
+ region?: string | undefined;
3740
+ runtime?: string | undefined;
3741
+ timeout?: number | undefined;
3742
+ cwd?: string | undefined;
3706
3743
  networkPolicy?: z.objectOutputType<{
3707
3744
  mode: z.ZodLiteral<"allow-all">;
3708
3745
  }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
@@ -3732,17 +3769,18 @@ export declare const UpdateNamedSandboxResponse: z.ZodObject<{
3732
3769
  totalDurationMs?: number | undefined;
3733
3770
  currentSnapshotId?: string | undefined;
3734
3771
  }, {
3735
- memory: number;
3736
- vcpus: number;
3737
- region: string;
3738
- runtime: string;
3739
- timeout: number;
3740
3772
  status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
3741
3773
  createdAt: number;
3742
3774
  updatedAt: number;
3743
3775
  name: string;
3744
3776
  persistent: boolean;
3745
- currentSandboxId: string;
3777
+ currentSessionId: string;
3778
+ memory?: number | undefined;
3779
+ vcpus?: number | undefined;
3780
+ region?: string | undefined;
3781
+ runtime?: string | undefined;
3782
+ timeout?: number | undefined;
3783
+ cwd?: string | undefined;
3746
3784
  networkPolicy?: z.objectInputType<{
3747
3785
  mode: z.ZodLiteral<"allow-all">;
3748
3786
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
@@ -3773,18 +3811,19 @@ export declare const UpdateNamedSandboxResponse: z.ZodObject<{
3773
3811
  currentSnapshotId?: string | undefined;
3774
3812
  }>;
3775
3813
  }, "strip", z.ZodTypeAny, {
3776
- namedSandbox: {
3777
- memory: number;
3778
- vcpus: number;
3779
- region: string;
3780
- runtime: string;
3781
- timeout: number;
3814
+ sandbox: {
3782
3815
  status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
3783
3816
  createdAt: number;
3784
3817
  updatedAt: number;
3785
3818
  name: string;
3786
3819
  persistent: boolean;
3787
- currentSandboxId: string;
3820
+ currentSessionId: string;
3821
+ memory?: number | undefined;
3822
+ vcpus?: number | undefined;
3823
+ region?: string | undefined;
3824
+ runtime?: string | undefined;
3825
+ timeout?: number | undefined;
3826
+ cwd?: string | undefined;
3788
3827
  networkPolicy?: z.objectOutputType<{
3789
3828
  mode: z.ZodLiteral<"allow-all">;
3790
3829
  }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
@@ -3815,18 +3854,19 @@ export declare const UpdateNamedSandboxResponse: z.ZodObject<{
3815
3854
  currentSnapshotId?: string | undefined;
3816
3855
  };
3817
3856
  }, {
3818
- namedSandbox: {
3819
- memory: number;
3820
- vcpus: number;
3821
- region: string;
3822
- runtime: string;
3823
- timeout: number;
3857
+ sandbox: {
3824
3858
  status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
3825
3859
  createdAt: number;
3826
3860
  updatedAt: number;
3827
3861
  name: string;
3828
3862
  persistent: boolean;
3829
- currentSandboxId: string;
3863
+ currentSessionId: string;
3864
+ memory?: number | undefined;
3865
+ vcpus?: number | undefined;
3866
+ region?: string | undefined;
3867
+ runtime?: string | undefined;
3868
+ timeout?: number | undefined;
3869
+ cwd?: string | undefined;
3830
3870
  networkPolicy?: z.objectInputType<{
3831
3871
  mode: z.ZodLiteral<"allow-all">;
3832
3872
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{