@vercel/sandbox 2.0.0-beta.4 → 2.0.0-beta.7

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,24 @@ 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>;
2592
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2673
2593
  }, "strip", z.ZodTypeAny, {
2674
- memory: number;
2675
- vcpus: number;
2676
- region: string;
2677
- runtime: string;
2678
- timeout: number;
2679
2594
  status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
2680
2595
  createdAt: number;
2681
2596
  updatedAt: number;
2682
2597
  name: string;
2683
2598
  persistent: boolean;
2684
- currentSandboxId: string;
2599
+ currentSessionId: string;
2600
+ memory?: number | undefined;
2601
+ vcpus?: number | undefined;
2602
+ region?: string | undefined;
2603
+ runtime?: string | undefined;
2604
+ timeout?: number | undefined;
2605
+ cwd?: string | undefined;
2685
2606
  networkPolicy?: z.objectOutputType<{
2686
2607
  mode: z.ZodLiteral<"allow-all">;
2687
2608
  }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
@@ -2710,18 +2631,20 @@ export declare const NamedSandbox: z.ZodObject<{
2710
2631
  totalActiveCpuDurationMs?: number | undefined;
2711
2632
  totalDurationMs?: number | undefined;
2712
2633
  currentSnapshotId?: string | undefined;
2634
+ tags?: Record<string, string> | undefined;
2713
2635
  }, {
2714
- memory: number;
2715
- vcpus: number;
2716
- region: string;
2717
- runtime: string;
2718
- timeout: number;
2719
2636
  status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
2720
2637
  createdAt: number;
2721
2638
  updatedAt: number;
2722
2639
  name: string;
2723
2640
  persistent: boolean;
2724
- currentSandboxId: string;
2641
+ currentSessionId: string;
2642
+ memory?: number | undefined;
2643
+ vcpus?: number | undefined;
2644
+ region?: string | undefined;
2645
+ runtime?: string | undefined;
2646
+ timeout?: number | undefined;
2647
+ cwd?: string | undefined;
2725
2648
  networkPolicy?: z.objectInputType<{
2726
2649
  mode: z.ZodLiteral<"allow-all">;
2727
2650
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
@@ -2750,17 +2673,18 @@ export declare const NamedSandbox: z.ZodObject<{
2750
2673
  totalActiveCpuDurationMs?: number | undefined;
2751
2674
  totalDurationMs?: number | undefined;
2752
2675
  currentSnapshotId?: string | undefined;
2676
+ tags?: Record<string, string> | undefined;
2753
2677
  }>;
2754
- export type NamedSandboxMetaData = z.infer<typeof NamedSandbox>;
2755
- export declare const NamedSandboxAndSessionResponse: z.ZodObject<{
2756
- namedSandbox: z.ZodObject<{
2678
+ export type SandboxMetaData = z.infer<typeof Sandbox>;
2679
+ export declare const SandboxAndSessionResponse: z.ZodObject<{
2680
+ sandbox: z.ZodObject<{
2757
2681
  name: z.ZodString;
2758
2682
  persistent: z.ZodBoolean;
2759
- region: z.ZodString;
2760
- vcpus: z.ZodNumber;
2761
- memory: z.ZodNumber;
2762
- runtime: z.ZodString;
2763
- timeout: z.ZodNumber;
2683
+ region: z.ZodOptional<z.ZodString>;
2684
+ vcpus: z.ZodOptional<z.ZodNumber>;
2685
+ memory: z.ZodOptional<z.ZodNumber>;
2686
+ runtime: z.ZodOptional<z.ZodString>;
2687
+ timeout: z.ZodOptional<z.ZodNumber>;
2764
2688
  networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2765
2689
  mode: z.ZodLiteral<"allow-all">;
2766
2690
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -2834,26 +2758,129 @@ export declare const NamedSandboxAndSessionResponse: z.ZodObject<{
2834
2758
  totalDurationMs: z.ZodOptional<z.ZodNumber>;
2835
2759
  createdAt: z.ZodNumber;
2836
2760
  updatedAt: z.ZodNumber;
2837
- currentSandboxId: z.ZodString;
2761
+ currentSessionId: z.ZodString;
2838
2762
  currentSnapshotId: z.ZodOptional<z.ZodString>;
2839
2763
  status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
2764
+ cwd: z.ZodOptional<z.ZodString>;
2765
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2840
2766
  }, "strip", z.ZodTypeAny, {
2841
- memory: number;
2842
- vcpus: number;
2843
- region: string;
2844
- runtime: string;
2845
- timeout: number;
2846
2767
  status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
2847
2768
  createdAt: number;
2848
2769
  updatedAt: number;
2849
2770
  name: string;
2850
2771
  persistent: boolean;
2851
- currentSandboxId: string;
2772
+ currentSessionId: string;
2773
+ memory?: number | undefined;
2774
+ vcpus?: number | undefined;
2775
+ region?: string | undefined;
2776
+ runtime?: string | undefined;
2777
+ timeout?: number | undefined;
2778
+ cwd?: string | undefined;
2852
2779
  networkPolicy?: z.objectOutputType<{
2853
2780
  mode: z.ZodLiteral<"allow-all">;
2854
2781
  }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
2855
2782
  mode: z.ZodLiteral<"deny-all">;
2856
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
2783
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
2784
+ mode: z.ZodLiteral<"custom">;
2785
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2786
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2787
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2788
+ injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
2789
+ domain: z.ZodString;
2790
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2791
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2792
+ }, "strip", z.ZodTypeAny, {
2793
+ domain: string;
2794
+ headers?: Record<string, string> | undefined;
2795
+ headerNames?: string[] | undefined;
2796
+ }, {
2797
+ domain: string;
2798
+ headers?: Record<string, string> | undefined;
2799
+ headerNames?: string[] | undefined;
2800
+ }>, "many">>;
2801
+ }, z.ZodTypeAny, "passthrough"> | undefined;
2802
+ totalEgressBytes?: number | undefined;
2803
+ totalIngressBytes?: number | undefined;
2804
+ totalActiveCpuDurationMs?: number | undefined;
2805
+ totalDurationMs?: number | undefined;
2806
+ currentSnapshotId?: string | undefined;
2807
+ tags?: Record<string, string> | undefined;
2808
+ }, {
2809
+ status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
2810
+ createdAt: number;
2811
+ updatedAt: number;
2812
+ name: string;
2813
+ persistent: boolean;
2814
+ currentSessionId: string;
2815
+ memory?: number | undefined;
2816
+ vcpus?: number | undefined;
2817
+ region?: string | undefined;
2818
+ runtime?: string | undefined;
2819
+ timeout?: number | undefined;
2820
+ cwd?: string | undefined;
2821
+ networkPolicy?: z.objectInputType<{
2822
+ mode: z.ZodLiteral<"allow-all">;
2823
+ }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
2824
+ mode: z.ZodLiteral<"deny-all">;
2825
+ }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
2826
+ mode: z.ZodLiteral<"custom">;
2827
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2828
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2829
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2830
+ injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
2831
+ domain: z.ZodString;
2832
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2833
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2834
+ }, "strip", z.ZodTypeAny, {
2835
+ domain: string;
2836
+ headers?: Record<string, string> | undefined;
2837
+ headerNames?: string[] | undefined;
2838
+ }, {
2839
+ domain: string;
2840
+ headers?: Record<string, string> | undefined;
2841
+ headerNames?: string[] | undefined;
2842
+ }>, "many">>;
2843
+ }, z.ZodTypeAny, "passthrough"> | undefined;
2844
+ totalEgressBytes?: number | undefined;
2845
+ totalIngressBytes?: number | undefined;
2846
+ totalActiveCpuDurationMs?: number | undefined;
2847
+ totalDurationMs?: number | undefined;
2848
+ currentSnapshotId?: string | undefined;
2849
+ tags?: Record<string, string> | undefined;
2850
+ }>;
2851
+ session: z.ZodObject<{
2852
+ id: z.ZodString;
2853
+ memory: z.ZodNumber;
2854
+ vcpus: z.ZodNumber;
2855
+ region: z.ZodString;
2856
+ runtime: z.ZodString;
2857
+ timeout: z.ZodNumber;
2858
+ status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
2859
+ requestedAt: z.ZodNumber;
2860
+ startedAt: z.ZodOptional<z.ZodNumber>;
2861
+ requestedStopAt: z.ZodOptional<z.ZodNumber>;
2862
+ stoppedAt: z.ZodOptional<z.ZodNumber>;
2863
+ abortedAt: z.ZodOptional<z.ZodNumber>;
2864
+ duration: z.ZodOptional<z.ZodNumber>;
2865
+ sourceSnapshotId: z.ZodOptional<z.ZodString>;
2866
+ snapshottedAt: z.ZodOptional<z.ZodNumber>;
2867
+ createdAt: z.ZodNumber;
2868
+ cwd: z.ZodString;
2869
+ updatedAt: z.ZodNumber;
2870
+ interactivePort: z.ZodOptional<z.ZodNumber>;
2871
+ networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2872
+ mode: z.ZodLiteral<"allow-all">;
2873
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2874
+ mode: z.ZodLiteral<"allow-all">;
2875
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2876
+ mode: z.ZodLiteral<"allow-all">;
2877
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
2878
+ mode: z.ZodLiteral<"deny-all">;
2879
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2880
+ mode: z.ZodLiteral<"deny-all">;
2881
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2882
+ mode: z.ZodLiteral<"deny-all">;
2883
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
2857
2884
  mode: z.ZodLiteral<"custom">;
2858
2885
  allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2859
2886
  allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -2871,29 +2898,7 @@ export declare const NamedSandboxAndSessionResponse: z.ZodObject<{
2871
2898
  headers?: Record<string, string> | undefined;
2872
2899
  headerNames?: string[] | undefined;
2873
2900
  }>, "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<{
2901
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2897
2902
  mode: z.ZodLiteral<"custom">;
2898
2903
  allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2899
2904
  allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -2911,14 +2916,37 @@ export declare const NamedSandboxAndSessionResponse: z.ZodObject<{
2911
2916
  headers?: Record<string, string> | undefined;
2912
2917
  headerNames?: string[] | undefined;
2913
2918
  }>, "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<{
2919
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2920
+ mode: z.ZodLiteral<"custom">;
2921
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2922
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2923
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2924
+ injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
2925
+ domain: z.ZodString;
2926
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2927
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2928
+ }, "strip", z.ZodTypeAny, {
2929
+ domain: string;
2930
+ headers?: Record<string, string> | undefined;
2931
+ headerNames?: string[] | undefined;
2932
+ }, {
2933
+ domain: string;
2934
+ headers?: Record<string, string> | undefined;
2935
+ headerNames?: string[] | undefined;
2936
+ }>, "many">>;
2937
+ }, z.ZodTypeAny, "passthrough">>]>>;
2938
+ activeCpuDurationMs: z.ZodOptional<z.ZodNumber>;
2939
+ networkTransfer: z.ZodOptional<z.ZodObject<{
2940
+ ingress: z.ZodNumber;
2941
+ egress: z.ZodNumber;
2942
+ }, "strip", z.ZodTypeAny, {
2943
+ ingress: number;
2944
+ egress: number;
2945
+ }, {
2946
+ ingress: number;
2947
+ egress: number;
2948
+ }>>;
2949
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2922
2950
  id: z.ZodString;
