@vercel/sdk 1.6.6 → 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 (154) hide show
  1. package/README.md +19 -31
  2. package/bin/mcp-server.js +2608 -910
  3. package/bin/mcp-server.js.map +31 -28
  4. package/docs/sdks/projects/README.md +1 -1
  5. package/docs/sdks/vercel/README.md +77 -0
  6. package/esm/__tests__/environment.test.js +28 -4
  7. package/esm/__tests__/environment.test.js.map +1 -1
  8. package/esm/__tests__/projects.test.js +15 -13
  9. package/esm/__tests__/projects.test.js.map +1 -1
  10. package/esm/__tests__/vercel.test.d.ts +2 -0
  11. package/esm/__tests__/vercel.test.d.ts.map +1 -0
  12. package/esm/__tests__/vercel.test.js +21 -0
  13. package/esm/__tests__/vercel.test.js.map +1 -0
  14. package/esm/funcs/marketplaceUpdateResourceSecretsById.js +2 -2
  15. package/esm/funcs/marketplaceUpdateResourceSecretsById.js.map +1 -1
  16. package/esm/funcs/patchAliasesIdProtectionBypass.d.ts +18 -0
  17. package/esm/funcs/patchAliasesIdProtectionBypass.d.ts.map +1 -0
  18. package/esm/funcs/patchAliasesIdProtectionBypass.js +81 -0
  19. package/esm/funcs/patchAliasesIdProtectionBypass.js.map +1 -0
  20. package/esm/funcs/projectsMoveProjectDomain.d.ts +1 -1
  21. package/esm/funcs/projectsMoveProjectDomain.js +1 -1
  22. package/esm/lib/config.d.ts +3 -3
  23. package/esm/lib/config.js +3 -3
  24. package/esm/lib/sdks.d.ts +3 -1
  25. package/esm/lib/sdks.d.ts.map +1 -1
  26. package/esm/lib/sdks.js +6 -11
  27. package/esm/lib/sdks.js.map +1 -1
  28. package/esm/mcp-server/mcp-server.js +1 -1
  29. package/esm/mcp-server/server.d.ts.map +1 -1
  30. package/esm/mcp-server/server.js +3 -1
  31. package/esm/mcp-server/server.js.map +1 -1
  32. package/esm/mcp-server/tools/patchAliasesIdProtectionBypass.d.ts +7 -0
  33. package/esm/mcp-server/tools/patchAliasesIdProtectionBypass.d.ts.map +1 -0
  34. package/esm/mcp-server/tools/patchAliasesIdProtectionBypass.js +26 -0
  35. package/esm/mcp-server/tools/patchAliasesIdProtectionBypass.js.map +1 -0
  36. package/esm/mcp-server/tools/projectsMoveProjectDomain.js +1 -1
  37. package/esm/models/authuser.d.ts +0 -5
  38. package/esm/models/authuser.d.ts.map +1 -1
  39. package/esm/models/authuser.js +0 -2
  40. package/esm/models/authuser.js.map +1 -1
  41. package/esm/models/canceldeploymentop.d.ts +268 -26
  42. package/esm/models/canceldeploymentop.d.ts.map +1 -1
  43. package/esm/models/canceldeploymentop.js +194 -24
  44. package/esm/models/canceldeploymentop.js.map +1 -1
  45. package/esm/models/createcustomenvironmentop.d.ts +244 -2
  46. package/esm/models/createcustomenvironmentop.d.ts.map +1 -1
  47. package/esm/models/createcustomenvironmentop.js +174 -2
  48. package/esm/models/createcustomenvironmentop.js.map +1 -1
  49. package/esm/models/createdeploymentop.d.ts +357 -58
  50. package/esm/models/createdeploymentop.d.ts.map +1 -1
  51. package/esm/models/createdeploymentop.js +290 -60
  52. package/esm/models/createdeploymentop.js.map +1 -1
  53. package/esm/models/createprojectop.d.ts +333 -71
  54. package/esm/models/createprojectop.d.ts.map +1 -1
  55. package/esm/models/createprojectop.js +255 -75
  56. package/esm/models/createprojectop.js.map +1 -1
  57. package/esm/models/createrecordop.d.ts +43 -43
  58. package/esm/models/createrecordop.d.ts.map +1 -1
  59. package/esm/models/createrecordop.js +51 -51
  60. package/esm/models/createrecordop.js.map +1 -1
  61. package/esm/models/getaliasop.d.ts +8 -8
  62. package/esm/models/getaliasop.d.ts.map +1 -1
  63. package/esm/models/getaliasop.js +12 -13
  64. package/esm/models/getaliasop.js.map +1 -1
  65. package/esm/models/getcustomenvironmentop.d.ts +242 -2
  66. package/esm/models/getcustomenvironmentop.d.ts.map +1 -1
  67. package/esm/models/getcustomenvironmentop.js +175 -2
  68. package/esm/models/getcustomenvironmentop.js.map +1 -1
  69. package/esm/models/getdeploymentop.d.ts +502 -18
  70. package/esm/models/getdeploymentop.d.ts.map +1 -1
  71. package/esm/models/getdeploymentop.js +354 -14
  72. package/esm/models/getdeploymentop.js.map +1 -1
  73. package/esm/models/getprojectdomainsop.d.ts +30 -30
  74. package/esm/models/getprojectdomainsop.d.ts.map +1 -1
  75. package/esm/models/getprojectdomainsop.js +32 -32
  76. package/esm/models/getprojectdomainsop.js.map +1 -1
  77. package/esm/models/getprojectsop.d.ts +347 -95
  78. package/esm/models/getprojectsop.d.ts.map +1 -1
  79. package/esm/models/getprojectsop.js +287 -112
  80. package/esm/models/getprojectsop.js.map +1 -1
  81. package/esm/models/getv9projectsidornamecustomenvironmentsop.d.ts +242 -2
  82. package/esm/models/getv9projectsidornamecustomenvironmentsop.d.ts.map +1 -1
  83. package/esm/models/getv9projectsidornamecustomenvironmentsop.js +172 -2
  84. package/esm/models/getv9projectsidornamecustomenvironmentsop.js.map +1 -1
  85. package/esm/models/listaliasesop.d.ts +8 -8
  86. package/esm/models/listaliasesop.d.ts.map +1 -1
  87. package/esm/models/listaliasesop.js +12 -12
  88. package/esm/models/listaliasesop.js.map +1 -1
  89. package/esm/models/patchaliasesidprotectionbypassop.d.ts +409 -0
  90. package/esm/models/patchaliasesidprotectionbypassop.d.ts.map +1 -0
  91. package/esm/models/patchaliasesidprotectionbypassop.js +386 -0
  92. package/esm/models/patchaliasesidprotectionbypassop.js.map +1 -0
  93. package/esm/models/removecustomenvironmentop.d.ts +245 -2
  94. package/esm/models/removecustomenvironmentop.d.ts.map +1 -1
  95. package/esm/models/removecustomenvironmentop.js +173 -2
  96. package/esm/models/removecustomenvironmentop.js.map +1 -1
  97. package/esm/models/updatecustomenvironmentop.d.ts +244 -2
  98. package/esm/models/updatecustomenvironmentop.d.ts.map +1 -1
  99. package/esm/models/updatecustomenvironmentop.js +174 -2
  100. package/esm/models/updatecustomenvironmentop.js.map +1 -1
  101. package/esm/models/updateprojectdatacacheop.d.ts +363 -111
  102. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  103. package/esm/models/updateprojectdatacacheop.js +311 -135
  104. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  105. package/esm/models/updateprojectop.d.ts +347 -95
  106. package/esm/models/updateprojectop.d.ts.map +1 -1
  107. package/esm/models/updateprojectop.js +287 -111
  108. package/esm/models/updateprojectop.js.map +1 -1
  109. package/esm/models/userevent.d.ts +124 -6
  110. package/esm/models/userevent.d.ts.map +1 -1
  111. package/esm/models/userevent.js +114 -6
  112. package/esm/models/userevent.js.map +1 -1
  113. package/esm/sdk/projects.d.ts +1 -1
  114. package/esm/sdk/projects.js +1 -1
  115. package/esm/sdk/sdk.d.ts +8 -1
  116. package/esm/sdk/sdk.d.ts.map +1 -1
  117. package/esm/sdk/sdk.js +8 -0
  118. package/esm/sdk/sdk.js.map +1 -1
  119. package/jsr.json +1 -1
  120. package/package.json +1 -1
  121. package/src/__tests__/environment.test.ts +28 -4
  122. package/src/__tests__/projects.test.ts +15 -13
  123. package/src/__tests__/vercel.test.ts +26 -0
  124. package/src/funcs/marketplaceUpdateResourceSecretsById.ts +2 -2
  125. package/src/funcs/patchAliasesIdProtectionBypass.ts +185 -0
  126. package/src/funcs/projectsMoveProjectDomain.ts +1 -1
  127. package/src/lib/config.ts +3 -3
  128. package/src/lib/sdks.ts +11 -11
  129. package/src/mcp-server/mcp-server.ts +1 -1
  130. package/src/mcp-server/server.ts +3 -1
  131. package/src/mcp-server/tools/patchAliasesIdProtectionBypass.ts +37 -0
  132. package/src/mcp-server/tools/projectsMoveProjectDomain.ts +1 -1
  133. package/src/models/authuser.ts +0 -7
  134. package/src/models/canceldeploymentop.ts +503 -43
  135. package/src/models/createcustomenvironmentop.ts +426 -4
  136. package/src/models/createdeploymentop.ts +640 -117
  137. package/src/models/createprojectop.ts +664 -200
  138. package/src/models/createrecordop.ts +96 -84
  139. package/src/models/getaliasop.ts +16 -14
  140. package/src/models/getcustomenvironmentop.ts +412 -4
  141. package/src/models/getdeploymentop.ts +962 -49
  142. package/src/models/getprojectdomainsop.ts +84 -84
  143. package/src/models/getprojectsop.ts +637 -189
  144. package/src/models/getv9projectsidornamecustomenvironmentsop.ts +473 -4
  145. package/src/models/listaliasesop.ts +19 -16
  146. package/src/models/patchaliasesidprotectionbypassop.ts +786 -0
  147. package/src/models/removecustomenvironmentop.ts +425 -4
  148. package/src/models/updatecustomenvironmentop.ts +437 -4
  149. package/src/models/updateprojectdatacacheop.ts +738 -271
  150. package/src/models/updateprojectop.ts +697 -247
  151. package/src/models/userevent.ts +205 -12
  152. package/src/sdk/projects.ts +1 -1
  153. package/src/sdk/sdk.ts +18 -1
  154. package/vercel-spec.json +2667 -162
