@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
@@ -73,7 +73,124 @@ export type UpdateCustomEnvironmentRequest = {
73
73
  requestBody?: UpdateCustomEnvironmentRequestBody | undefined;
74
74
  };
75
75
 
76
- export type UpdateCustomEnvironmentResponseBody = {};
76
+ /**
77
+ * The type of environment (production, preview, or development)
78
+ */
79
+ export const UpdateCustomEnvironmentEnvironmentType = {
80
+ Production: "production",
81
+ Preview: "preview",
82
+ Development: "development",
83
+ } as const;
84
+ /**
85
+ * The type of environment (production, preview, or development)
86
+ */
87
+ export type UpdateCustomEnvironmentEnvironmentType = ClosedEnum<
88
+ typeof UpdateCustomEnvironmentEnvironmentType
89
+ >;
90
+
91
+ /**
92
+ * The type of matching to perform
93
+ */
94
+ export const UpdateCustomEnvironmentEnvironmentResponseType = {
95
+ EndsWith: "endsWith",
96
+ StartsWith: "startsWith",
97
+ Equals: "equals",
98
+ } as const;
99
+ /**
100
+ * The type of matching to perform
101
+ */
102
+ export type UpdateCustomEnvironmentEnvironmentResponseType = ClosedEnum<
103
+ typeof UpdateCustomEnvironmentEnvironmentResponseType
104
+ >;
105
+
106
+ /**
107
+ * Configuration for matching git branches to this environment
108
+ */
109
+ export type UpdateCustomEnvironmentEnvironmentBranchMatcher = {
110
+ /**
111
+ * The type of matching to perform
112
+ */
113
+ type: UpdateCustomEnvironmentEnvironmentResponseType;
114
+ /**
115
+ * The pattern to match against branch names
116
+ */
117
+ pattern: string;
118
+ };
119
+
120
+ /**
121
+ * 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`.
122
+ */
123
+ export type UpdateCustomEnvironmentVerification = {
124
+ type: string;
125
+ domain: string;
126
+ value: string;
127
+ reason: string;
128
+ };
129
+
130
+ /**
131
+ * List of domains associated with this environment
132
+ */
133
+ export type UpdateCustomEnvironmentDomains = {
134
+ name: string;
135
+ apexName: string;
136
+ projectId: string;
137
+ redirect?: string | null | undefined;
138
+ redirectStatusCode?: number | null | undefined;
139
+ gitBranch?: string | null | undefined;
140
+ customEnvironmentId?: string | null | undefined;
141
+ updatedAt?: number | undefined;
142
+ createdAt?: number | undefined;
143
+ /**
144
+ * `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.
145
+ */
146
+ verified: boolean;
147
+ /**
148
+ * 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`.
149
+ */
150
+ verification?: Array<UpdateCustomEnvironmentVerification> | undefined;
151
+ };
152
+
153
+ /**
154
+ * Internal representation of a custom environment with all required properties
155
+ */
156
+ export type UpdateCustomEnvironmentResponseBody = {
157
+ /**
158
+ * Unique identifier for the custom environment (format: env_*)
159
+ */
160
+ id: string;
161
+ /**
162
+ * URL-friendly name of the environment
163
+ */
164
+ slug: string;
165
+ /**
166
+ * The type of environment (production, preview, or development)
167
+ */
168
+ type: UpdateCustomEnvironmentEnvironmentType;
169
+ /**
170
+ * Optional description of the environment's purpose
171
+ */
172
+ description?: string | undefined;
173
+ /**
174
+ * Configuration for matching git branches to this environment
175
+ */
176
+ branchMatcher?: UpdateCustomEnvironmentEnvironmentBranchMatcher | undefined;
177
+ /**
178
+ * List of domains associated with this environment
179
+ */
180
+ domains?: Array<UpdateCustomEnvironmentDomains> | undefined;
181
+ /**
182
+ * List of aliases for the current deployment
183
+ */
184
+ currentDeploymentAliases?: Array<string> | undefined;
185
+ /**
186
+ * Timestamp when the environment was created
187
+ */
188
+ createdAt: number;
189
+ /**
190
+ * Timestamp when the environment was last updated
191
+ */
192
+ updatedAt: number;
193
+ };
77
194
 
