@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
|
@@ -17488,6 +17488,122 @@ export type CredentialLifecycleRestoreCredentialResponses = {
|
|
|
17488
17488
|
|
|
17489
17489
|
export type CredentialLifecycleRestoreCredentialResponse = CredentialLifecycleRestoreCredentialResponses[keyof CredentialLifecycleRestoreCredentialResponses];
|
|
17490
17490
|
|
|
17491
|
+
export type CredentialRotateRotateCredentialData = {
|
|
17492
|
+
body: {
|
|
17493
|
+
disposition: 'keep' | 'archive' | 'delete';
|
|
17494
|
+
newCredentialId: string;
|
|
17495
|
+
reason: string;
|
|
17496
|
+
};
|
|
17497
|
+
path: {
|
|
17498
|
+
projectId: string;
|
|
17499
|
+
providerId: string;
|
|
17500
|
+
credentialId: string;
|
|
17501
|
+
};
|
|
17502
|
+
query?: never;
|
|
17503
|
+
url: '/v1/projects/{projectId}/providers/{providerId}/credentials/{credentialId}/rotate';
|
|
17504
|
+
};
|
|
17505
|
+
|
|
17506
|
+
export type CredentialRotateRotateCredentialErrors = {
|
|
17507
|
+
/**
|
|
17508
|
+
* BadRequestError
|
|
17509
|
+
*/
|
|
17510
|
+
400: BadRequestError;
|
|
17511
|
+
/**
|
|
17512
|
+
* UnauthorizedError
|
|
17513
|
+
*/
|
|
17514
|
+
401: UnauthorizedError;
|
|
17515
|
+
/**
|
|
17516
|
+
* ForbiddenError
|
|
17517
|
+
*/
|
|
17518
|
+
403: ForbiddenError;
|
|
17519
|
+
/**
|
|
17520
|
+
* NotFoundError
|
|
17521
|
+
*/
|
|
17522
|
+
404: NotFoundError;
|
|
17523
|
+
/**
|
|
17524
|
+
* ConflictError
|
|
17525
|
+
*/
|
|
17526
|
+
409: ConflictError;
|
|
17527
|
+
/**
|
|
17528
|
+
* GoneError
|
|
17529
|
+
*/
|
|
17530
|
+
410: GoneError;
|
|
17531
|
+
/**
|
|
17532
|
+
* ContentTooLargeError
|
|
17533
|
+
*/
|
|
17534
|
+
413: ContentTooLargeError;
|
|
17535
|
+
/**
|
|
17536
|
+
* MisdirectedRequestError
|
|
17537
|
+
*/
|
|
17538
|
+
421: MisdirectedRequestError;
|
|
17539
|
+
/**
|
|
17540
|
+
* UnprocessableEntityError
|
|
17541
|
+
*/
|
|
17542
|
+
422: UnprocessableEntityError;
|
|
17543
|
+
/**
|
|
17544
|
+
* TooManyRequestsError
|
|
17545
|
+
*/
|
|
17546
|
+
429: TooManyRequestsError;
|
|
17547
|
+
/**
|
|
17548
|
+
* InternalServerError
|
|
17549
|
+
*/
|
|
17550
|
+
500: InternalServerError;
|
|
17551
|
+
/**
|
|
17552
|
+
* ServiceUnavailableError
|
|
17553
|
+
*/
|
|
17554
|
+
503: ServiceUnavailableError;
|
|
17555
|
+
};
|
|
17556
|
+
|
|
17557
|
+
export type CredentialRotateRotateCredentialError = CredentialRotateRotateCredentialErrors[keyof CredentialRotateRotateCredentialErrors];
|
|
17558
|
+
|
|
17559
|
+
export type CredentialRotateRotateCredentialResponses = {
|
|
17560
|
+
/**
|
|
17561
|
+
* Success
|
|
17562
|
+
*/
|
|
17563
|
+
200: {
|
|
17564
|
+
code: number;
|
|
17565
|
+
data: {
|
|
17566
|
+
disposition: 'keep' | 'archive' | 'delete' | 'skipped_due_to_failures' | 'skipped_due_to_test_failure' | 'skipped_due_to_pending_approval' | 'skipped_due_to_shared_credential';
|
|
17567
|
+
failedEnvs: Array<{
|
|
17568
|
+
environmentId: string;
|
|
17569
|
+
failureReason: string;
|
|
17570
|
+
}>;
|
|
17571
|
+
movedEnvs: Array<{
|
|
17572
|
+
environmentId: string;
|
|
17573
|
+
}>;
|
|
17574
|
+
pendingApprovalEnvs: Array<{
|
|
17575
|
+
environmentId: string;
|
|
17576
|
+
}>;
|
|
17577
|
+
testOutcome: 'passed' | 'deferred' | 'failed';
|
|
17578
|
+
} | null;
|
|
17579
|
+
error: {
|
|
17580
|
+
code: string;
|
|
17581
|
+
details?: unknown | null;
|
|
17582
|
+
message: string;
|
|
17583
|
+
rowErrors?: Array<{
|
|
17584
|
+
code: string;
|
|
17585
|
+
message: string;
|
|
17586
|
+
path: Array<string | number>;
|
|
17587
|
+
}> | null;
|
|
17588
|
+
} | null;
|
|
17589
|
+
pagination: {
|
|
17590
|
+
limit: number;
|
|
17591
|
+
page: number;
|
|
17592
|
+
total: number;
|
|
17593
|
+
totalPages: number;
|
|
17594
|
+
} | null;
|
|
17595
|
+
sdkBehavior?: {
|
|
17596
|
+
flags: {
|
|
17597
|
+
[key: string]: unknown;
|
|
17598
|
+
};
|
|
17599
|
+
v: number;
|
|
17600
|
+
} | null;
|
|
17601
|
+
success: boolean;
|
|
17602
|
+
};
|
|
17603
|
+
};
|
|
17604
|
+
|
|
17605
|
+
export type CredentialRotateRotateCredentialResponse = CredentialRotateRotateCredentialResponses[keyof CredentialRotateRotateCredentialResponses];
|
|
17606
|
+
|
|
17491
17607
|
export type ProviderDisconnectDisconnectProviderData = {
|
|
17492
17608
|
body: {
|
|
17493
17609
|
environmentIds: Array<string>;
|
|
@@ -17926,6 +18042,7 @@ export type ProviderEmergencyRotationEmergencyRotateProviderCredentialResponses
|
|
|
17926
18042
|
envSlug: string;
|
|
17927
18043
|
environmentId: string;
|
|
17928
18044
|
id: string;
|
|
18045
|
+
modelAllowlistCleared?: boolean | null;
|
|
17929
18046
|
providerId: string;
|
|
17930
18047
|
reason: string | null;
|
|
17931
18048
|
state: 'current' | 'pending';
|
|
@@ -18046,6 +18163,7 @@ export type ProviderRollbackRollbackProviderEnvActivationResponses = {
|
|
|
18046
18163
|
envSlug: string;
|
|
18047
18164
|
environmentId: string;
|
|
18048
18165
|
id: string;
|
|
18166
|
+
modelAllowlistCleared?: boolean | null;
|
|
18049
18167
|
providerId: string;
|
|
18050
18168
|
reason: string | null;
|
|
18051
18169
|
state: 'current' | 'pending';
|
|
@@ -20820,10 +20938,662 @@ export type RoutingProvidersCreateRoutingCredentialData = {
|
|
|
20820
20938
|
providerId: string;
|
|
20821
20939
|
};
|
|
20822
20940
|
query?: never;
|
|
20823
|
-
url: '/v1/projects/{projectId}/routing/providers/{providerId}/credentials';
|
|
20941
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/credentials';
|
|
20942
|
+
};
|
|
20943
|
+
|
|
20944
|
+
export type RoutingProvidersCreateRoutingCredentialErrors = {
|
|
20945
|
+
/**
|
|
20946
|
+
* BadRequestError
|
|
20947
|
+
*/
|
|
20948
|
+
400: BadRequestError;
|
|
20949
|
+
/**
|
|
20950
|
+
* UnauthorizedError
|
|
20951
|
+
*/
|
|
20952
|
+
401: UnauthorizedError;
|
|
20953
|
+
/**
|
|
20954
|
+
* ForbiddenError
|
|
20955
|
+
*/
|
|
20956
|
+
403: ForbiddenError;
|
|
20957
|
+
/**
|
|
20958
|
+
* NotFoundError
|
|
20959
|
+
*/
|
|
20960
|
+
404: NotFoundError;
|
|
20961
|
+
/**
|
|
20962
|
+
* ConflictError
|
|
20963
|
+
*/
|
|
20964
|
+
409: ConflictError;
|
|
20965
|
+
/**
|
|
20966
|
+
* GoneError
|
|
20967
|
+
*/
|
|
20968
|
+
410: GoneError;
|
|
20969
|
+
/**
|
|
20970
|
+
* ContentTooLargeError
|
|
20971
|
+
*/
|
|
20972
|
+
413: ContentTooLargeError;
|
|
20973
|
+
/**
|
|
20974
|
+
* MisdirectedRequestError
|
|
20975
|
+
*/
|
|
20976
|
+
421: MisdirectedRequestError;
|
|
20977
|
+
/**
|
|
20978
|
+
* UnprocessableEntityError
|
|
20979
|
+
*/
|
|
20980
|
+
422: UnprocessableEntityError;
|
|
20981
|
+
/**
|
|
20982
|
+
* TooManyRequestsError
|
|
20983
|
+
*/
|
|
20984
|
+
429: TooManyRequestsError;
|
|
20985
|
+
/**
|
|
20986
|
+
* InternalServerError
|
|
20987
|
+
*/
|
|
20988
|
+
500: InternalServerError;
|
|
20989
|
+
/**
|
|
20990
|
+
* ServiceUnavailableError
|
|
20991
|
+
*/
|
|
20992
|
+
503: ServiceUnavailableError;
|
|
20993
|
+
};
|
|
20994
|
+
|
|
20995
|
+
export type RoutingProvidersCreateRoutingCredentialError = RoutingProvidersCreateRoutingCredentialErrors[keyof RoutingProvidersCreateRoutingCredentialErrors];
|
|
20996
|
+
|
|
20997
|
+
export type RoutingProvidersCreateRoutingCredentialResponses = {
|
|
20998
|
+
/**
|
|
20999
|
+
* Success
|
|
21000
|
+
*/
|
|
21001
|
+
201: {
|
|
21002
|
+
code: number;
|
|
21003
|
+
data: {
|
|
21004
|
+
createdAt: string;
|
|
21005
|
+
credentialType: 'api-key' | 'oauth' | 'iam-role' | 'access-key' | 'service-account' | 'none' | 'passthrough';
|
|
21006
|
+
deletedAt?: string | null | null;
|
|
21007
|
+
id: string;
|
|
21008
|
+
keyLast4: string;
|
|
21009
|
+
label: string | null;
|
|
21010
|
+
providerCatalogId: string;
|
|
21011
|
+
publishWarning?: {
|
|
21012
|
+
errors: Array<{
|
|
21013
|
+
entity: string;
|
|
21014
|
+
message: string;
|
|
21015
|
+
rule?: string | null;
|
|
21016
|
+
}>;
|
|
21017
|
+
kind: 'validation';
|
|
21018
|
+
} | null;
|
|
21019
|
+
} | null;
|
|
21020
|
+
error: {
|
|
21021
|
+
code: string;
|
|
21022
|
+
details?: unknown | null;
|
|
21023
|
+
message: string;
|
|
21024
|
+
rowErrors?: Array<{
|
|
21025
|
+
code: string;
|
|
21026
|
+
message: string;
|
|
21027
|
+
path: Array<string | number>;
|
|
21028
|
+
}> | null;
|
|
21029
|
+
} | null;
|
|
21030
|
+
pagination: {
|
|
21031
|
+
limit: number;
|
|
21032
|
+
page: number;
|
|
21033
|
+
total: number;
|
|
21034
|
+
totalPages: number;
|
|
21035
|
+
} | null;
|
|
21036
|
+
sdkBehavior?: {
|
|
21037
|
+
flags: {
|
|
21038
|
+
[key: string]: unknown;
|
|
21039
|
+
};
|
|
21040
|
+
v: number;
|
|
21041
|
+
} | null;
|
|
21042
|
+
success: boolean;
|
|
21043
|
+
};
|
|
21044
|
+
};
|
|
21045
|
+
|
|
21046
|
+
export type RoutingProvidersCreateRoutingCredentialResponse = RoutingProvidersCreateRoutingCredentialResponses[keyof RoutingProvidersCreateRoutingCredentialResponses];
|
|
21047
|
+
|
|
21048
|
+
export type RoutingProvidersDeleteRoutingCredentialData = {
|
|
21049
|
+
body?: never;
|
|
21050
|
+
path: {
|
|
21051
|
+
projectId: string;
|
|
21052
|
+
providerId: string;
|
|
21053
|
+
credentialId: string;
|
|
21054
|
+
};
|
|
21055
|
+
query?: never;
|
|
21056
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/credentials/{credentialId}';
|
|
21057
|
+
};
|
|
21058
|
+
|
|
21059
|
+
export type RoutingProvidersDeleteRoutingCredentialErrors = {
|
|
21060
|
+
/**
|
|
21061
|
+
* BadRequestError
|
|
21062
|
+
*/
|
|
21063
|
+
400: BadRequestError;
|
|
21064
|
+
/**
|
|
21065
|
+
* UnauthorizedError
|
|
21066
|
+
*/
|
|
21067
|
+
401: UnauthorizedError;
|
|
21068
|
+
/**
|
|
21069
|
+
* ForbiddenError
|
|
21070
|
+
*/
|
|
21071
|
+
403: ForbiddenError;
|
|
21072
|
+
/**
|
|
21073
|
+
* NotFoundError
|
|
21074
|
+
*/
|
|
21075
|
+
404: NotFoundError;
|
|
21076
|
+
/**
|
|
21077
|
+
* ConflictError
|
|
21078
|
+
*/
|
|
21079
|
+
409: ConflictError;
|
|
21080
|
+
/**
|
|
21081
|
+
* GoneError
|
|
21082
|
+
*/
|
|
21083
|
+
410: GoneError;
|
|
21084
|
+
/**
|
|
21085
|
+
* ContentTooLargeError
|
|
21086
|
+
*/
|
|
21087
|
+
413: ContentTooLargeError;
|
|
21088
|
+
/**
|
|
21089
|
+
* MisdirectedRequestError
|
|
21090
|
+
*/
|
|
21091
|
+
421: MisdirectedRequestError;
|
|
21092
|
+
/**
|
|
21093
|
+
* UnprocessableEntityError
|
|
21094
|
+
*/
|
|
21095
|
+
422: UnprocessableEntityError;
|
|
21096
|
+
/**
|
|
21097
|
+
* TooManyRequestsError
|
|
21098
|
+
*/
|
|
21099
|
+
429: TooManyRequestsError;
|
|
21100
|
+
/**
|
|
21101
|
+
* InternalServerError
|
|
21102
|
+
*/
|
|
21103
|
+
500: InternalServerError;
|
|
21104
|
+
/**
|
|
21105
|
+
* ServiceUnavailableError
|
|
21106
|
+
*/
|
|
21107
|
+
503: ServiceUnavailableError;
|
|
21108
|
+
};
|
|
21109
|
+
|
|
21110
|
+
export type RoutingProvidersDeleteRoutingCredentialError = RoutingProvidersDeleteRoutingCredentialErrors[keyof RoutingProvidersDeleteRoutingCredentialErrors];
|
|
21111
|
+
|
|
21112
|
+
export type RoutingProvidersDeleteRoutingCredentialResponses = {
|
|
21113
|
+
/**
|
|
21114
|
+
* Success
|
|
21115
|
+
*/
|
|
21116
|
+
200: {
|
|
21117
|
+
code: number;
|
|
21118
|
+
data: {
|
|
21119
|
+
deleted: boolean;
|
|
21120
|
+
publishWarning?: {
|
|
21121
|
+
errors: Array<{
|
|
21122
|
+
entity: string;
|
|
21123
|
+
message: string;
|
|
21124
|
+
rule?: string | null;
|
|
21125
|
+
}>;
|
|
21126
|
+
kind: 'validation';
|
|
21127
|
+
} | null;
|
|
21128
|
+
} | null;
|
|
21129
|
+
error: {
|
|
21130
|
+
code: string;
|
|
21131
|
+
details?: unknown | null;
|
|
21132
|
+
message: string;
|
|
21133
|
+
rowErrors?: Array<{
|
|
21134
|
+
code: string;
|
|
21135
|
+
message: string;
|
|
21136
|
+
path: Array<string | number>;
|
|
21137
|
+
}> | null;
|
|
21138
|
+
} | null;
|
|
21139
|
+
pagination: {
|
|
21140
|
+
limit: number;
|
|
21141
|
+
page: number;
|
|
21142
|
+
total: number;
|
|
21143
|
+
totalPages: number;
|
|
21144
|
+
} | null;
|
|
21145
|
+
sdkBehavior?: {
|
|
21146
|
+
flags: {
|
|
21147
|
+
[key: string]: unknown;
|
|
21148
|
+
};
|
|
21149
|
+
v: number;
|
|
21150
|
+
} | null;
|
|
21151
|
+
success: boolean;
|
|
21152
|
+
};
|
|
21153
|
+
};
|
|
21154
|
+
|
|
21155
|
+
export type RoutingProvidersDeleteRoutingCredentialResponse = RoutingProvidersDeleteRoutingCredentialResponses[keyof RoutingProvidersDeleteRoutingCredentialResponses];
|
|
21156
|
+
|
|
21157
|
+
export type RoutingProvidersTestRoutingCredentialData = {
|
|
21158
|
+
body?: never;
|
|
21159
|
+
path: {
|
|
21160
|
+
projectId: string;
|
|
21161
|
+
providerId: string;
|
|
21162
|
+
credentialId: string;
|
|
21163
|
+
};
|
|
21164
|
+
query?: never;
|
|
21165
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/credentials/{credentialId}/test';
|
|
21166
|
+
};
|
|
21167
|
+
|
|
21168
|
+
export type RoutingProvidersTestRoutingCredentialErrors = {
|
|
21169
|
+
/**
|
|
21170
|
+
* BadRequestError
|
|
21171
|
+
*/
|
|
21172
|
+
400: BadRequestError;
|
|
21173
|
+
/**
|
|
21174
|
+
* UnauthorizedError
|
|
21175
|
+
*/
|
|
21176
|
+
401: UnauthorizedError;
|
|
21177
|
+
/**
|
|
21178
|
+
* ForbiddenError
|
|
21179
|
+
*/
|
|
21180
|
+
403: ForbiddenError;
|
|
21181
|
+
/**
|
|
21182
|
+
* NotFoundError
|
|
21183
|
+
*/
|
|
21184
|
+
404: NotFoundError;
|
|
21185
|
+
/**
|
|
21186
|
+
* ConflictError
|
|
21187
|
+
*/
|
|
21188
|
+
409: ConflictError;
|
|
21189
|
+
/**
|
|
21190
|
+
* GoneError
|
|
21191
|
+
*/
|
|
21192
|
+
410: GoneError;
|
|
21193
|
+
/**
|
|
21194
|
+
* ContentTooLargeError
|
|
21195
|
+
*/
|
|
21196
|
+
413: ContentTooLargeError;
|
|
21197
|
+
/**
|
|
21198
|
+
* MisdirectedRequestError
|
|
21199
|
+
*/
|
|
21200
|
+
421: MisdirectedRequestError;
|
|
21201
|
+
/**
|
|
21202
|
+
* UnprocessableEntityError
|
|
21203
|
+
*/
|
|
21204
|
+
422: UnprocessableEntityError;
|
|
21205
|
+
/**
|
|
21206
|
+
* TooManyRequestsError
|
|
21207
|
+
*/
|
|
21208
|
+
429: TooManyRequestsError;
|
|
21209
|
+
/**
|
|
21210
|
+
* InternalServerError
|
|
21211
|
+
*/
|
|
21212
|
+
500: InternalServerError;
|
|
21213
|
+
/**
|
|
21214
|
+
* ServiceUnavailableError
|
|
21215
|
+
*/
|
|
21216
|
+
503: ServiceUnavailableError;
|
|
21217
|
+
};
|
|
21218
|
+
|
|
21219
|
+
export type RoutingProvidersTestRoutingCredentialError = RoutingProvidersTestRoutingCredentialErrors[keyof RoutingProvidersTestRoutingCredentialErrors];
|
|
21220
|
+
|
|
21221
|
+
export type RoutingProvidersTestRoutingCredentialResponses = {
|
|
21222
|
+
/**
|
|
21223
|
+
* Success
|
|
21224
|
+
*/
|
|
21225
|
+
200: {
|
|
21226
|
+
code: number;
|
|
21227
|
+
data: {
|
|
21228
|
+
error: string | null;
|
|
21229
|
+
latencyMs: number | null;
|
|
21230
|
+
models: Array<{
|
|
21231
|
+
contextWindow?: number | null;
|
|
21232
|
+
displayName?: string | null;
|
|
21233
|
+
id: string;
|
|
21234
|
+
kind?: 'chat' | 'reason' | 'embed' | 'mod' | 'other' | null;
|
|
21235
|
+
}> | null;
|
|
21236
|
+
success: boolean;
|
|
21237
|
+
} | null;
|
|
21238
|
+
error: {
|
|
21239
|
+
code: string;
|
|
21240
|
+
details?: unknown | null;
|
|
21241
|
+
message: string;
|
|
21242
|
+
rowErrors?: Array<{
|
|
21243
|
+
code: string;
|
|
21244
|
+
message: string;
|
|
21245
|
+
path: Array<string | number>;
|
|
21246
|
+
}> | null;
|
|
21247
|
+
} | null;
|
|
21248
|
+
pagination: {
|
|
21249
|
+
limit: number;
|
|
21250
|
+
page: number;
|
|
21251
|
+
total: number;
|
|
21252
|
+
totalPages: number;
|
|
21253
|
+
} | null;
|
|
21254
|
+
sdkBehavior?: {
|
|
21255
|
+
flags: {
|
|
21256
|
+
[key: string]: unknown;
|
|
21257
|
+
};
|
|
21258
|
+
v: number;
|
|
21259
|
+
} | null;
|
|
21260
|
+
success: boolean;
|
|
21261
|
+
};
|
|
21262
|
+
};
|
|
21263
|
+
|
|
21264
|
+
export type RoutingProvidersTestRoutingCredentialResponse = RoutingProvidersTestRoutingCredentialResponses[keyof RoutingProvidersTestRoutingCredentialResponses];
|
|
21265
|
+
|
|
21266
|
+
export type ProviderConfigDraftsDiscardProviderDraftData = {
|
|
21267
|
+
body?: never;
|
|
21268
|
+
path: {
|
|
21269
|
+
projectId: string;
|
|
21270
|
+
providerId: string;
|
|
21271
|
+
};
|
|
21272
|
+
query?: never;
|
|
21273
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/draft';
|
|
21274
|
+
};
|
|
21275
|
+
|
|
21276
|
+
export type ProviderConfigDraftsDiscardProviderDraftErrors = {
|
|
21277
|
+
/**
|
|
21278
|
+
* BadRequestError
|
|
21279
|
+
*/
|
|
21280
|
+
400: BadRequestError;
|
|
21281
|
+
/**
|
|
21282
|
+
* UnauthorizedError
|
|
21283
|
+
*/
|
|
21284
|
+
401: UnauthorizedError;
|
|
21285
|
+
/**
|
|
21286
|
+
* ForbiddenError
|
|
21287
|
+
*/
|
|
21288
|
+
403: ForbiddenError;
|
|
21289
|
+
/**
|
|
21290
|
+
* NotFoundError
|
|
21291
|
+
*/
|
|
21292
|
+
404: NotFoundError;
|
|
21293
|
+
/**
|
|
21294
|
+
* ConflictError
|
|
21295
|
+
*/
|
|
21296
|
+
409: ConflictError;
|
|
21297
|
+
/**
|
|
21298
|
+
* GoneError
|
|
21299
|
+
*/
|
|
21300
|
+
410: GoneError;
|
|
21301
|
+
/**
|
|
21302
|
+
* ContentTooLargeError
|
|
21303
|
+
*/
|
|
21304
|
+
413: ContentTooLargeError;
|
|
21305
|
+
/**
|
|
21306
|
+
* MisdirectedRequestError
|
|
21307
|
+
*/
|
|
21308
|
+
421: MisdirectedRequestError;
|
|
21309
|
+
/**
|
|
21310
|
+
* UnprocessableEntityError
|
|
21311
|
+
*/
|
|
21312
|
+
422: UnprocessableEntityError;
|
|
21313
|
+
/**
|
|
21314
|
+
* TooManyRequestsError
|
|
21315
|
+
*/
|
|
21316
|
+
429: TooManyRequestsError;
|
|
21317
|
+
/**
|
|
21318
|
+
* InternalServerError
|
|
21319
|
+
*/
|
|
21320
|
+
500: InternalServerError;
|
|
21321
|
+
/**
|
|
21322
|
+
* ServiceUnavailableError
|
|
21323
|
+
*/
|
|
21324
|
+
503: ServiceUnavailableError;
|
|
21325
|
+
};
|
|
21326
|
+
|
|
21327
|
+
export type ProviderConfigDraftsDiscardProviderDraftError = ProviderConfigDraftsDiscardProviderDraftErrors[keyof ProviderConfigDraftsDiscardProviderDraftErrors];
|
|
21328
|
+
|
|
21329
|
+
export type ProviderConfigDraftsDiscardProviderDraftResponses = {
|
|
21330
|
+
/**
|
|
21331
|
+
* Success
|
|
21332
|
+
*/
|
|
21333
|
+
200: {
|
|
21334
|
+
code: number;
|
|
21335
|
+
data: {
|
|
21336
|
+
discarded: true;
|
|
21337
|
+
} | null;
|
|
21338
|
+
error: {
|
|
21339
|
+
code: string;
|
|
21340
|
+
details?: unknown | null;
|
|
21341
|
+
message: string;
|
|
21342
|
+
rowErrors?: Array<{
|
|
21343
|
+
code: string;
|
|
21344
|
+
message: string;
|
|
21345
|
+
path: Array<string | number>;
|
|
21346
|
+
}> | null;
|
|
21347
|
+
} | null;
|
|
21348
|
+
pagination: {
|
|
21349
|
+
limit: number;
|
|
21350
|
+
page: number;
|
|
21351
|
+
total: number;
|
|
21352
|
+
totalPages: number;
|
|
21353
|
+
} | null;
|
|
21354
|
+
sdkBehavior?: {
|
|
21355
|
+
flags: {
|
|
21356
|
+
[key: string]: unknown;
|
|
21357
|
+
};
|
|
21358
|
+
v: number;
|
|
21359
|
+
} | null;
|
|
21360
|
+
success: boolean;
|
|
21361
|
+
};
|
|
21362
|
+
};
|
|
21363
|
+
|
|
21364
|
+
export type ProviderConfigDraftsDiscardProviderDraftResponse = ProviderConfigDraftsDiscardProviderDraftResponses[keyof ProviderConfigDraftsDiscardProviderDraftResponses];
|
|
21365
|
+
|
|
21366
|
+
export type ProviderConfigDraftsGetProviderDraftData = {
|
|
21367
|
+
body?: never;
|
|
21368
|
+
path: {
|
|
21369
|
+
projectId: string;
|
|
21370
|
+
providerId: string;
|
|
21371
|
+
};
|
|
21372
|
+
query?: never;
|
|
21373
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/draft';
|
|
21374
|
+
};
|
|
21375
|
+
|
|
21376
|
+
export type ProviderConfigDraftsGetProviderDraftErrors = {
|
|
21377
|
+
/**
|
|
21378
|
+
* BadRequestError
|
|
21379
|
+
*/
|
|
21380
|
+
400: BadRequestError;
|
|
21381
|
+
/**
|
|
21382
|
+
* UnauthorizedError
|
|
21383
|
+
*/
|
|
21384
|
+
401: UnauthorizedError;
|
|
21385
|
+
/**
|
|
21386
|
+
* ForbiddenError
|
|
21387
|
+
*/
|
|
21388
|
+
403: ForbiddenError;
|
|
21389
|
+
/**
|
|
21390
|
+
* NotFoundError
|
|
21391
|
+
*/
|
|
21392
|
+
404: NotFoundError;
|
|
21393
|
+
/**
|
|
21394
|
+
* ConflictError
|
|
21395
|
+
*/
|
|
21396
|
+
409: ConflictError;
|
|
21397
|
+
/**
|
|
21398
|
+
* GoneError
|
|
21399
|
+
*/
|
|
21400
|
+
410: GoneError;
|
|
21401
|
+
/**
|
|
21402
|
+
* ContentTooLargeError
|
|
21403
|
+
*/
|
|
21404
|
+
413: ContentTooLargeError;
|
|
21405
|
+
/**
|
|
21406
|
+
* MisdirectedRequestError
|
|
21407
|
+
*/
|
|
21408
|
+
421: MisdirectedRequestError;
|
|
21409
|
+
/**
|
|
21410
|
+
* UnprocessableEntityError
|
|
21411
|
+
*/
|
|
21412
|
+
422: UnprocessableEntityError;
|
|
21413
|
+
/**
|
|
21414
|
+
* TooManyRequestsError
|
|
21415
|
+
*/
|
|
21416
|
+
429: TooManyRequestsError;
|
|
21417
|
+
/**
|
|
21418
|
+
* InternalServerError
|
|
21419
|
+
*/
|
|
21420
|
+
500: InternalServerError;
|
|
21421
|
+
/**
|
|
21422
|
+
* ServiceUnavailableError
|
|
21423
|
+
*/
|
|
21424
|
+
503: ServiceUnavailableError;
|
|
21425
|
+
};
|
|
21426
|
+
|
|
21427
|
+
export type ProviderConfigDraftsGetProviderDraftError = ProviderConfigDraftsGetProviderDraftErrors[keyof ProviderConfigDraftsGetProviderDraftErrors];
|
|
21428
|
+
|
|
21429
|
+
export type ProviderConfigDraftsGetProviderDraftResponses = {
|
|
21430
|
+
/**
|
|
21431
|
+
* Success
|
|
21432
|
+
*/
|
|
21433
|
+
200: {
|
|
21434
|
+
code: number;
|
|
21435
|
+
data: {
|
|
21436
|
+
configSnapshot: {
|
|
21437
|
+
[key: string]: unknown;
|
|
21438
|
+
};
|
|
21439
|
+
createdAt: string;
|
|
21440
|
+
createdBy: string | null;
|
|
21441
|
+
fromVersionId: string;
|
|
21442
|
+
id: string;
|
|
21443
|
+
providerId: string;
|
|
21444
|
+
} | null | null;
|
|
21445
|
+
error: {
|
|
21446
|
+
code: string;
|
|
21447
|
+
details?: unknown | null;
|
|
21448
|
+
message: string;
|
|
21449
|
+
rowErrors?: Array<{
|
|
21450
|
+
code: string;
|
|
21451
|
+
message: string;
|
|
21452
|
+
path: Array<string | number>;
|
|
21453
|
+
}> | null;
|
|
21454
|
+
} | null;
|
|
21455
|
+
pagination: {
|
|
21456
|
+
limit: number;
|
|
21457
|
+
page: number;
|
|
21458
|
+
total: number;
|
|
21459
|
+
totalPages: number;
|
|
21460
|
+
} | null;
|
|
21461
|
+
sdkBehavior?: {
|
|
21462
|
+
flags: {
|
|
21463
|
+
[key: string]: unknown;
|
|
21464
|
+
};
|
|
21465
|
+
v: number;
|
|
21466
|
+
} | null;
|
|
21467
|
+
success: boolean;
|
|
21468
|
+
};
|
|
21469
|
+
};
|
|
21470
|
+
|
|
21471
|
+
export type ProviderConfigDraftsGetProviderDraftResponse = ProviderConfigDraftsGetProviderDraftResponses[keyof ProviderConfigDraftsGetProviderDraftResponses];
|
|
21472
|
+
|
|
21473
|
+
export type ProviderConfigDraftsEnsureProviderDraftData = {
|
|
21474
|
+
body?: never;
|
|
21475
|
+
path: {
|
|
21476
|
+
projectId: string;
|
|
21477
|
+
providerId: string;
|
|
21478
|
+
};
|
|
21479
|
+
query?: never;
|
|
21480
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/draft';
|
|
21481
|
+
};
|
|
21482
|
+
|
|
21483
|
+
export type ProviderConfigDraftsEnsureProviderDraftErrors = {
|
|
21484
|
+
/**
|
|
21485
|
+
* BadRequestError
|
|
21486
|
+
*/
|
|
21487
|
+
400: BadRequestError;
|
|
21488
|
+
/**
|
|
21489
|
+
* UnauthorizedError
|
|
21490
|
+
*/
|
|
21491
|
+
401: UnauthorizedError;
|
|
21492
|
+
/**
|
|
21493
|
+
* ForbiddenError
|
|
21494
|
+
*/
|
|
21495
|
+
403: ForbiddenError;
|
|
21496
|
+
/**
|
|
21497
|
+
* NotFoundError
|
|
21498
|
+
*/
|
|
21499
|
+
404: NotFoundError;
|
|
21500
|
+
/**
|
|
21501
|
+
* ConflictError
|
|
21502
|
+
*/
|
|
21503
|
+
409: ConflictError;
|
|
21504
|
+
/**
|
|
21505
|
+
* GoneError
|
|
21506
|
+
*/
|
|
21507
|
+
410: GoneError;
|
|
21508
|
+
/**
|
|
21509
|
+
* ContentTooLargeError
|
|
21510
|
+
*/
|
|
21511
|
+
413: ContentTooLargeError;
|
|
21512
|
+
/**
|
|
21513
|
+
* MisdirectedRequestError
|
|
21514
|
+
*/
|
|
21515
|
+
421: MisdirectedRequestError;
|
|
21516
|
+
/**
|
|
21517
|
+
* UnprocessableEntityError
|
|
21518
|
+
*/
|
|
21519
|
+
422: UnprocessableEntityError;
|
|
21520
|
+
/**
|
|
21521
|
+
* TooManyRequestsError
|
|
21522
|
+
*/
|
|
21523
|
+
429: TooManyRequestsError;
|
|
21524
|
+
/**
|
|
21525
|
+
* InternalServerError
|
|
21526
|
+
*/
|
|
21527
|
+
500: InternalServerError;
|
|
21528
|
+
/**
|
|
21529
|
+
* ServiceUnavailableError
|
|
21530
|
+
*/
|
|
21531
|
+
503: ServiceUnavailableError;
|
|
21532
|
+
};
|
|
21533
|
+
|
|
21534
|
+
export type ProviderConfigDraftsEnsureProviderDraftError = ProviderConfigDraftsEnsureProviderDraftErrors[keyof ProviderConfigDraftsEnsureProviderDraftErrors];
|
|
21535
|
+
|
|
21536
|
+
export type ProviderConfigDraftsEnsureProviderDraftResponses = {
|
|
21537
|
+
/**
|
|
21538
|
+
* Success
|
|
21539
|
+
*/
|
|
21540
|
+
200: {
|
|
21541
|
+
code: number;
|
|
21542
|
+
data: {
|
|
21543
|
+
configSnapshot: {
|
|
21544
|
+
[key: string]: unknown;
|
|
21545
|
+
};
|
|
21546
|
+
createdAt: string;
|
|
21547
|
+
createdBy: string | null;
|
|
21548
|
+
fromVersionId: string;
|
|
21549
|
+
id: string;
|
|
21550
|
+
providerId: string;
|
|
21551
|
+
} | null;
|
|
21552
|
+
error: {
|
|
21553
|
+
code: string;
|
|
21554
|
+
details?: unknown | null;
|
|
21555
|
+
message: string;
|
|
21556
|
+
rowErrors?: Array<{
|
|
21557
|
+
code: string;
|
|
21558
|
+
message: string;
|
|
21559
|
+
path: Array<string | number>;
|
|
21560
|
+
}> | null;
|
|
21561
|
+
} | null;
|
|
21562
|
+
pagination: {
|
|
21563
|
+
limit: number;
|
|
21564
|
+
page: number;
|
|
21565
|
+
total: number;
|
|
21566
|
+
totalPages: number;
|
|
21567
|
+
} | null;
|
|
21568
|
+
sdkBehavior?: {
|
|
21569
|
+
flags: {
|
|
21570
|
+
[key: string]: unknown;
|
|
21571
|
+
};
|
|
21572
|
+
v: number;
|
|
21573
|
+
} | null;
|
|
21574
|
+
success: boolean;
|
|
21575
|
+
};
|
|
21576
|
+
};
|
|
21577
|
+
|
|
21578
|
+
export type ProviderConfigDraftsEnsureProviderDraftResponse = ProviderConfigDraftsEnsureProviderDraftResponses[keyof ProviderConfigDraftsEnsureProviderDraftResponses];
|
|
21579
|
+
|
|
21580
|
+
export type ProviderConfigDraftsCommitProviderDraftData = {
|
|
21581
|
+
body: {
|
|
21582
|
+
environments: Array<{
|
|
21583
|
+
envSlug: string;
|
|
21584
|
+
environmentId: string;
|
|
21585
|
+
}>;
|
|
21586
|
+
reason?: string | null;
|
|
21587
|
+
};
|
|
21588
|
+
path: {
|
|
21589
|
+
projectId: string;
|
|
21590
|
+
providerId: string;
|
|
21591
|
+
};
|
|
21592
|
+
query?: never;
|
|
21593
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/draft/commit';
|
|
20824
21594
|
};
|
|
20825
21595
|
|
|
20826
|
-
export type
|
|
21596
|
+
export type ProviderConfigDraftsCommitProviderDraftErrors = {
|
|
20827
21597
|
/**
|
|
20828
21598
|
* BadRequestError
|
|
20829
21599
|
*/
|
|
@@ -20874,30 +21644,23 @@ export type RoutingProvidersCreateRoutingCredentialErrors = {
|
|
|
20874
21644
|
503: ServiceUnavailableError;
|
|
20875
21645
|
};
|
|
20876
21646
|
|
|
20877
|
-
export type
|
|
21647
|
+
export type ProviderConfigDraftsCommitProviderDraftError = ProviderConfigDraftsCommitProviderDraftErrors[keyof ProviderConfigDraftsCommitProviderDraftErrors];
|
|
20878
21648
|
|
|
20879
|
-
export type
|
|
21649
|
+
export type ProviderConfigDraftsCommitProviderDraftResponses = {
|
|
20880
21650
|
/**
|
|
20881
21651
|
* Success
|
|
20882
21652
|
*/
|
|
20883
21653
|
201: {
|
|
20884
21654
|
code: number;
|
|
20885
21655
|
data: {
|
|
20886
|
-
|
|
20887
|
-
|
|
20888
|
-
|
|
20889
|
-
|
|
20890
|
-
|
|
20891
|
-
|
|
20892
|
-
|
|
20893
|
-
|
|
20894
|
-
errors: Array<{
|
|
20895
|
-
entity: string;
|
|
20896
|
-
message: string;
|
|
20897
|
-
rule?: string | null;
|
|
20898
|
-
}>;
|
|
20899
|
-
kind: 'validation';
|
|
20900
|
-
} | null;
|
|
21656
|
+
deployResults: Array<{
|
|
21657
|
+
envSlug: string;
|
|
21658
|
+
environmentId: string;
|
|
21659
|
+
errorTag?: string | null;
|
|
21660
|
+
outcome: 'deployed' | 'pending' | 'failed';
|
|
21661
|
+
}>;
|
|
21662
|
+
version: number;
|
|
21663
|
+
versionId: string;
|
|
20901
21664
|
} | null;
|
|
20902
21665
|
error: {
|
|
20903
21666
|
code: string;
|
|
@@ -20925,20 +21688,22 @@ export type RoutingProvidersCreateRoutingCredentialResponses = {
|
|
|
20925
21688
|
};
|
|
20926
21689
|
};
|
|
20927
21690
|
|
|
20928
|
-
export type
|
|
21691
|
+
export type ProviderConfigDraftsCommitProviderDraftResponse = ProviderConfigDraftsCommitProviderDraftResponses[keyof ProviderConfigDraftsCommitProviderDraftResponses];
|
|
20929
21692
|
|
|
20930
|
-
export type
|
|
20931
|
-
body
|
|
21693
|
+
export type ProviderConfigDraftsRestoreProviderVersionData = {
|
|
21694
|
+
body: {
|
|
21695
|
+
confirmDiscard?: boolean | null;
|
|
21696
|
+
version: number;
|
|
21697
|
+
};
|
|
20932
21698
|
path: {
|
|
20933
21699
|
projectId: string;
|
|
20934
21700
|
providerId: string;
|
|
20935
|
-
credentialId: string;
|
|
20936
21701
|
};
|
|
20937
21702
|
query?: never;
|
|
20938
|
-
url: '/v1/projects/{projectId}/routing/providers/{providerId}/
|
|
21703
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/draft/restore';
|
|
20939
21704
|
};
|
|
20940
21705
|
|
|
20941
|
-
export type
|
|
21706
|
+
export type ProviderConfigDraftsRestoreProviderVersionErrors = {
|
|
20942
21707
|
/**
|
|
20943
21708
|
* BadRequestError
|
|
20944
21709
|
*/
|
|
@@ -20989,24 +21754,23 @@ export type RoutingProvidersDeleteRoutingCredentialErrors = {
|
|
|
20989
21754
|
503: ServiceUnavailableError;
|
|
20990
21755
|
};
|
|
20991
21756
|
|
|
20992
|
-
export type
|
|
21757
|
+
export type ProviderConfigDraftsRestoreProviderVersionError = ProviderConfigDraftsRestoreProviderVersionErrors[keyof ProviderConfigDraftsRestoreProviderVersionErrors];
|
|
20993
21758
|
|
|
20994
|
-
export type
|
|
21759
|
+
export type ProviderConfigDraftsRestoreProviderVersionResponses = {
|
|
20995
21760
|
/**
|
|
20996
21761
|
* Success
|
|
20997
21762
|
*/
|
|
20998
21763
|
200: {
|
|
20999
21764
|
code: number;
|
|
21000
21765
|
data: {
|
|
21001
|
-
|
|
21002
|
-
|
|
21003
|
-
|
|
21004
|
-
|
|
21005
|
-
|
|
21006
|
-
|
|
21007
|
-
|
|
21008
|
-
|
|
21009
|
-
} | null;
|
|
21766
|
+
configSnapshot: {
|
|
21767
|
+
[key: string]: unknown;
|
|
21768
|
+
};
|
|
21769
|
+
createdAt: string;
|
|
21770
|
+
createdBy: string | null;
|
|
21771
|
+
fromVersionId: string;
|
|
21772
|
+
id: string;
|
|
21773
|
+
providerId: string;
|
|
21010
21774
|
} | null;
|
|
21011
21775
|
error: {
|
|
21012
21776
|
code: string;
|
|
@@ -21034,20 +21798,23 @@ export type RoutingProvidersDeleteRoutingCredentialResponses = {
|
|
|
21034
21798
|
};
|
|
21035
21799
|
};
|
|
21036
21800
|
|
|
21037
|
-
export type
|
|
21801
|
+
export type ProviderConfigDraftsRestoreProviderVersionResponse = ProviderConfigDraftsRestoreProviderVersionResponses[keyof ProviderConfigDraftsRestoreProviderVersionResponses];
|
|
21038
21802
|
|
|
21039
|
-
export type
|
|
21040
|
-
body
|
|
21803
|
+
export type ProviderPromoteVersionPromoteProviderEnvVersionData = {
|
|
21804
|
+
body: {
|
|
21805
|
+
reason?: string | null;
|
|
21806
|
+
version: number;
|
|
21807
|
+
};
|
|
21041
21808
|
path: {
|
|
21042
21809
|
projectId: string;
|
|
21043
21810
|
providerId: string;
|
|
21044
|
-
|
|
21811
|
+
envSlug: string;
|
|
21045
21812
|
};
|
|
21046
21813
|
query?: never;
|
|
21047
|
-
url: '/v1/projects/{projectId}/routing/providers/{providerId}/
|
|
21814
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/environments/{envSlug}/promote';
|
|
21048
21815
|
};
|
|
21049
21816
|
|
|
21050
|
-
export type
|
|
21817
|
+
export type ProviderPromoteVersionPromoteProviderEnvVersionErrors = {
|
|
21051
21818
|
/**
|
|
21052
21819
|
* BadRequestError
|
|
21053
21820
|
*/
|
|
@@ -21098,24 +21865,33 @@ export type RoutingProvidersTestRoutingCredentialErrors = {
|
|
|
21098
21865
|
503: ServiceUnavailableError;
|
|
21099
21866
|
};
|
|
21100
21867
|
|
|
21101
|
-
export type
|
|
21868
|
+
export type ProviderPromoteVersionPromoteProviderEnvVersionError = ProviderPromoteVersionPromoteProviderEnvVersionErrors[keyof ProviderPromoteVersionPromoteProviderEnvVersionErrors];
|
|
21102
21869
|
|
|
21103
|
-
export type
|
|
21870
|
+
export type ProviderPromoteVersionPromoteProviderEnvVersionResponses = {
|
|
21104
21871
|
/**
|
|
21105
21872
|
* Success
|
|
21106
21873
|
*/
|
|
21107
|
-
|
|
21874
|
+
201: {
|
|
21108
21875
|
code: number;
|
|
21109
21876
|
data: {
|
|
21110
|
-
|
|
21111
|
-
|
|
21112
|
-
|
|
21113
|
-
|
|
21114
|
-
|
|
21115
|
-
|
|
21116
|
-
|
|
21117
|
-
|
|
21118
|
-
|
|
21877
|
+
activeFrom: string;
|
|
21878
|
+
activeTo: string | null;
|
|
21879
|
+
actorId: string;
|
|
21880
|
+
actorType: string;
|
|
21881
|
+
approvalStatus: 'not_required' | 'pending' | 'approved' | 'rejected';
|
|
21882
|
+
changeType: string;
|
|
21883
|
+
configSnapshot: {
|
|
21884
|
+
[key: string]: unknown;
|
|
21885
|
+
};
|
|
21886
|
+
createdAt: string;
|
|
21887
|
+
credentialId: string;
|
|
21888
|
+
envSlug: string;
|
|
21889
|
+
environmentId: string;
|
|
21890
|
+
id: string;
|
|
21891
|
+
modelAllowlistCleared?: boolean | null;
|
|
21892
|
+
providerId: string;
|
|
21893
|
+
reason: string | null;
|
|
21894
|
+
state: 'current' | 'pending';
|
|
21119
21895
|
} | null;
|
|
21120
21896
|
error: {
|
|
21121
21897
|
code: string;
|
|
@@ -21143,23 +21919,19 @@ export type RoutingProvidersTestRoutingCredentialResponses = {
|
|
|
21143
21919
|
};
|
|
21144
21920
|
};
|
|
21145
21921
|
|
|
21146
|
-
export type
|
|
21922
|
+
export type ProviderPromoteVersionPromoteProviderEnvVersionResponse = ProviderPromoteVersionPromoteProviderEnvVersionResponses[keyof ProviderPromoteVersionPromoteProviderEnvVersionResponses];
|
|
21147
21923
|
|
|
21148
|
-
export type
|
|
21149
|
-
body
|
|
21150
|
-
reason?: string | null;
|
|
21151
|
-
version: number;
|
|
21152
|
-
};
|
|
21924
|
+
export type ProviderModelUsageGetProviderModelUsageData = {
|
|
21925
|
+
body?: never;
|
|
21153
21926
|
path: {
|
|
21154
21927
|
projectId: string;
|
|
21155
21928
|
providerId: string;
|
|
21156
|
-
envSlug: string;
|
|
21157
21929
|
};
|
|
21158
21930
|
query?: never;
|
|
21159
|
-
url: '/v1/projects/{projectId}/routing/providers/{providerId}/
|
|
21931
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/model-usage';
|
|
21160
21932
|
};
|
|
21161
21933
|
|
|
21162
|
-
export type
|
|
21934
|
+
export type ProviderModelUsageGetProviderModelUsageErrors = {
|
|
21163
21935
|
/**
|
|
21164
21936
|
* BadRequestError
|
|
21165
21937
|
*/
|
|
@@ -21210,33 +21982,23 @@ export type ProviderPromoteVersionPromoteProviderEnvVersionErrors = {
|
|
|
21210
21982
|
503: ServiceUnavailableError;
|
|
21211
21983
|
};
|
|
21212
21984
|
|
|
21213
|
-
export type
|
|
21985
|
+
export type ProviderModelUsageGetProviderModelUsageError = ProviderModelUsageGetProviderModelUsageErrors[keyof ProviderModelUsageGetProviderModelUsageErrors];
|
|
21214
21986
|
|
|
21215
|
-
export type
|
|
21987
|
+
export type ProviderModelUsageGetProviderModelUsageResponses = {
|
|
21216
21988
|
/**
|
|
21217
21989
|
* Success
|
|
21218
21990
|
*/
|
|
21219
|
-
|
|
21991
|
+
200: {
|
|
21220
21992
|
code: number;
|
|
21221
|
-
data: {
|
|
21222
|
-
|
|
21223
|
-
|
|
21224
|
-
|
|
21225
|
-
|
|
21226
|
-
|
|
21227
|
-
|
|
21228
|
-
|
|
21229
|
-
|
|
21230
|
-
};
|
|
21231
|
-
createdAt: string;
|
|
21232
|
-
credentialId: string;
|
|
21233
|
-
envSlug: string;
|
|
21234
|
-
environmentId: string;
|
|
21235
|
-
id: string;
|
|
21236
|
-
providerId: string;
|
|
21237
|
-
reason: string | null;
|
|
21238
|
-
state: 'current' | 'pending';
|
|
21239
|
-
} | null;
|
|
21993
|
+
data: Array<{
|
|
21994
|
+
day: string;
|
|
21995
|
+
errorCount: number;
|
|
21996
|
+
model: string;
|
|
21997
|
+
p50TtftMs: number | null;
|
|
21998
|
+
requests: number;
|
|
21999
|
+
spendUsd: number | null;
|
|
22000
|
+
totalTokens: number;
|
|
22001
|
+
}> | null;
|
|
21240
22002
|
error: {
|
|
21241
22003
|
code: string;
|
|
21242
22004
|
details?: unknown | null;
|
|
@@ -21263,7 +22025,7 @@ export type ProviderPromoteVersionPromoteProviderEnvVersionResponses = {
|
|
|
21263
22025
|
};
|
|
21264
22026
|
};
|
|
21265
22027
|
|
|
21266
|
-
export type
|
|
22028
|
+
export type ProviderModelUsageGetProviderModelUsageResponse = ProviderModelUsageGetProviderModelUsageResponses[keyof ProviderModelUsageGetProviderModelUsageResponses];
|
|
21267
22029
|
|
|
21268
22030
|
export type RoutingProvidersListRoutingModelsData = {
|
|
21269
22031
|
body?: never;
|
|
@@ -22026,6 +22788,7 @@ export type ProviderConfigVersionsListProviderConfigVersionsResponses = {
|
|
|
22026
22788
|
contentHash: string;
|
|
22027
22789
|
createdAt: string;
|
|
22028
22790
|
createdBy: string | null;
|
|
22791
|
+
id: string;
|
|
22029
22792
|
liveInEnvSlugs: Array<string>;
|
|
22030
22793
|
version: number;
|
|
22031
22794
|
}> | null;
|
|
@@ -24877,6 +25640,7 @@ export type TracesListTracesData = {
|
|
|
24877
25640
|
status?: 'ok' | 'error' | 'timeout' | null;
|
|
24878
25641
|
provider?: string | Array<string> | string | null;
|
|
24879
25642
|
model?: string | Array<string> | string | null;
|
|
25643
|
+
promptRef?: string | Array<string> | string | null;
|
|
24880
25644
|
minTokens?: string | null;
|
|
24881
25645
|
maxTokens?: string | null;
|
|
24882
25646
|
minCost?: string | null;
|
|
@@ -25036,6 +25800,8 @@ export type TracesListTracesResponses = {
|
|
|
25036
25800
|
input_tokens: number;
|
|
25037
25801
|
model: string;
|
|
25038
25802
|
output_tokens: number;
|
|
25803
|
+
prompt_id: string | null;
|
|
25804
|
+
prompt_version: string | null;
|
|
25039
25805
|
provider: string;
|
|
25040
25806
|
session_id: string;
|
|
25041
25807
|
span_count: number;
|
|
@@ -25078,6 +25844,124 @@ export type TracesListTracesResponses = {
|
|
|
25078
25844
|
|
|
25079
25845
|
export type TracesListTracesResponse = TracesListTracesResponses[keyof TracesListTracesResponses];
|
|
25080
25846
|
|
|
25847
|
+
export type TracesListTracePromptFacetsData = {
|
|
25848
|
+
body?: never;
|
|
25849
|
+
path: {
|
|
25850
|
+
projectId: string;
|
|
25851
|
+
};
|
|
25852
|
+
query?: {
|
|
25853
|
+
page?: string | null;
|
|
25854
|
+
limit?: string | null;
|
|
25855
|
+
sort?: 'startTime' | 'durationMs' | 'inputTokens' | 'outputTokens' | 'model' | 'provider' | 'toolCalls' | 'costUsd' | null;
|
|
25856
|
+
order?: 'asc' | 'desc' | null;
|
|
25857
|
+
status?: 'ok' | 'error' | 'timeout' | null;
|
|
25858
|
+
provider?: string | Array<string> | string | null;
|
|
25859
|
+
model?: string | Array<string> | string | null;
|
|
25860
|
+
promptRef?: string | Array<string> | string | null;
|
|
25861
|
+
minTokens?: string | null;
|
|
25862
|
+
maxTokens?: string | null;
|
|
25863
|
+
minCost?: string | null;
|
|
25864
|
+
maxCost?: string | null;
|
|
25865
|
+
hasToolCalls?: 'yes' | 'no' | null;
|
|
25866
|
+
timePreset?: '10m' | '30m' | '1h' | '2h' | '3h' | '8h' | '24h' | '7d' | '14d' | '28d' | '60d' | null;
|
|
25867
|
+
startTimeFrom?: string | null;
|
|
25868
|
+
startTimeTo?: string | null;
|
|
25869
|
+
};
|
|
25870
|
+
url: '/v1/projects/{projectId}/traces/prompt-facets';
|
|
25871
|
+
};
|
|
25872
|
+
|
|
25873
|
+
export type TracesListTracePromptFacetsErrors = {
|
|
25874
|
+
/**
|
|
25875
|
+
* BadRequestError
|
|
25876
|
+
*/
|
|
25877
|
+
400: BadRequestError;
|
|
25878
|
+
/**
|
|
25879
|
+
* UnauthorizedError
|
|
25880
|
+
*/
|
|
25881
|
+
401: UnauthorizedError;
|
|
25882
|
+
/**
|
|
25883
|
+
* ForbiddenError
|
|
25884
|
+
*/
|
|
25885
|
+
403: ForbiddenError;
|
|
25886
|
+
/**
|
|
25887
|
+
* NotFoundError
|
|
25888
|
+
*/
|
|
25889
|
+
404: NotFoundError;
|
|
25890
|
+
/**
|
|
25891
|
+
* ConflictError
|
|
25892
|
+
*/
|
|
25893
|
+
409: ConflictError;
|
|
25894
|
+
/**
|
|
25895
|
+
* GoneError
|
|
25896
|
+
*/
|
|
25897
|
+
410: GoneError;
|
|
25898
|
+
/**
|
|
25899
|
+
* ContentTooLargeError
|
|
25900
|
+
*/
|
|
25901
|
+
413: ContentTooLargeError;
|
|
25902
|
+
/**
|
|
25903
|
+
* MisdirectedRequestError
|
|
25904
|
+
*/
|
|
25905
|
+
421: MisdirectedRequestError;
|
|
25906
|
+
/**
|
|
25907
|
+
* UnprocessableEntityError
|
|
25908
|
+
*/
|
|
25909
|
+
422: UnprocessableEntityError;
|
|
25910
|
+
/**
|
|
25911
|
+
* TooManyRequestsError
|
|
25912
|
+
*/
|
|
25913
|
+
429: TooManyRequestsError;
|
|
25914
|
+
/**
|
|
25915
|
+
* InternalServerError
|
|
25916
|
+
*/
|
|
25917
|
+
500: InternalServerError;
|
|
25918
|
+
/**
|
|
25919
|
+
* ServiceUnavailableError
|
|
25920
|
+
*/
|
|
25921
|
+
503: ServiceUnavailableError;
|
|
25922
|
+
};
|
|
25923
|
+
|
|
25924
|
+
export type TracesListTracePromptFacetsError = TracesListTracePromptFacetsErrors[keyof TracesListTracePromptFacetsErrors];
|
|
25925
|
+
|
|
25926
|
+
export type TracesListTracePromptFacetsResponses = {
|
|
25927
|
+
/**
|
|
25928
|
+
* Success
|
|
25929
|
+
*/
|
|
25930
|
+
200: {
|
|
25931
|
+
code: number;
|
|
25932
|
+
data: Array<{
|
|
25933
|
+
prompt_id: string;
|
|
25934
|
+
prompt_version: string;
|
|
25935
|
+
trace_count: number;
|
|
25936
|
+
}> | null;
|
|
25937
|
+
error: {
|
|
25938
|
+
code: string;
|
|
25939
|
+
details?: unknown | null;
|
|
25940
|
+
message: string;
|
|
25941
|
+
rowErrors?: Array<{
|
|
25942
|
+
code: string;
|
|
25943
|
+
message: string;
|
|
25944
|
+
path: Array<string | number>;
|
|
25945
|
+
}> | null;
|
|
25946
|
+
} | null;
|
|
25947
|
+
pagination: {
|
|
25948
|
+
limit: number;
|
|
25949
|
+
page: number;
|
|
25950
|
+
total: number;
|
|
25951
|
+
totalPages: number;
|
|
25952
|
+
} | null;
|
|
25953
|
+
sdkBehavior?: {
|
|
25954
|
+
flags: {
|
|
25955
|
+
[key: string]: unknown;
|
|
25956
|
+
};
|
|
25957
|
+
v: number;
|
|
25958
|
+
} | null;
|
|
25959
|
+
success: boolean;
|
|
25960
|
+
};
|
|
25961
|
+
};
|
|
25962
|
+
|
|
25963
|
+
export type TracesListTracePromptFacetsResponse = TracesListTracePromptFacetsResponses[keyof TracesListTracePromptFacetsResponses];
|
|
25964
|
+
|
|
25081
25965
|
export type TracesGetTraceDetailData = {
|
|
25082
25966
|
body?: never;
|
|
25083
25967
|
path: {
|