@to11ai/sdk 0.2.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 +743 -76
- package/dist/generated/zod.gen.d.ts +459 -65
- 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 +773 -76
- package/src/generated/zod.gen.ts +483 -84
- 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: {
|
|
@@ -12256,7 +12426,9 @@ export type ProjectOverviewGetProjectOverviewData = {
|
|
|
12256
12426
|
projectId: string;
|
|
12257
12427
|
};
|
|
12258
12428
|
query?: {
|
|
12259
|
-
timeRange?: '1h' | '6h' | '12h' | '24h' | '7d' | '30d' | null;
|
|
12429
|
+
timeRange?: '10m' | '30m' | '1h' | '2h' | '3h' | '6h' | '8h' | '12h' | '24h' | '7d' | '14d' | '28d' | '30d' | '60d' | null;
|
|
12430
|
+
startTimeFrom?: string | null;
|
|
12431
|
+
startTimeTo?: string | null;
|
|
12260
12432
|
};
|
|
12261
12433
|
url: '/v1/projects/{projectId}/overview';
|
|
12262
12434
|
};
|
|
@@ -13177,7 +13349,7 @@ export type PromptsListPromptsData = {
|
|
|
13177
13349
|
search?: string | null;
|
|
13178
13350
|
sortDir?: 'asc' | 'desc' | null;
|
|
13179
13351
|
status?: string | null;
|
|
13180
|
-
sortBy?: 'createdAt' | 'updatedAt' | 'name' | 'status' | 'latestVersion' | null;
|
|
13352
|
+
sortBy?: 'createdAt' | 'updatedAt' | 'name' | 'status' | 'latestVersion' | 'environments' | null;
|
|
13181
13353
|
tags?: string | null;
|
|
13182
13354
|
environment?: string | null;
|
|
13183
13355
|
};
|
|
@@ -13252,6 +13424,7 @@ export type PromptsListPromptsResponses = {
|
|
|
13252
13424
|
lastModifiedAt: string;
|
|
13253
13425
|
lastModifiedByDisplayName: string | null;
|
|
13254
13426
|
lastModifiedByImage: string | null;
|
|
13427
|
+
lastModifiedByType: 'user' | 'api_key' | 'unknown' | null;
|
|
13255
13428
|
lastModifiedByUserId: string | null;
|
|
13256
13429
|
latestVersion: number | null;
|
|
13257
13430
|
name: string;
|
|
@@ -13981,7 +14154,9 @@ export type PromptsListPromptLabelsData = {
|
|
|
13981
14154
|
projectId: string;
|
|
13982
14155
|
promptId: string;
|
|
13983
14156
|
};
|
|
13984
|
-
query?:
|
|
14157
|
+
query?: {
|
|
14158
|
+
asOf?: string | null;
|
|
14159
|
+
};
|
|
13985
14160
|
url: '/v1/projects/{projectId}/prompts/{promptId}/labels';
|
|
13986
14161
|
};
|
|
13987
14162
|
export type PromptsListPromptLabelsErrors = {
|
|
@@ -14066,7 +14241,7 @@ export type PromptsListPromptLabelsResponses = {
|
|
|
14066
14241
|
export type PromptsListPromptLabelsResponse = PromptsListPromptLabelsResponses[keyof PromptsListPromptLabelsResponses];
|
|
14067
14242
|
export type PromptsMovePromptLabelData = {
|
|
14068
14243
|
body: {
|
|
14069
|
-
reason
|
|
14244
|
+
reason: string;
|
|
14070
14245
|
versionId: string;
|
|
14071
14246
|
};
|
|
14072
14247
|
path: {
|
|
@@ -14264,7 +14439,7 @@ export type PromptsListPromptLabelEventsByLabelResponses = {
|
|
|
14264
14439
|
export type PromptsListPromptLabelEventsByLabelResponse = PromptsListPromptLabelEventsByLabelResponses[keyof PromptsListPromptLabelEventsByLabelResponses];
|
|
14265
14440
|
export type PromptsSetWeightedReleaseData = {
|
|
14266
14441
|
body: {
|
|
14267
|
-
reason
|
|
14442
|
+
reason: string;
|
|
14268
14443
|
variants: Array<{
|
|
14269
14444
|
name: string;
|
|
14270
14445
|
versionId: string;
|
|
@@ -14359,16 +14534,18 @@ export type PromptsSetWeightedReleaseResponses = {
|
|
|
14359
14534
|
};
|
|
14360
14535
|
};
|
|
14361
14536
|
export type PromptsSetWeightedReleaseResponse = PromptsSetWeightedReleaseResponses[keyof PromptsSetWeightedReleaseResponses];
|
|
14362
|
-
export type
|
|
14537
|
+
export type PromptMetricsGetPromptRequestMetricsData = {
|
|
14363
14538
|
body?: never;
|
|
14364
14539
|
path: {
|
|
14365
14540
|
projectId: string;
|
|
14366
14541
|
promptId: string;
|
|
14367
14542
|
};
|
|
14368
|
-
query?:
|
|
14369
|
-
|
|
14543
|
+
query?: {
|
|
14544
|
+
window?: string | null;
|
|
14545
|
+
};
|
|
14546
|
+
url: '/v1/projects/{projectId}/prompts/{promptId}/request-metrics';
|
|
14370
14547
|
};
|
|
14371
|
-
export type
|
|
14548
|
+
export type PromptMetricsGetPromptRequestMetricsErrors = {
|
|
14372
14549
|
/**
|
|
14373
14550
|
* BadRequestError
|
|
14374
14551
|
*/
|
|
@@ -14414,14 +14591,25 @@ export type PromptsListPromptVersionsErrors = {
|
|
|
14414
14591
|
*/
|
|
14415
14592
|
503: ServiceUnavailableError;
|
|
14416
14593
|
};
|
|
14417
|
-
export type
|
|
14418
|
-
export type
|
|
14594
|
+
export type PromptMetricsGetPromptRequestMetricsError = PromptMetricsGetPromptRequestMetricsErrors[keyof PromptMetricsGetPromptRequestMetricsErrors];
|
|
14595
|
+
export type PromptMetricsGetPromptRequestMetricsResponses = {
|
|
14419
14596
|
/**
|
|
14420
14597
|
* Success
|
|
14421
14598
|
*/
|
|
14422
14599
|
200: {
|
|
14423
14600
|
code: number;
|
|
14424
|
-
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;
|
|
14425
14613
|
error: {
|
|
14426
14614
|
code: string;
|
|
14427
14615
|
details?: unknown | null;
|
|
@@ -14447,17 +14635,9 @@ export type PromptsListPromptVersionsResponses = {
|
|
|
14447
14635
|
success: boolean;
|
|
14448
14636
|
};
|
|
14449
14637
|
};
|
|
14450
|
-
export type
|
|
14451
|
-
export type
|
|
14452
|
-
body
|
|
14453
|
-
allowBlockRemovals?: Array<string> | null;
|
|
14454
|
-
baseVersionId?: string | null;
|
|
14455
|
-
changelog?: string | null;
|
|
14456
|
-
format: 'text' | 'chat';
|
|
14457
|
-
modelConfig?: unknown | null;
|
|
14458
|
-
templateJson: unknown;
|
|
14459
|
-
variablesSchema?: unknown | null;
|
|
14460
|
-
};
|
|
14638
|
+
export type PromptMetricsGetPromptRequestMetricsResponse = PromptMetricsGetPromptRequestMetricsResponses[keyof PromptMetricsGetPromptRequestMetricsResponses];
|
|
14639
|
+
export type PromptsListPromptVersionsData = {
|
|
14640
|
+
body?: never;
|
|
14461
14641
|
path: {
|
|
14462
14642
|
projectId: string;
|
|
14463
14643
|
promptId: string;
|
|
@@ -14465,7 +14645,7 @@ export type PromptsCreatePromptVersionData = {
|
|
|
14465
14645
|
query?: never;
|
|
14466
14646
|
url: '/v1/projects/{projectId}/prompts/{promptId}/versions';
|
|
14467
14647
|
};
|
|
14468
|
-
export type
|
|
14648
|
+
export type PromptsListPromptVersionsErrors = {
|
|
14469
14649
|
/**
|
|
14470
14650
|
* BadRequestError
|
|
14471
14651
|
*/
|
|
@@ -14511,14 +14691,14 @@ export type PromptsCreatePromptVersionErrors = {
|
|
|
14511
14691
|
*/
|
|
14512
14692
|
503: ServiceUnavailableError;
|
|
14513
14693
|
};
|
|
14514
|
-
export type
|
|
14515
|
-
export type
|
|
14694
|
+
export type PromptsListPromptVersionsError = PromptsListPromptVersionsErrors[keyof PromptsListPromptVersionsErrors];
|
|
14695
|
+
export type PromptsListPromptVersionsResponses = {
|
|
14516
14696
|
/**
|
|
14517
14697
|
* Success
|
|
14518
14698
|
*/
|
|
14519
|
-
|
|
14699
|
+
200: {
|
|
14520
14700
|
code: number;
|
|
14521
|
-
data: PromptVersion | null;
|
|
14701
|
+
data: Array<PromptVersion> | null;
|
|
14522
14702
|
error: {
|
|
14523
14703
|
code: string;
|
|
14524
14704
|
details?: unknown | null;
|
|
@@ -14544,18 +14724,115 @@ export type PromptsCreatePromptVersionResponses = {
|
|
|
14544
14724
|
success: boolean;
|
|
14545
14725
|
};
|
|
14546
14726
|
};
|
|
14547
|
-
export type
|
|
14548
|
-
export type
|
|
14549
|
-
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
|
+
};
|
|
14550
14738
|
path: {
|
|
14551
14739
|
projectId: string;
|
|
14552
14740
|
promptId: string;
|
|
14553
|
-
versionId: string;
|
|
14554
14741
|
};
|
|
14555
|
-
query?:
|
|
14556
|
-
|
|
14557
|
-
|
|
14558
|
-
|
|
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';
|
|
14559
14836
|
};
|
|
14560
14837
|
export type PromptsGetPromptVersionDiffErrors = {
|
|
14561
14838
|
/**
|
|
@@ -14863,10 +15140,12 @@ export type PromptsGetPromptReviewStateResponses = {
|
|
|
14863
15140
|
activeDecisions: Array<{
|
|
14864
15141
|
createdAt: string;
|
|
14865
15142
|
decision: 'approve' | 'reject' | 'request_changes' | 'withdraw';
|
|
15143
|
+
hasActiveRejection: boolean;
|
|
14866
15144
|
reviewId: string;
|
|
14867
15145
|
reviewerPrincipalId: string;
|
|
14868
15146
|
}>;
|
|
14869
15147
|
approvalCount: number;
|
|
15148
|
+
callerHasActiveRejection: boolean;
|
|
14870
15149
|
hasActiveRejection: boolean;
|
|
14871
15150
|
reviews: Array<{
|
|
14872
15151
|
createdAt: string;
|
|
@@ -15278,6 +15557,7 @@ export type CredentialLifecycleRenameCredentialResponses = {
|
|
|
15278
15557
|
data: {
|
|
15279
15558
|
createdAt: string;
|
|
15280
15559
|
credentialType: 'api-key' | 'oauth' | 'iam-role' | 'access-key' | 'service-account' | 'none' | 'passthrough';
|
|
15560
|
+
deletedAt?: string | null | null;
|
|
15281
15561
|
id: string;
|
|
15282
15562
|
keyLast4: string;
|
|
15283
15563
|
label: string | null;
|
|
@@ -15568,6 +15848,7 @@ export type CredentialLifecycleRestoreCredentialResponses = {
|
|
|
15568
15848
|
credential: {
|
|
15569
15849
|
createdAt: string;
|
|
15570
15850
|
credentialType: 'api-key' | 'oauth' | 'iam-role' | 'access-key' | 'service-account' | 'none' | 'passthrough';
|
|
15851
|
+
deletedAt?: string | null | null;
|
|
15571
15852
|
id: string;
|
|
15572
15853
|
keyLast4: string;
|
|
15573
15854
|
label: string | null;
|
|
@@ -16984,6 +17265,7 @@ export type RoutingProvidersListRoutingProvidersResponses = {
|
|
|
16984
17265
|
200: {
|
|
16985
17266
|
code: number;
|
|
16986
17267
|
data: Array<{
|
|
17268
|
+
affectedEnvCount: number;
|
|
16987
17269
|
apiVersion: string | null;
|
|
16988
17270
|
archivedAt: string | null;
|
|
16989
17271
|
authHeaderName: string | null;
|
|
@@ -16994,20 +17276,32 @@ export type RoutingProvidersListRoutingProvidersResponses = {
|
|
|
16994
17276
|
createdByDisplay: string | null;
|
|
16995
17277
|
createdByImage: string | null;
|
|
16996
17278
|
createdByType?: 'user' | 'api_key' | 'unknown' | null | null;
|
|
17279
|
+
currentConfigVersion?: number | null | null;
|
|
16997
17280
|
displayName: string;
|
|
17281
|
+
envCount: number;
|
|
16998
17282
|
environments: Array<{
|
|
16999
17283
|
activationId: string;
|
|
17000
17284
|
activeFrom: string;
|
|
17001
17285
|
configSnapshot: {
|
|
17002
17286
|
[key: string]: unknown;
|
|
17003
17287
|
};
|
|
17288
|
+
configVersion?: number | null | null;
|
|
17004
17289
|
credentialId: string;
|
|
17290
|
+
credentialValidity: 'valid' | 'invalid' | 'untested' | 'na';
|
|
17005
17291
|
current: true;
|
|
17292
|
+
health: 'healthy' | 'degraded' | 'failing';
|
|
17006
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;
|
|
17007
17302
|
slug: string;
|
|
17008
|
-
status: 'healthy' | 'degraded' | 'failing' | 'idle';
|
|
17009
17303
|
}>;
|
|
17010
|
-
health: 'healthy' | 'degraded' | 'failing'
|
|
17304
|
+
health: 'healthy' | 'degraded' | 'failing';
|
|
17011
17305
|
id: string;
|
|
17012
17306
|
lastTestedAt: string | null;
|
|
17013
17307
|
lifecycleState: 'active' | 'deactivated' | 'archived';
|
|
@@ -17129,6 +17423,7 @@ export type RoutingProvidersCreateRoutingProviderResponses = {
|
|
|
17129
17423
|
201: {
|
|
17130
17424
|
code: number;
|
|
17131
17425
|
data: {
|
|
17426
|
+
affectedEnvCount: number;
|
|
17132
17427
|
apiVersion: string | null;
|
|
17133
17428
|
archivedAt: string | null;
|
|
17134
17429
|
authHeaderName: string | null;
|
|
@@ -17139,20 +17434,32 @@ export type RoutingProvidersCreateRoutingProviderResponses = {
|
|
|
17139
17434
|
createdByDisplay: string | null;
|
|
17140
17435
|
createdByImage: string | null;
|
|
17141
17436
|
createdByType?: 'user' | 'api_key' | 'unknown' | null | null;
|
|
17437
|
+
currentConfigVersion?: number | null | null;
|
|
17142
17438
|
displayName: string;
|
|
17439
|
+
envCount: number;
|
|
17143
17440
|
environments: Array<{
|
|
17144
17441
|
activationId: string;
|
|
17145
17442
|
activeFrom: string;
|
|
17146
17443
|
configSnapshot: {
|
|
17147
17444
|
[key: string]: unknown;
|
|
17148
17445
|
};
|
|
17446
|
+
configVersion?: number | null | null;
|
|
17149
17447
|
credentialId: string;
|
|
17448
|
+
credentialValidity: 'valid' | 'invalid' | 'untested' | 'na';
|
|
17150
17449
|
current: true;
|
|
17450
|
+
health: 'healthy' | 'degraded' | 'failing';
|
|
17151
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;
|
|
17152
17460
|
slug: string;
|
|
17153
|
-
status: 'healthy' | 'degraded' | 'failing' | 'idle';
|
|
17154
17461
|
}>;
|
|
17155
|
-
health: 'healthy' | 'degraded' | 'failing'
|
|
17462
|
+
health: 'healthy' | 'degraded' | 'failing';
|
|
17156
17463
|
id: string;
|
|
17157
17464
|
lastTestedAt: string | null;
|
|
17158
17465
|
lifecycleState: 'active' | 'deactivated' | 'archived';
|
|
@@ -17330,6 +17637,7 @@ export type RoutingProvidersConnectRoutingProviderResponses = {
|
|
|
17330
17637
|
}>;
|
|
17331
17638
|
credentialId: string;
|
|
17332
17639
|
provider: {
|
|
17640
|
+
affectedEnvCount: number;
|
|
17333
17641
|
apiVersion: string | null;
|
|
17334
17642
|
archivedAt: string | null;
|
|
17335
17643
|
authHeaderName: string | null;
|
|
@@ -17340,20 +17648,32 @@ export type RoutingProvidersConnectRoutingProviderResponses = {
|
|
|
17340
17648
|
createdByDisplay: string | null;
|
|
17341
17649
|
createdByImage: string | null;
|
|
17342
17650
|
createdByType?: 'user' | 'api_key' | 'unknown' | null | null;
|
|
17651
|
+
currentConfigVersion?: number | null | null;
|
|
17343
17652
|
displayName: string;
|
|
17653
|
+
envCount: number;
|
|
17344
17654
|
environments: Array<{
|
|
17345
17655
|
activationId: string;
|
|
17346
17656
|
activeFrom: string;
|
|
17347
17657
|
configSnapshot: {
|
|
17348
17658
|
[key: string]: unknown;
|
|
17349
17659
|
};
|
|
17660
|
+
configVersion?: number | null | null;
|
|
17350
17661
|
credentialId: string;
|
|
17662
|
+
credentialValidity: 'valid' | 'invalid' | 'untested' | 'na';
|
|
17351
17663
|
current: true;
|
|
17664
|
+
health: 'healthy' | 'degraded' | 'failing';
|
|
17352
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;
|
|
17353
17674
|
slug: string;
|
|
17354
|
-
status: 'healthy' | 'degraded' | 'failing' | 'idle';
|
|
17355
17675
|
}>;
|
|
17356
|
-
health: 'healthy' | 'degraded' | 'failing'
|
|
17676
|
+
health: 'healthy' | 'degraded' | 'failing';
|
|
17357
17677
|
id: string;
|
|
17358
17678
|
lastTestedAt: string | null;
|
|
17359
17679
|
lifecycleState: 'active' | 'deactivated' | 'archived';
|
|
@@ -17876,6 +18196,7 @@ export type RoutingProvidersGetRoutingProviderResponses = {
|
|
|
17876
18196
|
200: {
|
|
17877
18197
|
code: number;
|
|
17878
18198
|
data: {
|
|
18199
|
+
affectedEnvCount: number;
|
|
17879
18200
|
apiVersion: string | null;
|
|
17880
18201
|
archivedAt: string | null;
|
|
17881
18202
|
authHeaderName: string | null;
|
|
@@ -17886,20 +18207,32 @@ export type RoutingProvidersGetRoutingProviderResponses = {
|
|
|
17886
18207
|
createdByDisplay: string | null;
|
|
17887
18208
|
createdByImage: string | null;
|
|
17888
18209
|
createdByType?: 'user' | 'api_key' | 'unknown' | null | null;
|
|
18210
|
+
currentConfigVersion?: number | null | null;
|
|
17889
18211
|
displayName: string;
|
|
18212
|
+
envCount: number;
|
|
17890
18213
|
environments: Array<{
|
|
17891
18214
|
activationId: string;
|
|
17892
18215
|
activeFrom: string;
|
|
17893
18216
|
configSnapshot: {
|
|
17894
18217
|
[key: string]: unknown;
|
|
17895
18218
|
};
|
|
18219
|
+
configVersion?: number | null | null;
|
|
17896
18220
|
credentialId: string;
|
|
18221
|
+
credentialValidity: 'valid' | 'invalid' | 'untested' | 'na';
|
|
17897
18222
|
current: true;
|
|
18223
|
+
health: 'healthy' | 'degraded' | 'failing';
|
|
17898
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;
|
|
17899
18233
|
slug: string;
|
|
17900
|
-
status: 'healthy' | 'degraded' | 'failing' | 'idle';
|
|
17901
18234
|
}>;
|
|
17902
|
-
health: 'healthy' | 'degraded' | 'failing'
|
|
18235
|
+
health: 'healthy' | 'degraded' | 'failing';
|
|
17903
18236
|
id: string;
|
|
17904
18237
|
lastTestedAt: string | null;
|
|
17905
18238
|
lifecycleState: 'active' | 'deactivated' | 'archived';
|
|
@@ -18019,6 +18352,7 @@ export type RoutingProvidersUpdateRoutingProviderResponses = {
|
|
|
18019
18352
|
200: {
|
|
18020
18353
|
code: number;
|
|
18021
18354
|
data: {
|
|
18355
|
+
affectedEnvCount: number;
|
|
18022
18356
|
apiVersion: string | null;
|
|
18023
18357
|
archivedAt: string | null;
|
|
18024
18358
|
authHeaderName: string | null;
|
|
@@ -18029,20 +18363,32 @@ export type RoutingProvidersUpdateRoutingProviderResponses = {
|
|
|
18029
18363
|
createdByDisplay: string | null;
|
|
18030
18364
|
createdByImage: string | null;
|
|
18031
18365
|
createdByType?: 'user' | 'api_key' | 'unknown' | null | null;
|
|
18366
|
+
currentConfigVersion?: number | null | null;
|
|
18032
18367
|
displayName: string;
|
|
18368
|
+
envCount: number;
|
|
18033
18369
|
environments: Array<{
|
|
18034
18370
|
activationId: string;
|
|
18035
18371
|
activeFrom: string;
|
|
18036
18372
|
configSnapshot: {
|
|
18037
18373
|
[key: string]: unknown;
|
|
18038
18374
|
};
|
|
18375
|
+
configVersion?: number | null | null;
|
|
18039
18376
|
credentialId: string;
|
|
18377
|
+
credentialValidity: 'valid' | 'invalid' | 'untested' | 'na';
|
|
18040
18378
|
current: true;
|
|
18379
|
+
health: 'healthy' | 'degraded' | 'failing';
|
|
18041
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;
|
|
18042
18389
|
slug: string;
|
|
18043
|
-
status: 'healthy' | 'degraded' | 'failing' | 'idle';
|
|
18044
18390
|
}>;
|
|
18045
|
-
health: 'healthy' | 'degraded' | 'failing'
|
|
18391
|
+
health: 'healthy' | 'degraded' | 'failing';
|
|
18046
18392
|
id: string;
|
|
18047
18393
|
lastTestedAt: string | null;
|
|
18048
18394
|
lifecycleState: 'active' | 'deactivated' | 'archived';
|
|
@@ -18263,6 +18609,7 @@ export type RoutingProviderCatalogResolveRoutingProviderCatalogResponses = {
|
|
|
18263
18609
|
deprecatedAt?: string | null;
|
|
18264
18610
|
displayName?: string | null;
|
|
18265
18611
|
id: string;
|
|
18612
|
+
source?: 'user' | 'platform' | 'curated' | 'custom' | null;
|
|
18266
18613
|
}>;
|
|
18267
18614
|
source: 'user' | 'platform' | 'curated' | 'empty';
|
|
18268
18615
|
transition: {
|
|
@@ -18457,6 +18804,7 @@ export type RoutingProvidersListRoutingCredentialsResponses = {
|
|
|
18457
18804
|
data: Array<{
|
|
18458
18805
|
createdAt: string;
|
|
18459
18806
|
credentialType: 'api-key' | 'oauth' | 'iam-role' | 'access-key' | 'service-account' | 'none' | 'passthrough';
|
|
18807
|
+
deletedAt?: string | null | null;
|
|
18460
18808
|
id: string;
|
|
18461
18809
|
keyLast4: string;
|
|
18462
18810
|
label: string | null;
|
|
@@ -18578,6 +18926,7 @@ export type RoutingProvidersCreateRoutingCredentialResponses = {
|
|
|
18578
18926
|
data: {
|
|
18579
18927
|
createdAt: string;
|
|
18580
18928
|
credentialType: 'api-key' | 'oauth' | 'iam-role' | 'access-key' | 'service-account' | 'none' | 'passthrough';
|
|
18929
|
+
deletedAt?: string | null | null;
|
|
18581
18930
|
id: string;
|
|
18582
18931
|
keyLast4: string;
|
|
18583
18932
|
label: string | null;
|
|
@@ -18817,6 +19166,117 @@ export type RoutingProvidersTestRoutingCredentialResponses = {
|
|
|
18817
19166
|
};
|
|
18818
19167
|
};
|
|
18819
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];
|
|
18820
19280
|
export type RoutingProvidersListRoutingModelsData = {
|
|
18821
19281
|
body?: never;
|
|
18822
19282
|
path: {
|
|
@@ -18880,11 +19340,11 @@ export type RoutingProvidersListRoutingModelsResponses = {
|
|
|
18880
19340
|
200: {
|
|
18881
19341
|
code: number;
|
|
18882
19342
|
data: Array<{
|
|
19343
|
+
catalogSlug?: string | null | null;
|
|
18883
19344
|
createdAt: string;
|
|
18884
19345
|
description: string | null;
|
|
18885
19346
|
displayName: string | null;
|
|
18886
19347
|
id: string;
|
|
18887
|
-
isActive: boolean;
|
|
18888
19348
|
modelType: string | null;
|
|
18889
19349
|
name: string;
|
|
18890
19350
|
providerId: string;
|
|
@@ -18918,9 +19378,9 @@ export type RoutingProvidersListRoutingModelsResponses = {
|
|
|
18918
19378
|
export type RoutingProvidersListRoutingModelsResponse = RoutingProvidersListRoutingModelsResponses[keyof RoutingProvidersListRoutingModelsResponses];
|
|
18919
19379
|
export type RoutingProvidersCreateRoutingModelData = {
|
|
18920
19380
|
body: {
|
|
19381
|
+
catalogSlug?: string | null;
|
|
18921
19382
|
description?: string | null;
|
|
18922
19383
|
displayName?: string | null;
|
|
18923
|
-
isActive?: boolean | null;
|
|
18924
19384
|
modelType?: string | null;
|
|
18925
19385
|
name: string;
|
|
18926
19386
|
};
|
|
@@ -18985,11 +19445,11 @@ export type RoutingProvidersCreateRoutingModelResponses = {
|
|
|
18985
19445
|
201: {
|
|
18986
19446
|
code: number;
|
|
18987
19447
|
data: {
|
|
19448
|
+
catalogSlug?: string | null | null;
|
|
18988
19449
|
createdAt: string;
|
|
18989
19450
|
description: string | null;
|
|
18990
19451
|
displayName: string | null;
|
|
18991
19452
|
id: string;
|
|
18992
|
-
isActive: boolean;
|
|
18993
19453
|
modelType: string | null;
|
|
18994
19454
|
name: string;
|
|
18995
19455
|
providerId: string;
|
|
@@ -19133,7 +19593,6 @@ export type RoutingProvidersUpdateRoutingModelData = {
|
|
|
19133
19593
|
body: {
|
|
19134
19594
|
description?: string | null;
|
|
19135
19595
|
displayName?: string | null;
|
|
19136
|
-
isActive?: boolean | null;
|
|
19137
19596
|
modelType?: string | null;
|
|
19138
19597
|
};
|
|
19139
19598
|
path: {
|
|
@@ -19198,11 +19657,11 @@ export type RoutingProvidersUpdateRoutingModelResponses = {
|
|
|
19198
19657
|
200: {
|
|
19199
19658
|
code: number;
|
|
19200
19659
|
data: {
|
|
19660
|
+
catalogSlug?: string | null | null;
|
|
19201
19661
|
createdAt: string;
|
|
19202
19662
|
description: string | null;
|
|
19203
19663
|
displayName: string | null;
|
|
19204
19664
|
id: string;
|
|
19205
|
-
isActive: boolean;
|
|
19206
19665
|
modelType: string | null;
|
|
19207
19666
|
name: string;
|
|
19208
19667
|
providerId: string;
|
|
@@ -19242,6 +19701,114 @@ export type RoutingProvidersUpdateRoutingModelResponses = {
|
|
|
19242
19701
|
};
|
|
19243
19702
|
};
|
|
19244
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];
|
|
19245
19812
|
export type RoutingProvidersRestoreRoutingProviderData = {
|
|
19246
19813
|
body: {
|
|
19247
19814
|
reason: string;
|
|
@@ -19335,6 +19902,106 @@ export type RoutingProvidersRestoreRoutingProviderResponses = {
|
|
|
19335
19902
|
};
|
|
19336
19903
|
};
|
|
19337
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];
|
|
19338
20005
|
export type RoutingRoutesListRoutingRoutesData = {
|
|
19339
20006
|
body?: never;
|
|
19340
20007
|
path: {
|