@to11ai/sdk 2.0.0-rc.7 → 2.0.0-rc.9
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 +966 -125
- package/dist/generated/zod.gen.d.ts +373 -0
- package/package.json +1 -1
- package/src/generated/index.ts +1 -1
- package/src/generated/types.gen.ts +1001 -120
- package/src/generated/zod.gen.ts +393 -0
|
@@ -16343,6 +16343,7 @@ export type CredentialLifecycleRenameCredentialResponses = {
|
|
|
16343
16343
|
200: {
|
|
16344
16344
|
code: number;
|
|
16345
16345
|
data: {
|
|
16346
|
+
attachedElsewhere?: boolean | null | null;
|
|
16346
16347
|
createdAt: string;
|
|
16347
16348
|
credentialType: 'api-key' | 'oauth' | 'iam-role' | 'access-key' | 'service-account' | 'none' | 'passthrough';
|
|
16348
16349
|
deletedAt?: string | null | null;
|
|
@@ -16646,6 +16647,7 @@ export type CredentialLifecycleRestoreCredentialResponses = {
|
|
|
16646
16647
|
code: number;
|
|
16647
16648
|
data: {
|
|
16648
16649
|
credential: {
|
|
16650
|
+
attachedElsewhere?: boolean | null | null;
|
|
16649
16651
|
createdAt: string;
|
|
16650
16652
|
credentialType: 'api-key' | 'oauth' | 'iam-role' | 'access-key' | 'service-account' | 'none' | 'passthrough';
|
|
16651
16653
|
deletedAt?: string | null | null;
|
|
@@ -16681,6 +16683,117 @@ export type CredentialLifecycleRestoreCredentialResponses = {
|
|
|
16681
16683
|
};
|
|
16682
16684
|
};
|
|
16683
16685
|
export type CredentialLifecycleRestoreCredentialResponse = CredentialLifecycleRestoreCredentialResponses[keyof CredentialLifecycleRestoreCredentialResponses];
|
|
16686
|
+
export type CredentialRotateRotateCredentialData = {
|
|
16687
|
+
body: {
|
|
16688
|
+
disposition: 'keep' | 'archive' | 'delete';
|
|
16689
|
+
newCredentialId: string;
|
|
16690
|
+
reason: string;
|
|
16691
|
+
};
|
|
16692
|
+
path: {
|
|
16693
|
+
projectId: string;
|
|
16694
|
+
providerId: string;
|
|
16695
|
+
credentialId: string;
|
|
16696
|
+
};
|
|
16697
|
+
query?: never;
|
|
16698
|
+
url: '/v1/projects/{projectId}/providers/{providerId}/credentials/{credentialId}/rotate';
|
|
16699
|
+
};
|
|
16700
|
+
export type CredentialRotateRotateCredentialErrors = {
|
|
16701
|
+
/**
|
|
16702
|
+
* BadRequestError
|
|
16703
|
+
*/
|
|
16704
|
+
400: BadRequestError;
|
|
16705
|
+
/**
|
|
16706
|
+
* UnauthorizedError
|
|
16707
|
+
*/
|
|
16708
|
+
401: UnauthorizedError;
|
|
16709
|
+
/**
|
|
16710
|
+
* ForbiddenError
|
|
16711
|
+
*/
|
|
16712
|
+
403: ForbiddenError;
|
|
16713
|
+
/**
|
|
16714
|
+
* NotFoundError
|
|
16715
|
+
*/
|
|
16716
|
+
404: NotFoundError;
|
|
16717
|
+
/**
|
|
16718
|
+
* ConflictError
|
|
16719
|
+
*/
|
|
16720
|
+
409: ConflictError;
|
|
16721
|
+
/**
|
|
16722
|
+
* GoneError
|
|
16723
|
+
*/
|
|
16724
|
+
410: GoneError;
|
|
16725
|
+
/**
|
|
16726
|
+
* ContentTooLargeError
|
|
16727
|
+
*/
|
|
16728
|
+
413: ContentTooLargeError;
|
|
16729
|
+
/**
|
|
16730
|
+
* MisdirectedRequestError
|
|
16731
|
+
*/
|
|
16732
|
+
421: MisdirectedRequestError;
|
|
16733
|
+
/**
|
|
16734
|
+
* UnprocessableEntityError
|
|
16735
|
+
*/
|
|
16736
|
+
422: UnprocessableEntityError;
|
|
16737
|
+
/**
|
|
16738
|
+
* TooManyRequestsError
|
|
16739
|
+
*/
|
|
16740
|
+
429: TooManyRequestsError;
|
|
16741
|
+
/**
|
|
16742
|
+
* InternalServerError
|
|
16743
|
+
*/
|
|
16744
|
+
500: InternalServerError;
|
|
16745
|
+
/**
|
|
16746
|
+
* ServiceUnavailableError
|
|
16747
|
+
*/
|
|
16748
|
+
503: ServiceUnavailableError;
|
|
16749
|
+
};
|
|
16750
|
+
export type CredentialRotateRotateCredentialError = CredentialRotateRotateCredentialErrors[keyof CredentialRotateRotateCredentialErrors];
|
|
16751
|
+
export type CredentialRotateRotateCredentialResponses = {
|
|
16752
|
+
/**
|
|
16753
|
+
* Success
|
|
16754
|
+
*/
|
|
16755
|
+
200: {
|
|
16756
|
+
code: number;
|
|
16757
|
+
data: {
|
|
16758
|
+
disposition: 'keep' | 'archive' | 'delete' | 'skipped_due_to_failures' | 'skipped_due_to_test_failure' | 'skipped_due_to_pending_approval' | 'skipped_due_to_shared_credential';
|
|
16759
|
+
failedEnvs: Array<{
|
|
16760
|
+
environmentId: string;
|
|
16761
|
+
failureReason: string;
|
|
16762
|
+
}>;
|
|
16763
|
+
movedEnvs: Array<{
|
|
16764
|
+
environmentId: string;
|
|
16765
|
+
}>;
|
|
16766
|
+
pendingApprovalEnvs: Array<{
|
|
16767
|
+
environmentId: string;
|
|
16768
|
+
}>;
|
|
16769
|
+
testOutcome: 'passed' | 'deferred' | 'failed';
|
|
16770
|
+
} | null;
|
|
16771
|
+
error: {
|
|
16772
|
+
code: string;
|
|
16773
|
+
details?: unknown | null;
|
|
16774
|
+
message: string;
|
|
16775
|
+
rowErrors?: Array<{
|
|
16776
|
+
code: string;
|
|
16777
|
+
message: string;
|
|
16778
|
+
path: Array<string | number>;
|
|
16779
|
+
}> | null;
|
|
16780
|
+
} | null;
|
|
16781
|
+
pagination: {
|
|
16782
|
+
limit: number;
|
|
16783
|
+
page: number;
|
|
16784
|
+
total: number;
|
|
16785
|
+
totalPages: number;
|
|
16786
|
+
} | null;
|
|
16787
|
+
sdkBehavior?: {
|
|
16788
|
+
flags: {
|
|
16789
|
+
[key: string]: unknown;
|
|
16790
|
+
};
|
|
16791
|
+
v: number;
|
|
16792
|
+
} | null;
|
|
16793
|
+
success: boolean;
|
|
16794
|
+
};
|
|
16795
|
+
};
|
|
16796
|
+
export type CredentialRotateRotateCredentialResponse = CredentialRotateRotateCredentialResponses[keyof CredentialRotateRotateCredentialResponses];
|
|
16684
16797
|
export type ProviderDisconnectDisconnectProviderData = {
|
|
16685
16798
|
body: {
|
|
16686
16799
|
environmentIds: Array<string>;
|
|
@@ -17101,6 +17214,7 @@ export type ProviderEmergencyRotationEmergencyRotateProviderCredentialResponses
|
|
|
17101
17214
|
envSlug: string;
|
|
17102
17215
|
environmentId: string;
|
|
17103
17216
|
id: string;
|
|
17217
|
+
modelAllowlistCleared?: boolean | null;
|
|
17104
17218
|
providerId: string;
|
|
17105
17219
|
reason: string | null;
|
|
17106
17220
|
state: 'current' | 'pending';
|
|
@@ -17216,6 +17330,7 @@ export type ProviderRollbackRollbackProviderEnvActivationResponses = {
|
|
|
17216
17330
|
envSlug: string;
|
|
17217
17331
|
environmentId: string;
|
|
17218
17332
|
id: string;
|
|
17333
|
+
modelAllowlistCleared?: boolean | null;
|
|
17219
17334
|
providerId: string;
|
|
17220
17335
|
reason: string | null;
|
|
17221
17336
|
state: 'current' | 'pending';
|
|
@@ -19817,6 +19932,7 @@ export type RoutingProvidersListRoutingCredentialsResponses = {
|
|
|
19817
19932
|
200: {
|
|
19818
19933
|
code: number;
|
|
19819
19934
|
data: Array<{
|
|
19935
|
+
attachedElsewhere?: boolean | null | null;
|
|
19820
19936
|
createdAt: string;
|
|
19821
19937
|
credentialType: 'api-key' | 'oauth' | 'iam-role' | 'access-key' | 'service-account' | 'none' | 'passthrough';
|
|
19822
19938
|
deletedAt?: string | null | null;
|
|
@@ -19943,6 +20059,7 @@ export type RoutingProvidersCreateRoutingCredentialResponses = {
|
|
|
19943
20059
|
201: {
|
|
19944
20060
|
code: number;
|
|
19945
20061
|
data: {
|
|
20062
|
+
attachedElsewhere?: boolean | null | null;
|
|
19946
20063
|
createdAt: string;
|
|
19947
20064
|
credentialType: 'api-key' | 'oauth' | 'iam-role' | 'access-key' | 'service-account' | 'none' | 'passthrough';
|
|
19948
20065
|
deletedAt?: string | null | null;
|
|
@@ -20193,20 +20310,16 @@ export type RoutingProvidersTestRoutingCredentialResponses = {
|
|
|
20193
20310
|
};
|
|
20194
20311
|
};
|
|
20195
20312
|
export type RoutingProvidersTestRoutingCredentialResponse = RoutingProvidersTestRoutingCredentialResponses[keyof RoutingProvidersTestRoutingCredentialResponses];
|
|
20196
|
-
export type
|
|
20197
|
-
body
|
|
20198
|
-
reason?: string | null;
|
|
20199
|
-
version: number;
|
|
20200
|
-
};
|
|
20313
|
+
export type ProviderConfigDraftsDiscardProviderDraftData = {
|
|
20314
|
+
body?: never;
|
|
20201
20315
|
path: {
|
|
20202
20316
|
projectId: string;
|
|
20203
20317
|
providerId: string;
|
|
20204
|
-
envSlug: string;
|
|
20205
20318
|
};
|
|
20206
20319
|
query?: never;
|
|
20207
|
-
url: '/v1/projects/{projectId}/routing/providers/{providerId}/
|
|
20320
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/draft';
|
|
20208
20321
|
};
|
|
20209
|
-
export type
|
|
20322
|
+
export type ProviderConfigDraftsDiscardProviderDraftErrors = {
|
|
20210
20323
|
/**
|
|
20211
20324
|
* BadRequestError
|
|
20212
20325
|
*/
|
|
@@ -20256,31 +20369,15 @@ export type ProviderPromoteVersionPromoteProviderEnvVersionErrors = {
|
|
|
20256
20369
|
*/
|
|
20257
20370
|
503: ServiceUnavailableError;
|
|
20258
20371
|
};
|
|
20259
|
-
export type
|
|
20260
|
-
export type
|
|
20372
|
+
export type ProviderConfigDraftsDiscardProviderDraftError = ProviderConfigDraftsDiscardProviderDraftErrors[keyof ProviderConfigDraftsDiscardProviderDraftErrors];
|
|
20373
|
+
export type ProviderConfigDraftsDiscardProviderDraftResponses = {
|
|
20261
20374
|
/**
|
|
20262
20375
|
* Success
|
|
20263
20376
|
*/
|
|
20264
|
-
|
|
20377
|
+
200: {
|
|
20265
20378
|
code: number;
|
|
20266
20379
|
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';
|
|
20380
|
+
discarded: true;
|
|
20284
20381
|
} | null;
|
|
20285
20382
|
error: {
|
|
20286
20383
|
code: string;
|
|
@@ -20307,20 +20404,17 @@ export type ProviderPromoteVersionPromoteProviderEnvVersionResponses = {
|
|
|
20307
20404
|
success: boolean;
|
|
20308
20405
|
};
|
|
20309
20406
|
};
|
|
20310
|
-
export type
|
|
20311
|
-
export type
|
|
20407
|
+
export type ProviderConfigDraftsDiscardProviderDraftResponse = ProviderConfigDraftsDiscardProviderDraftResponses[keyof ProviderConfigDraftsDiscardProviderDraftResponses];
|
|
20408
|
+
export type ProviderConfigDraftsGetProviderDraftData = {
|
|
20312
20409
|
body?: never;
|
|
20313
20410
|
path: {
|
|
20314
20411
|
projectId: string;
|
|
20315
20412
|
providerId: string;
|
|
20316
20413
|
};
|
|
20317
|
-
query?:
|
|
20318
|
-
|
|
20319
|
-
limit?: number | null;
|
|
20320
|
-
};
|
|
20321
|
-
url: '/v1/projects/{projectId}/routing/providers/{providerId}/models';
|
|
20414
|
+
query?: never;
|
|
20415
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/draft';
|
|
20322
20416
|
};
|
|
20323
|
-
export type
|
|
20417
|
+
export type ProviderConfigDraftsGetProviderDraftErrors = {
|
|
20324
20418
|
/**
|
|
20325
20419
|
* BadRequestError
|
|
20326
20420
|
*/
|
|
@@ -20370,24 +20464,23 @@ export type RoutingProvidersListRoutingModelsErrors = {
|
|
|
20370
20464
|
*/
|
|
20371
20465
|
503: ServiceUnavailableError;
|
|
20372
20466
|
};
|
|
20373
|
-
export type
|
|
20374
|
-
export type
|
|
20467
|
+
export type ProviderConfigDraftsGetProviderDraftError = ProviderConfigDraftsGetProviderDraftErrors[keyof ProviderConfigDraftsGetProviderDraftErrors];
|
|
20468
|
+
export type ProviderConfigDraftsGetProviderDraftResponses = {
|
|
20375
20469
|
/**
|
|
20376
20470
|
* Success
|
|
20377
20471
|
*/
|
|
20378
20472
|
200: {
|
|
20379
20473
|
code: number;
|
|
20380
|
-
data:
|
|
20381
|
-
|
|
20474
|
+
data: {
|
|
20475
|
+
configSnapshot: {
|
|
20476
|
+
[key: string]: unknown;
|
|
20477
|
+
};
|
|
20382
20478
|
createdAt: string;
|
|
20383
|
-
|
|
20384
|
-
|
|
20479
|
+
createdBy: string | null;
|
|
20480
|
+
fromVersionId: string;
|
|
20385
20481
|
id: string;
|
|
20386
|
-
modelType: string | null;
|
|
20387
|
-
name: string;
|
|
20388
20482
|
providerId: string;
|
|
20389
|
-
|
|
20390
|
-
}> | null;
|
|
20483
|
+
} | null | null;
|
|
20391
20484
|
error: {
|
|
20392
20485
|
code: string;
|
|
20393
20486
|
details?: unknown | null;
|
|
@@ -20413,23 +20506,24 @@ export type RoutingProvidersListRoutingModelsResponses = {
|
|
|
20413
20506
|
success: boolean;
|
|
20414
20507
|
};
|
|
20415
20508
|
};
|
|
20416
|
-
export type
|
|
20417
|
-
export type
|
|
20509
|
+
export type ProviderConfigDraftsGetProviderDraftResponse = ProviderConfigDraftsGetProviderDraftResponses[keyof ProviderConfigDraftsGetProviderDraftResponses];
|
|
20510
|
+
export type ProviderConfigDraftsUpdateProviderDraftData = {
|
|
20418
20511
|
body: {
|
|
20419
|
-
|
|
20420
|
-
|
|
20421
|
-
|
|
20422
|
-
|
|
20423
|
-
|
|
20512
|
+
configSnapshotPatch: {
|
|
20513
|
+
baseUrl?: string | null | null;
|
|
20514
|
+
models?: Array<string> | null | null;
|
|
20515
|
+
passthroughMode?: 'managed_precedence' | 'caller_precedence' | 'disabled' | null | null;
|
|
20516
|
+
providerRegion?: string | null | null;
|
|
20517
|
+
};
|
|
20424
20518
|
};
|
|
20425
20519
|
path: {
|
|
20426
20520
|
projectId: string;
|
|
20427
20521
|
providerId: string;
|
|
20428
20522
|
};
|
|
20429
20523
|
query?: never;
|
|
20430
|
-
url: '/v1/projects/{projectId}/routing/providers/{providerId}/
|
|
20524
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/draft';
|
|
20431
20525
|
};
|
|
20432
|
-
export type
|
|
20526
|
+
export type ProviderConfigDraftsUpdateProviderDraftErrors = {
|
|
20433
20527
|
/**
|
|
20434
20528
|
* BadRequestError
|
|
20435
20529
|
*/
|
|
@@ -20479,31 +20573,22 @@ export type RoutingProvidersCreateRoutingModelErrors = {
|
|
|
20479
20573
|
*/
|
|
20480
20574
|
503: ServiceUnavailableError;
|
|
20481
20575
|
};
|
|
20482
|
-
export type
|
|
20483
|
-
export type
|
|
20576
|
+
export type ProviderConfigDraftsUpdateProviderDraftError = ProviderConfigDraftsUpdateProviderDraftErrors[keyof ProviderConfigDraftsUpdateProviderDraftErrors];
|
|
20577
|
+
export type ProviderConfigDraftsUpdateProviderDraftResponses = {
|
|
20484
20578
|
/**
|
|
20485
20579
|
* Success
|
|
20486
20580
|
*/
|
|
20487
|
-
|
|
20581
|
+
200: {
|
|
20488
20582
|
code: number;
|
|
20489
20583
|
data: {
|
|
20490
|
-
|
|
20584
|
+
configSnapshot: {
|
|
20585
|
+
[key: string]: unknown;
|
|
20586
|
+
};
|
|
20491
20587
|
createdAt: string;
|
|
20492
|
-
|
|
20493
|
-
|
|
20588
|
+
createdBy: string | null;
|
|
20589
|
+
fromVersionId: string;
|
|
20494
20590
|
id: string;
|
|
20495
|
-
modelType: string | null;
|
|
20496
|
-
name: string;
|
|
20497
20591
|
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
20592
|
} | null;
|
|
20508
20593
|
error: {
|
|
20509
20594
|
code: string;
|
|
@@ -20530,18 +20615,17 @@ export type RoutingProvidersCreateRoutingModelResponses = {
|
|
|
20530
20615
|
success: boolean;
|
|
20531
20616
|
};
|
|
20532
20617
|
};
|
|
20533
|
-
export type
|
|
20534
|
-
export type
|
|
20618
|
+
export type ProviderConfigDraftsUpdateProviderDraftResponse = ProviderConfigDraftsUpdateProviderDraftResponses[keyof ProviderConfigDraftsUpdateProviderDraftResponses];
|
|
20619
|
+
export type ProviderConfigDraftsEnsureProviderDraftData = {
|
|
20535
20620
|
body?: never;
|
|
20536
20621
|
path: {
|
|
20537
20622
|
projectId: string;
|
|
20538
20623
|
providerId: string;
|
|
20539
|
-
modelId: string;
|
|
20540
20624
|
};
|
|
20541
20625
|
query?: never;
|
|
20542
|
-
url: '/v1/projects/{projectId}/routing/providers/{providerId}/
|
|
20626
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/draft';
|
|
20543
20627
|
};
|
|
20544
|
-
export type
|
|
20628
|
+
export type ProviderConfigDraftsEnsureProviderDraftErrors = {
|
|
20545
20629
|
/**
|
|
20546
20630
|
* BadRequestError
|
|
20547
20631
|
*/
|
|
@@ -20591,23 +20675,22 @@ export type RoutingProvidersDeleteRoutingModelErrors = {
|
|
|
20591
20675
|
*/
|
|
20592
20676
|
503: ServiceUnavailableError;
|
|
20593
20677
|
};
|
|
20594
|
-
export type
|
|
20595
|
-
export type
|
|
20678
|
+
export type ProviderConfigDraftsEnsureProviderDraftError = ProviderConfigDraftsEnsureProviderDraftErrors[keyof ProviderConfigDraftsEnsureProviderDraftErrors];
|
|
20679
|
+
export type ProviderConfigDraftsEnsureProviderDraftResponses = {
|
|
20596
20680
|
/**
|
|
20597
20681
|
* Success
|
|
20598
20682
|
*/
|
|
20599
20683
|
200: {
|
|
20600
20684
|
code: number;
|
|
20601
20685
|
data: {
|
|
20602
|
-
|
|
20603
|
-
|
|
20604
|
-
|
|
20605
|
-
|
|
20606
|
-
|
|
20607
|
-
|
|
20608
|
-
|
|
20609
|
-
|
|
20610
|
-
} | null;
|
|
20686
|
+
configSnapshot: {
|
|
20687
|
+
[key: string]: unknown;
|
|
20688
|
+
};
|
|
20689
|
+
createdAt: string;
|
|
20690
|
+
createdBy: string | null;
|
|
20691
|
+
fromVersionId: string;
|
|
20692
|
+
id: string;
|
|
20693
|
+
providerId: string;
|
|
20611
20694
|
} | null;
|
|
20612
20695
|
error: {
|
|
20613
20696
|
code: string;
|
|
@@ -20634,22 +20717,23 @@ export type RoutingProvidersDeleteRoutingModelResponses = {
|
|
|
20634
20717
|
success: boolean;
|
|
20635
20718
|
};
|
|
20636
20719
|
};
|
|
20637
|
-
export type
|
|
20638
|
-
export type
|
|
20720
|
+
export type ProviderConfigDraftsEnsureProviderDraftResponse = ProviderConfigDraftsEnsureProviderDraftResponses[keyof ProviderConfigDraftsEnsureProviderDraftResponses];
|
|
20721
|
+
export type ProviderConfigDraftsCommitProviderDraftData = {
|
|
20639
20722
|
body: {
|
|
20640
|
-
|
|
20641
|
-
|
|
20642
|
-
|
|
20723
|
+
environments: Array<{
|
|
20724
|
+
envSlug: string;
|
|
20725
|
+
environmentId: string;
|
|
20726
|
+
}>;
|
|
20727
|
+
reason?: string | null;
|
|
20643
20728
|
};
|
|
20644
20729
|
path: {
|
|
20645
20730
|
projectId: string;
|
|
20646
20731
|
providerId: string;
|
|
20647
|
-
modelId: string;
|
|
20648
20732
|
};
|
|
20649
20733
|
query?: never;
|
|
20650
|
-
url: '/v1/projects/{projectId}/routing/providers/{providerId}/
|
|
20734
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/draft/commit';
|
|
20651
20735
|
};
|
|
20652
|
-
export type
|
|
20736
|
+
export type ProviderConfigDraftsCommitProviderDraftErrors = {
|
|
20653
20737
|
/**
|
|
20654
20738
|
* BadRequestError
|
|
20655
20739
|
*/
|
|
@@ -20699,31 +20783,22 @@ export type RoutingProvidersUpdateRoutingModelErrors = {
|
|
|
20699
20783
|
*/
|
|
20700
20784
|
503: ServiceUnavailableError;
|
|
20701
20785
|
};
|
|
20702
|
-
export type
|
|
20703
|
-
export type
|
|
20786
|
+
export type ProviderConfigDraftsCommitProviderDraftError = ProviderConfigDraftsCommitProviderDraftErrors[keyof ProviderConfigDraftsCommitProviderDraftErrors];
|
|
20787
|
+
export type ProviderConfigDraftsCommitProviderDraftResponses = {
|
|
20704
20788
|
/**
|
|
20705
20789
|
* Success
|
|
20706
20790
|
*/
|
|
20707
|
-
|
|
20791
|
+
201: {
|
|
20708
20792
|
code: number;
|
|
20709
20793
|
data: {
|
|
20710
|
-
|
|
20711
|
-
|
|
20712
|
-
|
|
20713
|
-
|
|
20714
|
-
|
|
20715
|
-
|
|
20716
|
-
|
|
20717
|
-
|
|
20718
|
-
publishWarning?: {
|
|
20719
|
-
errors: Array<{
|
|
20720
|
-
entity: string;
|
|
20721
|
-
message: string;
|
|
20722
|
-
rule?: string | null;
|
|
20723
|
-
}>;
|
|
20724
|
-
kind: 'validation';
|
|
20725
|
-
} | null;
|
|
20726
|
-
updatedAt: string;
|
|
20794
|
+
deployResults: Array<{
|
|
20795
|
+
envSlug: string;
|
|
20796
|
+
environmentId: string;
|
|
20797
|
+
errorTag?: string | null;
|
|
20798
|
+
outcome: 'deployed' | 'pending' | 'failed';
|
|
20799
|
+
}>;
|
|
20800
|
+
version: number;
|
|
20801
|
+
versionId: string;
|
|
20727
20802
|
} | null;
|
|
20728
20803
|
error: {
|
|
20729
20804
|
code: string;
|
|
@@ -20750,18 +20825,20 @@ export type RoutingProvidersUpdateRoutingModelResponses = {
|
|
|
20750
20825
|
success: boolean;
|
|
20751
20826
|
};
|
|
20752
20827
|
};
|
|
20753
|
-
export type
|
|
20754
|
-
export type
|
|
20755
|
-
body
|
|
20828
|
+
export type ProviderConfigDraftsCommitProviderDraftResponse = ProviderConfigDraftsCommitProviderDraftResponses[keyof ProviderConfigDraftsCommitProviderDraftResponses];
|
|
20829
|
+
export type ProviderConfigDraftsRestoreProviderVersionData = {
|
|
20830
|
+
body: {
|
|
20831
|
+
confirmDiscard?: boolean | null;
|
|
20832
|
+
version: number;
|
|
20833
|
+
};
|
|
20756
20834
|
path: {
|
|
20757
20835
|
projectId: string;
|
|
20758
20836
|
providerId: string;
|
|
20759
|
-
modelId: string;
|
|
20760
20837
|
};
|
|
20761
20838
|
query?: never;
|
|
20762
|
-
url: '/v1/projects/{projectId}/routing/providers/{providerId}/
|
|
20839
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/draft/restore';
|
|
20763
20840
|
};
|
|
20764
|
-
export type
|
|
20841
|
+
export type ProviderConfigDraftsRestoreProviderVersionErrors = {
|
|
20765
20842
|
/**
|
|
20766
20843
|
* BadRequestError
|
|
20767
20844
|
*/
|
|
@@ -20811,15 +20888,778 @@ export type RoutingProvidersRestoreRoutingModelErrors = {
|
|
|
20811
20888
|
*/
|
|
20812
20889
|
503: ServiceUnavailableError;
|
|
20813
20890
|
};
|
|
20814
|
-
export type
|
|
20815
|
-
export type
|
|
20891
|
+
export type ProviderConfigDraftsRestoreProviderVersionError = ProviderConfigDraftsRestoreProviderVersionErrors[keyof ProviderConfigDraftsRestoreProviderVersionErrors];
|
|
20892
|
+
export type ProviderConfigDraftsRestoreProviderVersionResponses = {
|
|
20816
20893
|
/**
|
|
20817
20894
|
* Success
|
|
20818
20895
|
*/
|
|
20819
20896
|
200: {
|
|
20820
20897
|
code: number;
|
|
20821
20898
|
data: {
|
|
20822
|
-
|
|
20899
|
+
configSnapshot: {
|
|
20900
|
+
[key: string]: unknown;
|
|
20901
|
+
};
|
|
20902
|
+
createdAt: string;
|
|
20903
|
+
createdBy: string | null;
|
|
20904
|
+
fromVersionId: string;
|
|
20905
|
+
id: string;
|
|
20906
|
+
providerId: string;
|
|
20907
|
+
} | null;
|
|
20908
|
+
error: {
|
|
20909
|
+
code: string;
|
|
20910
|
+
details?: unknown | null;
|
|
20911
|
+
message: string;
|
|
20912
|
+
rowErrors?: Array<{
|
|
20913
|
+
code: string;
|
|
20914
|
+
message: string;
|
|
20915
|
+
path: Array<string | number>;
|
|
20916
|
+
}> | null;
|
|
20917
|
+
} | null;
|
|
20918
|
+
pagination: {
|
|
20919
|
+
limit: number;
|
|
20920
|
+
page: number;
|
|
20921
|
+
total: number;
|
|
20922
|
+
totalPages: number;
|
|
20923
|
+
} | null;
|
|
20924
|
+
sdkBehavior?: {
|
|
20925
|
+
flags: {
|
|
20926
|
+
[key: string]: unknown;
|
|
20927
|
+
};
|
|
20928
|
+
v: number;
|
|
20929
|
+
} | null;
|
|
20930
|
+
success: boolean;
|
|
20931
|
+
};
|
|
20932
|
+
};
|
|
20933
|
+
export type ProviderConfigDraftsRestoreProviderVersionResponse = ProviderConfigDraftsRestoreProviderVersionResponses[keyof ProviderConfigDraftsRestoreProviderVersionResponses];
|
|
20934
|
+
export type ProviderPromoteVersionPromoteProviderEnvVersionData = {
|
|
20935
|
+
body: {
|
|
20936
|
+
reason?: string | null;
|
|
20937
|
+
version: number;
|
|
20938
|
+
};
|
|
20939
|
+
path: {
|
|
20940
|
+
projectId: string;
|
|
20941
|
+
providerId: string;
|
|
20942
|
+
envSlug: string;
|
|
20943
|
+
};
|
|
20944
|
+
query?: never;
|
|
20945
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/environments/{envSlug}/promote';
|
|
20946
|
+
};
|
|
20947
|
+
export type ProviderPromoteVersionPromoteProviderEnvVersionErrors = {
|
|
20948
|
+
/**
|
|
20949
|
+
* BadRequestError
|
|
20950
|
+
*/
|
|
20951
|
+
400: BadRequestError;
|
|
20952
|
+
/**
|
|
20953
|
+
* UnauthorizedError
|
|
20954
|
+
*/
|
|
20955
|
+
401: UnauthorizedError;
|
|
20956
|
+
/**
|
|
20957
|
+
* ForbiddenError
|
|
20958
|
+
*/
|
|
20959
|
+
403: ForbiddenError;
|
|
20960
|
+
/**
|
|
20961
|
+
* NotFoundError
|
|
20962
|
+
*/
|
|
20963
|
+
404: NotFoundError;
|
|
20964
|
+
/**
|
|
20965
|
+
* ConflictError
|
|
20966
|
+
*/
|
|
20967
|
+
409: ConflictError;
|
|
20968
|
+
/**
|
|
20969
|
+
* GoneError
|
|
20970
|
+
*/
|
|
20971
|
+
410: GoneError;
|
|
20972
|
+
/**
|
|
20973
|
+
* ContentTooLargeError
|
|
20974
|
+
*/
|
|
20975
|
+
413: ContentTooLargeError;
|
|
20976
|
+
/**
|
|
20977
|
+
* MisdirectedRequestError
|
|
20978
|
+
*/
|
|
20979
|
+
421: MisdirectedRequestError;
|
|
20980
|
+
/**
|
|
20981
|
+
* UnprocessableEntityError
|
|
20982
|
+
*/
|
|
20983
|
+
422: UnprocessableEntityError;
|
|
20984
|
+
/**
|
|
20985
|
+
* TooManyRequestsError
|
|
20986
|
+
*/
|
|
20987
|
+
429: TooManyRequestsError;
|
|
20988
|
+
/**
|
|
20989
|
+
* InternalServerError
|
|
20990
|
+
*/
|
|
20991
|
+
500: InternalServerError;
|
|
20992
|
+
/**
|
|
20993
|
+
* ServiceUnavailableError
|
|
20994
|
+
*/
|
|
20995
|
+
503: ServiceUnavailableError;
|
|
20996
|
+
};
|
|
20997
|
+
export type ProviderPromoteVersionPromoteProviderEnvVersionError = ProviderPromoteVersionPromoteProviderEnvVersionErrors[keyof ProviderPromoteVersionPromoteProviderEnvVersionErrors];
|
|
20998
|
+
export type ProviderPromoteVersionPromoteProviderEnvVersionResponses = {
|
|
20999
|
+
/**
|
|
21000
|
+
* Success
|
|
21001
|
+
*/
|
|
21002
|
+
201: {
|
|
21003
|
+
code: number;
|
|
21004
|
+
data: {
|
|
21005
|
+
activeFrom: string;
|
|
21006
|
+
activeTo: string | null;
|
|
21007
|
+
actorId: string;
|
|
21008
|
+
actorType: string;
|
|
21009
|
+
approvalStatus: 'not_required' | 'pending' | 'approved' | 'rejected';
|
|
21010
|
+
changeType: string;
|
|
21011
|
+
configSnapshot: {
|
|
21012
|
+
[key: string]: unknown;
|
|
21013
|
+
};
|
|
21014
|
+
createdAt: string;
|
|
21015
|
+
credentialId: string;
|
|
21016
|
+
envSlug: string;
|
|
21017
|
+
environmentId: string;
|
|
21018
|
+
id: string;
|
|
21019
|
+
modelAllowlistCleared?: boolean | null;
|
|
21020
|
+
providerId: string;
|
|
21021
|
+
reason: string | null;
|
|
21022
|
+
state: 'current' | 'pending';
|
|
21023
|
+
} | null;
|
|
21024
|
+
error: {
|
|
21025
|
+
code: string;
|
|
21026
|
+
details?: unknown | null;
|
|
21027
|
+
message: string;
|
|
21028
|
+
rowErrors?: Array<{
|
|
21029
|
+
code: string;
|
|
21030
|
+
message: string;
|
|
21031
|
+
path: Array<string | number>;
|
|
21032
|
+
}> | null;
|
|
21033
|
+
} | null;
|
|
21034
|
+
pagination: {
|
|
21035
|
+
limit: number;
|
|
21036
|
+
page: number;
|
|
21037
|
+
total: number;
|
|
21038
|
+
totalPages: number;
|
|
21039
|
+
} | null;
|
|
21040
|
+
sdkBehavior?: {
|
|
21041
|
+
flags: {
|
|
21042
|
+
[key: string]: unknown;
|
|
21043
|
+
};
|
|
21044
|
+
v: number;
|
|
21045
|
+
} | null;
|
|
21046
|
+
success: boolean;
|
|
21047
|
+
};
|
|
21048
|
+
};
|
|
21049
|
+
export type ProviderPromoteVersionPromoteProviderEnvVersionResponse = ProviderPromoteVersionPromoteProviderEnvVersionResponses[keyof ProviderPromoteVersionPromoteProviderEnvVersionResponses];
|
|
21050
|
+
export type ProviderModelUsageGetProviderModelUsageData = {
|
|
21051
|
+
body?: never;
|
|
21052
|
+
path: {
|
|
21053
|
+
projectId: string;
|
|
21054
|
+
providerId: string;
|
|
21055
|
+
};
|
|
21056
|
+
query?: never;
|
|
21057
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/model-usage';
|
|
21058
|
+
};
|
|
21059
|
+
export type ProviderModelUsageGetProviderModelUsageErrors = {
|
|
21060
|
+
/**
|
|
21061
|
+
* BadRequestError
|
|
21062
|
+
*/
|
|
21063
|
+
400: BadRequestError;
|
|
21064
|
+
/**
|
|
21065
|
+
* UnauthorizedError
|
|
21066
|
+
*/
|
|
21067
|
+
401: UnauthorizedError;
|
|
21068
|
+
/**
|
|
21069
|
+
* ForbiddenError
|
|
21070
|
+
*/
|
|
21071
|
+
403: ForbiddenError;
|
|
21072
|
+
/**
|
|
21073
|
+
* NotFoundError
|
|
21074
|
+
*/
|
|
21075
|
+
404: NotFoundError;
|
|
21076
|
+
/**
|
|
21077
|
+
* ConflictError
|
|
21078
|
+
*/
|
|
21079
|
+
409: ConflictError;
|
|
21080
|
+
/**
|
|
21081
|
+
* GoneError
|
|
21082
|
+
*/
|
|
21083
|
+
410: GoneError;
|
|
21084
|
+
/**
|
|
21085
|
+
* ContentTooLargeError
|
|
21086
|
+
*/
|
|
21087
|
+
413: ContentTooLargeError;
|
|
21088
|
+
/**
|
|
21089
|
+
* MisdirectedRequestError
|
|
21090
|
+
*/
|
|
21091
|
+
421: MisdirectedRequestError;
|
|
21092
|
+
/**
|
|
21093
|
+
* UnprocessableEntityError
|
|
21094
|
+
*/
|
|
21095
|
+
422: UnprocessableEntityError;
|
|
21096
|
+
/**
|
|
21097
|
+
* TooManyRequestsError
|
|
21098
|
+
*/
|
|
21099
|
+
429: TooManyRequestsError;
|
|
21100
|
+
/**
|
|
21101
|
+
* InternalServerError
|
|
21102
|
+
*/
|
|
21103
|
+
500: InternalServerError;
|
|
21104
|
+
/**
|
|
21105
|
+
* ServiceUnavailableError
|
|
21106
|
+
*/
|
|
21107
|
+
503: ServiceUnavailableError;
|
|
21108
|
+
};
|
|
21109
|
+
export type ProviderModelUsageGetProviderModelUsageError = ProviderModelUsageGetProviderModelUsageErrors[keyof ProviderModelUsageGetProviderModelUsageErrors];
|
|
21110
|
+
export type ProviderModelUsageGetProviderModelUsageResponses = {
|
|
21111
|
+
/**
|
|
21112
|
+
* Success
|
|
21113
|
+
*/
|
|
21114
|
+
200: {
|
|
21115
|
+
code: number;
|
|
21116
|
+
data: Array<{
|
|
21117
|
+
day: string;
|
|
21118
|
+
errorCount: number;
|
|
21119
|
+
model: string;
|
|
21120
|
+
p50TtftMs: number | null;
|
|
21121
|
+
requests: number;
|
|
21122
|
+
spendUsd: number | null;
|
|
21123
|
+
totalTokens: number;
|
|
21124
|
+
}> | null;
|
|
21125
|
+
error: {
|
|
21126
|
+
code: string;
|
|
21127
|
+
details?: unknown | null;
|
|
21128
|
+
message: string;
|
|
21129
|
+
rowErrors?: Array<{
|
|
21130
|
+
code: string;
|
|
21131
|
+
message: string;
|
|
21132
|
+
path: Array<string | number>;
|
|
21133
|
+
}> | null;
|
|
21134
|
+
} | null;
|
|
21135
|
+
pagination: {
|
|
21136
|
+
limit: number;
|
|
21137
|
+
page: number;
|
|
21138
|
+
total: number;
|
|
21139
|
+
totalPages: number;
|
|
21140
|
+
} | null;
|
|
21141
|
+
sdkBehavior?: {
|
|
21142
|
+
flags: {
|
|
21143
|
+
[key: string]: unknown;
|
|
21144
|
+
};
|
|
21145
|
+
v: number;
|
|
21146
|
+
} | null;
|
|
21147
|
+
success: boolean;
|
|
21148
|
+
};
|
|
21149
|
+
};
|
|
21150
|
+
export type ProviderModelUsageGetProviderModelUsageResponse = ProviderModelUsageGetProviderModelUsageResponses[keyof ProviderModelUsageGetProviderModelUsageResponses];
|
|
21151
|
+
export type RoutingProvidersListRoutingModelsData = {
|
|
21152
|
+
body?: never;
|
|
21153
|
+
path: {
|
|
21154
|
+
projectId: string;
|
|
21155
|
+
providerId: string;
|
|
21156
|
+
};
|
|
21157
|
+
query?: {
|
|
21158
|
+
page?: number | null;
|
|
21159
|
+
limit?: number | null;
|
|
21160
|
+
};
|
|
21161
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/models';
|
|
21162
|
+
};
|
|
21163
|
+
export type RoutingProvidersListRoutingModelsErrors = {
|
|
21164
|
+
/**
|
|
21165
|
+
* BadRequestError
|
|
21166
|
+
*/
|
|
21167
|
+
400: BadRequestError;
|
|
21168
|
+
/**
|
|
21169
|
+
* UnauthorizedError
|
|
21170
|
+
*/
|
|
21171
|
+
401: UnauthorizedError;
|
|
21172
|
+
/**
|
|
21173
|
+
* ForbiddenError
|
|
21174
|
+
*/
|
|
21175
|
+
403: ForbiddenError;
|
|
21176
|
+
/**
|
|
21177
|
+
* NotFoundError
|
|
21178
|
+
*/
|
|
21179
|
+
404: NotFoundError;
|
|
21180
|
+
/**
|
|
21181
|
+
* ConflictError
|
|
21182
|
+
*/
|
|
21183
|
+
409: ConflictError;
|
|
21184
|
+
/**
|
|
21185
|
+
* GoneError
|
|
21186
|
+
*/
|
|
21187
|
+
410: GoneError;
|
|
21188
|
+
/**
|
|
21189
|
+
* ContentTooLargeError
|
|
21190
|
+
*/
|
|
21191
|
+
413: ContentTooLargeError;
|
|
21192
|
+
/**
|
|
21193
|
+
* MisdirectedRequestError
|
|
21194
|
+
*/
|
|
21195
|
+
421: MisdirectedRequestError;
|
|
21196
|
+
/**
|
|
21197
|
+
* UnprocessableEntityError
|
|
21198
|
+
*/
|
|
21199
|
+
422: UnprocessableEntityError;
|
|
21200
|
+
/**
|
|
21201
|
+
* TooManyRequestsError
|
|
21202
|
+
*/
|
|
21203
|
+
429: TooManyRequestsError;
|
|
21204
|
+
/**
|
|
21205
|
+
* InternalServerError
|
|
21206
|
+
*/
|
|
21207
|
+
500: InternalServerError;
|
|
21208
|
+
/**
|
|
21209
|
+
* ServiceUnavailableError
|
|
21210
|
+
*/
|
|
21211
|
+
503: ServiceUnavailableError;
|
|
21212
|
+
};
|
|
21213
|
+
export type RoutingProvidersListRoutingModelsError = RoutingProvidersListRoutingModelsErrors[keyof RoutingProvidersListRoutingModelsErrors];
|
|
21214
|
+
export type RoutingProvidersListRoutingModelsResponses = {
|
|
21215
|
+
/**
|
|
21216
|
+
* Success
|
|
21217
|
+
*/
|
|
21218
|
+
200: {
|
|
21219
|
+
code: number;
|
|
21220
|
+
data: Array<{
|
|
21221
|
+
catalogSlug?: string | null | null;
|
|
21222
|
+
createdAt: string;
|
|
21223
|
+
description: string | null;
|
|
21224
|
+
displayName: string | null;
|
|
21225
|
+
id: string;
|
|
21226
|
+
modelType: string | null;
|
|
21227
|
+
name: string;
|
|
21228
|
+
providerId: string;
|
|
21229
|
+
updatedAt: string;
|
|
21230
|
+
}> | null;
|
|
21231
|
+
error: {
|
|
21232
|
+
code: string;
|
|
21233
|
+
details?: unknown | null;
|
|
21234
|
+
message: string;
|
|
21235
|
+
rowErrors?: Array<{
|
|
21236
|
+
code: string;
|
|
21237
|
+
message: string;
|
|
21238
|
+
path: Array<string | number>;
|
|
21239
|
+
}> | null;
|
|
21240
|
+
} | null;
|
|
21241
|
+
pagination: {
|
|
21242
|
+
limit: number;
|
|
21243
|
+
page: number;
|
|
21244
|
+
total: number;
|
|
21245
|
+
totalPages: number;
|
|
21246
|
+
} | null;
|
|
21247
|
+
sdkBehavior?: {
|
|
21248
|
+
flags: {
|
|
21249
|
+
[key: string]: unknown;
|
|
21250
|
+
};
|
|
21251
|
+
v: number;
|
|
21252
|
+
} | null;
|
|
21253
|
+
success: boolean;
|
|
21254
|
+
};
|
|
21255
|
+
};
|
|
21256
|
+
export type RoutingProvidersListRoutingModelsResponse = RoutingProvidersListRoutingModelsResponses[keyof RoutingProvidersListRoutingModelsResponses];
|
|
21257
|
+
export type RoutingProvidersCreateRoutingModelData = {
|
|
21258
|
+
body: {
|
|
21259
|
+
catalogSlug?: string | null;
|
|
21260
|
+
description?: string | null;
|
|
21261
|
+
displayName?: string | null;
|
|
21262
|
+
modelType?: string | null;
|
|
21263
|
+
name: string;
|
|
21264
|
+
};
|
|
21265
|
+
path: {
|
|
21266
|
+
projectId: string;
|
|
21267
|
+
providerId: string;
|
|
21268
|
+
};
|
|
21269
|
+
query?: never;
|
|
21270
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/models';
|
|
21271
|
+
};
|
|
21272
|
+
export type RoutingProvidersCreateRoutingModelErrors = {
|
|
21273
|
+
/**
|
|
21274
|
+
* BadRequestError
|
|
21275
|
+
*/
|
|
21276
|
+
400: BadRequestError;
|
|
21277
|
+
/**
|
|
21278
|
+
* UnauthorizedError
|
|
21279
|
+
*/
|
|
21280
|
+
401: UnauthorizedError;
|
|
21281
|
+
/**
|
|
21282
|
+
* ForbiddenError
|
|
21283
|
+
*/
|
|
21284
|
+
403: ForbiddenError;
|
|
21285
|
+
/**
|
|
21286
|
+
* NotFoundError
|
|
21287
|
+
*/
|
|
21288
|
+
404: NotFoundError;
|
|
21289
|
+
/**
|
|
21290
|
+
* ConflictError
|
|
21291
|
+
*/
|
|
21292
|
+
409: ConflictError;
|
|
21293
|
+
/**
|
|
21294
|
+
* GoneError
|
|
21295
|
+
*/
|
|
21296
|
+
410: GoneError;
|
|
21297
|
+
/**
|
|
21298
|
+
* ContentTooLargeError
|
|
21299
|
+
*/
|
|
21300
|
+
413: ContentTooLargeError;
|
|
21301
|
+
/**
|
|
21302
|
+
* MisdirectedRequestError
|
|
21303
|
+
*/
|
|
21304
|
+
421: MisdirectedRequestError;
|
|
21305
|
+
/**
|
|
21306
|
+
* UnprocessableEntityError
|
|
21307
|
+
*/
|
|
21308
|
+
422: UnprocessableEntityError;
|
|
21309
|
+
/**
|
|
21310
|
+
* TooManyRequestsError
|
|
21311
|
+
*/
|
|
21312
|
+
429: TooManyRequestsError;
|
|
21313
|
+
/**
|
|
21314
|
+
* InternalServerError
|
|
21315
|
+
*/
|
|
21316
|
+
500: InternalServerError;
|
|
21317
|
+
/**
|
|
21318
|
+
* ServiceUnavailableError
|
|
21319
|
+
*/
|
|
21320
|
+
503: ServiceUnavailableError;
|
|
21321
|
+
};
|
|
21322
|
+
export type RoutingProvidersCreateRoutingModelError = RoutingProvidersCreateRoutingModelErrors[keyof RoutingProvidersCreateRoutingModelErrors];
|
|
21323
|
+
export type RoutingProvidersCreateRoutingModelResponses = {
|
|
21324
|
+
/**
|
|
21325
|
+
* Success
|
|
21326
|
+
*/
|
|
21327
|
+
201: {
|
|
21328
|
+
code: number;
|
|
21329
|
+
data: {
|
|
21330
|
+
catalogSlug?: string | null | null;
|
|
21331
|
+
createdAt: string;
|
|
21332
|
+
description: string | null;
|
|
21333
|
+
displayName: string | null;
|
|
21334
|
+
id: string;
|
|
21335
|
+
modelType: string | null;
|
|
21336
|
+
name: string;
|
|
21337
|
+
providerId: string;
|
|
21338
|
+
publishWarning?: {
|
|
21339
|
+
errors: Array<{
|
|
21340
|
+
entity: string;
|
|
21341
|
+
message: string;
|
|
21342
|
+
rule?: string | null;
|
|
21343
|
+
}>;
|
|
21344
|
+
kind: 'validation';
|
|
21345
|
+
} | null;
|
|
21346
|
+
updatedAt: string;
|
|
21347
|
+
} | null;
|
|
21348
|
+
error: {
|
|
21349
|
+
code: string;
|
|
21350
|
+
details?: unknown | null;
|
|
21351
|
+
message: string;
|
|
21352
|
+
rowErrors?: Array<{
|
|
21353
|
+
code: string;
|
|
21354
|
+
message: string;
|
|
21355
|
+
path: Array<string | number>;
|
|
21356
|
+
}> | null;
|
|
21357
|
+
} | null;
|
|
21358
|
+
pagination: {
|
|
21359
|
+
limit: number;
|
|
21360
|
+
page: number;
|
|
21361
|
+
total: number;
|
|
21362
|
+
totalPages: number;
|
|
21363
|
+
} | null;
|
|
21364
|
+
sdkBehavior?: {
|
|
21365
|
+
flags: {
|
|
21366
|
+
[key: string]: unknown;
|
|
21367
|
+
};
|
|
21368
|
+
v: number;
|
|
21369
|
+
} | null;
|
|
21370
|
+
success: boolean;
|
|
21371
|
+
};
|
|
21372
|
+
};
|
|
21373
|
+
export type RoutingProvidersCreateRoutingModelResponse = RoutingProvidersCreateRoutingModelResponses[keyof RoutingProvidersCreateRoutingModelResponses];
|
|
21374
|
+
export type RoutingProvidersDeleteRoutingModelData = {
|
|
21375
|
+
body?: never;
|
|
21376
|
+
path: {
|
|
21377
|
+
projectId: string;
|
|
21378
|
+
providerId: string;
|
|
21379
|
+
modelId: string;
|
|
21380
|
+
};
|
|
21381
|
+
query?: never;
|
|
21382
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/models/{modelId}';
|
|
21383
|
+
};
|
|
21384
|
+
export type RoutingProvidersDeleteRoutingModelErrors = {
|
|
21385
|
+
/**
|
|
21386
|
+
* BadRequestError
|
|
21387
|
+
*/
|
|
21388
|
+
400: BadRequestError;
|
|
21389
|
+
/**
|
|
21390
|
+
* UnauthorizedError
|
|
21391
|
+
*/
|
|
21392
|
+
401: UnauthorizedError;
|
|
21393
|
+
/**
|
|
21394
|
+
* ForbiddenError
|
|
21395
|
+
*/
|
|
21396
|
+
403: ForbiddenError;
|
|
21397
|
+
/**
|
|
21398
|
+
* NotFoundError
|
|
21399
|
+
*/
|
|
21400
|
+
404: NotFoundError;
|
|
21401
|
+
/**
|
|
21402
|
+
* ConflictError
|
|
21403
|
+
*/
|
|
21404
|
+
409: ConflictError;
|
|
21405
|
+
/**
|
|
21406
|
+
* GoneError
|
|
21407
|
+
*/
|
|
21408
|
+
410: GoneError;
|
|
21409
|
+
/**
|
|
21410
|
+
* ContentTooLargeError
|
|
21411
|
+
*/
|
|
21412
|
+
413: ContentTooLargeError;
|
|
21413
|
+
/**
|
|
21414
|
+
* MisdirectedRequestError
|
|
21415
|
+
*/
|
|
21416
|
+
421: MisdirectedRequestError;
|
|
21417
|
+
/**
|
|
21418
|
+
* UnprocessableEntityError
|
|
21419
|
+
*/
|
|
21420
|
+
422: UnprocessableEntityError;
|
|
21421
|
+
/**
|
|
21422
|
+
* TooManyRequestsError
|
|
21423
|
+
*/
|
|
21424
|
+
429: TooManyRequestsError;
|
|
21425
|
+
/**
|
|
21426
|
+
* InternalServerError
|
|
21427
|
+
*/
|
|
21428
|
+
500: InternalServerError;
|
|
21429
|
+
/**
|
|
21430
|
+
* ServiceUnavailableError
|
|
21431
|
+
*/
|
|
21432
|
+
503: ServiceUnavailableError;
|
|
21433
|
+
};
|
|
21434
|
+
export type RoutingProvidersDeleteRoutingModelError = RoutingProvidersDeleteRoutingModelErrors[keyof RoutingProvidersDeleteRoutingModelErrors];
|
|
21435
|
+
export type RoutingProvidersDeleteRoutingModelResponses = {
|
|
21436
|
+
/**
|
|
21437
|
+
* Success
|
|
21438
|
+
*/
|
|
21439
|
+
200: {
|
|
21440
|
+
code: number;
|
|
21441
|
+
data: {
|
|
21442
|
+
deleted: boolean;
|
|
21443
|
+
publishWarning?: {
|
|
21444
|
+
errors: Array<{
|
|
21445
|
+
entity: string;
|
|
21446
|
+
message: string;
|
|
21447
|
+
rule?: string | null;
|
|
21448
|
+
}>;
|
|
21449
|
+
kind: 'validation';
|
|
21450
|
+
} | null;
|
|
21451
|
+
} | null;
|
|
21452
|
+
error: {
|
|
21453
|
+
code: string;
|
|
21454
|
+
details?: unknown | null;
|
|
21455
|
+
message: string;
|
|
21456
|
+
rowErrors?: Array<{
|
|
21457
|
+
code: string;
|
|
21458
|
+
message: string;
|
|
21459
|
+
path: Array<string | number>;
|
|
21460
|
+
}> | null;
|
|
21461
|
+
} | null;
|
|
21462
|
+
pagination: {
|
|
21463
|
+
limit: number;
|
|
21464
|
+
page: number;
|
|
21465
|
+
total: number;
|
|
21466
|
+
totalPages: number;
|
|
21467
|
+
} | null;
|
|
21468
|
+
sdkBehavior?: {
|
|
21469
|
+
flags: {
|
|
21470
|
+
[key: string]: unknown;
|
|
21471
|
+
};
|
|
21472
|
+
v: number;
|
|
21473
|
+
} | null;
|
|
21474
|
+
success: boolean;
|
|
21475
|
+
};
|
|
21476
|
+
};
|
|
21477
|
+
export type RoutingProvidersDeleteRoutingModelResponse = RoutingProvidersDeleteRoutingModelResponses[keyof RoutingProvidersDeleteRoutingModelResponses];
|
|
21478
|
+
export type RoutingProvidersUpdateRoutingModelData = {
|
|
21479
|
+
body: {
|
|
21480
|
+
description?: string | null;
|
|
21481
|
+
displayName?: string | null;
|
|
21482
|
+
modelType?: string | null;
|
|
21483
|
+
};
|
|
21484
|
+
path: {
|
|
21485
|
+
projectId: string;
|
|
21486
|
+
providerId: string;
|
|
21487
|
+
modelId: string;
|
|
21488
|
+
};
|
|
21489
|
+
query?: never;
|
|
21490
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/models/{modelId}';
|
|
21491
|
+
};
|
|
21492
|
+
export type RoutingProvidersUpdateRoutingModelErrors = {
|
|
21493
|
+
/**
|
|
21494
|
+
* BadRequestError
|
|
21495
|
+
*/
|
|
21496
|
+
400: BadRequestError;
|
|
21497
|
+
/**
|
|
21498
|
+
* UnauthorizedError
|
|
21499
|
+
*/
|
|
21500
|
+
401: UnauthorizedError;
|
|
21501
|
+
/**
|
|
21502
|
+
* ForbiddenError
|
|
21503
|
+
*/
|
|
21504
|
+
403: ForbiddenError;
|
|
21505
|
+
/**
|
|
21506
|
+
* NotFoundError
|
|
21507
|
+
*/
|
|
21508
|
+
404: NotFoundError;
|
|
21509
|
+
/**
|
|
21510
|
+
* ConflictError
|
|
21511
|
+
*/
|
|
21512
|
+
409: ConflictError;
|
|
21513
|
+
/**
|
|
21514
|
+
* GoneError
|
|
21515
|
+
*/
|
|
21516
|
+
410: GoneError;
|
|
21517
|
+
/**
|
|
21518
|
+
* ContentTooLargeError
|
|
21519
|
+
*/
|
|
21520
|
+
413: ContentTooLargeError;
|
|
21521
|
+
/**
|
|
21522
|
+
* MisdirectedRequestError
|
|
21523
|
+
*/
|
|
21524
|
+
421: MisdirectedRequestError;
|
|
21525
|
+
/**
|
|
21526
|
+
* UnprocessableEntityError
|
|
21527
|
+
*/
|
|
21528
|
+
422: UnprocessableEntityError;
|
|
21529
|
+
/**
|
|
21530
|
+
* TooManyRequestsError
|
|
21531
|
+
*/
|
|
21532
|
+
429: TooManyRequestsError;
|
|
21533
|
+
/**
|
|
21534
|
+
* InternalServerError
|
|
21535
|
+
*/
|
|
21536
|
+
500: InternalServerError;
|
|
21537
|
+
/**
|
|
21538
|
+
* ServiceUnavailableError
|
|
21539
|
+
*/
|
|
21540
|
+
503: ServiceUnavailableError;
|
|
21541
|
+
};
|
|
21542
|
+
export type RoutingProvidersUpdateRoutingModelError = RoutingProvidersUpdateRoutingModelErrors[keyof RoutingProvidersUpdateRoutingModelErrors];
|
|
21543
|
+
export type RoutingProvidersUpdateRoutingModelResponses = {
|
|
21544
|
+
/**
|
|
21545
|
+
* Success
|
|
21546
|
+
*/
|
|
21547
|
+
200: {
|
|
21548
|
+
code: number;
|
|
21549
|
+
data: {
|
|
21550
|
+
catalogSlug?: string | null | null;
|
|
21551
|
+
createdAt: string;
|
|
21552
|
+
description: string | null;
|
|
21553
|
+
displayName: string | null;
|
|
21554
|
+
id: string;
|
|
21555
|
+
modelType: string | null;
|
|
21556
|
+
name: string;
|
|
21557
|
+
providerId: string;
|
|
21558
|
+
publishWarning?: {
|
|
21559
|
+
errors: Array<{
|
|
21560
|
+
entity: string;
|
|
21561
|
+
message: string;
|
|
21562
|
+
rule?: string | null;
|
|
21563
|
+
}>;
|
|
21564
|
+
kind: 'validation';
|
|
21565
|
+
} | null;
|
|
21566
|
+
updatedAt: string;
|
|
21567
|
+
} | null;
|
|
21568
|
+
error: {
|
|
21569
|
+
code: string;
|
|
21570
|
+
details?: unknown | null;
|
|
21571
|
+
message: string;
|
|
21572
|
+
rowErrors?: Array<{
|
|
21573
|
+
code: string;
|
|
21574
|
+
message: string;
|
|
21575
|
+
path: Array<string | number>;
|
|
21576
|
+
}> | null;
|
|
21577
|
+
} | null;
|
|
21578
|
+
pagination: {
|
|
21579
|
+
limit: number;
|
|
21580
|
+
page: number;
|
|
21581
|
+
total: number;
|
|
21582
|
+
totalPages: number;
|
|
21583
|
+
} | null;
|
|
21584
|
+
sdkBehavior?: {
|
|
21585
|
+
flags: {
|
|
21586
|
+
[key: string]: unknown;
|
|
21587
|
+
};
|
|
21588
|
+
v: number;
|
|
21589
|
+
} | null;
|
|
21590
|
+
success: boolean;
|
|
21591
|
+
};
|
|
21592
|
+
};
|
|
21593
|
+
export type RoutingProvidersUpdateRoutingModelResponse = RoutingProvidersUpdateRoutingModelResponses[keyof RoutingProvidersUpdateRoutingModelResponses];
|
|
21594
|
+
export type RoutingProvidersRestoreRoutingModelData = {
|
|
21595
|
+
body?: never;
|
|
21596
|
+
path: {
|
|
21597
|
+
projectId: string;
|
|
21598
|
+
providerId: string;
|
|
21599
|
+
modelId: string;
|
|
21600
|
+
};
|
|
21601
|
+
query?: never;
|
|
21602
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/models/{modelId}/restore';
|
|
21603
|
+
};
|
|
21604
|
+
export type RoutingProvidersRestoreRoutingModelErrors = {
|
|
21605
|
+
/**
|
|
21606
|
+
* BadRequestError
|
|
21607
|
+
*/
|
|
21608
|
+
400: BadRequestError;
|
|
21609
|
+
/**
|
|
21610
|
+
* UnauthorizedError
|
|
21611
|
+
*/
|
|
21612
|
+
401: UnauthorizedError;
|
|
21613
|
+
/**
|
|
21614
|
+
* ForbiddenError
|
|
21615
|
+
*/
|
|
21616
|
+
403: ForbiddenError;
|
|
21617
|
+
/**
|
|
21618
|
+
* NotFoundError
|
|
21619
|
+
*/
|
|
21620
|
+
404: NotFoundError;
|
|
21621
|
+
/**
|
|
21622
|
+
* ConflictError
|
|
21623
|
+
*/
|
|
21624
|
+
409: ConflictError;
|
|
21625
|
+
/**
|
|
21626
|
+
* GoneError
|
|
21627
|
+
*/
|
|
21628
|
+
410: GoneError;
|
|
21629
|
+
/**
|
|
21630
|
+
* ContentTooLargeError
|
|
21631
|
+
*/
|
|
21632
|
+
413: ContentTooLargeError;
|
|
21633
|
+
/**
|
|
21634
|
+
* MisdirectedRequestError
|
|
21635
|
+
*/
|
|
21636
|
+
421: MisdirectedRequestError;
|
|
21637
|
+
/**
|
|
21638
|
+
* UnprocessableEntityError
|
|
21639
|
+
*/
|
|
21640
|
+
422: UnprocessableEntityError;
|
|
21641
|
+
/**
|
|
21642
|
+
* TooManyRequestsError
|
|
21643
|
+
*/
|
|
21644
|
+
429: TooManyRequestsError;
|
|
21645
|
+
/**
|
|
21646
|
+
* InternalServerError
|
|
21647
|
+
*/
|
|
21648
|
+
500: InternalServerError;
|
|
21649
|
+
/**
|
|
21650
|
+
* ServiceUnavailableError
|
|
21651
|
+
*/
|
|
21652
|
+
503: ServiceUnavailableError;
|
|
21653
|
+
};
|
|
21654
|
+
export type RoutingProvidersRestoreRoutingModelError = RoutingProvidersRestoreRoutingModelErrors[keyof RoutingProvidersRestoreRoutingModelErrors];
|
|
21655
|
+
export type RoutingProvidersRestoreRoutingModelResponses = {
|
|
21656
|
+
/**
|
|
21657
|
+
* Success
|
|
21658
|
+
*/
|
|
21659
|
+
200: {
|
|
21660
|
+
code: number;
|
|
21661
|
+
data: {
|
|
21662
|
+
catalogSlug?: string | null | null;
|
|
20823
21663
|
createdAt: string;
|
|
20824
21664
|
description: string | null;
|
|
20825
21665
|
displayName: string | null;
|
|
@@ -21036,6 +21876,7 @@ export type ProviderConfigVersionsListProviderConfigVersionsResponses = {
|
|
|
21036
21876
|
contentHash: string;
|
|
21037
21877
|
createdAt: string;
|
|
21038
21878
|
createdBy: string | null;
|
|
21879
|
+
id: string;
|
|
21039
21880
|
liveInEnvSlugs: Array<string>;
|
|
21040
21881
|
version: number;
|
|
21041
21882
|
}> | null;
|