@to11ai/sdk 2.0.0-rc.6 → 2.0.0-rc.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/index.d.ts +1 -1
- package/dist/generated/types.gen.d.ts +930 -86
- package/dist/generated/zod.gen.d.ts +405 -0
- package/package.json +1 -1
- package/src/generated/index.ts +1 -1
- package/src/generated/types.gen.ts +970 -86
- package/src/generated/zod.gen.ts +443 -0
|
@@ -16681,6 +16681,117 @@ export type CredentialLifecycleRestoreCredentialResponses = {
|
|
|
16681
16681
|
};
|
|
16682
16682
|
};
|
|
16683
16683
|
export type CredentialLifecycleRestoreCredentialResponse = CredentialLifecycleRestoreCredentialResponses[keyof CredentialLifecycleRestoreCredentialResponses];
|
|
16684
|
+
export type CredentialRotateRotateCredentialData = {
|
|
16685
|
+
body: {
|
|
16686
|
+
disposition: 'keep' | 'archive' | 'delete';
|
|
16687
|
+
newCredentialId: string;
|
|
16688
|
+
reason: string;
|
|
16689
|
+
};
|
|
16690
|
+
path: {
|
|
16691
|
+
projectId: string;
|
|
16692
|
+
providerId: string;
|
|
16693
|
+
credentialId: string;
|
|
16694
|
+
};
|
|
16695
|
+
query?: never;
|
|
16696
|
+
url: '/v1/projects/{projectId}/providers/{providerId}/credentials/{credentialId}/rotate';
|
|
16697
|
+
};
|
|
16698
|
+
export type CredentialRotateRotateCredentialErrors = {
|
|
16699
|
+
/**
|
|
16700
|
+
* BadRequestError
|
|
16701
|
+
*/
|
|
16702
|
+
400: BadRequestError;
|
|
16703
|
+
/**
|
|
16704
|
+
* UnauthorizedError
|
|
16705
|
+
*/
|
|
16706
|
+
401: UnauthorizedError;
|
|
16707
|
+
/**
|
|
16708
|
+
* ForbiddenError
|
|
16709
|
+
*/
|
|
16710
|
+
403: ForbiddenError;
|
|
16711
|
+
/**
|
|
16712
|
+
* NotFoundError
|
|
16713
|
+
*/
|
|
16714
|
+
404: NotFoundError;
|
|
16715
|
+
/**
|
|
16716
|
+
* ConflictError
|
|
16717
|
+
*/
|
|
16718
|
+
409: ConflictError;
|
|
16719
|
+
/**
|
|
16720
|
+
* GoneError
|
|
16721
|
+
*/
|
|
16722
|
+
410: GoneError;
|
|
16723
|
+
/**
|
|
16724
|
+
* ContentTooLargeError
|
|
16725
|
+
*/
|
|
16726
|
+
413: ContentTooLargeError;
|
|
16727
|
+
/**
|
|
16728
|
+
* MisdirectedRequestError
|
|
16729
|
+
*/
|
|
16730
|
+
421: MisdirectedRequestError;
|
|
16731
|
+
/**
|
|
16732
|
+
* UnprocessableEntityError
|
|
16733
|
+
*/
|
|
16734
|
+
422: UnprocessableEntityError;
|
|
16735
|
+
/**
|
|
16736
|
+
* TooManyRequestsError
|
|
16737
|
+
*/
|
|
16738
|
+
429: TooManyRequestsError;
|
|
16739
|
+
/**
|
|
16740
|
+
* InternalServerError
|
|
16741
|
+
*/
|
|
16742
|
+
500: InternalServerError;
|
|
16743
|
+
/**
|
|
16744
|
+
* ServiceUnavailableError
|
|
16745
|
+
*/
|
|
16746
|
+
503: ServiceUnavailableError;
|
|
16747
|
+
};
|
|
16748
|
+
export type CredentialRotateRotateCredentialError = CredentialRotateRotateCredentialErrors[keyof CredentialRotateRotateCredentialErrors];
|
|
16749
|
+
export type CredentialRotateRotateCredentialResponses = {
|
|
16750
|
+
/**
|
|
16751
|
+
* Success
|
|
16752
|
+
*/
|
|
16753
|
+
200: {
|
|
16754
|
+
code: number;
|
|
16755
|
+
data: {
|
|
16756
|
+
disposition: 'keep' | 'archive' | 'delete' | 'skipped_due_to_failures' | 'skipped_due_to_test_failure' | 'skipped_due_to_pending_approval' | 'skipped_due_to_shared_credential';
|
|
16757
|
+
failedEnvs: Array<{
|
|
16758
|
+
environmentId: string;
|
|
16759
|
+
failureReason: string;
|
|
16760
|
+
}>;
|
|
16761
|
+
movedEnvs: Array<{
|
|
16762
|
+
environmentId: string;
|
|
16763
|
+
}>;
|
|
16764
|
+
pendingApprovalEnvs: Array<{
|
|
16765
|
+
environmentId: string;
|
|
16766
|
+
}>;
|
|
16767
|
+
testOutcome: 'passed' | 'deferred' | 'failed';
|
|
16768
|
+
} | null;
|
|
16769
|
+
error: {
|
|
16770
|
+
code: string;
|
|
16771
|
+
details?: unknown | null;
|
|
16772
|
+
message: string;
|
|
16773
|
+
rowErrors?: Array<{
|
|
16774
|
+
code: string;
|
|
16775
|
+
message: string;
|
|
16776
|
+
path: Array<string | number>;
|
|
16777
|
+
}> | null;
|
|
16778
|
+
} | null;
|
|
16779
|
+
pagination: {
|
|
16780
|
+
limit: number;
|
|
16781
|
+
page: number;
|
|
16782
|
+
total: number;
|
|
16783
|
+
totalPages: number;
|
|
16784
|
+
} | null;
|
|
16785
|
+
sdkBehavior?: {
|
|
16786
|
+
flags: {
|
|
16787
|
+
[key: string]: unknown;
|
|
16788
|
+
};
|
|
16789
|
+
v: number;
|
|
16790
|
+
} | null;
|
|
16791
|
+
success: boolean;
|
|
16792
|
+
};
|
|
16793
|
+
};
|
|
16794
|
+
export type CredentialRotateRotateCredentialResponse = CredentialRotateRotateCredentialResponses[keyof CredentialRotateRotateCredentialResponses];
|
|
16684
16795
|
export type ProviderDisconnectDisconnectProviderData = {
|
|
16685
16796
|
body: {
|
|
16686
16797
|
environmentIds: Array<string>;
|
|
@@ -17101,6 +17212,7 @@ export type ProviderEmergencyRotationEmergencyRotateProviderCredentialResponses
|
|
|
17101
17212
|
envSlug: string;
|
|
17102
17213
|
environmentId: string;
|
|
17103
17214
|
id: string;
|
|
17215
|
+
modelAllowlistCleared?: boolean | null;
|
|
17104
17216
|
providerId: string;
|
|
17105
17217
|
reason: string | null;
|
|
17106
17218
|
state: 'current' | 'pending';
|
|
@@ -17216,6 +17328,7 @@ export type ProviderRollbackRollbackProviderEnvActivationResponses = {
|
|
|
17216
17328
|
envSlug: string;
|
|
17217
17329
|
environmentId: string;
|
|
17218
17330
|
id: string;
|
|
17331
|
+
modelAllowlistCleared?: boolean | null;
|
|
17219
17332
|
providerId: string;
|
|
17220
17333
|
reason: string | null;
|
|
17221
17334
|
state: 'current' | 'pending';
|
|
@@ -19883,9 +19996,631 @@ export type RoutingProvidersCreateRoutingCredentialData = {
|
|
|
19883
19996
|
providerId: string;
|
|
19884
19997
|
};
|
|
19885
19998
|
query?: never;
|
|
19886
|
-
url: '/v1/projects/{projectId}/routing/providers/{providerId}/credentials';
|
|
19999
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/credentials';
|
|
20000
|
+
};
|
|
20001
|
+
export type RoutingProvidersCreateRoutingCredentialErrors = {
|
|
20002
|
+
/**
|
|
20003
|
+
* BadRequestError
|
|
20004
|
+
*/
|
|
20005
|
+
400: BadRequestError;
|
|
20006
|
+
/**
|
|
20007
|
+
* UnauthorizedError
|
|
20008
|
+
*/
|
|
20009
|
+
401: UnauthorizedError;
|
|
20010
|
+
/**
|
|
20011
|
+
* ForbiddenError
|
|
20012
|
+
*/
|
|
20013
|
+
403: ForbiddenError;
|
|
20014
|
+
/**
|
|
20015
|
+
* NotFoundError
|
|
20016
|
+
*/
|
|
20017
|
+
404: NotFoundError;
|
|
20018
|
+
/**
|
|
20019
|
+
* ConflictError
|
|
20020
|
+
*/
|
|
20021
|
+
409: ConflictError;
|
|
20022
|
+
/**
|
|
20023
|
+
* GoneError
|
|
20024
|
+
*/
|
|
20025
|
+
410: GoneError;
|
|
20026
|
+
/**
|
|
20027
|
+
* ContentTooLargeError
|
|
20028
|
+
*/
|
|
20029
|
+
413: ContentTooLargeError;
|
|
20030
|
+
/**
|
|
20031
|
+
* MisdirectedRequestError
|
|
20032
|
+
*/
|
|
20033
|
+
421: MisdirectedRequestError;
|
|
20034
|
+
/**
|
|
20035
|
+
* UnprocessableEntityError
|
|
20036
|
+
*/
|
|
20037
|
+
422: UnprocessableEntityError;
|
|
20038
|
+
/**
|
|
20039
|
+
* TooManyRequestsError
|
|
20040
|
+
*/
|
|
20041
|
+
429: TooManyRequestsError;
|
|
20042
|
+
/**
|
|
20043
|
+
* InternalServerError
|
|
20044
|
+
*/
|
|
20045
|
+
500: InternalServerError;
|
|
20046
|
+
/**
|
|
20047
|
+
* ServiceUnavailableError
|
|
20048
|
+
*/
|
|
20049
|
+
503: ServiceUnavailableError;
|
|
20050
|
+
};
|
|
20051
|
+
export type RoutingProvidersCreateRoutingCredentialError = RoutingProvidersCreateRoutingCredentialErrors[keyof RoutingProvidersCreateRoutingCredentialErrors];
|
|
20052
|
+
export type RoutingProvidersCreateRoutingCredentialResponses = {
|
|
20053
|
+
/**
|
|
20054
|
+
* Success
|
|
20055
|
+
*/
|
|
20056
|
+
201: {
|
|
20057
|
+
code: number;
|
|
20058
|
+
data: {
|
|
20059
|
+
createdAt: string;
|
|
20060
|
+
credentialType: 'api-key' | 'oauth' | 'iam-role' | 'access-key' | 'service-account' | 'none' | 'passthrough';
|
|
20061
|
+
deletedAt?: string | null | null;
|
|
20062
|
+
id: string;
|
|
20063
|
+
keyLast4: string;
|
|
20064
|
+
label: string | null;
|
|
20065
|
+
providerCatalogId: string;
|
|
20066
|
+
publishWarning?: {
|
|
20067
|
+
errors: Array<{
|
|
20068
|
+
entity: string;
|
|
20069
|
+
message: string;
|
|
20070
|
+
rule?: string | null;
|
|
20071
|
+
}>;
|
|
20072
|
+
kind: 'validation';
|
|
20073
|
+
} | null;
|
|
20074
|
+
} | null;
|
|
20075
|
+
error: {
|
|
20076
|
+
code: string;
|
|
20077
|
+
details?: unknown | null;
|
|
20078
|
+
message: string;
|
|
20079
|
+
rowErrors?: Array<{
|
|
20080
|
+
code: string;
|
|
20081
|
+
message: string;
|
|
20082
|
+
path: Array<string | number>;
|
|
20083
|
+
}> | null;
|
|
20084
|
+
} | null;
|
|
20085
|
+
pagination: {
|
|
20086
|
+
limit: number;
|
|
20087
|
+
page: number;
|
|
20088
|
+
total: number;
|
|
20089
|
+
totalPages: number;
|
|
20090
|
+
} | null;
|
|
20091
|
+
sdkBehavior?: {
|
|
20092
|
+
flags: {
|
|
20093
|
+
[key: string]: unknown;
|
|
20094
|
+
};
|
|
20095
|
+
v: number;
|
|
20096
|
+
} | null;
|
|
20097
|
+
success: boolean;
|
|
20098
|
+
};
|
|
20099
|
+
};
|
|
20100
|
+
export type RoutingProvidersCreateRoutingCredentialResponse = RoutingProvidersCreateRoutingCredentialResponses[keyof RoutingProvidersCreateRoutingCredentialResponses];
|
|
20101
|
+
export type RoutingProvidersDeleteRoutingCredentialData = {
|
|
20102
|
+
body?: never;
|
|
20103
|
+
path: {
|
|
20104
|
+
projectId: string;
|
|
20105
|
+
providerId: string;
|
|
20106
|
+
credentialId: string;
|
|
20107
|
+
};
|
|
20108
|
+
query?: never;
|
|
20109
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/credentials/{credentialId}';
|
|
20110
|
+
};
|
|
20111
|
+
export type RoutingProvidersDeleteRoutingCredentialErrors = {
|
|
20112
|
+
/**
|
|
20113
|
+
* BadRequestError
|
|
20114
|
+
*/
|
|
20115
|
+
400: BadRequestError;
|
|
20116
|
+
/**
|
|
20117
|
+
* UnauthorizedError
|
|
20118
|
+
*/
|
|
20119
|
+
401: UnauthorizedError;
|
|
20120
|
+
/**
|
|
20121
|
+
* ForbiddenError
|
|
20122
|
+
*/
|
|
20123
|
+
403: ForbiddenError;
|
|
20124
|
+
/**
|
|
20125
|
+
* NotFoundError
|
|
20126
|
+
*/
|
|
20127
|
+
404: NotFoundError;
|
|
20128
|
+
/**
|
|
20129
|
+
* ConflictError
|
|
20130
|
+
*/
|
|
20131
|
+
409: ConflictError;
|
|
20132
|
+
/**
|
|
20133
|
+
* GoneError
|
|
20134
|
+
*/
|
|
20135
|
+
410: GoneError;
|
|
20136
|
+
/**
|
|
20137
|
+
* ContentTooLargeError
|
|
20138
|
+
*/
|
|
20139
|
+
413: ContentTooLargeError;
|
|
20140
|
+
/**
|
|
20141
|
+
* MisdirectedRequestError
|
|
20142
|
+
*/
|
|
20143
|
+
421: MisdirectedRequestError;
|
|
20144
|
+
/**
|
|
20145
|
+
* UnprocessableEntityError
|
|
20146
|
+
*/
|
|
20147
|
+
422: UnprocessableEntityError;
|
|
20148
|
+
/**
|
|
20149
|
+
* TooManyRequestsError
|
|
20150
|
+
*/
|
|
20151
|
+
429: TooManyRequestsError;
|
|
20152
|
+
/**
|
|
20153
|
+
* InternalServerError
|
|
20154
|
+
*/
|
|
20155
|
+
500: InternalServerError;
|
|
20156
|
+
/**
|
|
20157
|
+
* ServiceUnavailableError
|
|
20158
|
+
*/
|
|
20159
|
+
503: ServiceUnavailableError;
|
|
20160
|
+
};
|
|
20161
|
+
export type RoutingProvidersDeleteRoutingCredentialError = RoutingProvidersDeleteRoutingCredentialErrors[keyof RoutingProvidersDeleteRoutingCredentialErrors];
|
|
20162
|
+
export type RoutingProvidersDeleteRoutingCredentialResponses = {
|
|
20163
|
+
/**
|
|
20164
|
+
* Success
|
|
20165
|
+
*/
|
|
20166
|
+
200: {
|
|
20167
|
+
code: number;
|
|
20168
|
+
data: {
|
|
20169
|
+
deleted: boolean;
|
|
20170
|
+
publishWarning?: {
|
|
20171
|
+
errors: Array<{
|
|
20172
|
+
entity: string;
|
|
20173
|
+
message: string;
|
|
20174
|
+
rule?: string | null;
|
|
20175
|
+
}>;
|
|
20176
|
+
kind: 'validation';
|
|
20177
|
+
} | null;
|
|
20178
|
+
} | null;
|
|
20179
|
+
error: {
|
|
20180
|
+
code: string;
|
|
20181
|
+
details?: unknown | null;
|
|
20182
|
+
message: string;
|
|
20183
|
+
rowErrors?: Array<{
|
|
20184
|
+
code: string;
|
|
20185
|
+
message: string;
|
|
20186
|
+
path: Array<string | number>;
|
|
20187
|
+
}> | null;
|
|
20188
|
+
} | null;
|
|
20189
|
+
pagination: {
|
|
20190
|
+
limit: number;
|
|
20191
|
+
page: number;
|
|
20192
|
+
total: number;
|
|
20193
|
+
totalPages: number;
|
|
20194
|
+
} | null;
|
|
20195
|
+
sdkBehavior?: {
|
|
20196
|
+
flags: {
|
|
20197
|
+
[key: string]: unknown;
|
|
20198
|
+
};
|
|
20199
|
+
v: number;
|
|
20200
|
+
} | null;
|
|
20201
|
+
success: boolean;
|
|
20202
|
+
};
|
|
20203
|
+
};
|
|
20204
|
+
export type RoutingProvidersDeleteRoutingCredentialResponse = RoutingProvidersDeleteRoutingCredentialResponses[keyof RoutingProvidersDeleteRoutingCredentialResponses];
|
|
20205
|
+
export type RoutingProvidersTestRoutingCredentialData = {
|
|
20206
|
+
body?: never;
|
|
20207
|
+
path: {
|
|
20208
|
+
projectId: string;
|
|
20209
|
+
providerId: string;
|
|
20210
|
+
credentialId: string;
|
|
20211
|
+
};
|
|
20212
|
+
query?: never;
|
|
20213
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/credentials/{credentialId}/test';
|
|
20214
|
+
};
|
|
20215
|
+
export type RoutingProvidersTestRoutingCredentialErrors = {
|
|
20216
|
+
/**
|
|
20217
|
+
* BadRequestError
|
|
20218
|
+
*/
|
|
20219
|
+
400: BadRequestError;
|
|
20220
|
+
/**
|
|
20221
|
+
* UnauthorizedError
|
|
20222
|
+
*/
|
|
20223
|
+
401: UnauthorizedError;
|
|
20224
|
+
/**
|
|
20225
|
+
* ForbiddenError
|
|
20226
|
+
*/
|
|
20227
|
+
403: ForbiddenError;
|
|
20228
|
+
/**
|
|
20229
|
+
* NotFoundError
|
|
20230
|
+
*/
|
|
20231
|
+
404: NotFoundError;
|
|
20232
|
+
/**
|
|
20233
|
+
* ConflictError
|
|
20234
|
+
*/
|
|
20235
|
+
409: ConflictError;
|
|
20236
|
+
/**
|
|
20237
|
+
* GoneError
|
|
20238
|
+
*/
|
|
20239
|
+
410: GoneError;
|
|
20240
|
+
/**
|
|
20241
|
+
* ContentTooLargeError
|
|
20242
|
+
*/
|
|
20243
|
+
413: ContentTooLargeError;
|
|
20244
|
+
/**
|
|
20245
|
+
* MisdirectedRequestError
|
|
20246
|
+
*/
|
|
20247
|
+
421: MisdirectedRequestError;
|
|
20248
|
+
/**
|
|
20249
|
+
* UnprocessableEntityError
|
|
20250
|
+
*/
|
|
20251
|
+
422: UnprocessableEntityError;
|
|
20252
|
+
/**
|
|
20253
|
+
* TooManyRequestsError
|
|
20254
|
+
*/
|
|
20255
|
+
429: TooManyRequestsError;
|
|
20256
|
+
/**
|
|
20257
|
+
* InternalServerError
|
|
20258
|
+
*/
|
|
20259
|
+
500: InternalServerError;
|
|
20260
|
+
/**
|
|
20261
|
+
* ServiceUnavailableError
|
|
20262
|
+
*/
|
|
20263
|
+
503: ServiceUnavailableError;
|
|
20264
|
+
};
|
|
20265
|
+
export type RoutingProvidersTestRoutingCredentialError = RoutingProvidersTestRoutingCredentialErrors[keyof RoutingProvidersTestRoutingCredentialErrors];
|
|
20266
|
+
export type RoutingProvidersTestRoutingCredentialResponses = {
|
|
20267
|
+
/**
|
|
20268
|
+
* Success
|
|
20269
|
+
*/
|
|
20270
|
+
200: {
|
|
20271
|
+
code: number;
|
|
20272
|
+
data: {
|
|
20273
|
+
error: string | null;
|
|
20274
|
+
latencyMs: number | null;
|
|
20275
|
+
models: Array<{
|
|
20276
|
+
contextWindow?: number | null;
|
|
20277
|
+
displayName?: string | null;
|
|
20278
|
+
id: string;
|
|
20279
|
+
kind?: 'chat' | 'reason' | 'embed' | 'mod' | 'other' | null;
|
|
20280
|
+
}> | null;
|
|
20281
|
+
success: boolean;
|
|
20282
|
+
} | null;
|
|
20283
|
+
error: {
|
|
20284
|
+
code: string;
|
|
20285
|
+
details?: unknown | null;
|
|
20286
|
+
message: string;
|
|
20287
|
+
rowErrors?: Array<{
|
|
20288
|
+
code: string;
|
|
20289
|
+
message: string;
|
|
20290
|
+
path: Array<string | number>;
|
|
20291
|
+
}> | null;
|
|
20292
|
+
} | null;
|
|
20293
|
+
pagination: {
|
|
20294
|
+
limit: number;
|
|
20295
|
+
page: number;
|
|
20296
|
+
total: number;
|
|
20297
|
+
totalPages: number;
|
|
20298
|
+
} | null;
|
|
20299
|
+
sdkBehavior?: {
|
|
20300
|
+
flags: {
|
|
20301
|
+
[key: string]: unknown;
|
|
20302
|
+
};
|
|
20303
|
+
v: number;
|
|
20304
|
+
} | null;
|
|
20305
|
+
success: boolean;
|
|
20306
|
+
};
|
|
20307
|
+
};
|
|
20308
|
+
export type RoutingProvidersTestRoutingCredentialResponse = RoutingProvidersTestRoutingCredentialResponses[keyof RoutingProvidersTestRoutingCredentialResponses];
|
|
20309
|
+
export type ProviderConfigDraftsDiscardProviderDraftData = {
|
|
20310
|
+
body?: never;
|
|
20311
|
+
path: {
|
|
20312
|
+
projectId: string;
|
|
20313
|
+
providerId: string;
|
|
20314
|
+
};
|
|
20315
|
+
query?: never;
|
|
20316
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/draft';
|
|
20317
|
+
};
|
|
20318
|
+
export type ProviderConfigDraftsDiscardProviderDraftErrors = {
|
|
20319
|
+
/**
|
|
20320
|
+
* BadRequestError
|
|
20321
|
+
*/
|
|
20322
|
+
400: BadRequestError;
|
|
20323
|
+
/**
|
|
20324
|
+
* UnauthorizedError
|
|
20325
|
+
*/
|
|
20326
|
+
401: UnauthorizedError;
|
|
20327
|
+
/**
|
|
20328
|
+
* ForbiddenError
|
|
20329
|
+
*/
|
|
20330
|
+
403: ForbiddenError;
|
|
20331
|
+
/**
|
|
20332
|
+
* NotFoundError
|
|
20333
|
+
*/
|
|
20334
|
+
404: NotFoundError;
|
|
20335
|
+
/**
|
|
20336
|
+
* ConflictError
|
|
20337
|
+
*/
|
|
20338
|
+
409: ConflictError;
|
|
20339
|
+
/**
|
|
20340
|
+
* GoneError
|
|
20341
|
+
*/
|
|
20342
|
+
410: GoneError;
|
|
20343
|
+
/**
|
|
20344
|
+
* ContentTooLargeError
|
|
20345
|
+
*/
|
|
20346
|
+
413: ContentTooLargeError;
|
|
20347
|
+
/**
|
|
20348
|
+
* MisdirectedRequestError
|
|
20349
|
+
*/
|
|
20350
|
+
421: MisdirectedRequestError;
|
|
20351
|
+
/**
|
|
20352
|
+
* UnprocessableEntityError
|
|
20353
|
+
*/
|
|
20354
|
+
422: UnprocessableEntityError;
|
|
20355
|
+
/**
|
|
20356
|
+
* TooManyRequestsError
|
|
20357
|
+
*/
|
|
20358
|
+
429: TooManyRequestsError;
|
|
20359
|
+
/**
|
|
20360
|
+
* InternalServerError
|
|
20361
|
+
*/
|
|
20362
|
+
500: InternalServerError;
|
|
20363
|
+
/**
|
|
20364
|
+
* ServiceUnavailableError
|
|
20365
|
+
*/
|
|
20366
|
+
503: ServiceUnavailableError;
|
|
20367
|
+
};
|
|
20368
|
+
export type ProviderConfigDraftsDiscardProviderDraftError = ProviderConfigDraftsDiscardProviderDraftErrors[keyof ProviderConfigDraftsDiscardProviderDraftErrors];
|
|
20369
|
+
export type ProviderConfigDraftsDiscardProviderDraftResponses = {
|
|
20370
|
+
/**
|
|
20371
|
+
* Success
|
|
20372
|
+
*/
|
|
20373
|
+
200: {
|
|
20374
|
+
code: number;
|
|
20375
|
+
data: {
|
|
20376
|
+
discarded: true;
|
|
20377
|
+
} | null;
|
|
20378
|
+
error: {
|
|
20379
|
+
code: string;
|
|
20380
|
+
details?: unknown | null;
|
|
20381
|
+
message: string;
|
|
20382
|
+
rowErrors?: Array<{
|
|
20383
|
+
code: string;
|
|
20384
|
+
message: string;
|
|
20385
|
+
path: Array<string | number>;
|
|
20386
|
+
}> | null;
|
|
20387
|
+
} | null;
|
|
20388
|
+
pagination: {
|
|
20389
|
+
limit: number;
|
|
20390
|
+
page: number;
|
|
20391
|
+
total: number;
|
|
20392
|
+
totalPages: number;
|
|
20393
|
+
} | null;
|
|
20394
|
+
sdkBehavior?: {
|
|
20395
|
+
flags: {
|
|
20396
|
+
[key: string]: unknown;
|
|
20397
|
+
};
|
|
20398
|
+
v: number;
|
|
20399
|
+
} | null;
|
|
20400
|
+
success: boolean;
|
|
20401
|
+
};
|
|
20402
|
+
};
|
|
20403
|
+
export type ProviderConfigDraftsDiscardProviderDraftResponse = ProviderConfigDraftsDiscardProviderDraftResponses[keyof ProviderConfigDraftsDiscardProviderDraftResponses];
|
|
20404
|
+
export type ProviderConfigDraftsGetProviderDraftData = {
|
|
20405
|
+
body?: never;
|
|
20406
|
+
path: {
|
|
20407
|
+
projectId: string;
|
|
20408
|
+
providerId: string;
|
|
20409
|
+
};
|
|
20410
|
+
query?: never;
|
|
20411
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/draft';
|
|
20412
|
+
};
|
|
20413
|
+
export type ProviderConfigDraftsGetProviderDraftErrors = {
|
|
20414
|
+
/**
|
|
20415
|
+
* BadRequestError
|
|
20416
|
+
*/
|
|
20417
|
+
400: BadRequestError;
|
|
20418
|
+
/**
|
|
20419
|
+
* UnauthorizedError
|
|
20420
|
+
*/
|
|
20421
|
+
401: UnauthorizedError;
|
|
20422
|
+
/**
|
|
20423
|
+
* ForbiddenError
|
|
20424
|
+
*/
|
|
20425
|
+
403: ForbiddenError;
|
|
20426
|
+
/**
|
|
20427
|
+
* NotFoundError
|
|
20428
|
+
*/
|
|
20429
|
+
404: NotFoundError;
|
|
20430
|
+
/**
|
|
20431
|
+
* ConflictError
|
|
20432
|
+
*/
|
|
20433
|
+
409: ConflictError;
|
|
20434
|
+
/**
|
|
20435
|
+
* GoneError
|
|
20436
|
+
*/
|
|
20437
|
+
410: GoneError;
|
|
20438
|
+
/**
|
|
20439
|
+
* ContentTooLargeError
|
|
20440
|
+
*/
|
|
20441
|
+
413: ContentTooLargeError;
|
|
20442
|
+
/**
|
|
20443
|
+
* MisdirectedRequestError
|
|
20444
|
+
*/
|
|
20445
|
+
421: MisdirectedRequestError;
|
|
20446
|
+
/**
|
|
20447
|
+
* UnprocessableEntityError
|
|
20448
|
+
*/
|
|
20449
|
+
422: UnprocessableEntityError;
|
|
20450
|
+
/**
|
|
20451
|
+
* TooManyRequestsError
|
|
20452
|
+
*/
|
|
20453
|
+
429: TooManyRequestsError;
|
|
20454
|
+
/**
|
|
20455
|
+
* InternalServerError
|
|
20456
|
+
*/
|
|
20457
|
+
500: InternalServerError;
|
|
20458
|
+
/**
|
|
20459
|
+
* ServiceUnavailableError
|
|
20460
|
+
*/
|
|
20461
|
+
503: ServiceUnavailableError;
|
|
20462
|
+
};
|
|
20463
|
+
export type ProviderConfigDraftsGetProviderDraftError = ProviderConfigDraftsGetProviderDraftErrors[keyof ProviderConfigDraftsGetProviderDraftErrors];
|
|
20464
|
+
export type ProviderConfigDraftsGetProviderDraftResponses = {
|
|
20465
|
+
/**
|
|
20466
|
+
* Success
|
|
20467
|
+
*/
|
|
20468
|
+
200: {
|
|
20469
|
+
code: number;
|
|
20470
|
+
data: {
|
|
20471
|
+
configSnapshot: {
|
|
20472
|
+
[key: string]: unknown;
|
|
20473
|
+
};
|
|
20474
|
+
createdAt: string;
|
|
20475
|
+
createdBy: string | null;
|
|
20476
|
+
fromVersionId: string;
|
|
20477
|
+
id: string;
|
|
20478
|
+
providerId: string;
|
|
20479
|
+
} | null | null;
|
|
20480
|
+
error: {
|
|
20481
|
+
code: string;
|
|
20482
|
+
details?: unknown | null;
|
|
20483
|
+
message: string;
|
|
20484
|
+
rowErrors?: Array<{
|
|
20485
|
+
code: string;
|
|
20486
|
+
message: string;
|
|
20487
|
+
path: Array<string | number>;
|
|
20488
|
+
}> | null;
|
|
20489
|
+
} | null;
|
|
20490
|
+
pagination: {
|
|
20491
|
+
limit: number;
|
|
20492
|
+
page: number;
|
|
20493
|
+
total: number;
|
|
20494
|
+
totalPages: number;
|
|
20495
|
+
} | null;
|
|
20496
|
+
sdkBehavior?: {
|
|
20497
|
+
flags: {
|
|
20498
|
+
[key: string]: unknown;
|
|
20499
|
+
};
|
|
20500
|
+
v: number;
|
|
20501
|
+
} | null;
|
|
20502
|
+
success: boolean;
|
|
20503
|
+
};
|
|
20504
|
+
};
|
|
20505
|
+
export type ProviderConfigDraftsGetProviderDraftResponse = ProviderConfigDraftsGetProviderDraftResponses[keyof ProviderConfigDraftsGetProviderDraftResponses];
|
|
20506
|
+
export type ProviderConfigDraftsEnsureProviderDraftData = {
|
|
20507
|
+
body?: never;
|
|
20508
|
+
path: {
|
|
20509
|
+
projectId: string;
|
|
20510
|
+
providerId: string;
|
|
20511
|
+
};
|
|
20512
|
+
query?: never;
|
|
20513
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/draft';
|
|
20514
|
+
};
|
|
20515
|
+
export type ProviderConfigDraftsEnsureProviderDraftErrors = {
|
|
20516
|
+
/**
|
|
20517
|
+
* BadRequestError
|
|
20518
|
+
*/
|
|
20519
|
+
400: BadRequestError;
|
|
20520
|
+
/**
|
|
20521
|
+
* UnauthorizedError
|
|
20522
|
+
*/
|
|
20523
|
+
401: UnauthorizedError;
|
|
20524
|
+
/**
|
|
20525
|
+
* ForbiddenError
|
|
20526
|
+
*/
|
|
20527
|
+
403: ForbiddenError;
|
|
20528
|
+
/**
|
|
20529
|
+
* NotFoundError
|
|
20530
|
+
*/
|
|
20531
|
+
404: NotFoundError;
|
|
20532
|
+
/**
|
|
20533
|
+
* ConflictError
|
|
20534
|
+
*/
|
|
20535
|
+
409: ConflictError;
|
|
20536
|
+
/**
|
|
20537
|
+
* GoneError
|
|
20538
|
+
*/
|
|
20539
|
+
410: GoneError;
|
|
20540
|
+
/**
|
|
20541
|
+
* ContentTooLargeError
|
|
20542
|
+
*/
|
|
20543
|
+
413: ContentTooLargeError;
|
|
20544
|
+
/**
|
|
20545
|
+
* MisdirectedRequestError
|
|
20546
|
+
*/
|
|
20547
|
+
421: MisdirectedRequestError;
|
|
20548
|
+
/**
|
|
20549
|
+
* UnprocessableEntityError
|
|
20550
|
+
*/
|
|
20551
|
+
422: UnprocessableEntityError;
|
|
20552
|
+
/**
|
|
20553
|
+
* TooManyRequestsError
|
|
20554
|
+
*/
|
|
20555
|
+
429: TooManyRequestsError;
|
|
20556
|
+
/**
|
|
20557
|
+
* InternalServerError
|
|
20558
|
+
*/
|
|
20559
|
+
500: InternalServerError;
|
|
20560
|
+
/**
|
|
20561
|
+
* ServiceUnavailableError
|
|
20562
|
+
*/
|
|
20563
|
+
503: ServiceUnavailableError;
|
|
20564
|
+
};
|
|
20565
|
+
export type ProviderConfigDraftsEnsureProviderDraftError = ProviderConfigDraftsEnsureProviderDraftErrors[keyof ProviderConfigDraftsEnsureProviderDraftErrors];
|
|
20566
|
+
export type ProviderConfigDraftsEnsureProviderDraftResponses = {
|
|
20567
|
+
/**
|
|
20568
|
+
* Success
|
|
20569
|
+
*/
|
|
20570
|
+
200: {
|
|
20571
|
+
code: number;
|
|
20572
|
+
data: {
|
|
20573
|
+
configSnapshot: {
|
|
20574
|
+
[key: string]: unknown;
|
|
20575
|
+
};
|
|
20576
|
+
createdAt: string;
|
|
20577
|
+
createdBy: string | null;
|
|
20578
|
+
fromVersionId: string;
|
|
20579
|
+
id: string;
|
|
20580
|
+
providerId: string;
|
|
20581
|
+
} | null;
|
|
20582
|
+
error: {
|
|
20583
|
+
code: string;
|
|
20584
|
+
details?: unknown | null;
|
|
20585
|
+
message: string;
|
|
20586
|
+
rowErrors?: Array<{
|
|
20587
|
+
code: string;
|
|
20588
|
+
message: string;
|
|
20589
|
+
path: Array<string | number>;
|
|
20590
|
+
}> | null;
|
|
20591
|
+
} | null;
|
|
20592
|
+
pagination: {
|
|
20593
|
+
limit: number;
|
|
20594
|
+
page: number;
|
|
20595
|
+
total: number;
|
|
20596
|
+
totalPages: number;
|
|
20597
|
+
} | null;
|
|
20598
|
+
sdkBehavior?: {
|
|
20599
|
+
flags: {
|
|
20600
|
+
[key: string]: unknown;
|
|
20601
|
+
};
|
|
20602
|
+
v: number;
|
|
20603
|
+
} | null;
|
|
20604
|
+
success: boolean;
|
|
20605
|
+
};
|
|
20606
|
+
};
|
|
20607
|
+
export type ProviderConfigDraftsEnsureProviderDraftResponse = ProviderConfigDraftsEnsureProviderDraftResponses[keyof ProviderConfigDraftsEnsureProviderDraftResponses];
|
|
20608
|
+
export type ProviderConfigDraftsCommitProviderDraftData = {
|
|
20609
|
+
body: {
|
|
20610
|
+
environments: Array<{
|
|
20611
|
+
envSlug: string;
|
|
20612
|
+
environmentId: string;
|
|
20613
|
+
}>;
|
|
20614
|
+
reason?: string | null;
|
|
20615
|
+
};
|
|
20616
|
+
path: {
|
|
20617
|
+
projectId: string;
|
|
20618
|
+
providerId: string;
|
|
20619
|
+
};
|
|
20620
|
+
query?: never;
|
|
20621
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/draft/commit';
|
|
19887
20622
|
};
|
|
19888
|
-
export type
|
|
20623
|
+
export type ProviderConfigDraftsCommitProviderDraftErrors = {
|
|
19889
20624
|
/**
|
|
19890
20625
|
* BadRequestError
|
|
19891
20626
|
*/
|
|
@@ -19935,29 +20670,22 @@ export type RoutingProvidersCreateRoutingCredentialErrors = {
|
|
|
19935
20670
|
*/
|
|
19936
20671
|
503: ServiceUnavailableError;
|
|
19937
20672
|
};
|
|
19938
|
-
export type
|
|
19939
|
-
export type
|
|
20673
|
+
export type ProviderConfigDraftsCommitProviderDraftError = ProviderConfigDraftsCommitProviderDraftErrors[keyof ProviderConfigDraftsCommitProviderDraftErrors];
|
|
20674
|
+
export type ProviderConfigDraftsCommitProviderDraftResponses = {
|
|
19940
20675
|
/**
|
|
19941
20676
|
* Success
|
|
19942
20677
|
*/
|
|
19943
20678
|
201: {
|
|
19944
20679
|
code: number;
|
|
19945
20680
|
data: {
|
|
19946
|
-
|
|
19947
|
-
|
|
19948
|
-
|
|
19949
|
-
|
|
19950
|
-
|
|
19951
|
-
|
|
19952
|
-
|
|
19953
|
-
|
|
19954
|
-
errors: Array<{
|
|
19955
|
-
entity: string;
|
|
19956
|
-
message: string;
|
|
19957
|
-
rule?: string | null;
|
|
19958
|
-
}>;
|
|
19959
|
-
kind: 'validation';
|
|
19960
|
-
} | null;
|
|
20681
|
+
deployResults: Array<{
|
|
20682
|
+
envSlug: string;
|
|
20683
|
+
environmentId: string;
|
|
20684
|
+
errorTag?: string | null;
|
|
20685
|
+
outcome: 'deployed' | 'pending' | 'failed';
|
|
20686
|
+
}>;
|
|
20687
|
+
version: number;
|
|
20688
|
+
versionId: string;
|
|
19961
20689
|
} | null;
|
|
19962
20690
|
error: {
|
|
19963
20691
|
code: string;
|
|
@@ -19984,18 +20712,20 @@ export type RoutingProvidersCreateRoutingCredentialResponses = {
|
|
|
19984
20712
|
success: boolean;
|
|
19985
20713
|
};
|
|
19986
20714
|
};
|
|
19987
|
-
export type
|
|
19988
|
-
export type
|
|
19989
|
-
body
|
|
20715
|
+
export type ProviderConfigDraftsCommitProviderDraftResponse = ProviderConfigDraftsCommitProviderDraftResponses[keyof ProviderConfigDraftsCommitProviderDraftResponses];
|
|
20716
|
+
export type ProviderConfigDraftsRestoreProviderVersionData = {
|
|
20717
|
+
body: {
|
|
20718
|
+
confirmDiscard?: boolean | null;
|
|
20719
|
+
version: number;
|
|
20720
|
+
};
|
|
19990
20721
|
path: {
|
|
19991
20722
|
projectId: string;
|
|
19992
20723
|
providerId: string;
|
|
19993
|
-
credentialId: string;
|
|
19994
20724
|
};
|
|
19995
20725
|
query?: never;
|
|
19996
|
-
url: '/v1/projects/{projectId}/routing/providers/{providerId}/
|
|
20726
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/draft/restore';
|
|
19997
20727
|
};
|
|
19998
|
-
export type
|
|
20728
|
+
export type ProviderConfigDraftsRestoreProviderVersionErrors = {
|
|
19999
20729
|
/**
|
|
20000
20730
|
* BadRequestError
|
|
20001
20731
|
*/
|
|
@@ -20045,23 +20775,22 @@ export type RoutingProvidersDeleteRoutingCredentialErrors = {
|
|
|
20045
20775
|
*/
|
|
20046
20776
|
503: ServiceUnavailableError;
|
|
20047
20777
|
};
|
|
20048
|
-
export type
|
|
20049
|
-
export type
|
|
20778
|
+
export type ProviderConfigDraftsRestoreProviderVersionError = ProviderConfigDraftsRestoreProviderVersionErrors[keyof ProviderConfigDraftsRestoreProviderVersionErrors];
|
|
20779
|
+
export type ProviderConfigDraftsRestoreProviderVersionResponses = {
|
|
20050
20780
|
/**
|
|
20051
20781
|
* Success
|
|
20052
20782
|
*/
|
|
20053
20783
|
200: {
|
|
20054
20784
|
code: number;
|
|
20055
20785
|
data: {
|
|
20056
|
-
|
|
20057
|
-
|
|
20058
|
-
|
|
20059
|
-
|
|
20060
|
-
|
|
20061
|
-
|
|
20062
|
-
|
|
20063
|
-
|
|
20064
|
-
} | null;
|
|
20786
|
+
configSnapshot: {
|
|
20787
|
+
[key: string]: unknown;
|
|
20788
|
+
};
|
|
20789
|
+
createdAt: string;
|
|
20790
|
+
createdBy: string | null;
|
|
20791
|
+
fromVersionId: string;
|
|
20792
|
+
id: string;
|
|
20793
|
+
providerId: string;
|
|
20065
20794
|
} | null;
|
|
20066
20795
|
error: {
|
|
20067
20796
|
code: string;
|
|
@@ -20088,18 +20817,21 @@ export type RoutingProvidersDeleteRoutingCredentialResponses = {
|
|
|
20088
20817
|
success: boolean;
|
|
20089
20818
|
};
|
|
20090
20819
|
};
|
|
20091
|
-
export type
|
|
20092
|
-
export type
|
|
20093
|
-
body
|
|
20820
|
+
export type ProviderConfigDraftsRestoreProviderVersionResponse = ProviderConfigDraftsRestoreProviderVersionResponses[keyof ProviderConfigDraftsRestoreProviderVersionResponses];
|
|
20821
|
+
export type ProviderPromoteVersionPromoteProviderEnvVersionData = {
|
|
20822
|
+
body: {
|
|
20823
|
+
reason?: string | null;
|
|
20824
|
+
version: number;
|
|
20825
|
+
};
|
|
20094
20826
|
path: {
|
|
20095
20827
|
projectId: string;
|
|
20096
20828
|
providerId: string;
|
|
20097
|
-
|
|
20829
|
+
envSlug: string;
|
|
20098
20830
|
};
|
|
20099
20831
|
query?: never;
|
|
20100
|
-
url: '/v1/projects/{projectId}/routing/providers/{providerId}/
|
|
20832
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/environments/{envSlug}/promote';
|
|
20101
20833
|
};
|
|
20102
|
-
export type
|
|
20834
|
+
export type ProviderPromoteVersionPromoteProviderEnvVersionErrors = {
|
|
20103
20835
|
/**
|
|
20104
20836
|
* BadRequestError
|
|
20105
20837
|
*/
|
|
@@ -20149,23 +20881,32 @@ export type RoutingProvidersTestRoutingCredentialErrors = {
|
|
|
20149
20881
|
*/
|
|
20150
20882
|
503: ServiceUnavailableError;
|
|
20151
20883
|
};
|
|
20152
|
-
export type
|
|
20153
|
-
export type
|
|
20884
|
+
export type ProviderPromoteVersionPromoteProviderEnvVersionError = ProviderPromoteVersionPromoteProviderEnvVersionErrors[keyof ProviderPromoteVersionPromoteProviderEnvVersionErrors];
|
|
20885
|
+
export type ProviderPromoteVersionPromoteProviderEnvVersionResponses = {
|
|
20154
20886
|
/**
|
|
20155
20887
|
* Success
|
|
20156
20888
|
*/
|
|
20157
|
-
|
|
20889
|
+
201: {
|
|
20158
20890
|
code: number;
|
|
20159
20891
|
data: {
|
|
20160
|
-
|
|
20161
|
-
|
|
20162
|
-
|
|
20163
|
-
|
|
20164
|
-
|
|
20165
|
-
|
|
20166
|
-
|
|
20167
|
-
|
|
20168
|
-
|
|
20892
|
+
activeFrom: string;
|
|
20893
|
+
activeTo: string | null;
|
|
20894
|
+
actorId: string;
|
|
20895
|
+
actorType: string;
|
|
20896
|
+
approvalStatus: 'not_required' | 'pending' | 'approved' | 'rejected';
|
|
20897
|
+
changeType: string;
|
|
20898
|
+
configSnapshot: {
|
|
20899
|
+
[key: string]: unknown;
|
|
20900
|
+
};
|
|
20901
|
+
createdAt: string;
|
|
20902
|
+
credentialId: string;
|
|
20903
|
+
envSlug: string;
|
|
20904
|
+
environmentId: string;
|
|
20905
|
+
id: string;
|
|
20906
|
+
modelAllowlistCleared?: boolean | null;
|
|
20907
|
+
providerId: string;
|
|
20908
|
+
reason: string | null;
|
|
20909
|
+
state: 'current' | 'pending';
|
|
20169
20910
|
} | null;
|
|
20170
20911
|
error: {
|
|
20171
20912
|
code: string;
|
|
@@ -20192,21 +20933,17 @@ export type RoutingProvidersTestRoutingCredentialResponses = {
|
|
|
20192
20933
|
success: boolean;
|
|
20193
20934
|
};
|
|
20194
20935
|
};
|
|
20195
|
-
export type
|
|
20196
|
-
export type
|
|
20197
|
-
body
|
|
20198
|
-
reason?: string | null;
|
|
20199
|
-
version: number;
|
|
20200
|
-
};
|
|
20936
|
+
export type ProviderPromoteVersionPromoteProviderEnvVersionResponse = ProviderPromoteVersionPromoteProviderEnvVersionResponses[keyof ProviderPromoteVersionPromoteProviderEnvVersionResponses];
|
|
20937
|
+
export type ProviderModelUsageGetProviderModelUsageData = {
|
|
20938
|
+
body?: never;
|
|
20201
20939
|
path: {
|
|
20202
20940
|
projectId: string;
|
|
20203
20941
|
providerId: string;
|
|
20204
|
-
envSlug: string;
|
|
20205
20942
|
};
|
|
20206
20943
|
query?: never;
|
|
20207
|
-
url: '/v1/projects/{projectId}/routing/providers/{providerId}/
|
|
20944
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/model-usage';
|
|
20208
20945
|
};
|
|
20209
|
-
export type
|
|
20946
|
+
export type ProviderModelUsageGetProviderModelUsageErrors = {
|
|
20210
20947
|
/**
|
|
20211
20948
|
* BadRequestError
|
|
20212
20949
|
*/
|
|
@@ -20256,32 +20993,22 @@ export type ProviderPromoteVersionPromoteProviderEnvVersionErrors = {
|
|
|
20256
20993
|
*/
|
|
20257
20994
|
503: ServiceUnavailableError;
|
|
20258
20995
|
};
|
|
20259
|
-
export type
|
|
20260
|
-
export type
|
|
20996
|
+
export type ProviderModelUsageGetProviderModelUsageError = ProviderModelUsageGetProviderModelUsageErrors[keyof ProviderModelUsageGetProviderModelUsageErrors];
|
|
20997
|
+
export type ProviderModelUsageGetProviderModelUsageResponses = {
|
|
20261
20998
|
/**
|
|
20262
20999
|
* Success
|
|
20263
21000
|
*/
|
|
20264
|
-
|
|
21001
|
+
200: {
|
|
20265
21002
|
code: number;
|
|
20266
|
-
data: {
|
|
20267
|
-
|
|
20268
|
-
|
|
20269
|
-
|
|
20270
|
-
|
|
20271
|
-
|
|
20272
|
-
|
|
20273
|
-
|
|
20274
|
-
|
|
20275
|
-
};
|
|
20276
|
-
createdAt: string;
|
|
20277
|
-
credentialId: string;
|
|
20278
|
-
envSlug: string;
|
|
20279
|
-
environmentId: string;
|
|
20280
|
-
id: string;
|
|
20281
|
-
providerId: string;
|
|
20282
|
-
reason: string | null;
|
|
20283
|
-
state: 'current' | 'pending';
|
|
20284
|
-
} | null;
|
|
21003
|
+
data: Array<{
|
|
21004
|
+
day: string;
|
|
21005
|
+
errorCount: number;
|
|
21006
|
+
model: string;
|
|
21007
|
+
p50TtftMs: number | null;
|
|
21008
|
+
requests: number;
|
|
21009
|
+
spendUsd: number | null;
|
|
21010
|
+
totalTokens: number;
|
|
21011
|
+
}> | null;
|
|
20285
21012
|
error: {
|
|
20286
21013
|
code: string;
|
|
20287
21014
|
details?: unknown | null;
|
|
@@ -20307,7 +21034,7 @@ export type ProviderPromoteVersionPromoteProviderEnvVersionResponses = {
|
|
|
20307
21034
|
success: boolean;
|
|
20308
21035
|
};
|
|
20309
21036
|
};
|
|
20310
|
-
export type
|
|
21037
|
+
export type ProviderModelUsageGetProviderModelUsageResponse = ProviderModelUsageGetProviderModelUsageResponses[keyof ProviderModelUsageGetProviderModelUsageResponses];
|
|
20311
21038
|
export type RoutingProvidersListRoutingModelsData = {
|
|
20312
21039
|
body?: never;
|
|
20313
21040
|
path: {
|
|
@@ -21036,6 +21763,7 @@ export type ProviderConfigVersionsListProviderConfigVersionsResponses = {
|
|
|
21036
21763
|
contentHash: string;
|
|
21037
21764
|
createdAt: string;
|
|
21038
21765
|
createdBy: string | null;
|
|
21766
|
+
id: string;
|
|
21039
21767
|
liveInEnvSlugs: Array<string>;
|
|
21040
21768
|
version: number;
|
|
21041
21769
|
}> | null;
|
|
@@ -23760,6 +24488,7 @@ export type TracesListTracesData = {
|
|
|
23760
24488
|
status?: 'ok' | 'error' | 'timeout' | null;
|
|
23761
24489
|
provider?: string | Array<string> | string | null;
|
|
23762
24490
|
model?: string | Array<string> | string | null;
|
|
24491
|
+
promptRef?: string | Array<string> | string | null;
|
|
23763
24492
|
minTokens?: string | null;
|
|
23764
24493
|
maxTokens?: string | null;
|
|
23765
24494
|
minCost?: string | null;
|
|
@@ -23916,6 +24645,8 @@ export type TracesListTracesResponses = {
|
|
|
23916
24645
|
input_tokens: number;
|
|
23917
24646
|
model: string;
|
|
23918
24647
|
output_tokens: number;
|
|
24648
|
+
prompt_id: string | null;
|
|
24649
|
+
prompt_version: string | null;
|
|
23919
24650
|
provider: string;
|
|
23920
24651
|
session_id: string;
|
|
23921
24652
|
span_count: number;
|
|
@@ -23956,6 +24687,119 @@ export type TracesListTracesResponses = {
|
|
|
23956
24687
|
};
|
|
23957
24688
|
};
|
|
23958
24689
|
export type TracesListTracesResponse = TracesListTracesResponses[keyof TracesListTracesResponses];
|
|
24690
|
+
export type TracesListTracePromptFacetsData = {
|
|
24691
|
+
body?: never;
|
|
24692
|
+
path: {
|
|
24693
|
+
projectId: string;
|
|
24694
|
+
};
|
|
24695
|
+
query?: {
|
|
24696
|
+
page?: string | null;
|
|
24697
|
+
limit?: string | null;
|
|
24698
|
+
sort?: 'startTime' | 'durationMs' | 'inputTokens' | 'outputTokens' | 'model' | 'provider' | 'toolCalls' | 'costUsd' | null;
|
|
24699
|
+
order?: 'asc' | 'desc' | null;
|
|
24700
|
+
status?: 'ok' | 'error' | 'timeout' | null;
|
|
24701
|
+
provider?: string | Array<string> | string | null;
|
|
24702
|
+
model?: string | Array<string> | string | null;
|
|
24703
|
+
promptRef?: string | Array<string> | string | null;
|
|
24704
|
+
minTokens?: string | null;
|
|
24705
|
+
maxTokens?: string | null;
|
|
24706
|
+
minCost?: string | null;
|
|
24707
|
+
maxCost?: string | null;
|
|
24708
|
+
hasToolCalls?: 'yes' | 'no' | null;
|
|
24709
|
+
timePreset?: '10m' | '30m' | '1h' | '2h' | '3h' | '8h' | '24h' | '7d' | '14d' | '28d' | '60d' | null;
|
|
24710
|
+
startTimeFrom?: string | null;
|
|
24711
|
+
startTimeTo?: string | null;
|
|
24712
|
+
};
|
|
24713
|
+
url: '/v1/projects/{projectId}/traces/prompt-facets';
|
|
24714
|
+
};
|
|
24715
|
+
export type TracesListTracePromptFacetsErrors = {
|
|
24716
|
+
/**
|
|
24717
|
+
* BadRequestError
|
|
24718
|
+
*/
|
|
24719
|
+
400: BadRequestError;
|
|
24720
|
+
/**
|
|
24721
|
+
* UnauthorizedError
|
|
24722
|
+
*/
|
|
24723
|
+
401: UnauthorizedError;
|
|
24724
|
+
/**
|
|
24725
|
+
* ForbiddenError
|
|
24726
|
+
*/
|
|
24727
|
+
403: ForbiddenError;
|
|
24728
|
+
/**
|
|
24729
|
+
* NotFoundError
|
|
24730
|
+
*/
|
|
24731
|
+
404: NotFoundError;
|
|
24732
|
+
/**
|
|
24733
|
+
* ConflictError
|
|
24734
|
+
*/
|
|
24735
|
+
409: ConflictError;
|
|
24736
|
+
/**
|
|
24737
|
+
* GoneError
|
|
24738
|
+
*/
|
|
24739
|
+
410: GoneError;
|
|
24740
|
+
/**
|
|
24741
|
+
* ContentTooLargeError
|
|
24742
|
+
*/
|
|
24743
|
+
413: ContentTooLargeError;
|
|
24744
|
+
/**
|
|
24745
|
+
* MisdirectedRequestError
|
|
24746
|
+
*/
|
|
24747
|
+
421: MisdirectedRequestError;
|
|
24748
|
+
/**
|
|
24749
|
+
* UnprocessableEntityError
|
|
24750
|
+
*/
|
|
24751
|
+
422: UnprocessableEntityError;
|
|
24752
|
+
/**
|
|
24753
|
+
* TooManyRequestsError
|
|
24754
|
+
*/
|
|
24755
|
+
429: TooManyRequestsError;
|
|
24756
|
+
/**
|
|
24757
|
+
* InternalServerError
|
|
24758
|
+
*/
|
|
24759
|
+
500: InternalServerError;
|
|
24760
|
+
/**
|
|
24761
|
+
* ServiceUnavailableError
|
|
24762
|
+
*/
|
|
24763
|
+
503: ServiceUnavailableError;
|
|
24764
|
+
};
|
|
24765
|
+
export type TracesListTracePromptFacetsError = TracesListTracePromptFacetsErrors[keyof TracesListTracePromptFacetsErrors];
|
|
24766
|
+
export type TracesListTracePromptFacetsResponses = {
|
|
24767
|
+
/**
|
|
24768
|
+
* Success
|
|
24769
|
+
*/
|
|
24770
|
+
200: {
|
|
24771
|
+
code: number;
|
|
24772
|
+
data: Array<{
|
|
24773
|
+
prompt_id: string;
|
|
24774
|
+
prompt_version: string;
|
|
24775
|
+
trace_count: number;
|
|
24776
|
+
}> | null;
|
|
24777
|
+
error: {
|
|
24778
|
+
code: string;
|
|
24779
|
+
details?: unknown | null;
|
|
24780
|
+
message: string;
|
|
24781
|
+
rowErrors?: Array<{
|
|
24782
|
+
code: string;
|
|
24783
|
+
message: string;
|
|
24784
|
+
path: Array<string | number>;
|
|
24785
|
+
}> | null;
|
|
24786
|
+
} | null;
|
|
24787
|
+
pagination: {
|
|
24788
|
+
limit: number;
|
|
24789
|
+
page: number;
|
|
24790
|
+
total: number;
|
|
24791
|
+
totalPages: number;
|
|
24792
|
+
} | null;
|
|
24793
|
+
sdkBehavior?: {
|
|
24794
|
+
flags: {
|
|
24795
|
+
[key: string]: unknown;
|
|
24796
|
+
};
|
|
24797
|
+
v: number;
|
|
24798
|
+
} | null;
|
|
24799
|
+
success: boolean;
|
|
24800
|
+
};
|
|
24801
|
+
};
|
|
24802
|
+
export type TracesListTracePromptFacetsResponse = TracesListTracePromptFacetsResponses[keyof TracesListTracePromptFacetsResponses];
|
|
23959
24803
|
export type TracesGetTraceDetailData = {
|
|
23960
24804
|
body?: never;
|
|
23961
24805
|
path: {
|