@vercel/sdk 1.6.5 → 1.6.6

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 (120) hide show
  1. package/README.md +2 -0
  2. package/bin/mcp-server.js +503 -273
  3. package/bin/mcp-server.js.map +16 -13
  4. package/docs/sdks/projects/README.md +85 -0
  5. package/esm/__tests__/accessgroups.test.js +94 -60
  6. package/esm/__tests__/accessgroups.test.js.map +1 -1
  7. package/esm/__tests__/aliases.test.js +41 -41
  8. package/esm/__tests__/aliases.test.js.map +1 -1
  9. package/esm/__tests__/certs.test.js +2 -2
  10. package/esm/__tests__/checks.test.js +5 -3
  11. package/esm/__tests__/checks.test.js.map +1 -1
  12. package/esm/__tests__/deployments.test.js +51 -35
  13. package/esm/__tests__/deployments.test.js.map +1 -1
  14. package/esm/__tests__/dns.test.js +0 -27
  15. package/esm/__tests__/dns.test.js.map +1 -1
  16. package/esm/__tests__/domains.test.js +2 -2
  17. package/esm/__tests__/domains.test.js.map +1 -1
  18. package/esm/__tests__/edgeconfig.test.js +9 -5
  19. package/esm/__tests__/edgeconfig.test.js.map +1 -1
  20. package/esm/__tests__/environment.test.js +15 -27
  21. package/esm/__tests__/environment.test.js.map +1 -1
  22. package/esm/__tests__/integrations.test.js +1 -7
  23. package/esm/__tests__/integrations.test.js.map +1 -1
  24. package/esm/__tests__/logdrains.test.js +72 -24
  25. package/esm/__tests__/logdrains.test.js.map +1 -1
  26. package/esm/__tests__/marketplace.test.js +60 -72
  27. package/esm/__tests__/marketplace.test.js.map +1 -1
  28. package/esm/__tests__/projects.test.js +198 -118
  29. package/esm/__tests__/projects.test.js.map +1 -1
  30. package/esm/__tests__/security.test.js +97 -120
  31. package/esm/__tests__/security.test.js.map +1 -1
  32. package/esm/__tests__/teams.test.js +11 -6
  33. package/esm/__tests__/teams.test.js.map +1 -1
  34. package/esm/funcs/projectsMoveProjectDomain.d.ts +18 -0
  35. package/esm/funcs/projectsMoveProjectDomain.d.ts.map +1 -0
  36. package/esm/funcs/projectsMoveProjectDomain.js +96 -0
  37. package/esm/funcs/projectsMoveProjectDomain.js.map +1 -0
  38. package/esm/lib/config.d.ts +2 -2
  39. package/esm/lib/config.js +2 -2
  40. package/esm/mcp-server/mcp-server.js +1 -1
  41. package/esm/mcp-server/server.d.ts.map +1 -1
  42. package/esm/mcp-server/server.js +3 -1
  43. package/esm/mcp-server/server.js.map +1 -1
  44. package/esm/mcp-server/tools/projectsMoveProjectDomain.d.ts +7 -0
  45. package/esm/mcp-server/tools/projectsMoveProjectDomain.d.ts.map +1 -0
  46. package/esm/mcp-server/tools/projectsMoveProjectDomain.js +28 -0
  47. package/esm/mcp-server/tools/projectsMoveProjectDomain.js.map +1 -0
  48. package/esm/models/authuser.d.ts +5 -0
  49. package/esm/models/authuser.d.ts.map +1 -1
  50. package/esm/models/authuser.js +2 -0
  51. package/esm/models/authuser.js.map +1 -1
  52. package/esm/models/createprojectop.d.ts +2 -0
  53. package/esm/models/createprojectop.d.ts.map +1 -1
  54. package/esm/models/createprojectop.js +2 -0
  55. package/esm/models/createprojectop.js.map +1 -1
  56. package/esm/models/getdomainconfigop.d.ts +0 -7
  57. package/esm/models/getdomainconfigop.d.ts.map +1 -1
  58. package/esm/models/getdomainconfigop.js +0 -4
  59. package/esm/models/getdomainconfigop.js.map +1 -1
  60. package/esm/models/getprojectsop.d.ts +2 -0
  61. package/esm/models/getprojectsop.d.ts.map +1 -1
  62. package/esm/models/getprojectsop.js +2 -0
  63. package/esm/models/getprojectsop.js.map +1 -1
  64. package/esm/models/moveprojectdomainop.d.ts +165 -0
  65. package/esm/models/moveprojectdomainop.d.ts.map +1 -0
  66. package/esm/models/moveprojectdomainop.js +151 -0
  67. package/esm/models/moveprojectdomainop.js.map +1 -0
  68. package/esm/models/updateprojectdatacacheop.d.ts +2 -0
  69. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  70. package/esm/models/updateprojectdatacacheop.js +2 -0
  71. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  72. package/esm/models/updateprojectop.d.ts +2 -0
  73. package/esm/models/updateprojectop.d.ts.map +1 -1
  74. package/esm/models/updateprojectop.js +2 -0
  75. package/esm/models/updateprojectop.js.map +1 -1
  76. package/esm/models/userevent.d.ts +43 -0
  77. package/esm/models/userevent.d.ts.map +1 -1
  78. package/esm/models/userevent.js +31 -0
  79. package/esm/models/userevent.js.map +1 -1
  80. package/esm/sdk/projects.d.ts +8 -0
  81. package/esm/sdk/projects.d.ts.map +1 -1
  82. package/esm/sdk/projects.js +10 -0
  83. package/esm/sdk/projects.js.map +1 -1
  84. package/jsr.json +1 -1
  85. package/package.json +1 -1
  86. package/src/__tests__/accessgroups.test.ts +94 -63
  87. package/src/__tests__/aliases.test.ts +47 -47
  88. package/src/__tests__/certs.test.ts +2 -2
  89. package/src/__tests__/checks.test.ts +5 -3
  90. package/src/__tests__/deployments.test.ts +56 -40
  91. package/src/__tests__/dns.test.ts +0 -30
  92. package/src/__tests__/domains.test.ts +2 -2
  93. package/src/__tests__/edgeconfig.test.ts +9 -5
  94. package/src/__tests__/environment.test.ts +18 -42
  95. package/src/__tests__/integrations.test.ts +1 -13
  96. package/src/__tests__/logdrains.test.ts +75 -36
  97. package/src/__tests__/marketplace.test.ts +63 -83
  98. package/src/__tests__/projects.test.ts +201 -121
  99. package/src/__tests__/security.test.ts +97 -123
  100. package/src/__tests__/teams.test.ts +11 -9
  101. package/src/funcs/projectsMoveProjectDomain.ts +198 -0
  102. package/src/lib/config.ts +2 -2
  103. package/src/mcp-server/mcp-server.ts +1 -1
  104. package/src/mcp-server/server.ts +3 -1
  105. package/src/mcp-server/tools/projectsMoveProjectDomain.ts +37 -0
  106. package/src/models/authuser.ts +7 -0
  107. package/src/models/createprojectop.ts +4 -0
  108. package/src/models/getdomainconfigop.ts +0 -11
  109. package/src/models/getprojectsop.ts +4 -0
  110. package/src/models/moveprojectdomainop.ts +356 -0
  111. package/src/models/updateprojectdatacacheop.ts +4 -0
  112. package/src/models/updateprojectop.ts +4 -0
  113. package/src/models/userevent.ts +80 -0
  114. package/src/sdk/projects.ts +22 -0
  115. package/vercel-spec.json +249 -12
  116. package/esm/__tests__/apiexperimentation.test.d.ts +0 -2
  117. package/esm/__tests__/apiexperimentation.test.d.ts.map +0 -1
  118. package/esm/__tests__/apiexperimentation.test.js +0 -8
  119. package/esm/__tests__/apiexperimentation.test.js.map +0 -1
  120. package/src/__tests__/apiexperimentation.test.ts +0 -11
