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.
@@ -4370,6 +4370,52 @@ const userEventSchema = z.object({
4370
4370
  z.array(z.string())
4371
4371
  ]).optional()
4372
4372
  }),
4373
+ z.strictObject({
4374
+ customEnvironmentSlugs: z.array(z.string()).optional(),
4375
+ edgeConfigId: z.string().nullish(),
4376
+ edgeConfigTokenId: z.string().nullish(),
4377
+ gitBranch: z.string().optional(),
4378
+ id: z.string().optional(),
4379
+ ipAddress: z.string().optional(),
4380
+ key: z.string().optional(),
4381
+ projectId: z.string().optional(),
4382
+ projectName: z.string().optional(),
4383
+ source: z.string().optional(),
4384
+ target: z.union([
4385
+ z.string(),
4386
+ z.array(z.string())
4387
+ ]).optional(),
4388
+ updateDiff: z.object({
4389
+ changedComment: z.union([
4390
+ z.literal(false),
4391
+ z.literal(true)
4392
+ ]).optional(),
4393
+ changedGitBranch: z.union([
4394
+ z.literal(false),
4395
+ z.literal(true)
4396
+ ]).optional(),
4397
+ changedValue: z.union([
4398
+ z.literal(false),
4399
+ z.literal(true)
4400
+ ]).describe("Indicates a value was submitted, not whether its plaintext changed."),
4401
+ key: z.string().optional(),
4402
+ newCustomEnvironmentIds: z.array(z.string()).optional(),
4403
+ newKey: z.string().optional(),
4404
+ newTarget: z.array(z.enum([
4405
+ "development",
4406
+ "preview",
4407
+ "production"
4408
+ ])).optional(),
4409
+ newType: z.string().optional(),
4410
+ oldCustomEnvironmentIds: z.array(z.string()).optional(),
4411
+ oldTarget: z.array(z.enum([
4412
+ "development",
4413
+ "preview",
4414
+ "production"
4415
+ ])).optional(),
4416
+ oldType: z.string().optional()
4417
+ }).optional()
4418
+ }),
4373
4419
  z.strictObject({
4374
4420
  customEnvironmentSlugs: z.array(z.string()).optional(),
4375
4421
  edgeConfigId: z.string().nullish(),
@@ -4745,18 +4791,21 @@ const userEventSchema = z.object({
4745
4791
  value: z.string().optional().describe("The value of the Shared Env Var.")
4746
4792
  }).optional(),
4747
4793
  updateDiff: z.object({
4794
+ changedComment: z.union([
4795
+ z.literal(false),
4796
+ z.literal(true)
4797
+ ]).optional(),
4798
+ changedGitBranch: z.union([
4799
+ z.literal(false),
4800
+ z.literal(true)
4801
+ ]).optional(),
4748
4802
  changedValue: z.union([
4749
4803
  z.literal(false),
4750
4804
  z.literal(true)
4751
- ]),
4752
- id: z.string(),
4805
+ ]).describe("Indicates a value was submitted, not whether its plaintext changed."),
4753
4806
  key: z.string().optional(),
4754
4807
  newCustomEnvironmentIds: z.array(z.string()).optional(),
4755
4808
  newKey: z.string().optional(),
4756
- newProjects: z.array(z.object({
4757
- projectId: z.string(),
4758
- projectName: z.string().optional()
4759
- })).optional(),
4760
4809
  newTarget: z.array(z.enum([
4761
4810
  "development",
4762
4811
  "preview",
@@ -4764,16 +4813,21 @@ const userEventSchema = z.object({
4764
4813
  ])).optional(),
4765
4814
  newType: z.string().optional(),
4766
4815
  oldCustomEnvironmentIds: z.array(z.string()).optional(),
4767
- oldProjects: z.array(z.object({
4768
- projectId: z.string(),
4769
- projectName: z.string().optional()
4770
- })).optional(),
4771
4816
  oldTarget: z.array(z.enum([
4772
4817
  "development",
4773
4818
  "preview",
4774
4819
  "production"
4775
4820
  ])).optional(),
4776
- oldType: z.string().optional()
4821
+ oldType: z.string().optional(),
4822
+ id: z.string(),
4823
+ newProjects: z.array(z.object({
4824
+ projectId: z.string(),
4825
+ projectName: z.string().optional()
4826
+ })).optional(),
4827
+ oldProjects: z.array(z.object({
4828
+ projectId: z.string(),
4829
+ projectName: z.string().optional()
4830
+ })).optional()
4777
4831
  }).optional()
4778
4832
  }),
