vercel-api-js 1.8.0 → 1.8.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.
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",
@@ -5098,6 +5116,10 @@ const userEventSchema = z.object({
5098
5116
  z.literal(false),
5099
5117
  z.literal(true)
5100
5118
  ]).optional(),
5119
+ connectSrcNotificationsEnabled: z.union([
5120
+ z.literal(false),
5121
+ z.literal(true)
5122
+ ]).optional(),
5101
5123
  computedScriptSrc: z.string().optional(),
5102
5124
  computedScriptSrcPreview: z.string().optional(),
5103
5125
  computedConnectSrc: z.string().optional(),
@@ -5126,6 +5148,10 @@ const userEventSchema = z.object({
5126
5148
  z.literal(false),
5127
5149
  z.literal(true)
5128
5150
  ]).optional(),
5151
+ connectSrcNotificationsEnabled: z.union([
5152
+ z.literal(false),
5153
+ z.literal(true)
5154
+ ]).optional(),
5129
5155
  computedScriptSrc: z.string().optional(),
5130
5156
  computedScriptSrcPreview: z.string().optional(),
5131
5157
  computedConnectSrc: z.string().optional(),
@@ -5532,6 +5558,17 @@ const userEventSchema = z.object({
5532
5558
  ]).optional(),
5533
5559
  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
5560
  }).strict(),
