@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
@@ -4,6 +4,7 @@
4
4
 
5
5
  import * as z from "zod";
6
6
  import { safeParse } from "../lib/schemas.js";
7
+ import { ClosedEnum } from "../types/enums.js";
7
8
  import { Result as SafeParseResult } from "../types/fp.js";
8
9
  import { SDKValidationError } from "./sdkvalidationerror.js";
9
10
 
@@ -26,10 +27,124 @@ export type GetCustomEnvironmentRequest = {
26
27
  slug?: string | undefined;
27
28
  };
28
29
 
30
+ /**
31
+ * The type of environment (production, preview, or development)
32
+ */
33
+ export const GetCustomEnvironmentType = {
34
+ Production: "production",
35
+ Preview: "preview",
36
+ Development: "development",
37
+ } as const;
38
+ /**
39
+ * The type of environment (production, preview, or development)
40
+ */
41
+ export type GetCustomEnvironmentType = ClosedEnum<
42
+ typeof GetCustomEnvironmentType
43
+ >;
44
+
45
+ /**
46
+ * The type of matching to perform
47
+ */
48
+ export const GetCustomEnvironmentEnvironmentType = {
49
+ EndsWith: "endsWith",
50
+ StartsWith: "startsWith",
51
+ Equals: "equals",
52
+ } as const;
53
+ /**
54
+ * The type of matching to perform
55
+ */
56
+ export type GetCustomEnvironmentEnvironmentType = ClosedEnum<
57
+ typeof GetCustomEnvironmentEnvironmentType
58
+ >;
59
+
60
+ /**
61
+ * Configuration for matching git branches to this environment
62
+ */
63
+ export type GetCustomEnvironmentBranchMatcher = {
64
+ /**
65
+ * The type of matching to perform
66
+ */
67
+ type: GetCustomEnvironmentEnvironmentType;
68
+ /**
69
+ * The pattern to match against branch names
70
+ */
71
+ pattern: string;
72
+ };
73
+
74
+ /**
75
+ * 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`.
76
+ */
77
+ export type GetCustomEnvironmentVerification = {
78
+ type: string;
79
+ domain: string;
80
+ value: string;
81
+ reason: string;
82
+ };
83
+
84
+ /**
85
+ * List of domains associated with this environment
86
+ */
87
+ export type GetCustomEnvironmentDomains = {
88
+ name: string;
89
+ apexName: string;
90
+ projectId: string;
91
+ redirect?: string | null | undefined;
92
+ redirectStatusCode?: number | null | undefined;
93
+ gitBranch?: string | null | undefined;
94
+ customEnvironmentId?: string | null | undefined;
95
+ updatedAt?: number | undefined;
96
+ createdAt?: number | undefined;
97
+ /**
98
+ * `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.
99
+ */
100
+ verified: boolean;
101
+ /**
102
+ * 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`.
103
+ */
104
+ verification?: Array<GetCustomEnvironmentVerification> | undefined;
105
+ };
106
+
29
107
  /**
30
108
  * Internal representation of a custom environment with all required properties
31
109
  */
32
- export type GetCustomEnvironmentResponseBody = {};
110
+ export type GetCustomEnvironmentResponseBody = {
111
+ /**
112
+ * Unique identifier for the custom environment (format: env_*)
113
+ */
114
+ id: string;
115
+ /**
116
+ * URL-friendly name of the environment
117
+ */
118
+ slug: string;
119
+ /**
120
+ * The type of environment (production, preview, or development)
121
+ */
122
+ type: GetCustomEnvironmentType;
123
+ /**
124
+ * Optional description of the environment's purpose
125
+ */
126
+ description?: string | undefined;
127
+ /**
128
+ * Configuration for matching git branches to this environment
129
+ */
130
+ branchMatcher?: GetCustomEnvironmentBranchMatcher | undefined;
131
+ /**
132
+ * List of domains associated with this environment
133
+ */
134
+ domains?: Array<GetCustomEnvironmentDomains> | undefined;
135
+ /**
136
+ * List of aliases for the current deployment
137
+ */
138
+ currentDeploymentAliases?: Array<string> | undefined;
139
+ /**
140
+ * Timestamp when the environment was created
141
+ */
142
+ createdAt: number;
143
+ /**
144
+ * Timestamp when the environment was last updated
145
+ */
146
+ updatedAt: number;
147
+ };
33
148
 
34
149
  /** @internal */
35
150
  export const GetCustomEnvironmentRequest$inboundSchema: z.ZodType<
@@ -96,22 +211,315 @@ export function getCustomEnvironmentRequestFromJSON(
96
211
  );
97
212
  }
98
213
 