@@ -116,6 +116,10 @@ export type BuildMachine = {
116
116
  * An object containing infomation related to the amount of platform resources may be allocated to the User account.
117
117
  */
118
118
  abovePlan?: boolean | undefined;
119
+ /**
120
+ * An object containing infomation related to the amount of platform resources may be allocated to the User account.
121
+ */
122
+ isDefaultBuildMachine?: boolean | undefined;
119
123
  /**
120
124
  * An object containing infomation related to the amount of platform resources may be allocated to the User account.
121
125
  */
@@ -678,6 +682,7 @@ export const BuildMachine$inboundSchema: z.ZodType<
678
682
  > = z.object({
679
683
  purchaseType: PurchaseType$inboundSchema.optional(),
680
684
  abovePlan: z.boolean().optional(),
685
+ isDefaultBuildMachine: z.boolean().optional(),
681
686
  cores: z.number().optional(),
682
687
  memory: z.number().optional(),
683
688
  });
@@ -686,6 +691,7 @@ export const BuildMachine$inboundSchema: z.ZodType<
686
691
  export type BuildMachine$Outbound = {
687
692
  purchaseType?: string | undefined;
688
693
  abovePlan?: boolean | undefined;
694
+ isDefaultBuildMachine?: boolean | undefined;
689
695
  cores?: number | undefined;
690
696
  memory?: number | undefined;
691
697
  };
@@ -698,6 +704,7 @@ export const BuildMachine$outboundSchema: z.ZodType<
698
704
  > = z.object({
699
705
  purchaseType: PurchaseType$outboundSchema.optional(),
700
706
  abovePlan: z.boolean().optional(),
707
+ isDefaultBuildMachine: z.boolean().optional(),
701
708
  cores: z.number().optional(),
702
709
  memory: z.number().optional(),
703
710
  });
@@ -1408,6 +1408,7 @@ export type CreateProjectPermissions = {
1408
1408
  observabilityConfiguration?: Array<ACLAction> | undefined;
1409
1409
  observabilityNotebook?: Array<ACLAction> | undefined;
1410
1410
  openTelemetryEndpoint?: Array<ACLAction> | undefined;
1411
+ vercelAppInstallation?: Array<ACLAction> | undefined;
1411
1412
  paymentMethod?: Array<ACLAction> | undefined;
1412
1413
  permissions?: Array<ACLAction> | undefined;
1413
1414
  postgres?: Array<ACLAction> | undefined;
@@ -7906,6 +7907,7 @@ export const CreateProjectPermissions$inboundSchema: z.ZodType<
7906
7907
  observabilityConfiguration: z.array(ACLAction$inboundSchema).optional(),
7907
7908
  observabilityNotebook: z.array(ACLAction$inboundSchema).optional(),
7908
7909
  openTelemetryEndpoint: z.array(ACLAction$inboundSchema).optional(),
7910
+ vercelAppInstallation: z.array(ACLAction$inboundSchema).optional(),
7909
7911
  paymentMethod: z.array(ACLAction$inboundSchema).optional(),
7910
7912
  permissions: z.array(ACLAction$inboundSchema).optional(),
7911
7913
  postgres: z.array(ACLAction$inboundSchema).optional(),
@@ -8112,6 +8114,7 @@ export type CreateProjectPermissions$Outbound = {
8112
8114
  observabilityConfiguration?: Array<string> | undefined;
8113
8115
  observabilityNotebook?: Array<string> | undefined;
8114
8116
  openTelemetryEndpoint?: Array<string> | undefined;
8117
+ vercelAppInstallation?: Array<string> | undefined;
8115
8118
  paymentMethod?: Array<string> | undefined;
8116
8119
  permissions?: Array<string> | undefined;
8117
8120
  postgres?: Array<string> | undefined;
@@ -8319,6 +8322,7 @@ export const CreateProjectPermissions$outboundSchema: z.ZodType<
8319
8322
  observabilityConfiguration: z.array(ACLAction$outboundSchema).optional(),
8320
8323
  observabilityNotebook: z.array(ACLAction$outboundSchema).optional(),
8321
8324
  openTelemetryEndpoint: z.array(ACLAction$outboundSchema).optional(),
8325
+ vercelAppInstallation: z.array(ACLAction$outboundSchema).optional(),
8322
8326
  paymentMethod: z.array(ACLAction$outboundSchema).optional(),
8323
8327
  permissions: z.array(ACLAction$outboundSchema).optional(),
8324
8328
  postgres: z.array(ACLAction$outboundSchema).optional(),
@@ -78,11 +78,6 @@ export type GetDomainConfigResponseBody = {
78
78
  * Whether or not the domain is configured AND we can automatically generate a TLS certificate.
79
79
  */
80
80
  misconfigured: boolean;
81
- /**
82
- * Recommended IPs and CNAME for the domain.
83
- */
84
- recommendedIps?: Array<string> | undefined;
85
- recommendedCname?: string | undefined;
86
81
  };
87
82
 
88
83
  /** @internal */
@@ -216,8 +211,6 @@ export const GetDomainConfigResponseBody$inboundSchema: z.ZodType<
216
211
  configuredBy: z.nullable(ConfiguredBy$inboundSchema).optional(),
217
212
  acceptedChallenges: z.array(AcceptedChallenges$inboundSchema).optional(),
218
213
  misconfigured: z.boolean(),
219
- recommendedIps: z.array(z.string()).optional(),
220
- recommendedCname: z.string().optional(),
221
214
  });
222
215
 
223
216
  /** @internal */
@@ -225,8 +218,6 @@ export type GetDomainConfigResponseBody$Outbound = {
225
218
  configuredBy?: string | null | undefined;
226
219
  acceptedChallenges?: Array<string> | undefined;
227
220
  misconfigured: boolean;
228
- recommendedIps?: Array<string> | undefined;
229
- recommendedCname?: string | undefined;
230
221
  };
231
222
 
232
223
  /** @internal */
@@ -238,8 +229,6 @@ export const GetDomainConfigResponseBody$outboundSchema: z.ZodType<
238
229
  configuredBy: z.nullable(ConfiguredBy$outboundSchema).optional(),
239
230
  acceptedChallenges: z.array(AcceptedChallenges$outboundSchema).optional(),
240
231
  misconfigured: z.boolean(),
241
- recommendedIps: z.array(z.string()).optional(),
242
- recommendedCname: z.string().optional(),
243
232
  });
