@to11ai/sdk 2.0.0-rc.7 → 2.0.0-rc.8
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/generated/index.d.ts +1 -1
- package/dist/generated/types.gen.d.ts +849 -121
- package/dist/generated/zod.gen.d.ts +318 -0
- package/package.json +1 -1
- package/src/generated/index.ts +1 -1
- package/src/generated/types.gen.ts +886 -123
- package/src/generated/zod.gen.ts +335 -0
|
@@ -17488,6 +17488,122 @@ export type CredentialLifecycleRestoreCredentialResponses = {
|
|
|
17488
17488
|
|
|
17489
17489
|
export type CredentialLifecycleRestoreCredentialResponse = CredentialLifecycleRestoreCredentialResponses[keyof CredentialLifecycleRestoreCredentialResponses];
|
|
17490
17490
|
|
|
17491
|
+
export type CredentialRotateRotateCredentialData = {
|
|
17492
|
+
body: {
|
|
17493
|
+
disposition: 'keep' | 'archive' | 'delete';
|
|
17494
|
+
newCredentialId: string;
|
|
17495
|
+
reason: string;
|
|
17496
|
+
};
|
|
17497
|
+
path: {
|
|
17498
|
+
projectId: string;
|
|
17499
|
+
providerId: string;
|
|
17500
|
+
credentialId: string;
|
|
17501
|
+
};
|
|
17502
|
+
query?: never;
|
|
17503
|
+
url: '/v1/projects/{projectId}/providers/{providerId}/credentials/{credentialId}/rotate';
|
|
17504
|
+
};
|
|
17505
|
+
|
|
17506
|
+
export type CredentialRotateRotateCredentialErrors = {
|
|
17507
|
+
/**
|
|
17508
|
+
* BadRequestError
|
|
17509
|
+
*/
|
|
17510
|
+
400: BadRequestError;
|
|
17511
|
+
/**
|
|
17512
|
+
* UnauthorizedError
|
|
17513
|
+
*/
|
|
17514
|
+
401: UnauthorizedError;
|
|
17515
|
+
/**
|
|
17516
|
+
* ForbiddenError
|
|
17517
|
+
*/
|
|
17518
|
+
403: ForbiddenError;
|
|
17519
|
+
/**
|
|
17520
|
+
* NotFoundError
|
|
17521
|
+
*/
|
|
17522
|
+
404: NotFoundError;
|
|
17523
|
+
/**
|
|
17524
|
+
* ConflictError
|
|
17525
|
+
*/
|
|
17526
|
+
409: ConflictError;
|
|
17527
|
+
/**
|
|
17528
|
+
* GoneError
|
|
17529
|
+
*/
|
|
17530
|
+
410: GoneError;
|
|
17531
|
+
/**
|
|
17532
|
+
* ContentTooLargeError
|
|
17533
|
+
*/
|
|
17534
|
+
413: ContentTooLargeError;
|
|
17535
|
+
/**
|
|
17536
|
+
* MisdirectedRequestError
|
|
17537
|
+
*/
|
|
17538
|
+
421: MisdirectedRequestError;
|
|
17539
|
+
/**
|
|
17540
|
+
* UnprocessableEntityError
|
|
17541
|
+
*/
|
|
17542
|
+
422: UnprocessableEntityError;
|
|
17543
|
+
/**
|
|
17544
|
+
* TooManyRequestsError
|
|
17545
|
+
*/
|
|
17546
|
+
429: TooManyRequestsError;
|
|
17547
|
+
/**
|
|
17548
|
+
* InternalServerError
|
|
17549
|
+
*/
|
|
17550
|
+
500: InternalServerError;
|
|
17551
|
+
/**
|
|
17552
|
+
* ServiceUnavailableError
|
|
17553
|
+
*/
|
|
17554
|
+
503: ServiceUnavailableError;
|
|
17555
|
+
};
|
|
17556
|
+
|
|
17557
|
+
export type CredentialRotateRotateCredentialError = CredentialRotateRotateCredentialErrors[keyof CredentialRotateRotateCredentialErrors];
|
|
17558
|
+
|
|
17559
|
+
export type CredentialRotateRotateCredentialResponses = {
|
|
17560
|
+
/**
|
|
17561
|
+
* Success
|
|
17562
|
+
*/
|
|
17563
|
+
200: {
|
|
17564
|
+
code: number;
|
|
17565
|
+
data: {
|
|
17566
|
+
disposition: 'keep' | 'archive' | 'delete' | 'skipped_due_to_failures' | 'skipped_due_to_test_failure' | 'skipped_due_to_pending_approval' | 'skipped_due_to_shared_credential';
|
|
17567
|
+
failedEnvs: Array<{
|
|
17568
|
+
environmentId: string;
|
|
17569
|
+
failureReason: string;
|
|
17570
|
+
}>;
|
|
17571
|
+
movedEnvs: Array<{
|
|
17572
|
+
environmentId: string;
|
|
17573
|
+
}>;
|
|
17574
|
+
pendingApprovalEnvs: Array<{
|
|
17575
|
+
environmentId: string;
|
|
17576
|
+
}>;
|
|
17577
|
+
testOutcome: 'passed' | 'deferred' | 'failed';
|
|
17578
|
+
} | null;
|
|
17579
|
+
error: {
|
|
17580
|
+
code: string;
|
|
17581
|
+
details?: unknown | null;
|
|
17582
|
+
message: string;
|
|
17583
|
+
rowErrors?: Array<{
|
|
17584
|
+
code: string;
|
|
17585
|
+
message: string;
|
|
17586
|
+
path: Array<string | number>;
|
|
17587
|
+
}> | null;
|
|
17588
|
+
} | null;
|
|
17589
|
+
pagination: {
|
|
17590
|
+
limit: number;
|
|
17591
|
+
page: number;
|
|
17592
|
+
total: number;
|
|
17593
|
+
totalPages: number;
|
|
17594
|
+
} | null;
|
|
17595
|
+
sdkBehavior?: {
|
|
17596
|
+
flags: {
|
|
17597
|
+
[key: string]: unknown;
|
|
17598
|
+
};
|
|
17599
|
+
v: number;
|
|
17600
|
+
} | null;
|
|
17601
|
+
success: boolean;
|
|
17602
|
+
};
|
|
17603
|
+
};
|
|
17604
|
+
|
|
17605
|
+
export type CredentialRotateRotateCredentialResponse = CredentialRotateRotateCredentialResponses[keyof CredentialRotateRotateCredentialResponses];
|
|
17606
|
+
|
|
17491
17607
|
export type ProviderDisconnectDisconnectProviderData = {
|
|
17492
17608
|
body: {
|
|
17493
17609
|
environmentIds: Array<string>;
|
|
@@ -17926,6 +18042,7 @@ export type ProviderEmergencyRotationEmergencyRotateProviderCredentialResponses
|
|
|
17926
18042
|
envSlug: string;
|
|
17927
18043
|
environmentId: string;
|
|
17928
18044
|
id: string;
|
|
18045
|
+
modelAllowlistCleared?: boolean | null;
|
|
17929
18046
|
providerId: string;
|
|
17930
18047
|
reason: string | null;
|
|
17931
18048
|
state: 'current' | 'pending';
|
|
@@ -18046,6 +18163,7 @@ export type ProviderRollbackRollbackProviderEnvActivationResponses = {
|
|
|
18046
18163
|
envSlug: string;
|
|
18047
18164
|
environmentId: string;
|
|
18048
18165
|
id: string;
|
|
18166
|
+
modelAllowlistCleared?: boolean | null;
|
|
18049
18167
|
providerId: string;
|
|
18050
18168
|
reason: string | null;
|
|
18051
18169
|
state: 'current' | 'pending';
|
|
@@ -21145,21 +21263,17 @@ export type RoutingProvidersTestRoutingCredentialResponses = {
|
|
|
21145
21263
|
|
|
21146
21264
|
export type RoutingProvidersTestRoutingCredentialResponse = RoutingProvidersTestRoutingCredentialResponses[keyof RoutingProvidersTestRoutingCredentialResponses];
|
|
21147
21265
|
|
|
21148
|
-
export type
|
|
21149
|
-
body
|
|
21150
|
-
reason?: string | null;
|
|
21151
|
-
version: number;
|
|
21152
|
-
};
|
|
21266
|
+
export type ProviderConfigDraftsDiscardProviderDraftData = {
|
|
21267
|
+
body?: never;
|
|
21153
21268
|
path: {
|
|
21154
21269
|
projectId: string;
|
|
21155
21270
|
providerId: string;
|
|
21156
|
-
envSlug: string;
|
|
21157
21271
|
};
|
|
21158
21272
|
query?: never;
|
|
21159
|
-
url: '/v1/projects/{projectId}/routing/providers/{providerId}/
|
|
21273
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/draft';
|
|
21160
21274
|
};
|
|
21161
21275
|
|
|
21162
|
-
export type
|
|
21276
|
+
export type ProviderConfigDraftsDiscardProviderDraftErrors = {
|
|
21163
21277
|
/**
|
|
21164
21278
|
* BadRequestError
|
|
21165
21279
|
*/
|
|
@@ -21210,32 +21324,16 @@ export type ProviderPromoteVersionPromoteProviderEnvVersionErrors = {
|
|
|
21210
21324
|
503: ServiceUnavailableError;
|
|
21211
21325
|
};
|
|
21212
21326
|
|
|
21213
|
-
export type
|
|
21327
|
+
export type ProviderConfigDraftsDiscardProviderDraftError = ProviderConfigDraftsDiscardProviderDraftErrors[keyof ProviderConfigDraftsDiscardProviderDraftErrors];
|
|
21214
21328
|
|
|
21215
|
-
export type
|
|
21329
|
+
export type ProviderConfigDraftsDiscardProviderDraftResponses = {
|
|
21216
21330
|
/**
|
|
21217
21331
|
* Success
|
|
21218
21332
|
*/
|
|
21219
|
-
|
|
21333
|
+
200: {
|
|
21220
21334
|
code: number;
|
|
21221
21335
|
data: {
|
|
21222
|
-
|
|
21223
|
-
activeTo: string | null;
|
|
21224
|
-
actorId: string;
|
|
21225
|
-
actorType: string;
|
|
21226
|
-
approvalStatus: 'not_required' | 'pending' | 'approved' | 'rejected';
|
|
21227
|
-
changeType: string;
|
|
21228
|
-
configSnapshot: {
|
|
21229
|
-
[key: string]: unknown;
|
|
21230
|
-
};
|
|
21231
|
-
createdAt: string;
|
|
21232
|
-
credentialId: string;
|
|
21233
|
-
envSlug: string;
|
|
21234
|
-
environmentId: string;
|
|
21235
|
-
id: string;
|
|
21236
|
-
providerId: string;
|
|
21237
|
-
reason: string | null;
|
|
21238
|
-
state: 'current' | 'pending';
|
|
21336
|
+
discarded: true;
|
|
21239
21337
|
} | null;
|
|
21240
21338
|
error: {
|
|
21241
21339
|
code: string;
|
|
@@ -21263,22 +21361,19 @@ export type ProviderPromoteVersionPromoteProviderEnvVersionResponses = {
|
|
|
21263
21361
|
};
|
|
21264
21362
|
};
|
|
21265
21363
|
|
|
21266
|
-
export type
|
|
21364
|
+
export type ProviderConfigDraftsDiscardProviderDraftResponse = ProviderConfigDraftsDiscardProviderDraftResponses[keyof ProviderConfigDraftsDiscardProviderDraftResponses];
|
|
21267
21365
|
|
|
21268
|
-
export type
|
|
21366
|
+
export type ProviderConfigDraftsGetProviderDraftData = {
|
|
21269
21367
|
body?: never;
|
|
21270
21368
|
path: {
|
|
21271
21369
|
projectId: string;
|
|
21272
21370
|
providerId: string;
|
|
21273
21371
|
};
|
|
21274
|
-
query?:
|
|
21275
|
-
|
|
21276
|
-
limit?: number | null;
|
|
21277
|
-
};
|
|
21278
|
-
url: '/v1/projects/{projectId}/routing/providers/{providerId}/models';
|
|
21372
|
+
query?: never;
|
|
21373
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/draft';
|
|
21279
21374
|
};
|
|
21280
21375
|
|
|
21281
|
-
export type
|
|
21376
|
+
export type ProviderConfigDraftsGetProviderDraftErrors = {
|
|
21282
21377
|
/**
|
|
21283
21378
|
* BadRequestError
|
|
21284
21379
|
*/
|
|
@@ -21329,25 +21424,24 @@ export type RoutingProvidersListRoutingModelsErrors = {
|
|
|
21329
21424
|
503: ServiceUnavailableError;
|
|
21330
21425
|
};
|
|
21331
21426
|
|
|
21332
|
-
export type
|
|
21427
|
+
export type ProviderConfigDraftsGetProviderDraftError = ProviderConfigDraftsGetProviderDraftErrors[keyof ProviderConfigDraftsGetProviderDraftErrors];
|
|
21333
21428
|
|
|
21334
|
-
export type
|
|
21429
|
+
export type ProviderConfigDraftsGetProviderDraftResponses = {
|
|
21335
21430
|
/**
|
|
21336
21431
|
* Success
|
|
21337
21432
|
*/
|
|
21338
21433
|
200: {
|
|
21339
21434
|
code: number;
|
|
21340
|
-
data:
|
|
21341
|
-
|
|
21435
|
+
data: {
|
|
21436
|
+
configSnapshot: {
|
|
21437
|
+
[key: string]: unknown;
|
|
21438
|
+
};
|
|
21342
21439
|
createdAt: string;
|
|
21343
|
-
|
|
21344
|
-
|
|
21440
|
+
createdBy: string | null;
|
|
21441
|
+
fromVersionId: string;
|
|
21345
21442
|
id: string;
|
|
21346
|
-
modelType: string | null;
|
|
21347
|
-
name: string;
|
|
21348
21443
|
providerId: string;
|
|
21349
|
-
|
|
21350
|
-
}> | null;
|
|
21444
|
+
} | null | null;
|
|
21351
21445
|
error: {
|
|
21352
21446
|
code: string;
|
|
21353
21447
|
details?: unknown | null;
|
|
@@ -21374,25 +21468,19 @@ export type RoutingProvidersListRoutingModelsResponses = {
|
|
|
21374
21468
|
};
|
|
21375
21469
|
};
|
|
21376
21470
|
|
|
21377
|
-
export type
|
|
21471
|
+
export type ProviderConfigDraftsGetProviderDraftResponse = ProviderConfigDraftsGetProviderDraftResponses[keyof ProviderConfigDraftsGetProviderDraftResponses];
|
|
21378
21472
|
|
|
21379
|
-
export type
|
|
21380
|
-
body
|
|
21381
|
-
catalogSlug?: string | null;
|
|
21382
|
-
description?: string | null;
|
|
21383
|
-
displayName?: string | null;
|
|
21384
|
-
modelType?: string | null;
|
|
21385
|
-
name: string;
|
|
21386
|
-
};
|
|
21473
|
+
export type ProviderConfigDraftsEnsureProviderDraftData = {
|
|
21474
|
+
body?: never;
|
|
21387
21475
|
path: {
|
|
21388
21476
|
projectId: string;
|
|
21389
21477
|
providerId: string;
|
|
21390
21478
|
};
|
|
21391
21479
|
query?: never;
|
|
21392
|
-
url: '/v1/projects/{projectId}/routing/providers/{providerId}/
|
|
21480
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/draft';
|
|
21393
21481
|
};
|
|
21394
21482
|
|
|
21395
|
-
export type
|
|
21483
|
+
export type ProviderConfigDraftsEnsureProviderDraftErrors = {
|
|
21396
21484
|
/**
|
|
21397
21485
|
* BadRequestError
|
|
21398
21486
|
*/
|
|
@@ -21443,32 +21531,23 @@ export type RoutingProvidersCreateRoutingModelErrors = {
|
|
|
21443
21531
|
503: ServiceUnavailableError;
|
|
21444
21532
|
};
|
|
21445
21533
|
|
|
21446
|
-
export type
|
|
21534
|
+
export type ProviderConfigDraftsEnsureProviderDraftError = ProviderConfigDraftsEnsureProviderDraftErrors[keyof ProviderConfigDraftsEnsureProviderDraftErrors];
|
|
21447
21535
|
|
|
21448
|
-
export type
|
|
21536
|
+
export type ProviderConfigDraftsEnsureProviderDraftResponses = {
|
|
21449
21537
|
/**
|
|
21450
21538
|
* Success
|
|
21451
21539
|
*/
|
|
21452
|
-
|
|
21540
|
+
200: {
|
|
21453
21541
|
code: number;
|
|
21454
21542
|
data: {
|
|
21455
|
-
|
|
21543
|
+
configSnapshot: {
|
|
21544
|
+
[key: string]: unknown;
|
|
21545
|
+
};
|
|
21456
21546
|
createdAt: string;
|
|
21457
|
-
|
|
21458
|
-
|
|
21547
|
+
createdBy: string | null;
|
|
21548
|
+
fromVersionId: string;
|
|
21459
21549
|
id: string;
|
|
21460
|
-
modelType: string | null;
|
|
21461
|
-
name: string;
|
|
21462
21550
|
providerId: string;
|
|
21463
|
-
publishWarning?: {
|
|
21464
|
-
errors: Array<{
|
|
21465
|
-
entity: string;
|
|
21466
|
-
message: string;
|
|
21467
|
-
rule?: string | null;
|
|
21468
|
-
}>;
|
|
21469
|
-
kind: 'validation';
|
|
21470
|
-
} | null;
|
|
21471
|
-
updatedAt: string;
|
|
21472
21551
|
} | null;
|
|
21473
21552
|
error: {
|
|
21474
21553
|
code: string;
|
|
@@ -21496,20 +21575,25 @@ export type RoutingProvidersCreateRoutingModelResponses = {
|
|
|
21496
21575
|
};
|
|
21497
21576
|
};
|
|
21498
21577
|
|
|
21499
|
-
export type
|
|
21578
|
+
export type ProviderConfigDraftsEnsureProviderDraftResponse = ProviderConfigDraftsEnsureProviderDraftResponses[keyof ProviderConfigDraftsEnsureProviderDraftResponses];
|
|
21500
21579
|
|
|
21501
|
-
export type
|
|
21502
|
-
body
|
|
21580
|
+
export type ProviderConfigDraftsCommitProviderDraftData = {
|
|
21581
|
+
body: {
|
|
21582
|
+
environments: Array<{
|
|
21583
|
+
envSlug: string;
|
|
21584
|
+
environmentId: string;
|
|
21585
|
+
}>;
|
|
21586
|
+
reason?: string | null;
|
|
21587
|
+
};
|
|
21503
21588
|
path: {
|
|
21504
21589
|
projectId: string;
|
|
21505
21590
|
providerId: string;
|
|
21506
|
-
modelId: string;
|
|
21507
21591
|
};
|
|
21508
21592
|
query?: never;
|
|
21509
|
-
url: '/v1/projects/{projectId}/routing/providers/{providerId}/
|
|
21593
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/draft/commit';
|
|
21510
21594
|
};
|
|
21511
21595
|
|
|
21512
|
-
export type
|
|
21596
|
+
export type ProviderConfigDraftsCommitProviderDraftErrors = {
|
|
21513
21597
|
/**
|
|
21514
21598
|
* BadRequestError
|
|
21515
21599
|
*/
|
|
@@ -21560,24 +21644,23 @@ export type RoutingProvidersDeleteRoutingModelErrors = {
|
|
|
21560
21644
|
503: ServiceUnavailableError;
|
|
21561
21645
|
};
|
|
21562
21646
|
|
|
21563
|
-
export type
|
|
21647
|
+
export type ProviderConfigDraftsCommitProviderDraftError = ProviderConfigDraftsCommitProviderDraftErrors[keyof ProviderConfigDraftsCommitProviderDraftErrors];
|
|
21564
21648
|
|
|
21565
|
-
export type
|
|
21649
|
+
export type ProviderConfigDraftsCommitProviderDraftResponses = {
|
|
21566
21650
|
/**
|
|
21567
21651
|
* Success
|
|
21568
21652
|
*/
|
|
21569
|
-
|
|
21653
|
+
201: {
|
|
21570
21654
|
code: number;
|
|
21571
21655
|
data: {
|
|
21572
|
-
|
|
21573
|
-
|
|
21574
|
-
|
|
21575
|
-
|
|
21576
|
-
|
|
21577
|
-
|
|
21578
|
-
|
|
21579
|
-
|
|
21580
|
-
} | null;
|
|
21656
|
+
deployResults: Array<{
|
|
21657
|
+
envSlug: string;
|
|
21658
|
+
environmentId: string;
|
|
21659
|
+
errorTag?: string | null;
|
|
21660
|
+
outcome: 'deployed' | 'pending' | 'failed';
|
|
21661
|
+
}>;
|
|
21662
|
+
version: number;
|
|
21663
|
+
versionId: string;
|
|
21581
21664
|
} | null;
|
|
21582
21665
|
error: {
|
|
21583
21666
|
code: string;
|
|
@@ -21605,24 +21688,22 @@ export type RoutingProvidersDeleteRoutingModelResponses = {
|
|
|
21605
21688
|
};
|
|
21606
21689
|
};
|
|
21607
21690
|
|
|
21608
|
-
export type
|
|
21691
|
+
export type ProviderConfigDraftsCommitProviderDraftResponse = ProviderConfigDraftsCommitProviderDraftResponses[keyof ProviderConfigDraftsCommitProviderDraftResponses];
|
|
21609
21692
|
|
|
21610
|
-
export type
|
|
21693
|
+
export type ProviderConfigDraftsRestoreProviderVersionData = {
|
|
21611
21694
|
body: {
|
|
21612
|
-
|
|
21613
|
-
|
|
21614
|
-
modelType?: string | null;
|
|
21695
|
+
confirmDiscard?: boolean | null;
|
|
21696
|
+
version: number;
|
|
21615
21697
|
};
|
|
21616
21698
|
path: {
|
|
21617
21699
|
projectId: string;
|
|
21618
21700
|
providerId: string;
|
|
21619
|
-
modelId: string;
|
|
21620
21701
|
};
|
|
21621
21702
|
query?: never;
|
|
21622
|
-
url: '/v1/projects/{projectId}/routing/providers/{providerId}/
|
|
21703
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/draft/restore';
|
|
21623
21704
|
};
|
|
21624
21705
|
|
|
21625
|
-
export type
|
|
21706
|
+
export type ProviderConfigDraftsRestoreProviderVersionErrors = {
|
|
21626
21707
|
/**
|
|
21627
21708
|
* BadRequestError
|
|
21628
21709
|
*/
|
|
@@ -21673,32 +21754,23 @@ export type RoutingProvidersUpdateRoutingModelErrors = {
|
|
|
21673
21754
|
503: ServiceUnavailableError;
|
|
21674
21755
|
};
|
|
21675
21756
|
|
|
21676
|
-
export type
|
|
21757
|
+
export type ProviderConfigDraftsRestoreProviderVersionError = ProviderConfigDraftsRestoreProviderVersionErrors[keyof ProviderConfigDraftsRestoreProviderVersionErrors];
|
|
21677
21758
|
|
|
21678
|
-
export type
|
|
21759
|
+
export type ProviderConfigDraftsRestoreProviderVersionResponses = {
|
|
21679
21760
|
/**
|
|
21680
21761
|
* Success
|
|
21681
21762
|
*/
|
|
21682
21763
|
200: {
|
|
21683
21764
|
code: number;
|
|
21684
21765
|
data: {
|
|
21685
|
-
|
|
21766
|
+
configSnapshot: {
|
|
21767
|
+
[key: string]: unknown;
|
|
21768
|
+
};
|
|
21686
21769
|
createdAt: string;
|
|
21687
|
-
|
|
21688
|
-
|
|
21770
|
+
createdBy: string | null;
|
|
21771
|
+
fromVersionId: string;
|
|
21689
21772
|
id: string;
|
|
21690
|
-
modelType: string | null;
|
|
21691
|
-
name: string;
|
|
21692
21773
|
providerId: string;
|
|
21693
|
-
publishWarning?: {
|
|
21694
|
-
errors: Array<{
|
|
21695
|
-
entity: string;
|
|
21696
|
-
message: string;
|
|
21697
|
-
rule?: string | null;
|
|
21698
|
-
}>;
|
|
21699
|
-
kind: 'validation';
|
|
21700
|
-
} | null;
|
|
21701
|
-
updatedAt: string;
|
|
21702
21774
|
} | null;
|
|
21703
21775
|
error: {
|
|
21704
21776
|
code: string;
|
|
@@ -21726,14 +21798,704 @@ export type RoutingProvidersUpdateRoutingModelResponses = {
|
|
|
21726
21798
|
};
|
|
21727
21799
|
};
|
|
21728
21800
|
|
|
21729
|
-
export type
|
|
21801
|
+
export type ProviderConfigDraftsRestoreProviderVersionResponse = ProviderConfigDraftsRestoreProviderVersionResponses[keyof ProviderConfigDraftsRestoreProviderVersionResponses];
|
|
21730
21802
|
|
|
21731
|
-
export type
|
|
21732
|
-
body
|
|
21733
|
-
|
|
21734
|
-
|
|
21735
|
-
|
|
21736
|
-
|
|
21803
|
+
export type ProviderPromoteVersionPromoteProviderEnvVersionData = {
|
|
21804
|
+
body: {
|
|
21805
|
+
reason?: string | null;
|
|
21806
|
+
version: number;
|
|
21807
|
+
};
|
|
21808
|
+
path: {
|
|
21809
|
+
projectId: string;
|
|
21810
|
+
providerId: string;
|
|
21811
|
+
envSlug: string;
|
|
21812
|
+
};
|
|
21813
|
+
query?: never;
|
|
21814
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/environments/{envSlug}/promote';
|
|
21815
|
+
};
|
|
21816
|
+
|
|
21817
|
+
export type ProviderPromoteVersionPromoteProviderEnvVersionErrors = {
|
|
21818
|
+
/**
|
|
21819
|
+
* BadRequestError
|
|
21820
|
+
*/
|
|
21821
|
+
400: BadRequestError;
|
|
21822
|
+
/**
|
|
21823
|
+
* UnauthorizedError
|
|
21824
|
+
*/
|
|
21825
|
+
401: UnauthorizedError;
|
|
21826
|
+
/**
|
|
21827
|
+
* ForbiddenError
|
|
21828
|
+
*/
|
|
21829
|
+
403: ForbiddenError;
|
|
21830
|
+
/**
|
|
21831
|
+
* NotFoundError
|
|
21832
|
+
*/
|
|
21833
|
+
404: NotFoundError;
|
|
21834
|
+
/**
|
|
21835
|
+
* ConflictError
|
|
21836
|
+
*/
|
|
21837
|
+
409: ConflictError;
|
|
21838
|
+
/**
|
|
21839
|
+
* GoneError
|
|
21840
|
+
*/
|
|
21841
|
+
410: GoneError;
|
|
21842
|
+
/**
|
|
21843
|
+
* ContentTooLargeError
|
|
21844
|
+
*/
|
|
21845
|
+
413: ContentTooLargeError;
|
|
21846
|
+
/**
|
|
21847
|
+
* MisdirectedRequestError
|
|
21848
|
+
*/
|
|
21849
|
+
421: MisdirectedRequestError;
|
|
21850
|
+
/**
|
|
21851
|
+
* UnprocessableEntityError
|
|
21852
|
+
*/
|
|
21853
|
+
422: UnprocessableEntityError;
|
|
21854
|
+
/**
|
|
21855
|
+
* TooManyRequestsError
|
|
21856
|
+
*/
|
|
21857
|
+
429: TooManyRequestsError;
|
|
21858
|
+
/**
|
|
21859
|
+
* InternalServerError
|
|
21860
|
+
*/
|
|
21861
|
+
500: InternalServerError;
|
|
21862
|
+
/**
|
|
21863
|
+
* ServiceUnavailableError
|
|
21864
|
+
*/
|
|
21865
|
+
503: ServiceUnavailableError;
|
|
21866
|
+
};
|
|
21867
|
+
|
|
21868
|
+
export type ProviderPromoteVersionPromoteProviderEnvVersionError = ProviderPromoteVersionPromoteProviderEnvVersionErrors[keyof ProviderPromoteVersionPromoteProviderEnvVersionErrors];
|
|
21869
|
+
|
|
21870
|
+
export type ProviderPromoteVersionPromoteProviderEnvVersionResponses = {
|
|
21871
|
+
/**
|
|
21872
|
+
* Success
|
|
21873
|
+
*/
|
|
21874
|
+
201: {
|
|
21875
|
+
code: number;
|
|
21876
|
+
data: {
|
|
21877
|
+
activeFrom: string;
|
|
21878
|
+
activeTo: string | null;
|
|
21879
|
+
actorId: string;
|
|
21880
|
+
actorType: string;
|
|
21881
|
+
approvalStatus: 'not_required' | 'pending' | 'approved' | 'rejected';
|
|
21882
|
+
changeType: string;
|
|
21883
|
+
configSnapshot: {
|
|
21884
|
+
[key: string]: unknown;
|
|
21885
|
+
};
|
|
21886
|
+
createdAt: string;
|
|
21887
|
+
credentialId: string;
|
|
21888
|
+
envSlug: string;
|
|
21889
|
+
environmentId: string;
|
|
21890
|
+
id: string;
|
|
21891
|
+
modelAllowlistCleared?: boolean | null;
|
|
21892
|
+
providerId: string;
|
|
21893
|
+
reason: string | null;
|
|
21894
|
+
state: 'current' | 'pending';
|
|
21895
|
+
} | null;
|
|
21896
|
+
error: {
|
|
21897
|
+
code: string;
|
|
21898
|
+
details?: unknown | null;
|
|
21899
|
+
message: string;
|
|
21900
|
+
rowErrors?: Array<{
|
|
21901
|
+
code: string;
|
|
21902
|
+
message: string;
|
|
21903
|
+
path: Array<string | number>;
|
|
21904
|
+
}> | null;
|
|
21905
|
+
} | null;
|
|
21906
|
+
pagination: {
|
|
21907
|
+
limit: number;
|
|
21908
|
+
page: number;
|
|
21909
|
+
total: number;
|
|
21910
|
+
totalPages: number;
|
|
21911
|
+
} | null;
|
|
21912
|
+
sdkBehavior?: {
|
|
21913
|
+
flags: {
|
|
21914
|
+
[key: string]: unknown;
|
|
21915
|
+
};
|
|
21916
|
+
v: number;
|
|
21917
|
+
} | null;
|
|
21918
|
+
success: boolean;
|
|
21919
|
+
};
|
|
21920
|
+
};
|
|
21921
|
+
|
|
21922
|
+
export type ProviderPromoteVersionPromoteProviderEnvVersionResponse = ProviderPromoteVersionPromoteProviderEnvVersionResponses[keyof ProviderPromoteVersionPromoteProviderEnvVersionResponses];
|
|
21923
|
+
|
|
21924
|
+
export type ProviderModelUsageGetProviderModelUsageData = {
|
|
21925
|
+
body?: never;
|
|
21926
|
+
path: {
|
|
21927
|
+
projectId: string;
|
|
21928
|
+
providerId: string;
|
|
21929
|
+
};
|
|
21930
|
+
query?: never;
|
|
21931
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/model-usage';
|
|
21932
|
+
};
|
|
21933
|
+
|
|
21934
|
+
export type ProviderModelUsageGetProviderModelUsageErrors = {
|
|
21935
|
+
/**
|
|
21936
|
+
* BadRequestError
|
|
21937
|
+
*/
|
|
21938
|
+
400: BadRequestError;
|
|
21939
|
+
/**
|
|
21940
|
+
* UnauthorizedError
|
|
21941
|
+
*/
|
|
21942
|
+
401: UnauthorizedError;
|
|
21943
|
+
/**
|
|
21944
|
+
* ForbiddenError
|
|
21945
|
+
*/
|
|
21946
|
+
403: ForbiddenError;
|
|
21947
|
+
/**
|
|
21948
|
+
* NotFoundError
|
|
21949
|
+
*/
|
|
21950
|
+
404: NotFoundError;
|
|
21951
|
+
/**
|
|
21952
|
+
* ConflictError
|
|
21953
|
+
*/
|
|
21954
|
+
409: ConflictError;
|
|
21955
|
+
/**
|
|
21956
|
+
* GoneError
|
|
21957
|
+
*/
|
|
21958
|
+
410: GoneError;
|
|
21959
|
+
/**
|
|
21960
|
+
* ContentTooLargeError
|
|
21961
|
+
*/
|
|
21962
|
+
413: ContentTooLargeError;
|
|
21963
|
+
/**
|
|
21964
|
+
* MisdirectedRequestError
|
|
21965
|
+
*/
|
|
21966
|
+
421: MisdirectedRequestError;
|
|
21967
|
+
/**
|
|
21968
|
+
* UnprocessableEntityError
|
|
21969
|
+
*/
|
|
21970
|
+
422: UnprocessableEntityError;
|
|
21971
|
+
/**
|
|
21972
|
+
* TooManyRequestsError
|
|
21973
|
+
*/
|
|
21974
|
+
429: TooManyRequestsError;
|
|
21975
|
+
/**
|
|
21976
|
+
* InternalServerError
|
|
21977
|
+
*/
|
|
21978
|
+
500: InternalServerError;
|
|
21979
|
+
/**
|
|
21980
|
+
* ServiceUnavailableError
|
|
21981
|
+
*/
|
|
21982
|
+
503: ServiceUnavailableError;
|
|
21983
|
+
};
|
|
21984
|
+
|
|
21985
|
+
export type ProviderModelUsageGetProviderModelUsageError = ProviderModelUsageGetProviderModelUsageErrors[keyof ProviderModelUsageGetProviderModelUsageErrors];
|
|
21986
|
+
|
|
21987
|
+
export type ProviderModelUsageGetProviderModelUsageResponses = {
|
|
21988
|
+
/**
|
|
21989
|
+
* Success
|
|
21990
|
+
*/
|
|
21991
|
+
200: {
|
|
21992
|
+
code: number;
|
|
21993
|
+
data: Array<{
|
|
21994
|
+
day: string;
|
|
21995
|
+
errorCount: number;
|
|
21996
|
+
model: string;
|
|
21997
|
+
p50TtftMs: number | null;
|
|
21998
|
+
requests: number;
|
|
21999
|
+
spendUsd: number | null;
|
|
22000
|
+
totalTokens: number;
|
|
22001
|
+
}> | null;
|
|
22002
|
+
error: {
|
|
22003
|
+
code: string;
|
|
22004
|
+
details?: unknown | null;
|
|
22005
|
+
message: string;
|
|
22006
|
+
rowErrors?: Array<{
|
|
22007
|
+
code: string;
|
|
22008
|
+
message: string;
|
|
22009
|
+
path: Array<string | number>;
|
|
22010
|
+
}> | null;
|
|
22011
|
+
} | null;
|
|
22012
|
+
pagination: {
|
|
22013
|
+
limit: number;
|
|
22014
|
+
page: number;
|
|
22015
|
+
total: number;
|
|
22016
|
+
totalPages: number;
|
|
22017
|
+
} | null;
|
|
22018
|
+
sdkBehavior?: {
|
|
22019
|
+
flags: {
|
|
22020
|
+
[key: string]: unknown;
|
|
22021
|
+
};
|
|
22022
|
+
v: number;
|
|
22023
|
+
} | null;
|
|
22024
|
+
success: boolean;
|
|
22025
|
+
};
|
|
22026
|
+
};
|
|
22027
|
+
|
|
22028
|
+
export type ProviderModelUsageGetProviderModelUsageResponse = ProviderModelUsageGetProviderModelUsageResponses[keyof ProviderModelUsageGetProviderModelUsageResponses];
|
|
22029
|
+
|
|
22030
|
+
export type RoutingProvidersListRoutingModelsData = {
|
|
22031
|
+
body?: never;
|
|
22032
|
+
path: {
|
|
22033
|
+
projectId: string;
|
|
22034
|
+
providerId: string;
|
|
22035
|
+
};
|
|
22036
|
+
query?: {
|
|
22037
|
+
page?: number | null;
|
|
22038
|
+
limit?: number | null;
|
|
22039
|
+
};
|
|
22040
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/models';
|
|
22041
|
+
};
|
|
22042
|
+
|
|
22043
|
+
export type RoutingProvidersListRoutingModelsErrors = {
|
|
22044
|
+
/**
|
|
22045
|
+
* BadRequestError
|
|
22046
|
+
*/
|
|
22047
|
+
400: BadRequestError;
|
|
22048
|
+
/**
|
|
22049
|
+
* UnauthorizedError
|
|
22050
|
+
*/
|
|
22051
|
+
401: UnauthorizedError;
|
|
22052
|
+
/**
|
|
22053
|
+
* ForbiddenError
|
|
22054
|
+
*/
|
|
22055
|
+
403: ForbiddenError;
|
|
22056
|
+
/**
|
|
22057
|
+
* NotFoundError
|
|
22058
|
+
*/
|
|
22059
|
+
404: NotFoundError;
|
|
22060
|
+
/**
|
|
22061
|
+
* ConflictError
|
|
22062
|
+
*/
|
|
22063
|
+
409: ConflictError;
|
|
22064
|
+
/**
|
|
22065
|
+
* GoneError
|
|
22066
|
+
*/
|
|
22067
|
+
410: GoneError;
|
|
22068
|
+
/**
|
|
22069
|
+
* ContentTooLargeError
|
|
22070
|
+
*/
|
|
22071
|
+
413: ContentTooLargeError;
|
|
22072
|
+
/**
|
|
22073
|
+
* MisdirectedRequestError
|
|
22074
|
+
*/
|
|
22075
|
+
421: MisdirectedRequestError;
|
|
22076
|
+
/**
|
|
22077
|
+
* UnprocessableEntityError
|
|
22078
|
+
*/
|
|
22079
|
+
422: UnprocessableEntityError;
|
|
22080
|
+
/**
|
|
22081
|
+
* TooManyRequestsError
|
|
22082
|
+
*/
|
|
22083
|
+
429: TooManyRequestsError;
|
|
22084
|
+
/**
|
|
22085
|
+
* InternalServerError
|
|
22086
|
+
*/
|
|
22087
|
+
500: InternalServerError;
|
|
22088
|
+
/**
|
|
22089
|
+
* ServiceUnavailableError
|
|
22090
|
+
*/
|
|
22091
|
+
503: ServiceUnavailableError;
|
|
22092
|
+
};
|
|
22093
|
+
|
|
22094
|
+
export type RoutingProvidersListRoutingModelsError = RoutingProvidersListRoutingModelsErrors[keyof RoutingProvidersListRoutingModelsErrors];
|
|
22095
|
+
|
|
22096
|
+
export type RoutingProvidersListRoutingModelsResponses = {
|
|
22097
|
+
/**
|
|
22098
|
+
* Success
|
|
22099
|
+
*/
|
|
22100
|
+
200: {
|
|
22101
|
+
code: number;
|
|
22102
|
+
data: Array<{
|
|
22103
|
+
catalogSlug?: string | null | null;
|
|
22104
|
+
createdAt: string;
|
|
22105
|
+
description: string | null;
|
|
22106
|
+
displayName: string | null;
|
|
22107
|
+
id: string;
|
|
22108
|
+
modelType: string | null;
|
|
22109
|
+
name: string;
|
|
22110
|
+
providerId: string;
|
|
22111
|
+
updatedAt: string;
|
|
22112
|
+
}> | null;
|
|
22113
|
+
error: {
|
|
22114
|
+
code: string;
|
|
22115
|
+
details?: unknown | null;
|
|
22116
|
+
message: string;
|
|
22117
|
+
rowErrors?: Array<{
|
|
22118
|
+
code: string;
|
|
22119
|
+
message: string;
|
|
22120
|
+
path: Array<string | number>;
|
|
22121
|
+
}> | null;
|
|
22122
|
+
} | null;
|
|
22123
|
+
pagination: {
|
|
22124
|
+
limit: number;
|
|
22125
|
+
page: number;
|
|
22126
|
+
total: number;
|
|
22127
|
+
totalPages: number;
|
|
22128
|
+
} | null;
|
|
22129
|
+
sdkBehavior?: {
|
|
22130
|
+
flags: {
|
|
22131
|
+
[key: string]: unknown;
|
|
22132
|
+
};
|
|
22133
|
+
v: number;
|
|
22134
|
+
} | null;
|
|
22135
|
+
success: boolean;
|
|
22136
|
+
};
|
|
22137
|
+
};
|
|
22138
|
+
|
|
22139
|
+
export type RoutingProvidersListRoutingModelsResponse = RoutingProvidersListRoutingModelsResponses[keyof RoutingProvidersListRoutingModelsResponses];
|
|
22140
|
+
|
|
22141
|
+
export type RoutingProvidersCreateRoutingModelData = {
|
|
22142
|
+
body: {
|
|
22143
|
+
catalogSlug?: string | null;
|
|
22144
|
+
description?: string | null;
|
|
22145
|
+
displayName?: string | null;
|
|
22146
|
+
modelType?: string | null;
|
|
22147
|
+
name: string;
|
|
22148
|
+
};
|
|
22149
|
+
path: {
|
|
22150
|
+
projectId: string;
|
|
22151
|
+
providerId: string;
|
|
22152
|
+
};
|
|
22153
|
+
query?: never;
|
|
22154
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/models';
|
|
22155
|
+
};
|
|
22156
|
+
|
|
22157
|
+
export type RoutingProvidersCreateRoutingModelErrors = {
|
|
22158
|
+
/**
|
|
22159
|
+
* BadRequestError
|
|
22160
|
+
*/
|
|
22161
|
+
400: BadRequestError;
|
|
22162
|
+
/**
|
|
22163
|
+
* UnauthorizedError
|
|
22164
|
+
*/
|
|
22165
|
+
401: UnauthorizedError;
|
|
22166
|
+
/**
|
|
22167
|
+
* ForbiddenError
|
|
22168
|
+
*/
|
|
22169
|
+
403: ForbiddenError;
|
|
22170
|
+
/**
|
|
22171
|
+
* NotFoundError
|
|
22172
|
+
*/
|
|
22173
|
+
404: NotFoundError;
|
|
22174
|
+
/**
|
|
22175
|
+
* ConflictError
|
|
22176
|
+
*/
|
|
22177
|
+
409: ConflictError;
|
|
22178
|
+
/**
|
|
22179
|
+
* GoneError
|
|
22180
|
+
*/
|
|
22181
|
+
410: GoneError;
|
|
22182
|
+
/**
|
|
22183
|
+
* ContentTooLargeError
|
|
22184
|
+
*/
|
|
22185
|
+
413: ContentTooLargeError;
|
|
22186
|
+
/**
|
|
22187
|
+
* MisdirectedRequestError
|
|
22188
|
+
*/
|
|
22189
|
+
421: MisdirectedRequestError;
|
|
22190
|
+
/**
|
|
22191
|
+
* UnprocessableEntityError
|
|
22192
|
+
*/
|
|
22193
|
+
422: UnprocessableEntityError;
|
|
22194
|
+
/**
|
|
22195
|
+
* TooManyRequestsError
|
|
22196
|
+
*/
|
|
22197
|
+
429: TooManyRequestsError;
|
|
22198
|
+
/**
|
|
22199
|
+
* InternalServerError
|
|
22200
|
+
*/
|
|
22201
|
+
500: InternalServerError;
|
|
22202
|
+
/**
|
|
22203
|
+
* ServiceUnavailableError
|
|
22204
|
+
*/
|
|
22205
|
+
503: ServiceUnavailableError;
|
|
22206
|
+
};
|
|
22207
|
+
|
|
22208
|
+
export type RoutingProvidersCreateRoutingModelError = RoutingProvidersCreateRoutingModelErrors[keyof RoutingProvidersCreateRoutingModelErrors];
|
|
22209
|
+
|
|
22210
|
+
export type RoutingProvidersCreateRoutingModelResponses = {
|
|
22211
|
+
/**
|
|
22212
|
+
* Success
|
|
22213
|
+
*/
|
|
22214
|
+
201: {
|
|
22215
|
+
code: number;
|
|
22216
|
+
data: {
|
|
22217
|
+
catalogSlug?: string | null | null;
|
|
22218
|
+
createdAt: string;
|
|
22219
|
+
description: string | null;
|
|
22220
|
+
displayName: string | null;
|
|
22221
|
+
id: string;
|
|
22222
|
+
modelType: string | null;
|
|
22223
|
+
name: string;
|
|
22224
|
+
providerId: string;
|
|
22225
|
+
publishWarning?: {
|
|
22226
|
+
errors: Array<{
|
|
22227
|
+
entity: string;
|
|
22228
|
+
message: string;
|
|
22229
|
+
rule?: string | null;
|
|
22230
|
+
}>;
|
|
22231
|
+
kind: 'validation';
|
|
22232
|
+
} | null;
|
|
22233
|
+
updatedAt: string;
|
|
22234
|
+
} | null;
|
|
22235
|
+
error: {
|
|
22236
|
+
code: string;
|
|
22237
|
+
details?: unknown | null;
|
|
22238
|
+
message: string;
|
|
22239
|
+
rowErrors?: Array<{
|
|
22240
|
+
code: string;
|
|
22241
|
+
message: string;
|
|
22242
|
+
path: Array<string | number>;
|
|
22243
|
+
}> | null;
|
|
22244
|
+
} | null;
|
|
22245
|
+
pagination: {
|
|
22246
|
+
limit: number;
|
|
22247
|
+
page: number;
|
|
22248
|
+
total: number;
|
|
22249
|
+
totalPages: number;
|
|
22250
|
+
} | null;
|
|
22251
|
+
sdkBehavior?: {
|
|
22252
|
+
flags: {
|
|
22253
|
+
[key: string]: unknown;
|
|
22254
|
+
};
|
|
22255
|
+
v: number;
|
|
22256
|
+
} | null;
|
|
22257
|
+
success: boolean;
|
|
22258
|
+
};
|
|
22259
|
+
};
|
|
22260
|
+
|
|
22261
|
+
export type RoutingProvidersCreateRoutingModelResponse = RoutingProvidersCreateRoutingModelResponses[keyof RoutingProvidersCreateRoutingModelResponses];
|
|
22262
|
+
|
|
22263
|
+
export type RoutingProvidersDeleteRoutingModelData = {
|
|
22264
|
+
body?: never;
|
|
22265
|
+
path: {
|
|
22266
|
+
projectId: string;
|
|
22267
|
+
providerId: string;
|
|
22268
|
+
modelId: string;
|
|
22269
|
+
};
|
|
22270
|
+
query?: never;
|
|
22271
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/models/{modelId}';
|
|
22272
|
+
};
|
|
22273
|
+
|
|
22274
|
+
export type RoutingProvidersDeleteRoutingModelErrors = {
|
|
22275
|
+
/**
|
|
22276
|
+
* BadRequestError
|
|
22277
|
+
*/
|
|
22278
|
+
400: BadRequestError;
|
|
22279
|
+
/**
|
|
22280
|
+
* UnauthorizedError
|
|
22281
|
+
*/
|
|
22282
|
+
401: UnauthorizedError;
|
|
22283
|
+
/**
|
|
22284
|
+
* ForbiddenError
|
|
22285
|
+
*/
|
|
22286
|
+
403: ForbiddenError;
|
|
22287
|
+
/**
|
|
22288
|
+
* NotFoundError
|
|
22289
|
+
*/
|
|
22290
|
+
404: NotFoundError;
|
|
22291
|
+
/**
|
|
22292
|
+
* ConflictError
|
|
22293
|
+
*/
|
|
22294
|
+
409: ConflictError;
|
|
22295
|
+
/**
|
|
22296
|
+
* GoneError
|
|
22297
|
+
*/
|
|
22298
|
+
410: GoneError;
|
|
22299
|
+
/**
|
|
22300
|
+
* ContentTooLargeError
|
|
22301
|
+
*/
|
|
22302
|
+
413: ContentTooLargeError;
|
|
22303
|
+
/**
|
|
22304
|
+
* MisdirectedRequestError
|
|
22305
|
+
*/
|
|
22306
|
+
421: MisdirectedRequestError;
|
|
22307
|
+
/**
|
|
22308
|
+
* UnprocessableEntityError
|
|
22309
|
+
*/
|
|
22310
|
+
422: UnprocessableEntityError;
|
|
22311
|
+
/**
|
|
22312
|
+
* TooManyRequestsError
|
|
22313
|
+
*/
|
|
22314
|
+
429: TooManyRequestsError;
|
|
22315
|
+
/**
|
|
22316
|
+
* InternalServerError
|
|
22317
|
+
*/
|
|
22318
|
+
500: InternalServerError;
|
|
22319
|
+
/**
|
|
22320
|
+
* ServiceUnavailableError
|
|
22321
|
+
*/
|
|
22322
|
+
503: ServiceUnavailableError;
|
|
22323
|
+
};
|
|
22324
|
+
|
|
22325
|
+
export type RoutingProvidersDeleteRoutingModelError = RoutingProvidersDeleteRoutingModelErrors[keyof RoutingProvidersDeleteRoutingModelErrors];
|
|
22326
|
+
|
|
22327
|
+
export type RoutingProvidersDeleteRoutingModelResponses = {
|
|
22328
|
+
/**
|
|
22329
|
+
* Success
|
|
22330
|
+
*/
|
|
22331
|
+
200: {
|
|
22332
|
+
code: number;
|
|
22333
|
+
data: {
|
|
22334
|
+
deleted: boolean;
|
|
22335
|
+
publishWarning?: {
|
|
22336
|
+
errors: Array<{
|
|
22337
|
+
entity: string;
|
|
22338
|
+
message: string;
|
|
22339
|
+
rule?: string | null;
|
|
22340
|
+
}>;
|
|
22341
|
+
kind: 'validation';
|
|
22342
|
+
} | null;
|
|
22343
|
+
} | null;
|
|
22344
|
+
error: {
|
|
22345
|
+
code: string;
|
|
22346
|
+
details?: unknown | null;
|
|
22347
|
+
message: string;
|
|
22348
|
+
rowErrors?: Array<{
|
|
22349
|
+
code: string;
|
|
22350
|
+
message: string;
|
|
22351
|
+
path: Array<string | number>;
|
|
22352
|
+
}> | null;
|
|
22353
|
+
} | null;
|
|
22354
|
+
pagination: {
|
|
22355
|
+
limit: number;
|
|
22356
|
+
page: number;
|
|
22357
|
+
total: number;
|
|
22358
|
+
totalPages: number;
|
|
22359
|
+
} | null;
|
|
22360
|
+
sdkBehavior?: {
|
|
22361
|
+
flags: {
|
|
22362
|
+
[key: string]: unknown;
|
|
22363
|
+
};
|
|
22364
|
+
v: number;
|
|
22365
|
+
} | null;
|
|
22366
|
+
success: boolean;
|
|
22367
|
+
};
|
|
22368
|
+
};
|
|
22369
|
+
|
|
22370
|
+
export type RoutingProvidersDeleteRoutingModelResponse = RoutingProvidersDeleteRoutingModelResponses[keyof RoutingProvidersDeleteRoutingModelResponses];
|
|
22371
|
+
|
|
22372
|
+
export type RoutingProvidersUpdateRoutingModelData = {
|
|
22373
|
+
body: {
|
|
22374
|
+
description?: string | null;
|
|
22375
|
+
displayName?: string | null;
|
|
22376
|
+
modelType?: string | null;
|
|
22377
|
+
};
|
|
22378
|
+
path: {
|
|
22379
|
+
projectId: string;
|
|
22380
|
+
providerId: string;
|
|
22381
|
+
modelId: string;
|
|
22382
|
+
};
|
|
22383
|
+
query?: never;
|
|
22384
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/models/{modelId}';
|
|
22385
|
+
};
|
|
22386
|
+
|
|
22387
|
+
export type RoutingProvidersUpdateRoutingModelErrors = {
|
|
22388
|
+
/**
|
|
22389
|
+
* BadRequestError
|
|
22390
|
+
*/
|
|
22391
|
+
400: BadRequestError;
|
|
22392
|
+
/**
|
|
22393
|
+
* UnauthorizedError
|
|
22394
|
+
*/
|
|
22395
|
+
401: UnauthorizedError;
|
|
22396
|
+
/**
|
|
22397
|
+
* ForbiddenError
|
|
22398
|
+
*/
|
|
22399
|
+
403: ForbiddenError;
|
|
22400
|
+
/**
|
|
22401
|
+
* NotFoundError
|
|
22402
|
+
*/
|
|
22403
|
+
404: NotFoundError;
|
|
22404
|
+
/**
|
|
22405
|
+
* ConflictError
|
|
22406
|
+
*/
|
|
22407
|
+
409: ConflictError;
|
|
22408
|
+
/**
|
|
22409
|
+
* GoneError
|
|
22410
|
+
*/
|
|
22411
|
+
410: GoneError;
|
|
22412
|
+
/**
|
|
22413
|
+
* ContentTooLargeError
|
|
22414
|
+
*/
|
|
22415
|
+
413: ContentTooLargeError;
|
|
22416
|
+
/**
|
|
22417
|
+
* MisdirectedRequestError
|
|
22418
|
+
*/
|
|
22419
|
+
421: MisdirectedRequestError;
|
|
22420
|
+
/**
|
|
22421
|
+
* UnprocessableEntityError
|
|
22422
|
+
*/
|
|
22423
|
+
422: UnprocessableEntityError;
|
|
22424
|
+
/**
|
|
22425
|
+
* TooManyRequestsError
|
|
22426
|
+
*/
|
|
22427
|
+
429: TooManyRequestsError;
|
|
22428
|
+
/**
|
|
22429
|
+
* InternalServerError
|
|
22430
|
+
*/
|
|
22431
|
+
500: InternalServerError;
|
|
22432
|
+
/**
|
|
22433
|
+
* ServiceUnavailableError
|
|
22434
|
+
*/
|
|
22435
|
+
503: ServiceUnavailableError;
|
|
22436
|
+
};
|
|
22437
|
+
|
|
22438
|
+
export type RoutingProvidersUpdateRoutingModelError = RoutingProvidersUpdateRoutingModelErrors[keyof RoutingProvidersUpdateRoutingModelErrors];
|
|
22439
|
+
|
|
22440
|
+
export type RoutingProvidersUpdateRoutingModelResponses = {
|
|
22441
|
+
/**
|
|
22442
|
+
* Success
|
|
22443
|
+
*/
|
|
22444
|
+
200: {
|
|
22445
|
+
code: number;
|
|
22446
|
+
data: {
|
|
22447
|
+
catalogSlug?: string | null | null;
|
|
22448
|
+
createdAt: string;
|
|
22449
|
+
description: string | null;
|
|
22450
|
+
displayName: string | null;
|
|
22451
|
+
id: string;
|
|
22452
|
+
modelType: string | null;
|
|
22453
|
+
name: string;
|
|
22454
|
+
providerId: string;
|
|
22455
|
+
publishWarning?: {
|
|
22456
|
+
errors: Array<{
|
|
22457
|
+
entity: string;
|
|
22458
|
+
message: string;
|
|
22459
|
+
rule?: string | null;
|
|
22460
|
+
}>;
|
|
22461
|
+
kind: 'validation';
|
|
22462
|
+
} | null;
|
|
22463
|
+
updatedAt: string;
|
|
22464
|
+
} | null;
|
|
22465
|
+
error: {
|
|
22466
|
+
code: string;
|
|
22467
|
+
details?: unknown | null;
|
|
22468
|
+
message: string;
|
|
22469
|
+
rowErrors?: Array<{
|
|
22470
|
+
code: string;
|
|
22471
|
+
message: string;
|
|
22472
|
+
path: Array<string | number>;
|
|
22473
|
+
}> | null;
|
|
22474
|
+
} | null;
|
|
22475
|
+
pagination: {
|
|
22476
|
+
limit: number;
|
|
22477
|
+
page: number;
|
|
22478
|
+
total: number;
|
|
22479
|
+
totalPages: number;
|
|
22480
|
+
} | null;
|
|
22481
|
+
sdkBehavior?: {
|
|
22482
|
+
flags: {
|
|
22483
|
+
[key: string]: unknown;
|
|
22484
|
+
};
|
|
22485
|
+
v: number;
|
|
22486
|
+
} | null;
|
|
22487
|
+
success: boolean;
|
|
22488
|
+
};
|
|
22489
|
+
};
|
|
22490
|
+
|
|
22491
|
+
export type RoutingProvidersUpdateRoutingModelResponse = RoutingProvidersUpdateRoutingModelResponses[keyof RoutingProvidersUpdateRoutingModelResponses];
|
|
22492
|
+
|
|
22493
|
+
export type RoutingProvidersRestoreRoutingModelData = {
|
|
22494
|
+
body?: never;
|
|
22495
|
+
path: {
|
|
22496
|
+
projectId: string;
|
|
22497
|
+
providerId: string;
|
|
22498
|
+
modelId: string;
|
|
21737
22499
|
};
|
|
21738
22500
|
query?: never;
|
|
21739
22501
|
url: '/v1/projects/{projectId}/routing/providers/{providerId}/models/{modelId}/restore';
|
|
@@ -22026,6 +22788,7 @@ export type ProviderConfigVersionsListProviderConfigVersionsResponses = {
|
|
|
22026
22788
|
contentHash: string;
|
|
22027
22789
|
createdAt: string;
|
|
22028
22790
|
createdBy: string | null;
|
|
22791
|
+
id: string;
|
|
22029
22792
|
liveInEnvSlugs: Array<string>;
|
|
22030
22793
|
version: number;
|
|
22031
22794
|
}> | null;
|