@vercel/sdk 1.18.1 → 1.18.2

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 (113) hide show
  1. package/README.md +51 -53
  2. package/bin/mcp-server.js +1734 -1643
  3. package/bin/mcp-server.js.map +23 -26
  4. package/esm/__tests__/domains.test.js +10 -27
  5. package/esm/__tests__/domains.test.js.map +1 -1
  6. package/esm/__tests__/edgeconfig.test.js +6 -6
  7. package/esm/__tests__/edgeconfig.test.js.map +1 -1
  8. package/esm/__tests__/integrations.test.js +1 -1
  9. package/esm/__tests__/security.test.js +4 -4
  10. package/esm/__tests__/security.test.js.map +1 -1
  11. package/esm/funcs/integrationsGetBillingPlans.js +1 -0
  12. package/esm/funcs/integrationsGetBillingPlans.js.map +1 -1
  13. package/esm/lib/config.d.ts +3 -3
  14. package/esm/lib/config.js +3 -3
  15. package/esm/mcp-server/mcp-server.js +1 -1
  16. package/esm/mcp-server/server.d.ts.map +1 -1
  17. package/esm/mcp-server/server.js +1 -3
  18. package/esm/mcp-server/server.js.map +1 -1
  19. package/esm/models/authuser.d.ts +5 -0
  20. package/esm/models/authuser.d.ts.map +1 -1
  21. package/esm/models/authuser.js +2 -0
  22. package/esm/models/authuser.js.map +1 -1
  23. package/esm/models/canceldeploymentop.d.ts +2 -2
  24. package/esm/models/canceldeploymentop.d.ts.map +1 -1
  25. package/esm/models/canceldeploymentop.js +2 -2
  26. package/esm/models/canceldeploymentop.js.map +1 -1
  27. package/esm/models/createdeploymentop.d.ts +2 -2
  28. package/esm/models/createdeploymentop.d.ts.map +1 -1
  29. package/esm/models/createdeploymentop.js +2 -2
  30. package/esm/models/createdeploymentop.js.map +1 -1
  31. package/esm/models/createintegrationstoredirectop.d.ts +220 -152
  32. package/esm/models/createintegrationstoredirectop.d.ts.map +1 -1
  33. package/esm/models/createintegrationstoredirectop.js +296 -218
  34. package/esm/models/createintegrationstoredirectop.js.map +1 -1
  35. package/esm/models/createprojectop.d.ts +26 -4
  36. package/esm/models/createprojectop.d.ts.map +1 -1
  37. package/esm/models/createprojectop.js +23 -4
  38. package/esm/models/createprojectop.js.map +1 -1
  39. package/esm/models/getbillingplansop.d.ts +2 -0
  40. package/esm/models/getbillingplansop.d.ts.map +1 -1
  41. package/esm/models/getbillingplansop.js +2 -0
  42. package/esm/models/getbillingplansop.js.map +1 -1
  43. package/esm/models/getconfigurationop.d.ts +61 -1
  44. package/esm/models/getconfigurationop.d.ts.map +1 -1
  45. package/esm/models/getconfigurationop.js +44 -1
  46. package/esm/models/getconfigurationop.js.map +1 -1
  47. package/esm/models/getconfigurationproductsop.d.ts +200 -200
  48. package/esm/models/getconfigurationproductsop.js +290 -290
  49. package/esm/models/getconfigurationsop.d.ts +60 -0
  50. package/esm/models/getconfigurationsop.d.ts.map +1 -1
  51. package/esm/models/getconfigurationsop.js +43 -0
  52. package/esm/models/getconfigurationsop.js.map +1 -1
  53. package/esm/models/getdeploymentop.d.ts +4 -4
  54. package/esm/models/getdeploymentop.d.ts.map +1 -1
  55. package/esm/models/getdeploymentop.js +4 -4
  56. package/esm/models/getdeploymentop.js.map +1 -1
  57. package/esm/models/getorderop.d.ts +126 -42
  58. package/esm/models/getorderop.d.ts.map +1 -1
  59. package/esm/models/getorderop.js +138 -24
  60. package/esm/models/getorderop.js.map +1 -1
  61. package/esm/models/getprojectsop.d.ts +21 -4
  62. package/esm/models/getprojectsop.d.ts.map +1 -1
  63. package/esm/models/getprojectsop.js +21 -4
  64. package/esm/models/getprojectsop.js.map +1 -1
  65. package/esm/models/updateinstallationop.d.ts +18 -0
  66. package/esm/models/updateinstallationop.d.ts.map +1 -1
  67. package/esm/models/updateinstallationop.js +17 -0
  68. package/esm/models/updateinstallationop.js.map +1 -1
  69. package/esm/models/updateprojectdatacacheop.d.ts +21 -4
  70. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  71. package/esm/models/updateprojectdatacacheop.js +21 -4
  72. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  73. package/esm/models/updateprojectop.d.ts +26 -4
  74. package/esm/models/updateprojectop.d.ts.map +1 -1
  75. package/esm/models/updateprojectop.js +23 -4
  76. package/esm/models/updateprojectop.js.map +1 -1
  77. package/esm/models/userevent.d.ts +38 -0
  78. package/esm/models/userevent.d.ts.map +1 -1
  79. package/esm/models/userevent.js +34 -0
  80. package/esm/models/userevent.js.map +1 -1
  81. package/esm/sdk/domains.d.ts +0 -8
  82. package/esm/sdk/domains.d.ts.map +1 -1
  83. package/esm/sdk/domains.js +0 -10
  84. package/esm/sdk/domains.js.map +1 -1
  85. package/examples/package-lock.json +1 -1
  86. package/jsr.json +1 -1
  87. package/package.json +1 -1
  88. package/src/__tests__/domains.test.ts +12 -29
  89. package/src/__tests__/edgeconfig.test.ts +6 -6
  90. package/src/__tests__/integrations.test.ts +1 -1
  91. package/src/__tests__/security.test.ts +4 -4
  92. package/src/funcs/integrationsGetBillingPlans.ts +1 -0
  93. package/src/lib/config.ts +3 -3
  94. package/src/mcp-server/mcp-server.ts +1 -1
  95. package/src/mcp-server/server.ts +1 -3
  96. package/src/models/authuser.ts +7 -0
  97. package/src/models/canceldeploymentop.ts +4 -4
  98. package/src/models/createdeploymentop.ts +4 -4
  99. package/src/models/createintegrationstoredirectop.ts +704 -471
  100. package/src/models/createprojectop.ts +53 -8
  101. package/src/models/getbillingplansop.ts +4 -0
  102. package/src/models/getconfigurationop.ts +87 -1
  103. package/src/models/getconfigurationproductsop.ts +627 -627
  104. package/src/models/getconfigurationsop.ts +86 -0
  105. package/src/models/getdeploymentop.ts +8 -8
  106. package/src/models/getorderop.ts +469 -112
  107. package/src/models/getprojectsop.ts +46 -8
  108. package/src/models/updateinstallationop.ts +30 -0
  109. package/src/models/updateprojectdatacacheop.ts +46 -8
  110. package/src/models/updateprojectop.ts +53 -8
  111. package/src/models/userevent.ts +80 -0
  112. package/src/sdk/domains.ts +0 -22
  113. package/vercel-spec.json +480 -258
