@vercel/sdk 1.10.1 → 1.10.3

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 (81) hide show
  1. package/bin/mcp-server.js +436 -1558
  2. package/bin/mcp-server.js.map +19 -19
  3. package/esm/__tests__/teams.test.js +2 -4
  4. package/esm/__tests__/teams.test.js.map +1 -1
  5. package/esm/funcs/domainsBuyDomain.js +2 -2
  6. package/esm/funcs/domainsBuyDomain.js.map +1 -1
  7. package/esm/funcs/domainsGetDomainConfig.js +1 -0
  8. package/esm/funcs/domainsGetDomainConfig.js.map +1 -1
  9. package/esm/funcs/domainsPatchDomain.js +2 -2
  10. package/esm/funcs/domainsPatchDomain.js.map +1 -1
  11. package/esm/lib/config.d.ts +3 -3
  12. package/esm/lib/config.js +3 -3
  13. package/esm/mcp-server/mcp-server.js +1 -1
  14. package/esm/mcp-server/server.js +1 -1
  15. package/esm/models/canceldeploymentop.d.ts +49 -49
  16. package/esm/models/canceldeploymentop.d.ts.map +1 -1
  17. package/esm/models/canceldeploymentop.js +53 -55
  18. package/esm/models/canceldeploymentop.js.map +1 -1
  19. package/esm/models/createdeploymentop.d.ts +174 -174
  20. package/esm/models/createdeploymentop.d.ts.map +1 -1
  21. package/esm/models/createdeploymentop.js +166 -165
  22. package/esm/models/createdeploymentop.js.map +1 -1
  23. package/esm/models/createprojectop.d.ts +33 -585
  24. package/esm/models/createprojectop.d.ts.map +1 -1
  25. package/esm/models/createprojectop.js +31 -530
  26. package/esm/models/createprojectop.js.map +1 -1
  27. package/esm/models/getdeploymentop.d.ts +90 -90
  28. package/esm/models/getdeploymentop.d.ts.map +1 -1
  29. package/esm/models/getdeploymentop.js +101 -102
  30. package/esm/models/getdeploymentop.js.map +1 -1
  31. package/esm/models/getdomainconfigop.d.ts +63 -0
  32. package/esm/models/getdomainconfigop.d.ts.map +1 -1
  33. package/esm/models/getdomainconfigop.js +52 -0
  34. package/esm/models/getdomainconfigop.js.map +1 -1
  35. package/esm/models/getprojectsop.d.ts +33 -585
  36. package/esm/models/getprojectsop.d.ts.map +1 -1
  37. package/esm/models/getprojectsop.js +31 -530
  38. package/esm/models/getprojectsop.js.map +1 -1
  39. package/esm/models/team.d.ts +13 -12
  40. package/esm/models/team.d.ts.map +1 -1
  41. package/esm/models/team.js +6 -7
  42. package/esm/models/team.js.map +1 -1
  43. package/esm/models/teamlimited.d.ts +0 -2
  44. package/esm/models/teamlimited.d.ts.map +1 -1
  45. package/esm/models/teamlimited.js +0 -2
  46. package/esm/models/teamlimited.js.map +1 -1
  47. package/esm/models/updateprojectdatacacheop.d.ts +41 -593
  48. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  49. package/esm/models/updateprojectdatacacheop.js +43 -561
  50. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  51. package/esm/models/updateprojectop.d.ts +33 -585
  52. package/esm/models/updateprojectop.d.ts.map +1 -1
  53. package/esm/models/updateprojectop.js +31 -530
  54. package/esm/models/updateprojectop.js.map +1 -1
  55. package/esm/models/userevent.d.ts +154 -124
  56. package/esm/models/userevent.d.ts.map +1 -1
  57. package/esm/models/userevent.js +166 -135
  58. package/esm/models/userevent.js.map +1 -1
  59. package/examples/package-lock.json +1 -1
  60. package/examples/projectsUpdateProject.example.ts +1 -1
  61. package/jsr.json +1 -1
  62. package/package.json +1 -1
  63. package/src/__tests__/teams.test.ts +2 -4
  64. package/src/funcs/domainsBuyDomain.ts +2 -2
  65. package/src/funcs/domainsGetDomainConfig.ts +1 -0
  66. package/src/funcs/domainsPatchDomain.ts +2 -2
  67. package/src/lib/config.ts +3 -3
  68. package/src/mcp-server/mcp-server.ts +1 -1
  69. package/src/mcp-server/server.ts +1 -1
  70. package/src/models/canceldeploymentop.ts +78 -104
  71. package/src/models/createdeploymentop.ts +347 -350
  72. package/src/models/createprojectop.ts +197 -1221
  73. package/src/models/getdeploymentop.ts +214 -216
  74. package/src/models/getdomainconfigop.ts +129 -0
  75. package/src/models/getprojectsop.ts +202 -1207
  76. package/src/models/team.ts +13 -16
  77. package/src/models/teamlimited.ts +0 -4
  78. package/src/models/updateprojectdatacacheop.ts +171 -1168
  79. package/src/models/updateprojectop.ts +197 -1221
  80. package/src/models/userevent.ts +309 -236
  81. package/vercel-spec.json +141 -1530
