vercel-api-js 1.38.1 → 1.38.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/index.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
 
3
3
  var components = require('./components-e26mvbwq.cjs');
4
- var schemas = require('./schemas-cxs1t94s.cjs');
4
+ var schemas = require('./schemas-ospl73kq.cjs');
5
5
  var types = require('./types.cjs');
6
6
 
7
7
  function formEncoded(data) {
package/dist/index.d.ts CHANGED
@@ -4777,6 +4777,18 @@ declare const userEventPayloadToAccountTypeEnum: {
4777
4777
  readonly user: "user";
4778
4778
  };
4779
4779
  type UserEventPayloadToAccountTypeEnumKey = (typeof userEventPayloadToAccountTypeEnum)[keyof typeof userEventPayloadToAccountTypeEnum];
4780
+ declare const userEventPayloadUpdateDiffNewTargetEnum: {
4781
+ readonly development: "development";
4782
+ readonly preview: "preview";
4783
+ readonly production: "production";
4784
+ };
4785
+ type UserEventPayloadUpdateDiffNewTargetEnumKey = (typeof userEventPayloadUpdateDiffNewTargetEnum)[keyof typeof userEventPayloadUpdateDiffNewTargetEnum];
4786
+ declare const userEventPayloadUpdateDiffOldTargetEnum: {
4787
+ readonly development: "development";
4788
+ readonly preview: "preview";
4789
+ readonly production: "production";
4790
+ };
4791
+ type UserEventPayloadUpdateDiffOldTargetEnumKey = (typeof userEventPayloadUpdateDiffOldTargetEnum)[keyof typeof userEventPayloadUpdateDiffOldTargetEnum];
4780
4792
  declare const userEventPayloadTargetEnum: {
4781
4793
  readonly development: "development";
4782
4794
  readonly preview: "preview";
@@ -4817,18 +4829,6 @@ declare const userEventPayloadOldEnvVarTypeEnum: {
4817
4829
  readonly system: "system";
4818
4830
  };
4819
4831
  type UserEventPayloadOldEnvVarTypeEnumKey = (typeof userEventPayloadOldEnvVarTypeEnum)[keyof typeof userEventPayloadOldEnvVarTypeEnum];
4820
- declare const userEventPayloadUpdateDiffNewTargetEnum: {
4821
- readonly development: "development";
4822
- readonly preview: "preview";
4823
- readonly production: "production";
4824
- };
4825
- type UserEventPayloadUpdateDiffNewTargetEnumKey = (typeof userEventPayloadUpdateDiffNewTargetEnum)[keyof typeof userEventPayloadUpdateDiffNewTargetEnum];
4826
- declare const userEventPayloadUpdateDiffOldTargetEnum: {
4827
- readonly development: "development";
4828
- readonly preview: "preview";
4829
- readonly production: "production";
4830
- };
4831
- type UserEventPayloadUpdateDiffOldTargetEnumKey = (typeof userEventPayloadUpdateDiffOldTargetEnum)[keyof typeof userEventPayloadUpdateDiffOldTargetEnum];
4832
4832
  declare const actionEnum: {
4833
4833
  readonly challenge: "challenge";
4834
4834
  readonly deny: "deny";
@@ -8321,6 +8321,35 @@ type UserEvent = {
8321
8321
  projectName?: string | undefined;
8322
8322
  source?: string | undefined;
8323
8323
  target?: (string | string[]) | undefined;
8324
+ } | {
8325
+ customEnvironmentSlugs?: string[] | undefined;
8326
+ edgeConfigId?: (string | null) | undefined;
8327
+ edgeConfigTokenId?: (string | null) | undefined;
8328
+ gitBranch?: string | undefined;
8329
+ id?: string | undefined;
8330
+ ipAddress?: string | undefined;
8331
+ key?: string | undefined;
8332
+ projectId?: string | undefined;
8333
+ projectName?: string | undefined;
8334
+ source?: string | undefined;
8335
+ target?: (string | string[]) | undefined;
8336
+ updateDiff?: {
8337
+ changedComment?: (false | true) | undefined;
8338
+ changedGitBranch?: (false | true) | undefined;
8339
+ /**
8340
+ * @description Indicates a value was submitted, not whether its plaintext changed.
8341
+ * @type boolean
8342
+ */
8343
+ changedValue: false | true;
8344
+ key?: string | undefined;
8345
+ newCustomEnvironmentIds?: string[] | undefined;
8346
+ newKey?: string | undefined;
8347
+ newTarget?: UserEventPayloadUpdateDiffNewTargetEnumKey[] | undefined;
8348
+ newType?: string | undefined;
8349
+ oldCustomEnvironmentIds?: string[] | undefined;
8350
+ oldTarget?: UserEventPayloadUpdateDiffOldTargetEnumKey[] | undefined;
8351
+ oldType?: string | undefined;
8352
+ } | undefined;
8324
8353
  } | {
8325
8354
  customEnvironmentSlugs?: string[] | undefined;
8326
8355
  edgeConfigId?: (string | null) | undefined;
@@ -8724,24 +8753,30 @@ type UserEvent = {
8724
8753
  value?: string | undefined;
8725
8754
  } | undefined;
8726
8755
  updateDiff?: {
8756
+ changedComment?: (false | true) | undefined;
8757
+ changedGitBranch?: (false | true) | undefined;
8758
+ /**
8759
+ * @description Indicates a value was submitted, not whether its plaintext changed.
8760
+ * @type boolean
8761
+ */
8727
8762
  changedValue: false | true;
8728
- id: string;
8729
8763
  key?: string | undefined;
8730
8764
  newCustomEnvironmentIds?: string[] | undefined;
8731
8765
  newKey?: string | undefined;
8766
+ newTarget?: UserEventPayloadUpdateDiffNewTargetEnumKey[] | undefined;
8767
+ newType?: string | undefined;
8768
+ oldCustomEnvironmentIds?: string[] | undefined;
8769
+ oldTarget?: UserEventPayloadUpdateDiffOldTargetEnumKey[] | undefined;
8770
+ oldType?: string | undefined;
8771
+ id: string;
8732
8772
  newProjects?: {
8733
8773
  projectId: string;
8734
8774
  projectName?: string | undefined;
8735
8775
  }[] | undefined;
8736
- newTarget?: UserEventPayloadUpdateDiffNewTargetEnumKey[] | undefined;
8737
- newType?: string | undefined;
8738
- oldCustomEnvironmentIds?: string[] | undefined;
8739
8776
  oldProjects?: {
8740
8777
  projectId: string;
8741
8778
  projectName?: string | undefined;
8742
8779
  }[] | undefined;
8743
- oldTarget?: UserEventPayloadUpdateDiffOldTargetEnumKey[] | undefined;
8744
- oldType?: string | undefined;
8745
8780
  } | undefined;
8746
8781
  } | {
8747
8782
  expiresAt?: (number | null) | undefined;
@@ -15601,6 +15636,7 @@ type Team = {
15601
15636
  ssoConnectedAt?: number | undefined;
15602
15637
  ssoUserId?: string | undefined;
15603
15638
  } | undefined;
15639
+ organizationId?: string | undefined;
15604
15640
  role: TeamMembershipRoleEnumKey;
15605
15641
  teamId?: string | undefined;
15606
15642
  teamPermissions?: TeamMembershipTeamPermissionsEnumKey[] | undefined;
@@ -16025,6 +16061,7 @@ type TeamLimited = {
16025
16061
  ssoConnectedAt?: number | undefined;
16026
16062
  ssoUserId?: string | undefined;
16027
16063
  } | undefined;
16064
+ organizationId?: string | undefined;
16028
16065
  role: TeamLimitedMembershipRoleEnumKey;
16029
16066
  teamId?: string | undefined;
16030
16067
  teamPermissions?: TeamLimitedMembershipTeamPermissionsEnumKey[] | undefined;
@@ -51760,6 +51797,39 @@ declare const userEventSchema: z.ZodObject<{
51760
51797
  projectName: z.ZodOptional<z.ZodString>;
51761
51798
  source: z.ZodOptional<z.ZodString>;
51762
51799
  target: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
51800
+ }, z.core.$strict>, z.ZodObject<{
51801
+ customEnvironmentSlugs: z.ZodOptional<z.ZodArray<z.ZodString>>;
51802
+ edgeConfigId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51803
+ edgeConfigTokenId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51804
+ gitBranch: z.ZodOptional<z.ZodString>;
51805
+ id: z.ZodOptional<z.ZodString>;
51806
+ ipAddress: z.ZodOptional<z.ZodString>;
51807
+ key: z.ZodOptional<z.ZodString>;
51808
+ projectId: z.ZodOptional<z.ZodString>;
51809
+ projectName: z.ZodOptional<z.ZodString>;
51810
+ source: z.ZodOptional<z.ZodString>;
51811
+ target: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
51812
+ updateDiff: z.ZodOptional<z.ZodObject<{
51813
+ changedComment: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodLiteral<true>]>>;
51814
+ changedGitBranch: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodLiteral<true>]>>;
51815
+ changedValue: z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodLiteral<true>]>;
51816
+ key: z.ZodOptional<z.ZodString>;
51817
+ newCustomEnvironmentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
51818
+ newKey: z.ZodOptional<z.ZodString>;
51819
+ newTarget: z.ZodOptional<z.ZodArray<z.ZodEnum<{
51820
+ production: "production";
51821
+ preview: "preview";
51822
+ development: "development";
51823
+ }>>>;
51824
+ newType: z.ZodOptional<z.ZodString>;
51825
+ oldCustomEnvironmentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
51826
+ oldTarget: z.ZodOptional<z.ZodArray<z.ZodEnum<{
51827
+ production: "production";
51828
+ preview: "preview";
51829
+ development: "development";
51830
+ }>>>;
51831
+ oldType: z.ZodOptional<z.ZodString>;
51832
+ }, z.core.$strip>>;
51763
51833
  }, z.core.$strict>, z.ZodObject<{
51764
51834
  customEnvironmentSlugs: z.ZodOptional<z.ZodArray<z.ZodString>>;
51765
51835
  edgeConfigId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -51936,15 +52006,12 @@ declare const userEventSchema: z.ZodObject<{
51936
52006
  value: z.ZodOptional<z.ZodString>;
51937
52007
  }, z.core.$strip>>;
51938
52008
  updateDiff: z.ZodOptional<z.ZodObject<{
52009
+ changedComment: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodLiteral<true>]>>;
52010
+ changedGitBranch: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodLiteral<true>]>>;
51939
52011
  changedValue: z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodLiteral<true>]>;
