vercel-api-js 1.20.2 → 1.21.0

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
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
 
3
3
  var components = require('./components-pfe7zbum.cjs');
4
- var schemas = require('./schemas-ltom3qj0.cjs');
4
+ var schemas = require('./schemas-dssww1l5.cjs');
5
5
  var types = require('./types.cjs');
6
6
 
7
7
  function formEncoded(data) {
package/dist/index.d.ts CHANGED
@@ -4467,6 +4467,16 @@ declare const userEventPayloadRuleProvenanceEnum: {
4467
4467
  readonly team: "team";
4468
4468
  };
4469
4469
  type UserEventPayloadRuleProvenanceEnumKey = (typeof userEventPayloadRuleProvenanceEnum)[keyof typeof userEventPayloadRuleProvenanceEnum];
4470
+ declare const userEventPayloadModeEnum: {
4471
+ readonly organization: "organization";
4472
+ readonly team: "team";
4473
+ };
4474
+ type UserEventPayloadModeEnumKey = (typeof userEventPayloadModeEnum)[keyof typeof userEventPayloadModeEnum];
4475
+ declare const userEventPayloadPreviousModeEnum: {
4476
+ readonly organization: "organization";
4477
+ readonly team: "team";
4478
+ };
4479
+ type UserEventPayloadPreviousModeEnumKey = (typeof userEventPayloadPreviousModeEnum)[keyof typeof userEventPayloadPreviousModeEnum];
4470
4480
  declare const userEventPayloadInitiatorEnum: {
4471
4481
  readonly system: "system";
4472
4482
  readonly user: "user";
@@ -5115,16 +5125,6 @@ declare const userEventPayloadBillingPlanEnum: {
5115
5125
  readonly platform: "platform";
5116
5126
  };
5117
5127
  type UserEventPayloadBillingPlanEnumKey = (typeof userEventPayloadBillingPlanEnum)[keyof typeof userEventPayloadBillingPlanEnum];
5118
- declare const userEventPayloadModeEnum: {
5119
- readonly organization: "organization";
5120
- readonly team: "team";
5121
- };
5122
- type UserEventPayloadModeEnumKey = (typeof userEventPayloadModeEnum)[keyof typeof userEventPayloadModeEnum];
5123
- declare const userEventPayloadPreviousModeEnum: {
5124
- readonly organization: "organization";
5125
- readonly team: "team";
5126
- };
5127
- type UserEventPayloadPreviousModeEnumKey = (typeof userEventPayloadPreviousModeEnum)[keyof typeof userEventPayloadPreviousModeEnum];
5128
5128
  declare const userEventPayloadNextEnforcementScopeEnum: {
5129
5129
  readonly all: "all";
5130
5130
  readonly preview: "preview";
@@ -5914,6 +5914,7 @@ declare const userEventTypeEnum: {
5914
5914
  readonly "deployment-creation-blocked": "deployment-creation-blocked";
5915
5915
  readonly "deployment-delete": "deployment-delete";
5916
5916
  readonly "deployment-policy-blocked": "deployment-policy-blocked";
5917
+ readonly "deployment-protection-access-requests": "deployment-protection-access-requests";
5917
5918
  readonly "deployment-undeleted": "deployment-undeleted";
5918
5919
  readonly "disabled-integration-installation-removed": "disabled-integration-installation-removed";
5919
5920
  readonly "disconnect-bitbucket-app": "disconnect-bitbucket-app";
@@ -8249,6 +8250,13 @@ type UserEvent = {
8249
8250
  * @type string
8250
8251
  */
8251
8252
  source: string;
8253
+ } | {
8254
+ mode: "none" | null;
8255
+ previousMode: "none" | null;
8256
+ scope: "organization";
8257
+ } | {
8258
+ mode: UserEventPayloadModeEnumKey;
8259
+ previousMode: UserEventPayloadPreviousModeEnumKey;
8252
8260
  } | {
8253
8261
  deploymentId: string;
8254
8262
  deploymentName: string | null;
@@ -11240,6 +11248,7 @@ type UserEvent = {
11240
11248
  } | UserEventPayloadOldSsoProtectionKey) | null;
11241
11249
  projectId?: string | undefined;
11242
11250
  projectName?: string | undefined;
11251
+ scope?: "organization" | undefined;
11243
11252
  ssoProtection: ({
11244
11253
  april2026SecurityIncidentMigrationAppliedFrom?: (UserEventPayloadSsoProtectionApril2026SecurityIncidentMigrationAppliedFromEnumKey | null) | undefined;
11245
11254
  cve55182MigrationAppliedFrom?: (UserEventPayloadSsoProtectionCve55182MigrationAppliedFromEnumKey | null) | undefined;
@@ -12068,6 +12077,9 @@ type UserEvent = {
12068
12077
  slug: string;
12069
12078
  teamId: string;
12070
12079
  timestamp?: number | undefined;
12080
+ } | {
12081
+ enabled: false | true;
12082
+ scope?: "organization" | undefined;
12071
12083
  } | {
12072
12084
  next: {
12073
12085
  deploymentSources?: (string[] | null) | undefined;
@@ -13285,6 +13297,7 @@ declare const listEventTypeNameEnum: {
13285
13297
  readonly "deployment-creation-blocked": "deployment-creation-blocked";
13286
13298
  readonly "deployment-delete": "deployment-delete";
13287
13299
  readonly "deployment-policy-blocked": "deployment-policy-blocked";
13300
+ readonly "deployment-protection-access-requests": "deployment-protection-access-requests";
13288
13301
  readonly "deployment-undeleted": "deployment-undeleted";
13289
13302
  readonly "disabled-integration-installation-removed": "disabled-integration-installation-removed";
13290
13303
  readonly "disconnect-bitbucket-app": "disconnect-bitbucket-app";
@@ -13975,6 +13988,7 @@ declare const listEventTypeReplacedByEnum: {
13975
13988
  readonly "deployment-creation-blocked": "deployment-creation-blocked";
13976
13989
  readonly "deployment-delete": "deployment-delete";
13977
13990
  readonly "deployment-policy-blocked": "deployment-policy-blocked";
13991
+ readonly "deployment-protection-access-requests": "deployment-protection-access-requests";
13978
13992
  readonly "deployment-undeleted": "deployment-undeleted";
13979
13993
  readonly "disabled-integration-installation-removed": "disabled-integration-installation-removed";
13980
13994
  readonly "disconnect-bitbucket-app": "disconnect-bitbucket-app";
@@ -49572,6 +49586,27 @@ declare const userEventSchema: z.ZodObject<{
49572
49586
  team: "team";
49573
49587
  }>;
49574
49588
  source: z.ZodString;
49589
+ }, z.core.$strict>, z.ZodObject<{
49590
+ mode: z.ZodNullable<z.ZodEnum<{
49591
+ none: "none";
49592
+ }>>;
49593
+ previousMode: z.ZodNullable<z.ZodEnum<{
49594
+ none: "none";
49595
+ }>>;
49596
+ scope: z.ZodEnum<{
49597
+ organization: "organization";
49598
+ }>;
49599
+ }, z.core.$strict>, z.ZodObject<{
49600
+ mode: z.ZodEnum<{
49601
+ none: "none";
49602
+ all: "all";
49603
+ "email-domain": "email-domain";
49604
+ }>;
49605
+ previousMode: z.ZodEnum<{
49606
+ none: "none";
49607
+ all: "all";
49608
+ "email-domain": "email-domain";
49609
+ }>;
49575
49610
  }, z.core.$strict>, z.ZodObject<{
49576
49611
  deploymentId: z.ZodString;
49577
49612
  deploymentName: z.ZodNullable<z.ZodString>;
@@ -52688,6 +52723,9 @@ declare const userEventSchema: z.ZodObject<{
52688
52723
  }>]>>;
52689
52724
  projectId: z.ZodOptional<z.ZodString>;
52690
52725
  projectName: z.ZodOptional<z.ZodString>;
52726
+ scope: z.ZodOptional<z.ZodEnum<{
52727
+ organization: "organization";
52728
+ }>>;
52691
52729
  ssoProtection: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
52692
52730
  april2026SecurityIncidentMigrationAppliedFrom: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
52693
52731
  preview: "preview";
@@ -53313,6 +53351,11 @@ declare const userEventSchema: z.ZodObject<{
53313
53351
  slug: z.ZodString;
53314
53352
  teamId: z.ZodString;
53315
53353
  timestamp: z.ZodOptional<z.ZodNumber>;
53354
+ }, z.core.$strict>, z.ZodObject<{
53355
+ enabled: z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodLiteral<true>]>;
53356
+ scope: z.ZodOptional<z.ZodEnum<{
53357
+ organization: "organization";
53358
+ }>>;
53316
53359
  }, z.core.$strict>, z.ZodObject<{
53317
53360
  next: z.ZodNullable<z.ZodObject<{
53318
53361
  deploymentSources: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
@@ -54466,6 +54509,7 @@ declare const userEventSchema: z.ZodObject<{
54466
54509
  "deployment-creation-blocked": "deployment-creation-blocked";
54467
54510
  "deployment-delete": "deployment-delete";
54468
54511
  "deployment-policy-blocked": "deployment-policy-blocked";
54512
+ "deployment-protection-access-requests": "deployment-protection-access-requests";
54469
54513
  "deployment-undeleted": "deployment-undeleted";
54470
54514
  "disabled-integration-installation-removed": "disabled-integration-installation-removed";
54471
54515
  "disconnect-bitbucket-app": "disconnect-bitbucket-app";
@@ -55221,6 +55265,7 @@ declare const listEventTypeSchema: z.ZodObject<{
55221
55265
  "deployment-creation-blocked": "deployment-creation-blocked";
55222
55266
  "deployment-delete": "deployment-delete";
55223
55267
  "deployment-policy-blocked": "deployment-policy-blocked";
55268
+ "deployment-protection-access-requests": "deployment-protection-access-requests";
55224
55269
  "deployment-undeleted": "deployment-undeleted";
55225
55270
  "disabled-integration-installation-removed": "disabled-integration-installation-removed";
55226
55271
  "disconnect-bitbucket-app": "disconnect-bitbucket-app";
@@ -55910,6 +55955,7 @@ declare const listEventTypeSchema: z.ZodObject<{
55910
55955
  "deployment-creation-blocked": "deployment-creation-blocked";
55911
55956
  "deployment-delete": "deployment-delete";
55912
55957
  "deployment-policy-blocked": "deployment-policy-blocked";
55958
+ "deployment-protection-access-requests": "deployment-protection-access-requests";
55913
55959
  "deployment-undeleted": "deployment-undeleted";
55914
55960
  "disabled-integration-installation-removed": "disabled-integration-installation-removed";
55915
55961
  "disconnect-bitbucket-app": "disconnect-bitbucket-app";