vercel-api-js 1.19.2 → 1.20.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-kbkmflwt.cjs');
4
+ var schemas = require('./schemas-b636kgje.cjs');
5
5
  var types = require('./types.cjs');
6
6
 
7
7
  function formEncoded(data) {
package/dist/index.d.ts CHANGED
@@ -115,6 +115,11 @@ type AiGatewayVirtualModelConfig = {
115
115
  * @type number
116
116
  */
117
117
  createdAt: number;
118
+ /**
119
+ * @description User or app id that created this VMC.
120
+ * @type string | undefined
121
+ */
122
+ createdBy?: string | undefined;
118
123
  /**
119
124
  * @description Whether this VMC is soft-deleted.
120
125
  * @type boolean
@@ -281,7 +286,7 @@ type AiGatewayVirtualModelConfig = {
281
286
  */
282
287
  updatedAt: number;
283
288
  /**
284
- * @description User id that last updated this VMC.
289
+ * @description User or app id that last updated this VMC.
285
290
  * @type string | undefined
286
291
  */
287
292
  updatedBy?: string | undefined;
@@ -4097,6 +4102,15 @@ declare const userEventPayloadRetentionDefaultModeEnum: {
4097
4102
  readonly "until-requested": "until-requested";
4098
4103
  };
4099
4104
  type UserEventPayloadRetentionDefaultModeEnumKey = (typeof userEventPayloadRetentionDefaultModeEnum)[keyof typeof userEventPayloadRetentionDefaultModeEnum];
4105
+ declare const userEventPayloadChangedFieldsEnum: {
4106
+ readonly address: "address";
4107
+ readonly email: "email";
4108
+ readonly language: "language";
4109
+ readonly name: "name";
4110
+ readonly purchaseOrder: "purchaseOrder";
4111
+ readonly tax: "tax";
4112
+ };
4113
+ type UserEventPayloadChangedFieldsEnumKey = (typeof userEventPayloadChangedFieldsEnum)[keyof typeof userEventPayloadChangedFieldsEnum];
4100
4114
  declare const userEventPayloadNextRoleEnum: {
4101
4115
  readonly ADMIN: "ADMIN";
4102
4116
  readonly PROJECT_DEVELOPER: "PROJECT_DEVELOPER";
@@ -4409,15 +4423,6 @@ declare const userEventPayloadSettlementMethodEnum: {
4409
4423
  readonly "refunded-payment-pending": "refunded-payment-pending";
4410
4424
  };
4411
4425
  type UserEventPayloadSettlementMethodEnumKey = (typeof userEventPayloadSettlementMethodEnum)[keyof typeof userEventPayloadSettlementMethodEnum];
4412
- declare const userEventPayloadChangedFieldsEnum: {
4413
- readonly address: "address";
4414
- readonly email: "email";
4415
- readonly language: "language";
4416
- readonly name: "name";
4417
- readonly purchaseOrder: "purchaseOrder";
4418
- readonly tax: "tax";
4419
- };
4420
- type UserEventPayloadChangedFieldsEnumKey = (typeof userEventPayloadChangedFieldsEnum)[keyof typeof userEventPayloadChangedFieldsEnum];
4421
4426
  declare const userEventPayloadDataPlanSlugEnum: {
4422
4427
  readonly v0_business: "v0_business";
4423
4428
  readonly v0_teams: "v0_teams";
@@ -6085,10 +6090,13 @@ declare const userEventTypeEnum: {
6085
6090
  readonly "organization-emu-team-updated": "organization-emu-team-updated";
6086
6091
  readonly "organization-emu-updated": "organization-emu-updated";
6087
6092
  readonly "organization-slug-update": "organization-slug-update";
6093
+ readonly "organization-sso-enforced": "organization-sso-enforced";
6088
6094
  readonly "organization-team-add": "organization-team-add";
6089
6095
  readonly "organization-team-create": "organization-team-create";
6090
6096
  readonly "organization-team-delete": "organization-team-delete";
6091
6097
  readonly "organization-team-sso-update": "organization-team-sso-update";
6098
+ readonly "organization-update-account-flow-dismissed": "organization-update-account-flow-dismissed";
6099
+ readonly "organization-update-account-flow-triggered": "organization-update-account-flow-triggered";
6092
6100
  readonly "owner-blocked": "owner-blocked";
6093
6101
  readonly "owner-soft-blocked": "owner-soft-blocked";
6094
6102
  readonly "owner-soft-unblocked": "owner-soft-unblocked";
@@ -6864,6 +6872,13 @@ type UserEvent = {
6864
6872
  id: string;
6865
6873
  modelSlug?: string | undefined;
6866
6874
  };
6875
+ } | {
6876
+ changedFields?: UserEventPayloadChangedFieldsEnumKey[] | undefined;
6877
+ virtualModelConfig: {
6878
+ displayName?: string | undefined;
6879
+ id: string;
6880
+ modelSlug?: string | undefined;
6881
+ };
6867
6882
  } | {
6868
6883
  accessGroup: {
6869
6884
  id: string;
@@ -10281,6 +10296,11 @@ type UserEvent = {
10281
10296
  billingPlan: UserEventPayloadBillingPlanEnumKey;
10282
10297
  organizationId: string;
10283
10298
  teamId: string;
10299
+ } | {
10300
+ enforced: false | true;
10301
+ organizationId: string;
10302
+ organizationSlug: string;
10303
+ previousEnforced: false | true;
10284
10304
  } | {
10285
10305
  mode: UserEventPayloadModeEnumKey;
10286
10306
  organizationId: string;
@@ -12269,6 +12289,11 @@ type UserEvent = {
12269
12289
  }[] | undefined;
12270
12290
  } | {
12271
12291
  reason: "limits-exceeded";
12292
+ } | {
12293
+ organizationId: string;
12294
+ } | {
12295
+ organizationId: string;
12296
+ teamIds: string[];
12272
12297
  } | {
12273
12298
  teamName?: string | undefined;
12274
12299
  } | {
@@ -13424,10 +13449,13 @@ declare const listEventTypeNameEnum: {
13424
13449
  readonly "organization-emu-team-updated": "organization-emu-team-updated";
13425
13450
  readonly "organization-emu-updated": "organization-emu-updated";
13426
13451
  readonly "organization-slug-update": "organization-slug-update";
13452
+ readonly "organization-sso-enforced": "organization-sso-enforced";
13427
13453
  readonly "organization-team-add": "organization-team-add";
13428
13454
  readonly "organization-team-create": "organization-team-create";
13429
13455
  readonly "organization-team-delete": "organization-team-delete";
13430
13456
  readonly "organization-team-sso-update": "organization-team-sso-update";
13457
+ readonly "organization-update-account-flow-dismissed": "organization-update-account-flow-dismissed";
13458
+ readonly "organization-update-account-flow-triggered": "organization-update-account-flow-triggered";
13431
13459
  readonly "owner-blocked": "owner-blocked";
13432
13460
  readonly "owner-soft-blocked": "owner-soft-blocked";
13433
13461
  readonly "owner-soft-unblocked": "owner-soft-unblocked";
@@ -14109,10 +14137,13 @@ declare const listEventTypeReplacedByEnum: {
14109
14137
  readonly "organization-emu-team-updated": "organization-emu-team-updated";
14110
14138
  readonly "organization-emu-updated": "organization-emu-updated";
14111
14139
  readonly "organization-slug-update": "organization-slug-update";
14140
+ readonly "organization-sso-enforced": "organization-sso-enforced";
14112
14141
  readonly "organization-team-add": "organization-team-add";
14113
14142
  readonly "organization-team-create": "organization-team-create";
14114
14143
  readonly "organization-team-delete": "organization-team-delete";
14115
14144
  readonly "organization-team-sso-update": "organization-team-sso-update";
14145
+ readonly "organization-update-account-flow-dismissed": "organization-update-account-flow-dismissed";
14146
+ readonly "organization-update-account-flow-triggered": "organization-update-account-flow-triggered";
14116
14147
  readonly "owner-blocked": "owner-blocked";
14117
14148
  readonly "owner-soft-blocked": "owner-soft-blocked";
14118
14149
  readonly "owner-soft-unblocked": "owner-soft-unblocked";
@@ -46413,6 +46444,7 @@ declare const aiGatewayVirtualModelConfigSchema: z.ZodObject<{
46413
46444
  auto: "auto";
46414
46445
  }>>;
46415
46446
  createdAt: z.ZodNumber;
46447
+ createdBy: z.ZodOptional<z.ZodString>;
46416
46448
  deleted: z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodLiteral<true>]>;
46417
46449
  description: z.ZodOptional<z.ZodString>;
46418
46450
  disallowPromptTraining: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodLiteral<true>]>>;
@@ -47983,6 +48015,39 @@ declare const userEventSchema: z.ZodObject<{
47983
48015
  id: z.ZodString;
47984
48016
  modelSlug: z.ZodOptional<z.ZodString>;
47985
48017
  }, z.core.$strip>;
48018
+ }, z.core.$strict>, z.ZodObject<{
48019
+ changedFields: z.ZodOptional<z.ZodArray<z.ZodEnum<{
48020
+ baseUrl: "baseUrl";
48021
+ status: "status";
48022
+ sort: "sort";
48023
+ allowFallbackFromFast: "allowFallbackFromFast";
48024
+ byokCredentialIds: "byokCredentialIds";
48025
+ caching: "caching";
48026
+ description: "description";
48027
+ disallowPromptTraining: "disallowPromptTraining";
48028
+ displayName: "displayName";
48029
+ has: "has";
48030
+ hipaaCompliant: "hipaaCompliant";
48031
+ inferenceRegion: "inferenceRegion";
48032
+ models: "models";
48033
+ modelSlug: "modelSlug";
48034
+ observabilityTags: "observabilityTags";
48035
+ providerOnly: "providerOnly";
48036
+ providerOptions: "providerOptions";
48037
+ providerOrder: "providerOrder";
48038
+ providerTimeouts: "providerTimeouts";
48039
+ requires: "requires";
48040
+ selector: "selector";
48041
+ serviceTier: "serviceTier";
48042
+ speed: "speed";
48043
+ visibility: "visibility";
48044
+ zeroDataRetention: "zeroDataRetention";
48045
+ }>>>;
48046
+ virtualModelConfig: z.ZodObject<{
48047
+ displayName: z.ZodOptional<z.ZodString>;
48048
+ id: z.ZodString;
48049
+ modelSlug: z.ZodOptional<z.ZodString>;
48050
+ }, z.core.$strip>;
47986
48051
  }, z.core.$strict>, z.ZodObject<{
47987
48052
  accessGroup: z.ZodObject<{
47988
48053
  id: z.ZodString;
@@ -51442,6 +51507,11 @@ declare const userEventSchema: z.ZodObject<{
51442
51507
  }>;
51443
51508
  organizationId: z.ZodString;
51444
51509
  teamId: z.ZodString;
51510
+ }, z.core.$strict>, z.ZodObject<{
51511
+ enforced: z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodLiteral<true>]>;
51512
+ organizationId: z.ZodString;
51513
+ organizationSlug: z.ZodString;
51514
+ previousEnforced: z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodLiteral<true>]>;
51445
51515
  }, z.core.$strict>, z.ZodObject<{
51446
51516
  mode: z.ZodEnum<{
51447
51517
  organization: "organization";
@@ -53549,6 +53619,11 @@ declare const userEventSchema: z.ZodObject<{
53549
53619
  reason: z.ZodEnum<{
53550
53620
  "limits-exceeded": "limits-exceeded";
53551
53621
  }>;
53622
+ }, z.core.$strict>, z.ZodObject<{
53623
+ organizationId: z.ZodString;
53624
+ }, z.core.$strict>, z.ZodObject<{
53625
+ organizationId: z.ZodString;
53626
+ teamIds: z.ZodArray<z.ZodString>;
53552
53627
  }, z.core.$strict>, z.ZodObject<{
53553
53628
  teamName: z.ZodOptional<z.ZodString>;
53554
53629
  }, z.core.$strict>, z.ZodObject<{
@@ -54500,10 +54575,13 @@ declare const userEventSchema: z.ZodObject<{
54500
54575
  "organization-emu-team-updated": "organization-emu-team-updated";
54501
54576
  "organization-emu-updated": "organization-emu-updated";
54502
54577
  "organization-slug-update": "organization-slug-update";
54578
+ "organization-sso-enforced": "organization-sso-enforced";
54503
54579
  "organization-team-add": "organization-team-add";
54504
54580
  "organization-team-create": "organization-team-create";
54505
54581
  "organization-team-delete": "organization-team-delete";
54506
54582
  "organization-team-sso-update": "organization-team-sso-update";
54583
+ "organization-update-account-flow-dismissed": "organization-update-account-flow-dismissed";
54584
+ "organization-update-account-flow-triggered": "organization-update-account-flow-triggered";
54507
54585
  "owner-blocked": "owner-blocked";
54508
54586
  "owner-soft-blocked": "owner-soft-blocked";
54509
54587
  "owner-soft-unblocked": "owner-soft-unblocked";
@@ -55250,10 +55328,13 @@ declare const listEventTypeSchema: z.ZodObject<{
55250
55328
  "organization-emu-team-updated": "organization-emu-team-updated";
55251
55329
  "organization-emu-updated": "organization-emu-updated";
55252
55330
  "organization-slug-update": "organization-slug-update";
55331
+ "organization-sso-enforced": "organization-sso-enforced";
55253
55332
  "organization-team-add": "organization-team-add";
55254
55333
  "organization-team-create": "organization-team-create";
55255
55334
  "organization-team-delete": "organization-team-delete";
55256
55335
  "organization-team-sso-update": "organization-team-sso-update";
55336
+ "organization-update-account-flow-dismissed": "organization-update-account-flow-dismissed";
55337
+ "organization-update-account-flow-triggered": "organization-update-account-flow-triggered";
55257
55338
  "owner-blocked": "owner-blocked";
55258
55339
  "owner-soft-blocked": "owner-soft-blocked";
55259
55340
  "owner-soft-unblocked": "owner-soft-unblocked";
@@ -55934,10 +56015,13 @@ declare const listEventTypeSchema: z.ZodObject<{
55934
56015
  "organization-emu-team-updated": "organization-emu-team-updated";
55935
56016
  "organization-emu-updated": "organization-emu-updated";
55936
56017
  "organization-slug-update": "organization-slug-update";
56018
+ "organization-sso-enforced": "organization-sso-enforced";
55937
56019
  "organization-team-add": "organization-team-add";
55938
56020
  "organization-team-create": "organization-team-create";
55939
56021
  "organization-team-delete": "organization-team-delete";
55940
56022
  "organization-team-sso-update": "organization-team-sso-update";
56023
+ "organization-update-account-flow-dismissed": "organization-update-account-flow-dismissed";
56024
+ "organization-update-account-flow-triggered": "organization-update-account-flow-triggered";
55941
56025
  "owner-blocked": "owner-blocked";
55942
56026
  "owner-soft-blocked": "owner-soft-blocked";
55943
56027
  "owner-soft-unblocked": "owner-soft-unblocked";