@vercel/sdk 1.10.7 → 1.11.0

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 (119) hide show
  1. package/bin/mcp-server.js +3751 -930
  2. package/bin/mcp-server.js.map +23 -23
  3. package/esm/__tests__/accessgroups.test.js +6 -6
  4. package/esm/__tests__/accessgroups.test.js.map +1 -1
  5. package/esm/__tests__/domains.test.js +11 -4
  6. package/esm/__tests__/domains.test.js.map +1 -1
  7. package/esm/__tests__/edgeconfig.test.js +6 -6
  8. package/esm/__tests__/edgeconfig.test.js.map +1 -1
  9. package/esm/__tests__/integrations.test.js +1 -1
  10. package/esm/__tests__/rollingrelease.test.js +1 -1
  11. package/esm/__tests__/security.test.js +11 -1
  12. package/esm/__tests__/security.test.js.map +1 -1
  13. package/esm/__tests__/teams.test.js +2 -2
  14. package/esm/__tests__/teams.test.js.map +1 -1
  15. package/esm/lib/config.d.ts +3 -3
  16. package/esm/lib/config.js +3 -3
  17. package/esm/mcp-server/mcp-server.js +1 -1
  18. package/esm/mcp-server/server.js +1 -1
  19. package/esm/models/canceldeploymentop.d.ts +41 -41
  20. package/esm/models/canceldeploymentop.d.ts.map +1 -1
  21. package/esm/models/canceldeploymentop.js +43 -41
  22. package/esm/models/canceldeploymentop.js.map +1 -1
  23. package/esm/models/createdeploymentop.d.ts +98 -98
  24. package/esm/models/createdeploymentop.d.ts.map +1 -1
  25. package/esm/models/createdeploymentop.js +113 -117
  26. package/esm/models/createdeploymentop.js.map +1 -1
  27. package/esm/models/createintegrationstoredirectop.d.ts +240 -240
  28. package/esm/models/createintegrationstoredirectop.js +294 -294
  29. package/esm/models/createortransferdomainop.d.ts +33 -0
  30. package/esm/models/createortransferdomainop.d.ts.map +1 -1
  31. package/esm/models/createortransferdomainop.js +23 -0
  32. package/esm/models/createortransferdomainop.js.map +1 -1
  33. package/esm/models/createprojectop.d.ts +1626 -281
  34. package/esm/models/createprojectop.d.ts.map +1 -1
  35. package/esm/models/createprojectop.js +1676 -298
  36. package/esm/models/createprojectop.js.map +1 -1
  37. package/esm/models/createwebhookop.d.ts +72 -66
  38. package/esm/models/createwebhookop.d.ts.map +1 -1
  39. package/esm/models/createwebhookop.js +24 -22
  40. package/esm/models/createwebhookop.js.map +1 -1
  41. package/esm/models/getconfigurationproductsop.d.ts +330 -330
  42. package/esm/models/getconfigurationproductsop.js +408 -408
  43. package/esm/models/getdeploymentop.d.ts +16 -16
  44. package/esm/models/getdeploymentop.d.ts.map +1 -1
  45. package/esm/models/getdeploymentop.js +24 -24
  46. package/esm/models/getdeploymentop.js.map +1 -1
  47. package/esm/models/getdomainop.d.ts +33 -0
  48. package/esm/models/getdomainop.d.ts.map +1 -1
  49. package/esm/models/getdomainop.js +24 -0
  50. package/esm/models/getdomainop.js.map +1 -1
  51. package/esm/models/getdomainsop.d.ts +33 -0
  52. package/esm/models/getdomainsop.d.ts.map +1 -1
  53. package/esm/models/getdomainsop.js +23 -0
  54. package/esm/models/getdomainsop.js.map +1 -1
  55. package/esm/models/getprojectsop.d.ts +1402 -57
  56. package/esm/models/getprojectsop.d.ts.map +1 -1
  57. package/esm/models/getprojectsop.js +1575 -202
  58. package/esm/models/getprojectsop.js.map +1 -1
  59. package/esm/models/getwebhookop.d.ts +36 -33
  60. package/esm/models/getwebhookop.d.ts.map +1 -1
  61. package/esm/models/getwebhookop.js +12 -11
  62. package/esm/models/getwebhookop.js.map +1 -1
  63. package/esm/models/getwebhooksop.d.ts +72 -66
  64. package/esm/models/getwebhooksop.d.ts.map +1 -1
  65. package/esm/models/getwebhooksop.js +24 -22
  66. package/esm/models/getwebhooksop.js.map +1 -1
  67. package/esm/models/listaccessgroupsop.d.ts +2 -5
  68. package/esm/models/listaccessgroupsop.d.ts.map +1 -1
  69. package/esm/models/listaccessgroupsop.js +2 -2
  70. package/esm/models/listaccessgroupsop.js.map +1 -1
  71. package/esm/models/readaccessgroupop.d.ts +48 -5
  72. package/esm/models/readaccessgroupop.d.ts.map +1 -1
  73. package/esm/models/readaccessgroupop.js +30 -2
  74. package/esm/models/readaccessgroupop.js.map +1 -1
  75. package/esm/models/team.d.ts +35 -18
  76. package/esm/models/team.d.ts.map +1 -1
  77. package/esm/models/team.js +15 -13
  78. package/esm/models/team.js.map +1 -1
  79. package/esm/models/updateprojectdatacacheop.d.ts +1402 -57
  80. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  81. package/esm/models/updateprojectdatacacheop.js +1584 -200
  82. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  83. package/esm/models/updateprojectop.d.ts +1402 -57
  84. package/esm/models/updateprojectop.d.ts.map +1 -1
  85. package/esm/models/updateprojectop.js +1579 -202
  86. package/esm/models/updateprojectop.js.map +1 -1
  87. package/examples/package-lock.json +1 -1
  88. package/examples/projectsUpdateProject.example.ts +1 -1
  89. package/jsr.json +1 -1
  90. package/package.json +1 -1
  91. package/src/__tests__/accessgroups.test.ts +6 -6
  92. package/src/__tests__/domains.test.ts +11 -4
  93. package/src/__tests__/edgeconfig.test.ts +6 -6
  94. package/src/__tests__/integrations.test.ts +1 -1
  95. package/src/__tests__/rollingrelease.test.ts +1 -1
  96. package/src/__tests__/security.test.ts +11 -1
  97. package/src/__tests__/teams.test.ts +2 -2
  98. package/src/lib/config.ts +3 -3
  99. package/src/mcp-server/mcp-server.ts +1 -1
  100. package/src/mcp-server/server.ts +1 -1
  101. package/src/models/canceldeploymentop.ts +84 -64
  102. package/src/models/createdeploymentop.ts +239 -192
  103. package/src/models/createintegrationstoredirectop.ts +505 -505
  104. package/src/models/createortransferdomainop.ts +41 -0
  105. package/src/models/createprojectop.ts +3443 -466
  106. package/src/models/createwebhookop.ts +24 -22
  107. package/src/models/getconfigurationproductsop.ts +703 -703
  108. package/src/models/getdeploymentop.ts +34 -34
  109. package/src/models/getdomainop.ts +37 -0
  110. package/src/models/getdomainsop.ts +39 -0
  111. package/src/models/getprojectsop.ts +3255 -300
  112. package/src/models/getwebhookop.ts +12 -11
  113. package/src/models/getwebhooksop.ts +24 -22
  114. package/src/models/listaccessgroupsop.ts +4 -7
  115. package/src/models/readaccessgroupop.ts +42 -7
  116. package/src/models/team.ts +47 -28
  117. package/src/models/updateprojectdatacacheop.ts +3184 -307
  118. package/src/models/updateprojectop.ts +3290 -298
  119. package/vercel-spec.json +4916 -2034
