vercel-api-js 1.8.0 → 1.8.1

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.
package/dist/index.cjs CHANGED
@@ -9359,6 +9359,10 @@ const userEventSchema = z__namespace.object({
9359
9359
  "observability-enabled",
9360
9360
  "observability-plus-project-disabled",
9361
9361
  "observability-plus-project-enabled",
9362
+ "oidc-policy-created",
9363
+ "oidc-policy-deleted",
9364
+ "oidc-policy-updated",
9365
+ "oidc-policy-used-to-obtain-app-token",
9362
9366
  "organization-create",
9363
9367
  "organization-delete",
9364
9368
  "organization-slug-update",
@@ -9407,6 +9411,7 @@ const userEventSchema = z__namespace.object({
9407
9411
  "project-build-command-updated",
9408
9412
  "project-build-logs-and-source-protection-updated",
9409
9413
  "project-build-machine-updated",
9414
+ "project-card-widget-preference-updated",
9410
9415
  "project-client-cert-delete",
9411
9416
  "project-client-cert-upload",
9412
9417
  "project-connect-configurations",
@@ -9619,7 +9624,9 @@ const userEventSchema = z__namespace.object({
9619
9624
  "user-emu-account-archived",
9620
9625
  "user-emu-account-deleted",
9621
9626
  "user-emu-account-recovered",
9627
+ "user-mfa-challenge-failed",
9622
9628
  "user-mfa-challenge-verified",
9629
+ "user-mfa-change-failed",
9623
9630
  "user-mfa-configuration-updated",
9624
9631
  "user-mfa-recovery-codes-regenerated",
9625
9632
  "user-mfa-removed",
@@ -12327,6 +12334,16 @@ const userEventSchema = z__namespace.object({
12327
12334
  ])
12328
12335
  ]).optional(),
12329
12336
  projectDomainsLimit: z__namespace.number().optional().describe("Overrides our DEFAULT project domains limit per account or per project."),
12337
+ projectCardWidgetPreferences: z__namespace.array(z__namespace.object({
12338
+ projectId: z__namespace.string(),
12339
+ widget: z__namespace.enum([
12340
+ "alert",
12341
+ "firewall-allowed",
12342
+ "firewall-denied",
12343
+ "online",
12344
+ "res"
12345
+ ])
12346
+ })).optional(),
12330
12347
  remoteCaching: z__namespace.object({
12331
12348
  enabled: z__namespace.union([
12332
12349
  z__namespace.literal(false),
@@ -12393,6 +12410,7 @@ const userEventSchema = z__namespace.object({
12393
12410
  bulkRedirectsFreeLimitOverride: z__namespace.number().optional(),
12394
12411
  buildMachine: z__namespace.object({
12395
12412
  default: z__namespace.enum([
12413
+ "basic",
12396
12414
  "elastic",
12397
12415
  "enhanced",
12398
12416
  "standard",
@@ -14186,6 +14204,17 @@ const userEventSchema = z__namespace.object({
14186
14204
  ]).optional(),
14187
14205
  reason: z__namespace.string().optional().describe("For system-initiated (elastic) changes, why the build machine was upgraded/downgraded. Stored as the raw reason code (see `ElasticChangeReason` in `@api/build-machines-types`) and rendered as a human-readable clause in the activity/audit log.")
14188
14206
  }).strict(),
14207
+ z__namespace.object({
14208
+ projectId: z__namespace.string(),
14209
+ projectName: z__namespace.string(),
14210
+ widget: z__namespace.enum([
14211
+ "alert",
14212
+ "firewall-allowed",
14213
+ "firewall-denied",
14214
+ "online",
14215
+ "res"
14216
+ ]).nullable()
14217
+ }).strict(),
14189
14218
  z__namespace.object({
14190
14219
  projectId: z__namespace.string().optional(),
14191
14220
  projectName: z__namespace.string().optional(),
@@ -15525,12 +15554,14 @@ const userEventSchema = z__namespace.object({
15525
15554
  }).strict(),
15526
15555
  z__namespace.object({
15527
15556
  previous: z__namespace.enum([
15557
+ "basic",
15528
15558
  "elastic",
15529
15559
  "enhanced",
15530
15560
  "standard",
15531
15561
  "turbo"
15532
15562
  ]).optional(),
15533
15563
  next: z__namespace.enum([
15564
+ "basic",
15534
15565
  "elastic",
15535
15566
  "enhanced",
15536
15567
  "standard",
@@ -15953,6 +15984,27 @@ const userEventSchema = z__namespace.object({
15953
15984
  z__namespace.object({
15954
15985
  username: z__namespace.string()
15955
15986
  }).strict(),
15987
+ z__namespace.object({
15988
+ method: z__namespace.enum([
15989
+ "email-otp",
15990
+ "recovery-code",
15991
+ "totp",
15992
+ "webauthn"
15993
+ ]),
15994
+ reason: z__namespace.string()
15995
+ }).strict(),
15996
+ z__namespace.object({
15997
+ action: z__namespace.enum([
15998
+ "add-passkey",
15999
+ "add-totp",
16000
+ "admin-remove",
16001
+ "disable",
16002
+ "enable",
16003
+ "regenerate-recovery-codes",
16004
+ "remove-passkey"
16005
+ ]),
16006
+ reason: z__namespace.string()
16007
+ }).strict(),
15956
16008
  z__namespace.object({
15957
16009
  previous: z__namespace.object({
15958
16010
  enabled: z__namespace.union([
@@ -16233,6 +16285,81 @@ const userEventSchema = z__namespace.object({
16233
16285
  policyId: z__namespace.string().optional().describe("ID of the OIDC-exchange policy that authorized a token-exchange grant. Absent for the `client_credentials` + `oidc_token` flow, which matches an app `oidcProviders` entry rather than a policy."),
16234
16286
  oidcSubject: z__namespace.string().optional().describe("`sub` claim of the OIDC token. Present for OIDC-authenticated flows (see {@link issuerUrl}).")
16235
16287
  }).strict(),
16288
+ z__namespace.object({
16289
+ policy: z__namespace.object({
16290
+ policyId: z__namespace.string(),
16291
+ clientId: z__namespace.string(),
16292
+ issuerUrl: z__namespace.string(),
16293
+ teamId: z__namespace.string(),
16294
+ name: z__namespace.string().nullable().describe("Human-readable policy name, or `null` when unnamed."),
16295
+ claims: z__namespace.array(z__namespace.object({
16296
+ name: z__namespace.string(),
16297
+ values: z__namespace.array(z__namespace.object({
16298
+ value: z__namespace.string(),
16299
+ wildcards: z__namespace.union([
16300
+ z__namespace.literal(false),
16301
+ z__namespace.literal(true)
16302
+ ])
16303
+ }))
16304
+ })).describe("Claim matchers an OIDC token must satisfy to use the policy."),
16305
+ permissions: z__namespace.array(z__namespace.string()).describe("Permission boundary (`['*']` = the app's full declared permissions)."),
16306
+ resources: z__namespace.object({
16307
+ projectIds: z__namespace.array(z__namespace.string())
16308
+ }).nullable().describe("Resource boundary, or `null` when the policy has none."),
16309
+ createdAt: z__namespace.number().describe("Creation time (epoch ms)."),
16310
+ updatedAt: z__namespace.number().describe("Last-update time (epoch ms).")
16311
+ }).describe("A full point-in-time snapshot of an OIDC exchange policy, captured on every lifecycle event so the audit trail records exactly what the policy looked like. Mirrors the management endpoints' public response shape."),
16312
+ appName: z__namespace.string().optional()
16313
+ }).strict(),
16314
+ z__namespace.object({
16315
+ before: z__namespace.object({
16316
+ policyId: z__namespace.string(),
16317
+ clientId: z__namespace.string(),
16318
+ issuerUrl: z__namespace.string(),
16319
+ teamId: z__namespace.string(),
16320
+ name: z__namespace.string().nullable().describe("Human-readable policy name, or `null` when unnamed."),
16321
+ claims: z__namespace.array(z__namespace.object({
16322
+ name: z__namespace.string(),
16323
+ values: z__namespace.array(z__namespace.object({
16324
+ value: z__namespace.string(),
16325
+ wildcards: z__namespace.union([
16326
+ z__namespace.literal(false),
16327
+ z__namespace.literal(true)
16328
+ ])
16329
+ }))
16330
+ })).describe("Claim matchers an OIDC token must satisfy to use the policy."),
16331
+ permissions: z__namespace.array(z__namespace.string()).describe("Permission boundary (`['*']` = the app's full declared permissions)."),
16332
+ resources: z__namespace.object({
16333
+ projectIds: z__namespace.array(z__namespace.string())
16334
+ }).nullable().describe("Resource boundary, or `null` when the policy has none."),
16335
+ createdAt: z__namespace.number().describe("Creation time (epoch ms)."),
16336
+ updatedAt: z__namespace.number().describe("Last-update time (epoch ms).")
16337
+ }).describe("A full point-in-time snapshot of an OIDC exchange policy, captured on every lifecycle event so the audit trail records exactly what the policy looked like. Mirrors the management endpoints' public response shape."),
16338
+ after: z__namespace.object({
16339
+ policyId: z__namespace.string(),
16340
+ clientId: z__namespace.string(),
16341
+ issuerUrl: z__namespace.string(),
16342
+ teamId: z__namespace.string(),
16343
+ name: z__namespace.string().nullable().describe("Human-readable policy name, or `null` when unnamed."),
16344
+ claims: z__namespace.array(z__namespace.object({
16345
+ name: z__namespace.string(),
16346
+ values: z__namespace.array(z__namespace.object({
16347
+ value: z__namespace.string(),
16348
+ wildcards: z__namespace.union([
16349
+ z__namespace.literal(false),
16350
+ z__namespace.literal(true)
16351
+ ])
16352
+ }))
16353
+ })).describe("Claim matchers an OIDC token must satisfy to use the policy."),
16354
+ permissions: z__namespace.array(z__namespace.string()).describe("Permission boundary (`['*']` = the app's full declared permissions)."),
16355
+ resources: z__namespace.object({
16356
+ projectIds: z__namespace.array(z__namespace.string())
16357
+ }).nullable().describe("Resource boundary, or `null` when the policy has none."),
16358
+ createdAt: z__namespace.number().describe("Creation time (epoch ms)."),
16359
+ updatedAt: z__namespace.number().describe("Last-update time (epoch ms).")
16360
+ }).describe("A full point-in-time snapshot of an OIDC exchange policy, captured on every lifecycle event so the audit trail records exactly what the policy looked like. Mirrors the management endpoints' public response shape."),
16361
+ appName: z__namespace.string().optional()
16362
+ }).strict(),
16236
16363
  z__namespace.object({
16237
16364
  tokenId: z__namespace.string().describe("The token's public ID."),
16238
16365
  tokenPrefix: z__namespace.enum([
@@ -16663,6 +16790,10 @@ const listEventTypeSchema = z__namespace.object({
16663
16790
  "observability-enabled",
16664
16791
  "observability-plus-project-disabled",
16665
16792
  "observability-plus-project-enabled",
16793
+ "oidc-policy-created",
16794
+ "oidc-policy-deleted",
16795
+ "oidc-policy-updated",
16796
+ "oidc-policy-used-to-obtain-app-token",
16666
16797
  "organization-create",
16667
16798
  "organization-delete",
16668
16799
  "organization-slug-update",
@@ -16711,6 +16842,7 @@ const listEventTypeSchema = z__namespace.object({
16711
16842
  "project-build-command-updated",
16712
16843
  "project-build-logs-and-source-protection-updated",
16713
16844
  "project-build-machine-updated",
16845
+ "project-card-widget-preference-updated",
16714
16846
  "project-client-cert-delete",
16715
16847
  "project-client-cert-upload",
16716
16848
  "project-connect-configurations",
@@ -16923,7 +17055,9 @@ const listEventTypeSchema = z__namespace.object({
16923
17055
  "user-emu-account-archived",
16924
17056
  "user-emu-account-deleted",
16925
17057
  "user-emu-account-recovered",
17058
+ "user-mfa-challenge-failed",
16926
17059
  "user-mfa-challenge-verified",
17060
+ "user-mfa-change-failed",
16927
17061
  "user-mfa-configuration-updated",
16928
17062
  "user-mfa-recovery-codes-regenerated",
16929
17063
  "user-mfa-removed",
@@ -17271,6 +17405,10 @@ const listEventTypeSchema = z__namespace.object({
17271
17405
  "observability-enabled",
17272
17406
  "observability-plus-project-disabled",
17273
17407
  "observability-plus-project-enabled",
17408
+ "oidc-policy-created",
17409
+ "oidc-policy-deleted",
17410
+ "oidc-policy-updated",
17411
+ "oidc-policy-used-to-obtain-app-token",
17274
17412
  "organization-create",
17275
17413
  "organization-delete",
17276
17414
  "organization-slug-update",
@@ -17319,6 +17457,7 @@ const listEventTypeSchema = z__namespace.object({
17319
17457
  "project-build-command-updated",
17320
17458
  "project-build-logs-and-source-protection-updated",
17321
17459
  "project-build-machine-updated",
17460
+ "project-card-widget-preference-updated",
17322
17461
  "project-client-cert-delete",
17323
17462
  "project-client-cert-upload",
17324
17463
  "project-connect-configurations",
@@ -17531,7 +17670,9 @@ const listEventTypeSchema = z__namespace.object({
17531
17670
  "user-emu-account-archived",
17532
17671
  "user-emu-account-deleted",
17533
17672
  "user-emu-account-recovered",
17673
+ "user-mfa-challenge-failed",
17534
17674
  "user-mfa-challenge-verified",
17675
+ "user-mfa-change-failed",
17535
17676
  "user-mfa-configuration-updated",
17536
17677
  "user-mfa-recovery-codes-regenerated",
17537
17678
  "user-mfa-removed",
@@ -18427,6 +18568,7 @@ const teamSchema = z__namespace.object({
18427
18568
  }).optional(),
18428
18569
  buildMachine: z__namespace.object({
18429
18570
  default: z__namespace.enum([
18571
+ "basic",
18430
18572
  "elastic",
18431
18573
  "enhanced",
18432
18574
  "standard",
@@ -26853,6 +26995,10 @@ const userEventTypeEnum = {
26853
26995
  "observability-enabled": "observability-enabled",
26854
26996
  "observability-plus-project-disabled": "observability-plus-project-disabled",
26855
26997
  "observability-plus-project-enabled": "observability-plus-project-enabled",
26998
+ "oidc-policy-created": "oidc-policy-created",
26999
+ "oidc-policy-deleted": "oidc-policy-deleted",
27000
+ "oidc-policy-updated": "oidc-policy-updated",
27001
+ "oidc-policy-used-to-obtain-app-token": "oidc-policy-used-to-obtain-app-token",
26856
27002
  "organization-create": "organization-create",
26857
27003
  "organization-delete": "organization-delete",
26858
27004
  "organization-slug-update": "organization-slug-update",
@@ -26901,6 +27047,7 @@ const userEventTypeEnum = {
26901
27047
  "project-build-command-updated": "project-build-command-updated",
26902
27048
  "project-build-logs-and-source-protection-updated": "project-build-logs-and-source-protection-updated",
26903
27049
  "project-build-machine-updated": "project-build-machine-updated",
27050
+ "project-card-widget-preference-updated": "project-card-widget-preference-updated",
26904
27051
  "project-client-cert-delete": "project-client-cert-delete",
26905
27052
  "project-client-cert-upload": "project-client-cert-upload",
26906
27053
  "project-connect-configurations": "project-connect-configurations",
@@ -27113,7 +27260,9 @@ const userEventTypeEnum = {
27113
27260
  "user-emu-account-archived": "user-emu-account-archived",
27114
27261
  "user-emu-account-deleted": "user-emu-account-deleted",
27115
27262
  "user-emu-account-recovered": "user-emu-account-recovered",
27263
+ "user-mfa-challenge-failed": "user-mfa-challenge-failed",
27116
27264
  "user-mfa-challenge-verified": "user-mfa-challenge-verified",
27265
+ "user-mfa-change-failed": "user-mfa-change-failed",
27117
27266
  "user-mfa-configuration-updated": "user-mfa-configuration-updated",
27118
27267
  "user-mfa-recovery-codes-regenerated": "user-mfa-recovery-codes-regenerated",
27119
27268
  "user-mfa-removed": "user-mfa-removed",
@@ -27182,8 +27331,13 @@ const userEventCategoriesEnum = {
27182
27331
  workflow: "workflow"
27183
27332
  };
27184
27333
  const actionEnum = {
27185
- disabled: "disabled",
27186
- enabled: "enabled"
27334
+ "add-passkey": "add-passkey",
27335
+ "add-totp": "add-totp",
27336
+ "admin-remove": "admin-remove",
27337
+ disable: "disable",
27338
+ enable: "enable",
27339
+ "regenerate-recovery-codes": "regenerate-recovery-codes",
27340
+ "remove-passkey": "remove-passkey"
27187
27341
  };
27188
27342
  const providerEnum = {
27189
27343
  apple: "apple",
@@ -27295,11 +27449,19 @@ const importFlowGitProviderEnum = {
27295
27449
  gitlab: "gitlab",
27296
27450
  vercel: "vercel"
27297
27451
  };
27452
+ const widgetEnum = {
27453
+ alert: "alert",
27454
+ "firewall-allowed": "firewall-allowed",
27455
+ "firewall-denied": "firewall-denied",
27456
+ online: "online",
27457
+ res: "res"
27458
+ };
27298
27459
  const configurationEnum = {
27299
27460
  SKIP_NAMESPACE_QUEUE: "SKIP_NAMESPACE_QUEUE",
27300
27461
  WAIT_FOR_NAMESPACE_QUEUE: "WAIT_FOR_NAMESPACE_QUEUE"
27301
27462
  };
27302
27463
  const defaultEnum = {
27464
+ basic: "basic",
27303
27465
  elastic: "elastic",
27304
27466
  enhanced: "enhanced",
27305
27467
  standard: "standard",
@@ -27617,12 +27779,14 @@ const scopeEnum = {
27617
27779
  user: "user"
27618
27780
  };
27619
27781
  const previousEnum = {
27782
+ basic: "basic",
27620
27783
  elastic: "elastic",
27621
27784
  enhanced: "enhanced",
27622
27785
  standard: "standard",
27623
27786
  turbo: "turbo"
27624
27787
  };
27625
27788
  const nextEnum = {
27789
+ basic: "basic",
27626
27790
  elastic: "elastic",
27627
27791
  enhanced: "enhanced",
27628
27792
  standard: "standard",
@@ -27989,6 +28153,10 @@ const listEventTypeNameEnum = {
27989
28153
  "observability-enabled": "observability-enabled",
27990
28154
  "observability-plus-project-disabled": "observability-plus-project-disabled",
27991
28155
  "observability-plus-project-enabled": "observability-plus-project-enabled",
28156
+ "oidc-policy-created": "oidc-policy-created",
28157
+ "oidc-policy-deleted": "oidc-policy-deleted",
28158
+ "oidc-policy-updated": "oidc-policy-updated",
28159
+ "oidc-policy-used-to-obtain-app-token": "oidc-policy-used-to-obtain-app-token",
27992
28160
  "organization-create": "organization-create",
27993
28161
  "organization-delete": "organization-delete",
27994
28162
  "organization-slug-update": "organization-slug-update",
@@ -28037,6 +28205,7 @@ const listEventTypeNameEnum = {
28037
28205
  "project-build-command-updated": "project-build-command-updated",
28038
28206
  "project-build-logs-and-source-protection-updated": "project-build-logs-and-source-protection-updated",
28039
28207
  "project-build-machine-updated": "project-build-machine-updated",
28208
+ "project-card-widget-preference-updated": "project-card-widget-preference-updated",
28040
28209
  "project-client-cert-delete": "project-client-cert-delete",
28041
28210
  "project-client-cert-upload": "project-client-cert-upload",
28042
28211
  "project-connect-configurations": "project-connect-configurations",
@@ -28249,7 +28418,9 @@ const listEventTypeNameEnum = {
28249
28418
  "user-emu-account-archived": "user-emu-account-archived",
28250
28419
  "user-emu-account-deleted": "user-emu-account-deleted",
28251
28420
  "user-emu-account-recovered": "user-emu-account-recovered",
28421
+ "user-mfa-challenge-failed": "user-mfa-challenge-failed",
28252
28422
  "user-mfa-challenge-verified": "user-mfa-challenge-verified",
28423
+ "user-mfa-change-failed": "user-mfa-change-failed",
28253
28424
  "user-mfa-configuration-updated": "user-mfa-configuration-updated",
28254
28425
  "user-mfa-recovery-codes-regenerated": "user-mfa-recovery-codes-regenerated",
28255
28426
  "user-mfa-removed": "user-mfa-removed",
@@ -28592,6 +28763,10 @@ const listEventTypeReplacedByEnum = {
28592
28763
  "observability-enabled": "observability-enabled",
28593
28764
  "observability-plus-project-disabled": "observability-plus-project-disabled",
28594
28765
  "observability-plus-project-enabled": "observability-plus-project-enabled",
28766
+ "oidc-policy-created": "oidc-policy-created",
28767
+ "oidc-policy-deleted": "oidc-policy-deleted",
28768
+ "oidc-policy-updated": "oidc-policy-updated",
28769
+ "oidc-policy-used-to-obtain-app-token": "oidc-policy-used-to-obtain-app-token",
28595
28770
  "organization-create": "organization-create",
28596
28771
  "organization-delete": "organization-delete",
28597
28772
  "organization-slug-update": "organization-slug-update",
@@ -28640,6 +28815,7 @@ const listEventTypeReplacedByEnum = {
28640
28815
  "project-build-command-updated": "project-build-command-updated",
28641
28816
  "project-build-logs-and-source-protection-updated": "project-build-logs-and-source-protection-updated",
28642
28817
  "project-build-machine-updated": "project-build-machine-updated",
28818
+ "project-card-widget-preference-updated": "project-card-widget-preference-updated",
28643
28819
  "project-client-cert-delete": "project-client-cert-delete",
28644
28820
  "project-client-cert-upload": "project-client-cert-upload",
28645
28821
  "project-connect-configurations": "project-connect-configurations",
@@ -28852,7 +29028,9 @@ const listEventTypeReplacedByEnum = {
28852
29028
  "user-emu-account-archived": "user-emu-account-archived",
28853
29029
  "user-emu-account-deleted": "user-emu-account-deleted",
28854
29030
  "user-emu-account-recovered": "user-emu-account-recovered",
29031
+ "user-mfa-challenge-failed": "user-mfa-challenge-failed",
28855
29032
  "user-mfa-challenge-verified": "user-mfa-challenge-verified",
29033
+ "user-mfa-change-failed": "user-mfa-change-failed",
28856
29034
  "user-mfa-configuration-updated": "user-mfa-configuration-updated",
28857
29035
  "user-mfa-recovery-codes-regenerated": "user-mfa-recovery-codes-regenerated",
28858
29036
  "user-mfa-removed": "user-mfa-removed",
@@ -29105,6 +29283,7 @@ const teamDefaultRolesTeamPermissionsEnum = {
29105
29283
  V0Viewer: "V0Viewer"
29106
29284
  };
29107
29285
  const teamResourceConfigBuildMachineDefaultEnum = {
29286
+ basic: "basic",
29108
29287
  elastic: "elastic",
29109
29288
  enhanced: "enhanced",
29110
29289
  standard: "standard",
@@ -33654,6 +33833,7 @@ exports.verifyProjectDomainStatus403Schema = verifyProjectDomainStatus403Schema;
33654
33833
  exports.verifyProjectDomainStatus410Schema = verifyProjectDomainStatus410Schema;
33655
33834
  exports.versionEnum = versionEnum;
33656
33835
  exports.viewPreferenceEnum = viewPreferenceEnum;
33836
+ exports.widgetEnum = widgetEnum;
33657
33837
  exports.writeSessionFilesHeaderxCwdSchema = writeSessionFilesHeaderxCwdSchema;
33658
33838
  exports.writeSessionFilesPathSessionIdSchema = writeSessionFilesPathSessionIdSchema;
33659
33839
  exports.writeSessionFilesQuerySlugSchema = writeSessionFilesQuerySlugSchema;