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