@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
|
@@ -227,6 +227,7 @@ export type PromptLabelEvent = {
|
|
|
227
227
|
export type PromptLabelPointer = {
|
|
228
228
|
label: string;
|
|
229
229
|
promptId: string;
|
|
230
|
+
reason: string;
|
|
230
231
|
updatedAt: string;
|
|
231
232
|
updatedByDisplayName: string | null;
|
|
232
233
|
updatedByUserId: string;
|
|
@@ -246,7 +247,7 @@ export type PromptRelease = {
|
|
|
246
247
|
id: string;
|
|
247
248
|
priorReleaseId: string | null;
|
|
248
249
|
promptId: string;
|
|
249
|
-
reason: string
|
|
250
|
+
reason: string;
|
|
250
251
|
strategy: 'single' | 'weighted';
|
|
251
252
|
versionId: string;
|
|
252
253
|
};
|
|
@@ -3671,6 +3672,198 @@ export type OrganizationsAcceptOrganizationInvitationResponses = {
|
|
|
3671
3672
|
|
|
3672
3673
|
export type OrganizationsAcceptOrganizationInvitationResponse = OrganizationsAcceptOrganizationInvitationResponses[keyof OrganizationsAcceptOrganizationInvitationResponses];
|
|
3673
3674
|
|
|
3675
|
+
export type OrganizationsAcceptPendingOrganizationInvitationsData = {
|
|
3676
|
+
body?: never;
|
|
3677
|
+
path?: never;
|
|
3678
|
+
query?: never;
|
|
3679
|
+
url: '/v1/invitations/accept-pending';
|
|
3680
|
+
};
|
|
3681
|
+
|
|
3682
|
+
export type OrganizationsAcceptPendingOrganizationInvitationsErrors = {
|
|
3683
|
+
/**
|
|
3684
|
+
* BadRequestError
|
|
3685
|
+
*/
|
|
3686
|
+
400: BadRequestError;
|
|
3687
|
+
/**
|
|
3688
|
+
* UnauthorizedError
|
|
3689
|
+
*/
|
|
3690
|
+
401: UnauthorizedError;
|
|
3691
|
+
/**
|
|
3692
|
+
* ForbiddenError
|
|
3693
|
+
*/
|
|
3694
|
+
403: ForbiddenError;
|
|
3695
|
+
/**
|
|
3696
|
+
* NotFoundError
|
|
3697
|
+
*/
|
|
3698
|
+
404: NotFoundError;
|
|
3699
|
+
/**
|
|
3700
|
+
* ConflictError
|
|
3701
|
+
*/
|
|
3702
|
+
409: ConflictError;
|
|
3703
|
+
/**
|
|
3704
|
+
* GoneError
|
|
3705
|
+
*/
|
|
3706
|
+
410: GoneError;
|
|
3707
|
+
/**
|
|
3708
|
+
* MisdirectedRequestError
|
|
3709
|
+
*/
|
|
3710
|
+
421: MisdirectedRequestError;
|
|
3711
|
+
/**
|
|
3712
|
+
* UnprocessableEntityError
|
|
3713
|
+
*/
|
|
3714
|
+
422: UnprocessableEntityError;
|
|
3715
|
+
/**
|
|
3716
|
+
* TooManyRequestsError
|
|
3717
|
+
*/
|
|
3718
|
+
429: TooManyRequestsError;
|
|
3719
|
+
/**
|
|
3720
|
+
* InternalServerError
|
|
3721
|
+
*/
|
|
3722
|
+
500: InternalServerError;
|
|
3723
|
+
/**
|
|
3724
|
+
* ServiceUnavailableError
|
|
3725
|
+
*/
|
|
3726
|
+
503: ServiceUnavailableError;
|
|
3727
|
+
};
|
|
3728
|
+
|
|
3729
|
+
export type OrganizationsAcceptPendingOrganizationInvitationsError = OrganizationsAcceptPendingOrganizationInvitationsErrors[keyof OrganizationsAcceptPendingOrganizationInvitationsErrors];
|
|
3730
|
+
|
|
3731
|
+
export type OrganizationsAcceptPendingOrganizationInvitationsResponses = {
|
|
3732
|
+
/**
|
|
3733
|
+
* Success
|
|
3734
|
+
*/
|
|
3735
|
+
200: {
|
|
3736
|
+
code: number;
|
|
3737
|
+
data: {
|
|
3738
|
+
acceptedOrganizationIds: Array<string>;
|
|
3739
|
+
} | null;
|
|
3740
|
+
error: {
|
|
3741
|
+
code: string;
|
|
3742
|
+
details?: unknown | null;
|
|
3743
|
+
message: string;
|
|
3744
|
+
rowErrors?: Array<{
|
|
3745
|
+
code: string;
|
|
3746
|
+
message: string;
|
|
3747
|
+
path: Array<string | number>;
|
|
3748
|
+
}> | null;
|
|
3749
|
+
} | null;
|
|
3750
|
+
pagination: {
|
|
3751
|
+
limit: number;
|
|
3752
|
+
page: number;
|
|
3753
|
+
total: number;
|
|
3754
|
+
totalPages: number;
|
|
3755
|
+
} | null;
|
|
3756
|
+
sdkBehavior?: {
|
|
3757
|
+
flags: {
|
|
3758
|
+
[key: string]: unknown;
|
|
3759
|
+
};
|
|
3760
|
+
v: number;
|
|
3761
|
+
} | null;
|
|
3762
|
+
success: boolean;
|
|
3763
|
+
};
|
|
3764
|
+
};
|
|
3765
|
+
|
|
3766
|
+
export type OrganizationsAcceptPendingOrganizationInvitationsResponse = OrganizationsAcceptPendingOrganizationInvitationsResponses[keyof OrganizationsAcceptPendingOrganizationInvitationsResponses];
|
|
3767
|
+
|
|
3768
|
+
export type OrganizationsGetOrganizationInvitationDetailsData = {
|
|
3769
|
+
body: {
|
|
3770
|
+
token: string;
|
|
3771
|
+
};
|
|
3772
|
+
path?: never;
|
|
3773
|
+
query?: never;
|
|
3774
|
+
url: '/v1/invitations/details';
|
|
3775
|
+
};
|
|
3776
|
+
|
|
3777
|
+
export type OrganizationsGetOrganizationInvitationDetailsErrors = {
|
|
3778
|
+
/**
|
|
3779
|
+
* BadRequestError
|
|
3780
|
+
*/
|
|
3781
|
+
400: BadRequestError;
|
|
3782
|
+
/**
|
|
3783
|
+
* UnauthorizedError
|
|
3784
|
+
*/
|
|
3785
|
+
401: UnauthorizedError;
|
|
3786
|
+
/**
|
|
3787
|
+
* ForbiddenError
|
|
3788
|
+
*/
|
|
3789
|
+
403: ForbiddenError;
|
|
3790
|
+
/**
|
|
3791
|
+
* NotFoundError
|
|
3792
|
+
*/
|
|
3793
|
+
404: NotFoundError;
|
|
3794
|
+
/**
|
|
3795
|
+
* ConflictError
|
|
3796
|
+
*/
|
|
3797
|
+
409: ConflictError;
|
|
3798
|
+
/**
|
|
3799
|
+
* GoneError
|
|
3800
|
+
*/
|
|
3801
|
+
410: GoneError;
|
|
3802
|
+
/**
|
|
3803
|
+
* MisdirectedRequestError
|
|
3804
|
+
*/
|
|
3805
|
+
421: MisdirectedRequestError;
|
|
3806
|
+
/**
|
|
3807
|
+
* UnprocessableEntityError
|
|
3808
|
+
*/
|
|
3809
|
+
422: UnprocessableEntityError;
|
|
3810
|
+
/**
|
|
3811
|
+
* TooManyRequestsError
|
|
3812
|
+
*/
|
|
3813
|
+
429: TooManyRequestsError;
|
|
3814
|
+
/**
|
|
3815
|
+
* InternalServerError
|
|
3816
|
+
*/
|
|
3817
|
+
500: InternalServerError;
|
|
3818
|
+
/**
|
|
3819
|
+
* ServiceUnavailableError
|
|
3820
|
+
*/
|
|
3821
|
+
503: ServiceUnavailableError;
|
|
3822
|
+
};
|
|
3823
|
+
|
|
3824
|
+
export type OrganizationsGetOrganizationInvitationDetailsError = OrganizationsGetOrganizationInvitationDetailsErrors[keyof OrganizationsGetOrganizationInvitationDetailsErrors];
|
|
3825
|
+
|
|
3826
|
+
export type OrganizationsGetOrganizationInvitationDetailsResponses = {
|
|
3827
|
+
/**
|
|
3828
|
+
* Success
|
|
3829
|
+
*/
|
|
3830
|
+
200: {
|
|
3831
|
+
code: number;
|
|
3832
|
+
data: {
|
|
3833
|
+
details: {
|
|
3834
|
+
inviterEmail: string | null;
|
|
3835
|
+
inviterName: string | null;
|
|
3836
|
+
organizationName: string;
|
|
3837
|
+
} | null;
|
|
3838
|
+
} | null;
|
|
3839
|
+
error: {
|
|
3840
|
+
code: string;
|
|
3841
|
+
details?: unknown | null;
|
|
3842
|
+
message: string;
|
|
3843
|
+
rowErrors?: Array<{
|
|
3844
|
+
code: string;
|
|
3845
|
+
message: string;
|
|
3846
|
+
path: Array<string | number>;
|
|
3847
|
+
}> | null;
|
|
3848
|
+
} | null;
|
|
3849
|
+
pagination: {
|
|
3850
|
+
limit: number;
|
|
3851
|
+
page: number;
|
|
3852
|
+
total: number;
|
|
3853
|
+
totalPages: number;
|
|
3854
|
+
} | null;
|
|
3855
|
+
sdkBehavior?: {
|
|
3856
|
+
flags: {
|
|
3857
|
+
[key: string]: unknown;
|
|
3858
|
+
};
|
|
3859
|
+
v: number;
|
|
3860
|
+
} | null;
|
|
3861
|
+
success: boolean;
|
|
3862
|
+
};
|
|
3863
|
+
};
|
|
3864
|
+
|
|
3865
|
+
export type OrganizationsGetOrganizationInvitationDetailsResponse = OrganizationsGetOrganizationInvitationDetailsResponses[keyof OrganizationsGetOrganizationInvitationDetailsResponses];
|
|
3866
|
+
|
|
3674
3867
|
export type ApiKeysListApiKeysSuperData = {
|
|
3675
3868
|
body?: never;
|
|
3676
3869
|
path?: never;
|
|
@@ -8084,27 +8277,14 @@ export type WorkspacesCreateWorkspaceResponses = {
|
|
|
8084
8277
|
201: {
|
|
8085
8278
|
code: number;
|
|
8086
8279
|
data: {
|
|
8087
|
-
|
|
8088
|
-
|
|
8089
|
-
|
|
8090
|
-
|
|
8091
|
-
|
|
8092
|
-
|
|
8093
|
-
|
|
8094
|
-
|
|
8095
|
-
updatedAt: string;
|
|
8096
|
-
workspaceId: string;
|
|
8097
|
-
};
|
|
8098
|
-
workspace: {
|
|
8099
|
-
allowPlatformDiscovery: boolean;
|
|
8100
|
-
createdAt: string;
|
|
8101
|
-
id: string;
|
|
8102
|
-
name: string;
|
|
8103
|
-
organizationId: string;
|
|
8104
|
-
slug: string;
|
|
8105
|
-
status: 'active' | 'archived' | 'deleted';
|
|
8106
|
-
updatedAt: string;
|
|
8107
|
-
};
|
|
8280
|
+
allowPlatformDiscovery: boolean;
|
|
8281
|
+
createdAt: string;
|
|
8282
|
+
id: string;
|
|
8283
|
+
name: string;
|
|
8284
|
+
organizationId: string;
|
|
8285
|
+
slug: string;
|
|
8286
|
+
status: 'active' | 'archived' | 'deleted';
|
|
8287
|
+
updatedAt: string;
|
|
8108
8288
|
} | null;
|
|
8109
8289
|
error: {
|
|
8110
8290
|
code: string;
|
|
@@ -9990,7 +10170,7 @@ export type CredentialsDirectoryListProjectCredentialsDirectoryData = {
|
|
|
9990
10170
|
};
|
|
9991
10171
|
query?: {
|
|
9992
10172
|
catalog_id?: string | null;
|
|
9993
|
-
lifecycle_status?: 'active' | null;
|
|
10173
|
+
lifecycle_status?: 'active' | 'deleted' | null;
|
|
9994
10174
|
attached_provider_count?: '0' | '1' | '2+' | null;
|
|
9995
10175
|
limit?: string | null;
|
|
9996
10176
|
cursor?: string | null;
|
|
@@ -10069,7 +10249,7 @@ export type CredentialsDirectoryListProjectCredentialsDirectoryResponses = {
|
|
|
10069
10249
|
};
|
|
10070
10250
|
createdAt: string;
|
|
10071
10251
|
createdBy: string | null;
|
|
10072
|
-
credentialType:
|
|
10252
|
+
credentialType: 'api-key' | 'oauth' | 'iam-role' | 'access-key' | 'service-account' | 'none' | 'passthrough';
|
|
10073
10253
|
currentActivations: Array<{
|
|
10074
10254
|
activeFrom: string;
|
|
10075
10255
|
activeTo: string | null;
|
|
@@ -10083,7 +10263,7 @@ export type CredentialsDirectoryListProjectCredentialsDirectoryResponses = {
|
|
|
10083
10263
|
keyLast4: string;
|
|
10084
10264
|
label: string | null;
|
|
10085
10265
|
lastRotationAt: string | null;
|
|
10086
|
-
lifecycleStatus: 'active';
|
|
10266
|
+
lifecycleStatus: 'active' | 'deleted';
|
|
10087
10267
|
projectId: string;
|
|
10088
10268
|
}>;
|
|
10089
10269
|
pagination: {
|
|
@@ -12881,7 +13061,9 @@ export type ProjectOverviewGetProjectOverviewData = {
|
|
|
12881
13061
|
projectId: string;
|
|
12882
13062
|
};
|
|
12883
13063
|
query?: {
|
|
12884
|
-
timeRange?: '1h' | '6h' | '12h' | '24h' | '7d' | '30d' | null;
|
|
13064
|
+
timeRange?: '10m' | '30m' | '1h' | '2h' | '3h' | '6h' | '8h' | '12h' | '24h' | '7d' | '14d' | '28d' | '30d' | '60d' | null;
|
|
13065
|
+
startTimeFrom?: string | null;
|
|
13066
|
+
startTimeTo?: string | null;
|
|
12885
13067
|
};
|
|
12886
13068
|
url: '/v1/projects/{projectId}/overview';
|
|
12887
13069
|
};
|
|
@@ -13837,7 +14019,7 @@ export type PromptsListPromptsData = {
|
|
|
13837
14019
|
search?: string | null;
|
|
13838
14020
|
sortDir?: 'asc' | 'desc' | null;
|
|
13839
14021
|
status?: string | null;
|
|
13840
|
-
sortBy?: 'createdAt' | 'updatedAt' | 'name' | 'status' | 'latestVersion' | null;
|
|
14022
|
+
sortBy?: 'createdAt' | 'updatedAt' | 'name' | 'status' | 'latestVersion' | 'environments' | null;
|
|
13841
14023
|
tags?: string | null;
|
|
13842
14024
|
environment?: string | null;
|
|
13843
14025
|
};
|
|
@@ -13915,6 +14097,7 @@ export type PromptsListPromptsResponses = {
|
|
|
13915
14097
|
lastModifiedAt: string;
|
|
13916
14098
|
lastModifiedByDisplayName: string | null;
|
|
13917
14099
|
lastModifiedByImage: string | null;
|
|
14100
|
+
lastModifiedByType: 'user' | 'api_key' | 'unknown' | null;
|
|
13918
14101
|
lastModifiedByUserId: string | null;
|
|
13919
14102
|
latestVersion: number | null;
|
|
13920
14103
|
name: string;
|
|
@@ -14681,7 +14864,9 @@ export type PromptsListPromptLabelsData = {
|
|
|
14681
14864
|
projectId: string;
|
|
14682
14865
|
promptId: string;
|
|
14683
14866
|
};
|
|
14684
|
-
query?:
|
|
14867
|
+
query?: {
|
|
14868
|
+
asOf?: string | null;
|
|
14869
|
+
};
|
|
14685
14870
|
url: '/v1/projects/{projectId}/prompts/{promptId}/labels';
|
|
14686
14871
|
};
|
|
14687
14872
|
|
|
@@ -14771,7 +14956,7 @@ export type PromptsListPromptLabelsResponse = PromptsListPromptLabelsResponses[k
|
|
|
14771
14956
|
|
|
14772
14957
|
export type PromptsMovePromptLabelData = {
|
|
14773
14958
|
body: {
|
|
14774
|
-
reason
|
|
14959
|
+
reason: string;
|
|
14775
14960
|
versionId: string;
|
|
14776
14961
|
};
|
|
14777
14962
|
path: {
|
|
@@ -14979,7 +15164,7 @@ export type PromptsListPromptLabelEventsByLabelResponse = PromptsListPromptLabel
|
|
|
14979
15164
|
|
|
14980
15165
|
export type PromptsSetWeightedReleaseData = {
|
|
14981
15166
|
body: {
|
|
14982
|
-
reason
|
|
15167
|
+
reason: string;
|
|
14983
15168
|
variants: Array<{
|
|
14984
15169
|
name: string;
|
|
14985
15170
|
versionId: string;
|
|
@@ -15079,17 +15264,19 @@ export type PromptsSetWeightedReleaseResponses = {
|
|
|
15079
15264
|
|
|
15080
15265
|
export type PromptsSetWeightedReleaseResponse = PromptsSetWeightedReleaseResponses[keyof PromptsSetWeightedReleaseResponses];
|
|
15081
15266
|
|
|
15082
|
-
export type
|
|
15267
|
+
export type PromptMetricsGetPromptRequestMetricsData = {
|
|
15083
15268
|
body?: never;
|
|
15084
15269
|
path: {
|
|
15085
15270
|
projectId: string;
|
|
15086
15271
|
promptId: string;
|
|
15087
15272
|
};
|
|
15088
|
-
query?:
|
|
15089
|
-
|
|
15273
|
+
query?: {
|
|
15274
|
+
window?: string | null;
|
|
15275
|
+
};
|
|
15276
|
+
url: '/v1/projects/{projectId}/prompts/{promptId}/request-metrics';
|
|
15090
15277
|
};
|
|
15091
15278
|
|
|
15092
|
-
export type
|
|
15279
|
+
export type PromptMetricsGetPromptRequestMetricsErrors = {
|
|
15093
15280
|
/**
|
|
15094
15281
|
* BadRequestError
|
|
15095
15282
|
*/
|
|
@@ -15136,15 +15323,26 @@ export type PromptsListPromptVersionsErrors = {
|
|
|
15136
15323
|
503: ServiceUnavailableError;
|
|
15137
15324
|
};
|
|
15138
15325
|
|
|
15139
|
-
export type
|
|
15326
|
+
export type PromptMetricsGetPromptRequestMetricsError = PromptMetricsGetPromptRequestMetricsErrors[keyof PromptMetricsGetPromptRequestMetricsErrors];
|
|
15140
15327
|
|
|
15141
|
-
export type
|
|
15328
|
+
export type PromptMetricsGetPromptRequestMetricsResponses = {
|
|
15142
15329
|
/**
|
|
15143
15330
|
* Success
|
|
15144
15331
|
*/
|
|
15145
15332
|
200: {
|
|
15146
15333
|
code: number;
|
|
15147
|
-
data:
|
|
15334
|
+
data: {
|
|
15335
|
+
bucketMinutes: number;
|
|
15336
|
+
series: Array<{
|
|
15337
|
+
points: Array<{
|
|
15338
|
+
bucketStart: string;
|
|
15339
|
+
requests: number;
|
|
15340
|
+
}>;
|
|
15341
|
+
totalRequests: number;
|
|
15342
|
+
version: string;
|
|
15343
|
+
}>;
|
|
15344
|
+
windowHours: number;
|
|
15345
|
+
} | null;
|
|
15148
15346
|
error: {
|
|
15149
15347
|
code: string;
|
|
15150
15348
|
details?: unknown | null;
|
|
@@ -15171,18 +15369,10 @@ export type PromptsListPromptVersionsResponses = {
|
|
|
15171
15369
|
};
|
|
15172
15370
|
};
|
|
15173
15371
|
|
|
15174
|
-
export type
|
|
15372
|
+
export type PromptMetricsGetPromptRequestMetricsResponse = PromptMetricsGetPromptRequestMetricsResponses[keyof PromptMetricsGetPromptRequestMetricsResponses];
|
|
15175
15373
|
|
|
15176
|
-
export type
|
|
15177
|
-
body
|
|
15178
|
-
allowBlockRemovals?: Array<string> | null;
|
|
15179
|
-
baseVersionId?: string | null;
|
|
15180
|
-
changelog?: string | null;
|
|
15181
|
-
format: 'text' | 'chat';
|
|
15182
|
-
modelConfig?: unknown | null;
|
|
15183
|
-
templateJson: unknown;
|
|
15184
|
-
variablesSchema?: unknown | null;
|
|
15185
|
-
};
|
|
15374
|
+
export type PromptsListPromptVersionsData = {
|
|
15375
|
+
body?: never;
|
|
15186
15376
|
path: {
|
|
15187
15377
|
projectId: string;
|
|
15188
15378
|
promptId: string;
|
|
@@ -15191,7 +15381,7 @@ export type PromptsCreatePromptVersionData = {
|
|
|
15191
15381
|
url: '/v1/projects/{projectId}/prompts/{promptId}/versions';
|
|
15192
15382
|
};
|
|
15193
15383
|
|
|
15194
|
-
export type
|
|
15384
|
+
export type PromptsListPromptVersionsErrors = {
|
|
15195
15385
|
/**
|
|
15196
15386
|
* BadRequestError
|
|
15197
15387
|
*/
|
|
@@ -15238,15 +15428,15 @@ export type PromptsCreatePromptVersionErrors = {
|
|
|
15238
15428
|
503: ServiceUnavailableError;
|
|
15239
15429
|
};
|
|
15240
15430
|
|
|
15241
|
-
export type
|
|
15431
|
+
export type PromptsListPromptVersionsError = PromptsListPromptVersionsErrors[keyof PromptsListPromptVersionsErrors];
|
|
15242
15432
|
|
|
15243
|
-
export type
|
|
15433
|
+
export type PromptsListPromptVersionsResponses = {
|
|
15244
15434
|
/**
|
|
15245
15435
|
* Success
|
|
15246
15436
|
*/
|
|
15247
|
-
|
|
15437
|
+
200: {
|
|
15248
15438
|
code: number;
|
|
15249
|
-
data: PromptVersion | null;
|
|
15439
|
+
data: Array<PromptVersion> | null;
|
|
15250
15440
|
error: {
|
|
15251
15441
|
code: string;
|
|
15252
15442
|
details?: unknown | null;
|
|
@@ -15273,15 +15463,117 @@ export type PromptsCreatePromptVersionResponses = {
|
|
|
15273
15463
|
};
|
|
15274
15464
|
};
|
|
15275
15465
|
|
|
15276
|
-
export type
|
|
15466
|
+
export type PromptsListPromptVersionsResponse = PromptsListPromptVersionsResponses[keyof PromptsListPromptVersionsResponses];
|
|
15277
15467
|
|
|
15278
|
-
export type
|
|
15279
|
-
body
|
|
15280
|
-
|
|
15281
|
-
|
|
15282
|
-
|
|
15283
|
-
|
|
15284
|
-
|
|
15468
|
+
export type PromptsCreatePromptVersionData = {
|
|
15469
|
+
body: {
|
|
15470
|
+
allowBlockRemovals?: Array<string> | null;
|
|
15471
|
+
baseVersionId?: string | null;
|
|
15472
|
+
changelog?: string | null;
|
|
15473
|
+
format: 'text' | 'chat';
|
|
15474
|
+
modelConfig?: unknown | null;
|
|
15475
|
+
templateJson: unknown;
|
|
15476
|
+
variablesSchema?: unknown | null;
|
|
15477
|
+
};
|
|
15478
|
+
path: {
|
|
15479
|
+
projectId: string;
|
|
15480
|
+
promptId: string;
|
|
15481
|
+
};
|
|
15482
|
+
query?: never;
|
|
15483
|
+
url: '/v1/projects/{projectId}/prompts/{promptId}/versions';
|
|
15484
|
+
};
|
|
15485
|
+
|
|
15486
|
+
export type PromptsCreatePromptVersionErrors = {
|
|
15487
|
+
/**
|
|
15488
|
+
* BadRequestError
|
|
15489
|
+
*/
|
|
15490
|
+
400: BadRequestError;
|
|
15491
|
+
/**
|
|
15492
|
+
* UnauthorizedError
|
|
15493
|
+
*/
|
|
15494
|
+
401: UnauthorizedError;
|
|
15495
|
+
/**
|
|
15496
|
+
* ForbiddenError
|
|
15497
|
+
*/
|
|
15498
|
+
403: ForbiddenError;
|
|
15499
|
+
/**
|
|
15500
|
+
* NotFoundError
|
|
15501
|
+
*/
|
|
15502
|
+
404: NotFoundError;
|
|
15503
|
+
/**
|
|
15504
|
+
* ConflictError
|
|
15505
|
+
*/
|
|
15506
|
+
409: ConflictError;
|
|
15507
|
+
/**
|
|
15508
|
+
* GoneError
|
|
15509
|
+
*/
|
|
15510
|
+
410: GoneError;
|
|
15511
|
+
/**
|
|
15512
|
+
* MisdirectedRequestError
|
|
15513
|
+
*/
|
|
15514
|
+
421: MisdirectedRequestError;
|
|
15515
|
+
/**
|
|
15516
|
+
* UnprocessableEntityError
|
|
15517
|
+
*/
|
|
15518
|
+
422: UnprocessableEntityError;
|
|
15519
|
+
/**
|
|
15520
|
+
* TooManyRequestsError
|
|
15521
|
+
*/
|
|
15522
|
+
429: TooManyRequestsError;
|
|
15523
|
+
/**
|
|
15524
|
+
* InternalServerError
|
|
15525
|
+
*/
|
|
15526
|
+
500: InternalServerError;
|
|
15527
|
+
/**
|
|
15528
|
+
* ServiceUnavailableError
|
|
15529
|
+
*/
|
|
15530
|
+
503: ServiceUnavailableError;
|
|
15531
|
+
};
|
|
15532
|
+
|
|
15533
|
+
export type PromptsCreatePromptVersionError = PromptsCreatePromptVersionErrors[keyof PromptsCreatePromptVersionErrors];
|
|
15534
|
+
|
|
15535
|
+
export type PromptsCreatePromptVersionResponses = {
|
|
15536
|
+
/**
|
|
15537
|
+
* Success
|
|
15538
|
+
*/
|
|
15539
|
+
201: {
|
|
15540
|
+
code: number;
|
|
15541
|
+
data: PromptVersion | null;
|
|
15542
|
+
error: {
|
|
15543
|
+
code: string;
|
|
15544
|
+
details?: unknown | null;
|
|
15545
|
+
message: string;
|
|
15546
|
+
rowErrors?: Array<{
|
|
15547
|
+
code: string;
|
|
15548
|
+
message: string;
|
|
15549
|
+
path: Array<string | number>;
|
|
15550
|
+
}> | null;
|
|
15551
|
+
} | null;
|
|
15552
|
+
pagination: {
|
|
15553
|
+
limit: number;
|
|
15554
|
+
page: number;
|
|
15555
|
+
total: number;
|
|
15556
|
+
totalPages: number;
|
|
15557
|
+
} | null;
|
|
15558
|
+
sdkBehavior?: {
|
|
15559
|
+
flags: {
|
|
15560
|
+
[key: string]: unknown;
|
|
15561
|
+
};
|
|
15562
|
+
v: number;
|
|
15563
|
+
} | null;
|
|
15564
|
+
success: boolean;
|
|
15565
|
+
};
|
|
15566
|
+
};
|
|
15567
|
+
|
|
15568
|
+
export type PromptsCreatePromptVersionResponse = PromptsCreatePromptVersionResponses[keyof PromptsCreatePromptVersionResponses];
|
|
15569
|
+
|
|
15570
|
+
export type PromptsGetPromptVersionDiffData = {
|
|
15571
|
+
body?: never;
|
|
15572
|
+
path: {
|
|
15573
|
+
projectId: string;
|
|
15574
|
+
promptId: string;
|
|
15575
|
+
versionId: string;
|
|
15576
|
+
};
|
|
15285
15577
|
query?: {
|
|
15286
15578
|
against?: string | null;
|
|
15287
15579
|
};
|
|
@@ -15606,10 +15898,12 @@ export type PromptsGetPromptReviewStateResponses = {
|
|
|
15606
15898
|
activeDecisions: Array<{
|
|
15607
15899
|
createdAt: string;
|
|
15608
15900
|
decision: 'approve' | 'reject' | 'request_changes' | 'withdraw';
|
|
15901
|
+
hasActiveRejection: boolean;
|
|
15609
15902
|
reviewId: string;
|
|
15610
15903
|
reviewerPrincipalId: string;
|
|
15611
15904
|
}>;
|
|
15612
15905
|
approvalCount: number;
|
|
15906
|
+
callerHasActiveRejection: boolean;
|
|
15613
15907
|
hasActiveRejection: boolean;
|
|
15614
15908
|
reviews: Array<{
|
|
15615
15909
|
createdAt: string;
|
|
@@ -16041,6 +16335,7 @@ export type CredentialLifecycleRenameCredentialResponses = {
|
|
|
16041
16335
|
data: {
|
|
16042
16336
|
createdAt: string;
|
|
16043
16337
|
credentialType: 'api-key' | 'oauth' | 'iam-role' | 'access-key' | 'service-account' | 'none' | 'passthrough';
|
|
16338
|
+
deletedAt?: string | null | null;
|
|
16044
16339
|
id: string;
|
|
16045
16340
|
keyLast4: string;
|
|
16046
16341
|
label: string | null;
|
|
@@ -16346,6 +16641,7 @@ export type CredentialLifecycleRestoreCredentialResponses = {
|
|
|
16346
16641
|
credential: {
|
|
16347
16642
|
createdAt: string;
|
|
16348
16643
|
credentialType: 'api-key' | 'oauth' | 'iam-role' | 'access-key' | 'service-account' | 'none' | 'passthrough';
|
|
16644
|
+
deletedAt?: string | null | null;
|
|
16349
16645
|
id: string;
|
|
16350
16646
|
keyLast4: string;
|
|
16351
16647
|
label: string | null;
|
|
@@ -17827,6 +18123,7 @@ export type RoutingProvidersListRoutingProvidersResponses = {
|
|
|
17827
18123
|
200: {
|
|
17828
18124
|
code: number;
|
|
17829
18125
|
data: Array<{
|
|
18126
|
+
affectedEnvCount: number;
|
|
17830
18127
|
apiVersion: string | null;
|
|
17831
18128
|
archivedAt: string | null;
|
|
17832
18129
|
authHeaderName: string | null;
|
|
@@ -17837,20 +18134,32 @@ export type RoutingProvidersListRoutingProvidersResponses = {
|
|
|
17837
18134
|
createdByDisplay: string | null;
|
|
17838
18135
|
createdByImage: string | null;
|
|
17839
18136
|
createdByType?: 'user' | 'api_key' | 'unknown' | null | null;
|
|
18137
|
+
currentConfigVersion?: number | null | null;
|
|
17840
18138
|
displayName: string;
|
|
18139
|
+
envCount: number;
|
|
17841
18140
|
environments: Array<{
|
|
17842
18141
|
activationId: string;
|
|
17843
18142
|
activeFrom: string;
|
|
17844
18143
|
configSnapshot: {
|
|
17845
18144
|
[key: string]: unknown;
|
|
17846
18145
|
};
|
|
18146
|
+
configVersion?: number | null | null;
|
|
17847
18147
|
credentialId: string;
|
|
18148
|
+
credentialValidity: 'valid' | 'invalid' | 'untested' | 'na';
|
|
17848
18149
|
current: true;
|
|
18150
|
+
health: 'healthy' | 'degraded' | 'failing';
|
|
17849
18151
|
id: string;
|
|
18152
|
+
notRouted: boolean;
|
|
18153
|
+
perVersionHealth?: Array<{
|
|
18154
|
+
activeFrom: string;
|
|
18155
|
+
activeTo?: string | null | null;
|
|
18156
|
+
configVersion: number;
|
|
18157
|
+
current: boolean;
|
|
18158
|
+
health: 'healthy' | 'degraded' | 'failing';
|
|
18159
|
+
}> | null | null;
|
|
17850
18160
|
slug: string;
|
|
17851
|
-
status: 'healthy' | 'degraded' | 'failing' | 'idle';
|
|
17852
18161
|
}>;
|
|
17853
|
-
health: 'healthy' | 'degraded' | 'failing'
|
|
18162
|
+
health: 'healthy' | 'degraded' | 'failing';
|
|
17854
18163
|
id: string;
|
|
17855
18164
|
lastTestedAt: string | null;
|
|
17856
18165
|
lifecycleState: 'active' | 'deactivated' | 'archived';
|
|
@@ -17977,6 +18286,7 @@ export type RoutingProvidersCreateRoutingProviderResponses = {
|
|
|
17977
18286
|
201: {
|
|
17978
18287
|
code: number;
|
|
17979
18288
|
data: {
|
|
18289
|
+
affectedEnvCount: number;
|
|
17980
18290
|
apiVersion: string | null;
|
|
17981
18291
|
archivedAt: string | null;
|
|
17982
18292
|
authHeaderName: string | null;
|
|
@@ -17987,20 +18297,32 @@ export type RoutingProvidersCreateRoutingProviderResponses = {
|
|
|
17987
18297
|
createdByDisplay: string | null;
|
|
17988
18298
|
createdByImage: string | null;
|
|
17989
18299
|
createdByType?: 'user' | 'api_key' | 'unknown' | null | null;
|
|
18300
|
+
currentConfigVersion?: number | null | null;
|
|
17990
18301
|
displayName: string;
|
|
18302
|
+
envCount: number;
|
|
17991
18303
|
environments: Array<{
|
|
17992
18304
|
activationId: string;
|
|
17993
18305
|
activeFrom: string;
|
|
17994
18306
|
configSnapshot: {
|
|
17995
18307
|
[key: string]: unknown;
|
|
17996
18308
|
};
|
|
18309
|
+
configVersion?: number | null | null;
|
|
17997
18310
|
credentialId: string;
|
|
18311
|
+
credentialValidity: 'valid' | 'invalid' | 'untested' | 'na';
|
|
17998
18312
|
current: true;
|
|
18313
|
+
health: 'healthy' | 'degraded' | 'failing';
|
|
17999
18314
|
id: string;
|
|
18315
|
+
notRouted: boolean;
|
|
18316
|
+
perVersionHealth?: Array<{
|
|
18317
|
+
activeFrom: string;
|
|
18318
|
+
activeTo?: string | null | null;
|
|
18319
|
+
configVersion: number;
|
|
18320
|
+
current: boolean;
|
|
18321
|
+
health: 'healthy' | 'degraded' | 'failing';
|
|
18322
|
+
}> | null | null;
|
|
18000
18323
|
slug: string;
|
|
18001
|
-
status: 'healthy' | 'degraded' | 'failing' | 'idle';
|
|
18002
18324
|
}>;
|
|
18003
|
-
health: 'healthy' | 'degraded' | 'failing'
|
|
18325
|
+
health: 'healthy' | 'degraded' | 'failing';
|
|
18004
18326
|
id: string;
|
|
18005
18327
|
lastTestedAt: string | null;
|
|
18006
18328
|
lifecycleState: 'active' | 'deactivated' | 'archived';
|
|
@@ -18183,6 +18505,7 @@ export type RoutingProvidersConnectRoutingProviderResponses = {
|
|
|
18183
18505
|
}>;
|
|
18184
18506
|
credentialId: string;
|
|
18185
18507
|
provider: {
|
|
18508
|
+
affectedEnvCount: number;
|
|
18186
18509
|
apiVersion: string | null;
|
|
18187
18510
|
archivedAt: string | null;
|
|
18188
18511
|
authHeaderName: string | null;
|
|
@@ -18193,20 +18516,32 @@ export type RoutingProvidersConnectRoutingProviderResponses = {
|
|
|
18193
18516
|
createdByDisplay: string | null;
|
|
18194
18517
|
createdByImage: string | null;
|
|
18195
18518
|
createdByType?: 'user' | 'api_key' | 'unknown' | null | null;
|
|
18519
|
+
currentConfigVersion?: number | null | null;
|
|
18196
18520
|
displayName: string;
|
|
18521
|
+
envCount: number;
|
|
18197
18522
|
environments: Array<{
|
|
18198
18523
|
activationId: string;
|
|
18199
18524
|
activeFrom: string;
|
|
18200
18525
|
configSnapshot: {
|
|
18201
18526
|
[key: string]: unknown;
|
|
18202
18527
|
};
|
|
18528
|
+
configVersion?: number | null | null;
|
|
18203
18529
|
credentialId: string;
|
|
18530
|
+
credentialValidity: 'valid' | 'invalid' | 'untested' | 'na';
|
|
18204
18531
|
current: true;
|
|
18532
|
+
health: 'healthy' | 'degraded' | 'failing';
|
|
18205
18533
|
id: string;
|
|
18534
|
+
notRouted: boolean;
|
|
18535
|
+
perVersionHealth?: Array<{
|
|
18536
|
+
activeFrom: string;
|
|
18537
|
+
activeTo?: string | null | null;
|
|
18538
|
+
configVersion: number;
|
|
18539
|
+
current: boolean;
|
|
18540
|
+
health: 'healthy' | 'degraded' | 'failing';
|
|
18541
|
+
}> | null | null;
|
|
18206
18542
|
slug: string;
|
|
18207
|
-
status: 'healthy' | 'degraded' | 'failing' | 'idle';
|
|
18208
18543
|
}>;
|
|
18209
|
-
health: 'healthy' | 'degraded' | 'failing'
|
|
18544
|
+
health: 'healthy' | 'degraded' | 'failing';
|
|
18210
18545
|
id: string;
|
|
18211
18546
|
lastTestedAt: string | null;
|
|
18212
18547
|
lifecycleState: 'active' | 'deactivated' | 'archived';
|
|
@@ -18754,6 +19089,7 @@ export type RoutingProvidersGetRoutingProviderResponses = {
|
|
|
18754
19089
|
200: {
|
|
18755
19090
|
code: number;
|
|
18756
19091
|
data: {
|
|
19092
|
+
affectedEnvCount: number;
|
|
18757
19093
|
apiVersion: string | null;
|
|
18758
19094
|
archivedAt: string | null;
|
|
18759
19095
|
authHeaderName: string | null;
|
|
@@ -18764,20 +19100,32 @@ export type RoutingProvidersGetRoutingProviderResponses = {
|
|
|
18764
19100
|
createdByDisplay: string | null;
|
|
18765
19101
|
createdByImage: string | null;
|
|
18766
19102
|
createdByType?: 'user' | 'api_key' | 'unknown' | null | null;
|
|
19103
|
+
currentConfigVersion?: number | null | null;
|
|
18767
19104
|
displayName: string;
|
|
19105
|
+
envCount: number;
|
|
18768
19106
|
environments: Array<{
|
|
18769
19107
|
activationId: string;
|
|
18770
19108
|
activeFrom: string;
|
|
18771
19109
|
configSnapshot: {
|
|
18772
19110
|
[key: string]: unknown;
|
|
18773
19111
|
};
|
|
19112
|
+
configVersion?: number | null | null;
|
|
18774
19113
|
credentialId: string;
|
|
19114
|
+
credentialValidity: 'valid' | 'invalid' | 'untested' | 'na';
|
|
18775
19115
|
current: true;
|
|
19116
|
+
health: 'healthy' | 'degraded' | 'failing';
|
|
18776
19117
|
id: string;
|
|
19118
|
+
notRouted: boolean;
|
|
19119
|
+
perVersionHealth?: Array<{
|
|
19120
|
+
activeFrom: string;
|
|
19121
|
+
activeTo?: string | null | null;
|
|
19122
|
+
configVersion: number;
|
|
19123
|
+
current: boolean;
|
|
19124
|
+
health: 'healthy' | 'degraded' | 'failing';
|
|
19125
|
+
}> | null | null;
|
|
18777
19126
|
slug: string;
|
|
18778
|
-
status: 'healthy' | 'degraded' | 'failing' | 'idle';
|
|
18779
19127
|
}>;
|
|
18780
|
-
health: 'healthy' | 'degraded' | 'failing'
|
|
19128
|
+
health: 'healthy' | 'degraded' | 'failing';
|
|
18781
19129
|
id: string;
|
|
18782
19130
|
lastTestedAt: string | null;
|
|
18783
19131
|
lifecycleState: 'active' | 'deactivated' | 'archived';
|
|
@@ -18902,6 +19250,7 @@ export type RoutingProvidersUpdateRoutingProviderResponses = {
|
|
|
18902
19250
|
200: {
|
|
18903
19251
|
code: number;
|
|
18904
19252
|
data: {
|
|
19253
|
+
affectedEnvCount: number;
|
|
18905
19254
|
apiVersion: string | null;
|
|
18906
19255
|
archivedAt: string | null;
|
|
18907
19256
|
authHeaderName: string | null;
|
|
@@ -18912,20 +19261,32 @@ export type RoutingProvidersUpdateRoutingProviderResponses = {
|
|
|
18912
19261
|
createdByDisplay: string | null;
|
|
18913
19262
|
createdByImage: string | null;
|
|
18914
19263
|
createdByType?: 'user' | 'api_key' | 'unknown' | null | null;
|
|
19264
|
+
currentConfigVersion?: number | null | null;
|
|
18915
19265
|
displayName: string;
|
|
19266
|
+
envCount: number;
|
|
18916
19267
|
environments: Array<{
|
|
18917
19268
|
activationId: string;
|
|
18918
19269
|
activeFrom: string;
|
|
18919
19270
|
configSnapshot: {
|
|
18920
19271
|
[key: string]: unknown;
|
|
18921
19272
|
};
|
|
19273
|
+
configVersion?: number | null | null;
|
|
18922
19274
|
credentialId: string;
|
|
19275
|
+
credentialValidity: 'valid' | 'invalid' | 'untested' | 'na';
|
|
18923
19276
|
current: true;
|
|
19277
|
+
health: 'healthy' | 'degraded' | 'failing';
|
|
18924
19278
|
id: string;
|
|
19279
|
+
notRouted: boolean;
|
|
19280
|
+
perVersionHealth?: Array<{
|
|
19281
|
+
activeFrom: string;
|
|
19282
|
+
activeTo?: string | null | null;
|
|
19283
|
+
configVersion: number;
|
|
19284
|
+
current: boolean;
|
|
19285
|
+
health: 'healthy' | 'degraded' | 'failing';
|
|
19286
|
+
}> | null | null;
|
|
18925
19287
|
slug: string;
|
|
18926
|
-
status: 'healthy' | 'degraded' | 'failing' | 'idle';
|
|
18927
19288
|
}>;
|
|
18928
|
-
health: 'healthy' | 'degraded' | 'failing'
|
|
19289
|
+
health: 'healthy' | 'degraded' | 'failing';
|
|
18929
19290
|
id: string;
|
|
18930
19291
|
lastTestedAt: string | null;
|
|
18931
19292
|
lifecycleState: 'active' | 'deactivated' | 'archived';
|
|
@@ -19156,6 +19517,7 @@ export type RoutingProviderCatalogResolveRoutingProviderCatalogResponses = {
|
|
|
19156
19517
|
deprecatedAt?: string | null;
|
|
19157
19518
|
displayName?: string | null;
|
|
19158
19519
|
id: string;
|
|
19520
|
+
source?: 'user' | 'platform' | 'curated' | 'custom' | null;
|
|
19159
19521
|
}>;
|
|
19160
19522
|
source: 'user' | 'platform' | 'curated' | 'empty';
|
|
19161
19523
|
transition: {
|
|
@@ -19360,6 +19722,7 @@ export type RoutingProvidersListRoutingCredentialsResponses = {
|
|
|
19360
19722
|
data: Array<{
|
|
19361
19723
|
createdAt: string;
|
|
19362
19724
|
credentialType: 'api-key' | 'oauth' | 'iam-role' | 'access-key' | 'service-account' | 'none' | 'passthrough';
|
|
19725
|
+
deletedAt?: string | null | null;
|
|
19363
19726
|
id: string;
|
|
19364
19727
|
keyLast4: string;
|
|
19365
19728
|
label: string | null;
|
|
@@ -19486,6 +19849,7 @@ export type RoutingProvidersCreateRoutingCredentialResponses = {
|
|
|
19486
19849
|
data: {
|
|
19487
19850
|
createdAt: string;
|
|
19488
19851
|
credentialType: 'api-key' | 'oauth' | 'iam-role' | 'access-key' | 'service-account' | 'none' | 'passthrough';
|
|
19852
|
+
deletedAt?: string | null | null;
|
|
19489
19853
|
id: string;
|
|
19490
19854
|
keyLast4: string;
|
|
19491
19855
|
label: string | null;
|
|
@@ -19737,6 +20101,122 @@ export type RoutingProvidersTestRoutingCredentialResponses = {
|
|
|
19737
20101
|
|
|
19738
20102
|
export type RoutingProvidersTestRoutingCredentialResponse = RoutingProvidersTestRoutingCredentialResponses[keyof RoutingProvidersTestRoutingCredentialResponses];
|
|
19739
20103
|
|
|
20104
|
+
export type ProviderPromoteVersionPromoteProviderEnvVersionData = {
|
|
20105
|
+
body: {
|
|
20106
|
+
reason?: string | null;
|
|
20107
|
+
version: number;
|
|
20108
|
+
};
|
|
20109
|
+
path: {
|
|
20110
|
+
projectId: string;
|
|
20111
|
+
providerId: string;
|
|
20112
|
+
envSlug: string;
|
|
20113
|
+
};
|
|
20114
|
+
query?: never;
|
|
20115
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/environments/{envSlug}/promote';
|
|
20116
|
+
};
|
|
20117
|
+
|
|
20118
|
+
export type ProviderPromoteVersionPromoteProviderEnvVersionErrors = {
|
|
20119
|
+
/**
|
|
20120
|
+
* BadRequestError
|
|
20121
|
+
*/
|
|
20122
|
+
400: BadRequestError;
|
|
20123
|
+
/**
|
|
20124
|
+
* UnauthorizedError
|
|
20125
|
+
*/
|
|
20126
|
+
401: UnauthorizedError;
|
|
20127
|
+
/**
|
|
20128
|
+
* ForbiddenError
|
|
20129
|
+
*/
|
|
20130
|
+
403: ForbiddenError;
|
|
20131
|
+
/**
|
|
20132
|
+
* NotFoundError
|
|
20133
|
+
*/
|
|
20134
|
+
404: NotFoundError;
|
|
20135
|
+
/**
|
|
20136
|
+
* ConflictError
|
|
20137
|
+
*/
|
|
20138
|
+
409: ConflictError;
|
|
20139
|
+
/**
|
|
20140
|
+
* GoneError
|
|
20141
|
+
*/
|
|
20142
|
+
410: GoneError;
|
|
20143
|
+
/**
|
|
20144
|
+
* MisdirectedRequestError
|
|
20145
|
+
*/
|
|
20146
|
+
421: MisdirectedRequestError;
|
|
20147
|
+
/**
|
|
20148
|
+
* UnprocessableEntityError
|
|
20149
|
+
*/
|
|
20150
|
+
422: UnprocessableEntityError;
|
|
20151
|
+
/**
|
|
20152
|
+
* TooManyRequestsError
|
|
20153
|
+
*/
|
|
20154
|
+
429: TooManyRequestsError;
|
|
20155
|
+
/**
|
|
20156
|
+
* InternalServerError
|
|
20157
|
+
*/
|
|
20158
|
+
500: InternalServerError;
|
|
20159
|
+
/**
|
|
20160
|
+
* ServiceUnavailableError
|
|
20161
|
+
*/
|
|
20162
|
+
503: ServiceUnavailableError;
|
|
20163
|
+
};
|
|
20164
|
+
|
|
20165
|
+
export type ProviderPromoteVersionPromoteProviderEnvVersionError = ProviderPromoteVersionPromoteProviderEnvVersionErrors[keyof ProviderPromoteVersionPromoteProviderEnvVersionErrors];
|
|
20166
|
+
|
|
20167
|
+
export type ProviderPromoteVersionPromoteProviderEnvVersionResponses = {
|
|
20168
|
+
/**
|
|
20169
|
+
* Success
|
|
20170
|
+
*/
|
|
20171
|
+
201: {
|
|
20172
|
+
code: number;
|
|
20173
|
+
data: {
|
|
20174
|
+
activeFrom: string;
|
|
20175
|
+
activeTo: string | null;
|
|
20176
|
+
actorId: string;
|
|
20177
|
+
actorType: string;
|
|
20178
|
+
approvalStatus: 'not_required' | 'pending' | 'approved' | 'rejected';
|
|
20179
|
+
changeType: string;
|
|
20180
|
+
configSnapshot: {
|
|
20181
|
+
[key: string]: unknown;
|
|
20182
|
+
};
|
|
20183
|
+
createdAt: string;
|
|
20184
|
+
credentialId: string;
|
|
20185
|
+
envSlug: string;
|
|
20186
|
+
environmentId: string;
|
|
20187
|
+
id: string;
|
|
20188
|
+
providerId: string;
|
|
20189
|
+
reason: string | null;
|
|
20190
|
+
state: 'current' | 'pending';
|
|
20191
|
+
} | null;
|
|
20192
|
+
error: {
|
|
20193
|
+
code: string;
|
|
20194
|
+
details?: unknown | null;
|
|
20195
|
+
message: string;
|
|
20196
|
+
rowErrors?: Array<{
|
|
20197
|
+
code: string;
|
|
20198
|
+
message: string;
|
|
20199
|
+
path: Array<string | number>;
|
|
20200
|
+
}> | null;
|
|
20201
|
+
} | null;
|
|
20202
|
+
pagination: {
|
|
20203
|
+
limit: number;
|
|
20204
|
+
page: number;
|
|
20205
|
+
total: number;
|
|
20206
|
+
totalPages: number;
|
|
20207
|
+
} | null;
|
|
20208
|
+
sdkBehavior?: {
|
|
20209
|
+
flags: {
|
|
20210
|
+
[key: string]: unknown;
|
|
20211
|
+
};
|
|
20212
|
+
v: number;
|
|
20213
|
+
} | null;
|
|
20214
|
+
success: boolean;
|
|
20215
|
+
};
|
|
20216
|
+
};
|
|
20217
|
+
|
|
20218
|
+
export type ProviderPromoteVersionPromoteProviderEnvVersionResponse = ProviderPromoteVersionPromoteProviderEnvVersionResponses[keyof ProviderPromoteVersionPromoteProviderEnvVersionResponses];
|
|
20219
|
+
|
|
19740
20220
|
export type RoutingProvidersListRoutingModelsData = {
|
|
19741
20221
|
body?: never;
|
|
19742
20222
|
path: {
|
|
@@ -19803,11 +20283,11 @@ export type RoutingProvidersListRoutingModelsResponses = {
|
|
|
19803
20283
|
200: {
|
|
19804
20284
|
code: number;
|
|
19805
20285
|
data: Array<{
|
|
20286
|
+
catalogSlug?: string | null | null;
|
|
19806
20287
|
createdAt: string;
|
|
19807
20288
|
description: string | null;
|
|
19808
20289
|
displayName: string | null;
|
|
19809
20290
|
id: string;
|
|
19810
|
-
isActive: boolean;
|
|
19811
20291
|
modelType: string | null;
|
|
19812
20292
|
name: string;
|
|
19813
20293
|
providerId: string;
|
|
@@ -19843,9 +20323,9 @@ export type RoutingProvidersListRoutingModelsResponse = RoutingProvidersListRout
|
|
|
19843
20323
|
|
|
19844
20324
|
export type RoutingProvidersCreateRoutingModelData = {
|
|
19845
20325
|
body: {
|
|
20326
|
+
catalogSlug?: string | null;
|
|
19846
20327
|
description?: string | null;
|
|
19847
20328
|
displayName?: string | null;
|
|
19848
|
-
isActive?: boolean | null;
|
|
19849
20329
|
modelType?: string | null;
|
|
19850
20330
|
name: string;
|
|
19851
20331
|
};
|
|
@@ -19913,11 +20393,11 @@ export type RoutingProvidersCreateRoutingModelResponses = {
|
|
|
19913
20393
|
201: {
|
|
19914
20394
|
code: number;
|
|
19915
20395
|
data: {
|
|
20396
|
+
catalogSlug?: string | null | null;
|
|
19916
20397
|
createdAt: string;
|
|
19917
20398
|
description: string | null;
|
|
19918
20399
|
displayName: string | null;
|
|
19919
20400
|
id: string;
|
|
19920
|
-
isActive: boolean;
|
|
19921
20401
|
modelType: string | null;
|
|
19922
20402
|
name: string;
|
|
19923
20403
|
providerId: string;
|
|
@@ -20068,7 +20548,6 @@ export type RoutingProvidersUpdateRoutingModelData = {
|
|
|
20068
20548
|
body: {
|
|
20069
20549
|
description?: string | null;
|
|
20070
20550
|
displayName?: string | null;
|
|
20071
|
-
isActive?: boolean | null;
|
|
20072
20551
|
modelType?: string | null;
|
|
20073
20552
|
};
|
|
20074
20553
|
path: {
|
|
@@ -20136,11 +20615,11 @@ export type RoutingProvidersUpdateRoutingModelResponses = {
|
|
|
20136
20615
|
200: {
|
|
20137
20616
|
code: number;
|
|
20138
20617
|
data: {
|
|
20618
|
+
catalogSlug?: string | null | null;
|
|
20139
20619
|
createdAt: string;
|
|
20140
20620
|
description: string | null;
|
|
20141
20621
|
displayName: string | null;
|
|
20142
20622
|
id: string;
|
|
20143
|
-
isActive: boolean;
|
|
20144
20623
|
modelType: string | null;
|
|
20145
20624
|
name: string;
|
|
20146
20625
|
providerId: string;
|
|
@@ -20182,6 +20661,119 @@ export type RoutingProvidersUpdateRoutingModelResponses = {
|
|
|
20182
20661
|
|
|
20183
20662
|
export type RoutingProvidersUpdateRoutingModelResponse = RoutingProvidersUpdateRoutingModelResponses[keyof RoutingProvidersUpdateRoutingModelResponses];
|
|
20184
20663
|
|
|
20664
|
+
export type RoutingProvidersRestoreRoutingModelData = {
|
|
20665
|
+
body?: never;
|
|
20666
|
+
path: {
|
|
20667
|
+
projectId: string;
|
|
20668
|
+
providerId: string;
|
|
20669
|
+
modelId: string;
|
|
20670
|
+
};
|
|
20671
|
+
query?: never;
|
|
20672
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/models/{modelId}/restore';
|
|
20673
|
+
};
|
|
20674
|
+
|
|
20675
|
+
export type RoutingProvidersRestoreRoutingModelErrors = {
|
|
20676
|
+
/**
|
|
20677
|
+
* BadRequestError
|
|
20678
|
+
*/
|
|
20679
|
+
400: BadRequestError;
|
|
20680
|
+
/**
|
|
20681
|
+
* UnauthorizedError
|
|
20682
|
+
*/
|
|
20683
|
+
401: UnauthorizedError;
|
|
20684
|
+
/**
|
|
20685
|
+
* ForbiddenError
|
|
20686
|
+
*/
|
|
20687
|
+
403: ForbiddenError;
|
|
20688
|
+
/**
|
|
20689
|
+
* NotFoundError
|
|
20690
|
+
*/
|
|
20691
|
+
404: NotFoundError;
|
|
20692
|
+
/**
|
|
20693
|
+
* ConflictError
|
|
20694
|
+
*/
|
|
20695
|
+
409: ConflictError;
|
|
20696
|
+
/**
|
|
20697
|
+
* GoneError
|
|
20698
|
+
*/
|
|
20699
|
+
410: GoneError;
|
|
20700
|
+
/**
|
|
20701
|
+
* MisdirectedRequestError
|
|
20702
|
+
*/
|
|
20703
|
+
421: MisdirectedRequestError;
|
|
20704
|
+
/**
|
|
20705
|
+
* UnprocessableEntityError
|
|
20706
|
+
*/
|
|
20707
|
+
422: UnprocessableEntityError;
|
|
20708
|
+
/**
|
|
20709
|
+
* TooManyRequestsError
|
|
20710
|
+
*/
|
|
20711
|
+
429: TooManyRequestsError;
|
|
20712
|
+
/**
|
|
20713
|
+
* InternalServerError
|
|
20714
|
+
*/
|
|
20715
|
+
500: InternalServerError;
|
|
20716
|
+
/**
|
|
20717
|
+
* ServiceUnavailableError
|
|
20718
|
+
*/
|
|
20719
|
+
503: ServiceUnavailableError;
|
|
20720
|
+
};
|
|
20721
|
+
|
|
20722
|
+
export type RoutingProvidersRestoreRoutingModelError = RoutingProvidersRestoreRoutingModelErrors[keyof RoutingProvidersRestoreRoutingModelErrors];
|
|
20723
|
+
|
|
20724
|
+
export type RoutingProvidersRestoreRoutingModelResponses = {
|
|
20725
|
+
/**
|
|
20726
|
+
* Success
|
|
20727
|
+
*/
|
|
20728
|
+
200: {
|
|
20729
|
+
code: number;
|
|
20730
|
+
data: {
|
|
20731
|
+
catalogSlug?: string | null | null;
|
|
20732
|
+
createdAt: string;
|
|
20733
|
+
description: string | null;
|
|
20734
|
+
displayName: string | null;
|
|
20735
|
+
id: string;
|
|
20736
|
+
modelType: string | null;
|
|
20737
|
+
name: string;
|
|
20738
|
+
providerId: string;
|
|
20739
|
+
publishWarning?: {
|
|
20740
|
+
errors: Array<{
|
|
20741
|
+
entity: string;
|
|
20742
|
+
message: string;
|
|
20743
|
+
rule?: string | null;
|
|
20744
|
+
}>;
|
|
20745
|
+
kind: 'validation';
|
|
20746
|
+
} | null;
|
|
20747
|
+
updatedAt: string;
|
|
20748
|
+
} | null;
|
|
20749
|
+
error: {
|
|
20750
|
+
code: string;
|
|
20751
|
+
details?: unknown | null;
|
|
20752
|
+
message: string;
|
|
20753
|
+
rowErrors?: Array<{
|
|
20754
|
+
code: string;
|
|
20755
|
+
message: string;
|
|
20756
|
+
path: Array<string | number>;
|
|
20757
|
+
}> | null;
|
|
20758
|
+
} | null;
|
|
20759
|
+
pagination: {
|
|
20760
|
+
limit: number;
|
|
20761
|
+
page: number;
|
|
20762
|
+
total: number;
|
|
20763
|
+
totalPages: number;
|
|
20764
|
+
} | null;
|
|
20765
|
+
sdkBehavior?: {
|
|
20766
|
+
flags: {
|
|
20767
|
+
[key: string]: unknown;
|
|
20768
|
+
};
|
|
20769
|
+
v: number;
|
|
20770
|
+
} | null;
|
|
20771
|
+
success: boolean;
|
|
20772
|
+
};
|
|
20773
|
+
};
|
|
20774
|
+
|
|
20775
|
+
export type RoutingProvidersRestoreRoutingModelResponse = RoutingProvidersRestoreRoutingModelResponses[keyof RoutingProvidersRestoreRoutingModelResponses];
|
|
20776
|
+
|
|
20185
20777
|
export type RoutingProvidersRestoreRoutingProviderData = {
|
|
20186
20778
|
body: {
|
|
20187
20779
|
reason: string;
|
|
@@ -20280,6 +20872,111 @@ export type RoutingProvidersRestoreRoutingProviderResponses = {
|
|
|
20280
20872
|
|
|
20281
20873
|
export type RoutingProvidersRestoreRoutingProviderResponse = RoutingProvidersRestoreRoutingProviderResponses[keyof RoutingProvidersRestoreRoutingProviderResponses];
|
|
20282
20874
|
|
|
20875
|
+
export type ProviderConfigVersionsListProviderConfigVersionsData = {
|
|
20876
|
+
body?: never;
|
|
20877
|
+
path: {
|
|
20878
|
+
projectId: string;
|
|
20879
|
+
providerId: string;
|
|
20880
|
+
};
|
|
20881
|
+
query?: never;
|
|
20882
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/versions';
|
|
20883
|
+
};
|
|
20884
|
+
|
|
20885
|
+
export type ProviderConfigVersionsListProviderConfigVersionsErrors = {
|
|
20886
|
+
/**
|
|
20887
|
+
* BadRequestError
|
|
20888
|
+
*/
|
|
20889
|
+
400: BadRequestError;
|
|
20890
|
+
/**
|
|
20891
|
+
* UnauthorizedError
|
|
20892
|
+
*/
|
|
20893
|
+
401: UnauthorizedError;
|
|
20894
|
+
/**
|
|
20895
|
+
* ForbiddenError
|
|
20896
|
+
*/
|
|
20897
|
+
403: ForbiddenError;
|
|
20898
|
+
/**
|
|
20899
|
+
* NotFoundError
|
|
20900
|
+
*/
|
|
20901
|
+
404: NotFoundError;
|
|
20902
|
+
/**
|
|
20903
|
+
* ConflictError
|
|
20904
|
+
*/
|
|
20905
|
+
409: ConflictError;
|
|
20906
|
+
/**
|
|
20907
|
+
* GoneError
|
|
20908
|
+
*/
|
|
20909
|
+
410: GoneError;
|
|
20910
|
+
/**
|
|
20911
|
+
* MisdirectedRequestError
|
|
20912
|
+
*/
|
|
20913
|
+
421: MisdirectedRequestError;
|
|
20914
|
+
/**
|
|
20915
|
+
* UnprocessableEntityError
|
|
20916
|
+
*/
|
|
20917
|
+
422: UnprocessableEntityError;
|
|
20918
|
+
/**
|
|
20919
|
+
* TooManyRequestsError
|
|
20920
|
+
*/
|
|
20921
|
+
429: TooManyRequestsError;
|
|
20922
|
+
/**
|
|
20923
|
+
* InternalServerError
|
|
20924
|
+
*/
|
|
20925
|
+
500: InternalServerError;
|
|
20926
|
+
/**
|
|
20927
|
+
* ServiceUnavailableError
|
|
20928
|
+
*/
|
|
20929
|
+
503: ServiceUnavailableError;
|
|
20930
|
+
};
|
|
20931
|
+
|
|
20932
|
+
export type ProviderConfigVersionsListProviderConfigVersionsError = ProviderConfigVersionsListProviderConfigVersionsErrors[keyof ProviderConfigVersionsListProviderConfigVersionsErrors];
|
|
20933
|
+
|
|
20934
|
+
export type ProviderConfigVersionsListProviderConfigVersionsResponses = {
|
|
20935
|
+
/**
|
|
20936
|
+
* Success
|
|
20937
|
+
*/
|
|
20938
|
+
200: {
|
|
20939
|
+
code: number;
|
|
20940
|
+
data: {
|
|
20941
|
+
versions: Array<{
|
|
20942
|
+
configSnapshot: {
|
|
20943
|
+
[key: string]: unknown;
|
|
20944
|
+
};
|
|
20945
|
+
contentHash: string;
|
|
20946
|
+
createdAt: string;
|
|
20947
|
+
createdBy: string | null;
|
|
20948
|
+
liveInEnvSlugs: Array<string>;
|
|
20949
|
+
version: number;
|
|
20950
|
+
}>;
|
|
20951
|
+
} | null;
|
|
20952
|
+
error: {
|
|
20953
|
+
code: string;
|
|
20954
|
+
details?: unknown | null;
|
|
20955
|
+
message: string;
|
|
20956
|
+
rowErrors?: Array<{
|
|
20957
|
+
code: string;
|
|
20958
|
+
message: string;
|
|
20959
|
+
path: Array<string | number>;
|
|
20960
|
+
}> | null;
|
|
20961
|
+
} | null;
|
|
20962
|
+
pagination: {
|
|
20963
|
+
limit: number;
|
|
20964
|
+
page: number;
|
|
20965
|
+
total: number;
|
|
20966
|
+
totalPages: number;
|
|
20967
|
+
} | null;
|
|
20968
|
+
sdkBehavior?: {
|
|
20969
|
+
flags: {
|
|
20970
|
+
[key: string]: unknown;
|
|
20971
|
+
};
|
|
20972
|
+
v: number;
|
|
20973
|
+
} | null;
|
|
20974
|
+
success: boolean;
|
|
20975
|
+
};
|
|
20976
|
+
};
|
|
20977
|
+
|
|
20978
|
+
export type ProviderConfigVersionsListProviderConfigVersionsResponse = ProviderConfigVersionsListProviderConfigVersionsResponses[keyof ProviderConfigVersionsListProviderConfigVersionsResponses];
|
|
20979
|
+
|
|
20283
20980
|
export type RoutingRoutesListRoutingRoutesData = {
|
|
20284
20981
|
body?: never;
|
|
20285
20982
|
path: {
|