@@ -90,11 +90,128 @@ export type GetDeploymentCustomEnvironment2 = {
90
90
  id: string;
91
91
  };
92
92
 
93
- export type GetDeploymentCustomEnvironment1 = {};
93
+ /**
94
+ * The type of environment (production, preview, or development)
95
+ */
96
+ export const GetDeploymentCustomEnvironmentType = {
97
+ Production: "production",
98
+ Preview: "preview",
99
+ Development: "development",
100
+ } as const;
101
+ /**
102
+ * The type of environment (production, preview, or development)
103
+ */
104
+ export type GetDeploymentCustomEnvironmentType = ClosedEnum<
105
+ typeof GetDeploymentCustomEnvironmentType
106
+ >;
107
+
108
+ /**
109
+ * The type of matching to perform
110
+ */
111
+ export const GetDeploymentCustomEnvironmentDeploymentsResponseType = {
112
+ StartsWith: "startsWith",
113
+ Equals: "equals",
114
+ EndsWith: "endsWith",
115
+ } as const;
116
+ /**
117
+ * The type of matching to perform
118
+ */
119
+ export type GetDeploymentCustomEnvironmentDeploymentsResponseType = ClosedEnum<
120
+ typeof GetDeploymentCustomEnvironmentDeploymentsResponseType
121
+ >;
122
+
123
+ /**
124
+ * Configuration for matching git branches to this environment
125
+ */
126
+ export type GetDeploymentCustomEnvironmentBranchMatcher = {
127
+ /**
128
+ * The type of matching to perform
129
+ */
130
+ type: GetDeploymentCustomEnvironmentDeploymentsResponseType;
131
+ /**
132
+ * The pattern to match against branch names
133
+ */
134
+ pattern: string;
135
+ };
136
+
137
+ /**
138
+ * 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`.
139
+ */
140
+ export type GetDeploymentCustomEnvironmentVerification = {
141
+ type: string;
142
+ domain: string;
143
+ value: string;
144
+ reason: string;
145
+ };
146
+
147
+ /**
148
+ * List of domains associated with this environment
149
+ */
150
+ export type GetDeploymentCustomEnvironmentDomains = {
151
+ name: string;
152
+ apexName: string;
153
+ projectId: string;
154
+ redirect?: string | null | undefined;
155
+ redirectStatusCode?: number | null | undefined;
156
+ gitBranch?: string | null | undefined;
157
+ customEnvironmentId?: string | null | undefined;
158
+ updatedAt?: number | undefined;
159
+ createdAt?: number | undefined;
160
+ /**
161
+ * `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.
162
+ */
163
+ verified: boolean;
164
+ /**
165
+ * 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`.
166
+ */
167
+ verification?: Array<GetDeploymentCustomEnvironmentVerification> | undefined;
168
+ };
169
+
170
+ /**
171
+ * Internal representation of a custom environment with all required properties
172
+ */
173
+ export type GetDeploymentCustomEnvironment1 = {
174
+ /**
175
+ * Unique identifier for the custom environment (format: env_*)
176
+ */
177
+ id: string;
178
+ /**
179
+ * URL-friendly name of the environment
180
+ */
181
+ slug: string;
182
+ /**
183
+ * The type of environment (production, preview, or development)
184
+ */
185
+ type: GetDeploymentCustomEnvironmentType;
186
+ /**
187
+ * Optional description of the environment's purpose
188
+ */
189
+ description?: string | undefined;
190
+ /**
191
+ * Configuration for matching git branches to this environment
192
+ */
193
+ branchMatcher?: GetDeploymentCustomEnvironmentBranchMatcher | undefined;
194
+ /**
195
+ * List of domains associated with this environment
196
+ */
197
+ domains?: Array<GetDeploymentCustomEnvironmentDomains> | undefined;
198
+ /**
199
+ * List of aliases for the current deployment
200
+ */
201
+ currentDeploymentAliases?: Array<string> | undefined;
202
+ /**
203
+ * Timestamp when the environment was created
204
+ */
205
+ createdAt: number;
206
+ /**
207
+ * Timestamp when the environment was last updated
208
+ */
209
+ updatedAt: number;
210
+ };
94
211
 
95
212
  export type ResponseBodyCustomEnvironment =
96
- | GetDeploymentCustomEnvironment1
97
- | GetDeploymentCustomEnvironment2;
213
+ | GetDeploymentCustomEnvironment2
214
+ | GetDeploymentCustomEnvironment1;
98
215
 