5561
+ z.object({
5562
+ projectId: z.string(),
5563
+ projectName: z.string(),
5564
+ widget: z.enum([
5565
+ "alert",
5566
+ "firewall-allowed",
5567
+ "firewall-denied",
5568
+ "online",
5569
+ "res"
5570
+ ]).nullable()
5571
+ }).strict(),
5535
5572
  z.object({
5536
5573
  projectId: z.string().optional(),
5537
5574
  projectName: z.string().optional(),
@@ -6871,12 +6908,14 @@ const userEventSchema = z.object({
6871
6908
  }).strict(),
6872
6909
  z.object({
6873
6910
  previous: z.enum([
6911
+ "basic",
6874
6912
  "elastic",
6875
6913
  "enhanced",
6876
6914
  "standard",
6877
6915
  "turbo"
6878
6916
  ]).optional(),
6879
6917
  next: z.enum([
6918
+ "basic",
6880
6919
  "elastic",
6881
6920
  "enhanced",
6882
6921
  "standard",
@@ -7299,6 +7338,27 @@ const userEventSchema = z.object({
7299
7338
  z.object({
7300
7339
  username: z.string()
7301
7340
  }).strict(),
7341
+ z.object({
7342
+ method: z.enum([
7343
+ "email-otp",
7344
+ "recovery-code",
7345
+ "totp",
7346
+ "webauthn"
7347
+ ]),
7348
+ reason: z.string()
7349
+ }).strict(),
7350
+ z.object({
7351
+ action: z.enum([
7352
+ "add-passkey",
7353
+ "add-totp",
7354
+ "admin-remove",
7355
+ "disable",
7356
+ "enable",
7357
+ "regenerate-recovery-codes",
7358
+ "remove-passkey"
7359
+ ]),
7360
+ reason: z.string()
7361
+ }).strict(),
7302
7362
  z.object({
7303
7363
  previous: z.object({
7304
7364
  enabled: z.union([
@@ -7579,6 +7639,81 @@ const userEventSchema = z.object({
7579
7639
  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
7640
  oidcSubject: z.string().optional().describe("`sub` claim of the OIDC token. Present for OIDC-authenticated flows (see {@link issuerUrl}).")
7581
7641
  }).strict(),
7642
+ z.object({
7643
+ policy: z.object({
7644
+ policyId: z.string(),
7645
+ clientId: z.string(),
7646
+ issuerUrl: z.string(),
7647
+ teamId: z.string(),
7648
+ name: z.string().nullable().describe("Human-readable policy name, or `null` when unnamed."),
7649
+ claims: z.array(z.object({
7650
+ name: z.string(),
7651
+ values: z.array(z.object({
7652
+ value: z.string(),
7653
+ wildcards: z.union([
7654
+ z.literal(false),
7655
+ z.literal(true)
7656
+ ])
7657
+ }))
7658
+ })).describe("Claim matchers an OIDC token must satisfy to use the policy."),
7659
+ permissions: z.array(z.string()).describe("Permission boundary (`['*']` = the app's full declared permissions)."),
7660
+ resources: z.object({
7661
+ projectIds: z.array(z.string())
7662
+ }).nullable().describe("Resource boundary, or `null` when the policy has none."),
7663
+ createdAt: z.number().describe("Creation time (epoch ms)."),
7664
+ updatedAt: z.number().describe("Last-update time (epoch ms).")
7665
+ }).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."),
7666
+ appName: z.string().optional()
7667
+ }).strict(),
7668
+ z.object({
7669
+ before: z.object({
7670
+ policyId: z.string(),
7671
+ clientId: z.string(),
7672
+ issuerUrl: z.string(),
7673
+ teamId: z.string(),
7674
+ name: z.string().nullable().describe("Human-readable policy name, or `null` when unnamed."),
7675
+ claims: z.array(z.object({
7676
+ name: z.string(),
7677
+ values: z.array(z.object({
7678
+ value: z.string(),
7679
+ wildcards: z.union([
7680
+ z.literal(false),
7681
+ z.literal(true)
7682
+ ])
7683
+ }))
7684
+ })).describe("Claim matchers an OIDC token must satisfy to use the policy."),
7685
+ permissions: z.array(z.string()).describe("Permission boundary (`['*']` = the app's full declared permissions)."),
7686
+ resources: z.object({
7687
+ projectIds: z.array(z.string())
7688
+ }).nullable().describe("Resource boundary, or `null` when the policy has none."),
7689
+ createdAt: z.number().describe("Creation time (epoch ms)."),
7690
+ updatedAt: z.number().describe("Last-update time (epoch ms).")
7691
+ }).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."),
7692
+ after: z.object({
7693
+ policyId: z.string(),
7694
+ clientId: z.string(),
7695
+ issuerUrl: z.string(),
7696
+ teamId: z.string(),
7697
+ name: z.string().nullable().describe("Human-readable policy name, or `null` when unnamed."),
7698
+ claims: z.array(z.object({
7699
+ name: z.string(),
7700
+ values: z.array(z.object({
7701
+ value: z.string(),
7702
+ wildcards: z.union([
7703
+ z.literal(false),
7704
+ z.literal(true)
7705
+ ])
7706
+ }))
7707
+ })).describe("Claim matchers an OIDC token must satisfy to use the policy."),
7708
+ permissions: z.array(z.string()).describe("Permission boundary (`['*']` = the app's full declared permissions)."),
7709
+ resources: z.object({
7710
+ projectIds: z.array(z.string())
7711
+ }).nullable().describe("Resource boundary, or `null` when the policy has none."),
7712
+ createdAt: z.number().describe("Creation time (epoch ms)."),
7713
+ updatedAt: z.number().describe("Last-update time (epoch ms).")
7714
+ }).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."),
7715
+ appName: z.string().optional()
7716
+ }).strict(),
7582
7717
  z.object({
7583
7718
  tokenId: z.string().describe("The token's public ID."),
7584
7719
  tokenPrefix: z.enum([
@@ -8009,6 +8144,10 @@ const listEventTypeSchema = z.object({
8009
8144
  "observability-enabled",
8010
8145
  "observability-plus-project-disabled",
8011
8146
  "observability-plus-project-enabled",
8147
+ "oidc-policy-created",
8148
+ "oidc-policy-deleted",
8149
+ "oidc-policy-updated",
8150
+ "oidc-policy-used-to-obtain-app-token",
8012
8151
  "organization-create",
8013
8152
  "organization-delete",
8014
8153
  "organization-slug-update",
@@ -8057,6 +8196,7 @@ const listEventTypeSchema = z.object({
8057
8196
  "project-build-command-updated",
8058
8197
  "project-build-logs-and-source-protection-updated",
8059
8198
  "project-build-machine-updated",
8199
+ "project-card-widget-preference-updated",
8060
8200
  "project-client-cert-delete",
8061
8201
  "project-client-cert-upload",
8062
8202
  "project-connect-configurations",
@@ -8269,7 +8409,9 @@ const listEventTypeSchema = z.object({
8269
8409
  "user-emu-account-archived",
8270
8410
  "user-emu-account-deleted",
8271
8411
  "user-emu-account-recovered",
8412
+ "user-mfa-challenge-failed",
8272
8413
  "user-mfa-challenge-verified",
8414
+ "user-mfa-change-failed",
8273
8415
  "user-mfa-configuration-updated",
8274
8416
  "user-mfa-recovery-codes-regenerated",
8275
8417
  "user-mfa-removed",
@@ -8617,6 +8759,10 @@ const listEventTypeSchema = z.object({
8617
8759
  "observability-enabled",
8618
8760
  "observability-plus-project-disabled",
8619
8761
  "observability-plus-project-enabled",
8762
+ "oidc-policy-created",
8763
+ "oidc-policy-deleted",
8764
+ "oidc-policy-updated",
8765
+ "oidc-policy-used-to-obtain-app-token",
8620
8766
  "organization-create",
8621
8767
  "organization-delete",
8622
8768
  "organization-slug-update",
@@ -8665,6 +8811,7 @@ const listEventTypeSchema = z.object({
8665
8811
  "project-build-command-updated",
8666
8812
  "project-build-logs-and-source-protection-updated",
8667
8813
  "project-build-machine-updated",
8814
+ "project-card-widget-preference-updated",
8668
8815
  "project-client-cert-delete",
8669
8816
  "project-client-cert-upload",
8670
8817
  "project-connect-configurations",
@@ -8877,7 +9024,9 @@ const listEventTypeSchema = z.object({
8877
9024
  "user-emu-account-archived",
8878
9025
  "user-emu-account-deleted",
8879
9026
  "user-emu-account-recovered",
9027
+ "user-mfa-challenge-failed",
8880
9028
  "user-mfa-challenge-verified",
9029
+ "user-mfa-change-failed",
8881
9030
  "user-mfa-configuration-updated",
8882
9031
  "user-mfa-recovery-codes-regenerated",
8883
9032
  "user-mfa-removed",
@@ -9773,6 +9922,7 @@ const teamSchema = z.object({
9773
9922
  }).optional(),
9774
9923
  buildMachine: z.object({
9775
9924
  default: z.enum([
9925
+ "basic",
9776
9926
  "elastic",
9777
9927
  "enhanced",
9778
9928
  "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;