@@ -1344,6 +1344,7 @@ export type OneHundredAndTwentyTwo = {
1344
1344
  slug: string;
1345
1345
  teamId: string;
1346
1346
  by: string;
1347
+ byUid?: string | undefined;
1347
1348
  reasons?: Array<Reasons> | undefined;
1348
1349
  removedUsers?: { [k: string]: PayloadRemovedUsers } | undefined;
1349
1350
  removedMemberCount?: number | undefined;
@@ -2010,6 +2011,7 @@ export const UserEventPayload93Action = {
2010
2011
  Enabled: "enabled",
2011
2012
  Disabled: "disabled",
2012
2013
  Regenerated: "regenerated",
2014
+ Updated: "updated",
2013
2015
  } as const;
2014
2016
  export type UserEventPayload93Action = ClosedEnum<
2015
2017
  typeof UserEventPayload93Action
@@ -2021,6 +2023,7 @@ export type UserEventPayload93Action = ClosedEnum<
2021
2023
  export type NinetyThree = {
2022
2024
  projectName: string;
2023
2025
  action: UserEventPayload93Action;
2026
+ envVarName?: string | undefined;
2024
2027
  };
2025
2028
 
2026
2029
  export type Paths = {
@@ -2154,8 +2157,22 @@ export const DeploymentType = {
2154
2157
  } as const;
2155
2158
  export type DeploymentType = ClosedEnum<typeof DeploymentType>;
2156
2159
 
2160
+ export const Cve55182MigrationAppliedFrom = {
2161
+ All: "all",
2162
+ Preview: "preview",
2163
+ ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
2164
+ AllExceptCustomDomains: "all_except_custom_domains",
2165
+ } as const;
2166
+ export type Cve55182MigrationAppliedFrom = ClosedEnum<
2167
+ typeof Cve55182MigrationAppliedFrom
2168
+ >;
2169
+
2157
2170
  export type SsoProtection1 = {
2158
2171
  deploymentType: DeploymentType;
2172
+ cve55182MigrationAppliedFrom?:
2173
+ | Cve55182MigrationAppliedFrom
2174
+ | null
2175
+ | undefined;
2159
2176
  };
2160
2177
 
2161
2178
  export type PayloadSsoProtection = SsoProtection1 | SsoProtection2;
@@ -2178,8 +2195,22 @@ export type OldSsoProtectionDeploymentType = ClosedEnum<
2178
2195
  typeof OldSsoProtectionDeploymentType
2179
2196
  >;
2180
2197
 
2198
+ export const OldSsoProtectionCve55182MigrationAppliedFrom = {
2199
+ All: "all",
2200
+ Preview: "preview",
2201
+ ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
2202
+ AllExceptCustomDomains: "all_except_custom_domains",
2203
+ } as const;
2204
+ export type OldSsoProtectionCve55182MigrationAppliedFrom = ClosedEnum<
2205
+ typeof OldSsoProtectionCve55182MigrationAppliedFrom
2206
+ >;
2207
+
2181
2208
  export type OldSsoProtection1 = {
2182
2209
  deploymentType: OldSsoProtectionDeploymentType;
2210
+ cve55182MigrationAppliedFrom?:
2211
+ | OldSsoProtectionCve55182MigrationAppliedFrom
2212
+ | null
2213
+ | undefined;
2183
2214
  };
2184
2215
 
2185
2216
  export type OldSsoProtection = OldSsoProtection1 | OldSsoProtection2;
@@ -2573,6 +2604,10 @@ export type Abuse = {
2573
2604
  * Since November 2021. Guides the abuse scanner in build container.
2574
2605
  */
2575
2606
  scanner?: string | undefined;
2607
+ /**
2608
+ * Since December 2025. UTC timestamp string of when an auto-unblock is scheduled. Format: "Wed, 03 Dec 2025 20:32:13 GMT"
2609
+ */
2610
+ scheduledUnblockAt?: string | undefined;
2576
2611
  /**
2577
2612
  * Since November 2021
2578
2613
  */
@@ -2737,6 +2772,7 @@ export type PayloadResourceConfig = {
2737
2772
  customEnvironmentsPerProject?: number | undefined;
2738
2773
  buildMachine?: PayloadBuildMachine | undefined;
2739
2774
  security?: PayloadSecurity | undefined;
2775
+ bulkRedirectsFreeLimitOverride?: number | undefined;
2740
2776
  };
2741
2777
 
2742
2778
  export type ResourceLimits = {
@@ -10991,6 +11027,7 @@ export const OneHundredAndTwentyTwo$inboundSchema: z.ZodType<
10991
11027
  slug: z.string(),
10992
11028
  teamId: z.string(),
10993
11029
  by: z.string(),
11030
+ byUid: z.string().optional(),
10994
11031
  reasons: z.array(z.lazy(() => Reasons$inboundSchema)).optional(),
10995
11032
  removedUsers: z.record(z.lazy(() => PayloadRemovedUsers$inboundSchema))
10996
11033
  .optional(),
@@ -11002,6 +11039,7 @@ export type OneHundredAndTwentyTwo$Outbound = {
11002
11039
  slug: string;
11003
11040
  teamId: string;
11004
11041
  by: string;
11042
+ byUid?: string | undefined;
11005
11043
  reasons?: Array<Reasons$Outbound> | undefined;
11006
11044
  removedUsers?: { [k: string]: PayloadRemovedUsers$Outbound } | undefined;
11007
11045
  removedMemberCount?: number | undefined;
@@ -11017,6 +11055,7 @@ export const OneHundredAndTwentyTwo$outboundSchema: z.ZodType<
11017
11055
  slug: z.string(),
11018
11056
  teamId: z.string(),
11019
11057
  by: z.string(),
11058
+ byUid: z.string().optional(),
11020
11059
  reasons: z.array(z.lazy(() => Reasons$outboundSchema)).optional(),
11021
11060
  removedUsers: z.record(z.lazy(() => PayloadRemovedUsers$outboundSchema))
11022
11061
  .optional(),
@@ -13482,11 +13521,13 @@ export const NinetyThree$inboundSchema: z.ZodType<
13482
13521
  > = z.object({
13483
13522
  projectName: z.string(),
13484
13523
  action: UserEventPayload93Action$inboundSchema,
13524
+ envVarName: z.string().optional(),
13485
13525
  });
13486
13526
  /** @internal */
13487
13527
  export type NinetyThree$Outbound = {
13488
13528
  projectName: string;
13489
13529
  action: string;
13530
+ envVarName?: string | undefined;
13490
13531
  };
13491
13532
 
13492
13533
  /** @internal */
@@ -13497,6 +13538,7 @@ export const NinetyThree$outboundSchema: z.ZodType<
13497
13538
  > = z.object({
13498
13539
  projectName: z.string(),
13499
13540
  action: UserEventPayload93Action$outboundSchema,
13541
+ envVarName: z.string().optional(),
13500
13542
  });
13501
13543
 
13502
13544
  export function ninetyThreeToJSON(ninetyThree: NinetyThree): string {
@@ -14039,6 +14081,15 @@ export const DeploymentType$outboundSchema: z.ZodNativeEnum<
14039
14081
  typeof DeploymentType
14040
14082
  > = DeploymentType$inboundSchema;
14041
14083
 
14084
+ /** @internal */
14085
+ export const Cve55182MigrationAppliedFrom$inboundSchema: z.ZodNativeEnum<
14086
+ typeof Cve55182MigrationAppliedFrom
14087
+ > = z.nativeEnum(Cve55182MigrationAppliedFrom);
14088
+ /** @internal */
14089
+ export const Cve55182MigrationAppliedFrom$outboundSchema: z.ZodNativeEnum<
14090
+ typeof Cve55182MigrationAppliedFrom
14091
+ > = Cve55182MigrationAppliedFrom$inboundSchema;
14092
+
14042
14093
  /** @internal */
14043
14094
  export const SsoProtection1$inboundSchema: z.ZodType<
14044
14095
  SsoProtection1,
@@ -14046,10 +14097,14 @@ export const SsoProtection1$inboundSchema: z.ZodType<
14046
14097
  unknown
14047
14098
  > = z.object({
14048
14099
  deploymentType: DeploymentType$inboundSchema,
14100
+ cve55182MigrationAppliedFrom: z.nullable(
14101
+ Cve55182MigrationAppliedFrom$inboundSchema,
14102
+ ).optional(),
14049
14103
  });
14050
14104
  /** @internal */
14051
14105
  export type SsoProtection1$Outbound = {
14052
14106
  deploymentType: string;
14107
+ cve55182MigrationAppliedFrom?: string | null | undefined;
14053
14108
  };
14054
14109
 
14055
14110
  /** @internal */
@@ -14059,6 +14114,9 @@ export const SsoProtection1$outboundSchema: z.ZodType<
14059
14114
  SsoProtection1
14060
14115
  > = z.object({
14061
14116
  deploymentType: DeploymentType$outboundSchema,
14117
+ cve55182MigrationAppliedFrom: z.nullable(
14118
+ Cve55182MigrationAppliedFrom$outboundSchema,
14119
+ ).optional(),
14062
14120
  });
14063
14121
 
14064
14122
  export function ssoProtection1ToJSON(ssoProtection1: SsoProtection1): string {
@@ -14131,6 +14189,15 @@ export const OldSsoProtectionDeploymentType$outboundSchema: z.ZodNativeEnum<
14131
14189
  typeof OldSsoProtectionDeploymentType
14132
14190
  > = OldSsoProtectionDeploymentType$inboundSchema;
14133
14191
 
14192
+ /** @internal */
14193
+ export const OldSsoProtectionCve55182MigrationAppliedFrom$inboundSchema:
14194
+ z.ZodNativeEnum<typeof OldSsoProtectionCve55182MigrationAppliedFrom> = z
14195
+ .nativeEnum(OldSsoProtectionCve55182MigrationAppliedFrom);
14196
+ /** @internal */
14197
+ export const OldSsoProtectionCve55182MigrationAppliedFrom$outboundSchema:
14198
+ z.ZodNativeEnum<typeof OldSsoProtectionCve55182MigrationAppliedFrom> =
14199
+ OldSsoProtectionCve55182MigrationAppliedFrom$inboundSchema;
14200
+
14134
14201
  /** @internal */
14135
14202
  export const OldSsoProtection1$inboundSchema: z.ZodType<
14136
14203
  OldSsoProtection1,
@@ -14138,10 +14205,14 @@ export const OldSsoProtection1$inboundSchema: z.ZodType<
14138
14205
  unknown
14139
14206
  > = z.object({
14140
14207
  deploymentType: OldSsoProtectionDeploymentType$inboundSchema,
14208
+ cve55182MigrationAppliedFrom: z.nullable(
14209
+ OldSsoProtectionCve55182MigrationAppliedFrom$inboundSchema,
14210
+ ).optional(),
14141
14211
  });
14142
14212
  /** @internal */
14143
14213
  export type OldSsoProtection1$Outbound = {
14144
14214
  deploymentType: string;
14215
+ cve55182MigrationAppliedFrom?: string | null | undefined;
14145
14216
  };
14146
14217
 
14147
14218
  /** @internal */
@@ -14151,6 +14222,9 @@ export const OldSsoProtection1$outboundSchema: z.ZodType<
14151
14222
  OldSsoProtection1
14152
14223
  > = z.object({
14153
14224
  deploymentType: OldSsoProtectionDeploymentType$outboundSchema,
14225
+ cve55182MigrationAppliedFrom: z.nullable(
14226
+ OldSsoProtectionCve55182MigrationAppliedFrom$outboundSchema,
14227
+ ).optional(),
14154
14228
  });
14155
14229
 
14156
14230
  export function oldSsoProtection1ToJSON(
@@ -15822,6 +15896,7 @@ export const Abuse$inboundSchema: z.ZodType<Abuse, z.ZodTypeDef, unknown> = z
15822
15896
  gitLineageBlocks: z.number().optional(),
15823
15897
  gitLineageBlocksDry: z.number().optional(),
15824
15898
  scanner: z.string().optional(),
15899
+ scheduledUnblockAt: z.string().optional(),
15825
15900
  updatedAt: z.number(),
15826
15901
  creationUserAgent: z.string().optional(),
15827
15902
  creationIp: z.string().optional(),
@@ -15835,6 +15910,7 @@ export type Abuse$Outbound = {
15835
15910
  gitLineageBlocks?: number | undefined;
15836
15911
  gitLineageBlocksDry?: number | undefined;
15837
15912
  scanner?: string | undefined;
15913
+ scheduledUnblockAt?: string | undefined;
15838
15914
  updatedAt: number;
15839
15915
  creationUserAgent?: string | undefined;
15840
15916
  creationIp?: string | undefined;
@@ -15853,6 +15929,7 @@ export const Abuse$outboundSchema: z.ZodType<
15853
15929
  gitLineageBlocks: z.number().optional(),
15854
15930
  gitLineageBlocksDry: z.number().optional(),
15855
15931
  scanner: z.string().optional(),
15932
+ scheduledUnblockAt: z.string().optional(),
15856
15933
  updatedAt: z.number(),
15857
15934
  creationUserAgent: z.string().optional(),
15858
15935
  creationIp: z.string().optional(),
@@ -16702,6 +16779,7 @@ export const PayloadResourceConfig$inboundSchema: z.ZodType<
16702
16779
  customEnvironmentsPerProject: z.number().optional(),
16703
16780
  buildMachine: z.lazy(() => PayloadBuildMachine$inboundSchema).optional(),
16704
16781
  security: z.lazy(() => PayloadSecurity$inboundSchema).optional(),
16782
+ bulkRedirectsFreeLimitOverride: z.number().optional(),
16705
16783
  });
16706
16784
  /** @internal */
16707
16785
  export type PayloadResourceConfig$Outbound = {
@@ -16732,6 +16810,7 @@ export type PayloadResourceConfig$Outbound = {
16732
16810
  customEnvironmentsPerProject?: number | undefined;
16733
16811
  buildMachine?: PayloadBuildMachine$Outbound | undefined;
16734
16812
  security?: PayloadSecurity$Outbound | undefined;
16813
+ bulkRedirectsFreeLimitOverride?: number | undefined;
16735
16814
  };
16736
16815
 
16737
16816
  /** @internal */
@@ -16768,6 +16847,7 @@ export const PayloadResourceConfig$outboundSchema: z.ZodType<
16768
16847
  customEnvironmentsPerProject: z.number().optional(),
16769
16848
  buildMachine: z.lazy(() => PayloadBuildMachine$outboundSchema).optional(),
16770
16849
  security: z.lazy(() => PayloadSecurity$outboundSchema).optional(),
16850
+ bulkRedirectsFreeLimitOverride: z.number().optional(),
16771
16851
  });
16772
16852
 
16773
16853
  export function payloadResourceConfigToJSON(
@@ -10,7 +10,6 @@ import { domainsDeleteDomain } from "../funcs/domainsDeleteDomain.js";
10
10
  import { domainsGetDomain } from "../funcs/domainsGetDomain.js";
11
11
  import { domainsGetDomainConfig } from "../funcs/domainsGetDomainConfig.js";
12
12
  import { domainsGetDomains } from "../funcs/domainsGetDomains.js";
13
- import { domainsGetDomainTransfer } from "../funcs/domainsGetDomainTransfer.js";
14
13
  import { domainsPatchDomain } from "../funcs/domainsPatchDomain.js";
15
14
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
16
15
  import { BuyDomainRequest, BuyDomainResponse } from "../models/buydomainop.js";
@@ -42,10 +41,6 @@ import {
42
41
  GetDomainsRequest,
43
42
  GetDomainsResponseBody,
44
43
  } from "../models/getdomainsop.js";
45
- import {
46
- GetDomainTransferRequest,
47
- GetDomainTransferResponseBody,
48
- } from "../models/getdomaintransferop.js";
49
44
  import {
50
45
  PatchDomainRequest,
51
46
  PatchDomainResponseBody,
@@ -104,23 +99,6 @@ export class Domains extends ClientSDK {
104
99
  ));
105
100
  }
106
101
 
107
- /**
108
- * Get domain transfer info (deprecated)
109
- *
110
- * @remarks
111
- * This endpoint is deprecated and replaced with the endpoint [Get a domain's transfer status](https://vercel.com/docs/rest-api/reference/endpoints/domains-registrar/get-a-domains-transfer-status). Fetch domain transfer availability or transfer status if a transfer is in progress.
112
- */
113
- async getDomainTransfer(
114
- request: GetDomainTransferRequest,
115
- options?: RequestOptions,
116
- ): Promise<GetDomainTransferResponseBody> {
117
- return unwrapAsync(domainsGetDomainTransfer(
118
- this,
119
- request,
120
- options,
121
- ));
122
- }
123
-
124
102
  /**
125
103
  * Get a Domain's configuration
126
104
  *