vercel-api-js 1.26.1 → 1.27.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.
@@ -21,6 +21,28 @@ function _interopNamespace(e) {
21
21
  var z__namespace = /*#__PURE__*/_interopNamespace(z);
22
22
 
23
23
  // @ts-nocheck
24
+ const aiGatewayEvaluationFallbackConditionSchema = z__namespace.union([
25
+ z__namespace.object({
26
+ confidenceBelow: z__namespace.number(),
27
+ question: z__namespace.string()
28
+ }).strict(),
29
+ z__namespace.object({
30
+ probabilityBetween: z__namespace.array(z__namespace.number()).min(2).max(2),
31
+ question: z__namespace.string()
32
+ }).strict(),
33
+ z__namespace.object({
34
+ any: z__namespace.array(z__namespace.unknown())
35
+ }).strict(),
36
+ z__namespace.object({
37
+ all: z__namespace.array(z__namespace.unknown())
38
+ }).strict(),
39
+ z__namespace.object({
40
+ atLeast: z__namespace.object({
41
+ conditions: z__namespace.array(z__namespace.unknown()),
42
+ count: z__namespace.number()
43
+ })
44
+ }).strict()
45
+ ]);
24
46
  const aiGatewayProviderOptionBagSchema = z__namespace.object({}).catchall(z__namespace.unknown()).describe("Arbitrary per-provider AI SDK options, keyed by gateway provider slug.");
25
47
  const aiGatewayRouterSelectorOptionBagSchema = z__namespace.object({}).catchall(z__namespace.unknown()).describe("For kind=router: option slices keyed by selector name; each selector owns its slice's shape.");
26
48
  const aiGatewayVirtualModelConfigSchema = z__namespace.object({
@@ -80,8 +102,12 @@ const aiGatewayVirtualModelConfigSchema = z__namespace.object({
80
102
  z__namespace.object({
81
103
  capability: z__namespace.number().optional().describe("Highest task level the member handles, in [0, 1]. Read by the capability selector."),
82
104
  slug: z__namespace.string()
105
+ }).strict(),
106
+ z__namespace.object({
107
+ model: z__namespace.string(),
108
+ when: z__namespace.unknown()
83
109
  }).strict()
84
- ])).optional().describe("For kind=router: ordered candidates (slugs or references, bare or with member attributes). Otherwise: fallback models."),
110
+ ])).optional().describe("For kind=router: ordered candidates, bare slugs/references or `{ slug, ...attributes }`. For kind=alias: ordered fallback model slugs, optionally led by one conditional `{ model, when }` entry, used when the primary model's answers match `when`."),
85
111
  modelSlug: z__namespace.string().optional().describe('Canonical model slug this VMC maps to (e.g. "creator/model"). Not used by kind=router.'),
86
112
  observabilityTags: z__namespace.array(z__namespace.string()).optional().describe("Observability tags attached to requests through this VMC."),
87
113
  ownerId: z__namespace.string().describe("Team (owner) that owns this VMC."),
