@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
|
@@ -16681,6 +16681,117 @@ export type CredentialLifecycleRestoreCredentialResponses = {
|
|
|
16681
16681
|
};
|
|
16682
16682
|
};
|
|
16683
16683
|
export type CredentialLifecycleRestoreCredentialResponse = CredentialLifecycleRestoreCredentialResponses[keyof CredentialLifecycleRestoreCredentialResponses];
|
|
16684
|
+
export type CredentialRotateRotateCredentialData = {
|
|
16685
|
+
body: {
|
|
16686
|
+
disposition: 'keep' | 'archive' | 'delete';
|
|
16687
|
+
newCredentialId: string;
|
|
16688
|
+
reason: string;
|
|
16689
|
+
};
|
|
16690
|
+
path: {
|
|
16691
|
+
projectId: string;
|
|
16692
|
+
providerId: string;
|
|
16693
|
+
credentialId: string;
|
|
16694
|
+
};
|
|
16695
|
+
query?: never;
|
|
16696
|
+
url: '/v1/projects/{projectId}/providers/{providerId}/credentials/{credentialId}/rotate';
|
|
16697
|
+
};
|
|
16698
|
+
export type CredentialRotateRotateCredentialErrors = {
|
|
16699
|
+
/**
|
|
16700
|
+
* BadRequestError
|
|
16701
|
+
*/
|
|
16702
|
+
400: BadRequestError;
|
|
16703
|
+
/**
|
|
16704
|
+
* UnauthorizedError
|
|
16705
|
+
*/
|
|
16706
|
+
401: UnauthorizedError;
|
|
16707
|
+
/**
|
|
16708
|
+
* ForbiddenError
|
|
16709
|
+
*/
|
|
16710
|
+
403: ForbiddenError;
|
|
16711
|
+
/**
|
|
16712
|
+
* NotFoundError
|
|
16713
|
+
*/
|
|
16714
|
+
404: NotFoundError;
|
|
16715
|
+
/**
|
|
16716
|
+
* ConflictError
|
|
16717
|
+
*/
|
|
16718
|
+
409: ConflictError;
|
|
16719
|
+
/**
|
|
16720
|
+
* GoneError
|
|
16721
|
+
*/
|
|
16722
|
+
410: GoneError;
|
|
16723
|
+
/**
|
|
16724
|
+
* ContentTooLargeError
|
|
16725
|
+
*/
|
|
16726
|
+
413: ContentTooLargeError;
|
|
16727
|
+
/**
|
|
16728
|
+
* MisdirectedRequestError
|
|
16729
|
+
*/
|
|
16730
|
+
421: MisdirectedRequestError;
|
|
16731
|
+
/**
|
|
16732
|
+
* UnprocessableEntityError
|
|
16733
|
+
*/
|
|
16734
|
+
422: UnprocessableEntityError;
|
|
16735
|
+
/**
|
|
16736
|
+
* TooManyRequestsError
|
|
16737
|
+
*/
|
|
16738
|
+
429: TooManyRequestsError;
|
|
16739
|
+
/**
|
|
16740
|
+
* InternalServerError
|
|
16741
|
+
*/
|
|
16742
|
+
500: InternalServerError;
|
|
16743
|
+
/**
|
|
16744
|
+
* ServiceUnavailableError
|
|
16745
|
+
*/
|
|
16746
|
+
503: ServiceUnavailableError;
|
|
16747
|
+
};
|
|
16748
|
+
export type CredentialRotateRotateCredentialError = CredentialRotateRotateCredentialErrors[keyof CredentialRotateRotateCredentialErrors];
|
|
16749
|
+
export type CredentialRotateRotateCredentialResponses = {
|
|
16750
|
+
/**
|
|
16751
|
+
* Success
|
|
16752
|
+
*/
|
|
16753
|
+
200: {
|
|
16754
|
+
code: number;
|
|
16755
|
+
data: {
|
|
16756
|
+
disposition: 'keep' | 'archive' | 'delete' | 'skipped_due_to_failures' | 'skipped_due_to_test_failure' | 'skipped_due_to_pending_approval' | 'skipped_due_to_shared_credential';
|
|
16757
|
+
failedEnvs: Array<{
|
|
16758
|
+
environmentId: string;
|
|
16759
|
+
failureReason: string;
|
|
16760
|
+
}>;
|
|
16761
|
+
movedEnvs: Array<{
|
|
16762
|
+
environmentId: string;
|
|
16763
|
+
}>;
|
|
16764
|
+
pendingApprovalEnvs: Array<{
|
|
16765
|
+
environmentId: string;
|
|
16766
|
+
}>;
|
|
16767
|
+
testOutcome: 'passed' | 'deferred' | 'failed';
|
|
16768
|
+
} | null;
|
|
16769
|
+
error: {
|
|
16770
|
+
code: string;
|
|
16771
|
+
details?: unknown | null;
|
|
16772
|
+
message: string;
|
|
16773
|
+
rowErrors?: Array<{
|
|
16774
|
+
code: string;
|
|
16775
|
+
message: string;
|
|
16776
|
+
path: Array<string | number>;
|
|
16777
|
+
}> | null;
|
|
16778
|
+
} | null;
|
|
16779
|
+
pagination: {
|
|
16780
|
+
limit: number;
|
|
16781
|
+
page: number;
|
|
16782
|
+
total: number;
|
|
16783
|
+
totalPages: number;
|
|
16784
|
+
} | null;
|
|
16785
|
+
sdkBehavior?: {
|
|
16786
|
+
flags: {
|
|
16787
|
+
[key: string]: unknown;
|
|
16788
|
+
};
|
|
16789
|
+
v: number;
|
|
16790
|
+
} | null;
|
|
16791
|
+
success: boolean;
|
|
16792
|
+
};
|
|
16793
|
+
};
|
|
16794
|
+
export type CredentialRotateRotateCredentialResponse = CredentialRotateRotateCredentialResponses[keyof CredentialRotateRotateCredentialResponses];
|
|
16684
16795
|
export type ProviderDisconnectDisconnectProviderData = {
|
|
16685
16796
|
body: {
|
|
16686
16797
|
environmentIds: Array<string>;
|
|
@@ -17101,6 +17212,7 @@ export type ProviderEmergencyRotationEmergencyRotateProviderCredentialResponses
|
|
|
17101
17212
|
envSlug: string;
|
|
17102
17213
|
environmentId: string;
|
|
17103
17214
|
id: string;
|
|
17215
|
+
modelAllowlistCleared?: boolean | null;
|
|
17104
17216
|
providerId: string;
|
|
17105
17217
|
reason: string | null;
|
|
17106
17218
|
state: 'current' | 'pending';
|
|
@@ -17216,6 +17328,7 @@ export type ProviderRollbackRollbackProviderEnvActivationResponses = {
|
|
|
17216
17328
|
envSlug: string;
|
|
17217
17329
|
environmentId: string;
|
|
17218
17330
|
id: string;
|
|
17331
|
+
modelAllowlistCleared?: boolean | null;
|
|
17219
17332
|
providerId: string;
|
|
17220
17333
|
reason: string | null;
|
|
17221
17334
|
state: 'current' | 'pending';
|
|
@@ -20193,20 +20306,16 @@ export type RoutingProvidersTestRoutingCredentialResponses = {
|
|
|
20193
20306
|
};
|
|
20194
20307
|
};
|
|
20195
20308
|
export type RoutingProvidersTestRoutingCredentialResponse = RoutingProvidersTestRoutingCredentialResponses[keyof RoutingProvidersTestRoutingCredentialResponses];
|
|
20196
|
-
export type
|
|
20197
|
-
body
|
|
20198
|
-
reason?: string | null;
|
|
20199
|
-
version: number;
|
|
20200
|
-
};
|
|
20309
|
+
export type ProviderConfigDraftsDiscardProviderDraftData = {
|
|
20310
|
+
body?: never;
|
|
20201
20311
|
path: {
|
|
20202
20312
|
projectId: string;
|
|
20203
20313
|
providerId: string;
|
|
20204
|
-
envSlug: string;
|
|
20205
20314
|
};
|
|
20206
20315
|
query?: never;
|
|
20207
|
-
url: '/v1/projects/{projectId}/routing/providers/{providerId}/
|
|
20316
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/draft';
|
|
20208
20317
|
};
|
|
20209
|
-
export type
|
|
20318
|
+
export type ProviderConfigDraftsDiscardProviderDraftErrors = {
|
|
20210
20319
|
/**
|
|
20211
20320
|
* BadRequestError
|
|
20212
20321
|
*/
|
|
@@ -20256,31 +20365,15 @@ export type ProviderPromoteVersionPromoteProviderEnvVersionErrors = {
|
|
|
20256
20365
|
*/
|
|
20257
20366
|
503: ServiceUnavailableError;
|
|
20258
20367
|
};
|
|
20259
|
-
export type
|
|
20260
|
-
export type
|
|
20368
|
+
export type ProviderConfigDraftsDiscardProviderDraftError = ProviderConfigDraftsDiscardProviderDraftErrors[keyof ProviderConfigDraftsDiscardProviderDraftErrors];
|
|
20369
|
+
export type ProviderConfigDraftsDiscardProviderDraftResponses = {
|
|
20261
20370
|
/**
|
|
20262
20371
|
* Success
|
|
20263
20372
|
*/
|
|
20264
|
-
|
|
20373
|
+
200: {
|
|
20265
20374
|
code: number;
|
|
20266
20375
|
data: {
|
|
20267
|
-
|
|
20268
|
-
activeTo: string | null;
|
|
20269
|
-
actorId: string;
|
|
20270
|
-
actorType: string;
|
|
20271
|
-
approvalStatus: 'not_required' | 'pending' | 'approved' | 'rejected';
|
|
20272
|
-
changeType: string;
|
|
20273
|
-
configSnapshot: {
|
|
20274
|
-
[key: string]: unknown;
|
|
20275
|
-
};
|
|
20276
|
-
createdAt: string;
|
|
20277
|
-
credentialId: string;
|
|
20278
|
-
envSlug: string;
|
|
20279
|
-
environmentId: string;
|
|
20280
|
-
id: string;
|
|
20281
|
-
providerId: string;
|
|
20282
|
-
reason: string | null;
|
|
20283
|
-
state: 'current' | 'pending';
|
|
20376
|
+
discarded: true;
|
|
20284
20377
|
} | null;
|
|
20285
20378
|
error: {
|
|
20286
20379
|
code: string;
|
|
@@ -20307,20 +20400,17 @@ export type ProviderPromoteVersionPromoteProviderEnvVersionResponses = {
|
|
|
20307
20400
|
success: boolean;
|
|
20308
20401
|
};
|
|
20309
20402
|
};
|
|
20310
|
-
export type
|
|
20311
|
-
export type
|
|
20403
|
+
export type ProviderConfigDraftsDiscardProviderDraftResponse = ProviderConfigDraftsDiscardProviderDraftResponses[keyof ProviderConfigDraftsDiscardProviderDraftResponses];
|
|
20404
|
+
export type ProviderConfigDraftsGetProviderDraftData = {
|
|
20312
20405
|
body?: never;
|
|
20313
20406
|
path: {
|
|
20314
20407
|
projectId: string;
|
|
20315
20408
|
providerId: string;
|
|
20316
20409
|
};
|
|
20317
|
-
query?:
|
|
20318
|
-
|
|
20319
|
-
limit?: number | null;
|
|
20320
|
-
};
|
|
20321
|
-
url: '/v1/projects/{projectId}/routing/providers/{providerId}/models';
|
|
20410
|
+
query?: never;
|
|
20411
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/draft';
|
|
20322
20412
|
};
|
|
20323
|
-
export type
|
|
20413
|
+
export type ProviderConfigDraftsGetProviderDraftErrors = {
|
|
20324
20414
|
/**
|
|
20325
20415
|
* BadRequestError
|
|
20326
20416
|
*/
|
|
@@ -20370,24 +20460,23 @@ export type RoutingProvidersListRoutingModelsErrors = {
|
|
|
20370
20460
|
*/
|
|
20371
20461
|
503: ServiceUnavailableError;
|
|
20372
20462
|
};
|
|
20373
|
-
export type
|
|
20374
|
-
export type
|
|
20463
|
+
export type ProviderConfigDraftsGetProviderDraftError = ProviderConfigDraftsGetProviderDraftErrors[keyof ProviderConfigDraftsGetProviderDraftErrors];
|
|
20464
|
+
export type ProviderConfigDraftsGetProviderDraftResponses = {
|
|
20375
20465
|
/**
|
|
20376
20466
|
* Success
|
|
20377
20467
|
*/
|
|
20378
20468
|
200: {
|
|
20379
20469
|
code: number;
|
|
20380
|
-
data:
|
|
20381
|
-
|
|
20470
|
+
data: {
|
|
20471
|
+
configSnapshot: {
|
|
20472
|
+
[key: string]: unknown;
|
|
20473
|
+
};
|
|
20382
20474
|
createdAt: string;
|
|
20383
|
-
|
|
20384
|
-
|
|
20475
|
+
createdBy: string | null;
|
|
20476
|
+
fromVersionId: string;
|
|
20385
20477
|
id: string;
|
|
20386
|
-
modelType: string | null;
|
|
20387
|
-
name: string;
|
|
20388
20478
|
providerId: string;
|
|
20389
|
-
|
|
20390
|
-
}> | null;
|
|
20479
|
+
} | null | null;
|
|
20391
20480
|
error: {
|
|
20392
20481
|
code: string;
|
|
20393
20482
|
details?: unknown | null;
|
|
@@ -20413,23 +20502,17 @@ export type RoutingProvidersListRoutingModelsResponses = {
|
|
|
20413
20502
|
success: boolean;
|
|
20414
20503
|
};
|
|
20415
20504
|
};
|
|
20416
|
-
export type
|
|
20417
|
-
export type
|
|
20418
|
-
body
|
|
20419
|
-
catalogSlug?: string | null;
|
|
20420
|
-
description?: string | null;
|
|
20421
|
-
displayName?: string | null;
|
|
20422
|
-
modelType?: string | null;
|
|
20423
|
-
name: string;
|
|
20424
|
-
};
|
|
20505
|
+
export type ProviderConfigDraftsGetProviderDraftResponse = ProviderConfigDraftsGetProviderDraftResponses[keyof ProviderConfigDraftsGetProviderDraftResponses];
|
|
20506
|
+
export type ProviderConfigDraftsEnsureProviderDraftData = {
|
|
20507
|
+
body?: never;
|
|
20425
20508
|
path: {
|
|
20426
20509
|
projectId: string;
|
|
20427
20510
|
providerId: string;
|
|
20428
20511
|
};
|
|
20429
20512
|
query?: never;
|
|
20430
|
-
url: '/v1/projects/{projectId}/routing/providers/{providerId}/
|
|
20513
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/draft';
|
|
20431
20514
|
};
|
|
20432
|
-
export type
|
|
20515
|
+
export type ProviderConfigDraftsEnsureProviderDraftErrors = {
|
|
20433
20516
|
/**
|
|
20434
20517
|
* BadRequestError
|
|
20435
20518
|
*/
|
|
@@ -20479,31 +20562,22 @@ export type RoutingProvidersCreateRoutingModelErrors = {
|
|
|
20479
20562
|
*/
|
|
20480
20563
|
503: ServiceUnavailableError;
|
|
20481
20564
|
};
|
|
20482
|
-
export type
|
|
20483
|
-
export type
|
|
20565
|
+
export type ProviderConfigDraftsEnsureProviderDraftError = ProviderConfigDraftsEnsureProviderDraftErrors[keyof ProviderConfigDraftsEnsureProviderDraftErrors];
|
|
20566
|
+
export type ProviderConfigDraftsEnsureProviderDraftResponses = {
|
|
20484
20567
|
/**
|
|
20485
20568
|
* Success
|
|
20486
20569
|
*/
|
|
20487
|
-
|
|
20570
|
+
200: {
|
|
20488
20571
|
code: number;
|
|
20489
20572
|
data: {
|
|
20490
|
-
|
|
20573
|
+
configSnapshot: {
|
|
20574
|
+
[key: string]: unknown;
|
|
20575
|
+
};
|
|
20491
20576
|
createdAt: string;
|
|
20492
|
-
|
|
20493
|
-
|
|
20577
|
+
createdBy: string | null;
|
|
20578
|
+
fromVersionId: string;
|
|
20494
20579
|
id: string;
|
|
20495
|
-
modelType: string | null;
|
|
20496
|
-
name: string;
|
|
20497
20580
|
providerId: string;
|
|
20498
|
-
publishWarning?: {
|
|
20499
|
-
errors: Array<{
|
|
20500
|
-
entity: string;
|
|
20501
|
-
message: string;
|
|
20502
|
-
rule?: string | null;
|
|
20503
|
-
}>;
|
|
20504
|
-
kind: 'validation';
|
|
20505
|
-
} | null;
|
|
20506
|
-
updatedAt: string;
|
|
20507
20581
|
} | null;
|
|
20508
20582
|
error: {
|
|
20509
20583
|
code: string;
|
|
@@ -20530,18 +20604,23 @@ export type RoutingProvidersCreateRoutingModelResponses = {
|
|
|
20530
20604
|
success: boolean;
|
|
20531
20605
|
};
|
|
20532
20606
|
};
|
|
20533
|
-
export type
|
|
20534
|
-
export type
|
|
20535
|
-
body
|
|
20607
|
+
export type ProviderConfigDraftsEnsureProviderDraftResponse = ProviderConfigDraftsEnsureProviderDraftResponses[keyof ProviderConfigDraftsEnsureProviderDraftResponses];
|
|
20608
|
+
export type ProviderConfigDraftsCommitProviderDraftData = {
|
|
20609
|
+
body: {
|
|
20610
|
+
environments: Array<{
|
|
20611
|
+
envSlug: string;
|
|
20612
|
+
environmentId: string;
|
|
20613
|
+
}>;
|
|
20614
|
+
reason?: string | null;
|
|
20615
|
+
};
|
|
20536
20616
|
path: {
|
|
20537
20617
|
projectId: string;
|
|
20538
20618
|
providerId: string;
|
|
20539
|
-
modelId: string;
|
|
20540
20619
|
};
|
|
20541
20620
|
query?: never;
|
|
20542
|
-
url: '/v1/projects/{projectId}/routing/providers/{providerId}/
|
|
20621
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/draft/commit';
|
|
20543
20622
|
};
|
|
20544
|
-
export type
|
|
20623
|
+
export type ProviderConfigDraftsCommitProviderDraftErrors = {
|
|
20545
20624
|
/**
|
|
20546
20625
|
* BadRequestError
|
|
20547
20626
|
*/
|
|
@@ -20591,23 +20670,22 @@ export type RoutingProvidersDeleteRoutingModelErrors = {
|
|
|
20591
20670
|
*/
|
|
20592
20671
|
503: ServiceUnavailableError;
|
|
20593
20672
|
};
|
|
20594
|
-
export type
|
|
20595
|
-
export type
|
|
20673
|
+
export type ProviderConfigDraftsCommitProviderDraftError = ProviderConfigDraftsCommitProviderDraftErrors[keyof ProviderConfigDraftsCommitProviderDraftErrors];
|
|
20674
|
+
export type ProviderConfigDraftsCommitProviderDraftResponses = {
|
|
20596
20675
|
/**
|
|
20597
20676
|
* Success
|
|
20598
20677
|
*/
|
|
20599
|
-
|
|
20678
|
+
201: {
|
|
20600
20679
|
code: number;
|
|
20601
20680
|
data: {
|
|
20602
|
-
|
|
20603
|
-
|
|
20604
|
-
|
|
20605
|
-
|
|
20606
|
-
|
|
20607
|
-
|
|
20608
|
-
|
|
20609
|
-
|
|
20610
|
-
} | null;
|
|
20681
|
+
deployResults: Array<{
|
|
20682
|
+
envSlug: string;
|
|
20683
|
+
environmentId: string;
|
|
20684
|
+
errorTag?: string | null;
|
|
20685
|
+
outcome: 'deployed' | 'pending' | 'failed';
|
|
20686
|
+
}>;
|
|
20687
|
+
version: number;
|
|
20688
|
+
versionId: string;
|
|
20611
20689
|
} | null;
|
|
20612
20690
|
error: {
|
|
20613
20691
|
code: string;
|
|
@@ -20634,22 +20712,20 @@ export type RoutingProvidersDeleteRoutingModelResponses = {
|
|
|
20634
20712
|
success: boolean;
|
|
20635
20713
|
};
|
|
20636
20714
|
};
|
|
20637
|
-
export type
|
|
20638
|
-
export type
|
|
20715
|
+
export type ProviderConfigDraftsCommitProviderDraftResponse = ProviderConfigDraftsCommitProviderDraftResponses[keyof ProviderConfigDraftsCommitProviderDraftResponses];
|
|
20716
|
+
export type ProviderConfigDraftsRestoreProviderVersionData = {
|
|
20639
20717
|
body: {
|
|
20640
|
-
|
|
20641
|
-
|
|
20642
|
-
modelType?: string | null;
|
|
20718
|
+
confirmDiscard?: boolean | null;
|
|
20719
|
+
version: number;
|
|
20643
20720
|
};
|
|
20644
20721
|
path: {
|
|
20645
20722
|
projectId: string;
|
|
20646
20723
|
providerId: string;
|
|
20647
|
-
modelId: string;
|
|
20648
20724
|
};
|
|
20649
20725
|
query?: never;
|
|
20650
|
-
url: '/v1/projects/{projectId}/routing/providers/{providerId}/
|
|
20726
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/draft/restore';
|
|
20651
20727
|
};
|
|
20652
|
-
export type
|
|
20728
|
+
export type ProviderConfigDraftsRestoreProviderVersionErrors = {
|
|
20653
20729
|
/**
|
|
20654
20730
|
* BadRequestError
|
|
20655
20731
|
*/
|
|
@@ -20699,31 +20775,22 @@ export type RoutingProvidersUpdateRoutingModelErrors = {
|
|
|
20699
20775
|
*/
|
|
20700
20776
|
503: ServiceUnavailableError;
|
|
20701
20777
|
};
|
|
20702
|
-
export type
|
|
20703
|
-
export type
|
|
20778
|
+
export type ProviderConfigDraftsRestoreProviderVersionError = ProviderConfigDraftsRestoreProviderVersionErrors[keyof ProviderConfigDraftsRestoreProviderVersionErrors];
|
|
20779
|
+
export type ProviderConfigDraftsRestoreProviderVersionResponses = {
|
|
20704
20780
|
/**
|
|
20705
20781
|
* Success
|
|
20706
20782
|
*/
|
|
20707
20783
|
200: {
|
|
20708
20784
|
code: number;
|
|
20709
20785
|
data: {
|
|
20710
|
-
|
|
20786
|
+
configSnapshot: {
|
|
20787
|
+
[key: string]: unknown;
|
|
20788
|
+
};
|
|
20711
20789
|
createdAt: string;
|
|
20712
|
-
|
|
20713
|
-
|
|
20790
|
+
createdBy: string | null;
|
|
20791
|
+
fromVersionId: string;
|
|
20714
20792
|
id: string;
|
|
20715
|
-
modelType: string | null;
|
|
20716
|
-
name: string;
|
|
20717
20793
|
providerId: string;
|
|
20718
|
-
publishWarning?: {
|
|
20719
|
-
errors: Array<{
|
|
20720
|
-
entity: string;
|
|
20721
|
-
message: string;
|
|
20722
|
-
rule?: string | null;
|
|
20723
|
-
}>;
|
|
20724
|
-
kind: 'validation';
|
|
20725
|
-
} | null;
|
|
20726
|
-
updatedAt: string;
|
|
20727
20794
|
} | null;
|
|
20728
20795
|
error: {
|
|
20729
20796
|
code: string;
|
|
@@ -20750,16 +20817,676 @@ export type RoutingProvidersUpdateRoutingModelResponses = {
|
|
|
20750
20817
|
success: boolean;
|
|
20751
20818
|
};
|
|
20752
20819
|
};
|
|
20753
|
-
export type
|
|
20754
|
-
export type
|
|
20755
|
-
body
|
|
20820
|
+
export type ProviderConfigDraftsRestoreProviderVersionResponse = ProviderConfigDraftsRestoreProviderVersionResponses[keyof ProviderConfigDraftsRestoreProviderVersionResponses];
|
|
20821
|
+
export type ProviderPromoteVersionPromoteProviderEnvVersionData = {
|
|
20822
|
+
body: {
|
|
20823
|
+
reason?: string | null;
|
|
20824
|
+
version: number;
|
|
20825
|
+
};
|
|
20756
20826
|
path: {
|
|
20757
20827
|
projectId: string;
|
|
20758
20828
|
providerId: string;
|
|
20759
|
-
|
|
20829
|
+
envSlug: string;
|
|
20760
20830
|
};
|
|
20761
20831
|
query?: never;
|
|
20762
|
-
url: '/v1/projects/{projectId}/routing/providers/{providerId}/
|
|
20832
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/environments/{envSlug}/promote';
|
|
20833
|
+
};
|
|
20834
|
+
export type ProviderPromoteVersionPromoteProviderEnvVersionErrors = {
|
|
20835
|
+
/**
|
|
20836
|
+
* BadRequestError
|
|
20837
|
+
*/
|
|
20838
|
+
400: BadRequestError;
|
|
20839
|
+
/**
|
|
20840
|
+
* UnauthorizedError
|
|
20841
|
+
*/
|
|
20842
|
+
401: UnauthorizedError;
|
|
20843
|
+
/**
|
|
20844
|
+
* ForbiddenError
|
|
20845
|
+
*/
|
|
20846
|
+
403: ForbiddenError;
|
|
20847
|
+
/**
|
|
20848
|
+
* NotFoundError
|
|
20849
|
+
*/
|
|
20850
|
+
404: NotFoundError;
|
|
20851
|
+
/**
|
|
20852
|
+
* ConflictError
|
|
20853
|
+
*/
|
|
20854
|
+
409: ConflictError;
|
|
20855
|
+
/**
|
|
20856
|
+
* GoneError
|
|
20857
|
+
*/
|
|
20858
|
+
410: GoneError;
|
|
20859
|
+
/**
|
|
20860
|
+
* ContentTooLargeError
|
|
20861
|
+
*/
|
|
20862
|
+
413: ContentTooLargeError;
|
|
20863
|
+
/**
|
|
20864
|
+
* MisdirectedRequestError
|
|
20865
|
+
*/
|
|
20866
|
+
421: MisdirectedRequestError;
|
|
20867
|
+
/**
|
|
20868
|
+
* UnprocessableEntityError
|
|
20869
|
+
*/
|
|
20870
|
+
422: UnprocessableEntityError;
|
|
20871
|
+
/**
|
|
20872
|
+
* TooManyRequestsError
|
|
20873
|
+
*/
|
|
20874
|
+
429: TooManyRequestsError;
|
|
20875
|
+
/**
|
|
20876
|
+
* InternalServerError
|
|
20877
|
+
*/
|
|
20878
|
+
500: InternalServerError;
|
|
20879
|
+
/**
|
|
20880
|
+
* ServiceUnavailableError
|
|
20881
|
+
*/
|
|
20882
|
+
503: ServiceUnavailableError;
|
|
20883
|
+
};
|
|
20884
|
+
export type ProviderPromoteVersionPromoteProviderEnvVersionError = ProviderPromoteVersionPromoteProviderEnvVersionErrors[keyof ProviderPromoteVersionPromoteProviderEnvVersionErrors];
|
|
20885
|
+
export type ProviderPromoteVersionPromoteProviderEnvVersionResponses = {
|
|
20886
|
+
/**
|
|
20887
|
+
* Success
|
|
20888
|
+
*/
|
|
20889
|
+
201: {
|
|
20890
|
+
code: number;
|
|
20891
|
+
data: {
|
|
20892
|
+
activeFrom: string;
|
|
20893
|
+
activeTo: string | null;
|
|
20894
|
+
actorId: string;
|
|
20895
|
+
actorType: string;
|
|
20896
|
+
approvalStatus: 'not_required' | 'pending' | 'approved' | 'rejected';
|
|
20897
|
+
changeType: string;
|
|
20898
|
+
configSnapshot: {
|
|
20899
|
+
[key: string]: unknown;
|
|
20900
|
+
};
|
|
20901
|
+
createdAt: string;
|
|
20902
|
+
credentialId: string;
|
|
20903
|
+
envSlug: string;
|
|
20904
|
+
environmentId: string;
|
|
20905
|
+
id: string;
|
|
20906
|
+
modelAllowlistCleared?: boolean | null;
|
|
20907
|
+
providerId: string;
|
|
20908
|
+
reason: string | null;
|
|
20909
|
+
state: 'current' | 'pending';
|
|
20910
|
+
} | null;
|
|
20911
|
+
error: {
|
|
20912
|
+
code: string;
|
|
20913
|
+
details?: unknown | null;
|
|
20914
|
+
message: string;
|
|
20915
|
+
rowErrors?: Array<{
|
|
20916
|
+
code: string;
|
|
20917
|
+
message: string;
|
|
20918
|
+
path: Array<string | number>;
|
|
20919
|
+
}> | null;
|
|
20920
|
+
} | null;
|
|
20921
|
+
pagination: {
|
|
20922
|
+
limit: number;
|
|
20923
|
+
page: number;
|
|
20924
|
+
total: number;
|
|
20925
|
+
totalPages: number;
|
|
20926
|
+
} | null;
|
|
20927
|
+
sdkBehavior?: {
|
|
20928
|
+
flags: {
|
|
20929
|
+
[key: string]: unknown;
|
|
20930
|
+
};
|
|
20931
|
+
v: number;
|
|
20932
|
+
} | null;
|
|
20933
|
+
success: boolean;
|
|
20934
|
+
};
|
|
20935
|
+
};
|
|
20936
|
+
export type ProviderPromoteVersionPromoteProviderEnvVersionResponse = ProviderPromoteVersionPromoteProviderEnvVersionResponses[keyof ProviderPromoteVersionPromoteProviderEnvVersionResponses];
|
|
20937
|
+
export type ProviderModelUsageGetProviderModelUsageData = {
|
|
20938
|
+
body?: never;
|
|
20939
|
+
path: {
|
|
20940
|
+
projectId: string;
|
|
20941
|
+
providerId: string;
|
|
20942
|
+
};
|
|
20943
|
+
query?: never;
|
|
20944
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/model-usage';
|
|
20945
|
+
};
|
|
20946
|
+
export type ProviderModelUsageGetProviderModelUsageErrors = {
|
|
20947
|
+
/**
|
|
20948
|
+
* BadRequestError
|
|
20949
|
+
*/
|
|
20950
|
+
400: BadRequestError;
|
|
20951
|
+
/**
|
|
20952
|
+
* UnauthorizedError
|
|
20953
|
+
*/
|
|
20954
|
+
401: UnauthorizedError;
|
|
20955
|
+
/**
|
|
20956
|
+
* ForbiddenError
|
|
20957
|
+
*/
|
|
20958
|
+
403: ForbiddenError;
|
|
20959
|
+
/**
|
|
20960
|
+
* NotFoundError
|
|
20961
|
+
*/
|
|
20962
|
+
404: NotFoundError;
|
|
20963
|
+
/**
|
|
20964
|
+
* ConflictError
|
|
20965
|
+
*/
|
|
20966
|
+
409: ConflictError;
|
|
20967
|
+
/**
|
|
20968
|
+
* GoneError
|
|
20969
|
+
*/
|
|
20970
|
+
410: GoneError;
|
|
20971
|
+
/**
|
|
20972
|
+
* ContentTooLargeError
|
|
20973
|
+
*/
|
|
20974
|
+
413: ContentTooLargeError;
|
|
20975
|
+
/**
|
|
20976
|
+
* MisdirectedRequestError
|
|
20977
|
+
*/
|
|
20978
|
+
421: MisdirectedRequestError;
|
|
20979
|
+
/**
|
|
20980
|
+
* UnprocessableEntityError
|
|
20981
|
+
*/
|
|
20982
|
+
422: UnprocessableEntityError;
|
|
20983
|
+
/**
|
|
20984
|
+
* TooManyRequestsError
|
|
20985
|
+
*/
|
|
20986
|
+
429: TooManyRequestsError;
|
|
20987
|
+
/**
|
|
20988
|
+
* InternalServerError
|
|
20989
|
+
*/
|
|
20990
|
+
500: InternalServerError;
|
|
20991
|
+
/**
|
|
20992
|
+
* ServiceUnavailableError
|
|
20993
|
+
*/
|
|
20994
|
+
503: ServiceUnavailableError;
|
|
20995
|
+
};
|
|
20996
|
+
export type ProviderModelUsageGetProviderModelUsageError = ProviderModelUsageGetProviderModelUsageErrors[keyof ProviderModelUsageGetProviderModelUsageErrors];
|
|
20997
|
+
export type ProviderModelUsageGetProviderModelUsageResponses = {
|
|
20998
|
+
/**
|
|
20999
|
+
* Success
|
|
21000
|
+
*/
|
|
21001
|
+
200: {
|
|
21002
|
+
code: number;
|
|
21003
|
+
data: Array<{
|
|
21004
|
+
day: string;
|
|
21005
|
+
errorCount: number;
|
|
21006
|
+
model: string;
|
|
21007
|
+
p50TtftMs: number | null;
|
|
21008
|
+
requests: number;
|
|
21009
|
+
spendUsd: number | null;
|
|
21010
|
+
totalTokens: number;
|
|
21011
|
+
}> | null;
|
|
21012
|
+
error: {
|
|
21013
|
+
code: string;
|
|
21014
|
+
details?: unknown | null;
|
|
21015
|
+
message: string;
|
|
21016
|
+
rowErrors?: Array<{
|
|
21017
|
+
code: string;
|
|
21018
|
+
message: string;
|
|
21019
|
+
path: Array<string | number>;
|
|
21020
|
+
}> | null;
|
|
21021
|
+
} | null;
|
|
21022
|
+
pagination: {
|
|
21023
|
+
limit: number;
|
|
21024
|
+
page: number;
|
|
21025
|
+
total: number;
|
|
21026
|
+
totalPages: number;
|
|
21027
|
+
} | null;
|
|
21028
|
+
sdkBehavior?: {
|
|
21029
|
+
flags: {
|
|
21030
|
+
[key: string]: unknown;
|
|
21031
|
+
};
|
|
21032
|
+
v: number;
|
|
21033
|
+
} | null;
|
|
21034
|
+
success: boolean;
|
|
21035
|
+
};
|
|
21036
|
+
};
|
|
21037
|
+
export type ProviderModelUsageGetProviderModelUsageResponse = ProviderModelUsageGetProviderModelUsageResponses[keyof ProviderModelUsageGetProviderModelUsageResponses];
|
|
21038
|
+
export type RoutingProvidersListRoutingModelsData = {
|
|
21039
|
+
body?: never;
|
|
21040
|
+
path: {
|
|
21041
|
+
projectId: string;
|
|
21042
|
+
providerId: string;
|
|
21043
|
+
};
|
|
21044
|
+
query?: {
|
|
21045
|
+
page?: number | null;
|
|
21046
|
+
limit?: number | null;
|
|
21047
|
+
};
|
|
21048
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/models';
|
|
21049
|
+
};
|
|
21050
|
+
export type RoutingProvidersListRoutingModelsErrors = {
|
|
21051
|
+
/**
|
|
21052
|
+
* BadRequestError
|
|
21053
|
+
*/
|
|
21054
|
+
400: BadRequestError;
|
|
21055
|
+
/**
|
|
21056
|
+
* UnauthorizedError
|
|
21057
|
+
*/
|
|
21058
|
+
401: UnauthorizedError;
|
|
21059
|
+
/**
|
|
21060
|
+
* ForbiddenError
|
|
21061
|
+
*/
|
|
21062
|
+
403: ForbiddenError;
|
|
21063
|
+
/**
|
|
21064
|
+
* NotFoundError
|
|
21065
|
+
*/
|
|
21066
|
+
404: NotFoundError;
|
|
21067
|
+
/**
|
|
21068
|
+
* ConflictError
|
|
21069
|
+
*/
|
|
21070
|
+
409: ConflictError;
|
|
21071
|
+
/**
|
|
21072
|
+
* GoneError
|
|
21073
|
+
*/
|
|
21074
|
+
410: GoneError;
|
|
21075
|
+
/**
|
|
21076
|
+
* ContentTooLargeError
|
|
21077
|
+
*/
|
|
21078
|
+
413: ContentTooLargeError;
|
|
21079
|
+
/**
|
|
21080
|
+
* MisdirectedRequestError
|
|
21081
|
+
*/
|
|
21082
|
+
421: MisdirectedRequestError;
|
|
21083
|
+
/**
|
|
21084
|
+
* UnprocessableEntityError
|
|
21085
|
+
*/
|
|
21086
|
+
422: UnprocessableEntityError;
|
|
21087
|
+
/**
|
|
21088
|
+
* TooManyRequestsError
|
|
21089
|
+
*/
|
|
21090
|
+
429: TooManyRequestsError;
|
|
21091
|
+
/**
|
|
21092
|
+
* InternalServerError
|
|
21093
|
+
*/
|
|
21094
|
+
500: InternalServerError;
|
|
21095
|
+
/**
|
|
21096
|
+
* ServiceUnavailableError
|
|
21097
|
+
*/
|
|
21098
|
+
503: ServiceUnavailableError;
|
|
21099
|
+
};
|
|
21100
|
+
export type RoutingProvidersListRoutingModelsError = RoutingProvidersListRoutingModelsErrors[keyof RoutingProvidersListRoutingModelsErrors];
|
|
21101
|
+
export type RoutingProvidersListRoutingModelsResponses = {
|
|
21102
|
+
/**
|
|
21103
|
+
* Success
|
|
21104
|
+
*/
|
|
21105
|
+
200: {
|
|
21106
|
+
code: number;
|
|
21107
|
+
data: Array<{
|
|
21108
|
+
catalogSlug?: string | null | null;
|
|
21109
|
+
createdAt: string;
|
|
21110
|
+
description: string | null;
|
|
21111
|
+
displayName: string | null;
|
|
21112
|
+
id: string;
|
|
21113
|
+
modelType: string | null;
|
|
21114
|
+
name: string;
|
|
21115
|
+
providerId: string;
|
|
21116
|
+
updatedAt: string;
|
|
21117
|
+
}> | null;
|
|
21118
|
+
error: {
|
|
21119
|
+
code: string;
|
|
21120
|
+
details?: unknown | null;
|
|
21121
|
+
message: string;
|
|
21122
|
+
rowErrors?: Array<{
|
|
21123
|
+
code: string;
|
|
21124
|
+
message: string;
|
|
21125
|
+
path: Array<string | number>;
|
|
21126
|
+
}> | null;
|
|
21127
|
+
} | null;
|
|
21128
|
+
pagination: {
|
|
21129
|
+
limit: number;
|
|
21130
|
+
page: number;
|
|
21131
|
+
total: number;
|
|
21132
|
+
totalPages: number;
|
|
21133
|
+
} | null;
|
|
21134
|
+
sdkBehavior?: {
|
|
21135
|
+
flags: {
|
|
21136
|
+
[key: string]: unknown;
|
|
21137
|
+
};
|
|
21138
|
+
v: number;
|
|
21139
|
+
} | null;
|
|
21140
|
+
success: boolean;
|
|
21141
|
+
};
|
|
21142
|
+
};
|
|
21143
|
+
export type RoutingProvidersListRoutingModelsResponse = RoutingProvidersListRoutingModelsResponses[keyof RoutingProvidersListRoutingModelsResponses];
|
|
21144
|
+
export type RoutingProvidersCreateRoutingModelData = {
|
|
21145
|
+
body: {
|
|
21146
|
+
catalogSlug?: string | null;
|
|
21147
|
+
description?: string | null;
|
|
21148
|
+
displayName?: string | null;
|
|
21149
|
+
modelType?: string | null;
|
|
21150
|
+
name: string;
|
|
21151
|
+
};
|
|
21152
|
+
path: {
|
|
21153
|
+
projectId: string;
|
|
21154
|
+
providerId: string;
|
|
21155
|
+
};
|
|
21156
|
+
query?: never;
|
|
21157
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/models';
|
|
21158
|
+
};
|
|
21159
|
+
export type RoutingProvidersCreateRoutingModelErrors = {
|
|
21160
|
+
/**
|
|
21161
|
+
* BadRequestError
|
|
21162
|
+
*/
|
|
21163
|
+
400: BadRequestError;
|
|
21164
|
+
/**
|
|
21165
|
+
* UnauthorizedError
|
|
21166
|
+
*/
|
|
21167
|
+
401: UnauthorizedError;
|
|
21168
|
+
/**
|
|
21169
|
+
* ForbiddenError
|
|
21170
|
+
*/
|
|
21171
|
+
403: ForbiddenError;
|
|
21172
|
+
/**
|
|
21173
|
+
* NotFoundError
|
|
21174
|
+
*/
|
|
21175
|
+
404: NotFoundError;
|
|
21176
|
+
/**
|
|
21177
|
+
* ConflictError
|
|
21178
|
+
*/
|
|
21179
|
+
409: ConflictError;
|
|
21180
|
+
/**
|
|
21181
|
+
* GoneError
|
|
21182
|
+
*/
|
|
21183
|
+
410: GoneError;
|
|
21184
|
+
/**
|
|
21185
|
+
* ContentTooLargeError
|
|
21186
|
+
*/
|
|
21187
|
+
413: ContentTooLargeError;
|
|
21188
|
+
/**
|
|
21189
|
+
* MisdirectedRequestError
|
|
21190
|
+
*/
|
|
21191
|
+
421: MisdirectedRequestError;
|
|
21192
|
+
/**
|
|
21193
|
+
* UnprocessableEntityError
|
|
21194
|
+
*/
|
|
21195
|
+
422: UnprocessableEntityError;
|
|
21196
|
+
/**
|
|
21197
|
+
* TooManyRequestsError
|
|
21198
|
+
*/
|
|
21199
|
+
429: TooManyRequestsError;
|
|
21200
|
+
/**
|
|
21201
|
+
* InternalServerError
|
|
21202
|
+
*/
|
|
21203
|
+
500: InternalServerError;
|
|
21204
|
+
/**
|
|
21205
|
+
* ServiceUnavailableError
|
|
21206
|
+
*/
|
|
21207
|
+
503: ServiceUnavailableError;
|
|
21208
|
+
};
|
|
21209
|
+
export type RoutingProvidersCreateRoutingModelError = RoutingProvidersCreateRoutingModelErrors[keyof RoutingProvidersCreateRoutingModelErrors];
|
|
21210
|
+
export type RoutingProvidersCreateRoutingModelResponses = {
|
|
21211
|
+
/**
|
|
21212
|
+
* Success
|
|
21213
|
+
*/
|
|
21214
|
+
201: {
|
|
21215
|
+
code: number;
|
|
21216
|
+
data: {
|
|
21217
|
+
catalogSlug?: string | null | null;
|
|
21218
|
+
createdAt: string;
|
|
21219
|
+
description: string | null;
|
|
21220
|
+
displayName: string | null;
|
|
21221
|
+
id: string;
|
|
21222
|
+
modelType: string | null;
|
|
21223
|
+
name: string;
|
|
21224
|
+
providerId: string;
|
|
21225
|
+
publishWarning?: {
|
|
21226
|
+
errors: Array<{
|
|
21227
|
+
entity: string;
|
|
21228
|
+
message: string;
|
|
21229
|
+
rule?: string | null;
|
|
21230
|
+
}>;
|
|
21231
|
+
kind: 'validation';
|
|
21232
|
+
} | null;
|
|
21233
|
+
updatedAt: string;
|
|
21234
|
+
} | null;
|
|
21235
|
+
error: {
|
|
21236
|
+
code: string;
|
|
21237
|
+
details?: unknown | null;
|
|
21238
|
+
message: string;
|
|
21239
|
+
rowErrors?: Array<{
|
|
21240
|
+
code: string;
|
|
21241
|
+
message: string;
|
|
21242
|
+
path: Array<string | number>;
|
|
21243
|
+
}> | null;
|
|
21244
|
+
} | null;
|
|
21245
|
+
pagination: {
|
|
21246
|
+
limit: number;
|
|
21247
|
+
page: number;
|
|
21248
|
+
total: number;
|
|
21249
|
+
totalPages: number;
|
|
21250
|
+
} | null;
|
|
21251
|
+
sdkBehavior?: {
|
|
21252
|
+
flags: {
|
|
21253
|
+
[key: string]: unknown;
|
|
21254
|
+
};
|
|
21255
|
+
v: number;
|
|
21256
|
+
} | null;
|
|
21257
|
+
success: boolean;
|
|
21258
|
+
};
|
|
21259
|
+
};
|
|
21260
|
+
export type RoutingProvidersCreateRoutingModelResponse = RoutingProvidersCreateRoutingModelResponses[keyof RoutingProvidersCreateRoutingModelResponses];
|
|
21261
|
+
export type RoutingProvidersDeleteRoutingModelData = {
|
|
21262
|
+
body?: never;
|
|
21263
|
+
path: {
|
|
21264
|
+
projectId: string;
|
|
21265
|
+
providerId: string;
|
|
21266
|
+
modelId: string;
|
|
21267
|
+
};
|
|
21268
|
+
query?: never;
|
|
21269
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/models/{modelId}';
|
|
21270
|
+
};
|
|
21271
|
+
export type RoutingProvidersDeleteRoutingModelErrors = {
|
|
21272
|
+
/**
|
|
21273
|
+
* BadRequestError
|
|
21274
|
+
*/
|
|
21275
|
+
400: BadRequestError;
|
|
21276
|
+
/**
|
|
21277
|
+
* UnauthorizedError
|
|
21278
|
+
*/
|
|
21279
|
+
401: UnauthorizedError;
|
|
21280
|
+
/**
|
|
21281
|
+
* ForbiddenError
|
|
21282
|
+
*/
|
|
21283
|
+
403: ForbiddenError;
|
|
21284
|
+
/**
|
|
21285
|
+
* NotFoundError
|
|
21286
|
+
*/
|
|
21287
|
+
404: NotFoundError;
|
|
21288
|
+
/**
|
|
21289
|
+
* ConflictError
|
|
21290
|
+
*/
|
|
21291
|
+
409: ConflictError;
|
|
21292
|
+
/**
|
|
21293
|
+
* GoneError
|
|
21294
|
+
*/
|
|
21295
|
+
410: GoneError;
|
|
21296
|
+
/**
|
|
21297
|
+
* ContentTooLargeError
|
|
21298
|
+
*/
|
|
21299
|
+
413: ContentTooLargeError;
|
|
21300
|
+
/**
|
|
21301
|
+
* MisdirectedRequestError
|
|
21302
|
+
*/
|
|
21303
|
+
421: MisdirectedRequestError;
|
|
21304
|
+
/**
|
|
21305
|
+
* UnprocessableEntityError
|
|
21306
|
+
*/
|
|
21307
|
+
422: UnprocessableEntityError;
|
|
21308
|
+
/**
|
|
21309
|
+
* TooManyRequestsError
|
|
21310
|
+
*/
|
|
21311
|
+
429: TooManyRequestsError;
|
|
21312
|
+
/**
|
|
21313
|
+
* InternalServerError
|
|
21314
|
+
*/
|
|
21315
|
+
500: InternalServerError;
|
|
21316
|
+
/**
|
|
21317
|
+
* ServiceUnavailableError
|
|
21318
|
+
*/
|
|
21319
|
+
503: ServiceUnavailableError;
|
|
21320
|
+
};
|
|
21321
|
+
export type RoutingProvidersDeleteRoutingModelError = RoutingProvidersDeleteRoutingModelErrors[keyof RoutingProvidersDeleteRoutingModelErrors];
|
|
21322
|
+
export type RoutingProvidersDeleteRoutingModelResponses = {
|
|
21323
|
+
/**
|
|
21324
|
+
* Success
|
|
21325
|
+
*/
|
|
21326
|
+
200: {
|
|
21327
|
+
code: number;
|
|
21328
|
+
data: {
|
|
21329
|
+
deleted: boolean;
|
|
21330
|
+
publishWarning?: {
|
|
21331
|
+
errors: Array<{
|
|
21332
|
+
entity: string;
|
|
21333
|
+
message: string;
|
|
21334
|
+
rule?: string | null;
|
|
21335
|
+
}>;
|
|
21336
|
+
kind: 'validation';
|
|
21337
|
+
} | null;
|
|
21338
|
+
} | null;
|
|
21339
|
+
error: {
|
|
21340
|
+
code: string;
|
|
21341
|
+
details?: unknown | null;
|
|
21342
|
+
message: string;
|
|
21343
|
+
rowErrors?: Array<{
|
|
21344
|
+
code: string;
|
|
21345
|
+
message: string;
|
|
21346
|
+
path: Array<string | number>;
|
|
21347
|
+
}> | null;
|
|
21348
|
+
} | null;
|
|
21349
|
+
pagination: {
|
|
21350
|
+
limit: number;
|
|
21351
|
+
page: number;
|
|
21352
|
+
total: number;
|
|
21353
|
+
totalPages: number;
|
|
21354
|
+
} | null;
|
|
21355
|
+
sdkBehavior?: {
|
|
21356
|
+
flags: {
|
|
21357
|
+
[key: string]: unknown;
|
|
21358
|
+
};
|
|
21359
|
+
v: number;
|
|
21360
|
+
} | null;
|
|
21361
|
+
success: boolean;
|
|
21362
|
+
};
|
|
21363
|
+
};
|
|
21364
|
+
export type RoutingProvidersDeleteRoutingModelResponse = RoutingProvidersDeleteRoutingModelResponses[keyof RoutingProvidersDeleteRoutingModelResponses];
|
|
21365
|
+
export type RoutingProvidersUpdateRoutingModelData = {
|
|
21366
|
+
body: {
|
|
21367
|
+
description?: string | null;
|
|
21368
|
+
displayName?: string | null;
|
|
21369
|
+
modelType?: string | null;
|
|
21370
|
+
};
|
|
21371
|
+
path: {
|
|
21372
|
+
projectId: string;
|
|
21373
|
+
providerId: string;
|
|
21374
|
+
modelId: string;
|
|
21375
|
+
};
|
|
21376
|
+
query?: never;
|
|
21377
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/models/{modelId}';
|
|
21378
|
+
};
|
|
21379
|
+
export type RoutingProvidersUpdateRoutingModelErrors = {
|
|
21380
|
+
/**
|
|
21381
|
+
* BadRequestError
|
|
21382
|
+
*/
|
|
21383
|
+
400: BadRequestError;
|
|
21384
|
+
/**
|
|
21385
|
+
* UnauthorizedError
|
|
21386
|
+
*/
|
|
21387
|
+
401: UnauthorizedError;
|
|
21388
|
+
/**
|
|
21389
|
+
* ForbiddenError
|
|
21390
|
+
*/
|
|
21391
|
+
403: ForbiddenError;
|
|
21392
|
+
/**
|
|
21393
|
+
* NotFoundError
|
|
21394
|
+
*/
|
|
21395
|
+
404: NotFoundError;
|
|
21396
|
+
/**
|
|
21397
|
+
* ConflictError
|
|
21398
|
+
*/
|
|
21399
|
+
409: ConflictError;
|
|
21400
|
+
/**
|
|
21401
|
+
* GoneError
|
|
21402
|
+
*/
|
|
21403
|
+
410: GoneError;
|
|
21404
|
+
/**
|
|
21405
|
+
* ContentTooLargeError
|
|
21406
|
+
*/
|
|
21407
|
+
413: ContentTooLargeError;
|
|
21408
|
+
/**
|
|
21409
|
+
* MisdirectedRequestError
|
|
21410
|
+
*/
|
|
21411
|
+
421: MisdirectedRequestError;
|
|
21412
|
+
/**
|
|
21413
|
+
* UnprocessableEntityError
|
|
21414
|
+
*/
|
|
21415
|
+
422: UnprocessableEntityError;
|
|
21416
|
+
/**
|
|
21417
|
+
* TooManyRequestsError
|
|
21418
|
+
*/
|
|
21419
|
+
429: TooManyRequestsError;
|
|
21420
|
+
/**
|
|
21421
|
+
* InternalServerError
|
|
21422
|
+
*/
|
|
21423
|
+
500: InternalServerError;
|
|
21424
|
+
/**
|
|
21425
|
+
* ServiceUnavailableError
|
|
21426
|
+
*/
|
|
21427
|
+
503: ServiceUnavailableError;
|
|
21428
|
+
};
|
|
21429
|
+
export type RoutingProvidersUpdateRoutingModelError = RoutingProvidersUpdateRoutingModelErrors[keyof RoutingProvidersUpdateRoutingModelErrors];
|
|
21430
|
+
export type RoutingProvidersUpdateRoutingModelResponses = {
|
|
21431
|
+
/**
|
|
21432
|
+
* Success
|
|
21433
|
+
*/
|
|
21434
|
+
200: {
|
|
21435
|
+
code: number;
|
|
21436
|
+
data: {
|
|
21437
|
+
catalogSlug?: string | null | null;
|
|
21438
|
+
createdAt: string;
|
|
21439
|
+
description: string | null;
|
|
21440
|
+
displayName: string | null;
|
|
21441
|
+
id: string;
|
|
21442
|
+
modelType: string | null;
|
|
21443
|
+
name: string;
|
|
21444
|
+
providerId: string;
|
|
21445
|
+
publishWarning?: {
|
|
21446
|
+
errors: Array<{
|
|
21447
|
+
entity: string;
|
|
21448
|
+
message: string;
|
|
21449
|
+
rule?: string | null;
|
|
21450
|
+
}>;
|
|
21451
|
+
kind: 'validation';
|
|
21452
|
+
} | null;
|
|
21453
|
+
updatedAt: string;
|
|
21454
|
+
} | null;
|
|
21455
|
+
error: {
|
|
21456
|
+
code: string;
|
|
21457
|
+
details?: unknown | null;
|
|
21458
|
+
message: string;
|
|
21459
|
+
rowErrors?: Array<{
|
|
21460
|
+
code: string;
|
|
21461
|
+
message: string;
|
|
21462
|
+
path: Array<string | number>;
|
|
21463
|
+
}> | null;
|
|
21464
|
+
} | null;
|
|
21465
|
+
pagination: {
|
|
21466
|
+
limit: number;
|
|
21467
|
+
page: number;
|
|
21468
|
+
total: number;
|
|
21469
|
+
totalPages: number;
|
|
21470
|
+
} | null;
|
|
21471
|
+
sdkBehavior?: {
|
|
21472
|
+
flags: {
|
|
21473
|
+
[key: string]: unknown;
|
|
21474
|
+
};
|
|
21475
|
+
v: number;
|
|
21476
|
+
} | null;
|
|
21477
|
+
success: boolean;
|
|
21478
|
+
};
|
|
21479
|
+
};
|
|
21480
|
+
export type RoutingProvidersUpdateRoutingModelResponse = RoutingProvidersUpdateRoutingModelResponses[keyof RoutingProvidersUpdateRoutingModelResponses];
|
|
21481
|
+
export type RoutingProvidersRestoreRoutingModelData = {
|
|
21482
|
+
body?: never;
|
|
21483
|
+
path: {
|
|
21484
|
+
projectId: string;
|
|
21485
|
+
providerId: string;
|
|
21486
|
+
modelId: string;
|
|
21487
|
+
};
|
|
21488
|
+
query?: never;
|
|
21489
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/models/{modelId}/restore';
|
|
20763
21490
|
};
|
|
20764
21491
|
export type RoutingProvidersRestoreRoutingModelErrors = {
|
|
20765
21492
|
/**
|
|
@@ -21036,6 +21763,7 @@ export type ProviderConfigVersionsListProviderConfigVersionsResponses = {
|
|
|
21036
21763
|
contentHash: string;
|
|
21037
21764
|
createdAt: string;
|
|
21038
21765
|
createdBy: string | null;
|
|
21766
|
+
id: string;
|
|
21039
21767
|
liveInEnvSlugs: Array<string>;
|
|
21040
21768
|
version: number;
|
|
21041
21769
|
}> | null;
|