51940
- id: z.ZodString;
51941
52012
  key: z.ZodOptional<z.ZodString>;
51942
52013
  newCustomEnvironmentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
51943
52014
  newKey: z.ZodOptional<z.ZodString>;
51944
- newProjects: z.ZodOptional<z.ZodArray<z.ZodObject<{
51945
- projectId: z.ZodString;
51946
- projectName: z.ZodOptional<z.ZodString>;
51947
- }, z.core.$strip>>>;
51948
52015
  newTarget: z.ZodOptional<z.ZodArray<z.ZodEnum<{
51949
52016
  production: "production";
51950
52017
  preview: "preview";
@@ -51952,16 +52019,21 @@ declare const userEventSchema: z.ZodObject<{
51952
52019
  }>>>;
51953
52020
  newType: z.ZodOptional<z.ZodString>;
51954
52021
  oldCustomEnvironmentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
51955
- oldProjects: z.ZodOptional<z.ZodArray<z.ZodObject<{
51956
- projectId: z.ZodString;
51957
- projectName: z.ZodOptional<z.ZodString>;
51958
- }, z.core.$strip>>>;
51959
52022
  oldTarget: z.ZodOptional<z.ZodArray<z.ZodEnum<{
51960
52023
  production: "production";
51961
52024
  preview: "preview";
51962
52025
  development: "development";
51963
52026
  }>>>;
51964
52027
  oldType: z.ZodOptional<z.ZodString>;
52028
+ id: z.ZodString;
52029
+ newProjects: z.ZodOptional<z.ZodArray<z.ZodObject<{
52030
+ projectId: z.ZodString;
52031
+ projectName: z.ZodOptional<z.ZodString>;
52032
+ }, z.core.$strip>>>;
52033
+ oldProjects: z.ZodOptional<z.ZodArray<z.ZodObject<{
52034
+ projectId: z.ZodString;
52035
+ projectName: z.ZodOptional<z.ZodString>;
52036
+ }, z.core.$strip>>>;
51965
52037
  }, z.core.$strip>>;
51966
52038
  }, z.core.$strict>, z.ZodObject<{
51967
52039
  expiresAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -58487,6 +58559,7 @@ declare const teamSchema: z.ZodObject<{
58487
58559
  ssoConnectedAt: z.ZodOptional<z.ZodNumber>;
58488
58560
  ssoUserId: z.ZodOptional<z.ZodString>;
58489
58561
  }, z.core.$strip>>;
58562
+ organizationId: z.ZodOptional<z.ZodString>;
58490
58563
  role: z.ZodEnum<{
58491
58564
  OWNER: "OWNER";
58492
58565
  MEMBER: "MEMBER";
@@ -58722,6 +58795,7 @@ declare const teamLimitedSchema: z.ZodObject<{
58722
58795
  ssoConnectedAt: z.ZodOptional<z.ZodNumber>;
58723
58796
  ssoUserId: z.ZodOptional<z.ZodString>;
58724
58797
  }, z.core.$strip>>;
58798
+ organizationId: z.ZodOptional<z.ZodString>;
58725
58799
  role: z.ZodEnum<{
58726
58800
  OWNER: "OWNER";
58727
58801
  MEMBER: "MEMBER";