244
233
 
245
234
  /**
@@ -1214,6 +1214,7 @@ export type GetProjectsPermissions = {
1214
1214
  observabilityConfiguration?: Array<ACLAction> | undefined;
1215
1215
  observabilityNotebook?: Array<ACLAction> | undefined;
1216
1216
  openTelemetryEndpoint?: Array<ACLAction> | undefined;
1217
+ vercelAppInstallation?: Array<ACLAction> | undefined;
1217
1218
  paymentMethod?: Array<ACLAction> | undefined;
1218
1219
  permissions?: Array<ACLAction> | undefined;
1219
1220
  postgres?: Array<ACLAction> | undefined;
@@ -7251,6 +7252,7 @@ export const GetProjectsPermissions$inboundSchema: z.ZodType<
7251
7252
  observabilityConfiguration: z.array(ACLAction$inboundSchema).optional(),
7252
7253
  observabilityNotebook: z.array(ACLAction$inboundSchema).optional(),
7253
7254
  openTelemetryEndpoint: z.array(ACLAction$inboundSchema).optional(),
7255
+ vercelAppInstallation: z.array(ACLAction$inboundSchema).optional(),
7254
7256
  paymentMethod: z.array(ACLAction$inboundSchema).optional(),
7255
7257
  permissions: z.array(ACLAction$inboundSchema).optional(),
7256
7258
  postgres: z.array(ACLAction$inboundSchema).optional(),
@@ -7457,6 +7459,7 @@ export type GetProjectsPermissions$Outbound = {
7457
7459
  observabilityConfiguration?: Array<string> | undefined;
7458
7460
  observabilityNotebook?: Array<string> | undefined;
7459
7461
  openTelemetryEndpoint?: Array<string> | undefined;
7462
+ vercelAppInstallation?: Array<string> | undefined;
7460
7463
  paymentMethod?: Array<string> | undefined;
7461
7464
  permissions?: Array<string> | undefined;
7462
7465
  postgres?: Array<string> | undefined;
@@ -7664,6 +7667,7 @@ export const GetProjectsPermissions$outboundSchema: z.ZodType<
7664
7667
  observabilityConfiguration: z.array(ACLAction$outboundSchema).optional(),
7665
7668
  observabilityNotebook: z.array(ACLAction$outboundSchema).optional(),
7666
7669
  openTelemetryEndpoint: z.array(ACLAction$outboundSchema).optional(),
7670
+ vercelAppInstallation: z.array(ACLAction$outboundSchema).optional(),
7667
7671
  paymentMethod: z.array(ACLAction$outboundSchema).optional(),
7668
7672
  permissions: z.array(ACLAction$outboundSchema).optional(),
7669
7673
  postgres: z.array(ACLAction$outboundSchema).optional(),
@@ -0,0 +1,356 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../lib/primitives.js";
7
+ import { safeParse } from "../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../types/fp.js";
9
+ import { SDKValidationError } from "./sdkvalidationerror.js";
10
+
11
+ export type MoveProjectDomainRequestBody = {
12
+ /**
13
+ * The unique target project identifier
14
+ */
15
+ projectId: string;
16
+ };
17
+
18
+ export type MoveProjectDomainRequest = {
19
+ /**
20
+ * The unique project identifier or the project name
21
+ */
22
+ idOrName: string;
23
+ /**
24
+ * The project domain name
25
+ */
26
+ domain: string;
27
+ /**
28
+ * The Team identifier to perform the request on behalf of.
29
+ */
30
+ teamId?: string | undefined;
31
+ /**
32
+ * The Team slug to perform the request on behalf of.
33
+ */
34
+ slug?: string | undefined;
35
+ requestBody?: MoveProjectDomainRequestBody | undefined;
36
+ };
37
+
38
+ /**
39
+ * 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`.
40
+ */
41
+ export type MoveProjectDomainVerification = {
42
+ type: string;
43
+ domain: string;
44
+ value: string;
45
+ reason: string;
46
+ };
47
+
48
+ /**
49
+ * The domain was updated successfuly
50
+ */
51
+ export type MoveProjectDomainResponseBody = {
52
+ name: string;
53
+ apexName: string;
54
+ projectId: string;
55
+ redirect?: string | null | undefined;
56
+ redirectStatusCode?: number | null | undefined;
57
+ gitBranch?: string | null | undefined;
58
+ customEnvironmentId?: string | null | undefined;
59
+ updatedAt?: number | undefined;
60
+ createdAt?: number | undefined;
61
+ /**
62
+ * `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.
63
+ */
64
+ verified: boolean;
65
+ /**
66
+ * 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`.
67
+ */
68
+ verification?: Array<MoveProjectDomainVerification> | undefined;
69
+ };
70
+
71
+ /** @internal */
72
+ export const MoveProjectDomainRequestBody$inboundSchema: z.ZodType<
73
+ MoveProjectDomainRequestBody,
74
+ z.ZodTypeDef,
75
+ unknown
76
+ > = z.object({
77
+ projectId: z.string(),
78
+ });
79
+
80
+ /** @internal */
81
+ export type MoveProjectDomainRequestBody$Outbound = {
82
+ projectId: string;
83
+ };
84
+
85
+ /** @internal */
86
+ export const MoveProjectDomainRequestBody$outboundSchema: z.ZodType<
87
+ MoveProjectDomainRequestBody$Outbound,
88
+ z.ZodTypeDef,
89
+ MoveProjectDomainRequestBody
90
+ > = z.object({
91
+ projectId: z.string(),
92
+ });
93
+
94
+ /**
95
+ * @internal
96
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
97
+ */
98
+ export namespace MoveProjectDomainRequestBody$ {
99
+ /** @deprecated use `MoveProjectDomainRequestBody$inboundSchema` instead. */
100
+ export const inboundSchema = MoveProjectDomainRequestBody$inboundSchema;
101
+ /** @deprecated use `MoveProjectDomainRequestBody$outboundSchema` instead. */
102
+ export const outboundSchema = MoveProjectDomainRequestBody$outboundSchema;
103
+ /** @deprecated use `MoveProjectDomainRequestBody$Outbound` instead. */
104
+ export type Outbound = MoveProjectDomainRequestBody$Outbound;
105
+ }
106
+
107
+ export function moveProjectDomainRequestBodyToJSON(
108
+ moveProjectDomainRequestBody: MoveProjectDomainRequestBody,
109
+ ): string {
110
+ return JSON.stringify(
111
+ MoveProjectDomainRequestBody$outboundSchema.parse(
112
+ moveProjectDomainRequestBody,
113
+ ),
114
+ );
115
+ }
116
+
117
+ export function moveProjectDomainRequestBodyFromJSON(
118
+ jsonString: string,
119
+ ): SafeParseResult<MoveProjectDomainRequestBody, SDKValidationError> {
120
+ return safeParse(
121
+ jsonString,
122
+ (x) => MoveProjectDomainRequestBody$inboundSchema.parse(JSON.parse(x)),
123
+ `Failed to parse 'MoveProjectDomainRequestBody' from JSON`,
124
+ );
125
+ }
126
+
127
+ /** @internal */
128
+ export const MoveProjectDomainRequest$inboundSchema: z.ZodType<
129
+ MoveProjectDomainRequest,
130
+ z.ZodTypeDef,
131
+ unknown
132
+ > = z.object({
133
+ idOrName: z.string(),
134
+ domain: z.string(),
135
+ teamId: z.string().optional(),
136
+ slug: z.string().optional(),
137
+ RequestBody: z.lazy(() => MoveProjectDomainRequestBody$inboundSchema)
138
+ .optional(),
139
+ }).transform((v) => {
140
+ return remap$(v, {
141
+ "RequestBody": "requestBody",
142
+ });
143
+ });
144
+
145
+ /** @internal */
146
+ export type MoveProjectDomainRequest$Outbound = {
147
+ idOrName: string;
148
+ domain: string;
149
+ teamId?: string | undefined;
150
+ slug?: string | undefined;
151
+ RequestBody?: MoveProjectDomainRequestBody$Outbound | undefined;
152
+ };
153
+
154
+ /** @internal */
155
+ export const MoveProjectDomainRequest$outboundSchema: z.ZodType<
156
+ MoveProjectDomainRequest$Outbound,
157
+ z.ZodTypeDef,
158
+ MoveProjectDomainRequest
159
+ > = z.object({
160
+ idOrName: z.string(),
161
+ domain: z.string(),
162
+ teamId: z.string().optional(),
163
+ slug: z.string().optional(),
164
+ requestBody: z.lazy(() => MoveProjectDomainRequestBody$outboundSchema)
165
+ .optional(),
166
+ }).transform((v) => {
167
+ return remap$(v, {
168
+ requestBody: "RequestBody",
169
+ });
170
+ });
171
+
172
+ /**
173
+ * @internal
174
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
175
+ */
176
+ export namespace MoveProjectDomainRequest$ {
177
+ /** @deprecated use `MoveProjectDomainRequest$inboundSchema` instead. */
178
+ export const inboundSchema = MoveProjectDomainRequest$inboundSchema;
179
+ /** @deprecated use `MoveProjectDomainRequest$outboundSchema` instead. */
180
+ export const outboundSchema = MoveProjectDomainRequest$outboundSchema;
181
+ /** @deprecated use `MoveProjectDomainRequest$Outbound` instead. */
182
+ export type Outbound = MoveProjectDomainRequest$Outbound;
183
+ }
184
+
185
+ export function moveProjectDomainRequestToJSON(
186
+ moveProjectDomainRequest: MoveProjectDomainRequest,
187
+ ): string {
188
+ return JSON.stringify(
189
+ MoveProjectDomainRequest$outboundSchema.parse(moveProjectDomainRequest),
190
+ );
191
+ }
192
+
193
+ export function moveProjectDomainRequestFromJSON(
194
+ jsonString: string,
195
+ ): SafeParseResult<MoveProjectDomainRequest, SDKValidationError> {
196
+ return safeParse(
197
+ jsonString,
198
+ (x) => MoveProjectDomainRequest$inboundSchema.parse(JSON.parse(x)),
199
+ `Failed to parse 'MoveProjectDomainRequest' from JSON`,
200
+ );
201
+ }
202
+
203
+ /** @internal */
204
+ export const MoveProjectDomainVerification$inboundSchema: z.ZodType<
205
+ MoveProjectDomainVerification,
206
+ z.ZodTypeDef,
207
+ unknown
208
+ > = z.object({
209
+ type: z.string(),
210
+ domain: z.string(),
211
+ value: z.string(),
212
+ reason: z.string(),
213
+ });
214
+
215
+ /** @internal */
216
+ export type MoveProjectDomainVerification$Outbound = {
217
+ type: string;
218
+ domain: string;
219
+ value: string;
220
+ reason: string;
221
+ };
222
+
223
+ /** @internal */
224
+ export const MoveProjectDomainVerification$outboundSchema: z.ZodType<
225
+ MoveProjectDomainVerification$Outbound,
226
+ z.ZodTypeDef,
227
+ MoveProjectDomainVerification
228
+ > = z.object({
229
+ type: z.string(),
230
+ domain: z.string(),
231
+ value: z.string(),
232
+ reason: z.string(),
233
+ });
234
+
235
+ /**
236
+ * @internal
237
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
238
+ */
239
+ export namespace MoveProjectDomainVerification$ {
240
+ /** @deprecated use `MoveProjectDomainVerification$inboundSchema` instead. */
241
+ export const inboundSchema = MoveProjectDomainVerification$inboundSchema;
242
+ /** @deprecated use `MoveProjectDomainVerification$outboundSchema` instead. */
243
+ export const outboundSchema = MoveProjectDomainVerification$outboundSchema;
244
+ /** @deprecated use `MoveProjectDomainVerification$Outbound` instead. */
245
+ export type Outbound = MoveProjectDomainVerification$Outbound;
246
+ }
247
+
248
+ export function moveProjectDomainVerificationToJSON(
249
+ moveProjectDomainVerification: MoveProjectDomainVerification,
250
+ ): string {
251
+ return JSON.stringify(
252
+ MoveProjectDomainVerification$outboundSchema.parse(
253
+ moveProjectDomainVerification,
254
+ ),
255
+ );
256
+ }
257
+
258
+ export function moveProjectDomainVerificationFromJSON(
259
+ jsonString: string,
260
+ ): SafeParseResult<MoveProjectDomainVerification, SDKValidationError> {
261
+ return safeParse(
262
+ jsonString,
263
+ (x) => MoveProjectDomainVerification$inboundSchema.parse(JSON.parse(x)),
264
+ `Failed to parse 'MoveProjectDomainVerification' from JSON`,
265
+ );
266
+ }
267
+
268
+ /** @internal */
269
+ export const MoveProjectDomainResponseBody$inboundSchema: z.ZodType<
270
+ MoveProjectDomainResponseBody,
271
+ z.ZodTypeDef,
272
+ unknown
273
+ > = z.object({
274
+ name: z.string(),
275
+ apexName: z.string(),
276
+ projectId: z.string(),
277
+ redirect: z.nullable(z.string()).optional(),
278
+ redirectStatusCode: z.nullable(z.number()).optional(),
279
+ gitBranch: z.nullable(z.string()).optional(),
280
+ customEnvironmentId: z.nullable(z.string()).optional(),
281
+ updatedAt: z.number().optional(),
282
+ createdAt: z.number().optional(),
283
+ verified: z.boolean(),
284
+ verification: z.array(
285
+ z.lazy(() => MoveProjectDomainVerification$inboundSchema),
286
+ ).optional(),
287
+ });
288
+
289
+ /** @internal */
290
+ export type MoveProjectDomainResponseBody$Outbound = {
291
+ name: string;
292
+ apexName: string;
293
+ projectId: string;
294
+ redirect?: string | null | undefined;
295
+ redirectStatusCode?: number | null | undefined;
296
+ gitBranch?: string | null | undefined;
297
+ customEnvironmentId?: string | null | undefined;
298
+ updatedAt?: number | undefined;
299
+ createdAt?: number | undefined;
300
+ verified: boolean;
301
+ verification?: Array<MoveProjectDomainVerification$Outbound> | undefined;
302
+ };
303
+
304
+ /** @internal */
305
+ export const MoveProjectDomainResponseBody$outboundSchema: z.ZodType<
306
+ MoveProjectDomainResponseBody$Outbound,
307
+ z.ZodTypeDef,
308
+ MoveProjectDomainResponseBody
309
+ > = z.object({
310
+ name: z.string(),
311
+ apexName: z.string(),
312
+ projectId: z.string(),
313
+ redirect: z.nullable(z.string()).optional(),
314
+ redirectStatusCode: z.nullable(z.number()).optional(),
315
+ gitBranch: z.nullable(z.string()).optional(),
316
+ customEnvironmentId: z.nullable(z.string()).optional(),
317
+ updatedAt: z.number().optional(),
318
+ createdAt: z.number().optional(),
319
+ verified: z.boolean(),
320
+ verification: z.array(
321
+ z.lazy(() => MoveProjectDomainVerification$outboundSchema),
322
+ ).optional(),
323
+ });
324
+
325
+ /**
326
+ * @internal
327
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
328
+ */
329
+ export namespace MoveProjectDomainResponseBody$ {
330
+ /** @deprecated use `MoveProjectDomainResponseBody$inboundSchema` instead. */
331
+ export const inboundSchema = MoveProjectDomainResponseBody$inboundSchema;
332
+ /** @deprecated use `MoveProjectDomainResponseBody$outboundSchema` instead. */
333
+ export const outboundSchema = MoveProjectDomainResponseBody$outboundSchema;
334
+ /** @deprecated use `MoveProjectDomainResponseBody$Outbound` instead. */
335
+ export type Outbound = MoveProjectDomainResponseBody$Outbound;
336
+ }
337
+
338
+ export function moveProjectDomainResponseBodyToJSON(
339
+ moveProjectDomainResponseBody: MoveProjectDomainResponseBody,
340
+ ): string {
341
+ return JSON.stringify(
342
+ MoveProjectDomainResponseBody$outboundSchema.parse(
343
+ moveProjectDomainResponseBody,
344
+ ),
345
+ );
346
+ }
347
+
348
+ export function moveProjectDomainResponseBodyFromJSON(
349
+ jsonString: string,
350
+ ): SafeParseResult<MoveProjectDomainResponseBody, SDKValidationError> {
351
+ return safeParse(
352
+ jsonString,
353
+ (x) => MoveProjectDomainResponseBody$inboundSchema.parse(JSON.parse(x)),
354
+ `Failed to parse 'MoveProjectDomainResponseBody' from JSON`,
355
+ );
356
+ }
@@ -1181,6 +1181,7 @@ export type Permissions = {
1181
1181
  observabilityConfiguration?: Array<ACLAction> | undefined;
1182
1182
  observabilityNotebook?: Array<ACLAction> | undefined;
1183
1183
  openTelemetryEndpoint?: Array<ACLAction> | undefined;
1184
+ vercelAppInstallation?: Array<ACLAction> | undefined;
1184
1185
  paymentMethod?: Array<ACLAction> | undefined;
1185
1186
  permissions?: Array<ACLAction> | undefined;
1186
1187
  postgres?: Array<ACLAction> | undefined;
@@ -7202,6 +7203,7 @@ export const Permissions$inboundSchema: z.ZodType<
7202
7203
  observabilityConfiguration: z.array(ACLAction$inboundSchema).optional(),
7203
7204
  observabilityNotebook: z.array(ACLAction$inboundSchema).optional(),
7204
7205
  openTelemetryEndpoint: z.array(ACLAction$inboundSchema).optional(),
7206
+ vercelAppInstallation: z.array(ACLAction$inboundSchema).optional(),
7205
7207
  paymentMethod: z.array(ACLAction$inboundSchema).optional(),
7206
7208
  permissions: z.array(ACLAction$inboundSchema).optional(),
7207
7209
  postgres: z.array(ACLAction$inboundSchema).optional(),
@@ -7408,6 +7410,7 @@ export type Permissions$Outbound = {
7408
7410
  observabilityConfiguration?: Array<string> | undefined;
7409
7411
  observabilityNotebook?: Array<string> | undefined;
7410
7412
  openTelemetryEndpoint?: Array<string> | undefined;
7413
+ vercelAppInstallation?: Array<string> | undefined;
7411
7414
  paymentMethod?: Array<string> | undefined;
7412
7415
  permissions?: Array<string> | undefined;
7413
7416
  postgres?: Array<string> | undefined;
@@ -7615,6 +7618,7 @@ export const Permissions$outboundSchema: z.ZodType<
7615
7618
  observabilityConfiguration: z.array(ACLAction$outboundSchema).optional(),
7616
7619
  observabilityNotebook: z.array(ACLAction$outboundSchema).optional(),
7617
7620
  openTelemetryEndpoint: z.array(ACLAction$outboundSchema).optional(),
7621
+ vercelAppInstallation: z.array(ACLAction$outboundSchema).optional(),
7618
7622
  paymentMethod: z.array(ACLAction$outboundSchema).optional(),
7619
7623
  permissions: z.array(ACLAction$outboundSchema).optional(),
7620
7624
  postgres: z.array(ACLAction$outboundSchema).optional(),
@@ -1497,6 +1497,7 @@ export type UpdateProjectPermissions = {
1497
1497
  observabilityConfiguration?: Array<ACLAction> | undefined;
1498
1498
  observabilityNotebook?: Array<ACLAction> | undefined;
1499
1499
  openTelemetryEndpoint?: Array<ACLAction> | undefined;
1500
+ vercelAppInstallation?: Array<ACLAction> | undefined;
1500
1501
  paymentMethod?: Array<ACLAction> | undefined;
1501
1502
  permissions?: Array<ACLAction> | undefined;
1502
1503
  postgres?: Array<ACLAction> | undefined;
@@ -8244,6 +8245,7 @@ export const UpdateProjectPermissions$inboundSchema: z.ZodType<
8244
8245
  observabilityConfiguration: z.array(ACLAction$inboundSchema).optional(),
8245
8246
  observabilityNotebook: z.array(ACLAction$inboundSchema).optional(),
8246
8247
  openTelemetryEndpoint: z.array(ACLAction$inboundSchema).optional(),
8248
+ vercelAppInstallation: z.array(ACLAction$inboundSchema).optional(),
8247
8249
  paymentMethod: z.array(ACLAction$inboundSchema).optional(),
8248
8250
  permissions: z.array(ACLAction$inboundSchema).optional(),
8249
8251
  postgres: z.array(ACLAction$inboundSchema).optional(),
@@ -8450,6 +8452,7 @@ export type UpdateProjectPermissions$Outbound = {
8450
8452
  observabilityConfiguration?: Array<string> | undefined;
8451
8453
  observabilityNotebook?: Array<string> | undefined;
8452
8454
  openTelemetryEndpoint?: Array<string> | undefined;
8455
+ vercelAppInstallation?: Array<string> | undefined;
8453
8456
  paymentMethod?: Array<string> | undefined;
8454
8457
  permissions?: Array<string> | undefined;
8455
8458
  postgres?: Array<string> | undefined;
@@ -8657,6 +8660,7 @@ export const UpdateProjectPermissions$outboundSchema: z.ZodType<
8657
8660
  observabilityConfiguration: z.array(ACLAction$outboundSchema).optional(),
8658
8661
  observabilityNotebook: z.array(ACLAction$outboundSchema).optional(),
8659
8662
  openTelemetryEndpoint: z.array(ACLAction$outboundSchema).optional(),
8663
+ vercelAppInstallation: z.array(ACLAction$outboundSchema).optional(),
8660
8664
  paymentMethod: z.array(ACLAction$outboundSchema).optional(),
8661
8665
  permissions: z.array(ACLAction$outboundSchema).optional(),
8662
8666
  postgres: z.array(ACLAction$outboundSchema).optional(),