214
+ /** @internal */
215
+ export const GetCustomEnvironmentType$inboundSchema: z.ZodNativeEnum<
216
+ typeof GetCustomEnvironmentType
217
+ > = z.nativeEnum(GetCustomEnvironmentType);
218
+
219
+ /** @internal */
220
+ export const GetCustomEnvironmentType$outboundSchema: z.ZodNativeEnum<
221
+ typeof GetCustomEnvironmentType
222
+ > = GetCustomEnvironmentType$inboundSchema;
223
+
224
+ /**
225
+ * @internal
226
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
227
+ */
228
+ export namespace GetCustomEnvironmentType$ {
229
+ /** @deprecated use `GetCustomEnvironmentType$inboundSchema` instead. */
230
+ export const inboundSchema = GetCustomEnvironmentType$inboundSchema;
231
+ /** @deprecated use `GetCustomEnvironmentType$outboundSchema` instead. */
232
+ export const outboundSchema = GetCustomEnvironmentType$outboundSchema;
233
+ }
234
+
235
+ /** @internal */
236
+ export const GetCustomEnvironmentEnvironmentType$inboundSchema: z.ZodNativeEnum<
237
+ typeof GetCustomEnvironmentEnvironmentType
238
+ > = z.nativeEnum(GetCustomEnvironmentEnvironmentType);
239
+
240
+ /** @internal */
241
+ export const GetCustomEnvironmentEnvironmentType$outboundSchema:
242
+ z.ZodNativeEnum<typeof GetCustomEnvironmentEnvironmentType> =
243
+ GetCustomEnvironmentEnvironmentType$inboundSchema;
244
+
245
+ /**
246
+ * @internal
247
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
248
+ */
249
+ export namespace GetCustomEnvironmentEnvironmentType$ {
250
+ /** @deprecated use `GetCustomEnvironmentEnvironmentType$inboundSchema` instead. */
251
+ export const inboundSchema =
252
+ GetCustomEnvironmentEnvironmentType$inboundSchema;
253
+ /** @deprecated use `GetCustomEnvironmentEnvironmentType$outboundSchema` instead. */
254
+ export const outboundSchema =
255
+ GetCustomEnvironmentEnvironmentType$outboundSchema;
256
+ }
257
+
258
+ /** @internal */
259
+ export const GetCustomEnvironmentBranchMatcher$inboundSchema: z.ZodType<
260
+ GetCustomEnvironmentBranchMatcher,
261
+ z.ZodTypeDef,
262
+ unknown
263
+ > = z.object({
264
+ type: GetCustomEnvironmentEnvironmentType$inboundSchema,
265
+ pattern: z.string(),
266
+ });
267
+
268
+ /** @internal */
269
+ export type GetCustomEnvironmentBranchMatcher$Outbound = {
270
+ type: string;
271
+ pattern: string;
272
+ };
273
+
274
+ /** @internal */
275
+ export const GetCustomEnvironmentBranchMatcher$outboundSchema: z.ZodType<
276
+ GetCustomEnvironmentBranchMatcher$Outbound,
277
+ z.ZodTypeDef,
278
+ GetCustomEnvironmentBranchMatcher
279
+ > = z.object({
280
+ type: GetCustomEnvironmentEnvironmentType$outboundSchema,
281
+ pattern: z.string(),
282
+ });
283
+
284
+ /**
285
+ * @internal
286
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
287
+ */
288
+ export namespace GetCustomEnvironmentBranchMatcher$ {
289
+ /** @deprecated use `GetCustomEnvironmentBranchMatcher$inboundSchema` instead. */
290
+ export const inboundSchema = GetCustomEnvironmentBranchMatcher$inboundSchema;
291
+ /** @deprecated use `GetCustomEnvironmentBranchMatcher$outboundSchema` instead. */
292
+ export const outboundSchema =
293
+ GetCustomEnvironmentBranchMatcher$outboundSchema;
294
+ /** @deprecated use `GetCustomEnvironmentBranchMatcher$Outbound` instead. */
295
+ export type Outbound = GetCustomEnvironmentBranchMatcher$Outbound;
296
+ }
297
+
298
+ export function getCustomEnvironmentBranchMatcherToJSON(
299
+ getCustomEnvironmentBranchMatcher: GetCustomEnvironmentBranchMatcher,
300
+ ): string {
301
+ return JSON.stringify(
302
+ GetCustomEnvironmentBranchMatcher$outboundSchema.parse(
303
+ getCustomEnvironmentBranchMatcher,
304
+ ),
305
+ );
306
+ }
307
+
308
+ export function getCustomEnvironmentBranchMatcherFromJSON(
309
+ jsonString: string,
310
+ ): SafeParseResult<GetCustomEnvironmentBranchMatcher, SDKValidationError> {
311
+ return safeParse(
312
+ jsonString,
313
+ (x) => GetCustomEnvironmentBranchMatcher$inboundSchema.parse(JSON.parse(x)),
314
+ `Failed to parse 'GetCustomEnvironmentBranchMatcher' from JSON`,
315
+ );
316
+ }
317
+
318
+ /** @internal */
319
+ export const GetCustomEnvironmentVerification$inboundSchema: z.ZodType<
320
+ GetCustomEnvironmentVerification,
321
+ z.ZodTypeDef,
322
+ unknown
323
+ > = z.object({
324
+ type: z.string(),
325
+ domain: z.string(),
326
+ value: z.string(),
327
+ reason: z.string(),
328
+ });
329
+
330
+ /** @internal */
331
+ export type GetCustomEnvironmentVerification$Outbound = {
332
+ type: string;
333
+ domain: string;
334
+ value: string;
335
+ reason: string;
336
+ };
337
+
338
+ /** @internal */
339
+ export const GetCustomEnvironmentVerification$outboundSchema: z.ZodType<
340
+ GetCustomEnvironmentVerification$Outbound,
341
+ z.ZodTypeDef,
342
+ GetCustomEnvironmentVerification
343
+ > = z.object({
344
+ type: z.string(),
345
+ domain: z.string(),
346
+ value: z.string(),
347
+ reason: z.string(),
348
+ });
349
+
350
+ /**
351
+ * @internal
352
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
353
+ */
354
+ export namespace GetCustomEnvironmentVerification$ {
355
+ /** @deprecated use `GetCustomEnvironmentVerification$inboundSchema` instead. */
356
+ export const inboundSchema = GetCustomEnvironmentVerification$inboundSchema;
357
+ /** @deprecated use `GetCustomEnvironmentVerification$outboundSchema` instead. */
358
+ export const outboundSchema = GetCustomEnvironmentVerification$outboundSchema;
359
+ /** @deprecated use `GetCustomEnvironmentVerification$Outbound` instead. */
360
+ export type Outbound = GetCustomEnvironmentVerification$Outbound;
361
+ }
362
+
363
+ export function getCustomEnvironmentVerificationToJSON(
364
+ getCustomEnvironmentVerification: GetCustomEnvironmentVerification,
365
+ ): string {
366
+ return JSON.stringify(
367
+ GetCustomEnvironmentVerification$outboundSchema.parse(
368
+ getCustomEnvironmentVerification,
369
+ ),
370
+ );
371
+ }
372
+
373
+ export function getCustomEnvironmentVerificationFromJSON(
374
+ jsonString: string,
375
+ ): SafeParseResult<GetCustomEnvironmentVerification, SDKValidationError> {
376
+ return safeParse(
377
+ jsonString,
378
+ (x) => GetCustomEnvironmentVerification$inboundSchema.parse(JSON.parse(x)),
379
+ `Failed to parse 'GetCustomEnvironmentVerification' from JSON`,
380
+ );
381
+ }
382
+
383
+ /** @internal */
384
+ export const GetCustomEnvironmentDomains$inboundSchema: z.ZodType<
385
+ GetCustomEnvironmentDomains,
386
+ z.ZodTypeDef,
387
+ unknown
388
+ > = z.object({
389
+ name: z.string(),
390
+ apexName: z.string(),
391
+ projectId: z.string(),
392
+ redirect: z.nullable(z.string()).optional(),
393
+ redirectStatusCode: z.nullable(z.number()).optional(),
394
+ gitBranch: z.nullable(z.string()).optional(),
395
+ customEnvironmentId: z.nullable(z.string()).optional(),
396
+ updatedAt: z.number().optional(),
397
+ createdAt: z.number().optional(),
398
+ verified: z.boolean(),
399
+ verification: z.array(
400
+ z.lazy(() => GetCustomEnvironmentVerification$inboundSchema),
401
+ ).optional(),
402
+ });
403
+
404
+ /** @internal */
405
+ export type GetCustomEnvironmentDomains$Outbound = {
406
+ name: string;
407
+ apexName: string;
408
+ projectId: string;
409
+ redirect?: string | null | undefined;
410
+ redirectStatusCode?: number | null | undefined;
411
+ gitBranch?: string | null | undefined;
412
+ customEnvironmentId?: string | null | undefined;
413
+ updatedAt?: number | undefined;
414
+ createdAt?: number | undefined;
415
+ verified: boolean;
416
+ verification?: Array<GetCustomEnvironmentVerification$Outbound> | undefined;
417
+ };
418
+
419
+ /** @internal */
420
+ export const GetCustomEnvironmentDomains$outboundSchema: z.ZodType<
421
+ GetCustomEnvironmentDomains$Outbound,
422
+ z.ZodTypeDef,
423
+ GetCustomEnvironmentDomains
424
+ > = z.object({
425
+ name: z.string(),
426
+ apexName: z.string(),
427
+ projectId: z.string(),
428
+ redirect: z.nullable(z.string()).optional(),
429
+ redirectStatusCode: z.nullable(z.number()).optional(),
430
+ gitBranch: z.nullable(z.string()).optional(),
431
+ customEnvironmentId: z.nullable(z.string()).optional(),
432
+ updatedAt: z.number().optional(),
433
+ createdAt: z.number().optional(),
434
+ verified: z.boolean(),
435
+ verification: z.array(
436
+ z.lazy(() => GetCustomEnvironmentVerification$outboundSchema),
437
+ ).optional(),
438
+ });
439
+
440
+ /**
441
+ * @internal
442
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
443
+ */
444
+ export namespace GetCustomEnvironmentDomains$ {
445
+ /** @deprecated use `GetCustomEnvironmentDomains$inboundSchema` instead. */
446
+ export const inboundSchema = GetCustomEnvironmentDomains$inboundSchema;
447
+ /** @deprecated use `GetCustomEnvironmentDomains$outboundSchema` instead. */
448
+ export const outboundSchema = GetCustomEnvironmentDomains$outboundSchema;
449
+ /** @deprecated use `GetCustomEnvironmentDomains$Outbound` instead. */
450
+ export type Outbound = GetCustomEnvironmentDomains$Outbound;
451
+ }
452
+
453
+ export function getCustomEnvironmentDomainsToJSON(
454
+ getCustomEnvironmentDomains: GetCustomEnvironmentDomains,
455
+ ): string {
456
+ return JSON.stringify(
457
+ GetCustomEnvironmentDomains$outboundSchema.parse(
458
+ getCustomEnvironmentDomains,
459
+ ),
460
+ );
461
+ }
462
+
463
+ export function getCustomEnvironmentDomainsFromJSON(
464
+ jsonString: string,
465
+ ): SafeParseResult<GetCustomEnvironmentDomains, SDKValidationError> {
466
+ return safeParse(
467
+ jsonString,
468
+ (x) => GetCustomEnvironmentDomains$inboundSchema.parse(JSON.parse(x)),
469
+ `Failed to parse 'GetCustomEnvironmentDomains' from JSON`,
470
+ );
471
+ }
472
+
99
473
  /** @internal */