78
195
  /** @internal */
79
196
  export const UpdateCustomEnvironmentType$inboundSchema: z.ZodNativeEnum<
@@ -307,22 +424,338 @@ export function updateCustomEnvironmentRequestFromJSON(
307
424
  );
308
425
  }
309
426
 
427
+ /** @internal */
428
+ export const UpdateCustomEnvironmentEnvironmentType$inboundSchema:
429
+ z.ZodNativeEnum<typeof UpdateCustomEnvironmentEnvironmentType> = z.nativeEnum(
430
+ UpdateCustomEnvironmentEnvironmentType,
431
+ );
432
+
433
+ /** @internal */
434
+ export const UpdateCustomEnvironmentEnvironmentType$outboundSchema:
435
+ z.ZodNativeEnum<typeof UpdateCustomEnvironmentEnvironmentType> =
436
+ UpdateCustomEnvironmentEnvironmentType$inboundSchema;
437
+
438
+ /**
439
+ * @internal
440
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
441
+ */
442
+ export namespace UpdateCustomEnvironmentEnvironmentType$ {
443
+ /** @deprecated use `UpdateCustomEnvironmentEnvironmentType$inboundSchema` instead. */
444
+ export const inboundSchema =
445
+ UpdateCustomEnvironmentEnvironmentType$inboundSchema;
446
+ /** @deprecated use `UpdateCustomEnvironmentEnvironmentType$outboundSchema` instead. */
447
+ export const outboundSchema =
448
+ UpdateCustomEnvironmentEnvironmentType$outboundSchema;
449
+ }
450
+
451
+ /** @internal */
452
+ export const UpdateCustomEnvironmentEnvironmentResponseType$inboundSchema:
453
+ z.ZodNativeEnum<typeof UpdateCustomEnvironmentEnvironmentResponseType> = z
454
+ .nativeEnum(UpdateCustomEnvironmentEnvironmentResponseType);
455
+
456
+ /** @internal */
457
+ export const UpdateCustomEnvironmentEnvironmentResponseType$outboundSchema:
458
+ z.ZodNativeEnum<typeof UpdateCustomEnvironmentEnvironmentResponseType> =
459
+ UpdateCustomEnvironmentEnvironmentResponseType$inboundSchema;
460
+
461
+ /**
462
+ * @internal
463
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
464
+ */
465
+ export namespace UpdateCustomEnvironmentEnvironmentResponseType$ {
466
+ /** @deprecated use `UpdateCustomEnvironmentEnvironmentResponseType$inboundSchema` instead. */
467
+ export const inboundSchema =
468
+ UpdateCustomEnvironmentEnvironmentResponseType$inboundSchema;
469
+ /** @deprecated use `UpdateCustomEnvironmentEnvironmentResponseType$outboundSchema` instead. */
470
+ export const outboundSchema =
471
+ UpdateCustomEnvironmentEnvironmentResponseType$outboundSchema;
472
+ }
473
+
474
+ /** @internal */
475
+ export const UpdateCustomEnvironmentEnvironmentBranchMatcher$inboundSchema:
476
+ z.ZodType<
477
+ UpdateCustomEnvironmentEnvironmentBranchMatcher,
478
+ z.ZodTypeDef,
479
+ unknown
480
+ > = z.object({
481
+ type: UpdateCustomEnvironmentEnvironmentResponseType$inboundSchema,
482
+ pattern: z.string(),
483
+ });
484
+
485
+ /** @internal */
486
+ export type UpdateCustomEnvironmentEnvironmentBranchMatcher$Outbound = {
487
+ type: string;
488
+ pattern: string;
489
+ };
490
+
491
+ /** @internal */
492
+ export const UpdateCustomEnvironmentEnvironmentBranchMatcher$outboundSchema:
493
+ z.ZodType<
494
+ UpdateCustomEnvironmentEnvironmentBranchMatcher$Outbound,
495
+ z.ZodTypeDef,
496
+ UpdateCustomEnvironmentEnvironmentBranchMatcher
497
+ > = z.object({
498
+ type: UpdateCustomEnvironmentEnvironmentResponseType$outboundSchema,
499
+ pattern: z.string(),
500
+ });
501
+
502
+ /**
503
+ * @internal
504
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
505
+ */
506
+ export namespace UpdateCustomEnvironmentEnvironmentBranchMatcher$ {
507
+ /** @deprecated use `UpdateCustomEnvironmentEnvironmentBranchMatcher$inboundSchema` instead. */
508
+ export const inboundSchema =
509
+ UpdateCustomEnvironmentEnvironmentBranchMatcher$inboundSchema;
510
+ /** @deprecated use `UpdateCustomEnvironmentEnvironmentBranchMatcher$outboundSchema` instead. */
511
+ export const outboundSchema =
512
+ UpdateCustomEnvironmentEnvironmentBranchMatcher$outboundSchema;
513
+ /** @deprecated use `UpdateCustomEnvironmentEnvironmentBranchMatcher$Outbound` instead. */
514
+ export type Outbound =
515
+ UpdateCustomEnvironmentEnvironmentBranchMatcher$Outbound;
516
+ }
517
+
518
+ export function updateCustomEnvironmentEnvironmentBranchMatcherToJSON(
519
+ updateCustomEnvironmentEnvironmentBranchMatcher:
520
+ UpdateCustomEnvironmentEnvironmentBranchMatcher,
521
+ ): string {
522
+ return JSON.stringify(
523
+ UpdateCustomEnvironmentEnvironmentBranchMatcher$outboundSchema.parse(
524
+ updateCustomEnvironmentEnvironmentBranchMatcher,
525
+ ),
526
+ );
527
+ }
528
+
529
+ export function updateCustomEnvironmentEnvironmentBranchMatcherFromJSON(
530
+ jsonString: string,
531
+ ): SafeParseResult<
532
+ UpdateCustomEnvironmentEnvironmentBranchMatcher,
533
+ SDKValidationError
534
+ > {
535
+ return safeParse(
536
+ jsonString,
537
+ (x) =>
538
+ UpdateCustomEnvironmentEnvironmentBranchMatcher$inboundSchema.parse(
539
+ JSON.parse(x),
540
+ ),
541
+ `Failed to parse 'UpdateCustomEnvironmentEnvironmentBranchMatcher' from JSON`,
542
+ );
543
+ }
544
+
545
+ /** @internal */
546
+ export const UpdateCustomEnvironmentVerification$inboundSchema: z.ZodType<
547
+ UpdateCustomEnvironmentVerification,
548
+ z.ZodTypeDef,
549
+ unknown
550
+ > = z.object({
551
+ type: z.string(),
552
+ domain: z.string(),
553
+ value: z.string(),
554
+ reason: z.string(),
555
+ });
556
+
557
+ /** @internal */
558
+ export type UpdateCustomEnvironmentVerification$Outbound = {
559
+ type: string;
560
+ domain: string;
561
+ value: string;
562
+ reason: string;
563
+ };
564
+
565
+ /** @internal */
566
+ export const UpdateCustomEnvironmentVerification$outboundSchema: z.ZodType<
567
+ UpdateCustomEnvironmentVerification$Outbound,
568
+ z.ZodTypeDef,
569
+ UpdateCustomEnvironmentVerification
570
+ > = z.object({
571
+ type: z.string(),
572
+ domain: z.string(),
573
+ value: z.string(),
574
+ reason: z.string(),
575
+ });
576
+
577
+ /**
578
+ * @internal
579
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
580
+ */
581
+ export namespace UpdateCustomEnvironmentVerification$ {
582
+ /** @deprecated use `UpdateCustomEnvironmentVerification$inboundSchema` instead. */
583
+ export const inboundSchema =
584
+ UpdateCustomEnvironmentVerification$inboundSchema;
585
+ /** @deprecated use `UpdateCustomEnvironmentVerification$outboundSchema` instead. */
586
+ export const outboundSchema =
587
+ UpdateCustomEnvironmentVerification$outboundSchema;
588
+ /** @deprecated use `UpdateCustomEnvironmentVerification$Outbound` instead. */
589
+ export type Outbound = UpdateCustomEnvironmentVerification$Outbound;
590
+ }
591
+
592
+ export function updateCustomEnvironmentVerificationToJSON(
593
+ updateCustomEnvironmentVerification: UpdateCustomEnvironmentVerification,
594
+ ): string {
595
+ return JSON.stringify(
596
+ UpdateCustomEnvironmentVerification$outboundSchema.parse(
597
+ updateCustomEnvironmentVerification,
598
+ ),
599
+ );
600
+ }
601
+
602
+ export function updateCustomEnvironmentVerificationFromJSON(
603
+ jsonString: string,
604
+ ): SafeParseResult<UpdateCustomEnvironmentVerification, SDKValidationError> {
605
+ return safeParse(
606
+ jsonString,
607
+ (x) =>
608
+ UpdateCustomEnvironmentVerification$inboundSchema.parse(JSON.parse(x)),
609
+ `Failed to parse 'UpdateCustomEnvironmentVerification' from JSON`,
610
+ );
611
+ }
612
+
613
+ /** @internal */
614
+ export const UpdateCustomEnvironmentDomains$inboundSchema: z.ZodType<
615
+ UpdateCustomEnvironmentDomains,
616
+ z.ZodTypeDef,
617
+ unknown
618
+ > = z.object({
619
+ name: z.string(),
620
+ apexName: z.string(),
621
+ projectId: z.string(),
622
+ redirect: z.nullable(z.string()).optional(),
623
+ redirectStatusCode: z.nullable(z.number()).optional(),
624
+ gitBranch: z.nullable(z.string()).optional(),
625
+ customEnvironmentId: z.nullable(z.string()).optional(),
626
+ updatedAt: z.number().optional(),
627
+ createdAt: z.number().optional(),
628
+ verified: z.boolean(),
629
+ verification: z.array(
630
+ z.lazy(() => UpdateCustomEnvironmentVerification$inboundSchema),
631
+ ).optional(),
632
+ });
633
+
634
+ /** @internal */
635
+ export type UpdateCustomEnvironmentDomains$Outbound = {
636
+ name: string;
637
+ apexName: string;
638
+ projectId: string;
639
+ redirect?: string | null | undefined;
640
+ redirectStatusCode?: number | null | undefined;
641
+ gitBranch?: string | null | undefined;
642
+ customEnvironmentId?: string | null | undefined;
643
+ updatedAt?: number | undefined;
644
+ createdAt?: number | undefined;
645
+ verified: boolean;
646
+ verification?:
647
+ | Array<UpdateCustomEnvironmentVerification$Outbound>
648
+ | undefined;
649
+ };
650
+
651
+ /** @internal */
652
+ export const UpdateCustomEnvironmentDomains$outboundSchema: z.ZodType<
653
+ UpdateCustomEnvironmentDomains$Outbound,
654
+ z.ZodTypeDef,
655
+ UpdateCustomEnvironmentDomains
656
+ > = z.object({
657
+ name: z.string(),
658
+ apexName: z.string(),
659
+ projectId: z.string(),
660
+ redirect: z.nullable(z.string()).optional(),
661
+ redirectStatusCode: z.nullable(z.number()).optional(),
662
+ gitBranch: z.nullable(z.string()).optional(),
663
+ customEnvironmentId: z.nullable(z.string()).optional(),
664
+ updatedAt: z.number().optional(),
665
+ createdAt: z.number().optional(),
666
+ verified: z.boolean(),
667
+ verification: z.array(
668
+ z.lazy(() => UpdateCustomEnvironmentVerification$outboundSchema),
669
+ ).optional(),
670
+ });
671
+
672
+ /**
673
+ * @internal
674
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
675
+ */
676
+ export namespace UpdateCustomEnvironmentDomains$ {
677
+ /** @deprecated use `UpdateCustomEnvironmentDomains$inboundSchema` instead. */
678
+ export const inboundSchema = UpdateCustomEnvironmentDomains$inboundSchema;
679
+ /** @deprecated use `UpdateCustomEnvironmentDomains$outboundSchema` instead. */
680
+ export const outboundSchema = UpdateCustomEnvironmentDomains$outboundSchema;
681
+ /** @deprecated use `UpdateCustomEnvironmentDomains$Outbound` instead. */
682
+ export type Outbound = UpdateCustomEnvironmentDomains$Outbound;
683
+ }
684
+
685
+ export function updateCustomEnvironmentDomainsToJSON(
686
+ updateCustomEnvironmentDomains: UpdateCustomEnvironmentDomains,
687
+ ): string {
688
+ return JSON.stringify(
689
+ UpdateCustomEnvironmentDomains$outboundSchema.parse(
690
+ updateCustomEnvironmentDomains,
691
+ ),
692
+ );
693
+ }
694
+
695
+ export function updateCustomEnvironmentDomainsFromJSON(
696
+ jsonString: string,
697
+ ): SafeParseResult<UpdateCustomEnvironmentDomains, SDKValidationError> {
698
+ return safeParse(
699
+ jsonString,
700
+ (x) => UpdateCustomEnvironmentDomains$inboundSchema.parse(JSON.parse(x)),
701
+ `Failed to parse 'UpdateCustomEnvironmentDomains' from JSON`,
702
+ );
703
+ }
704
+
310
705
  /** @internal */
