vercel-api-js 1.31.0 → 1.32.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/{components-b09r2qze.cjs → components-iqz7kw3n.cjs} +46 -58
- package/dist/{components-fprm2cyd.js → components-me7s1djh.js} +46 -58
- package/dist/components.cjs +1 -1
- package/dist/components.d.mts +29 -37
- package/dist/components.d.mts.map +1 -1
- package/dist/components.mjs +1 -1
- package/dist/effect.cjs +1 -1
- package/dist/effect.d.mts +13 -15
- package/dist/effect.d.mts.map +1 -1
- package/dist/effect.mjs +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +65 -49
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/{schemas-loxs3r1h.cjs → schemas-grtstgt6.cjs} +4 -0
- package/dist/{schemas-ic0dc99k.js → schemas-hbtp9al4.js} +4 -0
- package/dist/schemas.cjs +1 -1
- package/dist/schemas.d.mts +4 -0
- package/dist/schemas.d.mts.map +1 -1
- package/dist/schemas.mjs +1 -1
- package/dist/types.d.mts +20 -0
- package/dist/types.d.mts.map +1 -1
- package/package.json +1 -1
|
@@ -287,12 +287,12 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
287
287
|
/**
|
|
288
288
|
* @summary Create virtual model config
|
|
289
289
|
* @description Create a virtual model config (VMC)
|
|
290
|
-
* @link /
|
|
290
|
+
* @link /ai-gateway/virtual-model-configs
|
|
291
291
|
*/ async function createAiGatewayVirtualModelConfig({ queryParams, config } = {}) {
|
|
292
292
|
const { client: request = client, ...requestConfig } = config ?? {};
|
|
293
293
|
const data = await request({
|
|
294
294
|
method: "POST",
|
|
295
|
-
url: `/
|
|
295
|
+
url: `/ai-gateway/virtual-model-configs`,
|
|
296
296
|
queryParams,
|
|
297
297
|
...requestConfig,
|
|
298
298
|
headers: {
|
|
@@ -304,12 +304,12 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
304
304
|
/**
|
|
305
305
|
* @summary Get virtual model config
|
|
306
306
|
* @description Get a virtual model config
|
|
307
|
-
* @link /
|
|
307
|
+
* @link /ai-gateway/virtual-model-configs
|
|
308
308
|
*/ async function getAiGatewayVirtualModelConfig({ queryParams, config } = {}) {
|
|
309
309
|
const { client: request = client, ...requestConfig } = config ?? {};
|
|
310
310
|
const data = await request({
|
|
311
311
|
method: "GET",
|
|
312
|
-
url: `/
|
|
312
|
+
url: `/ai-gateway/virtual-model-configs`,
|
|
313
313
|
queryParams,
|
|
314
314
|
...requestConfig,
|
|
315
315
|
headers: {
|
|
@@ -321,12 +321,12 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
321
321
|
/**
|
|
322
322
|
* @summary Update virtual model config
|
|
323
323
|
* @description Update a virtual model config
|
|
324
|
-
* @link /
|
|
324
|
+
* @link /ai-gateway/virtual-model-configs
|
|
325
325
|
*/ async function updateAiGatewayVirtualModelConfig({ queryParams, config } = {}) {
|
|
326
326
|
const { client: request = client, ...requestConfig } = config ?? {};
|
|
327
327
|
const data = await request({
|
|
328
328
|
method: "PATCH",
|
|
329
|
-
url: `/
|
|
329
|
+
url: `/ai-gateway/virtual-model-configs`,
|
|
330
330
|
queryParams,
|
|
331
331
|
...requestConfig,
|
|
332
332
|
headers: {
|
|
@@ -338,12 +338,12 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
338
338
|
/**
|
|
339
339
|
* @summary Delete virtual model config
|
|
340
340
|
* @description Delete a virtual model config (soft delete)
|
|
341
|
-
* @link /
|
|
341
|
+
* @link /ai-gateway/virtual-model-configs
|
|
342
342
|
*/ async function deleteAiGatewayVirtualModelConfig({ queryParams, config } = {}) {
|
|
343
343
|
const { client: request = client, ...requestConfig } = config ?? {};
|
|
344
344
|
const data = await request({
|
|
345
345
|
method: "DELETE",
|
|
346
|
-
url: `/
|
|
346
|
+
url: `/ai-gateway/virtual-model-configs`,
|
|
347
347
|
queryParams,
|
|
348
348
|
...requestConfig,
|
|
349
349
|
headers: {
|
|
@@ -355,12 +355,12 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
355
355
|
/**
|
|
356
356
|
* @summary List virtual model configs
|
|
357
357
|
* @description List virtual model configs. With `ownerId`, returns all of that team's VMCs. Without it, pages through VMCs across all teams (newest-first, `limit`/`cursor`).
|
|
358
|
-
* @link /
|
|
358
|
+
* @link /ai-gateway/virtual-model-configs/list
|
|
359
359
|
*/ async function listAiGatewayVirtualModelConfigs({ queryParams, config } = {}) {
|
|
360
360
|
const { client: request = client, ...requestConfig } = config ?? {};
|
|
361
361
|
const data = await request({
|
|
362
362
|
method: "GET",
|
|
363
|
-
url: `/
|
|
363
|
+
url: `/ai-gateway/virtual-model-configs/list`,
|
|
364
364
|
queryParams,
|
|
365
365
|
...requestConfig,
|
|
366
366
|
headers: {
|
|
@@ -372,7 +372,7 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
372
372
|
/**
|
|
373
373
|
* @summary Get virtual model config
|
|
374
374
|
* @description Get a virtual model config by path slug
|
|
375
|
-
* @link /
|
|
375
|
+
* @link /ai-gateway/virtual-model-configs/{vmcSlug}
|
|
376
376
|
*/ async function getAiGatewayVirtualModelConfigBySlug({ pathParams, queryParams, config } = {}) {
|
|
377
377
|
const { client: request = client, ...requestConfig } = config ?? {};
|
|
378
378
|
if (!pathParams.vmcSlug) {
|
|
@@ -380,7 +380,7 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
380
380
|
}
|
|
381
381
|
const data = await request({
|
|
382
382
|
method: "GET",
|
|
383
|
-
url: `/
|
|
383
|
+
url: `/ai-gateway/virtual-model-configs/${pathParams.vmcSlug}`,
|
|
384
384
|
queryParams,
|
|
385
385
|
...requestConfig,
|
|
386
386
|
headers: {
|
|
@@ -392,7 +392,7 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
392
392
|
/**
|
|
393
393
|
* @summary Update virtual model config
|
|
394
394
|
* @description Update a virtual model config by path slug
|
|
395
|
-
* @link /
|
|
395
|
+
* @link /ai-gateway/virtual-model-configs/{vmcSlug}
|
|
396
396
|
*/ async function updateAiGatewayVirtualModelConfigBySlug({ pathParams, queryParams, config } = {}) {
|
|
397
397
|
const { client: request = client, ...requestConfig } = config ?? {};
|
|
398
398
|
if (!pathParams.vmcSlug) {
|
|
@@ -400,7 +400,7 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
400
400
|
}
|
|
401
401
|
const data = await request({
|
|
402
402
|
method: "PATCH",
|
|
403
|
-
url: `/
|
|
403
|
+
url: `/ai-gateway/virtual-model-configs/${pathParams.vmcSlug}`,
|
|
404
404
|
queryParams,
|
|
405
405
|
...requestConfig,
|
|
406
406
|
headers: {
|
|
@@ -412,7 +412,7 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
412
412
|
/**
|
|
413
413
|
* @summary Delete virtual model config
|
|
414
414
|
* @description Delete a virtual model config by path slug (soft delete)
|
|
415
|
-
* @link /
|
|
415
|
+
* @link /ai-gateway/virtual-model-configs/{vmcSlug}
|
|
416
416
|
*/ async function deleteAiGatewayVirtualModelConfigBySlug({ pathParams, queryParams, config } = {}) {
|
|
417
417
|
const { client: request = client, ...requestConfig } = config ?? {};
|
|
418
418
|
if (!pathParams.vmcSlug) {
|
|
@@ -420,7 +420,7 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
420
420
|
}
|
|
421
421
|
const data = await request({
|
|
422
422
|
method: "DELETE",
|
|
423
|
-
url: `/
|
|
423
|
+
url: `/ai-gateway/virtual-model-configs/${pathParams.vmcSlug}`,
|
|
424
424
|
queryParams,
|
|
425
425
|
...requestConfig,
|
|
426
426
|
headers: {
|
|
@@ -432,12 +432,12 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
432
432
|
/**
|
|
433
433
|
* @summary Create rule
|
|
434
434
|
* @description Create a routing rule
|
|
435
|
-
* @link /
|
|
435
|
+
* @link /ai-gateway/rules
|
|
436
436
|
*/ async function createAiGatewayRule({ queryParams, config } = {}) {
|
|
437
437
|
const { client: request = client, ...requestConfig } = config ?? {};
|
|
438
438
|
const data = await request({
|
|
439
439
|
method: "POST",
|
|
440
|
-
url: `/
|
|
440
|
+
url: `/ai-gateway/rules`,
|
|
441
441
|
queryParams,
|
|
442
442
|
...requestConfig,
|
|
443
443
|
headers: {
|
|
@@ -449,12 +449,12 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
449
449
|
/**
|
|
450
450
|
* @summary List rules
|
|
451
451
|
* @description List the authenticated team's routing rules
|
|
452
|
-
* @link /
|
|
452
|
+
* @link /ai-gateway/rules
|
|
453
453
|
*/ async function listAiGatewayRules({ queryParams, config } = {}) {
|
|
454
454
|
const { client: request = client, ...requestConfig } = config ?? {};
|
|
455
455
|
const data = await request({
|
|
456
456
|
method: "GET",
|
|
457
|
-
url: `/
|
|
457
|
+
url: `/ai-gateway/rules`,
|
|
458
458
|
queryParams,
|
|
459
459
|
...requestConfig,
|
|
460
460
|
headers: {
|
|
@@ -466,12 +466,12 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
466
466
|
/**
|
|
467
467
|
* @summary Update rule
|
|
468
468
|
* @description Update a routing rule (enabled, action, or description)
|
|
469
|
-
* @link /
|
|
469
|
+
* @link /ai-gateway/rules
|
|
470
470
|
*/ async function updateAiGatewayRule({ queryParams, config } = {}) {
|
|
471
471
|
const { client: request = client, ...requestConfig } = config ?? {};
|
|
472
472
|
const data = await request({
|
|
473
473
|
method: "PATCH",
|
|
474
|
-
url: `/
|
|
474
|
+
url: `/ai-gateway/rules`,
|
|
475
475
|
queryParams,
|
|
476
476
|
...requestConfig,
|
|
477
477
|
headers: {
|
|
@@ -483,12 +483,12 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
483
483
|
/**
|
|
484
484
|
* @summary Delete rule
|
|
485
485
|
* @description Delete a routing rule (soft delete)
|
|
486
|
-
* @link /
|
|
486
|
+
* @link /ai-gateway/rules
|
|
487
487
|
*/ async function deleteAiGatewayRule({ queryParams, config } = {}) {
|
|
488
488
|
const { client: request = client, ...requestConfig } = config ?? {};
|
|
489
489
|
const data = await request({
|
|
490
490
|
method: "DELETE",
|
|
491
|
-
url: `/
|
|
491
|
+
url: `/ai-gateway/rules`,
|
|
492
492
|
queryParams,
|
|
493
493
|
...requestConfig,
|
|
494
494
|
headers: {
|
|
@@ -8701,18 +8701,18 @@ const operationsByPath = {
|
|
|
8701
8701
|
"GET /v1/access-groups/{accessGroupIdOrName}/projects/{projectId}": readAccessGroupProject,
|
|
8702
8702
|
"PATCH /v1/access-groups/{accessGroupIdOrName}/projects/{projectId}": updateAccessGroupProject,
|
|
8703
8703
|
"DELETE /v1/access-groups/{accessGroupIdOrName}/projects/{projectId}": deleteAccessGroupProject,
|
|
8704
|
-
"POST /
|
|
8705
|
-
"GET /
|
|
8706
|
-
"PATCH /
|
|
8707
|
-
"DELETE /
|
|
8708
|
-
"GET /
|
|
8709
|
-
"GET /
|
|
8710
|
-
"PATCH /
|
|
8711
|
-
"DELETE /
|
|
8712
|
-
"POST /
|
|
8713
|
-
"GET /
|
|
8714
|
-
"PATCH /
|
|
8715
|
-
"DELETE /
|
|
8704
|
+
"POST /ai-gateway/virtual-model-configs": createAiGatewayVirtualModelConfig,
|
|
8705
|
+
"GET /ai-gateway/virtual-model-configs": getAiGatewayVirtualModelConfig,
|
|
8706
|
+
"PATCH /ai-gateway/virtual-model-configs": updateAiGatewayVirtualModelConfig,
|
|
8707
|
+
"DELETE /ai-gateway/virtual-model-configs": deleteAiGatewayVirtualModelConfig,
|
|
8708
|
+
"GET /ai-gateway/virtual-model-configs/list": listAiGatewayVirtualModelConfigs,
|
|
8709
|
+
"GET /ai-gateway/virtual-model-configs/{vmcSlug}": getAiGatewayVirtualModelConfigBySlug,
|
|
8710
|
+
"PATCH /ai-gateway/virtual-model-configs/{vmcSlug}": updateAiGatewayVirtualModelConfigBySlug,
|
|
8711
|
+
"DELETE /ai-gateway/virtual-model-configs/{vmcSlug}": deleteAiGatewayVirtualModelConfigBySlug,
|
|
8712
|
+
"POST /ai-gateway/rules": createAiGatewayRule,
|
|
8713
|
+
"GET /ai-gateway/rules": listAiGatewayRules,
|
|
8714
|
+
"PATCH /ai-gateway/rules": updateAiGatewayRule,
|
|
8715
|
+
"DELETE /ai-gateway/rules": deleteAiGatewayRule,
|
|
8716
8716
|
"POST /v8/artifacts/events": recordEvents,
|
|
8717
8717
|
"GET /v8/artifacts/status": status,
|
|
8718
8718
|
"PUT /v8/artifacts/{hash}": uploadArtifact,
|
|
@@ -9136,7 +9136,7 @@ const operationsByTag = {
|
|
|
9136
9136
|
updateAccessGroupProject,
|
|
9137
9137
|
deleteAccessGroupProject
|
|
9138
9138
|
},
|
|
9139
|
-
|
|
9139
|
+
aiGateway: {
|
|
9140
9140
|
createAiGatewayVirtualModelConfig,
|
|
9141
9141
|
getAiGatewayVirtualModelConfig,
|
|
9142
9142
|
updateAiGatewayVirtualModelConfig,
|
|
@@ -9144,9 +9144,7 @@ const operationsByTag = {
|
|
|
9144
9144
|
listAiGatewayVirtualModelConfigs,
|
|
9145
9145
|
getAiGatewayVirtualModelConfigBySlug,
|
|
9146
9146
|
updateAiGatewayVirtualModelConfigBySlug,
|
|
9147
|
-
deleteAiGatewayVirtualModelConfigBySlug
|
|
9148
|
-
},
|
|
9149
|
-
aiGateway: {
|
|
9147
|
+
deleteAiGatewayVirtualModelConfigBySlug,
|
|
9150
9148
|
createAiGatewayRule,
|
|
9151
9149
|
listAiGatewayRules,
|
|
9152
9150
|
updateAiGatewayRule,
|
|
@@ -9658,35 +9656,25 @@ const tagDictionary = {
|
|
|
9658
9656
|
"updateAccessGroupProject"
|
|
9659
9657
|
]
|
|
9660
9658
|
},
|
|
9661
|
-
apiAiGateway: {
|
|
9662
|
-
POST: [
|
|
9663
|
-
"createAiGatewayVirtualModelConfig"
|
|
9664
|
-
],
|
|
9665
|
-
GET: [
|
|
9666
|
-
"getAiGatewayVirtualModelConfig",
|
|
9667
|
-
"listAiGatewayVirtualModelConfigs",
|
|
9668
|
-
"getAiGatewayVirtualModelConfigBySlug"
|
|
9669
|
-
],
|
|
9670
|
-
PATCH: [
|
|
9671
|
-
"updateAiGatewayVirtualModelConfig",
|
|
9672
|
-
"updateAiGatewayVirtualModelConfigBySlug"
|
|
9673
|
-
],
|
|
9674
|
-
DELETE: [
|
|
9675
|
-
"deleteAiGatewayVirtualModelConfig",
|
|
9676
|
-
"deleteAiGatewayVirtualModelConfigBySlug"
|
|
9677
|
-
]
|
|
9678
|
-
},
|
|
9679
9659
|
aiGateway: {
|
|
9680
9660
|
POST: [
|
|
9661
|
+
"createAiGatewayVirtualModelConfig",
|
|
9681
9662
|
"createAiGatewayRule"
|
|
9682
9663
|
],
|
|
9683
9664
|
GET: [
|
|
9665
|
+
"getAiGatewayVirtualModelConfig",
|
|
9666
|
+
"listAiGatewayVirtualModelConfigs",
|
|
9667
|
+
"getAiGatewayVirtualModelConfigBySlug",
|
|
9684
9668
|
"listAiGatewayRules"
|
|
9685
9669
|
],
|
|
9686
9670
|
PATCH: [
|
|
9671
|
+
"updateAiGatewayVirtualModelConfig",
|
|
9672
|
+
"updateAiGatewayVirtualModelConfigBySlug",
|
|
9687
9673
|
"updateAiGatewayRule"
|
|
9688
9674
|
],
|
|
9689
9675
|
DELETE: [
|
|
9676
|
+
"deleteAiGatewayVirtualModelConfig",
|
|
9677
|
+
"deleteAiGatewayVirtualModelConfigBySlug",
|
|
9690
9678
|
"deleteAiGatewayRule"
|
|
9691
9679
|
]
|
|
9692
9680
|
},
|
|
@@ -287,12 +287,12 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
287
287
|
/**
|
|
288
288
|
* @summary Create virtual model config
|
|
289
289
|
* @description Create a virtual model config (VMC)
|
|
290
|
-
* @link /
|
|
290
|
+
* @link /ai-gateway/virtual-model-configs
|
|
291
291
|
*/ async function createAiGatewayVirtualModelConfig({ queryParams, config } = {}) {
|
|
292
292
|
const { client: request = client, ...requestConfig } = config ?? {};
|
|
293
293
|
const data = await request({
|
|
294
294
|
method: "POST",
|
|
295
|
-
url: `/
|
|
295
|
+
url: `/ai-gateway/virtual-model-configs`,
|
|
296
296
|
queryParams,
|
|
297
297
|
...requestConfig,
|
|
298
298
|
headers: {
|
|
@@ -304,12 +304,12 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
304
304
|
/**
|
|
305
305
|
* @summary Get virtual model config
|
|
306
306
|
* @description Get a virtual model config
|
|
307
|
-
* @link /
|
|
307
|
+
* @link /ai-gateway/virtual-model-configs
|
|
308
308
|
*/ async function getAiGatewayVirtualModelConfig({ queryParams, config } = {}) {
|
|
309
309
|
const { client: request = client, ...requestConfig } = config ?? {};
|
|
310
310
|
const data = await request({
|
|
311
311
|
method: "GET",
|
|
312
|
-
url: `/
|
|
312
|
+
url: `/ai-gateway/virtual-model-configs`,
|
|
313
313
|
queryParams,
|
|
314
314
|
...requestConfig,
|
|
315
315
|
headers: {
|
|
@@ -321,12 +321,12 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
321
321
|
/**
|
|
322
322
|
* @summary Update virtual model config
|
|
323
323
|
* @description Update a virtual model config
|
|
324
|
-
* @link /
|
|
324
|
+
* @link /ai-gateway/virtual-model-configs
|
|
325
325
|
*/ async function updateAiGatewayVirtualModelConfig({ queryParams, config } = {}) {
|
|
326
326
|
const { client: request = client, ...requestConfig } = config ?? {};
|
|
327
327
|
const data = await request({
|
|
328
328
|
method: "PATCH",
|
|
329
|
-
url: `/
|
|
329
|
+
url: `/ai-gateway/virtual-model-configs`,
|
|
330
330
|
queryParams,
|
|
331
331
|
...requestConfig,
|
|
332
332
|
headers: {
|
|
@@ -338,12 +338,12 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
338
338
|
/**
|
|
339
339
|
* @summary Delete virtual model config
|
|
340
340
|
* @description Delete a virtual model config (soft delete)
|
|
341
|
-
* @link /
|
|
341
|
+
* @link /ai-gateway/virtual-model-configs
|
|
342
342
|
*/ async function deleteAiGatewayVirtualModelConfig({ queryParams, config } = {}) {
|
|
343
343
|
const { client: request = client, ...requestConfig } = config ?? {};
|
|
344
344
|
const data = await request({
|
|
345
345
|
method: "DELETE",
|
|
346
|
-
url: `/
|
|
346
|
+
url: `/ai-gateway/virtual-model-configs`,
|
|
347
347
|
queryParams,
|
|
348
348
|
...requestConfig,
|
|
349
349
|
headers: {
|
|
@@ -355,12 +355,12 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
355
355
|
/**
|
|
356
356
|
* @summary List virtual model configs
|
|
357
357
|
* @description List virtual model configs. With `ownerId`, returns all of that team's VMCs. Without it, pages through VMCs across all teams (newest-first, `limit`/`cursor`).
|
|
358
|
-
* @link /
|
|
358
|
+
* @link /ai-gateway/virtual-model-configs/list
|
|
359
359
|
*/ async function listAiGatewayVirtualModelConfigs({ queryParams, config } = {}) {
|
|
360
360
|
const { client: request = client, ...requestConfig } = config ?? {};
|
|
361
361
|
const data = await request({
|
|
362
362
|
method: "GET",
|
|
363
|
-
url: `/
|
|
363
|
+
url: `/ai-gateway/virtual-model-configs/list`,
|
|
364
364
|
queryParams,
|
|
365
365
|
...requestConfig,
|
|
366
366
|
headers: {
|
|
@@ -372,7 +372,7 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
372
372
|
/**
|
|
373
373
|
* @summary Get virtual model config
|
|
374
374
|
* @description Get a virtual model config by path slug
|
|
375
|
-
* @link /
|
|
375
|
+
* @link /ai-gateway/virtual-model-configs/{vmcSlug}
|
|
376
376
|
*/ async function getAiGatewayVirtualModelConfigBySlug({ pathParams, queryParams, config } = {}) {
|
|
377
377
|
const { client: request = client, ...requestConfig } = config ?? {};
|
|
378
378
|
if (!pathParams.vmcSlug) {
|
|
@@ -380,7 +380,7 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
380
380
|
}
|
|
381
381
|
const data = await request({
|
|
382
382
|
method: "GET",
|
|
383
|
-
url: `/
|
|
383
|
+
url: `/ai-gateway/virtual-model-configs/${pathParams.vmcSlug}`,
|
|
384
384
|
queryParams,
|
|
385
385
|
...requestConfig,
|
|
386
386
|
headers: {
|
|
@@ -392,7 +392,7 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
392
392
|
/**
|
|
393
393
|
* @summary Update virtual model config
|
|
394
394
|
* @description Update a virtual model config by path slug
|
|
395
|
-
* @link /
|
|
395
|
+
* @link /ai-gateway/virtual-model-configs/{vmcSlug}
|
|
396
396
|
*/ async function updateAiGatewayVirtualModelConfigBySlug({ pathParams, queryParams, config } = {}) {
|
|
397
397
|
const { client: request = client, ...requestConfig } = config ?? {};
|
|
398
398
|
if (!pathParams.vmcSlug) {
|
|
@@ -400,7 +400,7 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
400
400
|
}
|
|
401
401
|
const data = await request({
|
|
402
402
|
method: "PATCH",
|
|
403
|
-
url: `/
|
|
403
|
+
url: `/ai-gateway/virtual-model-configs/${pathParams.vmcSlug}`,
|
|
404
404
|
queryParams,
|
|
405
405
|
...requestConfig,
|
|
406
406
|
headers: {
|
|
@@ -412,7 +412,7 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
412
412
|
/**
|
|
413
413
|
* @summary Delete virtual model config
|
|
414
414
|
* @description Delete a virtual model config by path slug (soft delete)
|
|
415
|
-
* @link /
|
|
415
|
+
* @link /ai-gateway/virtual-model-configs/{vmcSlug}
|
|
416
416
|
*/ async function deleteAiGatewayVirtualModelConfigBySlug({ pathParams, queryParams, config } = {}) {
|
|
417
417
|
const { client: request = client, ...requestConfig } = config ?? {};
|
|
418
418
|
if (!pathParams.vmcSlug) {
|
|
@@ -420,7 +420,7 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
420
420
|
}
|
|
421
421
|
const data = await request({
|
|
422
422
|
method: "DELETE",
|
|
423
|
-
url: `/
|
|
423
|
+
url: `/ai-gateway/virtual-model-configs/${pathParams.vmcSlug}`,
|
|
424
424
|
queryParams,
|
|
425
425
|
...requestConfig,
|
|
426
426
|
headers: {
|
|
@@ -432,12 +432,12 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
432
432
|
/**
|
|
433
433
|
* @summary Create rule
|
|
434
434
|
* @description Create a routing rule
|
|
435
|
-
* @link /
|
|
435
|
+
* @link /ai-gateway/rules
|
|
436
436
|
*/ async function createAiGatewayRule({ queryParams, config } = {}) {
|
|
437
437
|
const { client: request = client, ...requestConfig } = config ?? {};
|
|
438
438
|
const data = await request({
|
|
439
439
|
method: "POST",
|
|
440
|
-
url: `/
|
|
440
|
+
url: `/ai-gateway/rules`,
|
|
441
441
|
queryParams,
|
|
442
442
|
...requestConfig,
|
|
443
443
|
headers: {
|
|
@@ -449,12 +449,12 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
449
449
|
/**
|
|
450
450
|
* @summary List rules
|
|
451
451
|
* @description List the authenticated team's routing rules
|
|
452
|
-
* @link /
|
|
452
|
+
* @link /ai-gateway/rules
|
|
453
453
|
*/ async function listAiGatewayRules({ queryParams, config } = {}) {
|
|
454
454
|
const { client: request = client, ...requestConfig } = config ?? {};
|
|
455
455
|
const data = await request({
|
|
456
456
|
method: "GET",
|
|
457
|
-
url: `/
|
|
457
|
+
url: `/ai-gateway/rules`,
|
|
458
458
|
queryParams,
|
|
459
459
|
...requestConfig,
|
|
460
460
|
headers: {
|
|
@@ -466,12 +466,12 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
466
466
|
/**
|
|
467
467
|
* @summary Update rule
|
|
468
468
|
* @description Update a routing rule (enabled, action, or description)
|
|
469
|
-
* @link /
|
|
469
|
+
* @link /ai-gateway/rules
|
|
470
470
|
*/ async function updateAiGatewayRule({ queryParams, config } = {}) {
|
|
471
471
|
const { client: request = client, ...requestConfig } = config ?? {};
|
|
472
472
|
const data = await request({
|
|
473
473
|
method: "PATCH",
|
|
474
|
-
url: `/
|
|
474
|
+
url: `/ai-gateway/rules`,
|
|
475
475
|
queryParams,
|
|
476
476
|
...requestConfig,
|
|
477
477
|
headers: {
|
|
@@ -483,12 +483,12 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
483
483
|
/**
|
|
484
484
|
* @summary Delete rule
|
|
485
485
|
* @description Delete a routing rule (soft delete)
|
|
486
|
-
* @link /
|
|
486
|
+
* @link /ai-gateway/rules
|
|
487
487
|
*/ async function deleteAiGatewayRule({ queryParams, config } = {}) {
|
|
488
488
|
const { client: request = client, ...requestConfig } = config ?? {};
|
|
489
489
|
const data = await request({
|
|
490
490
|
method: "DELETE",
|
|
491
|
-
url: `/
|
|
491
|
+
url: `/ai-gateway/rules`,
|
|
492
492
|
queryParams,
|
|
493
493
|
...requestConfig,
|
|
494
494
|
headers: {
|
|
@@ -8701,18 +8701,18 @@ const operationsByPath = {
|
|
|
8701
8701
|
"GET /v1/access-groups/{accessGroupIdOrName}/projects/{projectId}": readAccessGroupProject,
|
|
8702
8702
|
"PATCH /v1/access-groups/{accessGroupIdOrName}/projects/{projectId}": updateAccessGroupProject,
|
|
8703
8703
|
"DELETE /v1/access-groups/{accessGroupIdOrName}/projects/{projectId}": deleteAccessGroupProject,
|
|
8704
|
-
"POST /
|
|
8705
|
-
"GET /
|
|
8706
|
-
"PATCH /
|
|
8707
|
-
"DELETE /
|
|
8708
|
-
"GET /
|
|
8709
|
-
"GET /
|
|
8710
|
-
"PATCH /
|
|
8711
|
-
"DELETE /
|
|
8712
|
-
"POST /
|
|
8713
|
-
"GET /
|
|
8714
|
-
"PATCH /
|
|
8715
|
-
"DELETE /
|
|
8704
|
+
"POST /ai-gateway/virtual-model-configs": createAiGatewayVirtualModelConfig,
|
|
8705
|
+
"GET /ai-gateway/virtual-model-configs": getAiGatewayVirtualModelConfig,
|
|
8706
|
+
"PATCH /ai-gateway/virtual-model-configs": updateAiGatewayVirtualModelConfig,
|
|
8707
|
+
"DELETE /ai-gateway/virtual-model-configs": deleteAiGatewayVirtualModelConfig,
|
|
8708
|
+
"GET /ai-gateway/virtual-model-configs/list": listAiGatewayVirtualModelConfigs,
|
|
8709
|
+
"GET /ai-gateway/virtual-model-configs/{vmcSlug}": getAiGatewayVirtualModelConfigBySlug,
|
|
8710
|
+
"PATCH /ai-gateway/virtual-model-configs/{vmcSlug}": updateAiGatewayVirtualModelConfigBySlug,
|
|
8711
|
+
"DELETE /ai-gateway/virtual-model-configs/{vmcSlug}": deleteAiGatewayVirtualModelConfigBySlug,
|
|
8712
|
+
"POST /ai-gateway/rules": createAiGatewayRule,
|
|
8713
|
+
"GET /ai-gateway/rules": listAiGatewayRules,
|
|
8714
|
+
"PATCH /ai-gateway/rules": updateAiGatewayRule,
|
|
8715
|
+
"DELETE /ai-gateway/rules": deleteAiGatewayRule,
|
|
8716
8716
|
"POST /v8/artifacts/events": recordEvents,
|
|
8717
8717
|
"GET /v8/artifacts/status": status,
|
|
8718
8718
|
"PUT /v8/artifacts/{hash}": uploadArtifact,
|
|
@@ -9136,7 +9136,7 @@ const operationsByTag = {
|
|
|
9136
9136
|
updateAccessGroupProject,
|
|
9137
9137
|
deleteAccessGroupProject
|
|
9138
9138
|
},
|
|
9139
|
-
|
|
9139
|
+
aiGateway: {
|
|
9140
9140
|
createAiGatewayVirtualModelConfig,
|
|
9141
9141
|
getAiGatewayVirtualModelConfig,
|
|
9142
9142
|
updateAiGatewayVirtualModelConfig,
|
|
@@ -9144,9 +9144,7 @@ const operationsByTag = {
|
|
|
9144
9144
|
listAiGatewayVirtualModelConfigs,
|
|
9145
9145
|
getAiGatewayVirtualModelConfigBySlug,
|
|
9146
9146
|
updateAiGatewayVirtualModelConfigBySlug,
|
|
9147
|
-
deleteAiGatewayVirtualModelConfigBySlug
|
|
9148
|
-
},
|
|
9149
|
-
aiGateway: {
|
|
9147
|
+
deleteAiGatewayVirtualModelConfigBySlug,
|
|
9150
9148
|
createAiGatewayRule,
|
|
9151
9149
|
listAiGatewayRules,
|
|
9152
9150
|
updateAiGatewayRule,
|
|
@@ -9658,35 +9656,25 @@ const tagDictionary = {
|
|
|
9658
9656
|
"updateAccessGroupProject"
|
|
9659
9657
|
]
|
|
9660
9658
|
},
|
|
9661
|
-
apiAiGateway: {
|
|
9662
|
-
POST: [
|
|
9663
|
-
"createAiGatewayVirtualModelConfig"
|
|
9664
|
-
],
|
|
9665
|
-
GET: [
|
|
9666
|
-
"getAiGatewayVirtualModelConfig",
|
|
9667
|
-
"listAiGatewayVirtualModelConfigs",
|
|
9668
|
-
"getAiGatewayVirtualModelConfigBySlug"
|
|
9669
|
-
],
|
|
9670
|
-
PATCH: [
|
|
9671
|
-
"updateAiGatewayVirtualModelConfig",
|
|
9672
|
-
"updateAiGatewayVirtualModelConfigBySlug"
|
|
9673
|
-
],
|
|
9674
|
-
DELETE: [
|
|
9675
|
-
"deleteAiGatewayVirtualModelConfig",
|
|
9676
|
-
"deleteAiGatewayVirtualModelConfigBySlug"
|
|
9677
|
-
]
|
|
9678
|
-
},
|
|
9679
9659
|
aiGateway: {
|
|
9680
9660
|
POST: [
|
|
9661
|
+
"createAiGatewayVirtualModelConfig",
|
|
9681
9662
|
"createAiGatewayRule"
|
|
9682
9663
|
],
|
|
9683
9664
|
GET: [
|
|
9665
|
+
"getAiGatewayVirtualModelConfig",
|
|
9666
|
+
"listAiGatewayVirtualModelConfigs",
|
|
9667
|
+
"getAiGatewayVirtualModelConfigBySlug",
|
|
9684
9668
|
"listAiGatewayRules"
|
|
9685
9669
|
],
|
|
9686
9670
|
PATCH: [
|
|
9671
|
+
"updateAiGatewayVirtualModelConfig",
|
|
9672
|
+
"updateAiGatewayVirtualModelConfigBySlug",
|
|
9687
9673
|
"updateAiGatewayRule"
|
|
9688
9674
|
],
|
|
9689
9675
|
DELETE: [
|
|
9676
|
+
"deleteAiGatewayVirtualModelConfig",
|
|
9677
|
+
"deleteAiGatewayVirtualModelConfigBySlug",
|
|
9690
9678
|
"deleteAiGatewayRule"
|
|
9691
9679
|
]
|
|
9692
9680
|
},
|