4779
4833
  z.strictObject({
@@ -12794,6 +12848,7 @@ const teamSchema = z.object({
12794
12848
  ssoConnectedAt: z.number().optional(),
12795
12849
  ssoUserId: z.string().optional()
12796
12850
  }).optional(),
12851
+ organizationId: z.string().optional(),
12797
12852
  role: z.enum([
12798
12853
  "BILLING",
12799
12854
  "CONTRIBUTOR",
@@ -13146,6 +13201,7 @@ const teamLimitedSchema = z.object({
13146
13201
  ssoConnectedAt: z.number().optional(),
13147
13202
  ssoUserId: z.string().optional()
13148
13203
  }).optional(),
13204
+ organizationId: z.string().optional(),
13149
13205
  role: z.enum([
13150
13206
  "BILLING",
13151
13207
  "CONTRIBUTOR",
@@ -4390,6 +4390,52 @@ const userEventSchema = z__namespace.object({
4390
4390
  z__namespace.array(z__namespace.string())
4391
4391
  ]).optional()
4392
4392
  }),
4393
+ z__namespace.strictObject({
4394
+ customEnvironmentSlugs: z__namespace.array(z__namespace.string()).optional(),
4395
+ edgeConfigId: z__namespace.string().nullish(),
4396
+ edgeConfigTokenId: z__namespace.string().nullish(),
4397
+ gitBranch: z__namespace.string().optional(),
4398
+ id: z__namespace.string().optional(),
4399
+ ipAddress: z__namespace.string().optional(),
4400
+ key: z__namespace.string().optional(),
4401
+ projectId: z__namespace.string().optional(),
4402
+ projectName: z__namespace.string().optional(),
4403
+ source: z__namespace.string().optional(),
4404
+ target: z__namespace.union([
4405
+ z__namespace.string(),
4406
+ z__namespace.array(z__namespace.string())
4407
+ ]).optional(),
4408
+ updateDiff: z__namespace.object({
4409
+ changedComment: z__namespace.union([
4410
+ z__namespace.literal(false),
4411
+ z__namespace.literal(true)
4412
+ ]).optional(),
4413
+ changedGitBranch: z__namespace.union([
4414
+ z__namespace.literal(false),
4415
+ z__namespace.literal(true)
4416
+ ]).optional(),
4417
+ changedValue: z__namespace.union([
4418
+ z__namespace.literal(false),
4419
+ z__namespace.literal(true)
4420
+ ]).describe("Indicates a value was submitted, not whether its plaintext changed."),
4421
+ key: z__namespace.string().optional(),
4422
+ newCustomEnvironmentIds: z__namespace.array(z__namespace.string()).optional(),
4423
+ newKey: z__namespace.string().optional(),
4424
+ newTarget: z__namespace.array(z__namespace.enum([
4425
+ "development",
4426
+ "preview",
4427
+ "production"
4428
+ ])).optional(),
4429
+ newType: z__namespace.string().optional(),
4430
+ oldCustomEnvironmentIds: z__namespace.array(z__namespace.string()).optional(),
4431
+ oldTarget: z__namespace.array(z__namespace.enum([
4432
+ "development",
4433
+ "preview",
4434
+ "production"
4435
+ ])).optional(),
4436
+ oldType: z__namespace.string().optional()
4437
+ }).optional()
4438
+ }),
4393
4439
  z__namespace.strictObject({
4394
4440
  customEnvironmentSlugs: z__namespace.array(z__namespace.string()).optional(),
4395
4441
  edgeConfigId: z__namespace.string().nullish(),
@@ -4765,18 +4811,21 @@ const userEventSchema = z__namespace.object({
4765
4811
  value: z__namespace.string().optional().describe("The value of the Shared Env Var.")
4766
4812
  }).optional(),
4767
4813
  updateDiff: z__namespace.object({
4814
+ changedComment: z__namespace.union([
4815
+ z__namespace.literal(false),
4816
+ z__namespace.literal(true)
4817
+ ]).optional(),
4818
+ changedGitBranch: z__namespace.union([
4819
+ z__namespace.literal(false),
4820
+ z__namespace.literal(true)
4821
+ ]).optional(),
4768
4822
  changedValue: z__namespace.union([
4769
4823
  z__namespace.literal(false),
4770
4824
  z__namespace.literal(true)
4771
- ]),
4772
- id: z__namespace.string(),
4825
+ ]).describe("Indicates a value was submitted, not whether its plaintext changed."),
4773
4826
  key: z__namespace.string().optional(),
4774
4827
  newCustomEnvironmentIds: z__namespace.array(z__namespace.string()).optional(),
4775
4828
  newKey: z__namespace.string().optional(),
4776
- newProjects: z__namespace.array(z__namespace.object({
4777
- projectId: z__namespace.string(),
4778
- projectName: z__namespace.string().optional()
4779
- })).optional(),
4780
4829
  newTarget: z__namespace.array(z__namespace.enum([
4781
4830
  "development",
4782
4831
  "preview",
@@ -4784,16 +4833,21 @@ const userEventSchema = z__namespace.object({
4784
4833
  ])).optional(),
4785
4834
  newType: z__namespace.string().optional(),
4786
4835
  oldCustomEnvironmentIds: z__namespace.array(z__namespace.string()).optional(),
4787
- oldProjects: z__namespace.array(z__namespace.object({
4788
- projectId: z__namespace.string(),
4789
- projectName: z__namespace.string().optional()
4790
- })).optional(),
4791
4836
  oldTarget: z__namespace.array(z__namespace.enum([
4792
4837
  "development",
4793
4838
  "preview",
4794
4839
  "production"
4795
4840
  ])).optional(),
4796
- oldType: z__namespace.string().optional()
4841
+ oldType: z__namespace.string().optional(),
4842
+ id: z__namespace.string(),
4843
+ newProjects: z__namespace.array(z__namespace.object({
4844
+ projectId: z__namespace.string(),
4845
+ projectName: z__namespace.string().optional()
4846
+ })).optional(),
4847
+ oldProjects: z__namespace.array(z__namespace.object({
4848
+ projectId: z__namespace.string(),
4849
+ projectName: z__namespace.string().optional()
4850
+ })).optional()
4797
4851
  }).optional()
4798
4852
  }),
4799
4853
  z__namespace.strictObject({
@@ -12814,6 +12868,7 @@ const teamSchema = z__namespace.object({
12814
12868
  ssoConnectedAt: z__namespace.number().optional(),
12815
12869
  ssoUserId: z__namespace.string().optional()
12816
12870
  }).optional(),
12871
+ organizationId: z__namespace.string().optional(),
12817
12872
  role: z__namespace.enum([
12818
12873
  "BILLING",
12819
12874
  "CONTRIBUTOR",
@@ -13166,6 +13221,7 @@ const teamLimitedSchema = z__namespace.object({
13166
13221
  ssoConnectedAt: z__namespace.number().optional(),
13167
13222
  ssoUserId: z__namespace.string().optional()
13168
13223
  }).optional(),
13224
+ organizationId: z__namespace.string().optional(),
13169
13225
  role: z__namespace.enum([
13170
13226
  "BILLING",
13171
13227
  "CONTRIBUTOR",
package/dist/schemas.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
 
3
- var schemas = require('./schemas-cxs1t94s.cjs');
3
+ var schemas = require('./schemas-ospl73kq.cjs');
4
4
 
5
5
 
6
6
 
@@ -3594,6 +3594,39 @@ declare const userEventSchema: z.ZodObject<{
3594
3594
  projectName: z.ZodOptional<z.ZodString>;
3595
3595
  source: z.ZodOptional<z.ZodString>;
3596
3596
  target: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
3597
+ }, z.core.$strict>, z.ZodObject<{
3598
+ customEnvironmentSlugs: z.ZodOptional<z.ZodArray<z.ZodString>>;
3599
+ edgeConfigId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3600
+ edgeConfigTokenId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3601
+ gitBranch: z.ZodOptional<z.ZodString>;
3602
+ id: z.ZodOptional<z.ZodString>;
3603
+ ipAddress: z.ZodOptional<z.ZodString>;
3604
+ key: z.ZodOptional<z.ZodString>;
3605
+ projectId: z.ZodOptional<z.ZodString>;
3606
+ projectName: z.ZodOptional<z.ZodString>;
3607
+ source: z.ZodOptional<z.ZodString>;
3608
+ target: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
3609
+ updateDiff: z.ZodOptional<z.ZodObject<{
3610
+ changedComment: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodLiteral<true>]>>;
3611
+ changedGitBranch: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodLiteral<true>]>>;
3612
+ changedValue: z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodLiteral<true>]>;
3613
+ key: z.ZodOptional<z.ZodString>;
3614
+ newCustomEnvironmentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
3615
+ newKey: z.ZodOptional<z.ZodString>;
3616
+ newTarget: z.ZodOptional<z.ZodArray<z.ZodEnum<{
3617
+ production: "production";
3618
+ preview: "preview";
3619
+ development: "development";
3620
+ }>>>;
3621
+ newType: z.ZodOptional<z.ZodString>;
3622
+ oldCustomEnvironmentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
3623
+ oldTarget: z.ZodOptional<z.ZodArray<z.ZodEnum<{
3624
+ production: "production";
3625
+ preview: "preview";
3626
+ development: "development";
3627
+ }>>>;
3628
+ oldType: z.ZodOptional<z.ZodString>;
3629
+ }, z.core.$strip>>;
3597
3630
  }, z.core.$strict>, z.ZodObject<{
3598
3631
  customEnvironmentSlugs: z.ZodOptional<z.ZodArray<z.ZodString>>;
3599
3632
  edgeConfigId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -3770,15 +3803,12 @@ declare const userEventSchema: z.ZodObject<{
3770
3803
  value: z.ZodOptional<z.ZodString>;
3771
3804
  }, z.core.$strip>>;
3772
3805
  updateDiff: z.ZodOptional<z.ZodObject<{
3806
+ changedComment: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodLiteral<true>]>>;
3807
+ changedGitBranch: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodLiteral<true>]>>;
3773
3808
  changedValue: z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodLiteral<true>]>;
3774
- id: z.ZodString;
3775
3809
  key: z.ZodOptional<z.ZodString>;
3776
3810
  newCustomEnvironmentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
3777
3811
  newKey: z.ZodOptional<z.ZodString>;
3778
- newProjects: z.ZodOptional<z.ZodArray<z.ZodObject<{
3779
- projectId: z.ZodString;
3780
- projectName: z.ZodOptional<z.ZodString>;
3781
- }, z.core.$strip>>>;
3782
3812
  newTarget: z.ZodOptional<z.ZodArray<z.ZodEnum<{
3783
3813
  production: "production";
3784
3814
  preview: "preview";
@@ -3786,16 +3816,21 @@ declare const userEventSchema: z.ZodObject<{
3786
3816
  }>>>;
3787
3817
  newType: z.ZodOptional<z.ZodString>;
3788
3818
  oldCustomEnvironmentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
3789
- oldProjects: z.ZodOptional<z.ZodArray<z.ZodObject<{
3790
- projectId: z.ZodString;
3791
- projectName: z.ZodOptional<z.ZodString>;
3792
- }, z.core.$strip>>>;
3793
3819
  oldTarget: z.ZodOptional<z.ZodArray<z.ZodEnum<{
3794
3820
  production: "production";
3795
3821
  preview: "preview";
3796
3822
  development: "development";
3797
3823
  }>>>;
3798
3824
  oldType: z.ZodOptional<z.ZodString>;
3825
+ id: z.ZodString;
3826
+ newProjects: z.ZodOptional<z.ZodArray<z.ZodObject<{
3827
+ projectId: z.ZodString;
3828
+ projectName: z.ZodOptional<z.ZodString>;
3829
+ }, z.core.$strip>>>;
3830
+ oldProjects: z.ZodOptional<z.ZodArray<z.ZodObject<{
3831
+ projectId: z.ZodString;
3832
+ projectName: z.ZodOptional<z.ZodString>;
3833
+ }, z.core.$strip>>>;
3799
3834
  }, z.core.$strip>>;
3800
3835
  }, z.core.$strict>, z.ZodObject<{
3801
3836
  expiresAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -10321,6 +10356,7 @@ declare const teamSchema: z.ZodObject<{
10321
10356
  ssoConnectedAt: z.ZodOptional<z.ZodNumber>;
10322
10357
  ssoUserId: z.ZodOptional<z.ZodString>;
10323
10358
  }, z.core.$strip>>;
10359
+ organizationId: z.ZodOptional<z.ZodString>;
10324
10360
  role: z.ZodEnum<{
10325
10361
  OWNER: "OWNER";
10326
10362
  MEMBER: "MEMBER";
@@ -10556,6 +10592,7 @@ declare const teamLimitedSchema: z.ZodObject<{
10556
10592
  ssoConnectedAt: z.ZodOptional<z.ZodNumber>;
10557
10593
  ssoUserId: z.ZodOptional<z.ZodString>;
10558
10594
  }, z.core.$strip>>;
10595
+ organizationId: z.ZodOptional<z.ZodString>;
10559
10596
  role: z.ZodEnum<{
10560
10597
  OWNER: "OWNER";
10561
10598
  MEMBER: "MEMBER";