@@ -349,6 +375,7 @@ const connectConnectorSchema = z__namespace.object({
349
375
  redirectUri: z__namespace.string().optional().describe("Redirect URI registered with the third-party service for this connector, if any. Used by `startAuthorization`/`startInstallation` to replay the exact URI back to the provider's token endpoint. Absent on connectors created before this field was introduced; those callers fall back to the `https://connect.vercel.com/callback` default."),
350
376
  reinstallAt: z__namespace.number().optional().describe("Time when this connector started requiring reinstallation because an installation-affecting app-token grant changed."),
351
377
  service: z__namespace.string().describe("Best-effort identifier of the third-party service this connector represents, independent of `type`. Examples: `'slack'`, `'mcp.linear.app'`, and `'auth.example.com'`. Always present in API responses."),
378
+ serviceIcon: z__namespace.string().optional().describe("Provider logo from the known-service registry, matched by `service`. Often an SVG data URL. Absent when the service is not in the registry."),
352
379
  supportedSubjectTypes: z__namespace.array(z__namespace.string()).describe("Token subject types supported by the connector."),
353
380
  supportsIcon: z__namespace.union([
354
381
  z__namespace.literal(false),
@@ -504,6 +531,7 @@ const connectConnectorCreateResultSchema = z__namespace.object({
504
531
  redirectUri: z__namespace.string().optional().describe("Redirect URI registered with the third-party service for this connector, if any. Used by `startAuthorization`/`startInstallation` to replay the exact URI back to the provider's token endpoint. Absent on connectors created before this field was introduced; those callers fall back to the `https://connect.vercel.com/callback` default."),
505
532
  reinstallAt: z__namespace.number().optional().describe("Time when this connector started requiring reinstallation because an installation-affecting app-token grant changed."),
506
533
  service: z__namespace.string().describe("Best-effort identifier of the third-party service this connector represents, independent of `type`. Examples: `'slack'`, `'mcp.linear.app'`, and `'auth.example.com'`. Always present in API responses."),
534
+ serviceIcon: z__namespace.string().optional().describe("Provider logo from the known-service registry, matched by `service`. Often an SVG data URL. Absent when the service is not in the registry."),
507
535
  supportedSubjectTypes: z__namespace.array(z__namespace.string()).describe("Token subject types supported by the connector."),
508
536
  supportsIcon: z__namespace.union([
509
537
  z__namespace.literal(false),
@@ -3149,10 +3177,7 @@ const userEventSchema = z__namespace.object({
3149
3177
  z__namespace.literal(false),
3150
3178
  z__namespace.literal(true)
3151
3179
  ]).optional().describe("Since 28 Feb 2024 If set to true, identifies that the git job was created for a manual git deployment"),
3152
- jobPairs: z__namespace.array(z__namespace.array(z__namespace.union([
3153
- z__namespace.string(),
3154
- z__namespace.string()
3155
- ])).min(2).max(2)).optional().describe("Since December 2022 Pairs of projects and owner ids to build for this build request."),
3180
+ jobPairs: z__namespace.array(z__namespace.array(z__namespace.string()).min(2).max(2)).optional().describe("Since December 2022 Pairs of projects and owner ids to build for this build request."),
3156
3181
  jobProjectIds: z__namespace.array(z__namespace.string()).optional().describe("Since December 2022 All project ids associated to this job. Think monorepo. This job will be for one of these project."),
3157
3182
  linkedProjectId: z__namespace.string().optional(),
3158
3183
  name: z__namespace.string(),
@@ -3178,10 +3203,7 @@ const userEventSchema = z__namespace.object({
3178
3203
  z__namespace.literal(false),
3179
3204
  z__namespace.literal(true)
3180
3205
  ]).optional(),
3181
- skippedJobPairs: z__namespace.array(z__namespace.array(z__namespace.union([
3182
- z__namespace.string(),
3183
- z__namespace.string()
3184
- ])).min(2).max(2)).optional().describe("Since June 2024 Pairs of projects and owner ids to immediately finish (without building) because we want to create them in a skipped state."),
3206
+ skippedJobPairs: z__namespace.array(z__namespace.array(z__namespace.string()).min(2).max(2)).optional().describe("Since June 2024 Pairs of projects and owner ids to immediately finish (without building) because we want to create them in a skipped state."),
3185
3207
  slug: z__namespace.string(),
3186
3208
  target: z__namespace.string().nullish(),
3187
3209
  type: z__namespace.enum([
@@ -3297,10 +3319,7 @@ const userEventSchema = z__namespace.object({
3297
3319
  z__namespace.literal(false),
3298
3320
  z__namespace.literal(true)
3299
3321
  ]),
3300
- jobPairs: z__namespace.array(z__namespace.array(z__namespace.union([
3301
- z__namespace.string(),
3302
- z__namespace.string()
3303
- ])).min(2).max(2)).optional().describe("Since December 2022 Pairs of projects and owner ids to build for this build request."),
3322
+ jobPairs: z__namespace.array(z__namespace.array(z__namespace.string()).min(2).max(2)).optional().describe("Since December 2022 Pairs of projects and owner ids to build for this build request."),
3304
3323
  jobProjectIds: z__namespace.array(z__namespace.string()).optional().describe("Since December 2022 All project ids associated to this job. Think monorepo. This job will be for one of these project."),
3305
3324
  linkedProjectId: z__namespace.string().optional(),
3306
3325
  nsnbSideEffect: z__namespace.object({
@@ -3321,10 +3340,7 @@ const userEventSchema = z__namespace.object({
3321
3340
  ]),
3322
3341
  repo: z__namespace.string(),
3323
3342
  repoId: z__namespace.number(),
3324
- skippedJobPairs: z__namespace.array(z__namespace.array(z__namespace.union([
3325
- z__namespace.string(),
3326
- z__namespace.string()
3327
- ])).min(2).max(2)).optional().describe("Since June 2024 Pairs of projects and owner ids to immediately finish (without building) because we want to create them in a skipped state."),
3343
+ skippedJobPairs: z__namespace.array(z__namespace.array(z__namespace.string()).min(2).max(2)).optional().describe("Since June 2024 Pairs of projects and owner ids to immediately finish (without building) because we want to create them in a skipped state."),
3328
3344
  target: z__namespace.string().nullish(),
3329
3345
  type: z__namespace.enum([
3330
3346
  "pr"
@@ -3405,10 +3421,7 @@ const userEventSchema = z__namespace.object({
3405
3421
  z__namespace.literal(false),
3406
3422
  z__namespace.literal(true)
3407
3423
  ]),
3408
- jobPairs: z__namespace.array(z__namespace.array(z__namespace.union([
3409
- z__namespace.string(),
3410
- z__namespace.string()
3411
- ])).min(2).max(2)).optional().describe("Since December 2022 Pairs of projects and owner ids to build for this build request."),
3424
+ jobPairs: z__namespace.array(z__namespace.array(z__namespace.string()).min(2).max(2)).optional().describe("Since December 2022 Pairs of projects and owner ids to build for this build request."),
3412
3425
  jobProjectIds: z__namespace.array(z__namespace.string()).optional().describe("Since December 2022 All project ids associated to this job. Think monorepo. This job will be for one of these project."),
3413
3426
  linkedProjectId: z__namespace.string().optional(),
3414
3427
  nsnbSideEffect: z__namespace.object({
@@ -3430,10 +3443,7 @@ const userEventSchema = z__namespace.object({
3430
3443
  repo: z__namespace.string(),
3431
3444
  repoId: z__namespace.number(),
3432
3445
  repoPushedAt: z__namespace.number().nullable(),
3433
- skippedJobPairs: z__namespace.array(z__namespace.array(z__namespace.union([
3434
- z__namespace.string(),
3435
- z__namespace.string()
3436
- ])).min(2).max(2)).optional().describe("Since June 2024 Pairs of projects and owner ids to immediately finish (without building) because we want to create them in a skipped state."),
3446
+ skippedJobPairs: z__namespace.array(z__namespace.array(z__namespace.string()).min(2).max(2)).optional().describe("Since June 2024 Pairs of projects and owner ids to immediately finish (without building) because we want to create them in a skipped state."),
3437
3447
  target: z__namespace.string().nullish(),
3438
3448
  type: z__namespace.enum([
3439
3449
  "push"
@@ -3554,10 +3564,7 @@ const userEventSchema = z__namespace.object({
3554
3564
  z__namespace.literal(false),
3555
3565
  z__namespace.literal(true)
3556
3566
  ]).optional().describe("Since 28 Feb 2024 If set to true, identifies that the git job was created for a manual git deployment"),
3557
- jobPairs: z__namespace.array(z__namespace.array(z__namespace.union([
3558
- z__namespace.string(),
3559
- z__namespace.string()
3560
- ])).min(2).max(2)).optional().describe("Since December 2022 Pairs of projects and owner ids to build for this build request."),
3567
+ jobPairs: z__namespace.array(z__namespace.array(z__namespace.string()).min(2).max(2)).optional().describe("Since December 2022 Pairs of projects and owner ids to build for this build request."),
3561
3568
  jobProjectIds: z__namespace.array(z__namespace.string()).optional().describe("Since December 2022 All project ids associated to this job. Think monorepo. This job will be for one of these project."),
3562
3569
  linkedProjectId: z__namespace.string().optional(),
3563
3570
  nsnbSideEffect: z__namespace.object({
@@ -3588,10 +3595,7 @@ const userEventSchema = z__namespace.object({
3588
3595
  z__namespace.literal(false),
3589
3596
  z__namespace.literal(true)
3590
3597
  ]).optional(),
3591
- skippedJobPairs: z__namespace.array(z__namespace.array(z__namespace.union([
3592
- z__namespace.string(),
3593
- z__namespace.string()
3594
- ])).min(2).max(2)).optional().describe("Since June 2024 Pairs of projects and owner ids to immediately finish (without building) because we want to create them in a skipped state."),
3598
+ skippedJobPairs: z__namespace.array(z__namespace.array(z__namespace.string()).min(2).max(2)).optional().describe("Since June 2024 Pairs of projects and owner ids to immediately finish (without building) because we want to create them in a skipped state."),
3595
3599
  target: z__namespace.string().nullish(),
3596
3600
  type: z__namespace.enum([
3597
3601
  "gitlab-push"
@@ -3705,10 +3709,7 @@ const userEventSchema = z__namespace.object({
3705
3709
  z__namespace.literal(false),
3706
3710
  z__namespace.literal(true)
3707
3711
  ]).optional().describe("Since 28 Feb 2024 If set to true, identifies that the git job was created for a manual git deployment"),
3708
- jobPairs: z__namespace.array(z__namespace.array(z__namespace.union([
3709
- z__namespace.string(),
3710
- z__namespace.string()
3711
- ])).min(2).max(2)).optional().describe("Since December 2022 Pairs of projects and owner ids to build for this build request."),
3712
+ jobPairs: z__namespace.array(z__namespace.array(z__namespace.string()).min(2).max(2)).optional().describe("Since December 2022 Pairs of projects and owner ids to build for this build request."),
3712
3713
  jobProjectIds: z__namespace.array(z__namespace.string()).optional().describe("Since December 2022 All project ids associated to this job. Think monorepo. This job will be for one of these project."),
3713
3714
  linkedProjectId: z__namespace.string().optional(),
3714
3715
  nsnbSideEffect: z__namespace.object({
@@ -3730,10 +3731,7 @@ const userEventSchema = z__namespace.object({
3730
3731
  repoId: z__namespace.string(),
3731
3732
  repoPushedAt: z__namespace.number().nullish(),
3732
3733
  sha: z__namespace.string(),
3733
- skippedJobPairs: z__namespace.array(z__namespace.array(z__namespace.union([
3734
- z__namespace.string(),
3735
- z__namespace.string()
3736
- ])).min(2).max(2)).optional().describe("Since June 2024 Pairs of projects and owner ids to immediately finish (without building) because we want to create them in a skipped state."),
3734
+ skippedJobPairs: z__namespace.array(z__namespace.array(z__namespace.string()).min(2).max(2)).optional().describe("Since June 2024 Pairs of projects and owner ids to immediately finish (without building) because we want to create them in a skipped state."),
3737
3735
  target: z__namespace.string().nullish(),
3738
3736
  type: z__namespace.enum([
3739
3737
  "vercel-push"
@@ -3799,10 +3797,7 @@ const userEventSchema = z__namespace.object({
3799
3797
  z__namespace.literal(false),
3800
3798
  z__namespace.literal(true)
3801
3799
  ]).optional().describe("Since 28 Feb 2024 If set to true, identifies that the git job was created for a manual git deployment"),
3802
- jobPairs: z__namespace.array(z__namespace.array(z__namespace.union([
3803
- z__namespace.string(),
3804
- z__namespace.string()
3805
- ])).min(2).max(2)).optional().describe("Since December 2022 Pairs of projects and owner ids to build for this build request."),
3800
+ jobPairs: z__namespace.array(z__namespace.array(z__namespace.string()).min(2).max(2)).optional().describe("Since December 2022 Pairs of projects and owner ids to build for this build request."),
3806
3801
  jobProjectIds: z__namespace.array(z__namespace.string()).optional().describe("Since December 2022 All project ids associated to this job. Think monorepo. This job will be for one of these project."),
3807
3802
  linkedProjectId: z__namespace.string().optional(),
3808
3803
  nsnbSideEffect: z__namespace.object({
@@ -3824,10 +3819,7 @@ const userEventSchema = z__namespace.object({
3824
3819
  repoId: z__namespace.string(),
3825
3820
  repoPushedAt: z__namespace.number().nullish(),
3826
3821
  sha: z__namespace.string(),
3827
- skippedJobPairs: z__namespace.array(z__namespace.array(z__namespace.union([
3828
- z__namespace.string(),
3829
- z__namespace.string()
3830
- ])).min(2).max(2)).optional().describe("Since June 2024 Pairs of projects and owner ids to immediately finish (without building) because we want to create them in a skipped state."),
3822
+ skippedJobPairs: z__namespace.array(z__namespace.array(z__namespace.string()).min(2).max(2)).optional().describe("Since June 2024 Pairs of projects and owner ids to immediately finish (without building) because we want to create them in a skipped state."),
3831
3823
  target: z__namespace.string().nullish(),
3832
3824
  type: z__namespace.enum([
3833
3825
  "cursor-origin-push"
@@ -6165,7 +6157,7 @@ const userEventSchema = z__namespace.object({
6165
6157
  ssoType: z__namespace.string().optional(),
6166
6158
  teamId: z__namespace.string().optional(),
6167
6159
  username: z__namespace.string().optional()
6168
- }).strict()).min(1).max(1),
6160
+ })).min(1).max(1),
6169
6161
  z__namespace.array(z__namespace.union([
6170
6162
  z__namespace.object({
6171
6163
  legacy: z__namespace.union([
@@ -8196,7 +8188,7 @@ const userEventSchema = z__namespace.object({
8196
8188
  ssoType: z__namespace.string().optional(),
8197
8189
  teamId: z__namespace.string().optional(),
8198
8190
  username: z__namespace.string().optional()
8199
- }).strict()).min(1).max(1).optional(),
8191
+ })).min(1).max(1).optional(),
8200
8192
  geolocation: z__namespace.object({
8201
8193
  city: z__namespace.object({
8202
8194
  names: z__namespace.object({
@@ -27649,6 +27641,7 @@ exports.aggregatePageviewsStatus403Schema = aggregatePageviewsStatus403Schema;
27649
27641
  exports.aggregatePageviewsStatus404Schema = aggregatePageviewsStatus404Schema;
27650
27642
  exports.aggregatePageviewsStatus410Schema = aggregatePageviewsStatus410Schema;
27651
27643
  exports.aggregatePageviewsStatus503Schema = aggregatePageviewsStatus503Schema;
27644
+ exports.aiGatewayEvaluationFallbackConditionSchema = aiGatewayEvaluationFallbackConditionSchema;
27652
27645
  exports.aiGatewayProviderOptionBagSchema = aiGatewayProviderOptionBagSchema;
27653
27646
  exports.aiGatewayRouterSelectorOptionBagSchema = aiGatewayRouterSelectorOptionBagSchema;
27654
27647
  exports.aiGatewayRuleListSchema = aiGatewayRuleListSchema;
package/dist/schemas.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
 
3
- var schemas = require('./schemas-fwybue0h.cjs');
3
+ var schemas = require('./schemas-pa0mqm55.cjs');
4
4
 
5
5
 
6
6
 
@@ -129,6 +129,7 @@ exports.aggregatePageviewsStatus403Schema = schemas.aggregatePageviewsStatus403S
129
129
  exports.aggregatePageviewsStatus404Schema = schemas.aggregatePageviewsStatus404Schema;
130
130
  exports.aggregatePageviewsStatus410Schema = schemas.aggregatePageviewsStatus410Schema;
131
131
  exports.aggregatePageviewsStatus503Schema = schemas.aggregatePageviewsStatus503Schema;
132
+ exports.aiGatewayEvaluationFallbackConditionSchema = schemas.aiGatewayEvaluationFallbackConditionSchema;
132
133
  exports.aiGatewayProviderOptionBagSchema = schemas.aiGatewayProviderOptionBagSchema;
133
134
  exports.aiGatewayRouterSelectorOptionBagSchema = schemas.aiGatewayRouterSelectorOptionBagSchema;
134
135
  exports.aiGatewayRuleListSchema = schemas.aiGatewayRuleListSchema;