2923
2951
  memory: z.ZodNumber;
2924
2952
  vcpus: z.ZodNumber;
@@ -3016,31 +3044,39 @@ export declare const NamedSandboxAndSessionResponse: z.ZodObject<{
3016
3044
  ingress: number;
3017
3045
  egress: number;
3018
3046
  }>>;
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<{
3047
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3048
+ id: z.ZodString;
3049
+ memory: z.ZodNumber;
3050
+ vcpus: z.ZodNumber;
3051
+ region: z.ZodString;
3052
+ runtime: z.ZodString;
3053
+ timeout: z.ZodNumber;
3054
+ status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
3055
+ requestedAt: z.ZodNumber;
3056
+ startedAt: z.ZodOptional<z.ZodNumber>;
3057
+ requestedStopAt: z.ZodOptional<z.ZodNumber>;
3058
+ stoppedAt: z.ZodOptional<z.ZodNumber>;
3059
+ abortedAt: z.ZodOptional<z.ZodNumber>;
3060
+ duration: z.ZodOptional<z.ZodNumber>;
3061
+ sourceSnapshotId: z.ZodOptional<z.ZodString>;
3062
+ snapshottedAt: z.ZodOptional<z.ZodNumber>;
3063
+ createdAt: z.ZodNumber;
3064
+ cwd: z.ZodString;
3065
+ updatedAt: z.ZodNumber;
3066
+ interactivePort: z.ZodOptional<z.ZodNumber>;
3067
+ networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
3040
3068
  mode: z.ZodLiteral<"allow-all">;
3041
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
3069
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3070
+ mode: z.ZodLiteral<"allow-all">;
3071
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3072
+ mode: z.ZodLiteral<"allow-all">;
3073
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
3042
3074
  mode: z.ZodLiteral<"deny-all">;
3043
- }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
3075
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3076
+ mode: z.ZodLiteral<"deny-all">;
3077
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3078
+ mode: z.ZodLiteral<"deny-all">;
3079
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
3044
3080
  mode: z.ZodLiteral<"custom">;