100
474
  export const GetCustomEnvironmentResponseBody$inboundSchema: z.ZodType<
101
475
  GetCustomEnvironmentResponseBody,
102
476
  z.ZodTypeDef,
103
477
  unknown
104
- > = z.object({});
478
+ > = z.object({
479
+ id: z.string(),
480
+ slug: z.string(),
481
+ type: GetCustomEnvironmentType$inboundSchema,
482
+ description: z.string().optional(),
483
+ branchMatcher: z.lazy(() => GetCustomEnvironmentBranchMatcher$inboundSchema)
484
+ .optional(),
485
+ domains: z.array(z.lazy(() => GetCustomEnvironmentDomains$inboundSchema))
486
+ .optional(),
487
+ currentDeploymentAliases: z.array(z.string()).optional(),
488
+ createdAt: z.number(),
489
+ updatedAt: z.number(),
490
+ });
105
491
 
106
492
  /** @internal */
107
- export type GetCustomEnvironmentResponseBody$Outbound = {};
493
+ export type GetCustomEnvironmentResponseBody$Outbound = {
494
+ id: string;
495
+ slug: string;
496
+ type: string;
497
+ description?: string | undefined;
498
+ branchMatcher?: GetCustomEnvironmentBranchMatcher$Outbound | undefined;
499
+ domains?: Array<GetCustomEnvironmentDomains$Outbound> | undefined;
500
+ currentDeploymentAliases?: Array<string> | undefined;
501
+ createdAt: number;
502
+ updatedAt: number;
503
+ };
108
504
 
109
505
  /** @internal */
110
506
  export const GetCustomEnvironmentResponseBody$outboundSchema: z.ZodType<
111
507
  GetCustomEnvironmentResponseBody$Outbound,
112
508
  z.ZodTypeDef,
113
509
  GetCustomEnvironmentResponseBody
114
- > = z.object({});
510
+ > = z.object({
511
+ id: z.string(),
512
+ slug: z.string(),
513
+ type: GetCustomEnvironmentType$outboundSchema,
514
+ description: z.string().optional(),
515
+ branchMatcher: z.lazy(() => GetCustomEnvironmentBranchMatcher$outboundSchema)
516
+ .optional(),
517
+ domains: z.array(z.lazy(() => GetCustomEnvironmentDomains$outboundSchema))
518
+ .optional(),
519
+ currentDeploymentAliases: z.array(z.string()).optional(),
520
+ createdAt: z.number(),
521
+ updatedAt: z.number(),
522
+ });
115
523
 
116
524
  /**
117
525
  * @internal