@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
@@ -679,7 +679,7 @@ export type GetProjectsOidcTokenClaims = {
679
679
  project: string;
680
680
  projectId: string;
681
681
  environment: string;
682
- plan: string;
682
+ plan?: string | undefined;
683
683
  };
684
684
 
685
685
  export const GetProjectsPlan = {
@@ -1119,8 +1119,22 @@ export type GetProjectsDeploymentType = ClosedEnum<
1119
1119
  typeof GetProjectsDeploymentType
1120
1120
  >;
1121
1121
 
1122
+ export const GetProjectsCve55182MigrationAppliedFrom = {
1123
+ Preview: "preview",
1124
+ All: "all",
1125
+ ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
1126
+ AllExceptCustomDomains: "all_except_custom_domains",
1127
+ } as const;
1128
+ export type GetProjectsCve55182MigrationAppliedFrom = ClosedEnum<
1129
+ typeof GetProjectsCve55182MigrationAppliedFrom
1130
+ >;
1131
+
1122
1132
  export type GetProjectsSsoProtection = {
1123
1133
  deploymentType: GetProjectsDeploymentType;
1134
+ cve55182MigrationAppliedFrom?:
1135
+ | GetProjectsCve55182MigrationAppliedFrom
1136
+ | null
1137
+ | undefined;
1124
1138
  };
1125
1139
 
1126
1140
  export type GetProjectsProjectsAliasAssigned = number | boolean;
@@ -1201,7 +1215,7 @@ export type GetProjectsProjectsOidcTokenClaims = {
1201
1215
  project: string;
1202
1216
  projectId: string;
1203
1217
  environment: string;
1204
- plan: string;
1218
+ plan?: string | undefined;
1205
1219
  };
1206
1220
 
1207
1221
  export const GetProjectsProjectsPlan = {
@@ -2030,6 +2044,7 @@ export type GetProjectsDismissedToasts = {
2030
2044
  export type GetProjectsProjects = {
2031
2045
  accountId: string;
2032
2046
  analytics?: GetProjectsAnalytics | undefined;
2047
+ appliedCve55182Migration?: boolean | undefined;
2033
2048
  speedInsights?: GetProjectsSpeedInsights | undefined;
2034
2049
  autoExposeSystemEnvs?: boolean | undefined;
2035
2050
  autoAssignCustomDomains?: boolean | undefined;
@@ -2095,6 +2110,7 @@ export type GetProjectsProjects = {
2095
2110
  serverlessFunctionZeroConfigFailover?: boolean | undefined;
2096
2111
  skewProtectionBoundaryAt?: number | undefined;
2097
2112
  skewProtectionMaxAge?: number | undefined;
2113
+ skewProtectionAllowedDomains?: Array<string> | undefined;
2098
2114
  skipGitConnectDuringLink?: boolean | undefined;
2099
2115
  staticIps?: GetProjectsStaticIps | undefined;
2100
2116
  sourceFilesOutsideRootDirectory?: boolean | undefined;
@@ -4293,7 +4309,7 @@ export const GetProjectsOidcTokenClaims$inboundSchema: z.ZodType<
4293
4309
  project: z.string(),
4294
4310
  project_id: z.string(),
4295
4311
  environment: z.string(),
4296
- plan: z.string(),
4312
+ plan: z.string().optional(),
4297
4313
  }).transform((v) => {
4298
4314
  return remap$(v, {
4299
4315
  "owner_id": "ownerId",
@@ -4311,7 +4327,7 @@ export type GetProjectsOidcTokenClaims$Outbound = {
4311
4327
  project: string;
4312
4328
  project_id: string;
4313
4329
  environment: string;
4314
- plan: string;
4330
+ plan?: string | undefined;
4315
4331
  };
4316
4332
 
4317
4333
  /** @internal */
@@ -4329,7 +4345,7 @@ export const GetProjectsOidcTokenClaims$outboundSchema: z.ZodType<
4329
4345
  project: z.string(),
4330
4346
  projectId: z.string(),
4331
4347
  environment: z.string(),
4332
- plan: z.string(),
4348
+ plan: z.string().optional(),
4333
4349
  }).transform((v) => {
4334
4350
  return remap$(v, {
4335
4351
  ownerId: "owner_id",
@@ -5950,6 +5966,15 @@ export const GetProjectsDeploymentType$outboundSchema: z.ZodNativeEnum<
5950
5966
  typeof GetProjectsDeploymentType
5951
5967
  > = GetProjectsDeploymentType$inboundSchema;
5952
5968
 
5969
+ /** @internal */
5970
+ export const GetProjectsCve55182MigrationAppliedFrom$inboundSchema:
5971
+ z.ZodNativeEnum<typeof GetProjectsCve55182MigrationAppliedFrom> = z
5972
+ .nativeEnum(GetProjectsCve55182MigrationAppliedFrom);
5973
+ /** @internal */
5974
+ export const GetProjectsCve55182MigrationAppliedFrom$outboundSchema:
5975
+ z.ZodNativeEnum<typeof GetProjectsCve55182MigrationAppliedFrom> =
5976
+ GetProjectsCve55182MigrationAppliedFrom$inboundSchema;
5977
+
5953
5978
  /** @internal */
5954
5979
  export const GetProjectsSsoProtection$inboundSchema: z.ZodType<
5955
5980
  GetProjectsSsoProtection,
@@ -5957,10 +5982,14 @@ export const GetProjectsSsoProtection$inboundSchema: z.ZodType<
5957
5982
  unknown
5958
5983
  > = z.object({
5959
5984
  deploymentType: GetProjectsDeploymentType$inboundSchema,
5985
+ cve55182MigrationAppliedFrom: z.nullable(
5986
+ GetProjectsCve55182MigrationAppliedFrom$inboundSchema,
5987
+ ).optional(),
5960
5988
  });
5961
5989
  /** @internal */
5962
5990
  export type GetProjectsSsoProtection$Outbound = {
5963
5991
  deploymentType: string;
5992
+ cve55182MigrationAppliedFrom?: string | null | undefined;
5964
5993
  };
5965
5994
 
5966
5995
  /** @internal */
@@ -5970,6 +5999,9 @@ export const GetProjectsSsoProtection$outboundSchema: z.ZodType<
5970
5999
  GetProjectsSsoProtection
5971
6000
  > = z.object({
5972
6001
  deploymentType: GetProjectsDeploymentType$outboundSchema,
6002
+ cve55182MigrationAppliedFrom: z.nullable(
6003
+ GetProjectsCve55182MigrationAppliedFrom$outboundSchema,
6004
+ ).optional(),
5973
6005
  });
5974
6006
 
5975
6007
  export function getProjectsSsoProtectionToJSON(
@@ -6264,7 +6296,7 @@ export const GetProjectsProjectsOidcTokenClaims$inboundSchema: z.ZodType<
6264
6296
  project: z.string(),
6265
6297
  project_id: z.string(),
6266
6298
  environment: z.string(),
6267
- plan: z.string(),
6299
+ plan: z.string().optional(),
6268
6300
  }).transform((v) => {
6269
6301
  return remap$(v, {
6270
6302
  "owner_id": "ownerId",
@@ -6282,7 +6314,7 @@ export type GetProjectsProjectsOidcTokenClaims$Outbound = {
6282
6314
  project: string;
6283
6315
  project_id: string;
6284
6316
  environment: string;
6285
- plan: string;
6317
+ plan?: string | undefined;
6286
6318
  };
6287
6319
 
6288
6320
  /** @internal */
@@ -6300,7 +6332,7 @@ export const GetProjectsProjectsOidcTokenClaims$outboundSchema: z.ZodType<
6300
6332
  project: z.string(),
6301
6333
  projectId: z.string(),
6302
6334
  environment: z.string(),
6303
- plan: z.string(),
6335
+ plan: z.string().optional(),
6304
6336
  }).transform((v) => {
6305
6337
  return remap$(v, {
6306
6338
  ownerId: "owner_id",
@@ -10217,6 +10249,7 @@ export const GetProjectsProjects$inboundSchema: z.ZodType<
10217
10249
  > = z.object({
10218
10250
  accountId: z.string(),
10219
10251
  analytics: z.lazy(() => GetProjectsAnalytics$inboundSchema).optional(),
10252
+ appliedCve55182Migration: z.boolean().optional(),
10220
10253
  speedInsights: z.lazy(() => GetProjectsSpeedInsights$inboundSchema)
10221
10254
  .optional(),
10222
10255
  autoExposeSystemEnvs: z.boolean().optional(),
@@ -10290,6 +10323,7 @@ export const GetProjectsProjects$inboundSchema: z.ZodType<
10290
10323
  serverlessFunctionZeroConfigFailover: z.boolean().optional(),
10291
10324
  skewProtectionBoundaryAt: z.number().optional(),
10292
10325
  skewProtectionMaxAge: z.number().optional(),
10326
+ skewProtectionAllowedDomains: z.array(z.string()).optional(),
10293
10327
  skipGitConnectDuringLink: z.boolean().optional(),
10294
10328
  staticIps: z.lazy(() => GetProjectsStaticIps$inboundSchema).optional(),
10295
10329
  sourceFilesOutsideRootDirectory: z.boolean().optional(),
@@ -10355,6 +10389,7 @@ export const GetProjectsProjects$inboundSchema: z.ZodType<
10355
10389
  export type GetProjectsProjects$Outbound = {
10356
10390
  accountId: string;
10357
10391
  analytics?: GetProjectsAnalytics$Outbound | undefined;
10392
+ appliedCve55182Migration?: boolean | undefined;
10358
10393
  speedInsights?: GetProjectsSpeedInsights$Outbound | undefined;
10359
10394
  autoExposeSystemEnvs?: boolean | undefined;
10360
10395
  autoAssignCustomDomains?: boolean | undefined;
@@ -10419,6 +10454,7 @@ export type GetProjectsProjects$Outbound = {
10419
10454
  serverlessFunctionZeroConfigFailover?: boolean | undefined;
10420
10455
  skewProtectionBoundaryAt?: number | undefined;
10421
10456
  skewProtectionMaxAge?: number | undefined;
10457
+ skewProtectionAllowedDomains?: Array<string> | undefined;
10422
10458
  skipGitConnectDuringLink?: boolean | undefined;
10423
10459
  staticIps?: GetProjectsStaticIps$Outbound | undefined;
10424
10460
  sourceFilesOutsideRootDirectory?: boolean | undefined;
@@ -10478,6 +10514,7 @@ export const GetProjectsProjects$outboundSchema: z.ZodType<
10478
10514
  > = z.object({
10479
10515
  accountId: z.string(),
10480
10516
  analytics: z.lazy(() => GetProjectsAnalytics$outboundSchema).optional(),
10517
+ appliedCve55182Migration: z.boolean().optional(),
10481
10518
  speedInsights: z.lazy(() => GetProjectsSpeedInsights$outboundSchema)
10482
10519
  .optional(),
10483
10520
  autoExposeSystemEnvs: z.boolean().optional(),
@@ -10551,6 +10588,7 @@ export const GetProjectsProjects$outboundSchema: z.ZodType<
10551
10588
  serverlessFunctionZeroConfigFailover: z.boolean().optional(),
10552
10589
  skewProtectionBoundaryAt: z.number().optional(),
10553
10590
  skewProtectionMaxAge: z.number().optional(),
10591
+ skewProtectionAllowedDomains: z.array(z.string()).optional(),
10554
10592
  skipGitConnectDuringLink: z.boolean().optional(),
10555
10593
  staticIps: z.lazy(() => GetProjectsStaticIps$outboundSchema).optional(),
10556
10594
  sourceFilesOutsideRootDirectory: z.boolean().optional(),
@@ -12,6 +12,19 @@ import { ClosedEnum } from "../types/enums.js";
12
12
  import { Result as SafeParseResult } from "../types/fp.js";
13
13
  import { SDKValidationError } from "./sdkvalidationerror.js";
14
14
 
15
+ export const UpdateInstallationStatus = {
16
+ Ready: "ready",
17
+ Pending: "pending",
18
+ Onboarding: "onboarding",
19
+ Suspended: "suspended",
20
+ Resumed: "resumed",
21
+ Uninstalled: "uninstalled",
22
+ Error: "error",
23
+ } as const;
24
+ export type UpdateInstallationStatus = ClosedEnum<
25
+ typeof UpdateInstallationStatus
26
+ >;
27
+
15
28
  export const UpdateInstallationType = {
16
29
  Prepayment: "prepayment",
17
30
  Subscription: "subscription",
@@ -61,6 +74,8 @@ export type Notification1 = {
61
74
  export type Notification = Notification1 | string;
62
75
 
63
76
  export type UpdateInstallationRequestBody = {
77
+ status?: UpdateInstallationStatus | undefined;
78
+ externalId?: string | undefined;
64
79
  billingPlan?: BillingPlan | undefined;
65
80
  /**
66
81
  * A notification to display to your customer. Send `null` to clear the current notification.
@@ -73,6 +88,15 @@ export type UpdateInstallationRequest = {
73
88
  requestBody?: UpdateInstallationRequestBody | undefined;
74
89
  };
75
90
 
91
+ /** @internal */
92
+ export const UpdateInstallationStatus$inboundSchema: z.ZodNativeEnum<
93
+ typeof UpdateInstallationStatus
94
+ > = z.nativeEnum(UpdateInstallationStatus);
95
+ /** @internal */
96
+ export const UpdateInstallationStatus$outboundSchema: z.ZodNativeEnum<
97
+ typeof UpdateInstallationStatus
98
+ > = UpdateInstallationStatus$inboundSchema;
99
+
76
100
  /** @internal */
77
101
  export const UpdateInstallationType$inboundSchema: z.ZodNativeEnum<
78
102
  typeof UpdateInstallationType
@@ -320,12 +344,16 @@ export const UpdateInstallationRequestBody$inboundSchema: z.ZodType<
320
344
  z.ZodTypeDef,
321
345
  unknown
322
346
  > = z.object({
347
+ status: UpdateInstallationStatus$inboundSchema.optional(),
348
+ externalId: z.string().optional(),
323
349
  billingPlan: z.lazy(() => BillingPlan$inboundSchema).optional(),
324
350
  notification: z.union([z.lazy(() => Notification1$inboundSchema), z.string()])
325
351
  .optional(),
326
352
  });
327
353
  /** @internal */
328
354
  export type UpdateInstallationRequestBody$Outbound = {
355
+ status?: string | undefined;
356
+ externalId?: string | undefined;
329
357
  billingPlan?: BillingPlan$Outbound | undefined;
330
358
  notification?: Notification1$Outbound | string | undefined;
331
359
  };
@@ -336,6 +364,8 @@ export const UpdateInstallationRequestBody$outboundSchema: z.ZodType<
336
364
  z.ZodTypeDef,
337
365
  UpdateInstallationRequestBody
338
366
  > = z.object({
367
+ status: UpdateInstallationStatus$outboundSchema.optional(),
368
+ externalId: z.string().optional(),
339
369
  billingPlan: z.lazy(() => BillingPlan$outboundSchema).optional(),
340
370
  notification: z.union([
341
371
  z.lazy(() => Notification1$outboundSchema),
@@ -616,7 +616,7 @@ export type UpdateProjectDataCacheProjectsOidcTokenClaims = {
616
616
  project: string;
617
617
  projectId: string;
618
618
  environment: string;
619
- plan: string;
619
+ plan?: string | undefined;
620
620
  };
621
621
 
622
622
  export const UpdateProjectDataCacheProjectsPlan = {
@@ -1056,8 +1056,22 @@ export type UpdateProjectDataCacheDeploymentType = ClosedEnum<
1056
1056
  typeof UpdateProjectDataCacheDeploymentType
1057
1057
  >;
1058
1058
 
1059
+ export const UpdateProjectDataCacheCve55182MigrationAppliedFrom = {
1060
+ Preview: "preview",
1061
+ All: "all",
1062
+ ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
1063
+ AllExceptCustomDomains: "all_except_custom_domains",
1064
+ } as const;
1065
+ export type UpdateProjectDataCacheCve55182MigrationAppliedFrom = ClosedEnum<
1066
+ typeof UpdateProjectDataCacheCve55182MigrationAppliedFrom
1067
+ >;
1068
+
1059
1069
  export type UpdateProjectDataCacheSsoProtection = {
1060
1070
  deploymentType: UpdateProjectDataCacheDeploymentType;
1071
+ cve55182MigrationAppliedFrom?:
1072
+ | UpdateProjectDataCacheCve55182MigrationAppliedFrom
1073
+ | null
1074
+ | undefined;
1061
1075
  };
1062
1076
 
1063
1077
  export type UpdateProjectDataCacheAliasAssigned = number | boolean;
@@ -1139,7 +1153,7 @@ export type UpdateProjectDataCacheOidcTokenClaims = {
1139
1153
  project: string;
1140
1154
  projectId: string;
1141
1155
  environment: string;
1142
- plan: string;
1156
+ plan?: string | undefined;
1143
1157
  };
1144
1158
 
1145
1159
  export const UpdateProjectDataCachePlan = {
@@ -1962,6 +1976,7 @@ export type UpdateProjectDataCacheDismissedToasts = {
1962
1976
  export type UpdateProjectDataCacheResponseBody = {
1963
1977
  accountId: string;
1964
1978
  analytics?: Analytics | undefined;
1979
+ appliedCve55182Migration?: boolean | undefined;
1965
1980
  speedInsights?: SpeedInsights | undefined;
1966
1981
  autoExposeSystemEnvs?: boolean | undefined;
1967
1982
  autoAssignCustomDomains?: boolean | undefined;
@@ -2024,6 +2039,7 @@ export type UpdateProjectDataCacheResponseBody = {
2024
2039
  serverlessFunctionZeroConfigFailover?: boolean | undefined;
2025
2040
  skewProtectionBoundaryAt?: number | undefined;
2026
2041
  skewProtectionMaxAge?: number | undefined;
2042
+ skewProtectionAllowedDomains?: Array<string> | undefined;
2027
2043
  skipGitConnectDuringLink?: boolean | undefined;
2028
2044
  staticIps?: UpdateProjectDataCacheStaticIps | undefined;
2029
2045
  sourceFilesOutsideRootDirectory?: boolean | undefined;
@@ -4156,7 +4172,7 @@ export const UpdateProjectDataCacheProjectsOidcTokenClaims$inboundSchema:
4156
4172
  project: z.string(),
4157
4173
  project_id: z.string(),
4158
4174
  environment: z.string(),
4159
- plan: z.string(),
4175
+ plan: z.string().optional(),
4160
4176
  }).transform((v) => {
4161
4177
  return remap$(v, {
4162
4178
  "owner_id": "ownerId",
@@ -4174,7 +4190,7 @@ export type UpdateProjectDataCacheProjectsOidcTokenClaims$Outbound = {
4174
4190
  project: string;
4175
4191
  project_id: string;
4176
4192
  environment: string;
4177
- plan: string;
4193
+ plan?: string | undefined;
4178
4194
  };
4179
4195
 
4180
4196
  /** @internal */
@@ -4193,7 +4209,7 @@ export const UpdateProjectDataCacheProjectsOidcTokenClaims$outboundSchema:
4193
4209
  project: z.string(),
4194
4210
  projectId: z.string(),
4195
4211
  environment: z.string(),
4196
- plan: z.string(),
4212
+ plan: z.string().optional(),
4197
4213
  }).transform((v) => {
4198
4214
  return remap$(v, {
4199
4215
  ownerId: "owner_id",
@@ -5803,6 +5819,15 @@ export const UpdateProjectDataCacheDeploymentType$outboundSchema:
5803
5819
  z.ZodNativeEnum<typeof UpdateProjectDataCacheDeploymentType> =
5804
5820
  UpdateProjectDataCacheDeploymentType$inboundSchema;
5805
5821
 
5822
+ /** @internal */
5823
+ export const UpdateProjectDataCacheCve55182MigrationAppliedFrom$inboundSchema:
5824
+ z.ZodNativeEnum<typeof UpdateProjectDataCacheCve55182MigrationAppliedFrom> = z
5825
+ .nativeEnum(UpdateProjectDataCacheCve55182MigrationAppliedFrom);
5826
+ /** @internal */
5827
+ export const UpdateProjectDataCacheCve55182MigrationAppliedFrom$outboundSchema:
5828
+ z.ZodNativeEnum<typeof UpdateProjectDataCacheCve55182MigrationAppliedFrom> =
5829
+ UpdateProjectDataCacheCve55182MigrationAppliedFrom$inboundSchema;
5830
+
5806
5831
  /** @internal */
5807
5832
  export const UpdateProjectDataCacheSsoProtection$inboundSchema: z.ZodType<
5808
5833
  UpdateProjectDataCacheSsoProtection,
@@ -5810,10 +5835,14 @@ export const UpdateProjectDataCacheSsoProtection$inboundSchema: z.ZodType<
5810
5835
  unknown
5811
5836
  > = z.object({
5812
5837
  deploymentType: UpdateProjectDataCacheDeploymentType$inboundSchema,
5838
+ cve55182MigrationAppliedFrom: z.nullable(
5839
+ UpdateProjectDataCacheCve55182MigrationAppliedFrom$inboundSchema,
5840
+ ).optional(),
5813
5841
  });
5814
5842
  /** @internal */
5815
5843
  export type UpdateProjectDataCacheSsoProtection$Outbound = {
5816
5844
  deploymentType: string;
5845
+ cve55182MigrationAppliedFrom?: string | null | undefined;
5817
5846
  };
5818
5847
 
5819
5848
  /** @internal */
@@ -5823,6 +5852,9 @@ export const UpdateProjectDataCacheSsoProtection$outboundSchema: z.ZodType<
5823
5852
  UpdateProjectDataCacheSsoProtection
5824
5853
  > = z.object({
5825
5854
  deploymentType: UpdateProjectDataCacheDeploymentType$outboundSchema,
5855
+ cve55182MigrationAppliedFrom: z.nullable(
5856
+ UpdateProjectDataCacheCve55182MigrationAppliedFrom$outboundSchema,
5857
+ ).optional(),
5826
5858
  });
5827
5859
 
5828
5860
  export function updateProjectDataCacheSsoProtectionToJSON(
@@ -6128,7 +6160,7 @@ export const UpdateProjectDataCacheOidcTokenClaims$inboundSchema: z.ZodType<
6128
6160
  project: z.string(),
6129
6161
  project_id: z.string(),
6130
6162
  environment: z.string(),
6131
- plan: z.string(),
6163
+ plan: z.string().optional(),
6132
6164
  }).transform((v) => {
6133
6165
  return remap$(v, {
6134
6166
  "owner_id": "ownerId",
@@ -6146,7 +6178,7 @@ export type UpdateProjectDataCacheOidcTokenClaims$Outbound = {
6146
6178
  project: string;
6147
6179
  project_id: string;
6148
6180
  environment: string;
6149
- plan: string;
6181
+ plan?: string | undefined;
6150
6182
  };
6151
6183
 
6152
6184
  /** @internal */
@@ -6164,7 +6196,7 @@ export const UpdateProjectDataCacheOidcTokenClaims$outboundSchema: z.ZodType<
6164
6196
  project: z.string(),
6165
6197
  projectId: z.string(),
6166
6198
  environment: z.string(),
6167
- plan: z.string(),
6199
+ plan: z.string().optional(),
6168
6200
  }).transform((v) => {
6169
6201
  return remap$(v, {
6170
6202
  ownerId: "owner_id",
@@ -10035,6 +10067,7 @@ export const UpdateProjectDataCacheResponseBody$inboundSchema: z.ZodType<
10035
10067
  > = z.object({
10036
10068
  accountId: z.string(),
10037
10069
  analytics: z.lazy(() => Analytics$inboundSchema).optional(),
10070
+ appliedCve55182Migration: z.boolean().optional(),
10038
10071
  speedInsights: z.lazy(() => SpeedInsights$inboundSchema).optional(),
10039
10072
  autoExposeSystemEnvs: z.boolean().optional(),
10040
10073
  autoAssignCustomDomains: z.boolean().optional(),
@@ -10109,6 +10142,7 @@ export const UpdateProjectDataCacheResponseBody$inboundSchema: z.ZodType<
10109
10142
  serverlessFunctionZeroConfigFailover: z.boolean().optional(),
10110
10143
  skewProtectionBoundaryAt: z.number().optional(),
10111
10144
  skewProtectionMaxAge: z.number().optional(),
10145
+ skewProtectionAllowedDomains: z.array(z.string()).optional(),
10112
10146
  skipGitConnectDuringLink: z.boolean().optional(),
10113
10147
  staticIps: z.lazy(() => UpdateProjectDataCacheStaticIps$inboundSchema)
10114
10148
  .optional(),
@@ -10175,6 +10209,7 @@ export const UpdateProjectDataCacheResponseBody$inboundSchema: z.ZodType<
10175
10209
  export type UpdateProjectDataCacheResponseBody$Outbound = {
10176
10210
  accountId: string;
10177
10211
  analytics?: Analytics$Outbound | undefined;
10212
+ appliedCve55182Migration?: boolean | undefined;
10178
10213
  speedInsights?: SpeedInsights$Outbound | undefined;
10179
10214
  autoExposeSystemEnvs?: boolean | undefined;
10180
10215
  autoAssignCustomDomains?: boolean | undefined;
@@ -10237,6 +10272,7 @@ export type UpdateProjectDataCacheResponseBody$Outbound = {
10237
10272
  serverlessFunctionZeroConfigFailover?: boolean | undefined;
10238
10273
  skewProtectionBoundaryAt?: number | undefined;
10239
10274
  skewProtectionMaxAge?: number | undefined;
10275
+ skewProtectionAllowedDomains?: Array<string> | undefined;
10240
10276
  skipGitConnectDuringLink?: boolean | undefined;
10241
10277
  staticIps?: UpdateProjectDataCacheStaticIps$Outbound | undefined;
10242
10278
  sourceFilesOutsideRootDirectory?: boolean | undefined;
@@ -10290,6 +10326,7 @@ export const UpdateProjectDataCacheResponseBody$outboundSchema: z.ZodType<
10290
10326
  > = z.object({
10291
10327
  accountId: z.string(),
10292
10328
  analytics: z.lazy(() => Analytics$outboundSchema).optional(),
10329
+ appliedCve55182Migration: z.boolean().optional(),
10293
10330
  speedInsights: z.lazy(() => SpeedInsights$outboundSchema).optional(),
10294
10331
  autoExposeSystemEnvs: z.boolean().optional(),
10295
10332
  autoAssignCustomDomains: z.boolean().optional(),
@@ -10364,6 +10401,7 @@ export const UpdateProjectDataCacheResponseBody$outboundSchema: z.ZodType<
10364
10401
  serverlessFunctionZeroConfigFailover: z.boolean().optional(),
10365
10402
  skewProtectionBoundaryAt: z.number().optional(),
10366
10403
  skewProtectionMaxAge: z.number().optional(),
10404
+ skewProtectionAllowedDomains: z.array(z.string()).optional(),
10367
10405
  skipGitConnectDuringLink: z.boolean().optional(),
10368
10406
  staticIps: z.lazy(() => UpdateProjectDataCacheStaticIps$outboundSchema)
10369
10407
  .optional(),
@@ -437,6 +437,10 @@ export type UpdateProjectRequestBody = {
437
437
  * Deployments created before this rolling window have Skew Protection disabled. Value is in seconds to match \"revalidate\" fields.
438
438
  */
439
439
  skewProtectionMaxAge?: number | undefined;
440
+ /**
441
+ * Cross-site domains allowed to fetch skew-protected assets (hostnames, optionally with leading wildcard like *.example.com).
442
+ */
443
+ skewProtectionAllowedDomains?: Array<string> | undefined;
440
444
  /**
441
445
  * Opts-out of the message prompting a CLI user to connect a Git repository in `vercel link`.
442
446
  *
@@ -1063,7 +1067,7 @@ export type UpdateProjectOidcTokenClaims = {
1063
1067
  project: string;
1064
1068
  projectId: string;
1065
1069
  environment: string;
1066
- plan: string;
1070
+ plan?: string | undefined;
1067
1071
  };
1068
1072
 
1069
1073
  export const UpdateProjectPlan = {
@@ -1509,8 +1513,22 @@ export type UpdateProjectProjectsResponseDeploymentType = ClosedEnum<
1509
1513
  typeof UpdateProjectProjectsResponseDeploymentType
1510
1514
  >;
1511
1515
 
1516
+ export const UpdateProjectCve55182MigrationAppliedFrom = {
1517
+ Preview: "preview",
1518
+ All: "all",
1519
+ ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
1520
+ AllExceptCustomDomains: "all_except_custom_domains",
1521
+ } as const;
1522
+ export type UpdateProjectCve55182MigrationAppliedFrom = ClosedEnum<
1523
+ typeof UpdateProjectCve55182MigrationAppliedFrom
1524
+ >;
1525
+
1512
1526
  export type UpdateProjectProjectsSsoProtection = {
1513
1527
  deploymentType: UpdateProjectProjectsResponseDeploymentType;
1528
+ cve55182MigrationAppliedFrom?:
1529
+ | UpdateProjectCve55182MigrationAppliedFrom
1530
+ | null
1531
+ | undefined;
1514
1532
  };
1515
1533
 
1516
1534
  export type UpdateProjectProjectsAliasAssigned = number | boolean;
@@ -1591,7 +1609,7 @@ export type UpdateProjectProjectsOidcTokenClaims = {
1591
1609
  project: string;
1592
1610
  projectId: string;
1593
1611
  environment: string;
1594
- plan: string;
1612
+ plan?: string | undefined;
1595
1613
  };
1596
1614
 
1597
1615
  export const UpdateProjectProjectsPlan = {
@@ -2441,6 +2459,7 @@ export type UpdateProjectProjectsDismissedToasts = {
2441
2459
  export type UpdateProjectResponseBody = {
2442
2460
  accountId: string;
2443
2461
  analytics?: UpdateProjectAnalytics | undefined;
2462
+ appliedCve55182Migration?: boolean | undefined;
2444
2463
  speedInsights?: UpdateProjectSpeedInsights | undefined;
2445
2464
  autoExposeSystemEnvs?: boolean | undefined;
2446
2465
  autoAssignCustomDomains?: boolean | undefined;
@@ -2509,6 +2528,7 @@ export type UpdateProjectResponseBody = {
2509
2528
  serverlessFunctionZeroConfigFailover?: boolean | undefined;
2510
2529
  skewProtectionBoundaryAt?: number | undefined;
2511
2530
  skewProtectionMaxAge?: number | undefined;
2531
+ skewProtectionAllowedDomains?: Array<string> | undefined;
2512
2532
  skipGitConnectDuringLink?: boolean | undefined;
2513
2533
  staticIps?: UpdateProjectProjectsStaticIps | undefined;
2514
2534
  sourceFilesOutsideRootDirectory?: boolean | undefined;
@@ -3298,6 +3318,7 @@ export const UpdateProjectRequestBody$inboundSchema: z.ZodType<
3298
3318
  serverlessFunctionZeroConfigFailover: z.boolean().optional(),
3299
3319
  skewProtectionBoundaryAt: z.number().int().optional(),
3300
3320
  skewProtectionMaxAge: z.number().int().optional(),
3321
+ skewProtectionAllowedDomains: z.array(z.string()).optional(),
3301
3322
  skipGitConnectDuringLink: z.boolean().optional(),
3302
3323
  sourceFilesOutsideRootDirectory: z.boolean().optional(),
3303
3324
  enablePreviewFeedback: z.nullable(z.boolean()).optional(),
@@ -3350,6 +3371,7 @@ export type UpdateProjectRequestBody$Outbound = {
3350
3371
  serverlessFunctionZeroConfigFailover?: boolean | undefined;
3351
3372
  skewProtectionBoundaryAt?: number | undefined;
3352
3373
  skewProtectionMaxAge?: number | undefined;
3374
+ skewProtectionAllowedDomains?: Array<string> | undefined;
3353
3375
  skipGitConnectDuringLink?: boolean | undefined;
3354
3376
  sourceFilesOutsideRootDirectory?: boolean | undefined;
3355
3377
  enablePreviewFeedback?: boolean | null | undefined;
@@ -3402,6 +3424,7 @@ export const UpdateProjectRequestBody$outboundSchema: z.ZodType<
3402
3424
  serverlessFunctionZeroConfigFailover: z.boolean().optional(),
3403
3425
  skewProtectionBoundaryAt: z.number().int().optional(),
3404
3426
  skewProtectionMaxAge: z.number().int().optional(),
3427
+ skewProtectionAllowedDomains: z.array(z.string()).optional(),
3405
3428
  skipGitConnectDuringLink: z.boolean().optional(),
3406
3429
  sourceFilesOutsideRootDirectory: z.boolean().optional(),
3407
3430
  enablePreviewFeedback: z.nullable(z.boolean()).optional(),
@@ -5512,7 +5535,7 @@ export const UpdateProjectOidcTokenClaims$inboundSchema: z.ZodType<
5512
5535
  project: z.string(),
5513
5536
  project_id: z.string(),
5514
5537
  environment: z.string(),
5515
- plan: z.string(),
5538
+ plan: z.string().optional(),
5516
5539
  }).transform((v) => {
5517
5540
  return remap$(v, {
5518
5541
  "owner_id": "ownerId",
@@ -5530,7 +5553,7 @@ export type UpdateProjectOidcTokenClaims$Outbound = {
5530
5553
  project: string;
5531
5554
  project_id: string;
5532
5555
  environment: string;
5533
- plan: string;
5556
+ plan?: string | undefined;
5534
5557
  };
5535
5558
 
5536
5559
  /** @internal */
@@ -5548,7 +5571,7 @@ export const UpdateProjectOidcTokenClaims$outboundSchema: z.ZodType<
5548
5571
  project: z.string(),
5549
5572
  projectId: z.string(),
5550
5573
  environment: z.string(),
5551
- plan: z.string(),
5574
+ plan: z.string().optional(),
5552
5575
  }).transform((v) => {
5553
5576
  return remap$(v, {
5554
5577
  ownerId: "owner_id",
@@ -7214,6 +7237,15 @@ export const UpdateProjectProjectsResponseDeploymentType$outboundSchema:
7214
7237
  z.ZodNativeEnum<typeof UpdateProjectProjectsResponseDeploymentType> =
7215
7238
  UpdateProjectProjectsResponseDeploymentType$inboundSchema;
7216
7239
 
7240
+ /** @internal */
7241
+ export const UpdateProjectCve55182MigrationAppliedFrom$inboundSchema:
7242
+ z.ZodNativeEnum<typeof UpdateProjectCve55182MigrationAppliedFrom> = z
7243
+ .nativeEnum(UpdateProjectCve55182MigrationAppliedFrom);
7244
+ /** @internal */
7245
+ export const UpdateProjectCve55182MigrationAppliedFrom$outboundSchema:
7246
+ z.ZodNativeEnum<typeof UpdateProjectCve55182MigrationAppliedFrom> =
7247
+ UpdateProjectCve55182MigrationAppliedFrom$inboundSchema;
7248
+
7217
7249
  /** @internal */
7218
7250
  export const UpdateProjectProjectsSsoProtection$inboundSchema: z.ZodType<
7219
7251
  UpdateProjectProjectsSsoProtection,
@@ -7221,10 +7253,14 @@ export const UpdateProjectProjectsSsoProtection$inboundSchema: z.ZodType<
7221
7253
  unknown
7222
7254
  > = z.object({
7223
7255
  deploymentType: UpdateProjectProjectsResponseDeploymentType$inboundSchema,
7256
+ cve55182MigrationAppliedFrom: z.nullable(
7257
+ UpdateProjectCve55182MigrationAppliedFrom$inboundSchema,
7258
+ ).optional(),
7224
7259
  });
7225
7260
  /** @internal */
7226
7261
  export type UpdateProjectProjectsSsoProtection$Outbound = {
7227
7262
  deploymentType: string;
7263
+ cve55182MigrationAppliedFrom?: string | null | undefined;
7228
7264
  };
7229
7265
 
7230
7266
  /** @internal */
@@ -7234,6 +7270,9 @@ export const UpdateProjectProjectsSsoProtection$outboundSchema: z.ZodType<
7234
7270
  UpdateProjectProjectsSsoProtection
7235
7271
  > = z.object({
7236
7272
  deploymentType: UpdateProjectProjectsResponseDeploymentType$outboundSchema,
7273
+ cve55182MigrationAppliedFrom: z.nullable(
7274
+ UpdateProjectCve55182MigrationAppliedFrom$outboundSchema,
7275
+ ).optional(),
7237
7276
  });
7238
7277
 
7239
7278
  export function updateProjectProjectsSsoProtectionToJSON(
@@ -7536,7 +7575,7 @@ export const UpdateProjectProjectsOidcTokenClaims$inboundSchema: z.ZodType<
7536
7575
  project: z.string(),
7537
7576
  project_id: z.string(),
7538
7577
  environment: z.string(),
7539
- plan: z.string(),
7578
+ plan: z.string().optional(),
7540
7579
  }).transform((v) => {
7541
7580
  return remap$(v, {
7542
7581
  "owner_id": "ownerId",
@@ -7554,7 +7593,7 @@ export type UpdateProjectProjectsOidcTokenClaims$Outbound = {
7554
7593
  project: string;
7555
7594
  project_id: string;
7556
7595
  environment: string;
7557
- plan: string;
7596
+ plan?: string | undefined;
7558
7597
  };
7559
7598
 
7560
7599
  /** @internal */
@@ -7572,7 +7611,7 @@ export const UpdateProjectProjectsOidcTokenClaims$outboundSchema: z.ZodType<
7572
7611
  project: z.string(),
7573
7612
  projectId: z.string(),
7574
7613
  environment: z.string(),
7575
- plan: z.string(),
7614
+ plan: z.string().optional(),
7576
7615
  }).transform((v) => {
7577
7616
  return remap$(v, {
7578
7617
  ownerId: "owner_id",
@@ -11542,6 +11581,7 @@ export const UpdateProjectResponseBody$inboundSchema: z.ZodType<
11542
11581
  > = z.object({
11543
11582
  accountId: z.string(),
11544
11583
  analytics: z.lazy(() => UpdateProjectAnalytics$inboundSchema).optional(),
11584
+ appliedCve55182Migration: z.boolean().optional(),
11545
11585
  speedInsights: z.lazy(() => UpdateProjectSpeedInsights$inboundSchema)
11546
11586
  .optional(),
11547
11587
  autoExposeSystemEnvs: z.boolean().optional(),
@@ -11618,6 +11658,7 @@ export const UpdateProjectResponseBody$inboundSchema: z.ZodType<
11618
11658
  serverlessFunctionZeroConfigFailover: z.boolean().optional(),
11619
11659
  skewProtectionBoundaryAt: z.number().optional(),
11620
11660
  skewProtectionMaxAge: z.number().optional(),
11661
+ skewProtectionAllowedDomains: z.array(z.string()).optional(),
11621
11662
  skipGitConnectDuringLink: z.boolean().optional(),
11622
11663
  staticIps: z.lazy(() => UpdateProjectProjectsStaticIps$inboundSchema)
11623
11664
  .optional(),
@@ -11688,6 +11729,7 @@ export const UpdateProjectResponseBody$inboundSchema: z.ZodType<
11688
11729
  export type UpdateProjectResponseBody$Outbound = {
11689
11730
  accountId: string;
11690
11731
  analytics?: UpdateProjectAnalytics$Outbound | undefined;
11732
+ appliedCve55182Migration?: boolean | undefined;
11691
11733
  speedInsights?: UpdateProjectSpeedInsights$Outbound | undefined;
11692
11734
  autoExposeSystemEnvs?: boolean | undefined;
11693
11735
  autoAssignCustomDomains?: boolean | undefined;
@@ -11757,6 +11799,7 @@ export type UpdateProjectResponseBody$Outbound = {
11757
11799
  serverlessFunctionZeroConfigFailover?: boolean | undefined;
11758
11800
  skewProtectionBoundaryAt?: number | undefined;
11759
11801
  skewProtectionMaxAge?: number | undefined;
11802
+ skewProtectionAllowedDomains?: Array<string> | undefined;
11760
11803
  skipGitConnectDuringLink?: boolean | undefined;
11761
11804
  staticIps?: UpdateProjectProjectsStaticIps$Outbound | undefined;
11762
11805
  sourceFilesOutsideRootDirectory?: boolean | undefined;
@@ -11822,6 +11865,7 @@ export const UpdateProjectResponseBody$outboundSchema: z.ZodType<
11822
11865
  > = z.object({
11823
11866
  accountId: z.string(),
11824
11867
  analytics: z.lazy(() => UpdateProjectAnalytics$outboundSchema).optional(),
11868
+ appliedCve55182Migration: z.boolean().optional(),
11825
11869
  speedInsights: z.lazy(() => UpdateProjectSpeedInsights$outboundSchema)
11826
11870
  .optional(),
11827
11871
  autoExposeSystemEnvs: z.boolean().optional(),
@@ -11898,6 +11942,7 @@ export const UpdateProjectResponseBody$outboundSchema: z.ZodType<
11898
11942
  serverlessFunctionZeroConfigFailover: z.boolean().optional(),
11899
11943
  skewProtectionBoundaryAt: z.number().optional(),
11900
11944
  skewProtectionMaxAge: z.number().optional(),
11945
+ skewProtectionAllowedDomains: z.array(z.string()).optional(),
11901
11946
  skipGitConnectDuringLink: z.boolean().optional(),
11902
11947
  staticIps: z.lazy(() => UpdateProjectProjectsStaticIps$outboundSchema)
11903
11948
  .optional(),