3045
3081
  allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3046
3082
  allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -3058,37 +3094,7 @@ export declare const NamedSandboxAndSessionResponse: z.ZodObject<{
3058
3094
  headers?: Record<string, string> | undefined;
3059
3095
  headerNames?: string[] | undefined;
3060
3096
  }>, "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<{
3097
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3092
3098
  mode: z.ZodLiteral<"custom">;
3093
3099
  allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3094
3100
  allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -3106,13 +3112,37 @@ export declare const NamedSandboxAndSessionResponse: z.ZodObject<{
3106
3112
  headers?: Record<string, string> | undefined;
3107
3113
  headerNames?: string[] | undefined;
3108
3114
  }>, "many">>;
3109
- }, z.ZodTypeAny, "passthrough"> | undefined;
3110
- activeCpuDurationMs?: number | undefined;
3111
- networkTransfer?: {
3115
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3116
+ mode: z.ZodLiteral<"custom">;
3117
+ allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3118
+ allowedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3119
+ deniedCIDRs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3120
+ injectionRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
3121
+ domain: z.ZodString;
3122
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3123
+ headerNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3124
+ }, "strip", z.ZodTypeAny, {
3125
+ domain: string;
3126
+ headers?: Record<string, string> | undefined;
3127
+ headerNames?: string[] | undefined;
3128
+ }, {
3129
+ domain: string;
3130
+ headers?: Record<string, string> | undefined;
3131
+ headerNames?: string[] | undefined;
3132
+ }>, "many">>;
3133
+ }, z.ZodTypeAny, "passthrough">>]>>;
3134
+ activeCpuDurationMs: z.ZodOptional<z.ZodNumber>;
3135
+ networkTransfer: z.ZodOptional<z.ZodObject<{
3136
+ ingress: z.ZodNumber;
3137
+ egress: z.ZodNumber;
3138
+ }, "strip", z.ZodTypeAny, {
3112
3139
  ingress: number;
3113
3140
  egress: number;
3114
- } | undefined;
3115
- }>;
3141
+ }, {
3142
+ ingress: number;
3143
+ egress: number;
3144
+ }>>;
3145
+ }, z.ZodTypeAny, "passthrough">>;
3116
3146
  routes: z.ZodArray<z.ZodObject<{
3117
3147
  url: z.ZodString;
3118
3148
  subdomain: z.ZodString;
@@ -3127,7 +3157,7 @@ export declare const NamedSandboxAndSessionResponse: z.ZodObject<{
3127
3157
  port: number;
3128
3158
  }>, "many">;
3129
3159
  }, "strip", z.ZodTypeAny, {
3130
- sandbox: {
3160
+ session: {
3131
3161
  id: string;
3132
3162
  memory: number;
3133
3163
  vcpus: number;
@@ -3175,24 +3205,27 @@ export declare const NamedSandboxAndSessionResponse: z.ZodObject<{
3175
3205
  ingress: number;
3176
3206
  egress: number;
3177
3207
  } | undefined;
3208
+ } & {
3209
+ [k: string]: unknown;
3178
3210
  };
3179
3211
  routes: {
3180
3212
  url: string;
3181
3213
  subdomain: string;
3182
3214
  port: number;
3183
3215
  }[];
3184
- namedSandbox: {
3185
- memory: number;
3186
- vcpus: number;
3187
- region: string;
3188
- runtime: string;
3189
- timeout: number;
3216
+ sandbox: {
3190
3217
  status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
3191
3218
  createdAt: number;
3192
3219
  updatedAt: number;
3193
3220
  name: string;
3194
3221
  persistent: boolean;
3195
- currentSandboxId: string;
3222
+ currentSessionId: string;
3223
+ memory?: number | undefined;
3224
+ vcpus?: number | undefined;
3225
+ region?: string | undefined;
3226
+ runtime?: string | undefined;
3227
+ timeout?: number | undefined;
3228
+ cwd?: string | undefined;
3196
3229
  networkPolicy?: z.objectOutputType<{
3197
3230
  mode: z.ZodLiteral<"allow-all">;
3198
3231
  }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
@@ -3221,9 +3254,10 @@ export declare const NamedSandboxAndSessionResponse: z.ZodObject<{
3221
3254
  totalActiveCpuDurationMs?: number | undefined;
3222
3255
  totalDurationMs?: number | undefined;
3223
3256
  currentSnapshotId?: string | undefined;
3257
+ tags?: Record<string, string> | undefined;
3224
3258
  };
3225
3259
  }, {
3226
- sandbox: {
3260
+ session: {
3227
3261
  id: string;
3228
3262
  memory: number;
3229
3263
  vcpus: number;
@@ -3271,24 +3305,27 @@ export declare const NamedSandboxAndSessionResponse: z.ZodObject<{
3271
3305
  ingress: number;
3272
3306
  egress: number;
3273
3307
  } | undefined;
3308
+ } & {
3309
+ [k: string]: unknown;
3274
3310
  };
3275
3311
  routes: {
3276
3312
  url: string;
3277
3313
  subdomain: string;
3278
3314
  port: number;
3279
3315
  }[];
3280
- namedSandbox: {
3281
- memory: number;
3282
- vcpus: number;
3283
- region: string;
3284
- runtime: string;
3285
- timeout: number;
3316
+ sandbox: {
3286
3317
  status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
3287
3318
  createdAt: number;
3288
3319
  updatedAt: number;
3289
3320
  name: string;
3290
3321
  persistent: boolean;
3291
- currentSandboxId: string;
3322
+ currentSessionId: string;
3323
+ memory?: number | undefined;
3324
+ vcpus?: number | undefined;
3325
+ region?: string | undefined;
3326
+ runtime?: string | undefined;
3327
+ timeout?: number | undefined;
3328
+ cwd?: string | undefined;
3292
3329
  networkPolicy?: z.objectInputType<{
3293
3330
  mode: z.ZodLiteral<"allow-all">;
3294
3331
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
@@ -3317,6 +3354,7 @@ export declare const NamedSandboxAndSessionResponse: z.ZodObject<{
3317
3354
  totalActiveCpuDurationMs?: number | undefined;
3318
3355
  totalDurationMs?: number | undefined;
3319
3356
  currentSnapshotId?: string | undefined;
3357
+ tags?: Record<string, string> | undefined;
3320
3358
  };
3321
3359
  }>;
3322
3360
  export declare const CursorPagination: z.ZodObject<{
@@ -3332,15 +3370,15 @@ export declare const CursorPagination: z.ZodObject<{
3332
3370
  next: string | null;
3333
3371
  total: number;
3334
3372
  }>;
3335
- export declare const NamedSandboxesPaginationResponse: z.ZodObject<{
3336
- namedSandboxes: z.ZodArray<z.ZodObject<{
3373
+ export declare const SandboxesPaginationResponse: z.ZodObject<{
3374
+ sandboxes: z.ZodArray<z.ZodObject<{
3337
3375
  name: z.ZodString;
3338
3376
  persistent: z.ZodBoolean;
3339
- region: z.ZodString;
3340
- vcpus: z.ZodNumber;
3341
- memory: z.ZodNumber;
3342
- runtime: z.ZodString;
3343
- timeout: z.ZodNumber;
3377
+ region: z.ZodOptional<z.ZodString>;
3378
+ vcpus: z.ZodOptional<z.ZodNumber>;
3379
+ memory: z.ZodOptional<z.ZodNumber>;
3380
+ runtime: z.ZodOptional<z.ZodString>;
3381
+ timeout: z.ZodOptional<z.ZodNumber>;
3344
3382
  networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
3345
3383
  mode: z.ZodLiteral<"allow-all">;
3346
3384
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -3414,21 +3452,24 @@ export declare const NamedSandboxesPaginationResponse: z.ZodObject<{
3414
3452
  totalDurationMs: z.ZodOptional<z.ZodNumber>;
3415
3453
  createdAt: z.ZodNumber;
3416
3454
  updatedAt: z.ZodNumber;
3417
- currentSandboxId: z.ZodString;
3455
+ currentSessionId: z.ZodString;
3418
3456
  currentSnapshotId: z.ZodOptional<z.ZodString>;
3419
3457
  status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
3458
+ cwd: z.ZodOptional<z.ZodString>;
3459
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3420
3460
  }, "strip", z.ZodTypeAny, {
3421
- memory: number;
3422
- vcpus: number;
3423
- region: string;
3424
- runtime: string;
3425
- timeout: number;
3426
3461
  status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
3427
3462
  createdAt: number;
3428
3463
  updatedAt: number;
3429
3464
  name: string;
3430
3465
  persistent: boolean;
3431
- currentSandboxId: string;
3466
+ currentSessionId: string;
3467
+ memory?: number | undefined;
3468
+ vcpus?: number | undefined;
3469
+ region?: string | undefined;
3470
+ runtime?: string | undefined;
3471
+ timeout?: number | undefined;
3472
+ cwd?: string | undefined;
3432
3473
  networkPolicy?: z.objectOutputType<{
3433
3474
  mode: z.ZodLiteral<"allow-all">;
3434
3475
  }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
@@ -3457,18 +3498,20 @@ export declare const NamedSandboxesPaginationResponse: z.ZodObject<{
3457
3498
  totalActiveCpuDurationMs?: number | undefined;
3458
3499
  totalDurationMs?: number | undefined;
3459
3500
  currentSnapshotId?: string | undefined;
3501
+ tags?: Record<string, string> | undefined;
3460
3502
  }, {
3461
- memory: number;
3462
- vcpus: number;
3463
- region: string;
3464
- runtime: string;
3465
- timeout: number;
3466
3503
  status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
3467
3504
  createdAt: number;
3468
3505
  updatedAt: number;
3469
3506
  name: string;
3470
3507
  persistent: boolean;
3471
- currentSandboxId: string;
3508
+ currentSessionId: string;
3509
+ memory?: number | undefined;
3510
+ vcpus?: number | undefined;
3511
+ region?: string | undefined;
3512
+ runtime?: string | undefined;
3513
+ timeout?: number | undefined;
3514
+ cwd?: string | undefined;
3472
3515
  networkPolicy?: z.objectInputType<{
3473
3516
  mode: z.ZodLiteral<"allow-all">;
3474
3517
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
@@ -3497,6 +3540,7 @@ export declare const NamedSandboxesPaginationResponse: z.ZodObject<{
3497
3540
  totalActiveCpuDurationMs?: number | undefined;
3498
3541
  totalDurationMs?: number | undefined;
3499
3542
  currentSnapshotId?: string | undefined;
3543
+ tags?: Record<string, string> | undefined;
3500
3544
  }>, "many">;
3501
3545
  pagination: z.ZodObject<{
3502
3546
  count: z.ZodNumber;
@@ -3517,18 +3561,19 @@ export declare const NamedSandboxesPaginationResponse: z.ZodObject<{
3517
3561
  next: string | null;
3518
3562
  total: number;
3519
3563
  };
3520
- namedSandboxes: {
3521
- memory: number;
3522
- vcpus: number;
3523
- region: string;
3524
- runtime: string;
3525
- timeout: number;
3564
+ sandboxes: {
3526
3565
  status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
3527
3566
  createdAt: number;
3528
3567
  updatedAt: number;
3529
3568
  name: string;
3530
3569
  persistent: boolean;
3531
- currentSandboxId: string;
3570
+ currentSessionId: string;
3571
+ memory?: number | undefined;
3572
+ vcpus?: number | undefined;
3573
+ region?: string | undefined;
3574
+ runtime?: string | undefined;
3575
+ timeout?: number | undefined;
3576
+ cwd?: string | undefined;
3532
3577
  networkPolicy?: z.objectOutputType<{
3533
3578
  mode: z.ZodLiteral<"allow-all">;
3534
3579
  }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
@@ -3557,6 +3602,7 @@ export declare const NamedSandboxesPaginationResponse: z.ZodObject<{
3557
3602
  totalActiveCpuDurationMs?: number | undefined;
3558
3603
  totalDurationMs?: number | undefined;
3559
3604
  currentSnapshotId?: string | undefined;
3605
+ tags?: Record<string, string> | undefined;
3560
3606
  }[];
3561
3607
  }, {
3562
3608
  pagination: {
@@ -3564,18 +3610,19 @@ export declare const NamedSandboxesPaginationResponse: z.ZodObject<{
3564
3610
  next: string | null;
3565
3611
  total: number;
3566
3612
  };
3567
- namedSandboxes: {
3568
- memory: number;
3569
- vcpus: number;
3570
- region: string;
3571
- runtime: string;
3572
- timeout: number;
3613
+ sandboxes: {
3573
3614
  status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
3574
3615
  createdAt: number;
3575
3616
  updatedAt: number;
3576
3617
  name: string;
3577
3618
  persistent: boolean;
3578
- currentSandboxId: string;
3619
+ currentSessionId: string;
3620
+ memory?: number | undefined;
3621
+ vcpus?: number | undefined;
3622
+ region?: string | undefined;
3623
+ runtime?: string | undefined;
3624
+ timeout?: number | undefined;
3625
+ cwd?: string | undefined;
3579
3626
  networkPolicy?: z.objectInputType<{
3580
3627
  mode: z.ZodLiteral<"allow-all">;
3581
3628
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
@@ -3604,17 +3651,18 @@ export declare const NamedSandboxesPaginationResponse: z.ZodObject<{
3604
3651
  totalActiveCpuDurationMs?: number | undefined;
3605
3652
  totalDurationMs?: number | undefined;
3606
3653
  currentSnapshotId?: string | undefined;
3654
+ tags?: Record<string, string> | undefined;
3607
3655
  }[];
3608
3656
  }>;
3609
- export declare const UpdateNamedSandboxResponse: z.ZodObject<{
3610
- namedSandbox: z.ZodObject<{
3657
+ export declare const UpdateSandboxResponse: z.ZodObject<{
3658
+ sandbox: z.ZodObject<{
3611
3659
  name: z.ZodString;
3612
3660
  persistent: z.ZodBoolean;
3613
- region: z.ZodString;
3614
- vcpus: z.ZodNumber;
3615
- memory: z.ZodNumber;
3616
- runtime: z.ZodString;
3617
- timeout: z.ZodNumber;
3661
+ region: z.ZodOptional<z.ZodString>;
3662
+ vcpus: z.ZodOptional<z.ZodNumber>;
3663
+ memory: z.ZodOptional<z.ZodNumber>;
3664
+ runtime: z.ZodOptional<z.ZodString>;
3665
+ timeout: z.ZodOptional<z.ZodNumber>;
3618
3666
  networkPolicy: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
3619
3667
  mode: z.ZodLiteral<"allow-all">;
3620
3668
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -3688,21 +3736,24 @@ export declare const UpdateNamedSandboxResponse: z.ZodObject<{
3688
3736
  totalDurationMs: z.ZodOptional<z.ZodNumber>;
3689
3737
  createdAt: z.ZodNumber;
3690
3738
  updatedAt: z.ZodNumber;
3691
- currentSandboxId: z.ZodString;
3739
+ currentSessionId: z.ZodString;
3692
3740
  currentSnapshotId: z.ZodOptional<z.ZodString>;
3693
3741
  status: z.ZodEnum<["pending", "running", "stopping", "stopped", "failed", "aborted", "snapshotting"]>;
3742
+ cwd: z.ZodOptional<z.ZodString>;
3743
+ tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3694
3744
  }, "strip", z.ZodTypeAny, {
3695
- memory: number;
3696
- vcpus: number;
3697
- region: string;
3698
- runtime: string;
3699
- timeout: number;
3700
3745
  status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
3701
3746
  createdAt: number;
3702
3747
  updatedAt: number;
3703
3748
  name: string;
3704
3749
  persistent: boolean;
3705
- currentSandboxId: string;
3750
+ currentSessionId: string;
3751
+ memory?: number | undefined;
3752
+ vcpus?: number | undefined;
3753
+ region?: string | undefined;
3754
+ runtime?: string | undefined;
3755
+ timeout?: number | undefined;
3756
+ cwd?: string | undefined;
3706
3757
  networkPolicy?: z.objectOutputType<{
3707
3758
  mode: z.ZodLiteral<"allow-all">;
3708
3759
  }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
@@ -3731,18 +3782,20 @@ export declare const UpdateNamedSandboxResponse: z.ZodObject<{
3731
3782
  totalActiveCpuDurationMs?: number | undefined;
3732
3783
  totalDurationMs?: number | undefined;
3733
3784
  currentSnapshotId?: string | undefined;
3785
+ tags?: Record<string, string> | undefined;
3734
3786
  }, {
3735
- memory: number;
3736
- vcpus: number;
3737
- region: string;
3738
- runtime: string;
3739
- timeout: number;
3740
3787
  status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
3741
3788
  createdAt: number;
3742
3789
  updatedAt: number;
3743
3790
  name: string;
3744
3791
  persistent: boolean;
3745
- currentSandboxId: string;
3792
+ currentSessionId: string;
3793
+ memory?: number | undefined;
3794
+ vcpus?: number | undefined;
3795
+ region?: string | undefined;
3796
+ runtime?: string | undefined;
3797
+ timeout?: number | undefined;
3798
+ cwd?: string | undefined;
3746
3799
  networkPolicy?: z.objectInputType<{
3747
3800
  mode: z.ZodLiteral<"allow-all">;
3748
3801
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
@@ -3771,20 +3824,22 @@ export declare const UpdateNamedSandboxResponse: z.ZodObject<{
3771
3824
  totalActiveCpuDurationMs?: number | undefined;
3772
3825
  totalDurationMs?: number | undefined;
3773
3826
  currentSnapshotId?: string | undefined;
3827
+ tags?: Record<string, string> | undefined;
3774
3828
  }>;
3775
3829
  }, "strip", z.ZodTypeAny, {
3776
- namedSandbox: {
3777
- memory: number;
3778
- vcpus: number;
3779
- region: string;
3780
- runtime: string;
3781
- timeout: number;
3830
+ sandbox: {
3782
3831
  status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
3783
3832
  createdAt: number;
3784
3833
  updatedAt: number;
3785
3834
  name: string;
3786
3835
  persistent: boolean;
3787
- currentSandboxId: string;
3836
+ currentSessionId: string;
3837
+ memory?: number | undefined;
3838
+ vcpus?: number | undefined;
3839
+ region?: string | undefined;
3840
+ runtime?: string | undefined;
3841
+ timeout?: number | undefined;
3842
+ cwd?: string | undefined;
3788
3843
  networkPolicy?: z.objectOutputType<{
3789
3844
  mode: z.ZodLiteral<"allow-all">;
3790
3845
  }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
@@ -3813,20 +3868,22 @@ export declare const UpdateNamedSandboxResponse: z.ZodObject<{
3813
3868
  totalActiveCpuDurationMs?: number | undefined;
3814
3869
  totalDurationMs?: number | undefined;
3815
3870
  currentSnapshotId?: string | undefined;
3871
+ tags?: Record<string, string> | undefined;
3816
3872
  };
3817
3873
  }, {
3818
- namedSandbox: {
3819
- memory: number;
3820
- vcpus: number;
3821
- region: string;
3822
- runtime: string;
3823
- timeout: number;
3874
+ sandbox: {
3824
3875
  status: "aborted" | "pending" | "running" | "stopping" | "stopped" | "failed" | "snapshotting";
3825
3876
  createdAt: number;
3826
3877
  updatedAt: number;
3827
3878
  name: string;
3828
3879
  persistent: boolean;
3829
- currentSandboxId: string;
3880
+ currentSessionId: string;
3881
+ memory?: number | undefined;
3882
+ vcpus?: number | undefined;
3883
+ region?: string | undefined;
3884
+ runtime?: string | undefined;
3885
+ timeout?: number | undefined;
3886
+ cwd?: string | undefined;
3830
3887
  networkPolicy?: z.objectInputType<{
3831
3888
  mode: z.ZodLiteral<"allow-all">;
3832
3889
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
@@ -3855,5 +3912,6 @@ export declare const UpdateNamedSandboxResponse: z.ZodObject<{
3855
3912
  totalActiveCpuDurationMs?: number | undefined;
3856
3913
  totalDurationMs?: number | undefined;
3857
3914
  currentSnapshotId?: string | undefined;
3915
+ tags?: Record<string, string> | undefined;
3858
3916
  };
3859
3917
  }>;