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/schemas.mjs CHANGED
@@ -705,6 +705,10 @@ const userEventSchema = z.object({
705
705
  "observability-enabled",
706
706
  "observability-plus-project-disabled",
707
707
  "observability-plus-project-enabled",
708
+ "oidc-policy-created",
709
+ "oidc-policy-deleted",
710
+ "oidc-policy-updated",
711
+ "oidc-policy-used-to-obtain-app-token",
708
712
  "organization-create",
709
713
  "organization-delete",
710
714
  "organization-slug-update",
@@ -753,6 +757,7 @@ const userEventSchema = z.object({
753
757
  "project-build-command-updated",
754
758
  "project-build-logs-and-source-protection-updated",
755
759
  "project-build-machine-updated",
760
+ "project-card-widget-preference-updated",
756
761
  "project-client-cert-delete",
757
762
  "project-client-cert-upload",
758
763
  "project-connect-configurations",
@@ -965,7 +970,9 @@ const userEventSchema = z.object({
965
970
  "user-emu-account-archived",
966
971
  "user-emu-account-deleted",
967
972
  "user-emu-account-recovered",
973
+ "user-mfa-challenge-failed",
968
974
  "user-mfa-challenge-verified",
975
+ "user-mfa-change-failed",
969
976
  "user-mfa-configuration-updated",
970
977
  "user-mfa-recovery-codes-regenerated",
971
978
  "user-mfa-removed",
@@ -3673,6 +3680,16 @@ const userEventSchema = z.object({
3673
3680
  ])
3674
3681
  ]).optional(),
3675
3682
  projectDomainsLimit: z.number().optional().describe("Overrides our DEFAULT project domains limit per account or per project."),
3683
+ projectCardWidgetPreferences: z.array(z.object({
3684
+ projectId: z.string(),
3685
+ widget: z.enum([
3686
+ "alert",
3687
+ "firewall-allowed",
3688
+ "firewall-denied",
3689
+ "online",
3690
+ "res"
3691
+ ])
3692
+ })).optional(),
3676
3693
  remoteCaching: z.object({
3677
3694
  enabled: z.union([
3678
3695
  z.literal(false),
@@ -3739,6 +3756,7 @@ const userEventSchema = z.object({
3739
3756
  bulkRedirectsFreeLimitOverride: z.number().optional(),
3740
3757
  buildMachine: z.object({
3741
3758
  default: z.enum([
3759
+ "basic",
3742
3760
  "elastic",
3743
3761
  "enhanced",
3744
3762
  "standard",
@@ -5532,6 +5550,17 @@ const userEventSchema = z.object({
5532
5550
  ]).optional(),
5533
5551
  reason: z.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.")
5534
5552
  }).strict(),
5553
+ z.object({
5554
+ projectId: z.string(),
5555
+ projectName: z.string(),
5556
+ widget: z.enum([
5557
+ "alert",
5558
+ "firewall-allowed",
5559
+ "firewall-denied",
5560
+ "online",
5561
+ "res"
5562
+ ]).nullable()
5563
+ }).strict(),
5535
5564
  z.object({
5536
5565
  projectId: z.string().optional(),
5537
5566
  projectName: z.string().optional(),
@@ -6871,12 +6900,14 @@ const userEventSchema = z.object({
6871
6900
  }).strict(),
6872
6901
  z.object({
6873
6902
  previous: z.enum([
6903
+ "basic",
6874
6904
  "elastic",
6875
6905
  "enhanced",
6876
6906
  "standard",
6877
6907
  "turbo"
6878
6908
  ]).optional(),
6879
6909
  next: z.enum([
6910
+ "basic",
6880
6911
  "elastic",
6881
6912
  "enhanced",
6882
6913
  "standard",
@@ -7299,6 +7330,27 @@ const userEventSchema = z.object({
7299
7330
  z.object({
7300
7331
  username: z.string()
7301
7332
  }).strict(),
7333
+ z.object({
7334
+ method: z.enum([
7335
+ "email-otp",
7336
+ "recovery-code",
7337
+ "totp",
7338
+ "webauthn"
7339
+ ]),
7340
+ reason: z.string()
7341
+ }).strict(),
7342
+ z.object({
7343
+ action: z.enum([
7344
+ "add-passkey",
7345
+ "add-totp",
7346
+ "admin-remove",
7347
+ "disable",
7348
+ "enable",
7349
+ "regenerate-recovery-codes",
7350
+ "remove-passkey"
7351
+ ]),
7352
+ reason: z.string()
7353
+ }).strict(),
7302
7354
  z.object({
7303
7355
  previous: z.object({
7304
7356
  enabled: z.union([
@@ -7579,6 +7631,81 @@ const userEventSchema = z.object({
7579
7631
  policyId: z.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."),
7580
7632
  oidcSubject: z.string().optional().describe("`sub` claim of the OIDC token. Present for OIDC-authenticated flows (see {@link issuerUrl}).")
7581
7633
  }).strict(),
7634
+ z.object({
7635
+ policy: z.object({
7636
+ policyId: z.string(),
7637
+ clientId: z.string(),
7638
+ issuerUrl: z.string(),
7639
+ teamId: z.string(),
7640
+ name: z.string().nullable().describe("Human-readable policy name, or `null` when unnamed."),
7641
+ claims: z.array(z.object({
7642
+ name: z.string(),
7643
+ values: z.array(z.object({
7644
+ value: z.string(),
7645
+ wildcards: z.union([
7646
+ z.literal(false),
7647
+ z.literal(true)
7648
+ ])
7649
+ }))
7650
+ })).describe("Claim matchers an OIDC token must satisfy to use the policy."),
7651
+ permissions: z.array(z.string()).describe("Permission boundary (`['*']` = the app's full declared permissions)."),
7652
+ resources: z.object({
7653
+ projectIds: z.array(z.string())
7654
+ }).nullable().describe("Resource boundary, or `null` when the policy has none."),
7655
+ createdAt: z.number().describe("Creation time (epoch ms)."),
7656
+ updatedAt: z.number().describe("Last-update time (epoch ms).")
7657
+ }).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."),
7658
+ appName: z.string().optional()
7659
+ }).strict(),
7660
+ z.object({
7661
+ before: z.object({
7662
+ policyId: z.string(),
7663
+ clientId: z.string(),
7664
+ issuerUrl: z.string(),
7665
+ teamId: z.string(),
7666
+ name: z.string().nullable().describe("Human-readable policy name, or `null` when unnamed."),
7667
+ claims: z.array(z.object({
7668
+ name: z.string(),
7669
+ values: z.array(z.object({
7670
+ value: z.string(),
7671
+ wildcards: z.union([
7672
+ z.literal(false),
7673
+ z.literal(true)
7674
+ ])
7675
+ }))
7676
+ })).describe("Claim matchers an OIDC token must satisfy to use the policy."),
7677
+ permissions: z.array(z.string()).describe("Permission boundary (`['*']` = the app's full declared permissions)."),
7678
+ resources: z.object({
7679
+ projectIds: z.array(z.string())
7680
+ }).nullable().describe("Resource boundary, or `null` when the policy has none."),
7681
+ createdAt: z.number().describe("Creation time (epoch ms)."),
7682
+ updatedAt: z.number().describe("Last-update time (epoch ms).")
7683
+ }).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."),
7684
+ after: z.object({
7685
+ policyId: z.string(),
7686
+ clientId: z.string(),
7687
+ issuerUrl: z.string(),
7688
+ teamId: z.string(),
7689
+ name: z.string().nullable().describe("Human-readable policy name, or `null` when unnamed."),
7690
+ claims: z.array(z.object({
7691
+ name: z.string(),
7692
+ values: z.array(z.object({
7693
+ value: z.string(),
7694
+ wildcards: z.union([
7695
+ z.literal(false),
7696
+ z.literal(true)
7697
+ ])
7698
+ }))
7699
+ })).describe("Claim matchers an OIDC token must satisfy to use the policy."),
7700
+ permissions: z.array(z.string()).describe("Permission boundary (`['*']` = the app's full declared permissions)."),
7701
+ resources: z.object({
7702
+ projectIds: z.array(z.string())
7703
+ }).nullable().describe("Resource boundary, or `null` when the policy has none."),
7704
+ createdAt: z.number().describe("Creation time (epoch ms)."),
7705
+ updatedAt: z.number().describe("Last-update time (epoch ms).")
7706
+ }).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."),
7707
+ appName: z.string().optional()
7708
+ }).strict(),
7582
7709
  z.object({
7583
7710
  tokenId: z.string().describe("The token's public ID."),
7584
7711
  tokenPrefix: z.enum([
@@ -8009,6 +8136,10 @@ const listEventTypeSchema = z.object({
8009
8136
  "observability-enabled",
8010
8137
  "observability-plus-project-disabled",
8011
8138
  "observability-plus-project-enabled",
8139
+ "oidc-policy-created",
8140
+ "oidc-policy-deleted",
8141
+ "oidc-policy-updated",
8142
+ "oidc-policy-used-to-obtain-app-token",
8012
8143
  "organization-create",
8013
8144
  "organization-delete",
8014
8145
  "organization-slug-update",
@@ -8057,6 +8188,7 @@ const listEventTypeSchema = z.object({
8057
8188
  "project-build-command-updated",
8058
8189
  "project-build-logs-and-source-protection-updated",
8059
8190
  "project-build-machine-updated",
8191
+ "project-card-widget-preference-updated",
8060
8192
  "project-client-cert-delete",
8061
8193
  "project-client-cert-upload",
8062
8194
  "project-connect-configurations",
@@ -8269,7 +8401,9 @@ const listEventTypeSchema = z.object({
8269
8401
  "user-emu-account-archived",
8270
8402
  "user-emu-account-deleted",
8271
8403
  "user-emu-account-recovered",
8404
+ "user-mfa-challenge-failed",
8272
8405
  "user-mfa-challenge-verified",
8406
+ "user-mfa-change-failed",
8273
8407
  "user-mfa-configuration-updated",
8274
8408
  "user-mfa-recovery-codes-regenerated",
8275
8409
  "user-mfa-removed",
@@ -8617,6 +8751,10 @@ const listEventTypeSchema = z.object({
8617
8751
  "observability-enabled",
8618
8752
  "observability-plus-project-disabled",
8619
8753
  "observability-plus-project-enabled",
8754
+ "oidc-policy-created",
8755
+ "oidc-policy-deleted",
8756
+ "oidc-policy-updated",
8757
+ "oidc-policy-used-to-obtain-app-token",
8620
8758
  "organization-create",
8621
8759
  "organization-delete",
8622
8760
  "organization-slug-update",
@@ -8665,6 +8803,7 @@ const listEventTypeSchema = z.object({
8665
8803
  "project-build-command-updated",
8666
8804
  "project-build-logs-and-source-protection-updated",
8667
8805
  "project-build-machine-updated",
8806
+ "project-card-widget-preference-updated",
8668
8807
  "project-client-cert-delete",
8669
8808
  "project-client-cert-upload",
8670
8809
  "project-connect-configurations",
@@ -8877,7 +9016,9 @@ const listEventTypeSchema = z.object({
8877
9016
  "user-emu-account-archived",
8878
9017
  "user-emu-account-deleted",
8879
9018
  "user-emu-account-recovered",
9019
+ "user-mfa-challenge-failed",
8880
9020
  "user-mfa-challenge-verified",
9021
+ "user-mfa-change-failed",
8881
9022
  "user-mfa-configuration-updated",
8882
9023
  "user-mfa-recovery-codes-regenerated",
8883
9024
  "user-mfa-removed",
@@ -9773,6 +9914,7 @@ const teamSchema = z.object({
9773
9914
  }).optional(),
9774
9915
  buildMachine: z.object({
9775
9916
  default: z.enum([
9917
+ "basic",
9776
9918
  "elastic",
9777
9919
  "enhanced",
9778
9920
  "standard",
package/dist/types.cjs CHANGED
@@ -444,6 +444,10 @@ const userEventTypeEnum = {
444
444
  "observability-enabled": "observability-enabled",
445
445
  "observability-plus-project-disabled": "observability-plus-project-disabled",
446
446
  "observability-plus-project-enabled": "observability-plus-project-enabled",
447
+ "oidc-policy-created": "oidc-policy-created",
448
+ "oidc-policy-deleted": "oidc-policy-deleted",
449
+ "oidc-policy-updated": "oidc-policy-updated",
450
+ "oidc-policy-used-to-obtain-app-token": "oidc-policy-used-to-obtain-app-token",
447
451
  "organization-create": "organization-create",
448
452
  "organization-delete": "organization-delete",
449
453
  "organization-slug-update": "organization-slug-update",
@@ -492,6 +496,7 @@ const userEventTypeEnum = {
492
496
  "project-build-command-updated": "project-build-command-updated",
493
497
  "project-build-logs-and-source-protection-updated": "project-build-logs-and-source-protection-updated",
494
498
  "project-build-machine-updated": "project-build-machine-updated",
499
+ "project-card-widget-preference-updated": "project-card-widget-preference-updated",
495
500
  "project-client-cert-delete": "project-client-cert-delete",
496
501
  "project-client-cert-upload": "project-client-cert-upload",
497
502
  "project-connect-configurations": "project-connect-configurations",
@@ -704,7 +709,9 @@ const userEventTypeEnum = {
704
709
  "user-emu-account-archived": "user-emu-account-archived",
705
710
  "user-emu-account-deleted": "user-emu-account-deleted",
706
711
  "user-emu-account-recovered": "user-emu-account-recovered",
712
+ "user-mfa-challenge-failed": "user-mfa-challenge-failed",
707
713
  "user-mfa-challenge-verified": "user-mfa-challenge-verified",
714
+ "user-mfa-change-failed": "user-mfa-change-failed",
708
715
  "user-mfa-configuration-updated": "user-mfa-configuration-updated",
709
716
  "user-mfa-recovery-codes-regenerated": "user-mfa-recovery-codes-regenerated",
710
717
  "user-mfa-removed": "user-mfa-removed",
@@ -773,8 +780,13 @@ const userEventCategoriesEnum = {
773
780
  workflow: "workflow"
774
781
  };
775
782
  const actionEnum = {
776
- disabled: "disabled",
777
- enabled: "enabled"
783
+ "add-passkey": "add-passkey",
784
+ "add-totp": "add-totp",
785
+ "admin-remove": "admin-remove",
786
+ disable: "disable",
787
+ enable: "enable",
788
+ "regenerate-recovery-codes": "regenerate-recovery-codes",
789
+ "remove-passkey": "remove-passkey"
778
790
  };
779
791
  const providerEnum = {
780
792
  apple: "apple",
@@ -886,11 +898,19 @@ const importFlowGitProviderEnum = {
886
898
  gitlab: "gitlab",
887
899
  vercel: "vercel"
888
900
  };
901
+ const widgetEnum = {
902
+ alert: "alert",
903
+ "firewall-allowed": "firewall-allowed",
904
+ "firewall-denied": "firewall-denied",
905
+ online: "online",
906
+ res: "res"
907
+ };
889
908
  const configurationEnum = {
890
909
  SKIP_NAMESPACE_QUEUE: "SKIP_NAMESPACE_QUEUE",
891
910
  WAIT_FOR_NAMESPACE_QUEUE: "WAIT_FOR_NAMESPACE_QUEUE"
892
911
  };
893
912
  const defaultEnum = {
913
+ basic: "basic",
894
914
  elastic: "elastic",
895
915
  enhanced: "enhanced",
896
916
  standard: "standard",
@@ -1208,12 +1228,14 @@ const scopeEnum = {
1208
1228
  user: "user"
1209
1229
  };
1210
1230
  const previousEnum = {
1231
+ basic: "basic",
1211
1232
  elastic: "elastic",
1212
1233
  enhanced: "enhanced",
1213
1234
  standard: "standard",
1214
1235
  turbo: "turbo"
1215
1236
  };
1216
1237
  const nextEnum = {
1238
+ basic: "basic",
1217
1239
  elastic: "elastic",
1218
1240
  enhanced: "enhanced",
1219
1241
  standard: "standard",
@@ -1580,6 +1602,10 @@ const listEventTypeNameEnum = {
1580
1602
  "observability-enabled": "observability-enabled",
1581
1603
  "observability-plus-project-disabled": "observability-plus-project-disabled",
1582
1604
  "observability-plus-project-enabled": "observability-plus-project-enabled",
1605
+ "oidc-policy-created": "oidc-policy-created",
1606
+ "oidc-policy-deleted": "oidc-policy-deleted",
1607
+ "oidc-policy-updated": "oidc-policy-updated",
1608
+ "oidc-policy-used-to-obtain-app-token": "oidc-policy-used-to-obtain-app-token",
1583
1609
  "organization-create": "organization-create",
1584
1610
  "organization-delete": "organization-delete",
1585
1611
  "organization-slug-update": "organization-slug-update",
@@ -1628,6 +1654,7 @@ const listEventTypeNameEnum = {
1628
1654
  "project-build-command-updated": "project-build-command-updated",
1629
1655
  "project-build-logs-and-source-protection-updated": "project-build-logs-and-source-protection-updated",
1630
1656
  "project-build-machine-updated": "project-build-machine-updated",
1657
+ "project-card-widget-preference-updated": "project-card-widget-preference-updated",
1631
1658
  "project-client-cert-delete": "project-client-cert-delete",
1632
1659
  "project-client-cert-upload": "project-client-cert-upload",
1633
1660
  "project-connect-configurations": "project-connect-configurations",
@@ -1840,7 +1867,9 @@ const listEventTypeNameEnum = {
1840
1867
  "user-emu-account-archived": "user-emu-account-archived",
1841
1868
  "user-emu-account-deleted": "user-emu-account-deleted",
1842
1869
  "user-emu-account-recovered": "user-emu-account-recovered",
1870
+ "user-mfa-challenge-failed": "user-mfa-challenge-failed",
1843
1871
  "user-mfa-challenge-verified": "user-mfa-challenge-verified",
1872
+ "user-mfa-change-failed": "user-mfa-change-failed",
1844
1873
  "user-mfa-configuration-updated": "user-mfa-configuration-updated",
1845
1874
  "user-mfa-recovery-codes-regenerated": "user-mfa-recovery-codes-regenerated",
1846
1875
  "user-mfa-removed": "user-mfa-removed",
@@ -2183,6 +2212,10 @@ const listEventTypeReplacedByEnum = {
2183
2212
  "observability-enabled": "observability-enabled",
2184
2213
  "observability-plus-project-disabled": "observability-plus-project-disabled",
2185
2214
  "observability-plus-project-enabled": "observability-plus-project-enabled",
2215
+ "oidc-policy-created": "oidc-policy-created",
2216
+ "oidc-policy-deleted": "oidc-policy-deleted",
2217
+ "oidc-policy-updated": "oidc-policy-updated",
2218
+ "oidc-policy-used-to-obtain-app-token": "oidc-policy-used-to-obtain-app-token",
2186
2219
  "organization-create": "organization-create",
2187
2220
  "organization-delete": "organization-delete",
2188
2221
  "organization-slug-update": "organization-slug-update",
@@ -2231,6 +2264,7 @@ const listEventTypeReplacedByEnum = {
2231
2264
  "project-build-command-updated": "project-build-command-updated",
2232
2265
  "project-build-logs-and-source-protection-updated": "project-build-logs-and-source-protection-updated",
2233
2266
  "project-build-machine-updated": "project-build-machine-updated",
2267
+ "project-card-widget-preference-updated": "project-card-widget-preference-updated",
2234
2268
  "project-client-cert-delete": "project-client-cert-delete",
2235
2269
  "project-client-cert-upload": "project-client-cert-upload",
2236
2270
  "project-connect-configurations": "project-connect-configurations",
@@ -2443,7 +2477,9 @@ const listEventTypeReplacedByEnum = {
2443
2477
  "user-emu-account-archived": "user-emu-account-archived",
2444
2478
  "user-emu-account-deleted": "user-emu-account-deleted",
2445
2479
  "user-emu-account-recovered": "user-emu-account-recovered",
2480
+ "user-mfa-challenge-failed": "user-mfa-challenge-failed",
2446
2481
  "user-mfa-challenge-verified": "user-mfa-challenge-verified",
2482
+ "user-mfa-change-failed": "user-mfa-change-failed",
2447
2483
  "user-mfa-configuration-updated": "user-mfa-configuration-updated",
2448
2484
  "user-mfa-recovery-codes-regenerated": "user-mfa-recovery-codes-regenerated",
2449
2485
  "user-mfa-removed": "user-mfa-removed",
@@ -2696,6 +2732,7 @@ const teamDefaultRolesTeamPermissionsEnum = {
2696
2732
  V0Viewer: "V0Viewer"
2697
2733
  };
2698
2734
  const teamResourceConfigBuildMachineDefaultEnum = {
2735
+ basic: "basic",
2699
2736
  elastic: "elastic",
2700
2737
  enhanced: "enhanced",
2701
2738
  standard: "standard",
@@ -3192,3 +3229,4 @@ exports.vcrTagKindEnum = vcrTagKindEnum;
3192
3229
  exports.vcrTagStatusEnum = vcrTagStatusEnum;
3193
3230
  exports.versionEnum = versionEnum;
3194
3231
  exports.viewPreferenceEnum = viewPreferenceEnum;
3232
+ exports.widgetEnum = widgetEnum;