@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
 
@@ -33,7 +34,125 @@ export type AccountLimit = {
33
34
  total: number;
34
35
  };
35
36
 
36
- export type GetV9ProjectsIdOrNameCustomEnvironmentsEnvironments = {};
37
+ /**
38
+ * The type of environment (production, preview, or development)
39
+ */
40
+ export const GetV9ProjectsIdOrNameCustomEnvironmentsType = {
41
+ Production: "production",
42
+ Preview: "preview",
43
+ Development: "development",
44
+ } as const;
45
+ /**
46
+ * The type of environment (production, preview, or development)
47
+ */
48
+ export type GetV9ProjectsIdOrNameCustomEnvironmentsType = ClosedEnum<
49
+ typeof GetV9ProjectsIdOrNameCustomEnvironmentsType
50
+ >;
51
+
52
+ /**
53
+ * The type of matching to perform
54
+ */
55
+ export const GetV9ProjectsIdOrNameCustomEnvironmentsEnvironmentType = {
56
+ EndsWith: "endsWith",
57
+ StartsWith: "startsWith",
58
+ Equals: "equals",
59
+ } as const;
60
+ /**
61
+ * The type of matching to perform
62
+ */
63
+ export type GetV9ProjectsIdOrNameCustomEnvironmentsEnvironmentType = ClosedEnum<
64
+ typeof GetV9ProjectsIdOrNameCustomEnvironmentsEnvironmentType
65
+ >;
66
+
67
+ /**
68
+ * Configuration for matching git branches to this environment
69
+ */
70
+ export type GetV9ProjectsIdOrNameCustomEnvironmentsBranchMatcher = {
71
+ /**
72
+ * The type of matching to perform
73
+ */
74
+ type: GetV9ProjectsIdOrNameCustomEnvironmentsEnvironmentType;
75
+ /**
76
+ * The pattern to match against branch names
77
+ */
78
+ pattern: string;
79
+ };
80
+
81
+ /**
82
+ * 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`.
83
+ */
84
+ export type GetV9ProjectsIdOrNameCustomEnvironmentsVerification = {
85
+ type: string;
86
+ domain: string;
87
+ value: string;
88
+ reason: string;
89
+ };
90
+
91
+ /**
92
+ * List of domains associated with this environment
93
+ */
94
+ export type GetV9ProjectsIdOrNameCustomEnvironmentsDomains = {
95
+ name: string;
96
+ apexName: string;
97
+ projectId: string;
98
+ redirect?: string | null | undefined;
99
+ redirectStatusCode?: number | null | undefined;
100
+ gitBranch?: string | null | undefined;
101
+ customEnvironmentId?: string | null | undefined;
102
+ updatedAt?: number | undefined;
103
+ createdAt?: number | undefined;
104
+ /**
105
+ * `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.
106
+ */
107
+ verified: boolean;
108
+ /**
109
+ * 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`.
110
+ */
111
+ verification?:
112
+ | Array<GetV9ProjectsIdOrNameCustomEnvironmentsVerification>
113
+ | undefined;
114
+ };
115
+
116
+ export type GetV9ProjectsIdOrNameCustomEnvironmentsEnvironments = {
117
+ /**
118
+ * Unique identifier for the custom environment (format: env_*)
119
+ */
120
+ id: string;
121
+ /**
122
+ * URL-friendly name of the environment
123
+ */
124
+ slug: string;
125
+ /**
126
+ * The type of environment (production, preview, or development)
127
+ */
128
+ type: GetV9ProjectsIdOrNameCustomEnvironmentsType;
129
+ /**
130
+ * Optional description of the environment's purpose
131
+ */
132
+ description?: string | undefined;
133
+ /**
134
+ * Configuration for matching git branches to this environment
135
+ */
136
+ branchMatcher?:
137
+ | GetV9ProjectsIdOrNameCustomEnvironmentsBranchMatcher
138
+ | undefined;
139
+ /**
140
+ * List of domains associated with this environment
141
+ */
142
+ domains?: Array<GetV9ProjectsIdOrNameCustomEnvironmentsDomains> | undefined;
143
+ /**
144
+ * List of aliases for the current deployment
145
+ */
146
+ currentDeploymentAliases?: Array<string> | undefined;
147
+ /**
148
+ * Timestamp when the environment was created
149
+ */
150
+ createdAt: number;
151
+ /**
152
+ * Timestamp when the environment was last updated
153
+ */
154
+ updatedAt: number;
155
+ };
37
156
 
