@vercel/sdk 1.6.7 → 1.6.8

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 (142) hide show
  1. package/README.md +17 -29
  2. package/bin/mcp-server.js +2591 -901
  3. package/bin/mcp-server.js.map +29 -26
  4. package/docs/sdks/vercel/README.md +77 -0
  5. package/esm/__tests__/environment.test.js +28 -4
  6. package/esm/__tests__/environment.test.js.map +1 -1
  7. package/esm/__tests__/vercel.test.d.ts +2 -0
  8. package/esm/__tests__/vercel.test.d.ts.map +1 -0
  9. package/esm/__tests__/vercel.test.js +21 -0
  10. package/esm/__tests__/vercel.test.js.map +1 -0
  11. package/esm/funcs/marketplaceUpdateResourceSecretsById.js +2 -2
  12. package/esm/funcs/marketplaceUpdateResourceSecretsById.js.map +1 -1
  13. package/esm/funcs/patchAliasesIdProtectionBypass.d.ts +18 -0
  14. package/esm/funcs/patchAliasesIdProtectionBypass.d.ts.map +1 -0
  15. package/esm/funcs/patchAliasesIdProtectionBypass.js +81 -0
  16. package/esm/funcs/patchAliasesIdProtectionBypass.js.map +1 -0
  17. package/esm/lib/config.d.ts +3 -3
  18. package/esm/lib/config.js +3 -3
  19. package/esm/lib/sdks.d.ts +3 -1
  20. package/esm/lib/sdks.d.ts.map +1 -1
  21. package/esm/lib/sdks.js +6 -11
  22. package/esm/lib/sdks.js.map +1 -1
  23. package/esm/mcp-server/mcp-server.js +1 -1
  24. package/esm/mcp-server/server.d.ts.map +1 -1
  25. package/esm/mcp-server/server.js +3 -1
  26. package/esm/mcp-server/server.js.map +1 -1
  27. package/esm/mcp-server/tools/patchAliasesIdProtectionBypass.d.ts +7 -0
  28. package/esm/mcp-server/tools/patchAliasesIdProtectionBypass.d.ts.map +1 -0
  29. package/esm/mcp-server/tools/patchAliasesIdProtectionBypass.js +26 -0
  30. package/esm/mcp-server/tools/patchAliasesIdProtectionBypass.js.map +1 -0
  31. package/esm/models/authuser.d.ts +0 -5
  32. package/esm/models/authuser.d.ts.map +1 -1
  33. package/esm/models/authuser.js +0 -2
  34. package/esm/models/authuser.js.map +1 -1
  35. package/esm/models/canceldeploymentop.d.ts +268 -26
  36. package/esm/models/canceldeploymentop.d.ts.map +1 -1
  37. package/esm/models/canceldeploymentop.js +194 -24
  38. package/esm/models/canceldeploymentop.js.map +1 -1
  39. package/esm/models/createcustomenvironmentop.d.ts +244 -2
  40. package/esm/models/createcustomenvironmentop.d.ts.map +1 -1
  41. package/esm/models/createcustomenvironmentop.js +174 -2
  42. package/esm/models/createcustomenvironmentop.js.map +1 -1
  43. package/esm/models/createdeploymentop.d.ts +357 -58
  44. package/esm/models/createdeploymentop.d.ts.map +1 -1
  45. package/esm/models/createdeploymentop.js +290 -60
  46. package/esm/models/createdeploymentop.js.map +1 -1
  47. package/esm/models/createprojectop.d.ts +328 -71
  48. package/esm/models/createprojectop.d.ts.map +1 -1
  49. package/esm/models/createprojectop.js +253 -75
  50. package/esm/models/createprojectop.js.map +1 -1
  51. package/esm/models/createrecordop.d.ts +43 -43
  52. package/esm/models/createrecordop.d.ts.map +1 -1
  53. package/esm/models/createrecordop.js +51 -51
  54. package/esm/models/createrecordop.js.map +1 -1
  55. package/esm/models/getaliasop.d.ts +8 -8
  56. package/esm/models/getaliasop.d.ts.map +1 -1
  57. package/esm/models/getaliasop.js +12 -13
  58. package/esm/models/getaliasop.js.map +1 -1
  59. package/esm/models/getcustomenvironmentop.d.ts +242 -2
  60. package/esm/models/getcustomenvironmentop.d.ts.map +1 -1
  61. package/esm/models/getcustomenvironmentop.js +175 -2
  62. package/esm/models/getcustomenvironmentop.js.map +1 -1
  63. package/esm/models/getdeploymentop.d.ts +502 -18
  64. package/esm/models/getdeploymentop.d.ts.map +1 -1
  65. package/esm/models/getdeploymentop.js +354 -14
  66. package/esm/models/getdeploymentop.js.map +1 -1
  67. package/esm/models/getprojectdomainsop.d.ts +30 -30
  68. package/esm/models/getprojectdomainsop.d.ts.map +1 -1
  69. package/esm/models/getprojectdomainsop.js +32 -32
  70. package/esm/models/getprojectdomainsop.js.map +1 -1
  71. package/esm/models/getprojectsop.d.ts +342 -95
  72. package/esm/models/getprojectsop.d.ts.map +1 -1
  73. package/esm/models/getprojectsop.js +285 -112
  74. package/esm/models/getprojectsop.js.map +1 -1
  75. package/esm/models/getv9projectsidornamecustomenvironmentsop.d.ts +242 -2
  76. package/esm/models/getv9projectsidornamecustomenvironmentsop.d.ts.map +1 -1
  77. package/esm/models/getv9projectsidornamecustomenvironmentsop.js +172 -2
  78. package/esm/models/getv9projectsidornamecustomenvironmentsop.js.map +1 -1
  79. package/esm/models/listaliasesop.d.ts +8 -8
  80. package/esm/models/listaliasesop.d.ts.map +1 -1
  81. package/esm/models/listaliasesop.js +12 -12
  82. package/esm/models/listaliasesop.js.map +1 -1
  83. package/esm/models/patchaliasesidprotectionbypassop.d.ts +409 -0
  84. package/esm/models/patchaliasesidprotectionbypassop.d.ts.map +1 -0
  85. package/esm/models/patchaliasesidprotectionbypassop.js +386 -0
  86. package/esm/models/patchaliasesidprotectionbypassop.js.map +1 -0
  87. package/esm/models/removecustomenvironmentop.d.ts +245 -2
  88. package/esm/models/removecustomenvironmentop.d.ts.map +1 -1
  89. package/esm/models/removecustomenvironmentop.js +173 -2
  90. package/esm/models/removecustomenvironmentop.js.map +1 -1
  91. package/esm/models/updatecustomenvironmentop.d.ts +244 -2
  92. package/esm/models/updatecustomenvironmentop.d.ts.map +1 -1
  93. package/esm/models/updatecustomenvironmentop.js +174 -2
  94. package/esm/models/updatecustomenvironmentop.js.map +1 -1
  95. package/esm/models/updateprojectdatacacheop.d.ts +358 -111
  96. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  97. package/esm/models/updateprojectdatacacheop.js +309 -135
  98. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  99. package/esm/models/updateprojectop.d.ts +342 -95
  100. package/esm/models/updateprojectop.d.ts.map +1 -1
  101. package/esm/models/updateprojectop.js +285 -111
  102. package/esm/models/updateprojectop.js.map +1 -1
  103. package/esm/models/userevent.d.ts +124 -6
  104. package/esm/models/userevent.d.ts.map +1 -1
  105. package/esm/models/userevent.js +114 -6
  106. package/esm/models/userevent.js.map +1 -1
  107. package/esm/sdk/sdk.d.ts +8 -1
  108. package/esm/sdk/sdk.d.ts.map +1 -1
  109. package/esm/sdk/sdk.js +8 -0
  110. package/esm/sdk/sdk.js.map +1 -1
  111. package/jsr.json +1 -1
  112. package/package.json +1 -1
  113. package/src/__tests__/environment.test.ts +28 -4
  114. package/src/__tests__/vercel.test.ts +26 -0
  115. package/src/funcs/marketplaceUpdateResourceSecretsById.ts +2 -2
  116. package/src/funcs/patchAliasesIdProtectionBypass.ts +185 -0
  117. package/src/lib/config.ts +3 -3
  118. package/src/lib/sdks.ts +11 -11
  119. package/src/mcp-server/mcp-server.ts +1 -1
  120. package/src/mcp-server/server.ts +3 -1
  121. package/src/mcp-server/tools/patchAliasesIdProtectionBypass.ts +37 -0
  122. package/src/models/authuser.ts +0 -7
  123. package/src/models/canceldeploymentop.ts +503 -43
  124. package/src/models/createcustomenvironmentop.ts +426 -4
  125. package/src/models/createdeploymentop.ts +640 -117
  126. package/src/models/createprojectop.ts +658 -201
  127. package/src/models/createrecordop.ts +96 -84
  128. package/src/models/getaliasop.ts +16 -14
  129. package/src/models/getcustomenvironmentop.ts +412 -4
  130. package/src/models/getdeploymentop.ts +962 -49
  131. package/src/models/getprojectdomainsop.ts +84 -84
  132. package/src/models/getprojectsop.ts +630 -189
  133. package/src/models/getv9projectsidornamecustomenvironmentsop.ts +473 -4
  134. package/src/models/listaliasesop.ts +19 -16
  135. package/src/models/patchaliasesidprotectionbypassop.ts +786 -0
  136. package/src/models/removecustomenvironmentop.ts +425 -4
  137. package/src/models/updatecustomenvironmentop.ts +437 -4
  138. package/src/models/updateprojectdatacacheop.ts +731 -271
  139. package/src/models/updateprojectop.ts +692 -249
  140. package/src/models/userevent.ts +205 -12
  141. package/src/sdk/sdk.ts +18 -1
  142. package/vercel-spec.json +2646 -161
