@vercel/sdk 1.6.3 → 1.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. package/README.md +2 -0
  2. package/bin/mcp-server.js +3517 -1245
  3. package/bin/mcp-server.js.map +29 -26
  4. package/docs/sdks/edgeconfig/README.md +2 -6
  5. package/docs/sdks/marketplace/README.md +2 -6
  6. package/docs/sdks/security/README.md +90 -0
  7. package/docs/sdks/webhooks/README.md +2 -6
  8. package/esm/__tests__/deployments.test.js +16 -1
  9. package/esm/__tests__/deployments.test.js.map +1 -1
  10. package/esm/__tests__/environment.test.js +3 -0
  11. package/esm/__tests__/environment.test.js.map +1 -1
  12. package/esm/__tests__/marketplace.test.js +7 -2
  13. package/esm/__tests__/marketplace.test.js.map +1 -1
  14. package/esm/__tests__/projects.test.js +4 -4
  15. package/esm/__tests__/projects.test.js.map +1 -1
  16. package/esm/__tests__/security.test.js +174 -3
  17. package/esm/__tests__/security.test.js.map +1 -1
  18. package/esm/funcs/projectsCreateProject.js +2 -2
  19. package/esm/funcs/projectsCreateProject.js.map +1 -1
  20. package/esm/funcs/securityPutFirewallConfig.d.ts +19 -0
  21. package/esm/funcs/securityPutFirewallConfig.d.ts.map +1 -0
  22. package/esm/funcs/securityPutFirewallConfig.js +88 -0
  23. package/esm/funcs/securityPutFirewallConfig.js.map +1 -0
  24. package/esm/lib/config.d.ts +3 -3
  25. package/esm/lib/config.js +3 -3
  26. package/esm/mcp-server/mcp-server.js +1 -1
  27. package/esm/mcp-server/server.d.ts.map +1 -1
  28. package/esm/mcp-server/server.js +3 -1
  29. package/esm/mcp-server/server.js.map +1 -1
  30. package/esm/mcp-server/tools/securityPutFirewallConfig.d.ts +7 -0
  31. package/esm/mcp-server/tools/securityPutFirewallConfig.d.ts.map +1 -0
  32. package/esm/mcp-server/tools/securityPutFirewallConfig.js +28 -0
  33. package/esm/mcp-server/tools/securityPutFirewallConfig.js.map +1 -0
  34. package/esm/models/authtoken.d.ts +6 -0
  35. package/esm/models/authtoken.d.ts.map +1 -1
  36. package/esm/models/authtoken.js +2 -0
  37. package/esm/models/authtoken.js.map +1 -1
  38. package/esm/models/authuser.d.ts +46 -0
  39. package/esm/models/authuser.d.ts.map +1 -1
  40. package/esm/models/authuser.js +28 -0
  41. package/esm/models/authuser.js.map +1 -1
  42. package/esm/models/canceldeploymentop.d.ts +274 -73
  43. package/esm/models/canceldeploymentop.d.ts.map +1 -1
  44. package/esm/models/canceldeploymentop.js +270 -72
  45. package/esm/models/canceldeploymentop.js.map +1 -1
  46. package/esm/models/createdeploymentop.d.ts +274 -73
  47. package/esm/models/createdeploymentop.d.ts.map +1 -1
  48. package/esm/models/createdeploymentop.js +270 -72
  49. package/esm/models/createdeploymentop.js.map +1 -1
  50. package/esm/models/createprojectenvop.d.ts +12 -18
  51. package/esm/models/createprojectenvop.d.ts.map +1 -1
  52. package/esm/models/createprojectenvop.js +12 -12
  53. package/esm/models/createprojectenvop.js.map +1 -1
  54. package/esm/models/createprojectop.d.ts +175 -13
  55. package/esm/models/createprojectop.d.ts.map +1 -1
  56. package/esm/models/createprojectop.js +157 -6
  57. package/esm/models/createprojectop.js.map +1 -1
  58. package/esm/models/editprojectenvop.d.ts +4 -7
  59. package/esm/models/editprojectenvop.d.ts.map +1 -1
  60. package/esm/models/editprojectenvop.js +4 -4
  61. package/esm/models/editprojectenvop.js.map +1 -1
  62. package/esm/models/filterprojectenvsop.d.ts +18 -27
  63. package/esm/models/filterprojectenvsop.d.ts.map +1 -1
  64. package/esm/models/filterprojectenvsop.js +18 -18
  65. package/esm/models/filterprojectenvsop.js.map +1 -1
  66. package/esm/models/getdeploymentop.d.ts +574 -172
  67. package/esm/models/getdeploymentop.d.ts.map +1 -1
  68. package/esm/models/getdeploymentop.js +567 -171
  69. package/esm/models/getdeploymentop.js.map +1 -1
  70. package/esm/models/getfirewallconfigop.d.ts +214 -214
  71. package/esm/models/getfirewallconfigop.d.ts.map +1 -1
  72. package/esm/models/getfirewallconfigop.js +210 -231
  73. package/esm/models/getfirewallconfigop.js.map +1 -1
  74. package/esm/models/getprojectdomainsop.d.ts +198 -36
  75. package/esm/models/getprojectdomainsop.d.ts.map +1 -1
  76. package/esm/models/getprojectdomainsop.js +193 -32
  77. package/esm/models/getprojectdomainsop.js.map +1 -1
  78. package/esm/models/getprojectenvop.d.ts +10 -16
  79. package/esm/models/getprojectenvop.d.ts.map +1 -1
  80. package/esm/models/getprojectenvop.js +10 -10
  81. package/esm/models/getprojectenvop.js.map +1 -1
  82. package/esm/models/getprojectsop.d.ts +175 -13
  83. package/esm/models/getprojectsop.d.ts.map +1 -1
  84. package/esm/models/getprojectsop.js +156 -6
  85. package/esm/models/getprojectsop.js.map +1 -1
  86. package/esm/models/getv9projectsidornamecustomenvironmentsop.d.ts +31 -1
  87. package/esm/models/getv9projectsidornamecustomenvironmentsop.d.ts.map +1 -1
  88. package/esm/models/getv9projectsidornamecustomenvironmentsop.js +27 -0
  89. package/esm/models/getv9projectsidornamecustomenvironmentsop.js.map +1 -1
  90. package/esm/models/putfirewallconfigop.d.ts +2901 -0
  91. package/esm/models/putfirewallconfigop.d.ts.map +1 -0
  92. package/esm/models/putfirewallconfigop.js +2383 -0
  93. package/esm/models/putfirewallconfigop.js.map +1 -0
  94. package/esm/models/removeprojectenvop.d.ts +18 -27
  95. package/esm/models/removeprojectenvop.d.ts.map +1 -1
  96. package/esm/models/removeprojectenvop.js +18 -18
  97. package/esm/models/removeprojectenvop.js.map +1 -1
  98. package/esm/models/updatefirewallconfigop.d.ts +323 -323
  99. package/esm/models/updatefirewallconfigop.d.ts.map +1 -1
  100. package/esm/models/updatefirewallconfigop.js +379 -357
  101. package/esm/models/updatefirewallconfigop.js.map +1 -1
  102. package/esm/models/updateprojectdatacacheop.d.ts +183 -21
  103. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  104. package/esm/models/updateprojectdatacacheop.js +172 -18
  105. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  106. package/esm/models/updateprojectop.d.ts +175 -13
  107. package/esm/models/updateprojectop.d.ts.map +1 -1
  108. package/esm/models/updateprojectop.js +157 -6
  109. package/esm/models/updateprojectop.js.map +1 -1
  110. package/esm/models/userevent.d.ts +46 -19
  111. package/esm/models/userevent.d.ts.map +1 -1
  112. package/esm/models/userevent.js +34 -10
  113. package/esm/models/userevent.js.map +1 -1
  114. package/esm/sdk/security.d.ts +8 -0
  115. package/esm/sdk/security.d.ts.map +1 -1
  116. package/esm/sdk/security.js +10 -0
  117. package/esm/sdk/security.js.map +1 -1
  118. package/jsr.json +1 -1
  119. package/package.json +3 -3
  120. package/src/__tests__/deployments.test.ts +16 -1
  121. package/src/__tests__/environment.test.ts +3 -0
  122. package/src/__tests__/marketplace.test.ts +7 -2
  123. package/src/__tests__/projects.test.ts +4 -4
  124. package/src/__tests__/security.test.ts +176 -5
  125. package/src/funcs/projectsCreateProject.ts +2 -2
  126. package/src/funcs/securityPutFirewallConfig.ts +194 -0
  127. package/src/lib/config.ts +3 -3
  128. package/src/mcp-server/mcp-server.ts +1 -1
  129. package/src/mcp-server/server.ts +3 -1
  130. package/src/mcp-server/tools/securityPutFirewallConfig.ts +37 -0
  131. package/src/models/authtoken.ts +2 -0
  132. package/src/models/authuser.ts +52 -0
  133. package/src/models/canceldeploymentop.ts +591 -148
  134. package/src/models/createdeploymentop.ts +616 -165
  135. package/src/models/createprojectenvop.ts +24 -30
  136. package/src/models/createprojectop.ts +336 -15
  137. package/src/models/editprojectenvop.ts +8 -11
  138. package/src/models/filterprojectenvsop.ts +36 -45
  139. package/src/models/getdeploymentop.ts +1288 -353
  140. package/src/models/getfirewallconfigop.ts +555 -410
  141. package/src/models/getprojectdomainsop.ts +470 -63
  142. package/src/models/getprojectenvop.ts +20 -26
  143. package/src/models/getprojectsop.ts +338 -16
  144. package/src/models/getv9projectsidornamecustomenvironmentsop.ts +62 -1
  145. package/src/models/putfirewallconfigop.ts +4932 -0
  146. package/src/models/removeprojectenvop.ts +36 -45
  147. package/src/models/updatefirewallconfigop.ts +820 -612
  148. package/src/models/updateprojectdatacacheop.ts +353 -34
  149. package/src/models/updateprojectop.ts +336 -15
  150. package/src/models/userevent.ts +54 -29
  151. package/src/sdk/security.ts +22 -0
  152. package/vercel-spec.json +1395 -291