99
216
  export type ResponseBodyAliasWarning = {
100
217
  code: string;
@@ -185,7 +302,7 @@ export type GetDeploymentGitSource11 = {
185
302
 
186
303
  export const GetDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody210Type =
187
304
  {
188
- Github: "github",
305
+ GithubCustomHost: "github-custom-host",
189
306
  } as const;
190
307
  export type GetDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody210Type =
191
308
  ClosedEnum<
@@ -474,8 +591,8 @@ export type GetDeploymentResponseBody2 = {
474
591
  previewCommentsEnabled?: boolean | undefined;
475
592
  ttyBuildLogs?: boolean | undefined;
476
593
  customEnvironment?:
477
- | GetDeploymentCustomEnvironment1
478
594
  | GetDeploymentCustomEnvironment2
595
+ | GetDeploymentCustomEnvironment1
479
596
  | undefined;
480
597
  aliasWarning?: ResponseBodyAliasWarning | null | undefined;
481
598
  id: string;
@@ -776,11 +893,131 @@ export type GetDeploymentCustomEnvironmentDeployments2 = {
776
893
  id: string;
777
894
  };
778
895
 
779
- export type GetDeploymentCustomEnvironmentDeployments1 = {};
896
+ /**
897
+ * The type of environment (production, preview, or development)
898
+ */
899
+ export const GetDeploymentCustomEnvironmentDeploymentsType = {
900
+ Production: "production",
901
+ Preview: "preview",
902
+ Development: "development",
903
+ } as const;
904
+ /**
905
+ * The type of environment (production, preview, or development)
906
+ */
907
+ export type GetDeploymentCustomEnvironmentDeploymentsType = ClosedEnum<
908
+ typeof GetDeploymentCustomEnvironmentDeploymentsType
909
+ >;
910
+
911
+ /**
912
+ * The type of matching to perform
913
+ */
914
+ export const GetDeploymentCustomEnvironmentDeploymentsResponse200Type = {
915
+ StartsWith: "startsWith",
916
+ Equals: "equals",
917
+ EndsWith: "endsWith",
918
+ } as const;
919
+ /**
920
+ * The type of matching to perform
921
+ */
922
+ export type GetDeploymentCustomEnvironmentDeploymentsResponse200Type =
923
+ ClosedEnum<typeof GetDeploymentCustomEnvironmentDeploymentsResponse200Type>;
924
+
925
+ /**
926
+ * Configuration for matching git branches to this environment
927
+ */
928
+ export type GetDeploymentCustomEnvironmentDeploymentsBranchMatcher = {
929
+ /**
930
+ * The type of matching to perform
931
+ */
932
+ type: GetDeploymentCustomEnvironmentDeploymentsResponse200Type;
933
+ /**
934
+ * The pattern to match against branch names
935
+ */
936
+ pattern: string;
937
+ };
938
+
939
+ /**
940
+ * 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`.
941
+ */
942
+ export type GetDeploymentCustomEnvironmentDeploymentsVerification = {
943
+ type: string;
944
+ domain: string;
945
+ value: string;
946
+ reason: string;
947
+ };
948
+
949
+ /**
950
+ * List of domains associated with this environment
951
+ */
952
+ export type GetDeploymentCustomEnvironmentDeploymentsDomains = {
953
+ name: string;
954
+ apexName: string;
955
+ projectId: string;
956
+ redirect?: string | null | undefined;
957
+ redirectStatusCode?: number | null | undefined;
958
+ gitBranch?: string | null | undefined;
959
+ customEnvironmentId?: string | null | undefined;
960
+ updatedAt?: number | undefined;
961
+ createdAt?: number | undefined;
962
+ /**
963
+ * `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.
964
+ */
965
+ verified: boolean;
966
+ /**
967
+ * 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`.
968
+ */
969
+ verification?:
970
+ | Array<GetDeploymentCustomEnvironmentDeploymentsVerification>
971
+ | undefined;
972
+ };
973
+
974
+ /**
975
+ * Internal representation of a custom environment with all required properties
976
+ */
977
+ export type GetDeploymentCustomEnvironmentDeployments1 = {
978
+ /**
979
+ * Unique identifier for the custom environment (format: env_*)
980
+ */
981
+ id: string;
982
+ /**
983
+ * URL-friendly name of the environment
984
+ */
985
+ slug: string;
986
+ /**
987
+ * The type of environment (production, preview, or development)
988
+ */
989
+ type: GetDeploymentCustomEnvironmentDeploymentsType;
990
+ /**
991
+ * Optional description of the environment's purpose
992
+ */
993
+ description?: string | undefined;
994
+ /**
995
+ * Configuration for matching git branches to this environment
996
+ */
997
+ branchMatcher?:
998
+ | GetDeploymentCustomEnvironmentDeploymentsBranchMatcher
999
+ | undefined;
1000
+ /**
1001
+ * List of domains associated with this environment
1002
+ */
1003
+ domains?: Array<GetDeploymentCustomEnvironmentDeploymentsDomains> | undefined;
1004
+ /**
1005
+ * List of aliases for the current deployment
1006
+ */
1007
+ currentDeploymentAliases?: Array<string> | undefined;
1008
+ /**
1009
+ * Timestamp when the environment was created
1010
+ */
1011
+ createdAt: number;
1012
+ /**
1013
+ * Timestamp when the environment was last updated
1014
+ */
1015
+ updatedAt: number;
1016
+ };
780
1017
 
781
1018
  export type GetDeploymentResponseBodyCustomEnvironment =
782
- | GetDeploymentCustomEnvironmentDeployments1
783
- | GetDeploymentCustomEnvironmentDeployments2;
1019
+ | GetDeploymentCustomEnvironmentDeployments2
1020
+ | GetDeploymentCustomEnvironmentDeployments1;
784
1021
 
785
1022
  export type GetDeploymentResponseBodyAliasWarning = {
786
1023
  code: string;
@@ -867,7 +1104,7 @@ export type GetDeploymentGitSourceDeployments11 = {
867
1104
 
868
1105
  export const GetDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody110Type =
869
1106
  {
870
- Github: "github",
1107
+ GithubCustomHost: "github-custom-host",
871
1108
  } as const;
872
1109
  export type GetDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody110Type =
873
1110
  ClosedEnum<
@@ -1490,8 +1727,8 @@ export type GetDeploymentResponseBody1 = {
1490
1727
  previewCommentsEnabled?: boolean | undefined;
1491
1728
  ttyBuildLogs?: boolean | undefined;
1492
1729
  customEnvironment?:
1493
- | GetDeploymentCustomEnvironmentDeployments1
1494
1730
  | GetDeploymentCustomEnvironmentDeployments2
1731
+ | GetDeploymentCustomEnvironmentDeployments1
1495
1732
  | undefined;
1496
1733
  aliasWarning?: GetDeploymentResponseBodyAliasWarning | null | undefined;
1497
1734
  id: string;
@@ -1972,44 +2209,329 @@ export type GetDeploymentCustomEnvironment2$Outbound = {
1972
2209
  };
1973
2210
 
1974
2211
  /** @internal */
1975
- export const GetDeploymentCustomEnvironment2$outboundSchema: z.ZodType<
1976
- GetDeploymentCustomEnvironment2$Outbound,
2212
+ export const GetDeploymentCustomEnvironment2$outboundSchema: z.ZodType<
2213
+ GetDeploymentCustomEnvironment2$Outbound,
2214
+ z.ZodTypeDef,
2215
+ GetDeploymentCustomEnvironment2
2216
+ > = z.object({
2217
+ id: z.string(),
2218
+ });
2219
+
2220
+ /**
2221
+ * @internal
2222
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2223
+ */
2224
+ export namespace GetDeploymentCustomEnvironment2$ {
2225
+ /** @deprecated use `GetDeploymentCustomEnvironment2$inboundSchema` instead. */
2226
+ export const inboundSchema = GetDeploymentCustomEnvironment2$inboundSchema;
2227
+ /** @deprecated use `GetDeploymentCustomEnvironment2$outboundSchema` instead. */
2228
+ export const outboundSchema = GetDeploymentCustomEnvironment2$outboundSchema;
2229
+ /** @deprecated use `GetDeploymentCustomEnvironment2$Outbound` instead. */
2230
+ export type Outbound = GetDeploymentCustomEnvironment2$Outbound;
2231
+ }
2232
+
2233
+ export function getDeploymentCustomEnvironment2ToJSON(
2234
+ getDeploymentCustomEnvironment2: GetDeploymentCustomEnvironment2,
2235
+ ): string {
2236
+ return JSON.stringify(
2237
+ GetDeploymentCustomEnvironment2$outboundSchema.parse(
2238
+ getDeploymentCustomEnvironment2,
2239
+ ),
2240
+ );
2241
+ }
2242
+
2243
+ export function getDeploymentCustomEnvironment2FromJSON(
2244
+ jsonString: string,
2245
+ ): SafeParseResult<GetDeploymentCustomEnvironment2, SDKValidationError> {
2246
+ return safeParse(
2247
+ jsonString,
2248
+ (x) => GetDeploymentCustomEnvironment2$inboundSchema.parse(JSON.parse(x)),
2249
+ `Failed to parse 'GetDeploymentCustomEnvironment2' from JSON`,
2250
+ );
2251
+ }
2252
+
2253
+ /** @internal */
2254
+ export const GetDeploymentCustomEnvironmentType$inboundSchema: z.ZodNativeEnum<
2255
+ typeof GetDeploymentCustomEnvironmentType
2256
+ > = z.nativeEnum(GetDeploymentCustomEnvironmentType);
2257
+
2258
+ /** @internal */
2259
+ export const GetDeploymentCustomEnvironmentType$outboundSchema: z.ZodNativeEnum<
2260
+ typeof GetDeploymentCustomEnvironmentType
2261
+ > = GetDeploymentCustomEnvironmentType$inboundSchema;
2262
+
2263
+ /**
2264
+ * @internal
2265
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2266
+ */
2267
+ export namespace GetDeploymentCustomEnvironmentType$ {
2268
+ /** @deprecated use `GetDeploymentCustomEnvironmentType$inboundSchema` instead. */
2269
+ export const inboundSchema = GetDeploymentCustomEnvironmentType$inboundSchema;
2270
+ /** @deprecated use `GetDeploymentCustomEnvironmentType$outboundSchema` instead. */
2271
+ export const outboundSchema =
2272
+ GetDeploymentCustomEnvironmentType$outboundSchema;
2273
+ }
2274
+
2275
+ /** @internal */
2276
+ export const GetDeploymentCustomEnvironmentDeploymentsResponseType$inboundSchema:
2277
+ z.ZodNativeEnum<
2278
+ typeof GetDeploymentCustomEnvironmentDeploymentsResponseType
2279
+ > = z.nativeEnum(GetDeploymentCustomEnvironmentDeploymentsResponseType);
2280
+
2281
+ /** @internal */
2282
+ export const GetDeploymentCustomEnvironmentDeploymentsResponseType$outboundSchema:
2283
+ z.ZodNativeEnum<
2284
+ typeof GetDeploymentCustomEnvironmentDeploymentsResponseType
2285
+ > = GetDeploymentCustomEnvironmentDeploymentsResponseType$inboundSchema;
2286
+
2287
+ /**
2288
+ * @internal
2289
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2290
+ */
2291
+ export namespace GetDeploymentCustomEnvironmentDeploymentsResponseType$ {
2292
+ /** @deprecated use `GetDeploymentCustomEnvironmentDeploymentsResponseType$inboundSchema` instead. */
2293
+ export const inboundSchema =
2294
+ GetDeploymentCustomEnvironmentDeploymentsResponseType$inboundSchema;
2295
+ /** @deprecated use `GetDeploymentCustomEnvironmentDeploymentsResponseType$outboundSchema` instead. */
2296
+ export const outboundSchema =
2297
+ GetDeploymentCustomEnvironmentDeploymentsResponseType$outboundSchema;
2298
+ }
2299
+
2300
+ /** @internal */
2301
+ export const GetDeploymentCustomEnvironmentBranchMatcher$inboundSchema:
2302
+ z.ZodType<
2303
+ GetDeploymentCustomEnvironmentBranchMatcher,
2304
+ z.ZodTypeDef,
2305
+ unknown
2306
+ > = z.object({
2307
+ type: GetDeploymentCustomEnvironmentDeploymentsResponseType$inboundSchema,
2308
+ pattern: z.string(),
2309
+ });
2310
+
2311
+ /** @internal */
2312
+ export type GetDeploymentCustomEnvironmentBranchMatcher$Outbound = {
2313
+ type: string;
2314
+ pattern: string;
2315
+ };
2316
+
2317
+ /** @internal */
2318
+ export const GetDeploymentCustomEnvironmentBranchMatcher$outboundSchema:
2319
+ z.ZodType<
2320
+ GetDeploymentCustomEnvironmentBranchMatcher$Outbound,
2321
+ z.ZodTypeDef,
2322
+ GetDeploymentCustomEnvironmentBranchMatcher
2323
+ > = z.object({
2324
+ type: GetDeploymentCustomEnvironmentDeploymentsResponseType$outboundSchema,
2325
+ pattern: z.string(),
2326
+ });
2327
+
2328
+ /**
2329
+ * @internal
2330
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2331
+ */
2332
+ export namespace GetDeploymentCustomEnvironmentBranchMatcher$ {
2333
+ /** @deprecated use `GetDeploymentCustomEnvironmentBranchMatcher$inboundSchema` instead. */
2334
+ export const inboundSchema =
2335
+ GetDeploymentCustomEnvironmentBranchMatcher$inboundSchema;
2336
+ /** @deprecated use `GetDeploymentCustomEnvironmentBranchMatcher$outboundSchema` instead. */
2337
+ export const outboundSchema =
2338
+ GetDeploymentCustomEnvironmentBranchMatcher$outboundSchema;
2339
+ /** @deprecated use `GetDeploymentCustomEnvironmentBranchMatcher$Outbound` instead. */
2340
+ export type Outbound = GetDeploymentCustomEnvironmentBranchMatcher$Outbound;
2341
+ }
2342
+
2343
+ export function getDeploymentCustomEnvironmentBranchMatcherToJSON(
2344
+ getDeploymentCustomEnvironmentBranchMatcher:
2345
+ GetDeploymentCustomEnvironmentBranchMatcher,
2346
+ ): string {
2347
+ return JSON.stringify(
2348
+ GetDeploymentCustomEnvironmentBranchMatcher$outboundSchema.parse(
2349
+ getDeploymentCustomEnvironmentBranchMatcher,
2350
+ ),
2351
+ );
2352
+ }
2353
+
2354
+ export function getDeploymentCustomEnvironmentBranchMatcherFromJSON(
2355
+ jsonString: string,
2356
+ ): SafeParseResult<
2357
+ GetDeploymentCustomEnvironmentBranchMatcher,
2358
+ SDKValidationError
2359
+ > {
2360
+ return safeParse(
2361
+ jsonString,
2362
+ (x) =>
2363
+ GetDeploymentCustomEnvironmentBranchMatcher$inboundSchema.parse(
2364
+ JSON.parse(x),
2365
+ ),
2366
+ `Failed to parse 'GetDeploymentCustomEnvironmentBranchMatcher' from JSON`,
2367
+ );
2368
+ }
2369
+
2370
+ /** @internal */
2371
+ export const GetDeploymentCustomEnvironmentVerification$inboundSchema:
2372
+ z.ZodType<GetDeploymentCustomEnvironmentVerification, z.ZodTypeDef, unknown> =
2373
+ z.object({
2374
+ type: z.string(),
2375
+ domain: z.string(),
2376
+ value: z.string(),
2377
+ reason: z.string(),
2378
+ });
2379
+
2380
+ /** @internal */
2381
+ export type GetDeploymentCustomEnvironmentVerification$Outbound = {
2382
+ type: string;
2383
+ domain: string;
2384
+ value: string;
2385
+ reason: string;
2386
+ };
2387
+
2388
+ /** @internal */
2389
+ export const GetDeploymentCustomEnvironmentVerification$outboundSchema:
2390
+ z.ZodType<
2391
+ GetDeploymentCustomEnvironmentVerification$Outbound,
2392
+ z.ZodTypeDef,
2393
+ GetDeploymentCustomEnvironmentVerification
2394
+ > = z.object({
2395
+ type: z.string(),
2396
+ domain: z.string(),
2397
+ value: z.string(),
2398
+ reason: z.string(),
2399
+ });
2400
+
2401
+ /**
2402
+ * @internal
2403
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2404
+ */
2405
+ export namespace GetDeploymentCustomEnvironmentVerification$ {
2406
+ /** @deprecated use `GetDeploymentCustomEnvironmentVerification$inboundSchema` instead. */
2407
+ export const inboundSchema =
2408
+ GetDeploymentCustomEnvironmentVerification$inboundSchema;
2409
+ /** @deprecated use `GetDeploymentCustomEnvironmentVerification$outboundSchema` instead. */
2410
+ export const outboundSchema =
2411
+ GetDeploymentCustomEnvironmentVerification$outboundSchema;
2412
+ /** @deprecated use `GetDeploymentCustomEnvironmentVerification$Outbound` instead. */
2413
+ export type Outbound = GetDeploymentCustomEnvironmentVerification$Outbound;
2414
+ }
2415
+
2416
+ export function getDeploymentCustomEnvironmentVerificationToJSON(
2417
+ getDeploymentCustomEnvironmentVerification:
2418
+ GetDeploymentCustomEnvironmentVerification,
2419
+ ): string {
2420
+ return JSON.stringify(
2421
+ GetDeploymentCustomEnvironmentVerification$outboundSchema.parse(
2422
+ getDeploymentCustomEnvironmentVerification,
2423
+ ),
2424
+ );
2425
+ }
2426
+
2427
+ export function getDeploymentCustomEnvironmentVerificationFromJSON(
2428
+ jsonString: string,
2429
+ ): SafeParseResult<
2430
+ GetDeploymentCustomEnvironmentVerification,
2431
+ SDKValidationError
2432
+ > {
2433
+ return safeParse(
2434
+ jsonString,
2435
+ (x) =>
2436
+ GetDeploymentCustomEnvironmentVerification$inboundSchema.parse(
2437
+ JSON.parse(x),
2438
+ ),
2439
+ `Failed to parse 'GetDeploymentCustomEnvironmentVerification' from JSON`,
2440
+ );
2441
+ }
2442
+
2443
+ /** @internal */
2444
+ export const GetDeploymentCustomEnvironmentDomains$inboundSchema: z.ZodType<
2445
+ GetDeploymentCustomEnvironmentDomains,
2446
+ z.ZodTypeDef,
2447
+ unknown
2448
+ > = z.object({
2449
+ name: z.string(),
2450
+ apexName: z.string(),
2451
+ projectId: z.string(),
2452
+ redirect: z.nullable(z.string()).optional(),
2453
+ redirectStatusCode: z.nullable(z.number()).optional(),
2454
+ gitBranch: z.nullable(z.string()).optional(),
2455
+ customEnvironmentId: z.nullable(z.string()).optional(),
2456
+ updatedAt: z.number().optional(),
2457
+ createdAt: z.number().optional(),
2458
+ verified: z.boolean(),
2459
+ verification: z.array(
2460
+ z.lazy(() => GetDeploymentCustomEnvironmentVerification$inboundSchema),
2461
+ ).optional(),
2462
+ });
2463
+
2464
+ /** @internal */
2465
+ export type GetDeploymentCustomEnvironmentDomains$Outbound = {
2466
+ name: string;
2467
+ apexName: string;
2468
+ projectId: string;
2469
+ redirect?: string | null | undefined;
2470
+ redirectStatusCode?: number | null | undefined;
2471
+ gitBranch?: string | null | undefined;
2472
+ customEnvironmentId?: string | null | undefined;
2473
+ updatedAt?: number | undefined;
2474
+ createdAt?: number | undefined;
2475
+ verified: boolean;
2476
+ verification?:
2477
+ | Array<GetDeploymentCustomEnvironmentVerification$Outbound>
2478
+ | undefined;
2479
+ };
2480
+
2481
+ /** @internal */
2482
+ export const GetDeploymentCustomEnvironmentDomains$outboundSchema: z.ZodType<
2483
+ GetDeploymentCustomEnvironmentDomains$Outbound,
1977
2484
  z.ZodTypeDef,
1978
- GetDeploymentCustomEnvironment2
2485
+ GetDeploymentCustomEnvironmentDomains
1979
2486
  > = z.object({
1980
- id: z.string(),
2487
+ name: z.string(),
2488
+ apexName: z.string(),
2489
+ projectId: z.string(),
2490
+ redirect: z.nullable(z.string()).optional(),
2491
+ redirectStatusCode: z.nullable(z.number()).optional(),
2492
+ gitBranch: z.nullable(z.string()).optional(),
2493
+ customEnvironmentId: z.nullable(z.string()).optional(),
2494
+ updatedAt: z.number().optional(),
2495
+ createdAt: z.number().optional(),
2496
+ verified: z.boolean(),
2497
+ verification: z.array(
2498
+ z.lazy(() => GetDeploymentCustomEnvironmentVerification$outboundSchema),
2499
+ ).optional(),
1981
2500
  });
1982
2501
 
1983
2502
  /**
1984
2503
  * @internal
1985
2504
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1986
2505
  */
1987
- export namespace GetDeploymentCustomEnvironment2$ {
1988
- /** @deprecated use `GetDeploymentCustomEnvironment2$inboundSchema` instead. */
1989
- export const inboundSchema = GetDeploymentCustomEnvironment2$inboundSchema;
1990
- /** @deprecated use `GetDeploymentCustomEnvironment2$outboundSchema` instead. */
1991
- export const outboundSchema = GetDeploymentCustomEnvironment2$outboundSchema;
1992
- /** @deprecated use `GetDeploymentCustomEnvironment2$Outbound` instead. */
1993
- export type Outbound = GetDeploymentCustomEnvironment2$Outbound;
2506
+ export namespace GetDeploymentCustomEnvironmentDomains$ {
2507
+ /** @deprecated use `GetDeploymentCustomEnvironmentDomains$inboundSchema` instead. */
2508
+ export const inboundSchema =
2509
+ GetDeploymentCustomEnvironmentDomains$inboundSchema;
2510
+ /** @deprecated use `GetDeploymentCustomEnvironmentDomains$outboundSchema` instead. */
2511
+ export const outboundSchema =
2512
+ GetDeploymentCustomEnvironmentDomains$outboundSchema;
2513
+ /** @deprecated use `GetDeploymentCustomEnvironmentDomains$Outbound` instead. */
2514
+ export type Outbound = GetDeploymentCustomEnvironmentDomains$Outbound;
1994
2515
  }
1995
2516
 
1996
- export function getDeploymentCustomEnvironment2ToJSON(
1997
- getDeploymentCustomEnvironment2: GetDeploymentCustomEnvironment2,
2517
+ export function getDeploymentCustomEnvironmentDomainsToJSON(
2518
+ getDeploymentCustomEnvironmentDomains: GetDeploymentCustomEnvironmentDomains,
1998
2519
  ): string {
1999
2520
  return JSON.stringify(
2000
- GetDeploymentCustomEnvironment2$outboundSchema.parse(
2001
- getDeploymentCustomEnvironment2,
2521
+ GetDeploymentCustomEnvironmentDomains$outboundSchema.parse(
2522
+ getDeploymentCustomEnvironmentDomains,
2002
2523
  ),
2003
2524
  );
2004
2525
  }
2005
2526
 
2006
- export function getDeploymentCustomEnvironment2FromJSON(
2527
+ export function getDeploymentCustomEnvironmentDomainsFromJSON(
2007
2528
  jsonString: string,
2008
- ): SafeParseResult<GetDeploymentCustomEnvironment2, SDKValidationError> {
2529
+ ): SafeParseResult<GetDeploymentCustomEnvironmentDomains, SDKValidationError> {
2009
2530
  return safeParse(
2010
2531
  jsonString,
2011
- (x) => GetDeploymentCustomEnvironment2$inboundSchema.parse(JSON.parse(x)),
2012
- `Failed to parse 'GetDeploymentCustomEnvironment2' from JSON`,
2532
+ (x) =>
2533
+ GetDeploymentCustomEnvironmentDomains$inboundSchema.parse(JSON.parse(x)),
2534
+ `Failed to parse 'GetDeploymentCustomEnvironmentDomains' from JSON`,
2013
2535
  );
2014
2536
  }
2015
2537
 
@@ -2018,17 +2540,57 @@ export const GetDeploymentCustomEnvironment1$inboundSchema: z.ZodType<
2018
2540
  GetDeploymentCustomEnvironment1,
2019
2541
  z.ZodTypeDef,
2020
2542
  unknown
2021
- > = z.object({});
2543
+ > = z.object({
2544
+ id: z.string(),
2545
+ slug: z.string(),
2546
+ type: GetDeploymentCustomEnvironmentType$inboundSchema,
2547
+ description: z.string().optional(),
2548
+ branchMatcher: z.lazy(() =>
2549
+ GetDeploymentCustomEnvironmentBranchMatcher$inboundSchema
2550
+ ).optional(),
2551
+ domains: z.array(
2552
+ z.lazy(() => GetDeploymentCustomEnvironmentDomains$inboundSchema),
2553
+ ).optional(),
2554
+ currentDeploymentAliases: z.array(z.string()).optional(),
2555
+ createdAt: z.number(),
2556
+ updatedAt: z.number(),
2557
+ });
2022
2558
 
2023
2559
  /** @internal */
2024
- export type GetDeploymentCustomEnvironment1$Outbound = {};
2560
+ export type GetDeploymentCustomEnvironment1$Outbound = {
2561
+ id: string;
2562
+ slug: string;
2563
+ type: string;
2564
+ description?: string | undefined;
2565
+ branchMatcher?:
2566
+ | GetDeploymentCustomEnvironmentBranchMatcher$Outbound
2567
+ | undefined;
2568
+ domains?: Array<GetDeploymentCustomEnvironmentDomains$Outbound> | undefined;
2569
+ currentDeploymentAliases?: Array<string> | undefined;
2570
+ createdAt: number;
2571
+ updatedAt: number;
2572
+ };
2025
2573
 
2026
2574
  /** @internal */
2027
2575
  export const GetDeploymentCustomEnvironment1$outboundSchema: z.ZodType<
2028
2576
  GetDeploymentCustomEnvironment1$Outbound,
2029
2577
  z.ZodTypeDef,
2030
2578
  GetDeploymentCustomEnvironment1
2031
- > = z.object({});
2579
+ > = z.object({
2580
+ id: z.string(),
2581
+ slug: z.string(),
2582
+ type: GetDeploymentCustomEnvironmentType$outboundSchema,
2583
+ description: z.string().optional(),
2584
+ branchMatcher: z.lazy(() =>
2585
+ GetDeploymentCustomEnvironmentBranchMatcher$outboundSchema
2586
+ ).optional(),
2587
+ domains: z.array(
2588
+ z.lazy(() => GetDeploymentCustomEnvironmentDomains$outboundSchema),
2589
+ ).optional(),
2590
+ currentDeploymentAliases: z.array(z.string()).optional(),
2591
+ createdAt: z.number(),
2592
+ updatedAt: z.number(),
2593
+ });
2032
2594
 
2033
2595
  /**
2034
2596
  * @internal
@@ -2069,14 +2631,14 @@ export const ResponseBodyCustomEnvironment$inboundSchema: z.ZodType<
2069
2631
  z.ZodTypeDef,
2070
2632
  unknown
2071
2633
  > = z.union([
2072
- z.lazy(() => GetDeploymentCustomEnvironment1$inboundSchema),
2073
2634
  z.lazy(() => GetDeploymentCustomEnvironment2$inboundSchema),
2635
+ z.lazy(() => GetDeploymentCustomEnvironment1$inboundSchema),
2074
2636
  ]);
2075
2637
 
2076
2638
  /** @internal */
2077
2639
  export type ResponseBodyCustomEnvironment$Outbound =
2078
- | GetDeploymentCustomEnvironment1$Outbound
2079
- | GetDeploymentCustomEnvironment2$Outbound;
2640
+ | GetDeploymentCustomEnvironment2$Outbound
2641
+ | GetDeploymentCustomEnvironment1$Outbound;
2080
2642
 
2081
2643
  /** @internal */
2082
2644
  export const ResponseBodyCustomEnvironment$outboundSchema: z.ZodType<
@@ -2084,8 +2646,8 @@ export const ResponseBodyCustomEnvironment$outboundSchema: z.ZodType<
2084
2646
  z.ZodTypeDef,
2085
2647
  ResponseBodyCustomEnvironment
2086
2648
  > = z.union([
2087
- z.lazy(() => GetDeploymentCustomEnvironment1$outboundSchema),
2088
2649
  z.lazy(() => GetDeploymentCustomEnvironment2$outboundSchema),
2650
+ z.lazy(() => GetDeploymentCustomEnvironment1$outboundSchema),
2089
2651
  ]);
2090
2652
 
2091
2653
  /**
@@ -4022,8 +4584,8 @@ export const GetDeploymentResponseBody2$inboundSchema: z.ZodType<
4022
4584
  previewCommentsEnabled: z.boolean().optional(),
4023
4585
  ttyBuildLogs: z.boolean().optional(),
4024
4586
  customEnvironment: z.union([
4025
- z.lazy(() => GetDeploymentCustomEnvironment1$inboundSchema),
4026
4587
  z.lazy(() => GetDeploymentCustomEnvironment2$inboundSchema),
4588
+ z.lazy(() => GetDeploymentCustomEnvironment1$inboundSchema),
4027
4589
  ]).optional(),
4028
4590
  aliasWarning: z.nullable(z.lazy(() => ResponseBodyAliasWarning$inboundSchema))
4029
4591
  .optional(),
@@ -4102,8 +4664,8 @@ export type GetDeploymentResponseBody2$Outbound = {
4102
4664
  previewCommentsEnabled?: boolean | undefined;
4103
4665
  ttyBuildLogs?: boolean | undefined;
4104
4666
  customEnvironment?:
4105
- | GetDeploymentCustomEnvironment1$Outbound
4106
4667
  | GetDeploymentCustomEnvironment2$Outbound
4668
+ | GetDeploymentCustomEnvironment1$Outbound
4107
4669
  | undefined;
4108
4670
  aliasWarning?: ResponseBodyAliasWarning$Outbound | null | undefined;
4109
4671
  id: string;
@@ -4180,8 +4742,8 @@ export const GetDeploymentResponseBody2$outboundSchema: z.ZodType<
4180
4742
  previewCommentsEnabled: z.boolean().optional(),
4181
4743
  ttyBuildLogs: z.boolean().optional(),
4182
4744
  customEnvironment: z.union([
4183
- z.lazy(() => GetDeploymentCustomEnvironment1$outboundSchema),
4184
4745
  z.lazy(() => GetDeploymentCustomEnvironment2$outboundSchema),
4746
+ z.lazy(() => GetDeploymentCustomEnvironment1$outboundSchema),
4185
4747
  ]).optional(),
4186
4748
  aliasWarning: z.nullable(
4187
4749
  z.lazy(() => ResponseBodyAliasWarning$outboundSchema),
@@ -5404,13 +5966,348 @@ export function getDeploymentCustomEnvironmentDeployments2FromJSON(
5404
5966
  );
5405
5967
  }
5406
5968
 
5969
+ /** @internal */
5970
+ export const GetDeploymentCustomEnvironmentDeploymentsType$inboundSchema:
5971
+ z.ZodNativeEnum<typeof GetDeploymentCustomEnvironmentDeploymentsType> = z
5972
+ .nativeEnum(GetDeploymentCustomEnvironmentDeploymentsType);
5973
+
5974
+ /** @internal */
5975
+ export const GetDeploymentCustomEnvironmentDeploymentsType$outboundSchema:
5976
+ z.ZodNativeEnum<typeof GetDeploymentCustomEnvironmentDeploymentsType> =
5977
+ GetDeploymentCustomEnvironmentDeploymentsType$inboundSchema;
5978
+
5979
+ /**
5980
+ * @internal
5981
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5982
+ */
5983
+ export namespace GetDeploymentCustomEnvironmentDeploymentsType$ {
5984
+ /** @deprecated use `GetDeploymentCustomEnvironmentDeploymentsType$inboundSchema` instead. */
5985
+ export const inboundSchema =
5986
+ GetDeploymentCustomEnvironmentDeploymentsType$inboundSchema;
5987
+ /** @deprecated use `GetDeploymentCustomEnvironmentDeploymentsType$outboundSchema` instead. */
5988
+ export const outboundSchema =
5989
+ GetDeploymentCustomEnvironmentDeploymentsType$outboundSchema;
5990
+ }
5991
+
5992
+ /** @internal */
5993
+ export const GetDeploymentCustomEnvironmentDeploymentsResponse200Type$inboundSchema:
5994
+ z.ZodNativeEnum<
5995
+ typeof GetDeploymentCustomEnvironmentDeploymentsResponse200Type
5996
+ > = z.nativeEnum(GetDeploymentCustomEnvironmentDeploymentsResponse200Type);
5997
+
5998
+ /** @internal */
5999
+ export const GetDeploymentCustomEnvironmentDeploymentsResponse200Type$outboundSchema:
6000
+ z.ZodNativeEnum<
6001
+ typeof GetDeploymentCustomEnvironmentDeploymentsResponse200Type
6002
+ > = GetDeploymentCustomEnvironmentDeploymentsResponse200Type$inboundSchema;
6003
+
6004
+ /**
6005
+ * @internal
6006
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6007
+ */
6008
+ export namespace GetDeploymentCustomEnvironmentDeploymentsResponse200Type$ {
6009
+ /** @deprecated use `GetDeploymentCustomEnvironmentDeploymentsResponse200Type$inboundSchema` instead. */
6010
+ export const inboundSchema =
6011
+ GetDeploymentCustomEnvironmentDeploymentsResponse200Type$inboundSchema;
6012
+ /** @deprecated use `GetDeploymentCustomEnvironmentDeploymentsResponse200Type$outboundSchema` instead. */
6013
+ export const outboundSchema =
6014
+ GetDeploymentCustomEnvironmentDeploymentsResponse200Type$outboundSchema;
6015
+ }
6016
+
6017
+ /** @internal */
6018
+ export const GetDeploymentCustomEnvironmentDeploymentsBranchMatcher$inboundSchema:
6019
+ z.ZodType<
6020
+ GetDeploymentCustomEnvironmentDeploymentsBranchMatcher,
6021
+ z.ZodTypeDef,
6022
+ unknown
6023
+ > = z.object({
6024
+ type:
6025
+ GetDeploymentCustomEnvironmentDeploymentsResponse200Type$inboundSchema,
6026
+ pattern: z.string(),
6027
+ });
6028
+
6029
+ /** @internal */
6030
+ export type GetDeploymentCustomEnvironmentDeploymentsBranchMatcher$Outbound = {
6031
+ type: string;
6032
+ pattern: string;
6033
+ };
6034
+
6035
+ /** @internal */
6036
+ export const GetDeploymentCustomEnvironmentDeploymentsBranchMatcher$outboundSchema:
6037
+ z.ZodType<
6038
+ GetDeploymentCustomEnvironmentDeploymentsBranchMatcher$Outbound,
6039
+ z.ZodTypeDef,
6040
+ GetDeploymentCustomEnvironmentDeploymentsBranchMatcher
6041
+ > = z.object({
6042
+ type:
6043
+ GetDeploymentCustomEnvironmentDeploymentsResponse200Type$outboundSchema,
6044
+ pattern: z.string(),
6045
+ });
6046
+
6047
+ /**
6048
+ * @internal
6049
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6050
+ */
6051
+ export namespace GetDeploymentCustomEnvironmentDeploymentsBranchMatcher$ {
6052
+ /** @deprecated use `GetDeploymentCustomEnvironmentDeploymentsBranchMatcher$inboundSchema` instead. */
6053
+ export const inboundSchema =
6054
+ GetDeploymentCustomEnvironmentDeploymentsBranchMatcher$inboundSchema;
6055
+ /** @deprecated use `GetDeploymentCustomEnvironmentDeploymentsBranchMatcher$outboundSchema` instead. */
6056
+ export const outboundSchema =
6057
+ GetDeploymentCustomEnvironmentDeploymentsBranchMatcher$outboundSchema;
6058
+ /** @deprecated use `GetDeploymentCustomEnvironmentDeploymentsBranchMatcher$Outbound` instead. */
6059
+ export type Outbound =
6060
+ GetDeploymentCustomEnvironmentDeploymentsBranchMatcher$Outbound;
6061
+ }
6062
+
6063
+ export function getDeploymentCustomEnvironmentDeploymentsBranchMatcherToJSON(
6064
+ getDeploymentCustomEnvironmentDeploymentsBranchMatcher:
6065
+ GetDeploymentCustomEnvironmentDeploymentsBranchMatcher,
6066
+ ): string {
6067
+ return JSON.stringify(
6068
+ GetDeploymentCustomEnvironmentDeploymentsBranchMatcher$outboundSchema.parse(
6069
+ getDeploymentCustomEnvironmentDeploymentsBranchMatcher,
6070
+ ),
6071
+ );
6072
+ }
6073
+
6074
+ export function getDeploymentCustomEnvironmentDeploymentsBranchMatcherFromJSON(
6075
+ jsonString: string,
6076
+ ): SafeParseResult<
6077
+ GetDeploymentCustomEnvironmentDeploymentsBranchMatcher,
6078
+ SDKValidationError
6079
+ > {
6080
+ return safeParse(
6081
+ jsonString,
6082
+ (x) =>
6083
+ GetDeploymentCustomEnvironmentDeploymentsBranchMatcher$inboundSchema
6084
+ .parse(JSON.parse(x)),
6085
+ `Failed to parse 'GetDeploymentCustomEnvironmentDeploymentsBranchMatcher' from JSON`,
6086
+ );
6087
+ }
6088
+
6089
+ /** @internal */
6090
+ export const GetDeploymentCustomEnvironmentDeploymentsVerification$inboundSchema:
6091
+ z.ZodType<
6092
+ GetDeploymentCustomEnvironmentDeploymentsVerification,
6093
+ z.ZodTypeDef,
6094
+ unknown
6095
+ > = z.object({
6096
+ type: z.string(),
6097
+ domain: z.string(),
6098
+ value: z.string(),
6099
+ reason: z.string(),
6100
+ });
6101
+
6102
+ /** @internal */
6103
+ export type GetDeploymentCustomEnvironmentDeploymentsVerification$Outbound = {
6104
+ type: string;
6105
+ domain: string;
6106
+ value: string;
6107
+ reason: string;
6108
+ };
6109
+
6110
+ /** @internal */
6111
+ export const GetDeploymentCustomEnvironmentDeploymentsVerification$outboundSchema:
6112
+ z.ZodType<
6113
+ GetDeploymentCustomEnvironmentDeploymentsVerification$Outbound,
6114
+ z.ZodTypeDef,
6115
+ GetDeploymentCustomEnvironmentDeploymentsVerification
6116
+ > = z.object({
6117
+ type: z.string(),
6118
+ domain: z.string(),
6119
+ value: z.string(),
6120
+ reason: z.string(),
6121
+ });
6122
+
6123
+ /**
6124
+ * @internal
6125
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6126
+ */
6127
+ export namespace GetDeploymentCustomEnvironmentDeploymentsVerification$ {
6128
+ /** @deprecated use `GetDeploymentCustomEnvironmentDeploymentsVerification$inboundSchema` instead. */
6129
+ export const inboundSchema =
6130
+ GetDeploymentCustomEnvironmentDeploymentsVerification$inboundSchema;
6131
+ /** @deprecated use `GetDeploymentCustomEnvironmentDeploymentsVerification$outboundSchema` instead. */
6132
+ export const outboundSchema =
6133
+ GetDeploymentCustomEnvironmentDeploymentsVerification$outboundSchema;
6134
+ /** @deprecated use `GetDeploymentCustomEnvironmentDeploymentsVerification$Outbound` instead. */
6135
+ export type Outbound =
6136
+ GetDeploymentCustomEnvironmentDeploymentsVerification$Outbound;
6137
+ }
6138
+
6139
+ export function getDeploymentCustomEnvironmentDeploymentsVerificationToJSON(
6140
+ getDeploymentCustomEnvironmentDeploymentsVerification:
6141
+ GetDeploymentCustomEnvironmentDeploymentsVerification,
6142
+ ): string {
6143
+ return JSON.stringify(
6144
+ GetDeploymentCustomEnvironmentDeploymentsVerification$outboundSchema.parse(
6145
+ getDeploymentCustomEnvironmentDeploymentsVerification,
6146
+ ),
6147
+ );
6148
+ }
6149
+
6150
+ export function getDeploymentCustomEnvironmentDeploymentsVerificationFromJSON(
6151
+ jsonString: string,
6152
+ ): SafeParseResult<
6153
+ GetDeploymentCustomEnvironmentDeploymentsVerification,
6154
+ SDKValidationError
6155
+ > {
6156
+ return safeParse(
6157
+ jsonString,
6158
+ (x) =>
6159
+ GetDeploymentCustomEnvironmentDeploymentsVerification$inboundSchema.parse(
6160
+ JSON.parse(x),
6161
+ ),
6162
+ `Failed to parse 'GetDeploymentCustomEnvironmentDeploymentsVerification' from JSON`,
6163
+ );
6164
+ }
6165
+
6166
+ /** @internal */
6167
+ export const GetDeploymentCustomEnvironmentDeploymentsDomains$inboundSchema:
6168
+ z.ZodType<
6169
+ GetDeploymentCustomEnvironmentDeploymentsDomains,
6170
+ z.ZodTypeDef,
6171
+ unknown
6172
+ > = z.object({
6173
+ name: z.string(),
6174
+ apexName: z.string(),
6175
+ projectId: z.string(),
6176
+ redirect: z.nullable(z.string()).optional(),
6177
+ redirectStatusCode: z.nullable(z.number()).optional(),
6178
+ gitBranch: z.nullable(z.string()).optional(),
6179
+ customEnvironmentId: z.nullable(z.string()).optional(),
6180
+ updatedAt: z.number().optional(),
6181
+ createdAt: z.number().optional(),
6182
+ verified: z.boolean(),
6183
+ verification: z.array(
6184
+ z.lazy(() =>
6185
+ GetDeploymentCustomEnvironmentDeploymentsVerification$inboundSchema
6186
+ ),
6187
+ ).optional(),
6188
+ });
6189
+
6190
+ /** @internal */
6191
+ export type GetDeploymentCustomEnvironmentDeploymentsDomains$Outbound = {
6192
+ name: string;
6193
+ apexName: string;
6194
+ projectId: string;
6195
+ redirect?: string | null | undefined;
6196
+ redirectStatusCode?: number | null | undefined;
6197
+ gitBranch?: string | null | undefined;
6198
+ customEnvironmentId?: string | null | undefined;
6199
+ updatedAt?: number | undefined;
6200
+ createdAt?: number | undefined;
6201
+ verified: boolean;
6202
+ verification?:
6203
+ | Array<GetDeploymentCustomEnvironmentDeploymentsVerification$Outbound>
6204
+ | undefined;
6205
+ };
6206
+
6207
+ /** @internal */
6208
+ export const GetDeploymentCustomEnvironmentDeploymentsDomains$outboundSchema:
6209
+ z.ZodType<
6210
+ GetDeploymentCustomEnvironmentDeploymentsDomains$Outbound,
6211
+ z.ZodTypeDef,
6212
+ GetDeploymentCustomEnvironmentDeploymentsDomains
6213
+ > = z.object({
6214
+ name: z.string(),
6215
+ apexName: z.string(),
6216
+ projectId: z.string(),
6217
+ redirect: z.nullable(z.string()).optional(),
6218
+ redirectStatusCode: z.nullable(z.number()).optional(),
6219
+ gitBranch: z.nullable(z.string()).optional(),
6220
+ customEnvironmentId: z.nullable(z.string()).optional(),
6221
+ updatedAt: z.number().optional(),
6222
+ createdAt: z.number().optional(),
6223
+ verified: z.boolean(),
6224
+ verification: z.array(
6225
+ z.lazy(() =>
6226
+ GetDeploymentCustomEnvironmentDeploymentsVerification$outboundSchema
6227
+ ),
6228
+ ).optional(),
6229
+ });
6230
+
6231
+ /**
6232
+ * @internal
6233
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6234
+ */
6235
+ export namespace GetDeploymentCustomEnvironmentDeploymentsDomains$ {
6236
+ /** @deprecated use `GetDeploymentCustomEnvironmentDeploymentsDomains$inboundSchema` instead. */
6237
+ export const inboundSchema =
6238
+ GetDeploymentCustomEnvironmentDeploymentsDomains$inboundSchema;
6239
+ /** @deprecated use `GetDeploymentCustomEnvironmentDeploymentsDomains$outboundSchema` instead. */
6240
+ export const outboundSchema =
6241
+ GetDeploymentCustomEnvironmentDeploymentsDomains$outboundSchema;
6242
+ /** @deprecated use `GetDeploymentCustomEnvironmentDeploymentsDomains$Outbound` instead. */
6243
+ export type Outbound =
6244
+ GetDeploymentCustomEnvironmentDeploymentsDomains$Outbound;
6245
+ }
6246
+
6247
+ export function getDeploymentCustomEnvironmentDeploymentsDomainsToJSON(
6248
+ getDeploymentCustomEnvironmentDeploymentsDomains:
6249
+ GetDeploymentCustomEnvironmentDeploymentsDomains,
6250
+ ): string {
6251
+ return JSON.stringify(
6252
+ GetDeploymentCustomEnvironmentDeploymentsDomains$outboundSchema.parse(
6253
+ getDeploymentCustomEnvironmentDeploymentsDomains,
6254
+ ),
6255
+ );
6256
+ }
6257
+
6258
+ export function getDeploymentCustomEnvironmentDeploymentsDomainsFromJSON(
6259
+ jsonString: string,
6260
+ ): SafeParseResult<
6261
+ GetDeploymentCustomEnvironmentDeploymentsDomains,
6262
+ SDKValidationError
6263
+ > {
6264
+ return safeParse(
6265
+ jsonString,
6266
+ (x) =>
6267
+ GetDeploymentCustomEnvironmentDeploymentsDomains$inboundSchema.parse(
6268
+ JSON.parse(x),
6269
+ ),
6270
+ `Failed to parse 'GetDeploymentCustomEnvironmentDeploymentsDomains' from JSON`,
6271
+ );
6272
+ }
6273
+
5407
6274
  /** @internal */
5408
6275
  export const GetDeploymentCustomEnvironmentDeployments1$inboundSchema:
5409
6276
  z.ZodType<GetDeploymentCustomEnvironmentDeployments1, z.ZodTypeDef, unknown> =
5410
- z.object({});
6277
+ z.object({
6278
+ id: z.string(),
6279
+ slug: z.string(),
6280
+ type: GetDeploymentCustomEnvironmentDeploymentsType$inboundSchema,
6281
+ description: z.string().optional(),
6282
+ branchMatcher: z.lazy(() =>
6283
+ GetDeploymentCustomEnvironmentDeploymentsBranchMatcher$inboundSchema
6284
+ ).optional(),
6285
+ domains: z.array(
6286
+ z.lazy(() =>
6287
+ GetDeploymentCustomEnvironmentDeploymentsDomains$inboundSchema
6288
+ ),
6289
+ ).optional(),
6290
+ currentDeploymentAliases: z.array(z.string()).optional(),
6291
+ createdAt: z.number(),
6292
+ updatedAt: z.number(),
6293
+ });
5411
6294
 
5412
6295
  /** @internal */
5413
- export type GetDeploymentCustomEnvironmentDeployments1$Outbound = {};
6296
+ export type GetDeploymentCustomEnvironmentDeployments1$Outbound = {
6297
+ id: string;
6298
+ slug: string;
6299
+ type: string;
6300
+ description?: string | undefined;
6301
+ branchMatcher?:
6302
+ | GetDeploymentCustomEnvironmentDeploymentsBranchMatcher$Outbound
6303
+ | undefined;
6304
+ domains?:
6305
+ | Array<GetDeploymentCustomEnvironmentDeploymentsDomains$Outbound>
6306
+ | undefined;
6307
+ currentDeploymentAliases?: Array<string> | undefined;
6308
+ createdAt: number;
6309
+ updatedAt: number;
6310
+ };
5414
6311
 
5415
6312
  /** @internal */
5416
6313
  export const GetDeploymentCustomEnvironmentDeployments1$outboundSchema:
@@ -5418,7 +6315,23 @@ export const GetDeploymentCustomEnvironmentDeployments1$outboundSchema:
5418
6315
  GetDeploymentCustomEnvironmentDeployments1$Outbound,
5419
6316
  z.ZodTypeDef,
5420
6317
  GetDeploymentCustomEnvironmentDeployments1
5421
- > = z.object({});
6318
+ > = z.object({
6319
+ id: z.string(),
6320
+ slug: z.string(),
6321
+ type: GetDeploymentCustomEnvironmentDeploymentsType$outboundSchema,
6322
+ description: z.string().optional(),
6323
+ branchMatcher: z.lazy(() =>
6324
+ GetDeploymentCustomEnvironmentDeploymentsBranchMatcher$outboundSchema
6325
+ ).optional(),
6326
+ domains: z.array(
6327
+ z.lazy(() =>
6328
+ GetDeploymentCustomEnvironmentDeploymentsDomains$outboundSchema
6329
+ ),
6330
+ ).optional(),
6331
+ currentDeploymentAliases: z.array(z.string()).optional(),
6332
+ createdAt: z.number(),
6333
+ updatedAt: z.number(),
6334
+ });
5422
6335
 
5423
6336
  /**
5424
6337
  * @internal
@@ -5466,14 +6379,14 @@ export function getDeploymentCustomEnvironmentDeployments1FromJSON(
5466
6379
  export const GetDeploymentResponseBodyCustomEnvironment$inboundSchema:
5467
6380
  z.ZodType<GetDeploymentResponseBodyCustomEnvironment, z.ZodTypeDef, unknown> =
5468
6381
  z.union([
5469
- z.lazy(() => GetDeploymentCustomEnvironmentDeployments1$inboundSchema),
5470
6382
  z.lazy(() => GetDeploymentCustomEnvironmentDeployments2$inboundSchema),
6383
+ z.lazy(() => GetDeploymentCustomEnvironmentDeployments1$inboundSchema),
5471
6384
  ]);
5472
6385
 
5473
6386
  /** @internal */
5474
6387
  export type GetDeploymentResponseBodyCustomEnvironment$Outbound =
5475
- | GetDeploymentCustomEnvironmentDeployments1$Outbound
5476
- | GetDeploymentCustomEnvironmentDeployments2$Outbound;
6388
+ | GetDeploymentCustomEnvironmentDeployments2$Outbound
6389
+ | GetDeploymentCustomEnvironmentDeployments1$Outbound;
5477
6390
 
5478
6391
  /** @internal */
5479
6392
  export const GetDeploymentResponseBodyCustomEnvironment$outboundSchema:
@@ -5482,8 +6395,8 @@ export const GetDeploymentResponseBodyCustomEnvironment$outboundSchema:
5482
6395
  z.ZodTypeDef,
5483
6396
  GetDeploymentResponseBodyCustomEnvironment
5484
6397
  > = z.union([
5485
- z.lazy(() => GetDeploymentCustomEnvironmentDeployments1$outboundSchema),
5486
6398
  z.lazy(() => GetDeploymentCustomEnvironmentDeployments2$outboundSchema),
6399
+ z.lazy(() => GetDeploymentCustomEnvironmentDeployments1$outboundSchema),
5487
6400
  ]);
5488
6401
 
5489
6402
  /**
@@ -9503,8 +10416,8 @@ export const GetDeploymentResponseBody1$inboundSchema: z.ZodType<
9503
10416
  previewCommentsEnabled: z.boolean().optional(),
9504
10417
  ttyBuildLogs: z.boolean().optional(),
9505
10418
  customEnvironment: z.union([
9506
- z.lazy(() => GetDeploymentCustomEnvironmentDeployments1$inboundSchema),
9507
10419
  z.lazy(() => GetDeploymentCustomEnvironmentDeployments2$inboundSchema),
10420
+ z.lazy(() => GetDeploymentCustomEnvironmentDeployments1$inboundSchema),
9508
10421
  ]).optional(),
9509
10422
  aliasWarning: z.nullable(
9510
10423
  z.lazy(() => GetDeploymentResponseBodyAliasWarning$inboundSchema),
@@ -9629,8 +10542,8 @@ export type GetDeploymentResponseBody1$Outbound = {
9629
10542
  previewCommentsEnabled?: boolean | undefined;
9630
10543
  ttyBuildLogs?: boolean | undefined;
9631
10544
  customEnvironment?:
9632
- | GetDeploymentCustomEnvironmentDeployments1$Outbound
9633
10545
  | GetDeploymentCustomEnvironmentDeployments2$Outbound
10546
+ | GetDeploymentCustomEnvironmentDeployments1$Outbound
9634
10547
  | undefined;
9635
10548
  aliasWarning?:
9636
10549
  | GetDeploymentResponseBodyAliasWarning$Outbound
@@ -9759,8 +10672,8 @@ export const GetDeploymentResponseBody1$outboundSchema: z.ZodType<
9759
10672
  previewCommentsEnabled: z.boolean().optional(),
9760
10673
  ttyBuildLogs: z.boolean().optional(),
9761
10674
  customEnvironment: z.union([
9762
- z.lazy(() => GetDeploymentCustomEnvironmentDeployments1$outboundSchema),
9763
10675
  z.lazy(() => GetDeploymentCustomEnvironmentDeployments2$outboundSchema),
10676
+ z.lazy(() => GetDeploymentCustomEnvironmentDeployments1$outboundSchema),
9764
10677
  ]).optional(),
9765
10678
  aliasWarning: z.nullable(
9766
10679
  z.lazy(() => GetDeploymentResponseBodyAliasWarning$outboundSchema),