@@ -1643,12 +1643,14 @@ export type GetDeploymentRoutes2 = {
1643
1643
  status?: number | undefined;
1644
1644
  };
1645
1645
 
1646
- export const GetDeploymentHasType = {
1646
+ export const GetDeploymentHasDeploymentsType = {
1647
1647
  Header: "header",
1648
1648
  Cookie: "cookie",
1649
1649
  Query: "query",
1650
1650
  } as const;
1651
- export type GetDeploymentHasType = ClosedEnum<typeof GetDeploymentHasType>;
1651
+ export type GetDeploymentHasDeploymentsType = ClosedEnum<
1652
+ typeof GetDeploymentHasDeploymentsType
1653
+ >;
1652
1654
 
1653
1655
  export type GetDeploymentValueDeploymentsResponse200Eq = string | number;
1654
1656
 
@@ -1669,17 +1671,15 @@ export type GetDeploymentValue2 = {
1669
1671
  export type GetDeploymentHasDeploymentsValue = GetDeploymentValue2 | string;
1670
1672
 
1671
1673
  export type GetDeploymentHas2 = {
1672
- type: GetDeploymentHasType;
1674
+ type: GetDeploymentHasDeploymentsType;
1673
1675
  key: string;
1674
1676
  value?: GetDeploymentValue2 | string | undefined;
1675
1677
  };
1676
1678
 
1677
- export const GetDeploymentHasDeploymentsType = {
1679
+ export const GetDeploymentHasType = {
1678
1680
  Host: "host",
1679
1681
  } as const;
1680
- export type GetDeploymentHasDeploymentsType = ClosedEnum<
1681
- typeof GetDeploymentHasDeploymentsType
1682
- >;
1682
+ export type GetDeploymentHasType = ClosedEnum<typeof GetDeploymentHasType>;
1683
1683
 
1684
1684
  export type GetDeploymentValueDeploymentsResponseEq = string | number;
1685
1685
 
@@ -1702,7 +1702,7 @@ export type GetDeploymentHasValue =
1702
1702
  | string;
1703
1703
 
1704
1704
  export type GetDeploymentHas1 = {
1705
- type: GetDeploymentHasDeploymentsType;
1705
+ type: GetDeploymentHasType;
1706
1706
  value: GetDeploymentValueDeploymentsResponse2002 | string;
1707
1707
  };
1708
1708
 
@@ -10055,24 +10055,24 @@ export function getDeploymentRoutes2FromJSON(
10055
10055
  }
10056
10056
 
10057
10057
  /** @internal */
10058
- export const GetDeploymentHasType$inboundSchema: z.ZodNativeEnum<
10059
- typeof GetDeploymentHasType
10060
- > = z.nativeEnum(GetDeploymentHasType);
10058
+ export const GetDeploymentHasDeploymentsType$inboundSchema: z.ZodNativeEnum<
10059
+ typeof GetDeploymentHasDeploymentsType
10060
+ > = z.nativeEnum(GetDeploymentHasDeploymentsType);
10061
10061
 
10062
10062
  /** @internal */
10063
- export const GetDeploymentHasType$outboundSchema: z.ZodNativeEnum<
10064
- typeof GetDeploymentHasType
10065
- > = GetDeploymentHasType$inboundSchema;
10063
+ export const GetDeploymentHasDeploymentsType$outboundSchema: z.ZodNativeEnum<
10064
+ typeof GetDeploymentHasDeploymentsType
10065
+ > = GetDeploymentHasDeploymentsType$inboundSchema;
10066
10066
 
10067
10067
  /**
10068
10068
  * @internal
10069
10069
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
10070
10070
  */
10071
- export namespace GetDeploymentHasType$ {
10072
- /** @deprecated use `GetDeploymentHasType$inboundSchema` instead. */
10073
- export const inboundSchema = GetDeploymentHasType$inboundSchema;
10074
- /** @deprecated use `GetDeploymentHasType$outboundSchema` instead. */
10075
- export const outboundSchema = GetDeploymentHasType$outboundSchema;
10071
+ export namespace GetDeploymentHasDeploymentsType$ {
10072
+ /** @deprecated use `GetDeploymentHasDeploymentsType$inboundSchema` instead. */
10073
+ export const inboundSchema = GetDeploymentHasDeploymentsType$inboundSchema;
10074
+ /** @deprecated use `GetDeploymentHasDeploymentsType$outboundSchema` instead. */
10075
+ export const outboundSchema = GetDeploymentHasDeploymentsType$outboundSchema;
10076
10076
  }
10077
10077
 
10078
10078
  /** @internal */
@@ -10277,7 +10277,7 @@ export const GetDeploymentHas2$inboundSchema: z.ZodType<
10277
10277
  z.ZodTypeDef,
10278
10278
  unknown
10279
10279
  > = z.object({
10280
- type: GetDeploymentHasType$inboundSchema,
10280
+ type: GetDeploymentHasDeploymentsType$inboundSchema,
10281
10281
  key: z.string(),
10282
10282
  value: z.union([z.lazy(() => GetDeploymentValue2$inboundSchema), z.string()])
10283
10283
  .optional(),
@@ -10296,7 +10296,7 @@ export const GetDeploymentHas2$outboundSchema: z.ZodType<
10296
10296
  z.ZodTypeDef,
10297
10297
  GetDeploymentHas2
10298
10298
  > = z.object({
10299
- type: GetDeploymentHasType$outboundSchema,
10299
+ type: GetDeploymentHasDeploymentsType$outboundSchema,
10300
10300
  key: z.string(),
10301
10301
  value: z.union([z.lazy(() => GetDeploymentValue2$outboundSchema), z.string()])
10302
10302
  .optional(),
@@ -10334,24 +10334,24 @@ export function getDeploymentHas2FromJSON(
10334
10334
  }
10335
10335
 
10336
10336
  /** @internal */
10337
- export const GetDeploymentHasDeploymentsType$inboundSchema: z.ZodNativeEnum<
10338
- typeof GetDeploymentHasDeploymentsType
10339
- > = z.nativeEnum(GetDeploymentHasDeploymentsType);
10337
+ export const GetDeploymentHasType$inboundSchema: z.ZodNativeEnum<
10338
+ typeof GetDeploymentHasType
10339
+ > = z.nativeEnum(GetDeploymentHasType);
10340
10340
 
10341
10341
  /** @internal */
10342
- export const GetDeploymentHasDeploymentsType$outboundSchema: z.ZodNativeEnum<
10343
- typeof GetDeploymentHasDeploymentsType
10344
- > = GetDeploymentHasDeploymentsType$inboundSchema;
10342
+ export const GetDeploymentHasType$outboundSchema: z.ZodNativeEnum<
10343
+ typeof GetDeploymentHasType
10344
+ > = GetDeploymentHasType$inboundSchema;
10345
10345
 
10346
10346
  /**
10347
10347
  * @internal
10348
10348
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
10349
10349
  */
10350
- export namespace GetDeploymentHasDeploymentsType$ {
10351
- /** @deprecated use `GetDeploymentHasDeploymentsType$inboundSchema` instead. */
10352
- export const inboundSchema = GetDeploymentHasDeploymentsType$inboundSchema;
10353
- /** @deprecated use `GetDeploymentHasDeploymentsType$outboundSchema` instead. */
10354
- export const outboundSchema = GetDeploymentHasDeploymentsType$outboundSchema;
10350
+ export namespace GetDeploymentHasType$ {
10351
+ /** @deprecated use `GetDeploymentHasType$inboundSchema` instead. */
10352
+ export const inboundSchema = GetDeploymentHasType$inboundSchema;
10353
+ /** @deprecated use `GetDeploymentHasType$outboundSchema` instead. */
10354
+ export const outboundSchema = GetDeploymentHasType$outboundSchema;
10355
10355
  }
10356
10356
 
10357
10357
  /** @internal */
@@ -10571,7 +10571,7 @@ export const GetDeploymentHas1$inboundSchema: z.ZodType<
10571
10571
  z.ZodTypeDef,
10572
10572
  unknown
10573
10573
  > = z.object({
10574
- type: GetDeploymentHasDeploymentsType$inboundSchema,
10574
+ type: GetDeploymentHasType$inboundSchema,
10575
10575
  value: z.union([
10576
10576
  z.lazy(() => GetDeploymentValueDeploymentsResponse2002$inboundSchema),
10577
10577
  z.string(),
@@ -10590,7 +10590,7 @@ export const GetDeploymentHas1$outboundSchema: z.ZodType<
10590
10590
  z.ZodTypeDef,
10591
10591
  GetDeploymentHas1
10592
10592
  > = z.object({
10593
- type: GetDeploymentHasDeploymentsType$outboundSchema,
10593
+ type: GetDeploymentHasType$outboundSchema,
10594
10594
  value: z.union([
10595
10595
  z.lazy(() => GetDeploymentValueDeploymentsResponse2002$outboundSchema),
10596
10596
  z.string(),
@@ -34,6 +34,17 @@ export type GetDomainCreator = {
34
34
  id: string;
35
35
  };
36
36
 
37
+ /**
38
+ * Whether or not the domain is registered with Name.com. If set to `true`, the domain is registered with Name.com.
39
+ */
40
+ export const Registrar = {
41
+ New: "new",
42
+ } as const;
43
+ /**
44
+ * Whether or not the domain is registered with Name.com. If set to `true`, the domain is registered with Name.com.
45
+ */
46
+ export type Registrar = ClosedEnum<typeof Registrar>;
47
+
37
48
  /**
38
49
  * The type of service the domain is handled by. `external` if the DNS is externally handled, `zeit.world` if handled with Vercel, or `na` if the service is not available.
39
50
  */
@@ -69,6 +80,10 @@ export type GetDomainDomain = {
69
80
  * An object containing information of the domain creator, including the user's id, username, and email.
70
81
  */
71
82
  creator: GetDomainCreator;
83
+ /**
84
+ * Whether or not the domain is registered with Name.com. If set to `true`, the domain is registered with Name.com.
85
+ */
86
+ registrar?: Registrar | undefined;
72
87
  teamId: string | null;
73
88
  /**
74
89
  * If it was purchased through Vercel, the timestamp in milliseconds when it was purchased.
@@ -246,6 +261,25 @@ export function getDomainCreatorFromJSON(
246
261
  );
247
262
  }
248
263
 
264
+ /** @internal */
265
+ export const Registrar$inboundSchema: z.ZodNativeEnum<typeof Registrar> = z
266
+ .nativeEnum(Registrar);
267
+
268
+ /** @internal */
269
+ export const Registrar$outboundSchema: z.ZodNativeEnum<typeof Registrar> =
270
+ Registrar$inboundSchema;
271
+
272
+ /**
273
+ * @internal
274
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
275
+ */
276
+ export namespace Registrar$ {
277
+ /** @deprecated use `Registrar$inboundSchema` instead. */
278
+ export const inboundSchema = Registrar$inboundSchema;
279
+ /** @deprecated use `Registrar$outboundSchema` instead. */
280
+ export const outboundSchema = Registrar$outboundSchema;
281
+ }
282
+
249
283
  /** @internal */
250
284
  export const ServiceType$inboundSchema: z.ZodNativeEnum<typeof ServiceType> = z
251
285
  .nativeEnum(ServiceType);
@@ -277,6 +311,7 @@ export const GetDomainDomain$inboundSchema: z.ZodType<
277
311
  intendedNameservers: z.array(z.string()),
278
312
  customNameservers: z.array(z.string()).optional(),
279
313
  creator: z.lazy(() => GetDomainCreator$inboundSchema),
314
+ registrar: Registrar$inboundSchema.optional(),
280
315
  teamId: z.nullable(z.string()),
281
316
  boughtAt: z.nullable(z.number()),
282
317
  name: z.string(),
@@ -299,6 +334,7 @@ export type GetDomainDomain$Outbound = {
299
334
  intendedNameservers: Array<string>;
300
335
  customNameservers?: Array<string> | undefined;
301
336
  creator: GetDomainCreator$Outbound;
337
+ registrar?: string | undefined;
302
338
  teamId: string | null;
303
339
  boughtAt: number | null;
304
340
  name: string;
@@ -325,6 +361,7 @@ export const GetDomainDomain$outboundSchema: z.ZodType<
325
361
  intendedNameservers: z.array(z.string()),
326
362
  customNameservers: z.array(z.string()).optional(),
327
363
  creator: z.lazy(() => GetDomainCreator$outboundSchema),
364
+ registrar: Registrar$outboundSchema.optional(),
328
365
  teamId: z.nullable(z.string()),
329
366
  boughtAt: z.nullable(z.number()),
330
367
  name: z.string(),
@@ -48,6 +48,17 @@ export type GetDomainsCreator = {
48
48
  id: string;
49
49
  };
50
50
 
51
+ /**
52
+ * Whether or not the domain is registered with Name.com. If set to `true`, the domain is registered with Name.com.
53
+ */
54
+ export const GetDomainsRegistrar = {
55
+ New: "new",
56
+ } as const;
57
+ /**
58
+ * Whether or not the domain is registered with Name.com. If set to `true`, the domain is registered with Name.com.
59
+ */
60
+ export type GetDomainsRegistrar = ClosedEnum<typeof GetDomainsRegistrar>;
61
+
51
62
  /**
52
63
  * The type of service the domain is handled by. `external` if the DNS is externally handled, `zeit.world` if handled with Vercel, or `na` if the service is not available.
53
64
  */
@@ -82,6 +93,10 @@ export type Domains = {
82
93
  * An object containing information of the domain creator, including the user's id, username, and email.
83
94
  */
84
95
  creator: GetDomainsCreator;
96
+ /**
97
+ * Whether or not the domain is registered with Name.com. If set to `true`, the domain is registered with Name.com.
98
+ */
99
+ registrar?: GetDomainsRegistrar | undefined;
85
100
  teamId: string | null;
86
101
  /**
87
102
  * Timestamp in milliseconds when the domain was created in the registry.
@@ -269,6 +284,27 @@ export function getDomainsCreatorFromJSON(
269
284
  );
270
285
  }
271
286
 
287
+ /** @internal */
288
+ export const GetDomainsRegistrar$inboundSchema: z.ZodNativeEnum<
289
+ typeof GetDomainsRegistrar
290
+ > = z.nativeEnum(GetDomainsRegistrar);
291
+
292
+ /** @internal */
293
+ export const GetDomainsRegistrar$outboundSchema: z.ZodNativeEnum<
294
+ typeof GetDomainsRegistrar
295
+ > = GetDomainsRegistrar$inboundSchema;
296
+
297
+ /**
298
+ * @internal
299
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
300
+ */
301
+ export namespace GetDomainsRegistrar$ {
302
+ /** @deprecated use `GetDomainsRegistrar$inboundSchema` instead. */
303
+ export const inboundSchema = GetDomainsRegistrar$inboundSchema;
304
+ /** @deprecated use `GetDomainsRegistrar$outboundSchema` instead. */
305
+ export const outboundSchema = GetDomainsRegistrar$outboundSchema;
306
+ }
307
+
272
308
  /** @internal */
273
309
  export const GetDomainsServiceType$inboundSchema: z.ZodNativeEnum<
274
310
  typeof GetDomainsServiceType
@@ -298,6 +334,7 @@ export const Domains$inboundSchema: z.ZodType<Domains, z.ZodTypeDef, unknown> =
298
334
  intendedNameservers: z.array(z.string()),
299
335
  customNameservers: z.array(z.string()).optional(),
300
336
  creator: z.lazy(() => GetDomainsCreator$inboundSchema),
337
+ registrar: GetDomainsRegistrar$inboundSchema.optional(),
301
338
  teamId: z.nullable(z.string()),
302
339
  createdAt: z.number(),
303
340
  boughtAt: z.nullable(z.number()),
@@ -319,6 +356,7 @@ export type Domains$Outbound = {
319
356
  intendedNameservers: Array<string>;
320
357
  customNameservers?: Array<string> | undefined;
321
358
  creator: GetDomainsCreator$Outbound;
359
+ registrar?: string | undefined;
322
360
  teamId: string | null;
323
361
  createdAt: number;
324
362
  boughtAt: number | null;
@@ -344,6 +382,7 @@ export const Domains$outboundSchema: z.ZodType<
344
382
  intendedNameservers: z.array(z.string()),
345
383
  customNameservers: z.array(z.string()).optional(),
346
384
  creator: z.lazy(() => GetDomainsCreator$outboundSchema),
385
+ registrar: GetDomainsRegistrar$outboundSchema.optional(),
347
386
  teamId: z.nullable(z.string()),
348
387
  createdAt: z.number(),
349
388
  boughtAt: z.nullable(z.number()),