@@ -650,18 +650,18 @@ export const CreateDeploymentType = {
650
650
  } as const;
651
651
  export type CreateDeploymentType = ClosedEnum<typeof CreateDeploymentType>;
652
652
 
653
- export const CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody9Type =
653
+ export const CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody12Type =
654
654
  {
655
655
  Bitbucket: "bitbucket",
656
656
  } as const;
657
- export type CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody9Type =
657
+ export type CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody12Type =
658
658
  ClosedEnum<
659
- typeof CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody9Type
659
+ typeof CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody12Type
660
660
  >;
661
661
 
662
- export type CreateDeploymentGitSource9 = {
662
+ export type CreateDeploymentGitSource12 = {
663
663
  type:
664
- CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody9Type;
664
+ CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody12Type;
665
665
  ref: string;
666
666
  sha: string;
667
667
  owner?: string | undefined;
@@ -670,35 +670,36 @@ export type CreateDeploymentGitSource9 = {
670
670
  repoUuid: string;
671
671
  };
672
672
 
673
- export const CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody8Type =
673
+ export const CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody11Type =
674
674
  {
675
675
  Gitlab: "gitlab",
676
676
  } as const;
677
- export type CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody8Type =
677
+ export type CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody11Type =
678
678
  ClosedEnum<
679
- typeof CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody8Type
679
+ typeof CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody11Type
680
680
  >;
681
681
 
682
- export type CreateDeploymentGitSource8 = {
682
+ export type CreateDeploymentGitSource11 = {
683
683
  type:
684
- CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody8Type;
684
+ CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody11Type;
685
685
  ref: string;
686
686
  sha: string;
687
687
  projectId: number;
688
688
  };
689
689
 
690
- export const CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody7Type =
690
+ export const CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody10Type =
691
691
  {
692
692
  Github: "github",
693
693
  } as const;
694
- export type CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody7Type =
694
+ export type CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody10Type =
695
695
  ClosedEnum<
696
- typeof CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody7Type
696
+ typeof CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody10Type
697
697
  >;
698
698
 
699
- export type CreateDeploymentGitSource7 = {
699
+ export type CreateDeploymentGitSource10 = {
700
700
  type:
701
- CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody7Type;
701
+ CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody10Type;
702
+ host: string;
702
703
  ref: string;
703
704
  sha: string;
704
705
  repoId: number;
@@ -706,40 +707,98 @@ export type CreateDeploymentGitSource7 = {
706
707
  repo?: string | undefined;
707
708
  };
708
709
 
709
- export const CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody6Type =
710
+ export const CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody9Type =
711
+ {
712
+ Github: "github",
713
+ } as const;
714
+ export type CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody9Type =
715
+ ClosedEnum<
716
+ typeof CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody9Type
717
+ >;
718
+
719
+ export type CreateDeploymentGitSource9 = {
720
+ type:
721
+ CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody9Type;
722
+ ref: string;
723
+ sha: string;
724
+ repoId: number;
725
+ org?: string | undefined;
726
+ repo?: string | undefined;
727
+ };
728
+
729
+ export const CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody8Type =
710
730
  {
711
731
  Custom: "custom",
712
732
  } as const;
713
- export type CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody6Type =
733
+ export type CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody8Type =
714
734
  ClosedEnum<
715
- typeof CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody6Type
735
+ typeof CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody8Type
716
736
  >;
717
737
 
718
738
  /**
719
739
  * Allows custom git sources (local folder mounted to the container) in test mode
720
740
  */
721
- export type CreateDeploymentGitSource6 = {
741
+ export type CreateDeploymentGitSource8 = {
722
742
  type:
723
- CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody6Type;
743
+ CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody8Type;
724
744
  ref: string;
725
745
  sha: string;
726
746
  gitUrl: string;
727
747
  };
728
748
 
729
- export const CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody5Type =
749
+ export const CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody7Type =
750
+ {
751
+ Bitbucket: "bitbucket",
752
+ } as const;
753
+ export type CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody7Type =
754
+ ClosedEnum<
755
+ typeof CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody7Type
756
+ >;
757
+
758
+ export type CreateDeploymentGitSource7 = {
759
+ type:
760
+ CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody7Type;
761
+ owner: string;
762
+ slug: string;
763
+ ref?: string | null | undefined;
764
+ sha?: string | undefined;
765
+ prId?: number | null | undefined;
766
+ };
767
+
768
+ export const CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody6Type =
730
769
  {
731
770
  Bitbucket: "bitbucket",
732
771
  } as const;
772
+ export type CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody6Type =
773
+ ClosedEnum<
774
+ typeof CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody6Type
775
+ >;
776
+
777
+ export type CreateDeploymentGitSource6 = {
778
+ type:
779
+ CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody6Type;
780
+ workspaceUuid?: string | undefined;
781
+ repoUuid: string;
782
+ ref?: string | null | undefined;
783
+ sha?: string | undefined;
784
+ prId?: number | null | undefined;
785
+ };
786
+
787
+ export const CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody5Type =
788
+ {
789
+ Gitlab: "gitlab",
790
+ } as const;
733
791
  export type CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody5Type =
734
792
  ClosedEnum<
735
793
  typeof CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody5Type
736
794
  >;
737
795
 
796
+ export type GitSourceProjectId = string | number;
797
+
738
798
  export type CreateDeploymentGitSource5 = {
739
799
  type:
740
800
  CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody5Type;
741
- owner: string;
742
- slug: string;
801
+ projectId: string | number;
743
802
  ref?: string | null | undefined;
744
803
  sha?: string | undefined;
745
804
  prId?: number | null | undefined;
@@ -747,7 +806,7 @@ export type CreateDeploymentGitSource5 = {
747
806
 
748
807
  export const CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBodyType =
749
808
  {
750
- Bitbucket: "bitbucket",
809
+ GithubCustomHost: "github-custom-host",
751
810
  } as const;
752
811
  export type CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBodyType =
753
812
  ClosedEnum<
@@ -757,8 +816,9 @@ export type CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONRespon
757
816
  export type CreateDeploymentGitSource4 = {
758
817
  type:
759
818
  CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBodyType;
760
- workspaceUuid?: string | undefined;
761
- repoUuid: string;
819
+ host: string;
820
+ org: string;
821
+ repo: string;
762
822
  ref?: string | null | undefined;
763
823
  sha?: string | undefined;
764
824
  prId?: number | null | undefined;
@@ -766,18 +826,19 @@ export type CreateDeploymentGitSource4 = {
766
826
 
767
827
  export const CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONType =
768
828
  {
769
- Gitlab: "gitlab",
829
+ GithubCustomHost: "github-custom-host",
770
830
  } as const;
771
831
  export type CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONType =
772
832
  ClosedEnum<
773
833
  typeof CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONType
774
834
  >;
775
835
 
776
- export type GitSourceProjectId = string | number;
836
+ export type CreateDeploymentGitSourceRepoId = string | number;
777
837
 
778
838
  export type CreateDeploymentGitSource3 = {
779
839
  type: CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONType;
780
- projectId: string | number;
840
+ host: string;
841
+ repoId: string | number;
781
842
  ref?: string | null | undefined;
782
843
  sha?: string | undefined;
783
844
  prId?: number | null | undefined;
@@ -817,15 +878,18 @@ export type CreateDeploymentGitSource1 = {
817
878
  };
818
879
 
819
880
  export type CreateDeploymentGitSource =
820
- | CreateDeploymentGitSource6
821
881
  | CreateDeploymentGitSource8
882
+ | CreateDeploymentGitSource11
822
883
  | CreateDeploymentGitSource1
823
- | CreateDeploymentGitSource3
824
- | CreateDeploymentGitSource2
825
- | CreateDeploymentGitSource4
826
884
  | CreateDeploymentGitSource5
885
+ | CreateDeploymentGitSource2
886
+ | CreateDeploymentGitSource3
887
+ | CreateDeploymentGitSource6
827
888
  | CreateDeploymentGitSource7
828
- | CreateDeploymentGitSource9;
889
+ | CreateDeploymentGitSource9
890
+ | CreateDeploymentGitSource4
891
+ | CreateDeploymentGitSource10
892
+ | CreateDeploymentGitSource12;
829
893
 
830
894
  export type CreateDeploymentProject = {
831
895
  id: string;
@@ -1245,6 +1309,10 @@ export type CreateDeploymentResponseBody = {
1245
1309
  aliasAssigned: boolean;
1246
1310
  bootedAt: number;
1247
1311
  buildingAt: number;
1312
+ /**
1313
+ * Since April 2025 it necessary for On-Demand Concurrency Minutes calculation
1314
+ */
1315
+ buildContainerFinishedAt?: number | undefined;
1248
1316
  buildSkipped: boolean;
1249
1317
  creator: Creator;
1250
1318
  initReadyAt?: number | undefined;
@@ -1269,15 +1337,18 @@ export type CreateDeploymentResponseBody = {
1269
1337
  */
1270
1338
  autoAssignCustomDomains?: boolean | undefined;
1271
1339
  gitSource?:
1272
- | CreateDeploymentGitSource6
1273
1340
  | CreateDeploymentGitSource8
1341
+ | CreateDeploymentGitSource11
1274
1342
  | CreateDeploymentGitSource1
1275
- | CreateDeploymentGitSource3
1276
- | CreateDeploymentGitSource2
1277
- | CreateDeploymentGitSource4
1278
1343
  | CreateDeploymentGitSource5
1344
+ | CreateDeploymentGitSource2
1345
+ | CreateDeploymentGitSource3
1346
+ | CreateDeploymentGitSource6
1279
1347
  | CreateDeploymentGitSource7
1280
1348
  | CreateDeploymentGitSource9
1349
+ | CreateDeploymentGitSource4
1350
+ | CreateDeploymentGitSource10
1351
+ | CreateDeploymentGitSource12
1281
1352
  | undefined;
1282
1353
  meta: { [k: string]: string };
1283
1354
  project?: CreateDeploymentProject | undefined;
@@ -3640,45 +3711,348 @@ export namespace CustomEnvironment$ {
3640
3711
  export type Outbound = CustomEnvironment$Outbound;
3641
3712
  }
3642
3713
 
3643
- export function customEnvironmentToJSON(
3644
- customEnvironment: CustomEnvironment,
3714
+ export function customEnvironmentToJSON(
3715
+ customEnvironment: CustomEnvironment,
3716
+ ): string {
3717
+ return JSON.stringify(
3718
+ CustomEnvironment$outboundSchema.parse(customEnvironment),
3719
+ );
3720
+ }
3721
+
3722
+ export function customEnvironmentFromJSON(
3723
+ jsonString: string,
3724
+ ): SafeParseResult<CustomEnvironment, SDKValidationError> {
3725
+ return safeParse(
3726
+ jsonString,
3727
+ (x) => CustomEnvironment$inboundSchema.parse(JSON.parse(x)),
3728
+ `Failed to parse 'CustomEnvironment' from JSON`,
3729
+ );
3730
+ }
3731
+
3732
+ /** @internal */
3733
+ export const CreateDeploymentType$inboundSchema: z.ZodNativeEnum<
3734
+ typeof CreateDeploymentType
3735
+ > = z.nativeEnum(CreateDeploymentType);
3736
+
3737
+ /** @internal */
3738
+ export const CreateDeploymentType$outboundSchema: z.ZodNativeEnum<
3739
+ typeof CreateDeploymentType
3740
+ > = CreateDeploymentType$inboundSchema;
3741
+
3742
+ /**
3743
+ * @internal
3744
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3745
+ */
3746
+ export namespace CreateDeploymentType$ {
3747
+ /** @deprecated use `CreateDeploymentType$inboundSchema` instead. */
3748
+ export const inboundSchema = CreateDeploymentType$inboundSchema;
3749
+ /** @deprecated use `CreateDeploymentType$outboundSchema` instead. */
3750
+ export const outboundSchema = CreateDeploymentType$outboundSchema;
3751
+ }
3752
+
3753
+ /** @internal */
3754
+ export const CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody12Type$inboundSchema:
3755
+ z.ZodNativeEnum<
3756
+ typeof CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody12Type
3757
+ > = z.nativeEnum(
3758
+ CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody12Type,
3759
+ );
3760
+
3761
+ /** @internal */
3762
+ export const CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody12Type$outboundSchema:
3763
+ z.ZodNativeEnum<
3764
+ typeof CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody12Type
3765
+ > =
3766
+ CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody12Type$inboundSchema;
3767
+
3768
+ /**
3769
+ * @internal
3770
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3771
+ */
3772
+ export namespace CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody12Type$ {
3773
+ /** @deprecated use `CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody12Type$inboundSchema` instead. */
3774
+ export const inboundSchema =
3775
+ CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody12Type$inboundSchema;
3776
+ /** @deprecated use `CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody12Type$outboundSchema` instead. */
3777
+ export const outboundSchema =
3778
+ CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody12Type$outboundSchema;
3779
+ }
3780
+
3781
+ /** @internal */
3782
+ export const CreateDeploymentGitSource12$inboundSchema: z.ZodType<
3783
+ CreateDeploymentGitSource12,
3784
+ z.ZodTypeDef,
3785
+ unknown
3786
+ > = z.object({
3787
+ type:
3788
+ CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody12Type$inboundSchema,
3789
+ ref: z.string(),
3790
+ sha: z.string(),
3791
+ owner: z.string().optional(),
3792
+ slug: z.string().optional(),
3793
+ workspaceUuid: z.string(),
3794
+ repoUuid: z.string(),
3795
+ });
3796
+
3797
+ /** @internal */
3798
+ export type CreateDeploymentGitSource12$Outbound = {
3799
+ type: string;
3800
+ ref: string;
3801
+ sha: string;
3802
+ owner?: string | undefined;
3803
+ slug?: string | undefined;
3804
+ workspaceUuid: string;
3805
+ repoUuid: string;
3806
+ };
3807
+
3808
+ /** @internal */
3809
+ export const CreateDeploymentGitSource12$outboundSchema: z.ZodType<
3810
+ CreateDeploymentGitSource12$Outbound,
3811
+ z.ZodTypeDef,
3812
+ CreateDeploymentGitSource12
3813
+ > = z.object({
3814
+ type:
3815
+ CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody12Type$outboundSchema,
3816
+ ref: z.string(),
3817
+ sha: z.string(),
3818
+ owner: z.string().optional(),
3819
+ slug: z.string().optional(),
3820
+ workspaceUuid: z.string(),
3821
+ repoUuid: z.string(),
3822
+ });
3823
+
3824
+ /**
3825
+ * @internal
3826
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3827
+ */
3828
+ export namespace CreateDeploymentGitSource12$ {
3829
+ /** @deprecated use `CreateDeploymentGitSource12$inboundSchema` instead. */
3830
+ export const inboundSchema = CreateDeploymentGitSource12$inboundSchema;
3831
+ /** @deprecated use `CreateDeploymentGitSource12$outboundSchema` instead. */
3832
+ export const outboundSchema = CreateDeploymentGitSource12$outboundSchema;
3833
+ /** @deprecated use `CreateDeploymentGitSource12$Outbound` instead. */
3834
+ export type Outbound = CreateDeploymentGitSource12$Outbound;
3835
+ }
3836
+
3837
+ export function createDeploymentGitSource12ToJSON(
3838
+ createDeploymentGitSource12: CreateDeploymentGitSource12,
3839
+ ): string {
3840
+ return JSON.stringify(
3841
+ CreateDeploymentGitSource12$outboundSchema.parse(
3842
+ createDeploymentGitSource12,
3843
+ ),
3844
+ );
3845
+ }
3846
+
3847
+ export function createDeploymentGitSource12FromJSON(
3848
+ jsonString: string,
3849
+ ): SafeParseResult<CreateDeploymentGitSource12, SDKValidationError> {
3850
+ return safeParse(
3851
+ jsonString,
3852
+ (x) => CreateDeploymentGitSource12$inboundSchema.parse(JSON.parse(x)),
3853
+ `Failed to parse 'CreateDeploymentGitSource12' from JSON`,
3854
+ );
3855
+ }
3856
+
3857
+ /** @internal */
3858
+ export const CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody11Type$inboundSchema:
3859
+ z.ZodNativeEnum<
3860
+ typeof CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody11Type
3861
+ > = z.nativeEnum(
3862
+ CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody11Type,
3863
+ );
3864
+
3865
+ /** @internal */
3866
+ export const CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody11Type$outboundSchema:
3867
+ z.ZodNativeEnum<
3868
+ typeof CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody11Type
3869
+ > =
3870
+ CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody11Type$inboundSchema;
3871
+
3872
+ /**
3873
+ * @internal
3874
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3875
+ */
3876
+ export namespace CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody11Type$ {
3877
+ /** @deprecated use `CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody11Type$inboundSchema` instead. */
3878
+ export const inboundSchema =
3879
+ CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody11Type$inboundSchema;
3880
+ /** @deprecated use `CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody11Type$outboundSchema` instead. */
3881
+ export const outboundSchema =
3882
+ CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody11Type$outboundSchema;
3883
+ }
3884
+
3885
+ /** @internal */
3886
+ export const CreateDeploymentGitSource11$inboundSchema: z.ZodType<
3887
+ CreateDeploymentGitSource11,
3888
+ z.ZodTypeDef,
3889
+ unknown
3890
+ > = z.object({
3891
+ type:
3892
+ CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody11Type$inboundSchema,
3893
+ ref: z.string(),
3894
+ sha: z.string(),
3895
+ projectId: z.number(),
3896
+ });
3897
+
3898
+ /** @internal */
3899
+ export type CreateDeploymentGitSource11$Outbound = {
3900
+ type: string;
3901
+ ref: string;
3902
+ sha: string;
3903
+ projectId: number;
3904
+ };
3905
+
3906
+ /** @internal */
3907
+ export const CreateDeploymentGitSource11$outboundSchema: z.ZodType<
3908
+ CreateDeploymentGitSource11$Outbound,
3909
+ z.ZodTypeDef,
3910
+ CreateDeploymentGitSource11
3911
+ > = z.object({
3912
+ type:
3913
+ CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody11Type$outboundSchema,
3914
+ ref: z.string(),
3915
+ sha: z.string(),
3916
+ projectId: z.number(),
3917
+ });
3918
+
3919
+ /**
3920
+ * @internal
3921
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3922
+ */
3923
+ export namespace CreateDeploymentGitSource11$ {
3924
+ /** @deprecated use `CreateDeploymentGitSource11$inboundSchema` instead. */
3925
+ export const inboundSchema = CreateDeploymentGitSource11$inboundSchema;
3926
+ /** @deprecated use `CreateDeploymentGitSource11$outboundSchema` instead. */
3927
+ export const outboundSchema = CreateDeploymentGitSource11$outboundSchema;
3928
+ /** @deprecated use `CreateDeploymentGitSource11$Outbound` instead. */
3929
+ export type Outbound = CreateDeploymentGitSource11$Outbound;
3930
+ }
3931
+
3932
+ export function createDeploymentGitSource11ToJSON(
3933
+ createDeploymentGitSource11: CreateDeploymentGitSource11,
3934
+ ): string {
3935
+ return JSON.stringify(
3936
+ CreateDeploymentGitSource11$outboundSchema.parse(
3937
+ createDeploymentGitSource11,
3938
+ ),
3939
+ );
3940
+ }
3941
+
3942
+ export function createDeploymentGitSource11FromJSON(
3943
+ jsonString: string,
3944
+ ): SafeParseResult<CreateDeploymentGitSource11, SDKValidationError> {
3945
+ return safeParse(
3946
+ jsonString,
3947
+ (x) => CreateDeploymentGitSource11$inboundSchema.parse(JSON.parse(x)),
3948
+ `Failed to parse 'CreateDeploymentGitSource11' from JSON`,
3949
+ );
3950
+ }
3951
+
3952
+ /** @internal */
3953
+ export const CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody10Type$inboundSchema:
3954
+ z.ZodNativeEnum<
3955
+ typeof CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody10Type
3956
+ > = z.nativeEnum(
3957
+ CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody10Type,
3958
+ );
3959
+
3960
+ /** @internal */
3961
+ export const CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody10Type$outboundSchema:
3962
+ z.ZodNativeEnum<
3963
+ typeof CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody10Type
3964
+ > =
3965
+ CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody10Type$inboundSchema;
3966
+
3967
+ /**
3968
+ * @internal
3969
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3970
+ */
3971
+ export namespace CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody10Type$ {
3972
+ /** @deprecated use `CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody10Type$inboundSchema` instead. */
3973
+ export const inboundSchema =
3974
+ CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody10Type$inboundSchema;
3975
+ /** @deprecated use `CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody10Type$outboundSchema` instead. */
3976
+ export const outboundSchema =
3977
+ CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody10Type$outboundSchema;
3978
+ }
3979
+
3980
+ /** @internal */
3981
+ export const CreateDeploymentGitSource10$inboundSchema: z.ZodType<
3982
+ CreateDeploymentGitSource10,
3983
+ z.ZodTypeDef,
3984
+ unknown
3985
+ > = z.object({
3986
+ type:
3987
+ CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody10Type$inboundSchema,
3988
+ host: z.string(),
3989
+ ref: z.string(),
3990
+ sha: z.string(),
3991
+ repoId: z.number(),
3992
+ org: z.string().optional(),
3993
+ repo: z.string().optional(),
3994
+ });
3995
+
3996
+ /** @internal */
3997
+ export type CreateDeploymentGitSource10$Outbound = {
3998
+ type: string;
3999
+ host: string;
4000
+ ref: string;
4001
+ sha: string;
4002
+ repoId: number;
4003
+ org?: string | undefined;
4004
+ repo?: string | undefined;
4005
+ };
4006
+
4007
+ /** @internal */
4008
+ export const CreateDeploymentGitSource10$outboundSchema: z.ZodType<
4009
+ CreateDeploymentGitSource10$Outbound,
4010
+ z.ZodTypeDef,
4011
+ CreateDeploymentGitSource10
4012
+ > = z.object({
4013
+ type:
4014
+ CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody10Type$outboundSchema,
4015
+ host: z.string(),
4016
+ ref: z.string(),
4017
+ sha: z.string(),
4018
+ repoId: z.number(),
4019
+ org: z.string().optional(),
4020
+ repo: z.string().optional(),
4021
+ });
4022
+
4023
+ /**
4024
+ * @internal
4025
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4026
+ */
4027
+ export namespace CreateDeploymentGitSource10$ {
4028
+ /** @deprecated use `CreateDeploymentGitSource10$inboundSchema` instead. */
4029
+ export const inboundSchema = CreateDeploymentGitSource10$inboundSchema;
4030
+ /** @deprecated use `CreateDeploymentGitSource10$outboundSchema` instead. */
4031
+ export const outboundSchema = CreateDeploymentGitSource10$outboundSchema;
4032
+ /** @deprecated use `CreateDeploymentGitSource10$Outbound` instead. */
4033
+ export type Outbound = CreateDeploymentGitSource10$Outbound;
4034
+ }
4035
+
4036
+ export function createDeploymentGitSource10ToJSON(
4037
+ createDeploymentGitSource10: CreateDeploymentGitSource10,
3645
4038
  ): string {
3646
4039
  return JSON.stringify(
3647
- CustomEnvironment$outboundSchema.parse(customEnvironment),
4040
+ CreateDeploymentGitSource10$outboundSchema.parse(
4041
+ createDeploymentGitSource10,
4042
+ ),
3648
4043
  );
3649
4044
  }
3650
4045
 
3651
- export function customEnvironmentFromJSON(
4046
+ export function createDeploymentGitSource10FromJSON(
3652
4047
  jsonString: string,
3653
- ): SafeParseResult<CustomEnvironment, SDKValidationError> {
4048
+ ): SafeParseResult<CreateDeploymentGitSource10, SDKValidationError> {
3654
4049
  return safeParse(
3655
4050
  jsonString,
3656
- (x) => CustomEnvironment$inboundSchema.parse(JSON.parse(x)),
3657
- `Failed to parse 'CustomEnvironment' from JSON`,
4051
+ (x) => CreateDeploymentGitSource10$inboundSchema.parse(JSON.parse(x)),
4052
+ `Failed to parse 'CreateDeploymentGitSource10' from JSON`,
3658
4053
  );
3659
4054
  }
3660
4055
 
3661
- /** @internal */
3662
- export const CreateDeploymentType$inboundSchema: z.ZodNativeEnum<
3663
- typeof CreateDeploymentType
3664
- > = z.nativeEnum(CreateDeploymentType);
3665
-
3666
- /** @internal */
3667
- export const CreateDeploymentType$outboundSchema: z.ZodNativeEnum<
3668
- typeof CreateDeploymentType
3669
- > = CreateDeploymentType$inboundSchema;
3670
-
3671
- /**
3672
- * @internal
3673
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3674
- */
3675
- export namespace CreateDeploymentType$ {
3676
- /** @deprecated use `CreateDeploymentType$inboundSchema` instead. */
3677
- export const inboundSchema = CreateDeploymentType$inboundSchema;
3678
- /** @deprecated use `CreateDeploymentType$outboundSchema` instead. */
3679
- export const outboundSchema = CreateDeploymentType$outboundSchema;
3680
- }
3681
-
3682
4056
  /** @internal */
3683
4057
  export const CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody9Type$inboundSchema:
3684
4058
  z.ZodNativeEnum<
@@ -3717,10 +4091,9 @@ export const CreateDeploymentGitSource9$inboundSchema: z.ZodType<
3717
4091
  CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody9Type$inboundSchema,
3718
4092
  ref: z.string(),
3719
4093
  sha: z.string(),
3720
- owner: z.string().optional(),
3721
- slug: z.string().optional(),
3722
- workspaceUuid: z.string(),
3723
- repoUuid: z.string(),
4094
+ repoId: z.number(),
4095
+ org: z.string().optional(),
4096
+ repo: z.string().optional(),
3724
4097
  });
3725
4098
 
3726
4099
  /** @internal */
@@ -3728,10 +4101,9 @@ export type CreateDeploymentGitSource9$Outbound = {
3728
4101
  type: string;
3729
4102
  ref: string;
3730
4103
  sha: string;
3731
- owner?: string | undefined;
3732
- slug?: string | undefined;
3733
- workspaceUuid: string;
3734
- repoUuid: string;
4104
+ repoId: number;
4105
+ org?: string | undefined;
4106
+ repo?: string | undefined;
3735
4107
  };
3736
4108
 
3737
4109
  /** @internal */
@@ -3744,10 +4116,9 @@ export const CreateDeploymentGitSource9$outboundSchema: z.ZodType<
3744
4116
  CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody9Type$outboundSchema,
3745
4117
  ref: z.string(),
3746
4118
  sha: z.string(),
3747
- owner: z.string().optional(),
3748
- slug: z.string().optional(),
3749
- workspaceUuid: z.string(),
3750
- repoUuid: z.string(),
4119
+ repoId: z.number(),
4120
+ org: z.string().optional(),
4121
+ repo: z.string().optional(),
3751
4122
  });
3752
4123
 
3753
4124
  /**
@@ -3819,7 +4190,7 @@ export const CreateDeploymentGitSource8$inboundSchema: z.ZodType<
3819
4190
  CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody8Type$inboundSchema,
3820
4191
  ref: z.string(),
3821
4192
  sha: z.string(),
3822
- projectId: z.number(),
4193
+ gitUrl: z.string(),
3823
4194
  });
3824
4195
 
3825
4196
  /** @internal */
@@ -3827,7 +4198,7 @@ export type CreateDeploymentGitSource8$Outbound = {
3827
4198
  type: string;
3828
4199
  ref: string;
3829
4200
  sha: string;
3830
- projectId: number;
4201
+ gitUrl: string;
3831
4202
  };
3832
4203
 
3833
4204
  /** @internal */
@@ -3840,7 +4211,7 @@ export const CreateDeploymentGitSource8$outboundSchema: z.ZodType<
3840
4211
  CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody8Type$outboundSchema,
3841
4212
  ref: z.string(),
3842
4213
  sha: z.string(),
3843
- projectId: z.number(),
4214
+ gitUrl: z.string(),
3844
4215
  });
3845
4216
 
3846
4217
  /**
@@ -3910,21 +4281,21 @@ export const CreateDeploymentGitSource7$inboundSchema: z.ZodType<
3910
4281
  > = z.object({
3911
4282
  type:
3912
4283
  CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody7Type$inboundSchema,
3913
- ref: z.string(),
3914
- sha: z.string(),
3915
- repoId: z.number(),
3916
- org: z.string().optional(),
3917
- repo: z.string().optional(),
4284
+ owner: z.string(),
4285
+ slug: z.string(),
4286
+ ref: z.nullable(z.string()).optional(),
4287
+ sha: z.string().optional(),
4288
+ prId: z.nullable(z.number()).optional(),
3918
4289
  });
3919
4290
 
3920
4291
  /** @internal */
3921
4292
  export type CreateDeploymentGitSource7$Outbound = {
3922
4293
  type: string;
3923
- ref: string;
3924
- sha: string;
3925
- repoId: number;
3926
- org?: string | undefined;
3927
- repo?: string | undefined;
4294
+ owner: string;
4295
+ slug: string;
4296
+ ref?: string | null | undefined;
4297
+ sha?: string | undefined;
4298
+ prId?: number | null | undefined;
3928
4299
  };
3929
4300
 
3930
4301
  /** @internal */
@@ -3935,11 +4306,11 @@ export const CreateDeploymentGitSource7$outboundSchema: z.ZodType<
3935
4306
  > = z.object({
3936
4307
  type:
3937
4308
  CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody7Type$outboundSchema,
3938
- ref: z.string(),
3939
- sha: z.string(),
3940
- repoId: z.number(),
3941
- org: z.string().optional(),
3942
- repo: z.string().optional(),
4309
+ owner: z.string(),
4310
+ slug: z.string(),
4311
+ ref: z.nullable(z.string()).optional(),
4312
+ sha: z.string().optional(),
4313
+ prId: z.nullable(z.number()).optional(),
3943
4314
  });
3944
4315
 
3945
4316
  /**
@@ -4009,17 +4380,21 @@ export const CreateDeploymentGitSource6$inboundSchema: z.ZodType<
4009
4380
  > = z.object({
4010
4381
  type:
4011
4382
  CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody6Type$inboundSchema,
4012
- ref: z.string(),
4013
- sha: z.string(),
4014
- gitUrl: z.string(),
4383
+ workspaceUuid: z.string().optional(),
4384
+ repoUuid: z.string(),
4385
+ ref: z.nullable(z.string()).optional(),
4386
+ sha: z.string().optional(),
4387
+ prId: z.nullable(z.number()).optional(),
4015
4388
  });
4016
4389
 
4017
4390
  /** @internal */
4018
4391
  export type CreateDeploymentGitSource6$Outbound = {
4019
4392
  type: string;
4020
- ref: string;
4021
- sha: string;
4022
- gitUrl: string;
4393
+ workspaceUuid?: string | undefined;
4394
+ repoUuid: string;
4395
+ ref?: string | null | undefined;
4396
+ sha?: string | undefined;
4397
+ prId?: number | null | undefined;
4023
4398
  };
4024
4399
 
4025
4400
  /** @internal */
@@ -4030,9 +4405,11 @@ export const CreateDeploymentGitSource6$outboundSchema: z.ZodType<
4030
4405
  > = z.object({
4031
4406
  type:
4032
4407
  CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody6Type$outboundSchema,
4033
- ref: z.string(),
4034
- sha: z.string(),
4035
- gitUrl: z.string(),
4408
+ workspaceUuid: z.string().optional(),
4409
+ repoUuid: z.string(),
4410
+ ref: z.nullable(z.string()).optional(),
4411
+ sha: z.string().optional(),
4412
+ prId: z.nullable(z.number()).optional(),
4036
4413
  });
4037
4414
 
4038
4415
  /**
@@ -4094,6 +4471,54 @@ export namespace CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONR
4094
4471
  CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody5Type$outboundSchema;
4095
4472
  }
4096
4473
 
4474
+ /** @internal */
4475
+ export const GitSourceProjectId$inboundSchema: z.ZodType<
4476
+ GitSourceProjectId,
4477
+ z.ZodTypeDef,
4478
+ unknown
4479
+ > = z.union([z.string(), z.number()]);
4480
+
4481
+ /** @internal */
4482
+ export type GitSourceProjectId$Outbound = string | number;
4483
+
4484
+ /** @internal */
4485
+ export const GitSourceProjectId$outboundSchema: z.ZodType<
4486
+ GitSourceProjectId$Outbound,
4487
+ z.ZodTypeDef,
4488
+ GitSourceProjectId
4489
+ > = z.union([z.string(), z.number()]);
4490
+
4491
+ /**
4492
+ * @internal
4493
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4494
+ */
4495
+ export namespace GitSourceProjectId$ {
4496
+ /** @deprecated use `GitSourceProjectId$inboundSchema` instead. */
4497
+ export const inboundSchema = GitSourceProjectId$inboundSchema;
4498
+ /** @deprecated use `GitSourceProjectId$outboundSchema` instead. */
4499
+ export const outboundSchema = GitSourceProjectId$outboundSchema;
4500
+ /** @deprecated use `GitSourceProjectId$Outbound` instead. */
4501
+ export type Outbound = GitSourceProjectId$Outbound;
4502
+ }
4503
+
4504
+ export function gitSourceProjectIdToJSON(
4505
+ gitSourceProjectId: GitSourceProjectId,
4506
+ ): string {
4507
+ return JSON.stringify(
4508
+ GitSourceProjectId$outboundSchema.parse(gitSourceProjectId),
4509
+ );
4510
+ }
4511
+
4512
+ export function gitSourceProjectIdFromJSON(
4513
+ jsonString: string,
4514
+ ): SafeParseResult<GitSourceProjectId, SDKValidationError> {
4515
+ return safeParse(
4516
+ jsonString,
4517
+ (x) => GitSourceProjectId$inboundSchema.parse(JSON.parse(x)),
4518
+ `Failed to parse 'GitSourceProjectId' from JSON`,
4519
+ );
4520
+ }
4521
+
4097
4522
  /** @internal */
4098
4523
  export const CreateDeploymentGitSource5$inboundSchema: z.ZodType<
4099
4524
  CreateDeploymentGitSource5,
@@ -4102,8 +4527,7 @@ export const CreateDeploymentGitSource5$inboundSchema: z.ZodType<
4102
4527
  > = z.object({
4103
4528
  type:
4104
4529
  CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody5Type$inboundSchema,
4105
- owner: z.string(),
4106
- slug: z.string(),
4530
+ projectId: z.union([z.string(), z.number()]),
4107
4531
  ref: z.nullable(z.string()).optional(),
4108
4532
  sha: z.string().optional(),
4109
4533
  prId: z.nullable(z.number()).optional(),
@@ -4112,8 +4536,7 @@ export const CreateDeploymentGitSource5$inboundSchema: z.ZodType<
4112
4536
  /** @internal */
4113
4537
  export type CreateDeploymentGitSource5$Outbound = {
4114
4538
  type: string;
4115
- owner: string;
4116
- slug: string;
4539
+ projectId: string | number;
4117
4540
  ref?: string | null | undefined;
4118
4541
  sha?: string | undefined;
4119
4542
  prId?: number | null | undefined;
@@ -4127,8 +4550,7 @@ export const CreateDeploymentGitSource5$outboundSchema: z.ZodType<
4127
4550
  > = z.object({
4128
4551
  type:
4129
4552
  CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody5Type$outboundSchema,
4130
- owner: z.string(),
4131
- slug: z.string(),
4553
+ projectId: z.union([z.string(), z.number()]),
4132
4554
  ref: z.nullable(z.string()).optional(),
4133
4555
  sha: z.string().optional(),
4134
4556
  prId: z.nullable(z.number()).optional(),
@@ -4201,8 +4623,9 @@ export const CreateDeploymentGitSource4$inboundSchema: z.ZodType<
4201
4623
  > = z.object({
4202
4624
  type:
4203
4625
  CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBodyType$inboundSchema,
4204
- workspaceUuid: z.string().optional(),
4205
- repoUuid: z.string(),
4626
+ host: z.string(),
4627
+ org: z.string(),
4628
+ repo: z.string(),
4206
4629
  ref: z.nullable(z.string()).optional(),
4207
4630
  sha: z.string().optional(),
4208
4631
  prId: z.nullable(z.number()).optional(),
@@ -4211,8 +4634,9 @@ export const CreateDeploymentGitSource4$inboundSchema: z.ZodType<
4211
4634
  /** @internal */
4212
4635
  export type CreateDeploymentGitSource4$Outbound = {
4213
4636
  type: string;
4214
- workspaceUuid?: string | undefined;
4215
- repoUuid: string;
4637
+ host: string;
4638
+ org: string;
4639
+ repo: string;
4216
4640
  ref?: string | null | undefined;
4217
4641
  sha?: string | undefined;
4218
4642
  prId?: number | null | undefined;
@@ -4226,8 +4650,9 @@ export const CreateDeploymentGitSource4$outboundSchema: z.ZodType<
4226
4650
  > = z.object({
4227
4651
  type:
4228
4652
  CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBodyType$outboundSchema,
4229
- workspaceUuid: z.string().optional(),
4230
- repoUuid: z.string(),
4653
+ host: z.string(),
4654
+ org: z.string(),
4655
+ repo: z.string(),
4231
4656
  ref: z.nullable(z.string()).optional(),
4232
4657
  sha: z.string().optional(),
4233
4658
  prId: z.nullable(z.number()).optional(),
@@ -4293,50 +4718,52 @@ export namespace CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONT
4293
4718
  }
4294
4719
 
4295
4720
  /** @internal */
4296
- export const GitSourceProjectId$inboundSchema: z.ZodType<
4297
- GitSourceProjectId,
4721
+ export const CreateDeploymentGitSourceRepoId$inboundSchema: z.ZodType<
4722
+ CreateDeploymentGitSourceRepoId,
4298
4723
  z.ZodTypeDef,
4299
4724
  unknown
4300
4725
  > = z.union([z.string(), z.number()]);
4301
4726
 
4302
4727
  /** @internal */
4303
- export type GitSourceProjectId$Outbound = string | number;
4728
+ export type CreateDeploymentGitSourceRepoId$Outbound = string | number;
4304
4729
 
4305
4730
  /** @internal */
4306
- export const GitSourceProjectId$outboundSchema: z.ZodType<
4307
- GitSourceProjectId$Outbound,
4731
+ export const CreateDeploymentGitSourceRepoId$outboundSchema: z.ZodType<
4732
+ CreateDeploymentGitSourceRepoId$Outbound,
4308
4733
  z.ZodTypeDef,
4309
- GitSourceProjectId
4734
+ CreateDeploymentGitSourceRepoId
4310
4735
  > = z.union([z.string(), z.number()]);
4311
4736
 
4312
4737
  /**
4313
4738
  * @internal
4314
4739
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4315
4740
  */
4316
- export namespace GitSourceProjectId$ {
4317
- /** @deprecated use `GitSourceProjectId$inboundSchema` instead. */
4318
- export const inboundSchema = GitSourceProjectId$inboundSchema;
4319
- /** @deprecated use `GitSourceProjectId$outboundSchema` instead. */
4320
- export const outboundSchema = GitSourceProjectId$outboundSchema;
4321
- /** @deprecated use `GitSourceProjectId$Outbound` instead. */
4322
- export type Outbound = GitSourceProjectId$Outbound;
4741
+ export namespace CreateDeploymentGitSourceRepoId$ {
4742
+ /** @deprecated use `CreateDeploymentGitSourceRepoId$inboundSchema` instead. */
4743
+ export const inboundSchema = CreateDeploymentGitSourceRepoId$inboundSchema;
4744
+ /** @deprecated use `CreateDeploymentGitSourceRepoId$outboundSchema` instead. */
4745
+ export const outboundSchema = CreateDeploymentGitSourceRepoId$outboundSchema;
4746
+ /** @deprecated use `CreateDeploymentGitSourceRepoId$Outbound` instead. */
4747
+ export type Outbound = CreateDeploymentGitSourceRepoId$Outbound;
4323
4748
  }
4324
4749
 
4325
- export function gitSourceProjectIdToJSON(
4326
- gitSourceProjectId: GitSourceProjectId,
4750
+ export function createDeploymentGitSourceRepoIdToJSON(
4751
+ createDeploymentGitSourceRepoId: CreateDeploymentGitSourceRepoId,
4327
4752
  ): string {
4328
4753
  return JSON.stringify(
4329
- GitSourceProjectId$outboundSchema.parse(gitSourceProjectId),
4754
+ CreateDeploymentGitSourceRepoId$outboundSchema.parse(
4755
+ createDeploymentGitSourceRepoId,
4756
+ ),
4330
4757
  );
4331
4758
  }
4332
4759
 
4333
- export function gitSourceProjectIdFromJSON(
4760
+ export function createDeploymentGitSourceRepoIdFromJSON(
4334
4761
  jsonString: string,
4335
- ): SafeParseResult<GitSourceProjectId, SDKValidationError> {
4762
+ ): SafeParseResult<CreateDeploymentGitSourceRepoId, SDKValidationError> {
4336
4763
  return safeParse(
4337
4764
  jsonString,
4338
- (x) => GitSourceProjectId$inboundSchema.parse(JSON.parse(x)),
4339
- `Failed to parse 'GitSourceProjectId' from JSON`,
4765
+ (x) => CreateDeploymentGitSourceRepoId$inboundSchema.parse(JSON.parse(x)),
4766
+ `Failed to parse 'CreateDeploymentGitSourceRepoId' from JSON`,
4340
4767
  );
4341
4768
  }
4342
4769
 
@@ -4348,7 +4775,8 @@ export const CreateDeploymentGitSource3$inboundSchema: z.ZodType<
4348
4775
  > = z.object({
4349
4776
  type:
4350
4777
  CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONType$inboundSchema,
4351
- projectId: z.union([z.string(), z.number()]),
4778
+ host: z.string(),
4779
+ repoId: z.union([z.string(), z.number()]),
4352
4780
  ref: z.nullable(z.string()).optional(),
4353
4781
  sha: z.string().optional(),
4354
4782
  prId: z.nullable(z.number()).optional(),
@@ -4357,7 +4785,8 @@ export const CreateDeploymentGitSource3$inboundSchema: z.ZodType<
4357
4785
  /** @internal */
4358
4786
  export type CreateDeploymentGitSource3$Outbound = {
4359
4787
  type: string;
4360
- projectId: string | number;
4788
+ host: string;
4789
+ repoId: string | number;
4361
4790
  ref?: string | null | undefined;
4362
4791
  sha?: string | undefined;
4363
4792
  prId?: number | null | undefined;
@@ -4371,7 +4800,8 @@ export const CreateDeploymentGitSource3$outboundSchema: z.ZodType<
4371
4800
  > = z.object({
4372
4801
  type:
4373
4802
  CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONType$outboundSchema,
4374
- projectId: z.union([z.string(), z.number()]),
4803
+ host: z.string(),
4804
+ repoId: z.union([z.string(), z.number()]),
4375
4805
  ref: z.nullable(z.string()).optional(),
4376
4806
  sha: z.string().optional(),
4377
4807
  prId: z.nullable(z.number()).optional(),
@@ -4641,28 +5071,34 @@ export const CreateDeploymentGitSource$inboundSchema: z.ZodType<
4641
5071
  z.ZodTypeDef,
4642
5072
  unknown
4643
5073
  > = z.union([
4644
- z.lazy(() => CreateDeploymentGitSource6$inboundSchema),
4645
5074
  z.lazy(() => CreateDeploymentGitSource8$inboundSchema),
5075
+ z.lazy(() => CreateDeploymentGitSource11$inboundSchema),
4646
5076
  z.lazy(() => CreateDeploymentGitSource1$inboundSchema),
4647
- z.lazy(() => CreateDeploymentGitSource3$inboundSchema),
4648
- z.lazy(() => CreateDeploymentGitSource2$inboundSchema),
4649
- z.lazy(() => CreateDeploymentGitSource4$inboundSchema),
4650
5077
  z.lazy(() => CreateDeploymentGitSource5$inboundSchema),
5078
+ z.lazy(() => CreateDeploymentGitSource2$inboundSchema),
5079
+ z.lazy(() => CreateDeploymentGitSource3$inboundSchema),
5080
+ z.lazy(() => CreateDeploymentGitSource6$inboundSchema),
4651
5081
  z.lazy(() => CreateDeploymentGitSource7$inboundSchema),
4652
5082
  z.lazy(() => CreateDeploymentGitSource9$inboundSchema),
5083
+ z.lazy(() => CreateDeploymentGitSource4$inboundSchema),
5084
+ z.lazy(() => CreateDeploymentGitSource10$inboundSchema),
5085
+ z.lazy(() => CreateDeploymentGitSource12$inboundSchema),
4653
5086
  ]);
4654
5087
 
4655
5088
  /** @internal */
4656
5089
  export type CreateDeploymentGitSource$Outbound =
4657
- | CreateDeploymentGitSource6$Outbound
4658
5090
  | CreateDeploymentGitSource8$Outbound
5091
+ | CreateDeploymentGitSource11$Outbound
4659
5092
  | CreateDeploymentGitSource1$Outbound
4660
- | CreateDeploymentGitSource3$Outbound
4661
- | CreateDeploymentGitSource2$Outbound
4662
- | CreateDeploymentGitSource4$Outbound
4663
5093
  | CreateDeploymentGitSource5$Outbound
5094
+ | CreateDeploymentGitSource2$Outbound
5095
+ | CreateDeploymentGitSource3$Outbound
5096
+ | CreateDeploymentGitSource6$Outbound
4664
5097
  | CreateDeploymentGitSource7$Outbound
4665
- | CreateDeploymentGitSource9$Outbound;
5098
+ | CreateDeploymentGitSource9$Outbound
5099
+ | CreateDeploymentGitSource4$Outbound
5100
+ | CreateDeploymentGitSource10$Outbound
5101
+ | CreateDeploymentGitSource12$Outbound;
4666
5102
 
4667
5103
  /** @internal */
4668
5104
  export const CreateDeploymentGitSource$outboundSchema: z.ZodType<
@@ -4670,15 +5106,18 @@ export const CreateDeploymentGitSource$outboundSchema: z.ZodType<
4670
5106
  z.ZodTypeDef,
4671
5107
  CreateDeploymentGitSource
4672
5108
  > = z.union([
4673
- z.lazy(() => CreateDeploymentGitSource6$outboundSchema),
4674
5109
  z.lazy(() => CreateDeploymentGitSource8$outboundSchema),
5110
+ z.lazy(() => CreateDeploymentGitSource11$outboundSchema),
4675
5111
  z.lazy(() => CreateDeploymentGitSource1$outboundSchema),
4676
- z.lazy(() => CreateDeploymentGitSource3$outboundSchema),
4677
- z.lazy(() => CreateDeploymentGitSource2$outboundSchema),
4678
- z.lazy(() => CreateDeploymentGitSource4$outboundSchema),
4679
5112
  z.lazy(() => CreateDeploymentGitSource5$outboundSchema),
5113
+ z.lazy(() => CreateDeploymentGitSource2$outboundSchema),
5114
+ z.lazy(() => CreateDeploymentGitSource3$outboundSchema),
5115
+ z.lazy(() => CreateDeploymentGitSource6$outboundSchema),
4680
5116
  z.lazy(() => CreateDeploymentGitSource7$outboundSchema),
4681
5117
  z.lazy(() => CreateDeploymentGitSource9$outboundSchema),
5118
+ z.lazy(() => CreateDeploymentGitSource4$outboundSchema),
5119
+ z.lazy(() => CreateDeploymentGitSource10$outboundSchema),
5120
+ z.lazy(() => CreateDeploymentGitSource12$outboundSchema),
4682
5121
  ]);
4683
5122
 
4684
5123
  /**
@@ -6976,6 +7415,7 @@ export const CreateDeploymentResponseBody$inboundSchema: z.ZodType<
6976
7415
  aliasAssigned: z.boolean(),
6977
7416
  bootedAt: z.number(),
6978
7417
  buildingAt: z.number(),
7418
+ buildContainerFinishedAt: z.number().optional(),
6979
7419
  buildSkipped: z.boolean(),
6980
7420
  creator: z.lazy(() => Creator$inboundSchema),
6981
7421
  initReadyAt: z.number().optional(),
@@ -7000,15 +7440,18 @@ export const CreateDeploymentResponseBody$inboundSchema: z.ZodType<
7000
7440
  version: z.number(),
7001
7441
  autoAssignCustomDomains: z.boolean().optional(),
7002
7442
  gitSource: z.union([
7003
- z.lazy(() => CreateDeploymentGitSource6$inboundSchema),
7004
7443
  z.lazy(() => CreateDeploymentGitSource8$inboundSchema),
7444
+ z.lazy(() => CreateDeploymentGitSource11$inboundSchema),
7005
7445
  z.lazy(() => CreateDeploymentGitSource1$inboundSchema),
7006
- z.lazy(() => CreateDeploymentGitSource3$inboundSchema),
7007
- z.lazy(() => CreateDeploymentGitSource2$inboundSchema),
7008
- z.lazy(() => CreateDeploymentGitSource4$inboundSchema),
7009
7446
  z.lazy(() => CreateDeploymentGitSource5$inboundSchema),
7447
+ z.lazy(() => CreateDeploymentGitSource2$inboundSchema),
7448
+ z.lazy(() => CreateDeploymentGitSource3$inboundSchema),
7449
+ z.lazy(() => CreateDeploymentGitSource6$inboundSchema),
7010
7450
  z.lazy(() => CreateDeploymentGitSource7$inboundSchema),
7011
7451
  z.lazy(() => CreateDeploymentGitSource9$inboundSchema),
7452
+ z.lazy(() => CreateDeploymentGitSource4$inboundSchema),
7453
+ z.lazy(() => CreateDeploymentGitSource10$inboundSchema),
7454
+ z.lazy(() => CreateDeploymentGitSource12$inboundSchema),
7012
7455
  ]).optional(),
7013
7456
  meta: z.record(z.string()),
7014
7457
  project: z.lazy(() => CreateDeploymentProject$inboundSchema).optional(),
@@ -7093,6 +7536,7 @@ export type CreateDeploymentResponseBody$Outbound = {
7093
7536
  aliasAssigned: boolean;
7094
7537
  bootedAt: number;
7095
7538
  buildingAt: number;
7539
+ buildContainerFinishedAt?: number | undefined;
7096
7540
  buildSkipped: boolean;
7097
7541
  creator: Creator$Outbound;
7098
7542
  initReadyAt?: number | undefined;
@@ -7117,15 +7561,18 @@ export type CreateDeploymentResponseBody$Outbound = {
7117
7561
  version: number;
7118
7562
  autoAssignCustomDomains?: boolean | undefined;
7119
7563
  gitSource?:
7120
- | CreateDeploymentGitSource6$Outbound
7121
7564
  | CreateDeploymentGitSource8$Outbound
7565
+ | CreateDeploymentGitSource11$Outbound
7122
7566
  | CreateDeploymentGitSource1$Outbound
7123
- | CreateDeploymentGitSource3$Outbound
7124
- | CreateDeploymentGitSource2$Outbound
7125
- | CreateDeploymentGitSource4$Outbound
7126
7567
  | CreateDeploymentGitSource5$Outbound
7568
+ | CreateDeploymentGitSource2$Outbound
7569
+ | CreateDeploymentGitSource3$Outbound
7570
+ | CreateDeploymentGitSource6$Outbound
7127
7571
  | CreateDeploymentGitSource7$Outbound
7128
7572
  | CreateDeploymentGitSource9$Outbound
7573
+ | CreateDeploymentGitSource4$Outbound
7574
+ | CreateDeploymentGitSource10$Outbound
7575
+ | CreateDeploymentGitSource12$Outbound
7129
7576
  | undefined;
7130
7577
  meta: { [k: string]: string };
7131
7578
  project?: CreateDeploymentProject$Outbound | undefined;
@@ -7201,6 +7648,7 @@ export const CreateDeploymentResponseBody$outboundSchema: z.ZodType<
7201
7648
  aliasAssigned: z.boolean(),
7202
7649
  bootedAt: z.number(),
7203
7650
  buildingAt: z.number(),
7651
+ buildContainerFinishedAt: z.number().optional(),
7204
7652
  buildSkipped: z.boolean(),
7205
7653
  creator: z.lazy(() => Creator$outboundSchema),
7206
7654
  initReadyAt: z.number().optional(),
@@ -7225,15 +7673,18 @@ export const CreateDeploymentResponseBody$outboundSchema: z.ZodType<
7225
7673
  version: z.number(),
7226
7674
  autoAssignCustomDomains: z.boolean().optional(),
7227
7675
  gitSource: z.union([
7228
- z.lazy(() => CreateDeploymentGitSource6$outboundSchema),
7229
7676
  z.lazy(() => CreateDeploymentGitSource8$outboundSchema),
7677
+ z.lazy(() => CreateDeploymentGitSource11$outboundSchema),
7230
7678
  z.lazy(() => CreateDeploymentGitSource1$outboundSchema),
7231
- z.lazy(() => CreateDeploymentGitSource3$outboundSchema),
7232
- z.lazy(() => CreateDeploymentGitSource2$outboundSchema),
7233
- z.lazy(() => CreateDeploymentGitSource4$outboundSchema),
7234
7679
  z.lazy(() => CreateDeploymentGitSource5$outboundSchema),
7680
+ z.lazy(() => CreateDeploymentGitSource2$outboundSchema),
7681
+ z.lazy(() => CreateDeploymentGitSource3$outboundSchema),
7682
+ z.lazy(() => CreateDeploymentGitSource6$outboundSchema),
7235
7683
  z.lazy(() => CreateDeploymentGitSource7$outboundSchema),
7236
7684
  z.lazy(() => CreateDeploymentGitSource9$outboundSchema),
7685
+ z.lazy(() => CreateDeploymentGitSource4$outboundSchema),
7686
+ z.lazy(() => CreateDeploymentGitSource10$outboundSchema),
7687
+ z.lazy(() => CreateDeploymentGitSource12$outboundSchema),
7237
7688
  ]).optional(),
7238
7689
  meta: z.record(z.string()),
7239
7690
  project: z.lazy(() => CreateDeploymentProject$outboundSchema).optional(),