311
706
  export const UpdateCustomEnvironmentResponseBody$inboundSchema: z.ZodType<
312
707
  UpdateCustomEnvironmentResponseBody,
313
708
  z.ZodTypeDef,
314
709
  unknown
315
- > = z.object({});
710
+ > = z.object({
711
+ id: z.string(),
712
+ slug: z.string(),
713
+ type: UpdateCustomEnvironmentEnvironmentType$inboundSchema,
714
+ description: z.string().optional(),
715
+ branchMatcher: z.lazy(() =>
716
+ UpdateCustomEnvironmentEnvironmentBranchMatcher$inboundSchema
717
+ ).optional(),
718
+ domains: z.array(z.lazy(() => UpdateCustomEnvironmentDomains$inboundSchema))
719
+ .optional(),
720
+ currentDeploymentAliases: z.array(z.string()).optional(),
721
+ createdAt: z.number(),
722
+ updatedAt: z.number(),
723
+ });
316
724
 
317
725
  /** @internal */
318
- export type UpdateCustomEnvironmentResponseBody$Outbound = {};
726
+ export type UpdateCustomEnvironmentResponseBody$Outbound = {
727
+ id: string;
728
+ slug: string;
729
+ type: string;
730
+ description?: string | undefined;
731
+ branchMatcher?:
732
+ | UpdateCustomEnvironmentEnvironmentBranchMatcher$Outbound
733
+ | undefined;
734
+ domains?: Array<UpdateCustomEnvironmentDomains$Outbound> | undefined;
735
+ currentDeploymentAliases?: Array<string> | undefined;
736
+ createdAt: number;
737
+ updatedAt: number;
738
+ };
319
739
 
320
740
  /** @internal */
321
741
  export const UpdateCustomEnvironmentResponseBody$outboundSchema: z.ZodType<
322
742
  UpdateCustomEnvironmentResponseBody$Outbound,
323
743
  z.ZodTypeDef,
324
744
  UpdateCustomEnvironmentResponseBody
325
- > = z.object({});
745
+ > = z.object({
746
+ id: z.string(),
747
+ slug: z.string(),
748
+ type: UpdateCustomEnvironmentEnvironmentType$outboundSchema,
749
+ description: z.string().optional(),
750
+ branchMatcher: z.lazy(() =>
751
+ UpdateCustomEnvironmentEnvironmentBranchMatcher$outboundSchema
752
+ ).optional(),
753
+ domains: z.array(z.lazy(() => UpdateCustomEnvironmentDomains$outboundSchema))
754
+ .optional(),
755
+ currentDeploymentAliases: z.array(z.string()).optional(),
756
+ createdAt: z.number(),
757
+ updatedAt: z.number(),
758
+ });
326
759
 
327
760
  /**
328
761
  * @internal