@@ -121,6 +121,20 @@ export type GitMetadata = {
121
121
  dirty?: boolean | undefined;
122
122
  };
123
123
 
124
+ export const CreateDeploymentGitSourceDeploymentsRequestRequestBodyType = {
125
+ Bitbucket: "bitbucket",
126
+ } as const;
127
+ export type CreateDeploymentGitSourceDeploymentsRequestRequestBodyType =
128
+ ClosedEnum<typeof CreateDeploymentGitSourceDeploymentsRequestRequestBodyType>;
129
+
130
+ export type GitSource6 = {
131
+ owner: string;
132
+ ref: string;
133
+ sha?: string | undefined;
134
+ slug: string;
135
+ type: CreateDeploymentGitSourceDeploymentsRequestRequestBodyType;
136
+ };
137
+
124
138
  export const CreateDeploymentGitSourceDeploymentsRequestType = {
125
139
  Bitbucket: "bitbucket",
126
140
  } as const;
@@ -129,41 +143,42 @@ export type CreateDeploymentGitSourceDeploymentsRequestType = ClosedEnum<
129
143
  >;
130
144
 
131
145
  export type GitSource5 = {
132
- owner: string;
133
146
  ref: string;
147
+ repoUuid: string;
134
148
  sha?: string | undefined;
135
- slug: string;
136
149
  type: CreateDeploymentGitSourceDeploymentsRequestType;
150
+ workspaceUuid?: string | undefined;
137
151
  };
138
152
 
153
+ export type ProjectId = number | string;
154
+
139
155
  export const CreateDeploymentGitSourceDeploymentsType = {
140
- Bitbucket: "bitbucket",
156
+ Gitlab: "gitlab",
141
157
  } as const;
142
158
  export type CreateDeploymentGitSourceDeploymentsType = ClosedEnum<
143
159
  typeof CreateDeploymentGitSourceDeploymentsType
144
160
  >;
145
161
 
146
162
  export type GitSource4 = {
163
+ projectId: number | string;
147
164
  ref: string;
148
- repoUuid: string;
149
165
  sha?: string | undefined;
150
166
  type: CreateDeploymentGitSourceDeploymentsType;
151
- workspaceUuid?: string | undefined;
152
167
  };
153
168
 
154
- export type ProjectId = number | string;
155
-
156
169
  export const CreateDeploymentGitSourceType = {
157
- Gitlab: "gitlab",
170
+ GithubCustomHost: "github-custom-host",
158
171
  } as const;
159
172
  export type CreateDeploymentGitSourceType = ClosedEnum<
160
173
  typeof CreateDeploymentGitSourceType
161
174
  >;
162
175
 
163
176
  export type GitSource3 = {
164
- projectId: number | string;
177
+ org: string;
165
178
  ref: string;
179
+ repo: string;
166
180
  sha?: string | undefined;
181
+ host: string;
167
182
  type: CreateDeploymentGitSourceType;
168
183
  };
169
184
 