@@ -25,6 +25,10 @@ export type GetDomainConfigRequest = {
25
25
  * The name of the domain.
26
26
  */
27
27
  domain: string;
28
+ /**
29
+ * The project id or name that will be associated with the domain. Use this when the domain is not yet associated with a project.
30
+ */
31
+ projectIdOrName?: string | undefined;
28
32
  /**
29
33
  * When true, the response will only include the nameservers assigned directly to the specified domain. When false and there are no nameservers assigned directly to the specified domain, the response will include the nameservers of the domain's parent zone.
30
34
  */
@@ -65,6 +69,16 @@ export const AcceptedChallenges = {
65
69
  */
66
70
  export type AcceptedChallenges = ClosedEnum<typeof AcceptedChallenges>;
67
71
 
72
+ /**
73
+ * Recommended IPv4s for the domain. rank=1 is the preferred value(s) to use. Only using 1 ip value is acceptable.
74
+ */
75
+ export type RecommendedIPv4 = {};
76
+
77
+ /**
78
+ * Recommended CNAMEs for the domain. rank=1 is the preferred value to use.
79
+ */
80
+ export type RecommendedCNAME = {};
81
+
68
82
  export type GetDomainConfigResponseBody = {
69
83
  /**
70
84
  * How we see the domain's configuration. - `CNAME`: Domain has a CNAME pointing to Vercel. - `A`: Domain's A record is resolving to Vercel. - `http`: Domain is resolving to Vercel but may be behind a Proxy. - `dns-01`: Domain is not resolving to Vercel but dns-01 challenge is enabled. - `null`: Domain is not resolving to Vercel.
@@ -74,6 +88,14 @@ export type GetDomainConfigResponseBody = {
74
88
  * Which challenge types the domain can use for issuing certs.
75
89
  */
76
90
  acceptedChallenges?: Array<AcceptedChallenges> | undefined;
91
+ /**
92
+ * Recommended IPv4s for the domain. rank=1 is the preferred value(s) to use. Only using 1 ip value is acceptable.
93
+ */
94
+ recommendedIPv4?: Array<RecommendedIPv4> | undefined;
95
+ /**
96
+ * Recommended CNAMEs for the domain. rank=1 is the preferred value to use.
97
+ */
98
+ recommendedCNAME?: Array<RecommendedCNAME> | undefined;
77
99
  /**
78
100
  * Whether or not the domain is configured AND we can automatically generate a TLS certificate.
79
101
  */
@@ -106,6 +128,7 @@ export const GetDomainConfigRequest$inboundSchema: z.ZodType<
106
128
  unknown
107
129
  > = z.object({
108
130
  domain: z.string(),
131
+ projectIdOrName: z.string().optional(),
109
132
  strict: Strict$inboundSchema.optional(),
110
133
  teamId: z.string().optional(),
111
134
  slug: z.string().optional(),
@@ -114,6 +137,7 @@ export const GetDomainConfigRequest$inboundSchema: z.ZodType<
114
137
  /** @internal */
115
138
  export type GetDomainConfigRequest$Outbound = {
116
139
  domain: string;
140
+ projectIdOrName?: string | undefined;
117
141
  strict?: string | undefined;
118
142
  teamId?: string | undefined;
119
143
  slug?: string | undefined;
@@ -126,6 +150,7 @@ export const GetDomainConfigRequest$outboundSchema: z.ZodType<
126
150
  GetDomainConfigRequest
127
151
  > = z.object({
128
152
  domain: z.string(),
153
+ projectIdOrName: z.string().optional(),
129
154
  strict: Strict$outboundSchema.optional(),
130
155
  teamId: z.string().optional(),
131
156
  slug: z.string().optional(),
@@ -202,6 +227,100 @@ export namespace AcceptedChallenges$ {
202
227
  export const outboundSchema = AcceptedChallenges$outboundSchema;
203
228
  }
204
229
 
230
+ /** @internal */
231
+ export const RecommendedIPv4$inboundSchema: z.ZodType<
232
+ RecommendedIPv4,
233
+ z.ZodTypeDef,
234
+ unknown
235
+ > = z.object({});
236
+
237
+ /** @internal */
238
+ export type RecommendedIPv4$Outbound = {};
239
+
240
+ /** @internal */
241
+ export const RecommendedIPv4$outboundSchema: z.ZodType<
242
+ RecommendedIPv4$Outbound,
243
+ z.ZodTypeDef,
244
+ RecommendedIPv4
245
+ > = z.object({});
246
+
247
+ /**
248
+ * @internal
249
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
250
+ */
251
+ export namespace RecommendedIPv4$ {
252
+ /** @deprecated use `RecommendedIPv4$inboundSchema` instead. */
253
+ export const inboundSchema = RecommendedIPv4$inboundSchema;
254
+ /** @deprecated use `RecommendedIPv4$outboundSchema` instead. */
255
+ export const outboundSchema = RecommendedIPv4$outboundSchema;
256
+ /** @deprecated use `RecommendedIPv4$Outbound` instead. */
257
+ export type Outbound = RecommendedIPv4$Outbound;
258
+ }
259
+
260
+ export function recommendedIPv4ToJSON(
261
+ recommendedIPv4: RecommendedIPv4,
262
+ ): string {
263
+ return JSON.stringify(RecommendedIPv4$outboundSchema.parse(recommendedIPv4));
264
+ }
265
+
266
+ export function recommendedIPv4FromJSON(
267
+ jsonString: string,
268
+ ): SafeParseResult<RecommendedIPv4, SDKValidationError> {
269
+ return safeParse(
270
+ jsonString,
271
+ (x) => RecommendedIPv4$inboundSchema.parse(JSON.parse(x)),
272
+ `Failed to parse 'RecommendedIPv4' from JSON`,
273
+ );
274
+ }
275
+
276
+ /** @internal */
277
+ export const RecommendedCNAME$inboundSchema: z.ZodType<
278
+ RecommendedCNAME,
279
+ z.ZodTypeDef,
280
+ unknown
281
+ > = z.object({});
282
+
283
+ /** @internal */
284
+ export type RecommendedCNAME$Outbound = {};
285
+
286
+ /** @internal */
287
+ export const RecommendedCNAME$outboundSchema: z.ZodType<
288
+ RecommendedCNAME$Outbound,
289
+ z.ZodTypeDef,
290
+ RecommendedCNAME
291
+ > = z.object({});
292
+
293
+ /**
294
+ * @internal
295
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
296
+ */
297
+ export namespace RecommendedCNAME$ {
298
+ /** @deprecated use `RecommendedCNAME$inboundSchema` instead. */
299
+ export const inboundSchema = RecommendedCNAME$inboundSchema;
300
+ /** @deprecated use `RecommendedCNAME$outboundSchema` instead. */
301
+ export const outboundSchema = RecommendedCNAME$outboundSchema;
302
+ /** @deprecated use `RecommendedCNAME$Outbound` instead. */
303
+ export type Outbound = RecommendedCNAME$Outbound;
304
+ }
305
+
306
+ export function recommendedCNAMEToJSON(
307
+ recommendedCNAME: RecommendedCNAME,
308
+ ): string {
309
+ return JSON.stringify(
310
+ RecommendedCNAME$outboundSchema.parse(recommendedCNAME),
311
+ );
312
+ }
313
+
314
+ export function recommendedCNAMEFromJSON(
315
+ jsonString: string,
316
+ ): SafeParseResult<RecommendedCNAME, SDKValidationError> {
317
+ return safeParse(
318
+ jsonString,
319
+ (x) => RecommendedCNAME$inboundSchema.parse(JSON.parse(x)),
320
+ `Failed to parse 'RecommendedCNAME' from JSON`,
321
+ );
322
+ }
323
+
205
324
  /** @internal */
206
325
  export const GetDomainConfigResponseBody$inboundSchema: z.ZodType<
207
326
  GetDomainConfigResponseBody,
@@ -210,6 +329,10 @@ export const GetDomainConfigResponseBody$inboundSchema: z.ZodType<
210
329
  > = z.object({
211
330
  configuredBy: z.nullable(ConfiguredBy$inboundSchema).optional(),
212
331
  acceptedChallenges: z.array(AcceptedChallenges$inboundSchema).optional(),
332
+ recommendedIPv4: z.array(z.lazy(() => RecommendedIPv4$inboundSchema))
333
+ .optional(),
334
+ recommendedCNAME: z.array(z.lazy(() => RecommendedCNAME$inboundSchema))
335
+ .optional(),
213
336
  misconfigured: z.boolean(),
214
337
  });
215
338
 
@@ -217,6 +340,8 @@ export const GetDomainConfigResponseBody$inboundSchema: z.ZodType<
217
340
  export type GetDomainConfigResponseBody$Outbound = {
218
341
  configuredBy?: string | null | undefined;
219
342
  acceptedChallenges?: Array<string> | undefined;
343
+ recommendedIPv4?: Array<RecommendedIPv4$Outbound> | undefined;
344
+ recommendedCNAME?: Array<RecommendedCNAME$Outbound> | undefined;
220
345
  misconfigured: boolean;
221
346
  };
222
347
 
@@ -228,6 +353,10 @@ export const GetDomainConfigResponseBody$outboundSchema: z.ZodType<
228
353
  > = z.object({
229
354
  configuredBy: z.nullable(ConfiguredBy$outboundSchema).optional(),
230
355
  acceptedChallenges: z.array(AcceptedChallenges$outboundSchema).optional(),
356
+ recommendedIPv4: z.array(z.lazy(() => RecommendedIPv4$outboundSchema))
357
+ .optional(),
358
+ recommendedCNAME: z.array(z.lazy(() => RecommendedCNAME$outboundSchema))
359
+ .optional(),
231
360
  misconfigured: z.boolean(),
232
361
  });
233
362