@to11ai/sdk 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/generated/index.d.ts +1 -1
- package/dist/generated/types.gen.d.ts +738 -75
- package/dist/generated/zod.gen.d.ts +446 -64
- package/dist/prompts/types.d.ts +1 -1
- package/package.json +1 -1
- package/src/generated/index.ts +1 -1
- package/src/generated/types.gen.ts +770 -77
- package/src/generated/zod.gen.ts +469 -82
- package/src/prompts/types.ts +1 -1
|
@@ -208,6 +208,7 @@ export type PromptLabelEvent = {
|
|
|
208
208
|
export type PromptLabelPointer = {
|
|
209
209
|
label: string;
|
|
210
210
|
promptId: string;
|
|
211
|
+
reason: string;
|
|
211
212
|
updatedAt: string;
|
|
212
213
|
updatedByDisplayName: string | null;
|
|
213
214
|
updatedByUserId: string;
|
|
@@ -226,7 +227,7 @@ export type PromptRelease = {
|
|
|
226
227
|
id: string;
|
|
227
228
|
priorReleaseId: string | null;
|
|
228
229
|
promptId: string;
|
|
229
|
-
reason: string
|
|
230
|
+
reason: string;
|
|
230
231
|
strategy: 'single' | 'weighted';
|
|
231
232
|
versionId: string;
|
|
232
233
|
};
|
|
@@ -3471,6 +3472,188 @@ export type OrganizationsAcceptOrganizationInvitationResponses = {
|
|
|
3471
3472
|
};
|
|
3472
3473
|
};
|
|
3473
3474
|
export type OrganizationsAcceptOrganizationInvitationResponse = OrganizationsAcceptOrganizationInvitationResponses[keyof OrganizationsAcceptOrganizationInvitationResponses];
|
|
3475
|
+
export type OrganizationsAcceptPendingOrganizationInvitationsData = {
|
|
3476
|
+
body?: never;
|
|
3477
|
+
path?: never;
|
|
3478
|
+
query?: never;
|
|
3479
|
+
url: '/v1/invitations/accept-pending';
|
|
3480
|
+
};
|
|
3481
|
+
export type OrganizationsAcceptPendingOrganizationInvitationsErrors = {
|
|
3482
|
+
/**
|
|
3483
|
+
* BadRequestError
|
|
3484
|
+
*/
|
|
3485
|
+
400: BadRequestError;
|
|
3486
|
+
/**
|
|
3487
|
+
* UnauthorizedError
|
|
3488
|
+
*/
|
|
3489
|
+
401: UnauthorizedError;
|
|
3490
|
+
/**
|
|
3491
|
+
* ForbiddenError
|
|
3492
|
+
*/
|
|
3493
|
+
403: ForbiddenError;
|
|
3494
|
+
/**
|
|
3495
|
+
* NotFoundError
|
|
3496
|
+
*/
|
|
3497
|
+
404: NotFoundError;
|
|
3498
|
+
/**
|
|
3499
|
+
* ConflictError
|
|
3500
|
+
*/
|
|
3501
|
+
409: ConflictError;
|
|
3502
|
+
/**
|
|
3503
|
+
* GoneError
|
|
3504
|
+
*/
|
|
3505
|
+
410: GoneError;
|
|
3506
|
+
/**
|
|
3507
|
+
* MisdirectedRequestError
|
|
3508
|
+
*/
|
|
3509
|
+
421: MisdirectedRequestError;
|
|
3510
|
+
/**
|
|
3511
|
+
* UnprocessableEntityError
|
|
3512
|
+
*/
|
|
3513
|
+
422: UnprocessableEntityError;
|
|
3514
|
+
/**
|
|
3515
|
+
* TooManyRequestsError
|
|
3516
|
+
*/
|
|
3517
|
+
429: TooManyRequestsError;
|
|
3518
|
+
/**
|
|
3519
|
+
* InternalServerError
|
|
3520
|
+
*/
|
|
3521
|
+
500: InternalServerError;
|
|
3522
|
+
/**
|
|
3523
|
+
* ServiceUnavailableError
|
|
3524
|
+
*/
|
|
3525
|
+
503: ServiceUnavailableError;
|
|
3526
|
+
};
|
|
3527
|
+
export type OrganizationsAcceptPendingOrganizationInvitationsError = OrganizationsAcceptPendingOrganizationInvitationsErrors[keyof OrganizationsAcceptPendingOrganizationInvitationsErrors];
|
|
3528
|
+
export type OrganizationsAcceptPendingOrganizationInvitationsResponses = {
|
|
3529
|
+
/**
|
|
3530
|
+
* Success
|
|
3531
|
+
*/
|
|
3532
|
+
200: {
|
|
3533
|
+
code: number;
|
|
3534
|
+
data: {
|
|
3535
|
+
acceptedOrganizationIds: Array<string>;
|
|
3536
|
+
} | null;
|
|
3537
|
+
error: {
|
|
3538
|
+
code: string;
|
|
3539
|
+
details?: unknown | null;
|
|
3540
|
+
message: string;
|
|
3541
|
+
rowErrors?: Array<{
|
|
3542
|
+
code: string;
|
|
3543
|
+
message: string;
|
|
3544
|
+
path: Array<string | number>;
|
|
3545
|
+
}> | null;
|
|
3546
|
+
} | null;
|
|
3547
|
+
pagination: {
|
|
3548
|
+
limit: number;
|
|
3549
|
+
page: number;
|
|
3550
|
+
total: number;
|
|
3551
|
+
totalPages: number;
|
|
3552
|
+
} | null;
|
|
3553
|
+
sdkBehavior?: {
|
|
3554
|
+
flags: {
|
|
3555
|
+
[key: string]: unknown;
|
|
3556
|
+
};
|
|
3557
|
+
v: number;
|
|
3558
|
+
} | null;
|
|
3559
|
+
success: boolean;
|
|
3560
|
+
};
|
|
3561
|
+
};
|
|
3562
|
+
export type OrganizationsAcceptPendingOrganizationInvitationsResponse = OrganizationsAcceptPendingOrganizationInvitationsResponses[keyof OrganizationsAcceptPendingOrganizationInvitationsResponses];
|
|
3563
|
+
export type OrganizationsGetOrganizationInvitationDetailsData = {
|
|
3564
|
+
body: {
|
|
3565
|
+
token: string;
|
|
3566
|
+
};
|
|
3567
|
+
path?: never;
|
|
3568
|
+
query?: never;
|
|
3569
|
+
url: '/v1/invitations/details';
|
|
3570
|
+
};
|
|
3571
|
+
export type OrganizationsGetOrganizationInvitationDetailsErrors = {
|
|
3572
|
+
/**
|
|
3573
|
+
* BadRequestError
|
|
3574
|
+
*/
|
|
3575
|
+
400: BadRequestError;
|
|
3576
|
+
/**
|
|
3577
|
+
* UnauthorizedError
|
|
3578
|
+
*/
|
|
3579
|
+
401: UnauthorizedError;
|
|
3580
|
+
/**
|
|
3581
|
+
* ForbiddenError
|
|
3582
|
+
*/
|
|
3583
|
+
403: ForbiddenError;
|
|
3584
|
+
/**
|
|
3585
|
+
* NotFoundError
|
|
3586
|
+
*/
|
|
3587
|
+
404: NotFoundError;
|
|
3588
|
+
/**
|
|
3589
|
+
* ConflictError
|
|
3590
|
+
*/
|
|
3591
|
+
409: ConflictError;
|
|
3592
|
+
/**
|
|
3593
|
+
* GoneError
|
|
3594
|
+
*/
|
|
3595
|
+
410: GoneError;
|
|
3596
|
+
/**
|
|
3597
|
+
* MisdirectedRequestError
|
|
3598
|
+
*/
|
|
3599
|
+
421: MisdirectedRequestError;
|
|
3600
|
+
/**
|
|
3601
|
+
* UnprocessableEntityError
|
|
3602
|
+
*/
|
|
3603
|
+
422: UnprocessableEntityError;
|
|
3604
|
+
/**
|
|
3605
|
+
* TooManyRequestsError
|
|
3606
|
+
*/
|
|
3607
|
+
429: TooManyRequestsError;
|
|
3608
|
+
/**
|
|
3609
|
+
* InternalServerError
|
|
3610
|
+
*/
|
|
3611
|
+
500: InternalServerError;
|
|
3612
|
+
/**
|
|
3613
|
+
* ServiceUnavailableError
|
|
3614
|
+
*/
|
|
3615
|
+
503: ServiceUnavailableError;
|
|
3616
|
+
};
|
|
3617
|
+
export type OrganizationsGetOrganizationInvitationDetailsError = OrganizationsGetOrganizationInvitationDetailsErrors[keyof OrganizationsGetOrganizationInvitationDetailsErrors];
|
|
3618
|
+
export type OrganizationsGetOrganizationInvitationDetailsResponses = {
|
|
3619
|
+
/**
|
|
3620
|
+
* Success
|
|
3621
|
+
*/
|
|
3622
|
+
200: {
|
|
3623
|
+
code: number;
|
|
3624
|
+
data: {
|
|
3625
|
+
details: {
|
|
3626
|
+
inviterEmail: string | null;
|
|
3627
|
+
inviterName: string | null;
|
|
3628
|
+
organizationName: string;
|
|
3629
|
+
} | null;
|
|
3630
|
+
} | null;
|
|
3631
|
+
error: {
|
|
3632
|
+
code: string;
|
|
3633
|
+
details?: unknown | null;
|
|
3634
|
+
message: string;
|
|
3635
|
+
rowErrors?: Array<{
|
|
3636
|
+
code: string;
|
|
3637
|
+
message: string;
|
|
3638
|
+
path: Array<string | number>;
|
|
3639
|
+
}> | null;
|
|
3640
|
+
} | null;
|
|
3641
|
+
pagination: {
|
|
3642
|
+
limit: number;
|
|
3643
|
+
page: number;
|
|
3644
|
+
total: number;
|
|
3645
|
+
totalPages: number;
|
|
3646
|
+
} | null;
|
|
3647
|
+
sdkBehavior?: {
|
|
3648
|
+
flags: {
|
|
3649
|
+
[key: string]: unknown;
|
|
3650
|
+
};
|
|
3651
|
+
v: number;
|
|
3652
|
+
} | null;
|
|
3653
|
+
success: boolean;
|
|
3654
|
+
};
|
|
3655
|
+
};
|
|
3656
|
+
export type OrganizationsGetOrganizationInvitationDetailsResponse = OrganizationsGetOrganizationInvitationDetailsResponses[keyof OrganizationsGetOrganizationInvitationDetailsResponses];
|
|
3474
3657
|
export type ApiKeysListApiKeysSuperData = {
|
|
3475
3658
|
body?: never;
|
|
3476
3659
|
path?: never;
|
|
@@ -7681,27 +7864,14 @@ export type WorkspacesCreateWorkspaceResponses = {
|
|
|
7681
7864
|
201: {
|
|
7682
7865
|
code: number;
|
|
7683
7866
|
data: {
|
|
7684
|
-
|
|
7685
|
-
|
|
7686
|
-
|
|
7687
|
-
|
|
7688
|
-
|
|
7689
|
-
|
|
7690
|
-
|
|
7691
|
-
|
|
7692
|
-
updatedAt: string;
|
|
7693
|
-
workspaceId: string;
|
|
7694
|
-
};
|
|
7695
|
-
workspace: {
|
|
7696
|
-
allowPlatformDiscovery: boolean;
|
|
7697
|
-
createdAt: string;
|
|
7698
|
-
id: string;
|
|
7699
|
-
name: string;
|
|
7700
|
-
organizationId: string;
|
|
7701
|
-
slug: string;
|
|
7702
|
-
status: 'active' | 'archived' | 'deleted';
|
|
7703
|
-
updatedAt: string;
|
|
7704
|
-
};
|
|
7867
|
+
allowPlatformDiscovery: boolean;
|
|
7868
|
+
createdAt: string;
|
|
7869
|
+
id: string;
|
|
7870
|
+
name: string;
|
|
7871
|
+
organizationId: string;
|
|
7872
|
+
slug: string;
|
|
7873
|
+
status: 'active' | 'archived' | 'deleted';
|
|
7874
|
+
updatedAt: string;
|
|
7705
7875
|
} | null;
|
|
7706
7876
|
error: {
|
|
7707
7877
|
code: string;
|
|
@@ -9500,7 +9670,7 @@ export type CredentialsDirectoryListProjectCredentialsDirectoryData = {
|
|
|
9500
9670
|
};
|
|
9501
9671
|
query?: {
|
|
9502
9672
|
catalog_id?: string | null;
|
|
9503
|
-
lifecycle_status?: 'active' | null;
|
|
9673
|
+
lifecycle_status?: 'active' | 'deleted' | null;
|
|
9504
9674
|
attached_provider_count?: '0' | '1' | '2+' | null;
|
|
9505
9675
|
limit?: string | null;
|
|
9506
9676
|
cursor?: string | null;
|
|
@@ -9576,7 +9746,7 @@ export type CredentialsDirectoryListProjectCredentialsDirectoryResponses = {
|
|
|
9576
9746
|
};
|
|
9577
9747
|
createdAt: string;
|
|
9578
9748
|
createdBy: string | null;
|
|
9579
|
-
credentialType:
|
|
9749
|
+
credentialType: 'api-key' | 'oauth' | 'iam-role' | 'access-key' | 'service-account' | 'none' | 'passthrough';
|
|
9580
9750
|
currentActivations: Array<{
|
|
9581
9751
|
activeFrom: string;
|
|
9582
9752
|
activeTo: string | null;
|
|
@@ -9590,7 +9760,7 @@ export type CredentialsDirectoryListProjectCredentialsDirectoryResponses = {
|
|
|
9590
9760
|
keyLast4: string;
|
|
9591
9761
|
label: string | null;
|
|
9592
9762
|
lastRotationAt: string | null;
|
|
9593
|
-
lifecycleStatus: 'active';
|
|
9763
|
+
lifecycleStatus: 'active' | 'deleted';
|
|
9594
9764
|
projectId: string;
|
|
9595
9765
|
}>;
|
|
9596
9766
|
pagination: {
|
|
@@ -13179,7 +13349,7 @@ export type PromptsListPromptsData = {
|
|
|
13179
13349
|
search?: string | null;
|
|
13180
13350
|
sortDir?: 'asc' | 'desc' | null;
|
|
13181
13351
|
status?: string | null;
|
|
13182
|
-
sortBy?: 'createdAt' | 'updatedAt' | 'name' | 'status' | 'latestVersion' | null;
|
|
13352
|
+
sortBy?: 'createdAt' | 'updatedAt' | 'name' | 'status' | 'latestVersion' | 'environments' | null;
|
|
13183
13353
|
tags?: string | null;
|
|
13184
13354
|
environment?: string | null;
|
|
13185
13355
|
};
|
|
@@ -13254,6 +13424,7 @@ export type PromptsListPromptsResponses = {
|
|
|
13254
13424
|
lastModifiedAt: string;
|
|
13255
13425
|
lastModifiedByDisplayName: string | null;
|
|
13256
13426
|
lastModifiedByImage: string | null;
|
|
13427
|
+
lastModifiedByType: 'user' | 'api_key' | 'unknown' | null;
|
|
13257
13428
|
lastModifiedByUserId: string | null;
|
|
13258
13429
|
latestVersion: number | null;
|
|
13259
13430
|
name: string;
|
|
@@ -13983,7 +14154,9 @@ export type PromptsListPromptLabelsData = {
|
|
|
13983
14154
|
projectId: string;
|
|
13984
14155
|
promptId: string;
|
|
13985
14156
|
};
|
|
13986
|
-
query?:
|
|
14157
|
+
query?: {
|
|
14158
|
+
asOf?: string | null;
|
|
14159
|
+
};
|
|
13987
14160
|
url: '/v1/projects/{projectId}/prompts/{promptId}/labels';
|
|
13988
14161
|
};
|
|
13989
14162
|
export type PromptsListPromptLabelsErrors = {
|
|
@@ -14068,7 +14241,7 @@ export type PromptsListPromptLabelsResponses = {
|
|
|
14068
14241
|
export type PromptsListPromptLabelsResponse = PromptsListPromptLabelsResponses[keyof PromptsListPromptLabelsResponses];
|
|
14069
14242
|
export type PromptsMovePromptLabelData = {
|
|
14070
14243
|
body: {
|
|
14071
|
-
reason
|
|
14244
|
+
reason: string;
|
|
14072
14245
|
versionId: string;
|
|
14073
14246
|
};
|
|
14074
14247
|
path: {
|
|
@@ -14266,7 +14439,7 @@ export type PromptsListPromptLabelEventsByLabelResponses = {
|
|
|
14266
14439
|
export type PromptsListPromptLabelEventsByLabelResponse = PromptsListPromptLabelEventsByLabelResponses[keyof PromptsListPromptLabelEventsByLabelResponses];
|
|
14267
14440
|
export type PromptsSetWeightedReleaseData = {
|
|
14268
14441
|
body: {
|
|
14269
|
-
reason
|
|
14442
|
+
reason: string;
|
|
14270
14443
|
variants: Array<{
|
|
14271
14444
|
name: string;
|
|
14272
14445
|
versionId: string;
|
|
@@ -14361,16 +14534,18 @@ export type PromptsSetWeightedReleaseResponses = {
|
|
|
14361
14534
|
};
|
|
14362
14535
|
};
|
|
14363
14536
|
export type PromptsSetWeightedReleaseResponse = PromptsSetWeightedReleaseResponses[keyof PromptsSetWeightedReleaseResponses];
|
|
14364
|
-
export type
|
|
14537
|
+
export type PromptMetricsGetPromptRequestMetricsData = {
|
|
14365
14538
|
body?: never;
|
|
14366
14539
|
path: {
|
|
14367
14540
|
projectId: string;
|
|
14368
14541
|
promptId: string;
|
|
14369
14542
|
};
|
|
14370
|
-
query?:
|
|
14371
|
-
|
|
14543
|
+
query?: {
|
|
14544
|
+
window?: string | null;
|
|
14545
|
+
};
|
|
14546
|
+
url: '/v1/projects/{projectId}/prompts/{promptId}/request-metrics';
|
|
14372
14547
|
};
|
|
14373
|
-
export type
|
|
14548
|
+
export type PromptMetricsGetPromptRequestMetricsErrors = {
|
|
14374
14549
|
/**
|
|
14375
14550
|
* BadRequestError
|
|
14376
14551
|
*/
|
|
@@ -14416,14 +14591,25 @@ export type PromptsListPromptVersionsErrors = {
|
|
|
14416
14591
|
*/
|
|
14417
14592
|
503: ServiceUnavailableError;
|
|
14418
14593
|
};
|
|
14419
|
-
export type
|
|
14420
|
-
export type
|
|
14594
|
+
export type PromptMetricsGetPromptRequestMetricsError = PromptMetricsGetPromptRequestMetricsErrors[keyof PromptMetricsGetPromptRequestMetricsErrors];
|
|
14595
|
+
export type PromptMetricsGetPromptRequestMetricsResponses = {
|
|
14421
14596
|
/**
|
|
14422
14597
|
* Success
|
|
14423
14598
|
*/
|
|
14424
14599
|
200: {
|
|
14425
14600
|
code: number;
|
|
14426
|
-
data:
|
|
14601
|
+
data: {
|
|
14602
|
+
bucketMinutes: number;
|
|
14603
|
+
series: Array<{
|
|
14604
|
+
points: Array<{
|
|
14605
|
+
bucketStart: string;
|
|
14606
|
+
requests: number;
|
|
14607
|
+
}>;
|
|
14608
|
+
totalRequests: number;
|
|
14609
|
+
version: string;
|
|
14610
|
+
}>;
|
|
14611
|
+
windowHours: number;
|
|
14612
|
+
} | null;
|
|
14427
14613
|
error: {
|
|
14428
14614
|
code: string;
|
|
14429
14615
|
details?: unknown | null;
|
|
@@ -14449,17 +14635,9 @@ export type PromptsListPromptVersionsResponses = {
|
|
|
14449
14635
|
success: boolean;
|
|
14450
14636
|
};
|
|
14451
14637
|
};
|
|
14452
|
-
export type
|
|
14453
|
-
export type
|
|
14454
|
-
body
|
|
14455
|
-
allowBlockRemovals?: Array<string> | null;
|
|
14456
|
-
baseVersionId?: string | null;
|
|
14457
|
-
changelog?: string | null;
|
|
14458
|
-
format: 'text' | 'chat';
|
|
14459
|
-
modelConfig?: unknown | null;
|
|
14460
|
-
templateJson: unknown;
|
|
14461
|
-
variablesSchema?: unknown | null;
|
|
14462
|
-
};
|
|
14638
|
+
export type PromptMetricsGetPromptRequestMetricsResponse = PromptMetricsGetPromptRequestMetricsResponses[keyof PromptMetricsGetPromptRequestMetricsResponses];
|
|
14639
|
+
export type PromptsListPromptVersionsData = {
|
|
14640
|
+
body?: never;
|
|
14463
14641
|
path: {
|
|
14464
14642
|
projectId: string;
|
|
14465
14643
|
promptId: string;
|
|
@@ -14467,7 +14645,7 @@ export type PromptsCreatePromptVersionData = {
|
|
|
14467
14645
|
query?: never;
|
|
14468
14646
|
url: '/v1/projects/{projectId}/prompts/{promptId}/versions';
|
|
14469
14647
|
};
|
|
14470
|
-
export type
|
|
14648
|
+
export type PromptsListPromptVersionsErrors = {
|
|
14471
14649
|
/**
|
|
14472
14650
|
* BadRequestError
|
|
14473
14651
|
*/
|
|
@@ -14513,14 +14691,14 @@ export type PromptsCreatePromptVersionErrors = {
|
|
|
14513
14691
|
*/
|
|
14514
14692
|
503: ServiceUnavailableError;
|
|
14515
14693
|
};
|
|
14516
|
-
export type
|
|
14517
|
-
export type
|
|
14694
|
+
export type PromptsListPromptVersionsError = PromptsListPromptVersionsErrors[keyof PromptsListPromptVersionsErrors];
|
|
14695
|
+
export type PromptsListPromptVersionsResponses = {
|
|
14518
14696
|
/**
|
|
14519
14697
|
* Success
|
|
14520
14698
|
*/
|
|
14521
|
-
|
|
14699
|
+
200: {
|
|
14522
14700
|
code: number;
|
|
14523
|
-
data: PromptVersion | null;
|
|
14701
|
+
data: Array<PromptVersion> | null;
|
|
14524
14702
|
error: {
|
|
14525
14703
|
code: string;
|
|
14526
14704
|
details?: unknown | null;
|
|
@@ -14546,18 +14724,115 @@ export type PromptsCreatePromptVersionResponses = {
|
|
|
14546
14724
|
success: boolean;
|
|
14547
14725
|
};
|
|
14548
14726
|
};
|
|
14549
|
-
export type
|
|
14550
|
-
export type
|
|
14551
|
-
body
|
|
14727
|
+
export type PromptsListPromptVersionsResponse = PromptsListPromptVersionsResponses[keyof PromptsListPromptVersionsResponses];
|
|
14728
|
+
export type PromptsCreatePromptVersionData = {
|
|
14729
|
+
body: {
|
|
14730
|
+
allowBlockRemovals?: Array<string> | null;
|
|
14731
|
+
baseVersionId?: string | null;
|
|
14732
|
+
changelog?: string | null;
|
|
14733
|
+
format: 'text' | 'chat';
|
|
14734
|
+
modelConfig?: unknown | null;
|
|
14735
|
+
templateJson: unknown;
|
|
14736
|
+
variablesSchema?: unknown | null;
|
|
14737
|
+
};
|
|
14552
14738
|
path: {
|
|
14553
14739
|
projectId: string;
|
|
14554
14740
|
promptId: string;
|
|
14555
|
-
versionId: string;
|
|
14556
|
-
};
|
|
14557
|
-
query?: {
|
|
14558
|
-
against?: string | null;
|
|
14559
14741
|
};
|
|
14560
|
-
|
|
14742
|
+
query?: never;
|
|
14743
|
+
url: '/v1/projects/{projectId}/prompts/{promptId}/versions';
|
|
14744
|
+
};
|
|
14745
|
+
export type PromptsCreatePromptVersionErrors = {
|
|
14746
|
+
/**
|
|
14747
|
+
* BadRequestError
|
|
14748
|
+
*/
|
|
14749
|
+
400: BadRequestError;
|
|
14750
|
+
/**
|
|
14751
|
+
* UnauthorizedError
|
|
14752
|
+
*/
|
|
14753
|
+
401: UnauthorizedError;
|
|
14754
|
+
/**
|
|
14755
|
+
* ForbiddenError
|
|
14756
|
+
*/
|
|
14757
|
+
403: ForbiddenError;
|
|
14758
|
+
/**
|
|
14759
|
+
* NotFoundError
|
|
14760
|
+
*/
|
|
14761
|
+
404: NotFoundError;
|
|
14762
|
+
/**
|
|
14763
|
+
* ConflictError
|
|
14764
|
+
*/
|
|
14765
|
+
409: ConflictError;
|
|
14766
|
+
/**
|
|
14767
|
+
* GoneError
|
|
14768
|
+
*/
|
|
14769
|
+
410: GoneError;
|
|
14770
|
+
/**
|
|
14771
|
+
* MisdirectedRequestError
|
|
14772
|
+
*/
|
|
14773
|
+
421: MisdirectedRequestError;
|
|
14774
|
+
/**
|
|
14775
|
+
* UnprocessableEntityError
|
|
14776
|
+
*/
|
|
14777
|
+
422: UnprocessableEntityError;
|
|
14778
|
+
/**
|
|
14779
|
+
* TooManyRequestsError
|
|
14780
|
+
*/
|
|
14781
|
+
429: TooManyRequestsError;
|
|
14782
|
+
/**
|
|
14783
|
+
* InternalServerError
|
|
14784
|
+
*/
|
|
14785
|
+
500: InternalServerError;
|
|
14786
|
+
/**
|
|
14787
|
+
* ServiceUnavailableError
|
|
14788
|
+
*/
|
|
14789
|
+
503: ServiceUnavailableError;
|
|
14790
|
+
};
|
|
14791
|
+
export type PromptsCreatePromptVersionError = PromptsCreatePromptVersionErrors[keyof PromptsCreatePromptVersionErrors];
|
|
14792
|
+
export type PromptsCreatePromptVersionResponses = {
|
|
14793
|
+
/**
|
|
14794
|
+
* Success
|
|
14795
|
+
*/
|
|
14796
|
+
201: {
|
|
14797
|
+
code: number;
|
|
14798
|
+
data: PromptVersion | null;
|
|
14799
|
+
error: {
|
|
14800
|
+
code: string;
|
|
14801
|
+
details?: unknown | null;
|
|
14802
|
+
message: string;
|
|
14803
|
+
rowErrors?: Array<{
|
|
14804
|
+
code: string;
|
|
14805
|
+
message: string;
|
|
14806
|
+
path: Array<string | number>;
|
|
14807
|
+
}> | null;
|
|
14808
|
+
} | null;
|
|
14809
|
+
pagination: {
|
|
14810
|
+
limit: number;
|
|
14811
|
+
page: number;
|
|
14812
|
+
total: number;
|
|
14813
|
+
totalPages: number;
|
|
14814
|
+
} | null;
|
|
14815
|
+
sdkBehavior?: {
|
|
14816
|
+
flags: {
|
|
14817
|
+
[key: string]: unknown;
|
|
14818
|
+
};
|
|
14819
|
+
v: number;
|
|
14820
|
+
} | null;
|
|
14821
|
+
success: boolean;
|
|
14822
|
+
};
|
|
14823
|
+
};
|
|
14824
|
+
export type PromptsCreatePromptVersionResponse = PromptsCreatePromptVersionResponses[keyof PromptsCreatePromptVersionResponses];
|
|
14825
|
+
export type PromptsGetPromptVersionDiffData = {
|
|
14826
|
+
body?: never;
|
|
14827
|
+
path: {
|
|
14828
|
+
projectId: string;
|
|
14829
|
+
promptId: string;
|
|
14830
|
+
versionId: string;
|
|
14831
|
+
};
|
|
14832
|
+
query?: {
|
|
14833
|
+
against?: string | null;
|
|
14834
|
+
};
|
|
14835
|
+
url: '/v1/projects/{projectId}/prompts/{promptId}/versions/{versionId}/diff';
|
|
14561
14836
|
};
|
|
14562
14837
|
export type PromptsGetPromptVersionDiffErrors = {
|
|
14563
14838
|
/**
|
|
@@ -15282,6 +15557,7 @@ export type CredentialLifecycleRenameCredentialResponses = {
|
|
|
15282
15557
|
data: {
|
|
15283
15558
|
createdAt: string;
|
|
15284
15559
|
credentialType: 'api-key' | 'oauth' | 'iam-role' | 'access-key' | 'service-account' | 'none' | 'passthrough';
|
|
15560
|
+
deletedAt?: string | null | null;
|
|
15285
15561
|
id: string;
|
|
15286
15562
|
keyLast4: string;
|
|
15287
15563
|
label: string | null;
|
|
@@ -15572,6 +15848,7 @@ export type CredentialLifecycleRestoreCredentialResponses = {
|
|
|
15572
15848
|
credential: {
|
|
15573
15849
|
createdAt: string;
|
|
15574
15850
|
credentialType: 'api-key' | 'oauth' | 'iam-role' | 'access-key' | 'service-account' | 'none' | 'passthrough';
|
|
15851
|
+
deletedAt?: string | null | null;
|
|
15575
15852
|
id: string;
|
|
15576
15853
|
keyLast4: string;
|
|
15577
15854
|
label: string | null;
|
|
@@ -16988,6 +17265,7 @@ export type RoutingProvidersListRoutingProvidersResponses = {
|
|
|
16988
17265
|
200: {
|
|
16989
17266
|
code: number;
|
|
16990
17267
|
data: Array<{
|
|
17268
|
+
affectedEnvCount: number;
|
|
16991
17269
|
apiVersion: string | null;
|
|
16992
17270
|
archivedAt: string | null;
|
|
16993
17271
|
authHeaderName: string | null;
|
|
@@ -16998,20 +17276,32 @@ export type RoutingProvidersListRoutingProvidersResponses = {
|
|
|
16998
17276
|
createdByDisplay: string | null;
|
|
16999
17277
|
createdByImage: string | null;
|
|
17000
17278
|
createdByType?: 'user' | 'api_key' | 'unknown' | null | null;
|
|
17279
|
+
currentConfigVersion?: number | null | null;
|
|
17001
17280
|
displayName: string;
|
|
17281
|
+
envCount: number;
|
|
17002
17282
|
environments: Array<{
|
|
17003
17283
|
activationId: string;
|
|
17004
17284
|
activeFrom: string;
|
|
17005
17285
|
configSnapshot: {
|
|
17006
17286
|
[key: string]: unknown;
|
|
17007
17287
|
};
|
|
17288
|
+
configVersion?: number | null | null;
|
|
17008
17289
|
credentialId: string;
|
|
17290
|
+
credentialValidity: 'valid' | 'invalid' | 'untested' | 'na';
|
|
17009
17291
|
current: true;
|
|
17292
|
+
health: 'healthy' | 'degraded' | 'failing';
|
|
17010
17293
|
id: string;
|
|
17294
|
+
notRouted: boolean;
|
|
17295
|
+
perVersionHealth?: Array<{
|
|
17296
|
+
activeFrom: string;
|
|
17297
|
+
activeTo?: string | null | null;
|
|
17298
|
+
configVersion: number;
|
|
17299
|
+
current: boolean;
|
|
17300
|
+
health: 'healthy' | 'degraded' | 'failing';
|
|
17301
|
+
}> | null | null;
|
|
17011
17302
|
slug: string;
|
|
17012
|
-
status: 'healthy' | 'degraded' | 'failing' | 'idle';
|
|
17013
17303
|
}>;
|
|
17014
|
-
health: 'healthy' | 'degraded' | 'failing'
|
|
17304
|
+
health: 'healthy' | 'degraded' | 'failing';
|
|
17015
17305
|
id: string;
|
|
17016
17306
|
lastTestedAt: string | null;
|
|
17017
17307
|
lifecycleState: 'active' | 'deactivated' | 'archived';
|
|
@@ -17133,6 +17423,7 @@ export type RoutingProvidersCreateRoutingProviderResponses = {
|
|
|
17133
17423
|
201: {
|
|
17134
17424
|
code: number;
|
|
17135
17425
|
data: {
|
|
17426
|
+
affectedEnvCount: number;
|
|
17136
17427
|
apiVersion: string | null;
|
|
17137
17428
|
archivedAt: string | null;
|
|
17138
17429
|
authHeaderName: string | null;
|
|
@@ -17143,20 +17434,32 @@ export type RoutingProvidersCreateRoutingProviderResponses = {
|
|
|
17143
17434
|
createdByDisplay: string | null;
|
|
17144
17435
|
createdByImage: string | null;
|
|
17145
17436
|
createdByType?: 'user' | 'api_key' | 'unknown' | null | null;
|
|
17437
|
+
currentConfigVersion?: number | null | null;
|
|
17146
17438
|
displayName: string;
|
|
17439
|
+
envCount: number;
|
|
17147
17440
|
environments: Array<{
|
|
17148
17441
|
activationId: string;
|
|
17149
17442
|
activeFrom: string;
|
|
17150
17443
|
configSnapshot: {
|
|
17151
17444
|
[key: string]: unknown;
|
|
17152
17445
|
};
|
|
17446
|
+
configVersion?: number | null | null;
|
|
17153
17447
|
credentialId: string;
|
|
17448
|
+
credentialValidity: 'valid' | 'invalid' | 'untested' | 'na';
|
|
17154
17449
|
current: true;
|
|
17450
|
+
health: 'healthy' | 'degraded' | 'failing';
|
|
17155
17451
|
id: string;
|
|
17452
|
+
notRouted: boolean;
|
|
17453
|
+
perVersionHealth?: Array<{
|
|
17454
|
+
activeFrom: string;
|
|
17455
|
+
activeTo?: string | null | null;
|
|
17456
|
+
configVersion: number;
|
|
17457
|
+
current: boolean;
|
|
17458
|
+
health: 'healthy' | 'degraded' | 'failing';
|
|
17459
|
+
}> | null | null;
|
|
17156
17460
|
slug: string;
|
|
17157
|
-
status: 'healthy' | 'degraded' | 'failing' | 'idle';
|
|
17158
17461
|
}>;
|
|
17159
|
-
health: 'healthy' | 'degraded' | 'failing'
|
|
17462
|
+
health: 'healthy' | 'degraded' | 'failing';
|
|
17160
17463
|
id: string;
|
|
17161
17464
|
lastTestedAt: string | null;
|
|
17162
17465
|
lifecycleState: 'active' | 'deactivated' | 'archived';
|
|
@@ -17334,6 +17637,7 @@ export type RoutingProvidersConnectRoutingProviderResponses = {
|
|
|
17334
17637
|
}>;
|
|
17335
17638
|
credentialId: string;
|
|
17336
17639
|
provider: {
|
|
17640
|
+
affectedEnvCount: number;
|
|
17337
17641
|
apiVersion: string | null;
|
|
17338
17642
|
archivedAt: string | null;
|
|
17339
17643
|
authHeaderName: string | null;
|
|
@@ -17344,20 +17648,32 @@ export type RoutingProvidersConnectRoutingProviderResponses = {
|
|
|
17344
17648
|
createdByDisplay: string | null;
|
|
17345
17649
|
createdByImage: string | null;
|
|
17346
17650
|
createdByType?: 'user' | 'api_key' | 'unknown' | null | null;
|
|
17651
|
+
currentConfigVersion?: number | null | null;
|
|
17347
17652
|
displayName: string;
|
|
17653
|
+
envCount: number;
|
|
17348
17654
|
environments: Array<{
|
|
17349
17655
|
activationId: string;
|
|
17350
17656
|
activeFrom: string;
|
|
17351
17657
|
configSnapshot: {
|
|
17352
17658
|
[key: string]: unknown;
|
|
17353
17659
|
};
|
|
17660
|
+
configVersion?: number | null | null;
|
|
17354
17661
|
credentialId: string;
|
|
17662
|
+
credentialValidity: 'valid' | 'invalid' | 'untested' | 'na';
|
|
17355
17663
|
current: true;
|
|
17664
|
+
health: 'healthy' | 'degraded' | 'failing';
|
|
17356
17665
|
id: string;
|
|
17666
|
+
notRouted: boolean;
|
|
17667
|
+
perVersionHealth?: Array<{
|
|
17668
|
+
activeFrom: string;
|
|
17669
|
+
activeTo?: string | null | null;
|
|
17670
|
+
configVersion: number;
|
|
17671
|
+
current: boolean;
|
|
17672
|
+
health: 'healthy' | 'degraded' | 'failing';
|
|
17673
|
+
}> | null | null;
|
|
17357
17674
|
slug: string;
|
|
17358
|
-
status: 'healthy' | 'degraded' | 'failing' | 'idle';
|
|
17359
17675
|
}>;
|
|
17360
|
-
health: 'healthy' | 'degraded' | 'failing'
|
|
17676
|
+
health: 'healthy' | 'degraded' | 'failing';
|
|
17361
17677
|
id: string;
|
|
17362
17678
|
lastTestedAt: string | null;
|
|
17363
17679
|
lifecycleState: 'active' | 'deactivated' | 'archived';
|
|
@@ -17880,6 +18196,7 @@ export type RoutingProvidersGetRoutingProviderResponses = {
|
|
|
17880
18196
|
200: {
|
|
17881
18197
|
code: number;
|
|
17882
18198
|
data: {
|
|
18199
|
+
affectedEnvCount: number;
|
|
17883
18200
|
apiVersion: string | null;
|
|
17884
18201
|
archivedAt: string | null;
|
|
17885
18202
|
authHeaderName: string | null;
|
|
@@ -17890,20 +18207,32 @@ export type RoutingProvidersGetRoutingProviderResponses = {
|
|
|
17890
18207
|
createdByDisplay: string | null;
|
|
17891
18208
|
createdByImage: string | null;
|
|
17892
18209
|
createdByType?: 'user' | 'api_key' | 'unknown' | null | null;
|
|
18210
|
+
currentConfigVersion?: number | null | null;
|
|
17893
18211
|
displayName: string;
|
|
18212
|
+
envCount: number;
|
|
17894
18213
|
environments: Array<{
|
|
17895
18214
|
activationId: string;
|
|
17896
18215
|
activeFrom: string;
|
|
17897
18216
|
configSnapshot: {
|
|
17898
18217
|
[key: string]: unknown;
|
|
17899
18218
|
};
|
|
18219
|
+
configVersion?: number | null | null;
|
|
17900
18220
|
credentialId: string;
|
|
18221
|
+
credentialValidity: 'valid' | 'invalid' | 'untested' | 'na';
|
|
17901
18222
|
current: true;
|
|
18223
|
+
health: 'healthy' | 'degraded' | 'failing';
|
|
17902
18224
|
id: string;
|
|
18225
|
+
notRouted: boolean;
|
|
18226
|
+
perVersionHealth?: Array<{
|
|
18227
|
+
activeFrom: string;
|
|
18228
|
+
activeTo?: string | null | null;
|
|
18229
|
+
configVersion: number;
|
|
18230
|
+
current: boolean;
|
|
18231
|
+
health: 'healthy' | 'degraded' | 'failing';
|
|
18232
|
+
}> | null | null;
|
|
17903
18233
|
slug: string;
|
|
17904
|
-
status: 'healthy' | 'degraded' | 'failing' | 'idle';
|
|
17905
18234
|
}>;
|
|
17906
|
-
health: 'healthy' | 'degraded' | 'failing'
|
|
18235
|
+
health: 'healthy' | 'degraded' | 'failing';
|
|
17907
18236
|
id: string;
|
|
17908
18237
|
lastTestedAt: string | null;
|
|
17909
18238
|
lifecycleState: 'active' | 'deactivated' | 'archived';
|
|
@@ -18023,6 +18352,7 @@ export type RoutingProvidersUpdateRoutingProviderResponses = {
|
|
|
18023
18352
|
200: {
|
|
18024
18353
|
code: number;
|
|
18025
18354
|
data: {
|
|
18355
|
+
affectedEnvCount: number;
|
|
18026
18356
|
apiVersion: string | null;
|
|
18027
18357
|
archivedAt: string | null;
|
|
18028
18358
|
authHeaderName: string | null;
|
|
@@ -18033,20 +18363,32 @@ export type RoutingProvidersUpdateRoutingProviderResponses = {
|
|
|
18033
18363
|
createdByDisplay: string | null;
|
|
18034
18364
|
createdByImage: string | null;
|
|
18035
18365
|
createdByType?: 'user' | 'api_key' | 'unknown' | null | null;
|
|
18366
|
+
currentConfigVersion?: number | null | null;
|
|
18036
18367
|
displayName: string;
|
|
18368
|
+
envCount: number;
|
|
18037
18369
|
environments: Array<{
|
|
18038
18370
|
activationId: string;
|
|
18039
18371
|
activeFrom: string;
|
|
18040
18372
|
configSnapshot: {
|
|
18041
18373
|
[key: string]: unknown;
|
|
18042
18374
|
};
|
|
18375
|
+
configVersion?: number | null | null;
|
|
18043
18376
|
credentialId: string;
|
|
18377
|
+
credentialValidity: 'valid' | 'invalid' | 'untested' | 'na';
|
|
18044
18378
|
current: true;
|
|
18379
|
+
health: 'healthy' | 'degraded' | 'failing';
|
|
18045
18380
|
id: string;
|
|
18381
|
+
notRouted: boolean;
|
|
18382
|
+
perVersionHealth?: Array<{
|
|
18383
|
+
activeFrom: string;
|
|
18384
|
+
activeTo?: string | null | null;
|
|
18385
|
+
configVersion: number;
|
|
18386
|
+
current: boolean;
|
|
18387
|
+
health: 'healthy' | 'degraded' | 'failing';
|
|
18388
|
+
}> | null | null;
|
|
18046
18389
|
slug: string;
|
|
18047
|
-
status: 'healthy' | 'degraded' | 'failing' | 'idle';
|
|
18048
18390
|
}>;
|
|
18049
|
-
health: 'healthy' | 'degraded' | 'failing'
|
|
18391
|
+
health: 'healthy' | 'degraded' | 'failing';
|
|
18050
18392
|
id: string;
|
|
18051
18393
|
lastTestedAt: string | null;
|
|
18052
18394
|
lifecycleState: 'active' | 'deactivated' | 'archived';
|
|
@@ -18267,6 +18609,7 @@ export type RoutingProviderCatalogResolveRoutingProviderCatalogResponses = {
|
|
|
18267
18609
|
deprecatedAt?: string | null;
|
|
18268
18610
|
displayName?: string | null;
|
|
18269
18611
|
id: string;
|
|
18612
|
+
source?: 'user' | 'platform' | 'curated' | 'custom' | null;
|
|
18270
18613
|
}>;
|
|
18271
18614
|
source: 'user' | 'platform' | 'curated' | 'empty';
|
|
18272
18615
|
transition: {
|
|
@@ -18461,6 +18804,7 @@ export type RoutingProvidersListRoutingCredentialsResponses = {
|
|
|
18461
18804
|
data: Array<{
|
|
18462
18805
|
createdAt: string;
|
|
18463
18806
|
credentialType: 'api-key' | 'oauth' | 'iam-role' | 'access-key' | 'service-account' | 'none' | 'passthrough';
|
|
18807
|
+
deletedAt?: string | null | null;
|
|
18464
18808
|
id: string;
|
|
18465
18809
|
keyLast4: string;
|
|
18466
18810
|
label: string | null;
|
|
@@ -18582,6 +18926,7 @@ export type RoutingProvidersCreateRoutingCredentialResponses = {
|
|
|
18582
18926
|
data: {
|
|
18583
18927
|
createdAt: string;
|
|
18584
18928
|
credentialType: 'api-key' | 'oauth' | 'iam-role' | 'access-key' | 'service-account' | 'none' | 'passthrough';
|
|
18929
|
+
deletedAt?: string | null | null;
|
|
18585
18930
|
id: string;
|
|
18586
18931
|
keyLast4: string;
|
|
18587
18932
|
label: string | null;
|
|
@@ -18821,6 +19166,117 @@ export type RoutingProvidersTestRoutingCredentialResponses = {
|
|
|
18821
19166
|
};
|
|
18822
19167
|
};
|
|
18823
19168
|
export type RoutingProvidersTestRoutingCredentialResponse = RoutingProvidersTestRoutingCredentialResponses[keyof RoutingProvidersTestRoutingCredentialResponses];
|
|
19169
|
+
export type ProviderPromoteVersionPromoteProviderEnvVersionData = {
|
|
19170
|
+
body: {
|
|
19171
|
+
reason?: string | null;
|
|
19172
|
+
version: number;
|
|
19173
|
+
};
|
|
19174
|
+
path: {
|
|
19175
|
+
projectId: string;
|
|
19176
|
+
providerId: string;
|
|
19177
|
+
envSlug: string;
|
|
19178
|
+
};
|
|
19179
|
+
query?: never;
|
|
19180
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/environments/{envSlug}/promote';
|
|
19181
|
+
};
|
|
19182
|
+
export type ProviderPromoteVersionPromoteProviderEnvVersionErrors = {
|
|
19183
|
+
/**
|
|
19184
|
+
* BadRequestError
|
|
19185
|
+
*/
|
|
19186
|
+
400: BadRequestError;
|
|
19187
|
+
/**
|
|
19188
|
+
* UnauthorizedError
|
|
19189
|
+
*/
|
|
19190
|
+
401: UnauthorizedError;
|
|
19191
|
+
/**
|
|
19192
|
+
* ForbiddenError
|
|
19193
|
+
*/
|
|
19194
|
+
403: ForbiddenError;
|
|
19195
|
+
/**
|
|
19196
|
+
* NotFoundError
|
|
19197
|
+
*/
|
|
19198
|
+
404: NotFoundError;
|
|
19199
|
+
/**
|
|
19200
|
+
* ConflictError
|
|
19201
|
+
*/
|
|
19202
|
+
409: ConflictError;
|
|
19203
|
+
/**
|
|
19204
|
+
* GoneError
|
|
19205
|
+
*/
|
|
19206
|
+
410: GoneError;
|
|
19207
|
+
/**
|
|
19208
|
+
* MisdirectedRequestError
|
|
19209
|
+
*/
|
|
19210
|
+
421: MisdirectedRequestError;
|
|
19211
|
+
/**
|
|
19212
|
+
* UnprocessableEntityError
|
|
19213
|
+
*/
|
|
19214
|
+
422: UnprocessableEntityError;
|
|
19215
|
+
/**
|
|
19216
|
+
* TooManyRequestsError
|
|
19217
|
+
*/
|
|
19218
|
+
429: TooManyRequestsError;
|
|
19219
|
+
/**
|
|
19220
|
+
* InternalServerError
|
|
19221
|
+
*/
|
|
19222
|
+
500: InternalServerError;
|
|
19223
|
+
/**
|
|
19224
|
+
* ServiceUnavailableError
|
|
19225
|
+
*/
|
|
19226
|
+
503: ServiceUnavailableError;
|
|
19227
|
+
};
|
|
19228
|
+
export type ProviderPromoteVersionPromoteProviderEnvVersionError = ProviderPromoteVersionPromoteProviderEnvVersionErrors[keyof ProviderPromoteVersionPromoteProviderEnvVersionErrors];
|
|
19229
|
+
export type ProviderPromoteVersionPromoteProviderEnvVersionResponses = {
|
|
19230
|
+
/**
|
|
19231
|
+
* Success
|
|
19232
|
+
*/
|
|
19233
|
+
201: {
|
|
19234
|
+
code: number;
|
|
19235
|
+
data: {
|
|
19236
|
+
activeFrom: string;
|
|
19237
|
+
activeTo: string | null;
|
|
19238
|
+
actorId: string;
|
|
19239
|
+
actorType: string;
|
|
19240
|
+
approvalStatus: 'not_required' | 'pending' | 'approved' | 'rejected';
|
|
19241
|
+
changeType: string;
|
|
19242
|
+
configSnapshot: {
|
|
19243
|
+
[key: string]: unknown;
|
|
19244
|
+
};
|
|
19245
|
+
createdAt: string;
|
|
19246
|
+
credentialId: string;
|
|
19247
|
+
envSlug: string;
|
|
19248
|
+
environmentId: string;
|
|
19249
|
+
id: string;
|
|
19250
|
+
providerId: string;
|
|
19251
|
+
reason: string | null;
|
|
19252
|
+
state: 'current' | 'pending';
|
|
19253
|
+
} | null;
|
|
19254
|
+
error: {
|
|
19255
|
+
code: string;
|
|
19256
|
+
details?: unknown | null;
|
|
19257
|
+
message: string;
|
|
19258
|
+
rowErrors?: Array<{
|
|
19259
|
+
code: string;
|
|
19260
|
+
message: string;
|
|
19261
|
+
path: Array<string | number>;
|
|
19262
|
+
}> | null;
|
|
19263
|
+
} | null;
|
|
19264
|
+
pagination: {
|
|
19265
|
+
limit: number;
|
|
19266
|
+
page: number;
|
|
19267
|
+
total: number;
|
|
19268
|
+
totalPages: number;
|
|
19269
|
+
} | null;
|
|
19270
|
+
sdkBehavior?: {
|
|
19271
|
+
flags: {
|
|
19272
|
+
[key: string]: unknown;
|
|
19273
|
+
};
|
|
19274
|
+
v: number;
|
|
19275
|
+
} | null;
|
|
19276
|
+
success: boolean;
|
|
19277
|
+
};
|
|
19278
|
+
};
|
|
19279
|
+
export type ProviderPromoteVersionPromoteProviderEnvVersionResponse = ProviderPromoteVersionPromoteProviderEnvVersionResponses[keyof ProviderPromoteVersionPromoteProviderEnvVersionResponses];
|
|
18824
19280
|
export type RoutingProvidersListRoutingModelsData = {
|
|
18825
19281
|
body?: never;
|
|
18826
19282
|
path: {
|
|
@@ -18884,11 +19340,11 @@ export type RoutingProvidersListRoutingModelsResponses = {
|
|
|
18884
19340
|
200: {
|
|
18885
19341
|
code: number;
|
|
18886
19342
|
data: Array<{
|
|
19343
|
+
catalogSlug?: string | null | null;
|
|
18887
19344
|
createdAt: string;
|
|
18888
19345
|
description: string | null;
|
|
18889
19346
|
displayName: string | null;
|
|
18890
19347
|
id: string;
|
|
18891
|
-
isActive: boolean;
|
|
18892
19348
|
modelType: string | null;
|
|
18893
19349
|
name: string;
|
|
18894
19350
|
providerId: string;
|
|
@@ -18922,9 +19378,9 @@ export type RoutingProvidersListRoutingModelsResponses = {
|
|
|
18922
19378
|
export type RoutingProvidersListRoutingModelsResponse = RoutingProvidersListRoutingModelsResponses[keyof RoutingProvidersListRoutingModelsResponses];
|
|
18923
19379
|
export type RoutingProvidersCreateRoutingModelData = {
|
|
18924
19380
|
body: {
|
|
19381
|
+
catalogSlug?: string | null;
|
|
18925
19382
|
description?: string | null;
|
|
18926
19383
|
displayName?: string | null;
|
|
18927
|
-
isActive?: boolean | null;
|
|
18928
19384
|
modelType?: string | null;
|
|
18929
19385
|
name: string;
|
|
18930
19386
|
};
|
|
@@ -18989,11 +19445,11 @@ export type RoutingProvidersCreateRoutingModelResponses = {
|
|
|
18989
19445
|
201: {
|
|
18990
19446
|
code: number;
|
|
18991
19447
|
data: {
|
|
19448
|
+
catalogSlug?: string | null | null;
|
|
18992
19449
|
createdAt: string;
|
|
18993
19450
|
description: string | null;
|
|
18994
19451
|
displayName: string | null;
|
|
18995
19452
|
id: string;
|
|
18996
|
-
isActive: boolean;
|
|
18997
19453
|
modelType: string | null;
|
|
18998
19454
|
name: string;
|
|
18999
19455
|
providerId: string;
|
|
@@ -19137,7 +19593,6 @@ export type RoutingProvidersUpdateRoutingModelData = {
|
|
|
19137
19593
|
body: {
|
|
19138
19594
|
description?: string | null;
|
|
19139
19595
|
displayName?: string | null;
|
|
19140
|
-
isActive?: boolean | null;
|
|
19141
19596
|
modelType?: string | null;
|
|
19142
19597
|
};
|
|
19143
19598
|
path: {
|
|
@@ -19202,11 +19657,11 @@ export type RoutingProvidersUpdateRoutingModelResponses = {
|
|
|
19202
19657
|
200: {
|
|
19203
19658
|
code: number;
|
|
19204
19659
|
data: {
|
|
19660
|
+
catalogSlug?: string | null | null;
|
|
19205
19661
|
createdAt: string;
|
|
19206
19662
|
description: string | null;
|
|
19207
19663
|
displayName: string | null;
|
|
19208
19664
|
id: string;
|
|
19209
|
-
isActive: boolean;
|
|
19210
19665
|
modelType: string | null;
|
|
19211
19666
|
name: string;
|
|
19212
19667
|
providerId: string;
|
|
@@ -19246,6 +19701,114 @@ export type RoutingProvidersUpdateRoutingModelResponses = {
|
|
|
19246
19701
|
};
|
|
19247
19702
|
};
|
|
19248
19703
|
export type RoutingProvidersUpdateRoutingModelResponse = RoutingProvidersUpdateRoutingModelResponses[keyof RoutingProvidersUpdateRoutingModelResponses];
|
|
19704
|
+
export type RoutingProvidersRestoreRoutingModelData = {
|
|
19705
|
+
body?: never;
|
|
19706
|
+
path: {
|
|
19707
|
+
projectId: string;
|
|
19708
|
+
providerId: string;
|
|
19709
|
+
modelId: string;
|
|
19710
|
+
};
|
|
19711
|
+
query?: never;
|
|
19712
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/models/{modelId}/restore';
|
|
19713
|
+
};
|
|
19714
|
+
export type RoutingProvidersRestoreRoutingModelErrors = {
|
|
19715
|
+
/**
|
|
19716
|
+
* BadRequestError
|
|
19717
|
+
*/
|
|
19718
|
+
400: BadRequestError;
|
|
19719
|
+
/**
|
|
19720
|
+
* UnauthorizedError
|
|
19721
|
+
*/
|
|
19722
|
+
401: UnauthorizedError;
|
|
19723
|
+
/**
|
|
19724
|
+
* ForbiddenError
|
|
19725
|
+
*/
|
|
19726
|
+
403: ForbiddenError;
|
|
19727
|
+
/**
|
|
19728
|
+
* NotFoundError
|
|
19729
|
+
*/
|
|
19730
|
+
404: NotFoundError;
|
|
19731
|
+
/**
|
|
19732
|
+
* ConflictError
|
|
19733
|
+
*/
|
|
19734
|
+
409: ConflictError;
|
|
19735
|
+
/**
|
|
19736
|
+
* GoneError
|
|
19737
|
+
*/
|
|
19738
|
+
410: GoneError;
|
|
19739
|
+
/**
|
|
19740
|
+
* MisdirectedRequestError
|
|
19741
|
+
*/
|
|
19742
|
+
421: MisdirectedRequestError;
|
|
19743
|
+
/**
|
|
19744
|
+
* UnprocessableEntityError
|
|
19745
|
+
*/
|
|
19746
|
+
422: UnprocessableEntityError;
|
|
19747
|
+
/**
|
|
19748
|
+
* TooManyRequestsError
|
|
19749
|
+
*/
|
|
19750
|
+
429: TooManyRequestsError;
|
|
19751
|
+
/**
|
|
19752
|
+
* InternalServerError
|
|
19753
|
+
*/
|
|
19754
|
+
500: InternalServerError;
|
|
19755
|
+
/**
|
|
19756
|
+
* ServiceUnavailableError
|
|
19757
|
+
*/
|
|
19758
|
+
503: ServiceUnavailableError;
|
|
19759
|
+
};
|
|
19760
|
+
export type RoutingProvidersRestoreRoutingModelError = RoutingProvidersRestoreRoutingModelErrors[keyof RoutingProvidersRestoreRoutingModelErrors];
|
|
19761
|
+
export type RoutingProvidersRestoreRoutingModelResponses = {
|
|
19762
|
+
/**
|
|
19763
|
+
* Success
|
|
19764
|
+
*/
|
|
19765
|
+
200: {
|
|
19766
|
+
code: number;
|
|
19767
|
+
data: {
|
|
19768
|
+
catalogSlug?: string | null | null;
|
|
19769
|
+
createdAt: string;
|
|
19770
|
+
description: string | null;
|
|
19771
|
+
displayName: string | null;
|
|
19772
|
+
id: string;
|
|
19773
|
+
modelType: string | null;
|
|
19774
|
+
name: string;
|
|
19775
|
+
providerId: string;
|
|
19776
|
+
publishWarning?: {
|
|
19777
|
+
errors: Array<{
|
|
19778
|
+
entity: string;
|
|
19779
|
+
message: string;
|
|
19780
|
+
rule?: string | null;
|
|
19781
|
+
}>;
|
|
19782
|
+
kind: 'validation';
|
|
19783
|
+
} | null;
|
|
19784
|
+
updatedAt: string;
|
|
19785
|
+
} | null;
|
|
19786
|
+
error: {
|
|
19787
|
+
code: string;
|
|
19788
|
+
details?: unknown | null;
|
|
19789
|
+
message: string;
|
|
19790
|
+
rowErrors?: Array<{
|
|
19791
|
+
code: string;
|
|
19792
|
+
message: string;
|
|
19793
|
+
path: Array<string | number>;
|
|
19794
|
+
}> | null;
|
|
19795
|
+
} | null;
|
|
19796
|
+
pagination: {
|
|
19797
|
+
limit: number;
|
|
19798
|
+
page: number;
|
|
19799
|
+
total: number;
|
|
19800
|
+
totalPages: number;
|
|
19801
|
+
} | null;
|
|
19802
|
+
sdkBehavior?: {
|
|
19803
|
+
flags: {
|
|
19804
|
+
[key: string]: unknown;
|
|
19805
|
+
};
|
|
19806
|
+
v: number;
|
|
19807
|
+
} | null;
|
|
19808
|
+
success: boolean;
|
|
19809
|
+
};
|
|
19810
|
+
};
|
|
19811
|
+
export type RoutingProvidersRestoreRoutingModelResponse = RoutingProvidersRestoreRoutingModelResponses[keyof RoutingProvidersRestoreRoutingModelResponses];
|
|
19249
19812
|
export type RoutingProvidersRestoreRoutingProviderData = {
|
|
19250
19813
|
body: {
|
|
19251
19814
|
reason: string;
|
|
@@ -19339,6 +19902,106 @@ export type RoutingProvidersRestoreRoutingProviderResponses = {
|
|
|
19339
19902
|
};
|
|
19340
19903
|
};
|
|
19341
19904
|
export type RoutingProvidersRestoreRoutingProviderResponse = RoutingProvidersRestoreRoutingProviderResponses[keyof RoutingProvidersRestoreRoutingProviderResponses];
|
|
19905
|
+
export type ProviderConfigVersionsListProviderConfigVersionsData = {
|
|
19906
|
+
body?: never;
|
|
19907
|
+
path: {
|
|
19908
|
+
projectId: string;
|
|
19909
|
+
providerId: string;
|
|
19910
|
+
};
|
|
19911
|
+
query?: never;
|
|
19912
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/versions';
|
|
19913
|
+
};
|
|
19914
|
+
export type ProviderConfigVersionsListProviderConfigVersionsErrors = {
|
|
19915
|
+
/**
|
|
19916
|
+
* BadRequestError
|
|
19917
|
+
*/
|
|
19918
|
+
400: BadRequestError;
|
|
19919
|
+
/**
|
|
19920
|
+
* UnauthorizedError
|
|
19921
|
+
*/
|
|
19922
|
+
401: UnauthorizedError;
|
|
19923
|
+
/**
|
|
19924
|
+
* ForbiddenError
|
|
19925
|
+
*/
|
|
19926
|
+
403: ForbiddenError;
|
|
19927
|
+
/**
|
|
19928
|
+
* NotFoundError
|
|
19929
|
+
*/
|
|
19930
|
+
404: NotFoundError;
|
|
19931
|
+
/**
|
|
19932
|
+
* ConflictError
|
|
19933
|
+
*/
|
|
19934
|
+
409: ConflictError;
|
|
19935
|
+
/**
|
|
19936
|
+
* GoneError
|
|
19937
|
+
*/
|
|
19938
|
+
410: GoneError;
|
|
19939
|
+
/**
|
|
19940
|
+
* MisdirectedRequestError
|
|
19941
|
+
*/
|
|
19942
|
+
421: MisdirectedRequestError;
|
|
19943
|
+
/**
|
|
19944
|
+
* UnprocessableEntityError
|
|
19945
|
+
*/
|
|
19946
|
+
422: UnprocessableEntityError;
|
|
19947
|
+
/**
|
|
19948
|
+
* TooManyRequestsError
|
|
19949
|
+
*/
|
|
19950
|
+
429: TooManyRequestsError;
|
|
19951
|
+
/**
|
|
19952
|
+
* InternalServerError
|
|
19953
|
+
*/
|
|
19954
|
+
500: InternalServerError;
|
|
19955
|
+
/**
|
|
19956
|
+
* ServiceUnavailableError
|
|
19957
|
+
*/
|
|
19958
|
+
503: ServiceUnavailableError;
|
|
19959
|
+
};
|
|
19960
|
+
export type ProviderConfigVersionsListProviderConfigVersionsError = ProviderConfigVersionsListProviderConfigVersionsErrors[keyof ProviderConfigVersionsListProviderConfigVersionsErrors];
|
|
19961
|
+
export type ProviderConfigVersionsListProviderConfigVersionsResponses = {
|
|
19962
|
+
/**
|
|
19963
|
+
* Success
|
|
19964
|
+
*/
|
|
19965
|
+
200: {
|
|
19966
|
+
code: number;
|
|
19967
|
+
data: {
|
|
19968
|
+
versions: Array<{
|
|
19969
|
+
configSnapshot: {
|
|
19970
|
+
[key: string]: unknown;
|
|
19971
|
+
};
|
|
19972
|
+
contentHash: string;
|
|
19973
|
+
createdAt: string;
|
|
19974
|
+
createdBy: string | null;
|
|
19975
|
+
liveInEnvSlugs: Array<string>;
|
|
19976
|
+
version: number;
|
|
19977
|
+
}>;
|
|
19978
|
+
} | null;
|
|
19979
|
+
error: {
|
|
19980
|
+
code: string;
|
|
19981
|
+
details?: unknown | null;
|
|
19982
|
+
message: string;
|
|
19983
|
+
rowErrors?: Array<{
|
|
19984
|
+
code: string;
|
|
19985
|
+
message: string;
|
|
19986
|
+
path: Array<string | number>;
|
|
19987
|
+
}> | null;
|
|
19988
|
+
} | null;
|
|
19989
|
+
pagination: {
|
|
19990
|
+
limit: number;
|
|
19991
|
+
page: number;
|
|
19992
|
+
total: number;
|
|
19993
|
+
totalPages: number;
|
|
19994
|
+
} | null;
|
|
19995
|
+
sdkBehavior?: {
|
|
19996
|
+
flags: {
|
|
19997
|
+
[key: string]: unknown;
|
|
19998
|
+
};
|
|
19999
|
+
v: number;
|
|
20000
|
+
} | null;
|
|
20001
|
+
success: boolean;
|
|
20002
|
+
};
|
|
20003
|
+
};
|
|
20004
|
+
export type ProviderConfigVersionsListProviderConfigVersionsResponse = ProviderConfigVersionsListProviderConfigVersionsResponses[keyof ProviderConfigVersionsListProviderConfigVersionsResponses];
|
|
19342
20005
|
export type RoutingRoutesListRoutingRoutesData = {
|
|
19343
20006
|
body?: never;
|
|
19344
20007
|
path: {
|