@@ -182,17 +197,19 @@ export type GitSource2 = {
182
197
 
183
198
  export type RepoId = number | string;
184
199
 
185
- export const CreateDeploymentGitSourceDeploymentsRequestRequestBodyType = {
200
+ export const CreateDeploymentGitSourceDeploymentsRequestRequestBody1Type = {
186
201
  Github: "github",
187
202
  } as const;
188
- export type CreateDeploymentGitSourceDeploymentsRequestRequestBodyType =
189
- ClosedEnum<typeof CreateDeploymentGitSourceDeploymentsRequestRequestBodyType>;
203
+ export type CreateDeploymentGitSourceDeploymentsRequestRequestBody1Type =
204
+ ClosedEnum<
205
+ typeof CreateDeploymentGitSourceDeploymentsRequestRequestBody1Type
206
+ >;
190
207
 
191
208
  export type GitSource1 = {
192
209
  ref: string;
193
210
  repoId: number | string;
194
211
  sha?: string | undefined;
195
- type: CreateDeploymentGitSourceDeploymentsRequestRequestBodyType;
212
+ type: CreateDeploymentGitSourceDeploymentsRequestRequestBody1Type;
196
213
  };
197
214
 
198
215
  /**
@@ -200,10 +217,11 @@ export type GitSource1 = {
200
217
  */
201
218
  export type GitSource =
202
219
  | GitSource1
203
- | GitSource3
204
- | GitSource2
205
220
  | GitSource4
206
- | GitSource5;
221
+ | GitSource2
222
+ | GitSource5
223
+ | GitSource6
224
+ | GitSource3;
207
225
 
208
226
  /**
209
227
  * The framework that is being used for this project. When `null` is used no framework is selected
@@ -350,10 +368,11 @@ export type CreateDeploymentRequestBody = {
350
368
  */
351
369
  gitSource?:
352
370
  | GitSource1
353
- | GitSource3
354
- | GitSource2
355
371
  | GitSource4
372
+ | GitSource2
356
373
  | GitSource5
374
+ | GitSource6
375
+ | GitSource3
357
376
  | undefined;
358
377
  /**
359
378
  * An object containing the deployment's metadata. Multiple key-value pairs can be attached to a deployment
@@ -641,9 +660,124 @@ export type CustomEnvironment2 = {
641
660
  id: string;
642
661
  };
643
662
 
644
- export type CustomEnvironment1 = {};
663
+ /**
664
+ * The type of environment (production, preview, or development)
665
+ */
666
+ export const CustomEnvironmentType = {
667
+ Production: "production",
668
+ Preview: "preview",
669
+ Development: "development",
670
+ } as const;
671
+ /**
672
+ * The type of environment (production, preview, or development)
673
+ */
674
+ export type CustomEnvironmentType = ClosedEnum<typeof CustomEnvironmentType>;
675
+
676
+ /**
677
+ * The type of matching to perform
678
+ */
679
+ export const CreateDeploymentCustomEnvironmentType = {
680
+ StartsWith: "startsWith",
681
+ Equals: "equals",
682
+ EndsWith: "endsWith",
683
+ } as const;
684
+ /**
685
+ * The type of matching to perform
686
+ */
687
+ export type CreateDeploymentCustomEnvironmentType = ClosedEnum<
688
+ typeof CreateDeploymentCustomEnvironmentType
689
+ >;
690
+
691
+ /**
692
+ * Configuration for matching git branches to this environment
693
+ */
694
+ export type CustomEnvironmentBranchMatcher = {
695
+ /**
696
+ * The type of matching to perform
697
+ */
698
+ type: CreateDeploymentCustomEnvironmentType;
699
+ /**
700
+ * The pattern to match against branch names
701
+ */
702
+ pattern: string;
703
+ };
704
+
705
+ /**
706
+ * A list of verification challenges, one of which must be completed to verify the domain for use on the project. After the challenge is complete `POST /projects/:idOrName/domains/:domain/verify` to verify the domain. Possible challenges: - If `verification.type = TXT` the `verification.domain` will be checked for a TXT record matching `verification.value`.
707
+ */
708
+ export type CustomEnvironmentVerification = {
709
+ type: string;
710
+ domain: string;
711
+ value: string;
712
+ reason: string;
713
+ };
645
714
 
646
- export type CustomEnvironment = CustomEnvironment1 | CustomEnvironment2;
715
+ /**
716
+ * List of domains associated with this environment
717
+ */
718
+ export type CustomEnvironmentDomains = {
719
+ name: string;
720
+ apexName: string;
721
+ projectId: string;
722
+ redirect?: string | null | undefined;
723
+ redirectStatusCode?: number | null | undefined;
724
+ gitBranch?: string | null | undefined;
725
+ customEnvironmentId?: string | null | undefined;
726
+ updatedAt?: number | undefined;
727
+ createdAt?: number | undefined;
728
+ /**
729
+ * `true` if the domain is verified for use with the project. If `false` it will not be used as an alias on this project until the challenge in `verification` is completed.
730
+ */
731
+ verified: boolean;
732
+ /**
733
+ * A list of verification challenges, one of which must be completed to verify the domain for use on the project. After the challenge is complete `POST /projects/:idOrName/domains/:domain/verify` to verify the domain. Possible challenges: - If `verification.type = TXT` the `verification.domain` will be checked for a TXT record matching `verification.value`.
734
+ */
735
+ verification?: Array<CustomEnvironmentVerification> | undefined;
736
+ };
737
+
738
+ /**
739
+ * Internal representation of a custom environment with all required properties
740
+ */
741
+ export type CustomEnvironment1 = {
742
+ /**
743
+ * Unique identifier for the custom environment (format: env_*)
744
+ */
745
+ id: string;
746
+ /**
747
+ * URL-friendly name of the environment
748
+ */
749
+ slug: string;
750
+ /**
751
+ * The type of environment (production, preview, or development)
752
+ */
753
+ type: CustomEnvironmentType;
754
+ /**
755
+ * Optional description of the environment's purpose
756
+ */
757
+ description?: string | undefined;
758
+ /**
759
+ * Configuration for matching git branches to this environment
760
+ */
761
+ branchMatcher?: CustomEnvironmentBranchMatcher | undefined;
762
+ /**
763
+ * List of domains associated with this environment
764
+ */
765
+ domains?: Array<CustomEnvironmentDomains> | undefined;
766
+ /**
767
+ * List of aliases for the current deployment
768
+ */
769
+ currentDeploymentAliases?: Array<string> | undefined;
770
+ /**
771
+ * Timestamp when the environment was created
772
+ */
773
+ createdAt: number;
774
+ /**
775
+ * Timestamp when the environment was last updated
776
+ */
777
+ updatedAt: number;
778
+ };
779
+
780
+ export type CustomEnvironment = CustomEnvironment2 | CustomEnvironment1;
647
781
 
648
782
  export const CreateDeploymentType = {
649
783
  Lambdas: "LAMBDAS",
@@ -689,7 +823,7 @@ export type CreateDeploymentGitSource11 = {
689
823
 
690
824
  export const CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody10Type =
691
825
  {
692
- Github: "github",
826
+ GithubCustomHost: "github-custom-host",
693
827
  } as const;
694
828
  export type CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody10Type =
695
829
  ClosedEnum<
@@ -1325,7 +1459,7 @@ export type CreateDeploymentResponseBody = {
1325
1459
  userAliases?: Array<string> | undefined;
1326
1460
  previewCommentsEnabled?: boolean | undefined;
1327
1461
  ttyBuildLogs?: boolean | undefined;
1328
- customEnvironment?: CustomEnvironment1 | CustomEnvironment2 | undefined;
1462
+ customEnvironment?: CustomEnvironment2 | CustomEnvironment1 | undefined;
1329
1463
  type: CreateDeploymentType;
1330
1464
  name: string;
1331
1465
  createdAt: number;
@@ -1694,6 +1828,95 @@ export function gitMetadataFromJSON(
1694
1828
  );
1695
1829
  }
1696
1830
 
1831
+ /** @internal */
1832
+ export const CreateDeploymentGitSourceDeploymentsRequestRequestBodyType$inboundSchema:
1833
+ z.ZodNativeEnum<
1834
+ typeof CreateDeploymentGitSourceDeploymentsRequestRequestBodyType
1835
+ > = z.nativeEnum(CreateDeploymentGitSourceDeploymentsRequestRequestBodyType);
1836
+
1837
+ /** @internal */
1838
+ export const CreateDeploymentGitSourceDeploymentsRequestRequestBodyType$outboundSchema:
1839
+ z.ZodNativeEnum<
1840
+ typeof CreateDeploymentGitSourceDeploymentsRequestRequestBodyType
1841
+ > = CreateDeploymentGitSourceDeploymentsRequestRequestBodyType$inboundSchema;
1842
+
1843
+ /**
1844
+ * @internal
1845
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1846
+ */
1847
+ export namespace CreateDeploymentGitSourceDeploymentsRequestRequestBodyType$ {
1848
+ /** @deprecated use `CreateDeploymentGitSourceDeploymentsRequestRequestBodyType$inboundSchema` instead. */
1849
+ export const inboundSchema =
1850
+ CreateDeploymentGitSourceDeploymentsRequestRequestBodyType$inboundSchema;
1851
+ /** @deprecated use `CreateDeploymentGitSourceDeploymentsRequestRequestBodyType$outboundSchema` instead. */
1852
+ export const outboundSchema =
1853
+ CreateDeploymentGitSourceDeploymentsRequestRequestBodyType$outboundSchema;
1854
+ }
1855
+
1856
+ /** @internal */
1857
+ export const GitSource6$inboundSchema: z.ZodType<
1858
+ GitSource6,
1859
+ z.ZodTypeDef,
1860
+ unknown
1861
+ > = z.object({
1862
+ owner: z.string(),
1863
+ ref: z.string(),
1864
+ sha: z.string().optional(),
1865
+ slug: z.string(),
1866
+ type:
1867
+ CreateDeploymentGitSourceDeploymentsRequestRequestBodyType$inboundSchema,
1868
+ });
1869
+
1870
+ /** @internal */
1871
+ export type GitSource6$Outbound = {
1872
+ owner: string;
1873
+ ref: string;
1874
+ sha?: string | undefined;
1875
+ slug: string;
1876
+ type: string;
1877
+ };
1878
+
1879
+ /** @internal */
1880
+ export const GitSource6$outboundSchema: z.ZodType<
1881
+ GitSource6$Outbound,
1882
+ z.ZodTypeDef,
1883
+ GitSource6
1884
+ > = z.object({
1885
+ owner: z.string(),
1886
+ ref: z.string(),
1887
+ sha: z.string().optional(),
1888
+ slug: z.string(),
1889
+ type:
1890
+ CreateDeploymentGitSourceDeploymentsRequestRequestBodyType$outboundSchema,
1891
+ });
1892
+
1893
+ /**
1894
+ * @internal
1895
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1896
+ */
1897
+ export namespace GitSource6$ {
1898
+ /** @deprecated use `GitSource6$inboundSchema` instead. */
1899
+ export const inboundSchema = GitSource6$inboundSchema;
1900
+ /** @deprecated use `GitSource6$outboundSchema` instead. */
1901
+ export const outboundSchema = GitSource6$outboundSchema;
1902
+ /** @deprecated use `GitSource6$Outbound` instead. */
1903
+ export type Outbound = GitSource6$Outbound;
1904
+ }
1905
+
1906
+ export function gitSource6ToJSON(gitSource6: GitSource6): string {
1907
+ return JSON.stringify(GitSource6$outboundSchema.parse(gitSource6));
1908
+ }
1909
+
1910
+ export function gitSource6FromJSON(
1911
+ jsonString: string,
1912
+ ): SafeParseResult<GitSource6, SDKValidationError> {
1913
+ return safeParse(
1914
+ jsonString,
1915
+ (x) => GitSource6$inboundSchema.parse(JSON.parse(x)),
1916
+ `Failed to parse 'GitSource6' from JSON`,
1917
+ );
1918
+ }
1919
+
1697
1920
  /** @internal */
1698
1921
  export const CreateDeploymentGitSourceDeploymentsRequestType$inboundSchema:
1699
1922
  z.ZodNativeEnum<typeof CreateDeploymentGitSourceDeploymentsRequestType> = z
@@ -1723,20 +1946,20 @@ export const GitSource5$inboundSchema: z.ZodType<
1723
1946
  z.ZodTypeDef,
1724
1947
  unknown
1725
1948
  > = z.object({
1726
- owner: z.string(),
1727
1949
  ref: z.string(),
1950
+ repoUuid: z.string(),
1728
1951
  sha: z.string().optional(),
1729
- slug: z.string(),
1730
1952
  type: CreateDeploymentGitSourceDeploymentsRequestType$inboundSchema,
1953
+ workspaceUuid: z.string().optional(),
1731
1954
  });
1732
1955
 
1733
1956
  /** @internal */
1734
1957
  export type GitSource5$Outbound = {
1735
- owner: string;
1736
1958
  ref: string;
1959
+ repoUuid: string;
1737
1960
  sha?: string | undefined;
1738
- slug: string;
1739
1961
  type: string;
1962
+ workspaceUuid?: string | undefined;
1740
1963
  };
1741
1964
 
1742
1965
  /** @internal */
@@ -1745,11 +1968,11 @@ export const GitSource5$outboundSchema: z.ZodType<
1745
1968
  z.ZodTypeDef,
1746
1969
  GitSource5
1747
1970
  > = z.object({
1748
- owner: z.string(),
1749
1971
  ref: z.string(),
1972
+ repoUuid: z.string(),
1750
1973
  sha: z.string().optional(),
1751
- slug: z.string(),
1752
1974
  type: CreateDeploymentGitSourceDeploymentsRequestType$outboundSchema,
1975
+ workspaceUuid: z.string().optional(),
1753
1976
  });
1754
1977
 
1755
1978
  /**
@@ -1779,6 +2002,50 @@ export function gitSource5FromJSON(
1779
2002
  );
1780
2003
  }
1781
2004
 
2005
+ /** @internal */
2006
+ export const ProjectId$inboundSchema: z.ZodType<
2007
+ ProjectId,
2008
+ z.ZodTypeDef,
2009
+ unknown
2010
+ > = z.union([z.number(), z.string()]);
2011
+
2012
+ /** @internal */
2013
+ export type ProjectId$Outbound = number | string;
2014
+
2015
+ /** @internal */
2016
+ export const ProjectId$outboundSchema: z.ZodType<
2017
+ ProjectId$Outbound,
2018
+ z.ZodTypeDef,
2019
+ ProjectId
2020
+ > = z.union([z.number(), z.string()]);
2021
+
2022
+ /**
2023
+ * @internal
2024
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2025
+ */
2026
+ export namespace ProjectId$ {
2027
+ /** @deprecated use `ProjectId$inboundSchema` instead. */
2028
+ export const inboundSchema = ProjectId$inboundSchema;
2029
+ /** @deprecated use `ProjectId$outboundSchema` instead. */
2030
+ export const outboundSchema = ProjectId$outboundSchema;
2031
+ /** @deprecated use `ProjectId$Outbound` instead. */
2032
+ export type Outbound = ProjectId$Outbound;
2033
+ }
2034
+
2035
+ export function projectIdToJSON(projectId: ProjectId): string {
2036
+ return JSON.stringify(ProjectId$outboundSchema.parse(projectId));
2037
+ }
2038
+
2039
+ export function projectIdFromJSON(
2040
+ jsonString: string,
2041
+ ): SafeParseResult<ProjectId, SDKValidationError> {
2042
+ return safeParse(
2043
+ jsonString,
2044
+ (x) => ProjectId$inboundSchema.parse(JSON.parse(x)),
2045
+ `Failed to parse 'ProjectId' from JSON`,
2046
+ );
2047
+ }
2048
+
1782
2049
  /** @internal */
1783
2050
  export const CreateDeploymentGitSourceDeploymentsType$inboundSchema:
1784
2051
  z.ZodNativeEnum<typeof CreateDeploymentGitSourceDeploymentsType> = z
@@ -1808,20 +2075,18 @@ export const GitSource4$inboundSchema: z.ZodType<
1808
2075
  z.ZodTypeDef,
1809
2076
  unknown
1810
2077
  > = z.object({
2078
+ projectId: z.union([z.number(), z.string()]),
1811
2079
  ref: z.string(),
1812
- repoUuid: z.string(),
1813
2080
  sha: z.string().optional(),
1814
2081
  type: CreateDeploymentGitSourceDeploymentsType$inboundSchema,
1815
- workspaceUuid: z.string().optional(),
1816
2082
  });
1817
2083
 
1818
2084
  /** @internal */
1819
2085
  export type GitSource4$Outbound = {
2086
+ projectId: number | string;
1820
2087
  ref: string;
1821
- repoUuid: string;
1822
2088
  sha?: string | undefined;
1823
2089
  type: string;
1824
- workspaceUuid?: string | undefined;
1825
2090
  };
1826
2091
 
1827
2092
  /** @internal */
@@ -1830,11 +2095,10 @@ export const GitSource4$outboundSchema: z.ZodType<
1830
2095
  z.ZodTypeDef,
1831
2096
  GitSource4
1832
2097
  > = z.object({
2098
+ projectId: z.union([z.number(), z.string()]),
1833
2099
  ref: z.string(),
1834
- repoUuid: z.string(),
1835
2100
  sha: z.string().optional(),
1836
2101
  type: CreateDeploymentGitSourceDeploymentsType$outboundSchema,
1837
- workspaceUuid: z.string().optional(),
1838
2102
  });
1839
2103
 
1840
2104
  /**
@@ -1864,50 +2128,6 @@ export function gitSource4FromJSON(
1864
2128
  );
1865
2129
  }
1866
2130
 
1867
- /** @internal */
1868
- export const ProjectId$inboundSchema: z.ZodType<
1869
- ProjectId,
1870
- z.ZodTypeDef,
1871
- unknown
1872
- > = z.union([z.number(), z.string()]);
1873
-
1874
- /** @internal */
1875
- export type ProjectId$Outbound = number | string;
1876
-
1877
- /** @internal */
1878
- export const ProjectId$outboundSchema: z.ZodType<
1879
- ProjectId$Outbound,
1880
- z.ZodTypeDef,
1881
- ProjectId
1882
- > = z.union([z.number(), z.string()]);
1883
-
1884
- /**
1885
- * @internal
1886
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1887
- */
1888
- export namespace ProjectId$ {
1889
- /** @deprecated use `ProjectId$inboundSchema` instead. */
1890
- export const inboundSchema = ProjectId$inboundSchema;
1891
- /** @deprecated use `ProjectId$outboundSchema` instead. */
1892
- export const outboundSchema = ProjectId$outboundSchema;
1893
- /** @deprecated use `ProjectId$Outbound` instead. */
1894
- export type Outbound = ProjectId$Outbound;
1895
- }
1896
-
1897
- export function projectIdToJSON(projectId: ProjectId): string {
1898
- return JSON.stringify(ProjectId$outboundSchema.parse(projectId));
1899
- }
1900
-
1901
- export function projectIdFromJSON(
1902
- jsonString: string,
1903
- ): SafeParseResult<ProjectId, SDKValidationError> {
1904
- return safeParse(
1905
- jsonString,
1906
- (x) => ProjectId$inboundSchema.parse(JSON.parse(x)),
1907
- `Failed to parse 'ProjectId' from JSON`,
1908
- );
1909
- }
1910
-
1911
2131
  /** @internal */
1912
2132
  export const CreateDeploymentGitSourceType$inboundSchema: z.ZodNativeEnum<
1913
2133
  typeof CreateDeploymentGitSourceType
@@ -1935,17 +2155,21 @@ export const GitSource3$inboundSchema: z.ZodType<
1935
2155
  z.ZodTypeDef,
1936
2156
  unknown
1937
2157
  > = z.object({
1938
- projectId: z.union([z.number(), z.string()]),
2158
+ org: z.string(),
1939
2159
  ref: z.string(),
2160
+ repo: z.string(),
1940
2161
  sha: z.string().optional(),
2162
+ host: z.string(),
1941
2163
  type: CreateDeploymentGitSourceType$inboundSchema,
1942
2164
  });
1943
2165
 
1944
2166
  /** @internal */
1945
2167
  export type GitSource3$Outbound = {
1946
- projectId: number | string;
2168
+ org: string;
1947
2169
  ref: string;
2170
+ repo: string;
1948
2171
  sha?: string | undefined;
2172
+ host: string;
1949
2173
  type: string;
1950
2174
  };
1951
2175
 
@@ -1955,9 +2179,11 @@ export const GitSource3$outboundSchema: z.ZodType<
1955
2179
  z.ZodTypeDef,
1956
2180
  GitSource3
1957
2181
  > = z.object({
1958
- projectId: z.union([z.number(), z.string()]),
2182
+ org: z.string(),
1959
2183
  ref: z.string(),
2184
+ repo: z.string(),
1960
2185
  sha: z.string().optional(),
2186
+ host: z.string(),
1961
2187
  type: CreateDeploymentGitSourceType$outboundSchema,
1962
2188
  });
1963
2189
 
@@ -2113,28 +2339,28 @@ export function repoIdFromJSON(
2113
2339
  }
2114
2340
 
2115
2341
  /** @internal */
2116
- export const CreateDeploymentGitSourceDeploymentsRequestRequestBodyType$inboundSchema:
2342
+ export const CreateDeploymentGitSourceDeploymentsRequestRequestBody1Type$inboundSchema:
2117
2343
  z.ZodNativeEnum<
2118
- typeof CreateDeploymentGitSourceDeploymentsRequestRequestBodyType
2119
- > = z.nativeEnum(CreateDeploymentGitSourceDeploymentsRequestRequestBodyType);
2344
+ typeof CreateDeploymentGitSourceDeploymentsRequestRequestBody1Type
2345
+ > = z.nativeEnum(CreateDeploymentGitSourceDeploymentsRequestRequestBody1Type);
2120
2346
 
2121
2347
  /** @internal */
2122
- export const CreateDeploymentGitSourceDeploymentsRequestRequestBodyType$outboundSchema:
2348
+ export const CreateDeploymentGitSourceDeploymentsRequestRequestBody1Type$outboundSchema:
2123
2349
  z.ZodNativeEnum<
2124
- typeof CreateDeploymentGitSourceDeploymentsRequestRequestBodyType
2125
- > = CreateDeploymentGitSourceDeploymentsRequestRequestBodyType$inboundSchema;
2350
+ typeof CreateDeploymentGitSourceDeploymentsRequestRequestBody1Type
2351
+ > = CreateDeploymentGitSourceDeploymentsRequestRequestBody1Type$inboundSchema;
2126
2352
 
2127
2353
  /**
2128
2354
  * @internal
2129
2355
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2130
2356
  */
2131
- export namespace CreateDeploymentGitSourceDeploymentsRequestRequestBodyType$ {
2132
- /** @deprecated use `CreateDeploymentGitSourceDeploymentsRequestRequestBodyType$inboundSchema` instead. */
2357
+ export namespace CreateDeploymentGitSourceDeploymentsRequestRequestBody1Type$ {
2358
+ /** @deprecated use `CreateDeploymentGitSourceDeploymentsRequestRequestBody1Type$inboundSchema` instead. */
2133
2359
  export const inboundSchema =
2134
- CreateDeploymentGitSourceDeploymentsRequestRequestBodyType$inboundSchema;
2135
- /** @deprecated use `CreateDeploymentGitSourceDeploymentsRequestRequestBodyType$outboundSchema` instead. */
2360
+ CreateDeploymentGitSourceDeploymentsRequestRequestBody1Type$inboundSchema;
2361
+ /** @deprecated use `CreateDeploymentGitSourceDeploymentsRequestRequestBody1Type$outboundSchema` instead. */
2136
2362
  export const outboundSchema =
2137
- CreateDeploymentGitSourceDeploymentsRequestRequestBodyType$outboundSchema;
2363
+ CreateDeploymentGitSourceDeploymentsRequestRequestBody1Type$outboundSchema;
2138
2364
  }
2139
2365
 
2140
2366
  /** @internal */
@@ -2147,7 +2373,7 @@ export const GitSource1$inboundSchema: z.ZodType<
2147
2373
  repoId: z.union([z.number(), z.string()]),
2148
2374
  sha: z.string().optional(),
2149
2375
  type:
2150
- CreateDeploymentGitSourceDeploymentsRequestRequestBodyType$inboundSchema,
2376
+ CreateDeploymentGitSourceDeploymentsRequestRequestBody1Type$inboundSchema,
2151
2377
  });
2152
2378
 
2153
2379
  /** @internal */
@@ -2168,7 +2394,7 @@ export const GitSource1$outboundSchema: z.ZodType<
2168
2394
  repoId: z.union([z.number(), z.string()]),
2169
2395
  sha: z.string().optional(),
2170
2396
  type:
2171
- CreateDeploymentGitSourceDeploymentsRequestRequestBodyType$outboundSchema,
2397
+ CreateDeploymentGitSourceDeploymentsRequestRequestBody1Type$outboundSchema,
2172
2398
  });
2173
2399
 
2174
2400
  /**
@@ -2205,19 +2431,21 @@ export const GitSource$inboundSchema: z.ZodType<
2205
2431
  unknown
2206
2432
  > = z.union([
2207
2433
  z.lazy(() => GitSource1$inboundSchema),
2208
- z.lazy(() => GitSource3$inboundSchema),
2209
- z.lazy(() => GitSource2$inboundSchema),
2210
2434
  z.lazy(() => GitSource4$inboundSchema),
2435
+ z.lazy(() => GitSource2$inboundSchema),
2211
2436
  z.lazy(() => GitSource5$inboundSchema),
2437
+ z.lazy(() => GitSource6$inboundSchema),
2438
+ z.lazy(() => GitSource3$inboundSchema),
2212
2439
  ]);
2213
2440
 
2214
2441
  /** @internal */
2215
2442
  export type GitSource$Outbound =
2216
2443
  | GitSource1$Outbound
2217
- | GitSource3$Outbound
2218
- | GitSource2$Outbound
2219
2444
  | GitSource4$Outbound
2220
- | GitSource5$Outbound;
2445
+ | GitSource2$Outbound
2446
+ | GitSource5$Outbound
2447
+ | GitSource6$Outbound
2448
+ | GitSource3$Outbound;
2221
2449
 
2222
2450
  /** @internal */
2223
2451
  export const GitSource$outboundSchema: z.ZodType<
@@ -2226,10 +2454,11 @@ export const GitSource$outboundSchema: z.ZodType<
2226
2454
  GitSource
2227
2455
  > = z.union([
2228
2456
  z.lazy(() => GitSource1$outboundSchema),
2229
- z.lazy(() => GitSource3$outboundSchema),
2230
- z.lazy(() => GitSource2$outboundSchema),
2231
2457
  z.lazy(() => GitSource4$outboundSchema),
2458
+ z.lazy(() => GitSource2$outboundSchema),
2232
2459
  z.lazy(() => GitSource5$outboundSchema),
2460
+ z.lazy(() => GitSource6$outboundSchema),
2461
+ z.lazy(() => GitSource3$outboundSchema),
2233
2462
  ]);
2234
2463
 
2235
2464
  /**
@@ -2396,10 +2625,11 @@ export const CreateDeploymentRequestBody$inboundSchema: z.ZodType<
2396
2625
  gitMetadata: z.lazy(() => GitMetadata$inboundSchema).optional(),
2397
2626
  gitSource: z.union([
2398
2627
  z.lazy(() => GitSource1$inboundSchema),
2399
- z.lazy(() => GitSource3$inboundSchema),
2400
- z.lazy(() => GitSource2$inboundSchema),
2401
2628
  z.lazy(() => GitSource4$inboundSchema),
2629
+ z.lazy(() => GitSource2$inboundSchema),
2402
2630
  z.lazy(() => GitSource5$inboundSchema),
2631
+ z.lazy(() => GitSource6$inboundSchema),
2632
+ z.lazy(() => GitSource3$inboundSchema),
2403
2633
  ]).optional(),
2404
2634
  meta: z.record(z.string()).optional(),
2405
2635
  monorepoManager: z.nullable(z.string()).optional(),
@@ -2418,10 +2648,11 @@ export type CreateDeploymentRequestBody$Outbound = {
2418
2648
  gitMetadata?: GitMetadata$Outbound | undefined;
2419
2649
  gitSource?:
2420
2650
  | GitSource1$Outbound
2421
- | GitSource3$Outbound
2422
- | GitSource2$Outbound
2423
2651
  | GitSource4$Outbound
2652
+ | GitSource2$Outbound
2424
2653
  | GitSource5$Outbound
2654
+ | GitSource6$Outbound
2655
+ | GitSource3$Outbound
2425
2656
  | undefined;
2426
2657
  meta?: { [k: string]: string } | undefined;
2427
2658
  monorepoManager?: string | null | undefined;
@@ -2449,10 +2680,11 @@ export const CreateDeploymentRequestBody$outboundSchema: z.ZodType<
2449
2680
  gitMetadata: z.lazy(() => GitMetadata$outboundSchema).optional(),
2450
2681
  gitSource: z.union([
2451
2682
  z.lazy(() => GitSource1$outboundSchema),
2452
- z.lazy(() => GitSource3$outboundSchema),
2453
- z.lazy(() => GitSource2$outboundSchema),
2454
2683
  z.lazy(() => GitSource4$outboundSchema),
2684
+ z.lazy(() => GitSource2$outboundSchema),
2455
2685
  z.lazy(() => GitSource5$outboundSchema),
2686
+ z.lazy(() => GitSource6$outboundSchema),
2687
+ z.lazy(() => GitSource3$outboundSchema),
2456
2688
  ]).optional(),
2457
2689
  meta: z.record(z.string()).optional(),
2458
2690
  monorepoManager: z.nullable(z.string()).optional(),
@@ -3625,22 +3857,313 @@ export function customEnvironment2FromJSON(
3625
3857
  );
3626
3858
  }
3627
3859
 
3860
+ /** @internal */
3861
+ export const CustomEnvironmentType$inboundSchema: z.ZodNativeEnum<
3862
+ typeof CustomEnvironmentType
3863
+ > = z.nativeEnum(CustomEnvironmentType);
3864
+
3865
+ /** @internal */
3866
+ export const CustomEnvironmentType$outboundSchema: z.ZodNativeEnum<
3867
+ typeof CustomEnvironmentType
3868
+ > = CustomEnvironmentType$inboundSchema;
3869
+
3870
+ /**
3871
+ * @internal
3872
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3873
+ */
3874
+ export namespace CustomEnvironmentType$ {
3875
+ /** @deprecated use `CustomEnvironmentType$inboundSchema` instead. */
3876
+ export const inboundSchema = CustomEnvironmentType$inboundSchema;
3877
+ /** @deprecated use `CustomEnvironmentType$outboundSchema` instead. */
3878
+ export const outboundSchema = CustomEnvironmentType$outboundSchema;
3879
+ }
3880
+
3881
+ /** @internal */
3882
+ export const CreateDeploymentCustomEnvironmentType$inboundSchema:
3883
+ z.ZodNativeEnum<typeof CreateDeploymentCustomEnvironmentType> = z.nativeEnum(
3884
+ CreateDeploymentCustomEnvironmentType,
3885
+ );
3886
+
3887
+ /** @internal */
3888
+ export const CreateDeploymentCustomEnvironmentType$outboundSchema:
3889
+ z.ZodNativeEnum<typeof CreateDeploymentCustomEnvironmentType> =
3890
+ CreateDeploymentCustomEnvironmentType$inboundSchema;
3891
+
3892
+ /**
3893
+ * @internal
3894
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3895
+ */
3896
+ export namespace CreateDeploymentCustomEnvironmentType$ {
3897
+ /** @deprecated use `CreateDeploymentCustomEnvironmentType$inboundSchema` instead. */
3898
+ export const inboundSchema =
3899
+ CreateDeploymentCustomEnvironmentType$inboundSchema;
3900
+ /** @deprecated use `CreateDeploymentCustomEnvironmentType$outboundSchema` instead. */
3901
+ export const outboundSchema =
3902
+ CreateDeploymentCustomEnvironmentType$outboundSchema;
3903
+ }
3904
+
3905
+ /** @internal */
3906
+ export const CustomEnvironmentBranchMatcher$inboundSchema: z.ZodType<
3907
+ CustomEnvironmentBranchMatcher,
3908
+ z.ZodTypeDef,
3909
+ unknown
3910
+ > = z.object({
3911
+ type: CreateDeploymentCustomEnvironmentType$inboundSchema,
3912
+ pattern: z.string(),
3913
+ });
3914
+
3915
+ /** @internal */
3916
+ export type CustomEnvironmentBranchMatcher$Outbound = {
3917
+ type: string;
3918
+ pattern: string;
3919
+ };
3920
+
3921
+ /** @internal */
3922
+ export const CustomEnvironmentBranchMatcher$outboundSchema: z.ZodType<
3923
+ CustomEnvironmentBranchMatcher$Outbound,
3924
+ z.ZodTypeDef,
3925
+ CustomEnvironmentBranchMatcher
3926
+ > = z.object({
3927
+ type: CreateDeploymentCustomEnvironmentType$outboundSchema,
3928
+ pattern: z.string(),
3929
+ });
3930
+
3931
+ /**
3932
+ * @internal
3933
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3934
+ */
3935
+ export namespace CustomEnvironmentBranchMatcher$ {
3936
+ /** @deprecated use `CustomEnvironmentBranchMatcher$inboundSchema` instead. */
3937
+ export const inboundSchema = CustomEnvironmentBranchMatcher$inboundSchema;
3938
+ /** @deprecated use `CustomEnvironmentBranchMatcher$outboundSchema` instead. */
3939
+ export const outboundSchema = CustomEnvironmentBranchMatcher$outboundSchema;
3940
+ /** @deprecated use `CustomEnvironmentBranchMatcher$Outbound` instead. */
3941
+ export type Outbound = CustomEnvironmentBranchMatcher$Outbound;
3942
+ }
3943
+
3944
+ export function customEnvironmentBranchMatcherToJSON(
3945
+ customEnvironmentBranchMatcher: CustomEnvironmentBranchMatcher,
3946
+ ): string {
3947
+ return JSON.stringify(
3948
+ CustomEnvironmentBranchMatcher$outboundSchema.parse(
3949
+ customEnvironmentBranchMatcher,
3950
+ ),
3951
+ );
3952
+ }
3953
+
3954
+ export function customEnvironmentBranchMatcherFromJSON(
3955
+ jsonString: string,
3956
+ ): SafeParseResult<CustomEnvironmentBranchMatcher, SDKValidationError> {
3957
+ return safeParse(
3958
+ jsonString,
3959
+ (x) => CustomEnvironmentBranchMatcher$inboundSchema.parse(JSON.parse(x)),
3960
+ `Failed to parse 'CustomEnvironmentBranchMatcher' from JSON`,
3961
+ );
3962
+ }
3963
+
3964
+ /** @internal */
3965
+ export const CustomEnvironmentVerification$inboundSchema: z.ZodType<
3966
+ CustomEnvironmentVerification,
3967
+ z.ZodTypeDef,
3968
+ unknown
3969
+ > = z.object({
3970
+ type: z.string(),
3971
+ domain: z.string(),
3972
+ value: z.string(),
3973
+ reason: z.string(),
3974
+ });
3975
+
3976
+ /** @internal */
3977
+ export type CustomEnvironmentVerification$Outbound = {
3978
+ type: string;
3979
+ domain: string;
3980
+ value: string;
3981
+ reason: string;
3982
+ };
3983
+
3984
+ /** @internal */
3985
+ export const CustomEnvironmentVerification$outboundSchema: z.ZodType<
3986
+ CustomEnvironmentVerification$Outbound,
3987
+ z.ZodTypeDef,
3988
+ CustomEnvironmentVerification
3989
+ > = z.object({
3990
+ type: z.string(),
3991
+ domain: z.string(),
3992
+ value: z.string(),
3993
+ reason: z.string(),
3994
+ });
3995
+
3996
+ /**
3997
+ * @internal
3998
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3999
+ */
4000
+ export namespace CustomEnvironmentVerification$ {
4001
+ /** @deprecated use `CustomEnvironmentVerification$inboundSchema` instead. */
4002
+ export const inboundSchema = CustomEnvironmentVerification$inboundSchema;
4003
+ /** @deprecated use `CustomEnvironmentVerification$outboundSchema` instead. */
4004
+ export const outboundSchema = CustomEnvironmentVerification$outboundSchema;
4005
+ /** @deprecated use `CustomEnvironmentVerification$Outbound` instead. */
4006
+ export type Outbound = CustomEnvironmentVerification$Outbound;
4007
+ }
4008
+
4009
+ export function customEnvironmentVerificationToJSON(
4010
+ customEnvironmentVerification: CustomEnvironmentVerification,
4011
+ ): string {
4012
+ return JSON.stringify(
4013
+ CustomEnvironmentVerification$outboundSchema.parse(
4014
+ customEnvironmentVerification,
4015
+ ),
4016
+ );
4017
+ }
4018
+
4019
+ export function customEnvironmentVerificationFromJSON(
4020
+ jsonString: string,
4021
+ ): SafeParseResult<CustomEnvironmentVerification, SDKValidationError> {
4022
+ return safeParse(
4023
+ jsonString,
4024
+ (x) => CustomEnvironmentVerification$inboundSchema.parse(JSON.parse(x)),
4025
+ `Failed to parse 'CustomEnvironmentVerification' from JSON`,
4026
+ );
4027
+ }
4028
+
4029
+ /** @internal */
4030
+ export const CustomEnvironmentDomains$inboundSchema: z.ZodType<
4031
+ CustomEnvironmentDomains,
4032
+ z.ZodTypeDef,
4033
+ unknown
4034
+ > = z.object({
4035
+ name: z.string(),
4036
+ apexName: z.string(),
4037
+ projectId: z.string(),
4038
+ redirect: z.nullable(z.string()).optional(),
4039
+ redirectStatusCode: z.nullable(z.number()).optional(),
4040
+ gitBranch: z.nullable(z.string()).optional(),
4041
+ customEnvironmentId: z.nullable(z.string()).optional(),
4042
+ updatedAt: z.number().optional(),
4043
+ createdAt: z.number().optional(),
4044
+ verified: z.boolean(),
4045
+ verification: z.array(
4046
+ z.lazy(() => CustomEnvironmentVerification$inboundSchema),
4047
+ ).optional(),
4048
+ });
4049
+
4050
+ /** @internal */
4051
+ export type CustomEnvironmentDomains$Outbound = {
4052
+ name: string;
4053
+ apexName: string;
4054
+ projectId: string;
4055
+ redirect?: string | null | undefined;
4056
+ redirectStatusCode?: number | null | undefined;
4057
+ gitBranch?: string | null | undefined;
4058
+ customEnvironmentId?: string | null | undefined;
4059
+ updatedAt?: number | undefined;
4060
+ createdAt?: number | undefined;
4061
+ verified: boolean;
4062
+ verification?: Array<CustomEnvironmentVerification$Outbound> | undefined;
4063
+ };
4064
+
4065
+ /** @internal */
4066
+ export const CustomEnvironmentDomains$outboundSchema: z.ZodType<
4067
+ CustomEnvironmentDomains$Outbound,
4068
+ z.ZodTypeDef,
4069
+ CustomEnvironmentDomains
4070
+ > = z.object({
4071
+ name: z.string(),
4072
+ apexName: z.string(),
4073
+ projectId: z.string(),
4074
+ redirect: z.nullable(z.string()).optional(),
4075
+ redirectStatusCode: z.nullable(z.number()).optional(),
4076
+ gitBranch: z.nullable(z.string()).optional(),
4077
+ customEnvironmentId: z.nullable(z.string()).optional(),
4078
+ updatedAt: z.number().optional(),
4079
+ createdAt: z.number().optional(),
4080
+ verified: z.boolean(),
4081
+ verification: z.array(
4082
+ z.lazy(() => CustomEnvironmentVerification$outboundSchema),
4083
+ ).optional(),
4084
+ });
4085
+
4086
+ /**
4087
+ * @internal
4088
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4089
+ */
4090
+ export namespace CustomEnvironmentDomains$ {
4091
+ /** @deprecated use `CustomEnvironmentDomains$inboundSchema` instead. */
4092
+ export const inboundSchema = CustomEnvironmentDomains$inboundSchema;
4093
+ /** @deprecated use `CustomEnvironmentDomains$outboundSchema` instead. */
4094
+ export const outboundSchema = CustomEnvironmentDomains$outboundSchema;
4095
+ /** @deprecated use `CustomEnvironmentDomains$Outbound` instead. */
4096
+ export type Outbound = CustomEnvironmentDomains$Outbound;
4097
+ }
4098
+
4099
+ export function customEnvironmentDomainsToJSON(
4100
+ customEnvironmentDomains: CustomEnvironmentDomains,
4101
+ ): string {
4102
+ return JSON.stringify(
4103
+ CustomEnvironmentDomains$outboundSchema.parse(customEnvironmentDomains),
4104
+ );
4105
+ }
4106
+
4107
+ export function customEnvironmentDomainsFromJSON(
4108
+ jsonString: string,
4109
+ ): SafeParseResult<CustomEnvironmentDomains, SDKValidationError> {
4110
+ return safeParse(
4111
+ jsonString,
4112
+ (x) => CustomEnvironmentDomains$inboundSchema.parse(JSON.parse(x)),
4113
+ `Failed to parse 'CustomEnvironmentDomains' from JSON`,
4114
+ );
4115
+ }
4116
+
3628
4117
  /** @internal */
3629
4118
  export const CustomEnvironment1$inboundSchema: z.ZodType<
3630
4119
  CustomEnvironment1,
3631
4120
  z.ZodTypeDef,
3632
4121
  unknown
3633
- > = z.object({});
4122
+ > = z.object({
4123
+ id: z.string(),
4124
+ slug: z.string(),
4125
+ type: CustomEnvironmentType$inboundSchema,
4126
+ description: z.string().optional(),
4127
+ branchMatcher: z.lazy(() => CustomEnvironmentBranchMatcher$inboundSchema)
4128
+ .optional(),
4129
+ domains: z.array(z.lazy(() => CustomEnvironmentDomains$inboundSchema))
4130
+ .optional(),
4131
+ currentDeploymentAliases: z.array(z.string()).optional(),
4132
+ createdAt: z.number(),
4133
+ updatedAt: z.number(),
4134
+ });
3634
4135
 
3635
4136
  /** @internal */
3636
- export type CustomEnvironment1$Outbound = {};
4137
+ export type CustomEnvironment1$Outbound = {
4138
+ id: string;
4139
+ slug: string;
4140
+ type: string;
4141
+ description?: string | undefined;
4142
+ branchMatcher?: CustomEnvironmentBranchMatcher$Outbound | undefined;
4143
+ domains?: Array<CustomEnvironmentDomains$Outbound> | undefined;
4144
+ currentDeploymentAliases?: Array<string> | undefined;
4145
+ createdAt: number;
4146
+ updatedAt: number;
4147
+ };
3637
4148
 
3638
4149
  /** @internal */
3639
4150
  export const CustomEnvironment1$outboundSchema: z.ZodType<
3640
4151
  CustomEnvironment1$Outbound,
3641
4152
  z.ZodTypeDef,
3642
4153
  CustomEnvironment1
3643
- > = z.object({});
4154
+ > = z.object({
4155
+ id: z.string(),
4156
+ slug: z.string(),
4157
+ type: CustomEnvironmentType$outboundSchema,
4158
+ description: z.string().optional(),
4159
+ branchMatcher: z.lazy(() => CustomEnvironmentBranchMatcher$outboundSchema)
4160
+ .optional(),
4161
+ domains: z.array(z.lazy(() => CustomEnvironmentDomains$outboundSchema))
4162
+ .optional(),
4163
+ currentDeploymentAliases: z.array(z.string()).optional(),
4164
+ createdAt: z.number(),
4165
+ updatedAt: z.number(),
4166
+ });
3644
4167
 
3645
4168
  /**
3646
4169
  * @internal
@@ -3679,14 +4202,14 @@ export const CustomEnvironment$inboundSchema: z.ZodType<
3679
4202
  z.ZodTypeDef,
3680
4203
  unknown
3681
4204
  > = z.union([
3682
- z.lazy(() => CustomEnvironment1$inboundSchema),
3683
4205
  z.lazy(() => CustomEnvironment2$inboundSchema),
4206
+ z.lazy(() => CustomEnvironment1$inboundSchema),
3684
4207
  ]);
3685
4208
 
3686
4209
  /** @internal */
3687
4210
  export type CustomEnvironment$Outbound =
3688
- | CustomEnvironment1$Outbound
3689
- | CustomEnvironment2$Outbound;
4211
+ | CustomEnvironment2$Outbound
4212
+ | CustomEnvironment1$Outbound;
3690
4213
 
3691
4214
  /** @internal */
3692
4215
  export const CustomEnvironment$outboundSchema: z.ZodType<
@@ -3694,8 +4217,8 @@ export const CustomEnvironment$outboundSchema: z.ZodType<
3694
4217
  z.ZodTypeDef,
3695
4218
  CustomEnvironment
3696
4219
  > = z.union([
3697
- z.lazy(() => CustomEnvironment1$outboundSchema),
3698
4220
  z.lazy(() => CustomEnvironment2$outboundSchema),
4221
+ z.lazy(() => CustomEnvironment1$outboundSchema),
3699
4222
  ]);
3700
4223
 
3701
4224
  /**
@@ -7429,8 +7952,8 @@ export const CreateDeploymentResponseBody$inboundSchema: z.ZodType<
7429
7952
  previewCommentsEnabled: z.boolean().optional(),
7430
7953
  ttyBuildLogs: z.boolean().optional(),
7431
7954
  customEnvironment: z.union([
7432
- z.lazy(() => CustomEnvironment1$inboundSchema),
7433
7955
  z.lazy(() => CustomEnvironment2$inboundSchema),
7956
+ z.lazy(() => CustomEnvironment1$inboundSchema),
7434
7957
  ]).optional(),
7435
7958
  type: CreateDeploymentType$inboundSchema,
7436
7959
  name: z.string(),
@@ -7550,8 +8073,8 @@ export type CreateDeploymentResponseBody$Outbound = {
7550
8073
  previewCommentsEnabled?: boolean | undefined;
7551
8074
  ttyBuildLogs?: boolean | undefined;
7552
8075
  customEnvironment?:
7553
- | CustomEnvironment1$Outbound
7554
8076
  | CustomEnvironment2$Outbound
8077
+ | CustomEnvironment1$Outbound
7555
8078
  | undefined;
7556
8079
  type: string;
7557
8080
  name: string;
@@ -7662,8 +8185,8 @@ export const CreateDeploymentResponseBody$outboundSchema: z.ZodType<
7662
8185
  previewCommentsEnabled: z.boolean().optional(),
7663
8186
  ttyBuildLogs: z.boolean().optional(),
7664
8187
  customEnvironment: z.union([
7665
- z.lazy(() => CustomEnvironment1$outboundSchema),
7666
8188
  z.lazy(() => CustomEnvironment2$outboundSchema),
8189
+ z.lazy(() => CustomEnvironment1$outboundSchema),
7667
8190
  ]).optional(),
7668
8191
  type: CreateDeploymentType$outboundSchema,
7669
8192
  name: z.string(),