vercel-api-js 1.26.0 → 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),
@@ -2221,6 +2249,7 @@ const userEventSchema = z__namespace.object({
2221
2249
  "read-write:integration-configuration",
2222
2250
  "read-write:integration-resource",
2223
2251
  "read-write:kms",
2252
+ "read-write:messageboard",
2224
2253
  "read-write:project",
2225
2254
  "read-write:project-env-vars",
2226
2255
  "read-write:project-env-vars-non-production",
@@ -2249,6 +2278,7 @@ const userEventSchema = z__namespace.object({
2249
2278
  "read:integration-configuration",
2250
2279
  "read:integration-resource",
2251
2280
  "read:kms",
2281
+ "read:messageboard",
2252
2282
  "read:monitoring",
2253
2283
  "read:project",
2254
2284
  "read:project-env-vars-non-production",
@@ -2302,6 +2332,7 @@ const userEventSchema = z__namespace.object({
2302
2332
  "read-write:integration-configuration",
2303
2333
  "read-write:integration-resource",
2304
2334
  "read-write:kms",
2335
+ "read-write:messageboard",
2305
2336
  "read-write:project",
2306
2337
  "read-write:project-env-vars",
2307
2338
  "read-write:project-env-vars-non-production",
@@ -2330,6 +2361,7 @@ const userEventSchema = z__namespace.object({
2330
2361
  "read:integration-configuration",
2331
2362
  "read:integration-resource",
2332
2363
  "read:kms",
2364
+ "read:messageboard",
2333
2365
  "read:monitoring",
2334
2366
  "read:project",
2335
2367
  "read:project-env-vars-non-production",
@@ -2378,6 +2410,7 @@ const userEventSchema = z__namespace.object({
2378
2410
  "read-write:integration-configuration",
2379
2411
  "read-write:integration-resource",
2380
2412
  "read-write:kms",
2413
+ "read-write:messageboard",
2381
2414
  "read-write:project",
2382
2415
  "read-write:project-env-vars",
2383
2416
  "read-write:project-env-vars-non-production",
@@ -2406,6 +2439,7 @@ const userEventSchema = z__namespace.object({
2406
2439
  "read:integration-configuration",
2407
2440
  "read:integration-resource",
2408
2441
  "read:kms",
2442
+ "read:messageboard",
2409
2443
  "read:monitoring",
2410
2444
  "read:project",
2411
2445
  "read:project-env-vars-non-production",
@@ -2461,6 +2495,7 @@ const userEventSchema = z__namespace.object({
2461
2495
  "read-write:integration-configuration",
2462
2496
  "read-write:integration-resource",
2463
2497
  "read-write:kms",
2498
+ "read-write:messageboard",
2464
2499
  "read-write:project",
2465
2500
  "read-write:project-env-vars",
2466
2501
  "read-write:project-env-vars-non-production",
@@ -2489,6 +2524,7 @@ const userEventSchema = z__namespace.object({
2489
2524
  "read:integration-configuration",
2490
2525
  "read:integration-resource",
2491
2526
  "read:kms",
2527
+ "read:messageboard",
2492
2528
  "read:monitoring",
2493
2529
  "read:project",
2494
2530
  "read:project-env-vars-non-production",
@@ -2546,6 +2582,7 @@ const userEventSchema = z__namespace.object({
2546
2582
  "read-write:integration-configuration",
2547
2583
  "read-write:integration-resource",
2548
2584
  "read-write:kms",
2585
+ "read-write:messageboard",
2549
2586
  "read-write:project",
2550
2587
  "read-write:project-env-vars",
2551
2588
  "read-write:project-env-vars-non-production",
@@ -2574,6 +2611,7 @@ const userEventSchema = z__namespace.object({
2574
2611
  "read:integration-configuration",
2575
2612
  "read:integration-resource",
2576
2613
  "read:kms",
2614
+ "read:messageboard",
2577
2615
  "read:monitoring",
2578
2616
  "read:project",
2579
2617
  "read:project-env-vars-non-production",
@@ -3139,10 +3177,7 @@ const userEventSchema = z__namespace.object({
3139
3177
  z__namespace.literal(false),
3140
3178
  z__namespace.literal(true)
3141
3179
  ]).optional().describe("Since 28 Feb 2024 If set to true, identifies that the git job was created for a manual git deployment"),
3142
- jobPairs: z__namespace.array(z__namespace.array(z__namespace.union([
3143
- z__namespace.string(),
3144
- z__namespace.string()
3145
- ])).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."),
3146
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."),
3147
3182
  linkedProjectId: z__namespace.string().optional(),
3148
3183
  name: z__namespace.string(),
@@ -3168,10 +3203,7 @@ const userEventSchema = z__namespace.object({
3168
3203
  z__namespace.literal(false),
3169
3204
  z__namespace.literal(true)
3170
3205
  ]).optional(),
3171
- skippedJobPairs: z__namespace.array(z__namespace.array(z__namespace.union([
3172
- z__namespace.string(),
3173
- z__namespace.string()
3174
- ])).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."),
3175
3207
  slug: z__namespace.string(),
3176
3208
  target: z__namespace.string().nullish(),
3177
3209
  type: z__namespace.enum([
@@ -3287,10 +3319,7 @@ const userEventSchema = z__namespace.object({
3287
3319
  z__namespace.literal(false),
3288
3320
  z__namespace.literal(true)
3289
3321
  ]),
3290
- jobPairs: z__namespace.array(z__namespace.array(z__namespace.union([
3291
- z__namespace.string(),
3292
- z__namespace.string()
3293
- ])).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."),
3294
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."),
3295
3324
  linkedProjectId: z__namespace.string().optional(),
3296
3325
  nsnbSideEffect: z__namespace.object({
@@ -3311,10 +3340,7 @@ const userEventSchema = z__namespace.object({
3311
3340
  ]),
3312
3341
  repo: z__namespace.string(),
3313
3342
  repoId: z__namespace.number(),
3314
- skippedJobPairs: z__namespace.array(z__namespace.array(z__namespace.union([
3315
- z__namespace.string(),
3316
- z__namespace.string()
3317
- ])).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."),
3318
3344
  target: z__namespace.string().nullish(),
3319
3345
  type: z__namespace.enum([
3320
3346
  "pr"
@@ -3395,10 +3421,7 @@ const userEventSchema = z__namespace.object({
3395
3421
  z__namespace.literal(false),
3396
3422
  z__namespace.literal(true)
3397
3423
  ]),
3398
- jobPairs: z__namespace.array(z__namespace.array(z__namespace.union([
3399
- z__namespace.string(),
3400
- z__namespace.string()
3401
- ])).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."),
3402
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."),
3403
3426
  linkedProjectId: z__namespace.string().optional(),
3404
3427
  nsnbSideEffect: z__namespace.object({
@@ -3420,10 +3443,7 @@ const userEventSchema = z__namespace.object({
3420
3443
  repo: z__namespace.string(),
3421
3444
  repoId: z__namespace.number(),
3422
3445
  repoPushedAt: z__namespace.number().nullable(),
3423
- skippedJobPairs: z__namespace.array(z__namespace.array(z__namespace.union([
3424
- z__namespace.string(),
3425
- z__namespace.string()
3426
- ])).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."),
3427
3447
  target: z__namespace.string().nullish(),
3428
3448
  type: z__namespace.enum([
3429
3449
  "push"
@@ -3544,10 +3564,7 @@ const userEventSchema = z__namespace.object({
3544
3564
  z__namespace.literal(false),
3545
3565
  z__namespace.literal(true)
3546
3566
  ]).optional().describe("Since 28 Feb 2024 If set to true, identifies that the git job was created for a manual git deployment"),
3547
- jobPairs: z__namespace.array(z__namespace.array(z__namespace.union([
3548
- z__namespace.string(),
3549
- z__namespace.string()
3550
- ])).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."),
3551
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."),
3552
3569
  linkedProjectId: z__namespace.string().optional(),
3553
3570
  nsnbSideEffect: z__namespace.object({
@@ -3578,10 +3595,7 @@ const userEventSchema = z__namespace.object({
3578
3595
  z__namespace.literal(false),
3579
3596
  z__namespace.literal(true)
3580
3597
  ]).optional(),
3581
- skippedJobPairs: z__namespace.array(z__namespace.array(z__namespace.union([
3582
- z__namespace.string(),
3583
- z__namespace.string()
3584
- ])).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."),
3585
3599
  target: z__namespace.string().nullish(),
3586
3600
  type: z__namespace.enum([
3587
3601
  "gitlab-push"
@@ -3695,10 +3709,7 @@ const userEventSchema = z__namespace.object({
3695
3709
  z__namespace.literal(false),
3696
3710
  z__namespace.literal(true)
3697
3711
  ]).optional().describe("Since 28 Feb 2024 If set to true, identifies that the git job was created for a manual git deployment"),
3698
- jobPairs: z__namespace.array(z__namespace.array(z__namespace.union([
3699
- z__namespace.string(),
3700
- z__namespace.string()
3701
- ])).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."),
3702
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."),
3703
3714
  linkedProjectId: z__namespace.string().optional(),
3704
3715
  nsnbSideEffect: z__namespace.object({
@@ -3720,10 +3731,7 @@ const userEventSchema = z__namespace.object({
3720
3731
  repoId: z__namespace.string(),
3721
3732
  repoPushedAt: z__namespace.number().nullish(),
3722
3733
  sha: z__namespace.string(),
3723
- skippedJobPairs: z__namespace.array(z__namespace.array(z__namespace.union([
3724
- z__namespace.string(),
3725
- z__namespace.string()
3726
- ])).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."),
3727
3735
  target: z__namespace.string().nullish(),
3728
3736
  type: z__namespace.enum([
3729
3737
  "vercel-push"
@@ -3789,10 +3797,7 @@ const userEventSchema = z__namespace.object({
3789
3797
  z__namespace.literal(false),
3790
3798
  z__namespace.literal(true)
3791
3799
  ]).optional().describe("Since 28 Feb 2024 If set to true, identifies that the git job was created for a manual git deployment"),
3792
- jobPairs: z__namespace.array(z__namespace.array(z__namespace.union([
3793
- z__namespace.string(),
3794
- z__namespace.string()
3795
- ])).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."),
3796
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."),
3797
3802
  linkedProjectId: z__namespace.string().optional(),
3798
3803
  nsnbSideEffect: z__namespace.object({
@@ -3814,10 +3819,7 @@ const userEventSchema = z__namespace.object({
3814
3819
  repoId: z__namespace.string(),
3815
3820
  repoPushedAt: z__namespace.number().nullish(),
3816
3821
  sha: z__namespace.string(),
3817
- skippedJobPairs: z__namespace.array(z__namespace.array(z__namespace.union([
3818
- z__namespace.string(),
3819
- z__namespace.string()
3820
- ])).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."),
3821
3823
  target: z__namespace.string().nullish(),
3822
3824
  type: z__namespace.enum([
3823
3825
  "cursor-origin-push"
@@ -6155,7 +6157,7 @@ const userEventSchema = z__namespace.object({
6155
6157
  ssoType: z__namespace.string().optional(),
6156
6158
  teamId: z__namespace.string().optional(),
6157
6159
  username: z__namespace.string().optional()
6158
- }).strict()).min(1).max(1),
6160
+ })).min(1).max(1),
6159
6161
  z__namespace.array(z__namespace.union([
6160
6162
  z__namespace.object({
6161
6163
  legacy: z__namespace.union([
@@ -8186,7 +8188,7 @@ const userEventSchema = z__namespace.object({
8186
8188
  ssoType: z__namespace.string().optional(),
8187
8189
  teamId: z__namespace.string().optional(),
8188
8190
  username: z__namespace.string().optional()
8189
- }).strict()).min(1).max(1).optional(),
8191
+ })).min(1).max(1).optional(),
8190
8192
  geolocation: z__namespace.object({
8191
8193
  city: z__namespace.object({
8192
8194
  names: z__namespace.object({
@@ -27639,6 +27641,7 @@ exports.aggregatePageviewsStatus403Schema = aggregatePageviewsStatus403Schema;
27639
27641
  exports.aggregatePageviewsStatus404Schema = aggregatePageviewsStatus404Schema;
27640
27642
  exports.aggregatePageviewsStatus410Schema = aggregatePageviewsStatus410Schema;
27641
27643
  exports.aggregatePageviewsStatus503Schema = aggregatePageviewsStatus503Schema;
27644
+ exports.aiGatewayEvaluationFallbackConditionSchema = aiGatewayEvaluationFallbackConditionSchema;
27642
27645
  exports.aiGatewayProviderOptionBagSchema = aiGatewayProviderOptionBagSchema;
27643
27646
  exports.aiGatewayRouterSelectorOptionBagSchema = aiGatewayRouterSelectorOptionBagSchema;
27644
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-abrukyyd.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;