@vercel/sdk 1.10.2 → 1.10.4

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 (98) hide show
  1. package/bin/mcp-server.js +582 -281
  2. package/bin/mcp-server.js.map +21 -21
  3. package/docs/sdks/aliases/README.md +1 -1
  4. package/esm/__tests__/aliases.test.js +1 -20
  5. package/esm/__tests__/aliases.test.js.map +1 -1
  6. package/esm/__tests__/teams.test.js +0 -2
  7. package/esm/__tests__/teams.test.js.map +1 -1
  8. package/esm/funcs/aliasesGetAlias.d.ts +2 -2
  9. package/esm/funcs/aliasesGetAlias.d.ts.map +1 -1
  10. package/esm/funcs/aliasesGetAlias.js +2 -2
  11. package/esm/funcs/aliasesGetAlias.js.map +1 -1
  12. package/esm/funcs/domainsGetDomainConfig.js +1 -0
  13. package/esm/funcs/domainsGetDomainConfig.js.map +1 -1
  14. package/esm/lib/config.d.ts +3 -3
  15. package/esm/lib/config.js +3 -3
  16. package/esm/mcp-server/mcp-server.js +1 -1
  17. package/esm/mcp-server/server.js +1 -1
  18. package/esm/models/createdeploymentop.d.ts +50 -50
  19. package/esm/models/createdeploymentop.d.ts.map +1 -1
  20. package/esm/models/createdeploymentop.js +28 -28
  21. package/esm/models/createdeploymentop.js.map +1 -1
  22. package/esm/models/createprojectenvop.d.ts +6 -6
  23. package/esm/models/createprojectenvop.js +2 -2
  24. package/esm/models/createprojectenvop.js.map +1 -1
  25. package/esm/models/createprojectop.d.ts +156 -156
  26. package/esm/models/createprojectop.d.ts.map +1 -1
  27. package/esm/models/createprojectop.js +148 -148
  28. package/esm/models/createprojectop.js.map +1 -1
  29. package/esm/models/editprojectenvop.d.ts +3 -3
  30. package/esm/models/editprojectenvop.js +1 -1
  31. package/esm/models/editprojectenvop.js.map +1 -1
  32. package/esm/models/filterprojectenvsop.d.ts +9 -9
  33. package/esm/models/filterprojectenvsop.js +3 -3
  34. package/esm/models/filterprojectenvsop.js.map +1 -1
  35. package/esm/models/getaliasop.d.ts +654 -0
  36. package/esm/models/getaliasop.d.ts.map +1 -1
  37. package/esm/models/getaliasop.js +546 -0
  38. package/esm/models/getaliasop.js.map +1 -1
  39. package/esm/models/getdomainconfigop.d.ts +63 -0
  40. package/esm/models/getdomainconfigop.d.ts.map +1 -1
  41. package/esm/models/getdomainconfigop.js +52 -0
  42. package/esm/models/getdomainconfigop.js.map +1 -1
  43. package/esm/models/getfirewallconfigop.d.ts +0 -3
  44. package/esm/models/getfirewallconfigop.d.ts.map +1 -1
  45. package/esm/models/getfirewallconfigop.js +0 -1
  46. package/esm/models/getfirewallconfigop.js.map +1 -1
  47. package/esm/models/listaliasesop.d.ts +66 -66
  48. package/esm/models/listaliasesop.d.ts.map +1 -1
  49. package/esm/models/listaliasesop.js +78 -78
  50. package/esm/models/listaliasesop.js.map +1 -1
  51. package/esm/models/listdeploymentaliasesop.d.ts +30 -30
  52. package/esm/models/listdeploymentaliasesop.d.ts.map +1 -1
  53. package/esm/models/listdeploymentaliasesop.js +34 -34
  54. package/esm/models/listdeploymentaliasesop.js.map +1 -1
  55. package/esm/models/putfirewallconfigop.d.ts +0 -3
  56. package/esm/models/putfirewallconfigop.d.ts.map +1 -1
  57. package/esm/models/putfirewallconfigop.js +0 -1
  58. package/esm/models/putfirewallconfigop.js.map +1 -1
  59. package/esm/models/removeprojectenvop.d.ts +9 -9
  60. package/esm/models/removeprojectenvop.js +3 -3
  61. package/esm/models/removeprojectenvop.js.map +1 -1
  62. package/esm/models/team.d.ts +0 -2
  63. package/esm/models/team.d.ts.map +1 -1
  64. package/esm/models/team.js +0 -2
  65. package/esm/models/team.js.map +1 -1
  66. package/esm/models/teamlimited.d.ts +0 -2
  67. package/esm/models/teamlimited.d.ts.map +1 -1
  68. package/esm/models/teamlimited.js +0 -2
  69. package/esm/models/teamlimited.js.map +1 -1
  70. package/esm/sdk/aliases.d.ts +2 -2
  71. package/esm/sdk/aliases.d.ts.map +1 -1
  72. package/examples/package-lock.json +1 -1
  73. package/examples/projectsUpdateProject.example.ts +1 -1
  74. package/jsr.json +1 -1
  75. package/package.json +1 -1
  76. package/src/__tests__/aliases.test.ts +1 -20
  77. package/src/__tests__/teams.test.ts +0 -2
  78. package/src/funcs/aliasesGetAlias.ts +6 -4
  79. package/src/funcs/domainsGetDomainConfig.ts +1 -0
  80. package/src/lib/config.ts +3 -3
  81. package/src/mcp-server/mcp-server.ts +1 -1
  82. package/src/mcp-server/server.ts +1 -1
  83. package/src/models/createdeploymentop.ts +76 -54
  84. package/src/models/createprojectenvop.ts +2 -2
  85. package/src/models/createprojectop.ts +286 -286
  86. package/src/models/editprojectenvop.ts +1 -1
  87. package/src/models/filterprojectenvsop.ts +3 -3
  88. package/src/models/getaliasop.ts +1262 -0
  89. package/src/models/getdomainconfigop.ts +129 -0
  90. package/src/models/getfirewallconfigop.ts +0 -1
  91. package/src/models/listaliasesop.ts +143 -124
  92. package/src/models/listdeploymentaliasesop.ts +70 -58
  93. package/src/models/putfirewallconfigop.ts +0 -1
  94. package/src/models/removeprojectenvop.ts +3 -3
  95. package/src/models/team.ts +0 -4
  96. package/src/models/teamlimited.ts +0 -4
  97. package/src/sdk/aliases.ts +2 -2
  98. package/vercel-spec.json +874 -509
@@ -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
 
@@ -299,7 +299,6 @@ export const GetFirewallConfigType = {
299
299
  Ja4Digest: "ja4_digest",
300
300
  Ja3Digest: "ja3_digest",
301
301
  RateLimitApiId: "rate_limit_api_id",
302
- BotName: "bot_name",
303
302
  } as const;
304
303
  /**
305
304
  * [Parameter](https://vercel.com/docs/security/vercel-waf/rule-configuration#parameters) from the incoming traffic.