38
157
  export type GetV9ProjectsIdOrNameCustomEnvironmentsResponseBody = {
39
158
  /**
@@ -170,16 +289,350 @@ export function accountLimitFromJSON(
170
289
  );
171
290
  }
172
291
 
292
+ /** @internal */
293
+ export const GetV9ProjectsIdOrNameCustomEnvironmentsType$inboundSchema:
294
+ z.ZodNativeEnum<typeof GetV9ProjectsIdOrNameCustomEnvironmentsType> = z
295
+ .nativeEnum(GetV9ProjectsIdOrNameCustomEnvironmentsType);
296
+
297
+ /** @internal */
298
+ export const GetV9ProjectsIdOrNameCustomEnvironmentsType$outboundSchema:
299
+ z.ZodNativeEnum<typeof GetV9ProjectsIdOrNameCustomEnvironmentsType> =
300
+ GetV9ProjectsIdOrNameCustomEnvironmentsType$inboundSchema;
301
+
302
+ /**
303
+ * @internal
304
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
305
+ */
306
+ export namespace GetV9ProjectsIdOrNameCustomEnvironmentsType$ {
307
+ /** @deprecated use `GetV9ProjectsIdOrNameCustomEnvironmentsType$inboundSchema` instead. */
308
+ export const inboundSchema =
309
+ GetV9ProjectsIdOrNameCustomEnvironmentsType$inboundSchema;
310
+ /** @deprecated use `GetV9ProjectsIdOrNameCustomEnvironmentsType$outboundSchema` instead. */
311
+ export const outboundSchema =
312
+ GetV9ProjectsIdOrNameCustomEnvironmentsType$outboundSchema;
313
+ }
314
+
315
+ /** @internal */
316
+ export const GetV9ProjectsIdOrNameCustomEnvironmentsEnvironmentType$inboundSchema:
317
+ z.ZodNativeEnum<
318
+ typeof GetV9ProjectsIdOrNameCustomEnvironmentsEnvironmentType
319
+ > = z.nativeEnum(GetV9ProjectsIdOrNameCustomEnvironmentsEnvironmentType);
320
+
321
+ /** @internal */
322
+ export const GetV9ProjectsIdOrNameCustomEnvironmentsEnvironmentType$outboundSchema:
323
+ z.ZodNativeEnum<
324
+ typeof GetV9ProjectsIdOrNameCustomEnvironmentsEnvironmentType
325
+ > = GetV9ProjectsIdOrNameCustomEnvironmentsEnvironmentType$inboundSchema;
326
+
327
+ /**
328
+ * @internal
329
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
330
+ */
331
+ export namespace GetV9ProjectsIdOrNameCustomEnvironmentsEnvironmentType$ {
332
+ /** @deprecated use `GetV9ProjectsIdOrNameCustomEnvironmentsEnvironmentType$inboundSchema` instead. */
333
+ export const inboundSchema =
334
+ GetV9ProjectsIdOrNameCustomEnvironmentsEnvironmentType$inboundSchema;
335
+ /** @deprecated use `GetV9ProjectsIdOrNameCustomEnvironmentsEnvironmentType$outboundSchema` instead. */
336
+ export const outboundSchema =
337
+ GetV9ProjectsIdOrNameCustomEnvironmentsEnvironmentType$outboundSchema;
338
+ }
339
+
340
+ /** @internal */
341
+ export const GetV9ProjectsIdOrNameCustomEnvironmentsBranchMatcher$inboundSchema:
342
+ z.ZodType<
343
+ GetV9ProjectsIdOrNameCustomEnvironmentsBranchMatcher,
344
+ z.ZodTypeDef,
345
+ unknown
346
+ > = z.object({
347
+ type: GetV9ProjectsIdOrNameCustomEnvironmentsEnvironmentType$inboundSchema,
348
+ pattern: z.string(),
349
+ });
350
+
351
+ /** @internal */
352
+ export type GetV9ProjectsIdOrNameCustomEnvironmentsBranchMatcher$Outbound = {
353
+ type: string;
354
+ pattern: string;
355
+ };
356
+
357
+ /** @internal */
358
+ export const GetV9ProjectsIdOrNameCustomEnvironmentsBranchMatcher$outboundSchema:
359
+ z.ZodType<
360
+ GetV9ProjectsIdOrNameCustomEnvironmentsBranchMatcher$Outbound,
361
+ z.ZodTypeDef,
362
+ GetV9ProjectsIdOrNameCustomEnvironmentsBranchMatcher
363
+ > = z.object({
364
+ type: GetV9ProjectsIdOrNameCustomEnvironmentsEnvironmentType$outboundSchema,
365
+ pattern: z.string(),
366
+ });
367
+
368
+ /**
369
+ * @internal
370
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
371
+ */
372
+ export namespace GetV9ProjectsIdOrNameCustomEnvironmentsBranchMatcher$ {
373
+ /** @deprecated use `GetV9ProjectsIdOrNameCustomEnvironmentsBranchMatcher$inboundSchema` instead. */
374
+ export const inboundSchema =
375
+ GetV9ProjectsIdOrNameCustomEnvironmentsBranchMatcher$inboundSchema;
376
+ /** @deprecated use `GetV9ProjectsIdOrNameCustomEnvironmentsBranchMatcher$outboundSchema` instead. */
377
+ export const outboundSchema =
378
+ GetV9ProjectsIdOrNameCustomEnvironmentsBranchMatcher$outboundSchema;
379
+ /** @deprecated use `GetV9ProjectsIdOrNameCustomEnvironmentsBranchMatcher$Outbound` instead. */
380
+ export type Outbound =
381
+ GetV9ProjectsIdOrNameCustomEnvironmentsBranchMatcher$Outbound;
382
+ }
383
+
384
+ export function getV9ProjectsIdOrNameCustomEnvironmentsBranchMatcherToJSON(
385
+ getV9ProjectsIdOrNameCustomEnvironmentsBranchMatcher:
386
+ GetV9ProjectsIdOrNameCustomEnvironmentsBranchMatcher,
387
+ ): string {
388
+ return JSON.stringify(
389
+ GetV9ProjectsIdOrNameCustomEnvironmentsBranchMatcher$outboundSchema.parse(
390
+ getV9ProjectsIdOrNameCustomEnvironmentsBranchMatcher,
391
+ ),
392
+ );
393
+ }
394
+
395
+ export function getV9ProjectsIdOrNameCustomEnvironmentsBranchMatcherFromJSON(
396
+ jsonString: string,
397
+ ): SafeParseResult<
398
+ GetV9ProjectsIdOrNameCustomEnvironmentsBranchMatcher,
399
+ SDKValidationError
400
+ > {
401
+ return safeParse(
402
+ jsonString,
403
+ (x) =>
404
+ GetV9ProjectsIdOrNameCustomEnvironmentsBranchMatcher$inboundSchema.parse(
405
+ JSON.parse(x),
406
+ ),
407
+ `Failed to parse 'GetV9ProjectsIdOrNameCustomEnvironmentsBranchMatcher' from JSON`,
408
+ );
409
+ }
410
+
411
+ /** @internal */
412
+ export const GetV9ProjectsIdOrNameCustomEnvironmentsVerification$inboundSchema:
413
+ z.ZodType<
414
+ GetV9ProjectsIdOrNameCustomEnvironmentsVerification,
415
+ z.ZodTypeDef,
416
+ unknown
417
+ > = z.object({
418
+ type: z.string(),
419
+ domain: z.string(),
420
+ value: z.string(),
421
+ reason: z.string(),
422
+ });
423
+
424
+ /** @internal */
425
+ export type GetV9ProjectsIdOrNameCustomEnvironmentsVerification$Outbound = {
426
+ type: string;
427
+ domain: string;
428
+ value: string;
429
+ reason: string;
430
+ };
431
+
432
+ /** @internal */
433
+ export const GetV9ProjectsIdOrNameCustomEnvironmentsVerification$outboundSchema:
434
+ z.ZodType<
435
+ GetV9ProjectsIdOrNameCustomEnvironmentsVerification$Outbound,
436
+ z.ZodTypeDef,
437
+ GetV9ProjectsIdOrNameCustomEnvironmentsVerification
438
+ > = z.object({
439
+ type: z.string(),
440
+ domain: z.string(),
441
+ value: z.string(),
442
+ reason: z.string(),
443
+ });
444
+
445
+ /**
446
+ * @internal
447
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
448
+ */
449
+ export namespace GetV9ProjectsIdOrNameCustomEnvironmentsVerification$ {
450
+ /** @deprecated use `GetV9ProjectsIdOrNameCustomEnvironmentsVerification$inboundSchema` instead. */
451
+ export const inboundSchema =
452
+ GetV9ProjectsIdOrNameCustomEnvironmentsVerification$inboundSchema;
453
+ /** @deprecated use `GetV9ProjectsIdOrNameCustomEnvironmentsVerification$outboundSchema` instead. */
454
+ export const outboundSchema =
455
+ GetV9ProjectsIdOrNameCustomEnvironmentsVerification$outboundSchema;
456
+ /** @deprecated use `GetV9ProjectsIdOrNameCustomEnvironmentsVerification$Outbound` instead. */
457
+ export type Outbound =
458
+ GetV9ProjectsIdOrNameCustomEnvironmentsVerification$Outbound;
459
+ }
460
+
461
+ export function getV9ProjectsIdOrNameCustomEnvironmentsVerificationToJSON(
462
+ getV9ProjectsIdOrNameCustomEnvironmentsVerification:
463
+ GetV9ProjectsIdOrNameCustomEnvironmentsVerification,
464
+ ): string {
465
+ return JSON.stringify(
466
+ GetV9ProjectsIdOrNameCustomEnvironmentsVerification$outboundSchema.parse(
467
+ getV9ProjectsIdOrNameCustomEnvironmentsVerification,
468
+ ),
469
+ );
470
+ }
471
+
472
+ export function getV9ProjectsIdOrNameCustomEnvironmentsVerificationFromJSON(
473
+ jsonString: string,
474
+ ): SafeParseResult<
475
+ GetV9ProjectsIdOrNameCustomEnvironmentsVerification,
476
+ SDKValidationError
477
+ > {
478
+ return safeParse(
479
+ jsonString,
480
+ (x) =>
481
+ GetV9ProjectsIdOrNameCustomEnvironmentsVerification$inboundSchema.parse(
482
+ JSON.parse(x),
483
+ ),
484
+ `Failed to parse 'GetV9ProjectsIdOrNameCustomEnvironmentsVerification' from JSON`,
485
+ );
486
+ }
487
+
488
+ /** @internal */
489
+ export const GetV9ProjectsIdOrNameCustomEnvironmentsDomains$inboundSchema:
490
+ z.ZodType<
491
+ GetV9ProjectsIdOrNameCustomEnvironmentsDomains,
492
+ z.ZodTypeDef,
493
+ unknown
494
+ > = z.object({
495
+ name: z.string(),
496
+ apexName: z.string(),
497
+ projectId: z.string(),
498
+ redirect: z.nullable(z.string()).optional(),
499
+ redirectStatusCode: z.nullable(z.number()).optional(),
500
+ gitBranch: z.nullable(z.string()).optional(),
501
+ customEnvironmentId: z.nullable(z.string()).optional(),
502
+ updatedAt: z.number().optional(),
503
+ createdAt: z.number().optional(),
504
+ verified: z.boolean(),
505
+ verification: z.array(
506
+ z.lazy(() =>
507
+ GetV9ProjectsIdOrNameCustomEnvironmentsVerification$inboundSchema
508
+ ),
509
+ ).optional(),
510
+ });
511
+
512
+ /** @internal */
513
+ export type GetV9ProjectsIdOrNameCustomEnvironmentsDomains$Outbound = {
514
+ name: string;
515
+ apexName: string;
516
+ projectId: string;
517
+ redirect?: string | null | undefined;
518
+ redirectStatusCode?: number | null | undefined;
519
+ gitBranch?: string | null | undefined;
520
+ customEnvironmentId?: string | null | undefined;
521
+ updatedAt?: number | undefined;
522
+ createdAt?: number | undefined;
523
+ verified: boolean;
524
+ verification?:
525
+ | Array<GetV9ProjectsIdOrNameCustomEnvironmentsVerification$Outbound>
526
+ | undefined;
527
+ };
528
+
529
+ /** @internal */
530
+ export const GetV9ProjectsIdOrNameCustomEnvironmentsDomains$outboundSchema:
531
+ z.ZodType<
532
+ GetV9ProjectsIdOrNameCustomEnvironmentsDomains$Outbound,
533
+ z.ZodTypeDef,
534
+ GetV9ProjectsIdOrNameCustomEnvironmentsDomains
535
+ > = z.object({
536
+ name: z.string(),
537
+ apexName: z.string(),
538
+ projectId: z.string(),
539
+ redirect: z.nullable(z.string()).optional(),
540
+ redirectStatusCode: z.nullable(z.number()).optional(),
541
+ gitBranch: z.nullable(z.string()).optional(),
542
+ customEnvironmentId: z.nullable(z.string()).optional(),
543
+ updatedAt: z.number().optional(),
544
+ createdAt: z.number().optional(),
545
+ verified: z.boolean(),
546
+ verification: z.array(
547
+ z.lazy(() =>
548
+ GetV9ProjectsIdOrNameCustomEnvironmentsVerification$outboundSchema
549
+ ),
550
+ ).optional(),
551
+ });
552
+
553
+ /**
554
+ * @internal
555
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
556
+ */
557
+ export namespace GetV9ProjectsIdOrNameCustomEnvironmentsDomains$ {
558
+ /** @deprecated use `GetV9ProjectsIdOrNameCustomEnvironmentsDomains$inboundSchema` instead. */
559
+ export const inboundSchema =
560
+ GetV9ProjectsIdOrNameCustomEnvironmentsDomains$inboundSchema;
561
+ /** @deprecated use `GetV9ProjectsIdOrNameCustomEnvironmentsDomains$outboundSchema` instead. */
562
+ export const outboundSchema =
563
+ GetV9ProjectsIdOrNameCustomEnvironmentsDomains$outboundSchema;
564
+ /** @deprecated use `GetV9ProjectsIdOrNameCustomEnvironmentsDomains$Outbound` instead. */
565
+ export type Outbound =
566
+ GetV9ProjectsIdOrNameCustomEnvironmentsDomains$Outbound;
567
+ }
568
+
569
+ export function getV9ProjectsIdOrNameCustomEnvironmentsDomainsToJSON(
570
+ getV9ProjectsIdOrNameCustomEnvironmentsDomains:
571
+ GetV9ProjectsIdOrNameCustomEnvironmentsDomains,
572
+ ): string {
573
+ return JSON.stringify(
574
+ GetV9ProjectsIdOrNameCustomEnvironmentsDomains$outboundSchema.parse(
575
+ getV9ProjectsIdOrNameCustomEnvironmentsDomains,
576
+ ),
577
+ );
578
+ }
579
+
580
+ export function getV9ProjectsIdOrNameCustomEnvironmentsDomainsFromJSON(
581
+ jsonString: string,
582
+ ): SafeParseResult<
583
+ GetV9ProjectsIdOrNameCustomEnvironmentsDomains,
584
+ SDKValidationError
585
+ > {
586
+ return safeParse(
587
+ jsonString,
588
+ (x) =>
589
+ GetV9ProjectsIdOrNameCustomEnvironmentsDomains$inboundSchema.parse(
590
+ JSON.parse(x),
591
+ ),
592
+ `Failed to parse 'GetV9ProjectsIdOrNameCustomEnvironmentsDomains' from JSON`,
593
+ );
594
+ }
595
+
173
596
  /** @internal */
174
597
  export const GetV9ProjectsIdOrNameCustomEnvironmentsEnvironments$inboundSchema:
175
598
  z.ZodType<
176
599
  GetV9ProjectsIdOrNameCustomEnvironmentsEnvironments,
177
600
  z.ZodTypeDef,
178
601
  unknown
179
- > = z.object({});
602
+ > = z.object({
603
+ id: z.string(),
604
+ slug: z.string(),
605
+ type: GetV9ProjectsIdOrNameCustomEnvironmentsType$inboundSchema,
606
+ description: z.string().optional(),
607
+ branchMatcher: z.lazy(() =>
608
+ GetV9ProjectsIdOrNameCustomEnvironmentsBranchMatcher$inboundSchema
609
+ ).optional(),
610
+ domains: z.array(
611
+ z.lazy(() =>
612
+ GetV9ProjectsIdOrNameCustomEnvironmentsDomains$inboundSchema
613
+ ),
614
+ ).optional(),
615
+ currentDeploymentAliases: z.array(z.string()).optional(),
616
+ createdAt: z.number(),
617
+ updatedAt: z.number(),
618
+ });
180
619
 
181
620
  /** @internal */
182
- export type GetV9ProjectsIdOrNameCustomEnvironmentsEnvironments$Outbound = {};
621
+ export type GetV9ProjectsIdOrNameCustomEnvironmentsEnvironments$Outbound = {
622
+ id: string;
623
+ slug: string;
624
+ type: string;
625
+ description?: string | undefined;
626
+ branchMatcher?:
627
+ | GetV9ProjectsIdOrNameCustomEnvironmentsBranchMatcher$Outbound
628
+ | undefined;
629
+ domains?:
630
+ | Array<GetV9ProjectsIdOrNameCustomEnvironmentsDomains$Outbound>
631
+ | undefined;
632
+ currentDeploymentAliases?: Array<string> | undefined;
633
+ createdAt: number;
634
+ updatedAt: number;
635
+ };
183
636
 
184
637
  /** @internal */
185
638
  export const GetV9ProjectsIdOrNameCustomEnvironmentsEnvironments$outboundSchema:
@@ -187,7 +640,23 @@ export const GetV9ProjectsIdOrNameCustomEnvironmentsEnvironments$outboundSchema:
187
640
  GetV9ProjectsIdOrNameCustomEnvironmentsEnvironments$Outbound,
188
641
  z.ZodTypeDef,
189
642
  GetV9ProjectsIdOrNameCustomEnvironmentsEnvironments
190
- > = z.object({});
643
+ > = z.object({
644
+ id: z.string(),
645
+ slug: z.string(),
646
+ type: GetV9ProjectsIdOrNameCustomEnvironmentsType$outboundSchema,
647
+ description: z.string().optional(),
648
+ branchMatcher: z.lazy(() =>
649
+ GetV9ProjectsIdOrNameCustomEnvironmentsBranchMatcher$outboundSchema
650
+ ).optional(),
651
+ domains: z.array(
652
+ z.lazy(() =>
653
+ GetV9ProjectsIdOrNameCustomEnvironmentsDomains$outboundSchema
654
+ ),
655
+ ).optional(),
656
+ currentDeploymentAliases: z.array(z.string()).optional(),
657
+ createdAt: z.number(),
658
+ updatedAt: z.number(),
659
+ });
191
660
 
192
661
  /**
193
662
  * @internal
@@ -127,11 +127,13 @@ export type ListAliasesProtectionBypass3 = {
127
127
  scope: ListAliasesProtectionBypassAliasesResponseScope;
128
128
  };
129
129
 
130
- export const ProtectionBypassAccess = {
130
+ export const ListAliasesProtectionBypassAccess = {
131
131
  Requested: "requested",
132
132
  Granted: "granted",
133
133
  } as const;
134
- export type ProtectionBypassAccess = ClosedEnum<typeof ProtectionBypassAccess>;
134
+ export type ListAliasesProtectionBypassAccess = ClosedEnum<
135
+ typeof ListAliasesProtectionBypassAccess
136
+ >;
135
137
 
136
138
  export const ListAliasesProtectionBypassAliasesScope = {
137
139
  User: "user",
@@ -147,7 +149,7 @@ export type ListAliasesProtectionBypass2 = {
147
149
  createdAt: number;
148
150
  lastUpdatedAt: number;
149
151
  lastUpdatedBy: string;
150
- access: ProtectionBypassAccess;
152
+ access: ListAliasesProtectionBypassAccess;
151
153
  scope: ListAliasesProtectionBypassAliasesScope;
152
154
  };
153
155
 
@@ -658,24 +660,25 @@ export function listAliasesProtectionBypass3FromJSON(
658
660
  }
659
661
 
660
662
  /** @internal */
661
- export const ProtectionBypassAccess$inboundSchema: z.ZodNativeEnum<
662
- typeof ProtectionBypassAccess
663
- > = z.nativeEnum(ProtectionBypassAccess);
663
+ export const ListAliasesProtectionBypassAccess$inboundSchema: z.ZodNativeEnum<
664
+ typeof ListAliasesProtectionBypassAccess
665
+ > = z.nativeEnum(ListAliasesProtectionBypassAccess);
664
666
 
665
667
  /** @internal */
666
- export const ProtectionBypassAccess$outboundSchema: z.ZodNativeEnum<
667
- typeof ProtectionBypassAccess
668
- > = ProtectionBypassAccess$inboundSchema;
668
+ export const ListAliasesProtectionBypassAccess$outboundSchema: z.ZodNativeEnum<
669
+ typeof ListAliasesProtectionBypassAccess
670
+ > = ListAliasesProtectionBypassAccess$inboundSchema;
669
671
 
670
672
  /**
671
673
  * @internal
672
674
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
673
675
  */
674
- export namespace ProtectionBypassAccess$ {
675
- /** @deprecated use `ProtectionBypassAccess$inboundSchema` instead. */
676
- export const inboundSchema = ProtectionBypassAccess$inboundSchema;
677
- /** @deprecated use `ProtectionBypassAccess$outboundSchema` instead. */
678
- export const outboundSchema = ProtectionBypassAccess$outboundSchema;
676
+ export namespace ListAliasesProtectionBypassAccess$ {
677
+ /** @deprecated use `ListAliasesProtectionBypassAccess$inboundSchema` instead. */
678
+ export const inboundSchema = ListAliasesProtectionBypassAccess$inboundSchema;
679
+ /** @deprecated use `ListAliasesProtectionBypassAccess$outboundSchema` instead. */
680
+ export const outboundSchema =
681
+ ListAliasesProtectionBypassAccess$outboundSchema;
679
682
  }
680
683
 
681
684
  /** @internal */
@@ -710,7 +713,7 @@ export const ListAliasesProtectionBypass2$inboundSchema: z.ZodType<
710
713
  createdAt: z.number(),
711
714
  lastUpdatedAt: z.number(),
712
715
  lastUpdatedBy: z.string(),
713
- access: ProtectionBypassAccess$inboundSchema,
716
+ access: ListAliasesProtectionBypassAccess$inboundSchema,
714
717
  scope: ListAliasesProtectionBypassAliasesScope$inboundSchema,
715
718
  });
716
719
 
@@ -732,7 +735,7 @@ export const ListAliasesProtectionBypass2$outboundSchema: z.ZodType<
732
735
  createdAt: z.number(),
733
736
  lastUpdatedAt: z.number(),
734
737
  lastUpdatedBy: z.string(),
735
- access: ProtectionBypassAccess$outboundSchema,
738
+ access: ListAliasesProtectionBypassAccess$outboundSchema,
736
739
  scope: ListAliasesProtectionBypassAliasesScope$outboundSchema,
737
740
  });
738
741