@to11ai/sdk 3.0.0-rc.14 → 3.0.0-rc.15
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 +544 -0
- package/dist/generated/zod.gen.d.ts +278 -0
- package/package.json +1 -1
- package/src/generated/index.ts +1 -1
- package/src/generated/types.gen.ts +569 -0
- package/src/generated/zod.gen.ts +295 -2
|
@@ -4943,6 +4943,321 @@ export type DashboardingSyncOrganizationPersesResponses = {
|
|
|
4943
4943
|
};
|
|
4944
4944
|
};
|
|
4945
4945
|
export type DashboardingSyncOrganizationPersesResponse = DashboardingSyncOrganizationPersesResponses[keyof DashboardingSyncOrganizationPersesResponses];
|
|
4946
|
+
export type IntegrationsGetGitHubIntegrationData = {
|
|
4947
|
+
body?: never;
|
|
4948
|
+
path: {
|
|
4949
|
+
orgId: string;
|
|
4950
|
+
};
|
|
4951
|
+
query?: never;
|
|
4952
|
+
url: '/v1/orgs/{orgId}/integrations/github';
|
|
4953
|
+
};
|
|
4954
|
+
export type IntegrationsGetGitHubIntegrationErrors = {
|
|
4955
|
+
/**
|
|
4956
|
+
* BadRequestError
|
|
4957
|
+
*/
|
|
4958
|
+
400: BadRequestError;
|
|
4959
|
+
/**
|
|
4960
|
+
* UnauthorizedError
|
|
4961
|
+
*/
|
|
4962
|
+
401: UnauthorizedError;
|
|
4963
|
+
/**
|
|
4964
|
+
* ForbiddenError
|
|
4965
|
+
*/
|
|
4966
|
+
403: ForbiddenError;
|
|
4967
|
+
/**
|
|
4968
|
+
* NotFoundError
|
|
4969
|
+
*/
|
|
4970
|
+
404: NotFoundError;
|
|
4971
|
+
/**
|
|
4972
|
+
* ConflictError
|
|
4973
|
+
*/
|
|
4974
|
+
409: ConflictError;
|
|
4975
|
+
/**
|
|
4976
|
+
* GoneError
|
|
4977
|
+
*/
|
|
4978
|
+
410: GoneError;
|
|
4979
|
+
/**
|
|
4980
|
+
* ContentTooLargeError
|
|
4981
|
+
*/
|
|
4982
|
+
413: ContentTooLargeError;
|
|
4983
|
+
/**
|
|
4984
|
+
* MisdirectedRequestError
|
|
4985
|
+
*/
|
|
4986
|
+
421: MisdirectedRequestError;
|
|
4987
|
+
/**
|
|
4988
|
+
* UnprocessableEntityError
|
|
4989
|
+
*/
|
|
4990
|
+
422: UnprocessableEntityError;
|
|
4991
|
+
/**
|
|
4992
|
+
* TooManyRequestsError
|
|
4993
|
+
*/
|
|
4994
|
+
429: TooManyRequestsError;
|
|
4995
|
+
/**
|
|
4996
|
+
* InternalServerError
|
|
4997
|
+
*/
|
|
4998
|
+
500: InternalServerError;
|
|
4999
|
+
/**
|
|
5000
|
+
* ServiceUnavailableError
|
|
5001
|
+
*/
|
|
5002
|
+
503: ServiceUnavailableError;
|
|
5003
|
+
};
|
|
5004
|
+
export type IntegrationsGetGitHubIntegrationError = IntegrationsGetGitHubIntegrationErrors[keyof IntegrationsGetGitHubIntegrationErrors];
|
|
5005
|
+
export type IntegrationsGetGitHubIntegrationResponses = {
|
|
5006
|
+
/**
|
|
5007
|
+
* Success
|
|
5008
|
+
*/
|
|
5009
|
+
200: {
|
|
5010
|
+
code: number;
|
|
5011
|
+
data: {
|
|
5012
|
+
appSlug: string | null;
|
|
5013
|
+
configured: boolean;
|
|
5014
|
+
installation: {
|
|
5015
|
+
accountLogin: string;
|
|
5016
|
+
backfillRequestedAt: string | null;
|
|
5017
|
+
createdAt: string;
|
|
5018
|
+
externalId: string;
|
|
5019
|
+
id: string;
|
|
5020
|
+
lastReconciledAt: string | null;
|
|
5021
|
+
repositoryCount: number;
|
|
5022
|
+
suspendedAt: string | null;
|
|
5023
|
+
uninstalledAt: string | null;
|
|
5024
|
+
updatedAt: string;
|
|
5025
|
+
} | null;
|
|
5026
|
+
} | null;
|
|
5027
|
+
error: {
|
|
5028
|
+
code: string;
|
|
5029
|
+
details?: unknown | null;
|
|
5030
|
+
message: string;
|
|
5031
|
+
rowErrors?: Array<{
|
|
5032
|
+
code: string;
|
|
5033
|
+
message: string;
|
|
5034
|
+
path: Array<string | number>;
|
|
5035
|
+
}> | null;
|
|
5036
|
+
} | null;
|
|
5037
|
+
pagination: {
|
|
5038
|
+
limit: number;
|
|
5039
|
+
page: number;
|
|
5040
|
+
total: number;
|
|
5041
|
+
totalPages: number;
|
|
5042
|
+
} | null;
|
|
5043
|
+
sdkBehavior?: {
|
|
5044
|
+
flags: {
|
|
5045
|
+
[key: string]: unknown;
|
|
5046
|
+
};
|
|
5047
|
+
v: number;
|
|
5048
|
+
} | null;
|
|
5049
|
+
success: boolean;
|
|
5050
|
+
};
|
|
5051
|
+
};
|
|
5052
|
+
export type IntegrationsGetGitHubIntegrationResponse = IntegrationsGetGitHubIntegrationResponses[keyof IntegrationsGetGitHubIntegrationResponses];
|
|
5053
|
+
export type IntegrationsCompleteGitHubIntegrationData = {
|
|
5054
|
+
body: {
|
|
5055
|
+
code: string;
|
|
5056
|
+
installationId?: string | null;
|
|
5057
|
+
setupAction?: string | null;
|
|
5058
|
+
state: string;
|
|
5059
|
+
};
|
|
5060
|
+
path: {
|
|
5061
|
+
orgId: string;
|
|
5062
|
+
};
|
|
5063
|
+
query?: never;
|
|
5064
|
+
url: '/v1/orgs/{orgId}/integrations/github/callback';
|
|
5065
|
+
};
|
|
5066
|
+
export type IntegrationsCompleteGitHubIntegrationErrors = {
|
|
5067
|
+
/**
|
|
5068
|
+
* BadRequestError
|
|
5069
|
+
*/
|
|
5070
|
+
400: BadRequestError;
|
|
5071
|
+
/**
|
|
5072
|
+
* UnauthorizedError
|
|
5073
|
+
*/
|
|
5074
|
+
401: UnauthorizedError;
|
|
5075
|
+
/**
|
|
5076
|
+
* ForbiddenError
|
|
5077
|
+
*/
|
|
5078
|
+
403: ForbiddenError;
|
|
5079
|
+
/**
|
|
5080
|
+
* NotFoundError
|
|
5081
|
+
*/
|
|
5082
|
+
404: NotFoundError;
|
|
5083
|
+
/**
|
|
5084
|
+
* ConflictError
|
|
5085
|
+
*/
|
|
5086
|
+
409: ConflictError;
|
|
5087
|
+
/**
|
|
5088
|
+
* GoneError
|
|
5089
|
+
*/
|
|
5090
|
+
410: GoneError;
|
|
5091
|
+
/**
|
|
5092
|
+
* ContentTooLargeError
|
|
5093
|
+
*/
|
|
5094
|
+
413: ContentTooLargeError;
|
|
5095
|
+
/**
|
|
5096
|
+
* MisdirectedRequestError
|
|
5097
|
+
*/
|
|
5098
|
+
421: MisdirectedRequestError;
|
|
5099
|
+
/**
|
|
5100
|
+
* UnprocessableEntityError
|
|
5101
|
+
*/
|
|
5102
|
+
422: UnprocessableEntityError;
|
|
5103
|
+
/**
|
|
5104
|
+
* TooManyRequestsError
|
|
5105
|
+
*/
|
|
5106
|
+
429: TooManyRequestsError;
|
|
5107
|
+
/**
|
|
5108
|
+
* InternalServerError
|
|
5109
|
+
*/
|
|
5110
|
+
500: InternalServerError;
|
|
5111
|
+
/**
|
|
5112
|
+
* ServiceUnavailableError
|
|
5113
|
+
*/
|
|
5114
|
+
503: ServiceUnavailableError;
|
|
5115
|
+
};
|
|
5116
|
+
export type IntegrationsCompleteGitHubIntegrationError = IntegrationsCompleteGitHubIntegrationErrors[keyof IntegrationsCompleteGitHubIntegrationErrors];
|
|
5117
|
+
export type IntegrationsCompleteGitHubIntegrationResponses = {
|
|
5118
|
+
/**
|
|
5119
|
+
* Success
|
|
5120
|
+
*/
|
|
5121
|
+
200: {
|
|
5122
|
+
code: number;
|
|
5123
|
+
data: {
|
|
5124
|
+
installation: {
|
|
5125
|
+
accountLogin: string;
|
|
5126
|
+
backfillRequestedAt: string | null;
|
|
5127
|
+
createdAt: string;
|
|
5128
|
+
externalId: string;
|
|
5129
|
+
id: string;
|
|
5130
|
+
lastReconciledAt: string | null;
|
|
5131
|
+
repositoryCount: number;
|
|
5132
|
+
suspendedAt: string | null;
|
|
5133
|
+
uninstalledAt: string | null;
|
|
5134
|
+
updatedAt: string;
|
|
5135
|
+
};
|
|
5136
|
+
} | null;
|
|
5137
|
+
error: {
|
|
5138
|
+
code: string;
|
|
5139
|
+
details?: unknown | null;
|
|
5140
|
+
message: string;
|
|
5141
|
+
rowErrors?: Array<{
|
|
5142
|
+
code: string;
|
|
5143
|
+
message: string;
|
|
5144
|
+
path: Array<string | number>;
|
|
5145
|
+
}> | null;
|
|
5146
|
+
} | null;
|
|
5147
|
+
pagination: {
|
|
5148
|
+
limit: number;
|
|
5149
|
+
page: number;
|
|
5150
|
+
total: number;
|
|
5151
|
+
totalPages: number;
|
|
5152
|
+
} | null;
|
|
5153
|
+
sdkBehavior?: {
|
|
5154
|
+
flags: {
|
|
5155
|
+
[key: string]: unknown;
|
|
5156
|
+
};
|
|
5157
|
+
v: number;
|
|
5158
|
+
} | null;
|
|
5159
|
+
success: boolean;
|
|
5160
|
+
};
|
|
5161
|
+
};
|
|
5162
|
+
export type IntegrationsCompleteGitHubIntegrationResponse = IntegrationsCompleteGitHubIntegrationResponses[keyof IntegrationsCompleteGitHubIntegrationResponses];
|
|
5163
|
+
export type IntegrationsConnectGitHubIntegrationData = {
|
|
5164
|
+
body: {
|
|
5165
|
+
accountLogin?: string | null;
|
|
5166
|
+
mode: 'install' | 'authorize';
|
|
5167
|
+
};
|
|
5168
|
+
path: {
|
|
5169
|
+
orgId: string;
|
|
5170
|
+
};
|
|
5171
|
+
query?: never;
|
|
5172
|
+
url: '/v1/orgs/{orgId}/integrations/github/connect';
|
|
5173
|
+
};
|
|
5174
|
+
export type IntegrationsConnectGitHubIntegrationErrors = {
|
|
5175
|
+
/**
|
|
5176
|
+
* BadRequestError
|
|
5177
|
+
*/
|
|
5178
|
+
400: BadRequestError;
|
|
5179
|
+
/**
|
|
5180
|
+
* UnauthorizedError
|
|
5181
|
+
*/
|
|
5182
|
+
401: UnauthorizedError;
|
|
5183
|
+
/**
|
|
5184
|
+
* ForbiddenError
|
|
5185
|
+
*/
|
|
5186
|
+
403: ForbiddenError;
|
|
5187
|
+
/**
|
|
5188
|
+
* NotFoundError
|
|
5189
|
+
*/
|
|
5190
|
+
404: NotFoundError;
|
|
5191
|
+
/**
|
|
5192
|
+
* ConflictError
|
|
5193
|
+
*/
|
|
5194
|
+
409: ConflictError;
|
|
5195
|
+
/**
|
|
5196
|
+
* GoneError
|
|
5197
|
+
*/
|
|
5198
|
+
410: GoneError;
|
|
5199
|
+
/**
|
|
5200
|
+
* ContentTooLargeError
|
|
5201
|
+
*/
|
|
5202
|
+
413: ContentTooLargeError;
|
|
5203
|
+
/**
|
|
5204
|
+
* MisdirectedRequestError
|
|
5205
|
+
*/
|
|
5206
|
+
421: MisdirectedRequestError;
|
|
5207
|
+
/**
|
|
5208
|
+
* UnprocessableEntityError
|
|
5209
|
+
*/
|
|
5210
|
+
422: UnprocessableEntityError;
|
|
5211
|
+
/**
|
|
5212
|
+
* TooManyRequestsError
|
|
5213
|
+
*/
|
|
5214
|
+
429: TooManyRequestsError;
|
|
5215
|
+
/**
|
|
5216
|
+
* InternalServerError
|
|
5217
|
+
*/
|
|
5218
|
+
500: InternalServerError;
|
|
5219
|
+
/**
|
|
5220
|
+
* ServiceUnavailableError
|
|
5221
|
+
*/
|
|
5222
|
+
503: ServiceUnavailableError;
|
|
5223
|
+
};
|
|
5224
|
+
export type IntegrationsConnectGitHubIntegrationError = IntegrationsConnectGitHubIntegrationErrors[keyof IntegrationsConnectGitHubIntegrationErrors];
|
|
5225
|
+
export type IntegrationsConnectGitHubIntegrationResponses = {
|
|
5226
|
+
/**
|
|
5227
|
+
* Success
|
|
5228
|
+
*/
|
|
5229
|
+
200: {
|
|
5230
|
+
code: number;
|
|
5231
|
+
data: {
|
|
5232
|
+
state: string;
|
|
5233
|
+
url: string;
|
|
5234
|
+
} | null;
|
|
5235
|
+
error: {
|
|
5236
|
+
code: string;
|
|
5237
|
+
details?: unknown | null;
|
|
5238
|
+
message: string;
|
|
5239
|
+
rowErrors?: Array<{
|
|
5240
|
+
code: string;
|
|
5241
|
+
message: string;
|
|
5242
|
+
path: Array<string | number>;
|
|
5243
|
+
}> | null;
|
|
5244
|
+
} | null;
|
|
5245
|
+
pagination: {
|
|
5246
|
+
limit: number;
|
|
5247
|
+
page: number;
|
|
5248
|
+
total: number;
|
|
5249
|
+
totalPages: number;
|
|
5250
|
+
} | null;
|
|
5251
|
+
sdkBehavior?: {
|
|
5252
|
+
flags: {
|
|
5253
|
+
[key: string]: unknown;
|
|
5254
|
+
};
|
|
5255
|
+
v: number;
|
|
5256
|
+
} | null;
|
|
5257
|
+
success: boolean;
|
|
5258
|
+
};
|
|
5259
|
+
};
|
|
5260
|
+
export type IntegrationsConnectGitHubIntegrationResponse = IntegrationsConnectGitHubIntegrationResponses[keyof IntegrationsConnectGitHubIntegrationResponses];
|
|
4946
5261
|
export type OrganizationsListOrganizationInvitationsData = {
|
|
4947
5262
|
body?: never;
|
|
4948
5263
|
path: {
|
|
@@ -12691,7 +13006,20 @@ export type ProjectOverviewGetProjectOverviewResponses = {
|
|
|
12691
13006
|
200: {
|
|
12692
13007
|
code: number;
|
|
12693
13008
|
data: {
|
|
13009
|
+
apiPriceEquivalentUsd: number | null;
|
|
13010
|
+
billedCostUsd: number | null;
|
|
13011
|
+
byBillingMode: Array<{
|
|
13012
|
+
apiPriceEquivalentUsd: number | null;
|
|
13013
|
+
billedCostUsd: number | null;
|
|
13014
|
+
billingMode: 'subscription' | 'api' | 'unknown';
|
|
13015
|
+
estimatedCostUsd: number | null;
|
|
13016
|
+
spanCount: number;
|
|
13017
|
+
totalTokens: number;
|
|
13018
|
+
traceCount: number;
|
|
13019
|
+
}>;
|
|
12694
13020
|
cost: {
|
|
13021
|
+
api_price_equivalent_total?: number | null | null;
|
|
13022
|
+
billed_total?: number | null | null;
|
|
12695
13023
|
by_model?: Array<{
|
|
12696
13024
|
mode?: string | null;
|
|
12697
13025
|
model: string;
|
|
@@ -12791,7 +13119,11 @@ export type ProjectOverviewGetProjectOverviewResponses = {
|
|
|
12791
13119
|
traceId: string;
|
|
12792
13120
|
}>;
|
|
12793
13121
|
timeSeries: Array<{
|
|
13122
|
+
apiPriceEquivalentUsd: number | null;
|
|
13123
|
+
billedCostUsd: number | null;
|
|
12794
13124
|
cost: {
|
|
13125
|
+
api_price_equivalent_total?: number | null | null;
|
|
13126
|
+
billed_total?: number | null | null;
|
|
12795
13127
|
by_model?: Array<{
|
|
12796
13128
|
mode?: string | null;
|
|
12797
13129
|
model: string;
|
|
@@ -12877,9 +13209,14 @@ export type ProjectOverviewGetProjectOverviewResponses = {
|
|
|
12877
13209
|
estimatedCostUsd: number | null;
|
|
12878
13210
|
timestamp: string;
|
|
12879
13211
|
traceCount: number;
|
|
13212
|
+
unclassifiedApiPriceEquivalentUsd: number | null;
|
|
12880
13213
|
}>;
|
|
12881
13214
|
topModels: Array<{
|
|
13215
|
+
apiPriceEquivalentUsd: number | null;
|
|
13216
|
+
billedCostUsd: number | null;
|
|
12882
13217
|
cost: {
|
|
13218
|
+
api_price_equivalent_total?: number | null | null;
|
|
13219
|
+
billed_total?: number | null | null;
|
|
12883
13220
|
by_model?: Array<{
|
|
12884
13221
|
mode?: string | null;
|
|
12885
13222
|
model: string;
|
|
@@ -12975,6 +13312,7 @@ export type ProjectOverviewGetProjectOverviewResponses = {
|
|
|
12975
13312
|
totalTokens: number;
|
|
12976
13313
|
totalTraces: number;
|
|
12977
13314
|
tracesReadable: boolean;
|
|
13315
|
+
unclassifiedApiPriceEquivalentUsd: number | null;
|
|
12978
13316
|
} | null;
|
|
12979
13317
|
error: {
|
|
12980
13318
|
code: string;
|
|
@@ -22929,6 +23267,7 @@ export type TracesListTracesData = {
|
|
|
22929
23267
|
vcsRepositoryUrl?: string | null;
|
|
22930
23268
|
vcsHeadName?: string | null;
|
|
22931
23269
|
vcsHeadRevision?: string | null;
|
|
23270
|
+
billingMode?: 'subscription' | 'api' | 'unknown' | Array<'subscription' | 'api' | 'unknown'> | null;
|
|
22932
23271
|
minTokens?: string | null;
|
|
22933
23272
|
maxTokens?: string | null;
|
|
22934
23273
|
minCost?: string | null;
|
|
@@ -22998,7 +23337,12 @@ export type TracesListTracesResponses = {
|
|
|
22998
23337
|
200: {
|
|
22999
23338
|
code: number;
|
|
23000
23339
|
data: Array<{
|
|
23340
|
+
api_price_equivalent_usd: number | null;
|
|
23341
|
+
billed_cost_usd: number | null;
|
|
23342
|
+
billing_mode: 'subscription' | 'api' | 'unknown' | 'mixed' | null;
|
|
23001
23343
|
cost: {
|
|
23344
|
+
api_price_equivalent_total?: number | null | null;
|
|
23345
|
+
billed_total?: number | null | null;
|
|
23002
23346
|
by_model?: Array<{
|
|
23003
23347
|
mode?: string | null;
|
|
23004
23348
|
model: string;
|
|
@@ -23127,6 +23471,100 @@ export type TracesListTracesResponses = {
|
|
|
23127
23471
|
};
|
|
23128
23472
|
};
|
|
23129
23473
|
export type TracesListTracesResponse = TracesListTracesResponses[keyof TracesListTracesResponses];
|
|
23474
|
+
export type TracesGetTraceExistenceData = {
|
|
23475
|
+
body?: never;
|
|
23476
|
+
path: {
|
|
23477
|
+
projectId: string;
|
|
23478
|
+
};
|
|
23479
|
+
query?: never;
|
|
23480
|
+
url: '/v1/projects/{projectId}/traces/exists';
|
|
23481
|
+
};
|
|
23482
|
+
export type TracesGetTraceExistenceErrors = {
|
|
23483
|
+
/**
|
|
23484
|
+
* BadRequestError
|
|
23485
|
+
*/
|
|
23486
|
+
400: BadRequestError;
|
|
23487
|
+
/**
|
|
23488
|
+
* UnauthorizedError
|
|
23489
|
+
*/
|
|
23490
|
+
401: UnauthorizedError;
|
|
23491
|
+
/**
|
|
23492
|
+
* ForbiddenError
|
|
23493
|
+
*/
|
|
23494
|
+
403: ForbiddenError;
|
|
23495
|
+
/**
|
|
23496
|
+
* NotFoundError
|
|
23497
|
+
*/
|
|
23498
|
+
404: NotFoundError;
|
|
23499
|
+
/**
|
|
23500
|
+
* ConflictError
|
|
23501
|
+
*/
|
|
23502
|
+
409: ConflictError;
|
|
23503
|
+
/**
|
|
23504
|
+
* GoneError
|
|
23505
|
+
*/
|
|
23506
|
+
410: GoneError;
|
|
23507
|
+
/**
|
|
23508
|
+
* ContentTooLargeError
|
|
23509
|
+
*/
|
|
23510
|
+
413: ContentTooLargeError;
|
|
23511
|
+
/**
|
|
23512
|
+
* MisdirectedRequestError
|
|
23513
|
+
*/
|
|
23514
|
+
421: MisdirectedRequestError;
|
|
23515
|
+
/**
|
|
23516
|
+
* UnprocessableEntityError
|
|
23517
|
+
*/
|
|
23518
|
+
422: UnprocessableEntityError;
|
|
23519
|
+
/**
|
|
23520
|
+
* TooManyRequestsError
|
|
23521
|
+
*/
|
|
23522
|
+
429: TooManyRequestsError;
|
|
23523
|
+
/**
|
|
23524
|
+
* InternalServerError
|
|
23525
|
+
*/
|
|
23526
|
+
500: InternalServerError;
|
|
23527
|
+
/**
|
|
23528
|
+
* ServiceUnavailableError
|
|
23529
|
+
*/
|
|
23530
|
+
503: ServiceUnavailableError;
|
|
23531
|
+
};
|
|
23532
|
+
export type TracesGetTraceExistenceError = TracesGetTraceExistenceErrors[keyof TracesGetTraceExistenceErrors];
|
|
23533
|
+
export type TracesGetTraceExistenceResponses = {
|
|
23534
|
+
/**
|
|
23535
|
+
* Success
|
|
23536
|
+
*/
|
|
23537
|
+
200: {
|
|
23538
|
+
code: number;
|
|
23539
|
+
data: {
|
|
23540
|
+
exists: boolean;
|
|
23541
|
+
} | null;
|
|
23542
|
+
error: {
|
|
23543
|
+
code: string;
|
|
23544
|
+
details?: unknown | null;
|
|
23545
|
+
message: string;
|
|
23546
|
+
rowErrors?: Array<{
|
|
23547
|
+
code: string;
|
|
23548
|
+
message: string;
|
|
23549
|
+
path: Array<string | number>;
|
|
23550
|
+
}> | null;
|
|
23551
|
+
} | null;
|
|
23552
|
+
pagination: {
|
|
23553
|
+
limit: number;
|
|
23554
|
+
page: number;
|
|
23555
|
+
total: number;
|
|
23556
|
+
totalPages: number;
|
|
23557
|
+
} | null;
|
|
23558
|
+
sdkBehavior?: {
|
|
23559
|
+
flags: {
|
|
23560
|
+
[key: string]: unknown;
|
|
23561
|
+
};
|
|
23562
|
+
v: number;
|
|
23563
|
+
} | null;
|
|
23564
|
+
success: boolean;
|
|
23565
|
+
};
|
|
23566
|
+
};
|
|
23567
|
+
export type TracesGetTraceExistenceResponse = TracesGetTraceExistenceResponses[keyof TracesGetTraceExistenceResponses];
|
|
23130
23568
|
export type TracesListTracePromptFacetsData = {
|
|
23131
23569
|
body?: never;
|
|
23132
23570
|
path: {
|
|
@@ -23145,6 +23583,7 @@ export type TracesListTracePromptFacetsData = {
|
|
|
23145
23583
|
vcsRepositoryUrl?: string | null;
|
|
23146
23584
|
vcsHeadName?: string | null;
|
|
23147
23585
|
vcsHeadRevision?: string | null;
|
|
23586
|
+
billingMode?: 'subscription' | 'api' | 'unknown' | Array<'subscription' | 'api' | 'unknown'> | null;
|
|
23148
23587
|
minTokens?: string | null;
|
|
23149
23588
|
maxTokens?: string | null;
|
|
23150
23589
|
minCost?: string | null;
|
|
@@ -23311,7 +23750,12 @@ export type TracesGetTraceDetailResponses = {
|
|
|
23311
23750
|
200: {
|
|
23312
23751
|
code: number;
|
|
23313
23752
|
data: {
|
|
23753
|
+
api_price_equivalent_usd: number | null;
|
|
23754
|
+
billed_cost_usd: number | null;
|
|
23755
|
+
billing_mode: 'subscription' | 'api' | 'unknown' | 'mixed' | null;
|
|
23314
23756
|
cost: {
|
|
23757
|
+
api_price_equivalent_total?: number | null | null;
|
|
23758
|
+
billed_total?: number | null | null;
|
|
23315
23759
|
by_model?: Array<{
|
|
23316
23760
|
mode?: string | null;
|
|
23317
23761
|
model: string;
|
|
@@ -23395,9 +23839,12 @@ export type TracesGetTraceDetailResponses = {
|
|
|
23395
23839
|
};
|
|
23396
23840
|
duration_ms: number;
|
|
23397
23841
|
spans: Array<{
|
|
23842
|
+
api_price_equivalent_usd: number | null;
|
|
23398
23843
|
attributes: {
|
|
23399
23844
|
[key: string]: string | number | boolean | null;
|
|
23400
23845
|
};
|
|
23846
|
+
billed_cost_usd: number | null;
|
|
23847
|
+
billing_mode: 'subscription' | 'api' | 'unknown' | null;
|
|
23401
23848
|
consumedBy?: Array<{
|
|
23402
23849
|
kind: string;
|
|
23403
23850
|
name: string;
|
|
@@ -23405,6 +23852,8 @@ export type TracesGetTraceDetailResponses = {
|
|
|
23405
23852
|
traceId: string;
|
|
23406
23853
|
}> | null;
|
|
23407
23854
|
cost: {
|
|
23855
|
+
api_price_equivalent_total?: number | null | null;
|
|
23856
|
+
billed_total?: number | null | null;
|
|
23408
23857
|
currency: 'USD';
|
|
23409
23858
|
tokens: {
|
|
23410
23859
|
cache_creation?: {
|
|
@@ -23902,6 +24351,101 @@ export type ClerkWebhooksReceiveClerkWebhookResponses = {
|
|
|
23902
24351
|
};
|
|
23903
24352
|
};
|
|
23904
24353
|
export type ClerkWebhooksReceiveClerkWebhookResponse = ClerkWebhooksReceiveClerkWebhookResponses[keyof ClerkWebhooksReceiveClerkWebhookResponses];
|
|
24354
|
+
export type IntegrationsReceiveIntegrationWebhookData = {
|
|
24355
|
+
body?: never;
|
|
24356
|
+
path: {
|
|
24357
|
+
provider: string;
|
|
24358
|
+
endpointRef: string;
|
|
24359
|
+
};
|
|
24360
|
+
query?: never;
|
|
24361
|
+
url: '/v1/webhooks/{provider}/{endpointRef}';
|
|
24362
|
+
};
|
|
24363
|
+
export type IntegrationsReceiveIntegrationWebhookErrors = {
|
|
24364
|
+
/**
|
|
24365
|
+
* BadRequestError
|
|
24366
|
+
*/
|
|
24367
|
+
400: BadRequestError;
|
|
24368
|
+
/**
|
|
24369
|
+
* UnauthorizedError
|
|
24370
|
+
*/
|
|
24371
|
+
401: UnauthorizedError;
|
|
24372
|
+
/**
|
|
24373
|
+
* ForbiddenError
|
|
24374
|
+
*/
|
|
24375
|
+
403: ForbiddenError;
|
|
24376
|
+
/**
|
|
24377
|
+
* NotFoundError
|
|
24378
|
+
*/
|
|
24379
|
+
404: NotFoundError;
|
|
24380
|
+
/**
|
|
24381
|
+
* ConflictError
|
|
24382
|
+
*/
|
|
24383
|
+
409: ConflictError;
|
|
24384
|
+
/**
|
|
24385
|
+
* GoneError
|
|
24386
|
+
*/
|
|
24387
|
+
410: GoneError;
|
|
24388
|
+
/**
|
|
24389
|
+
* ContentTooLargeError
|
|
24390
|
+
*/
|
|
24391
|
+
413: ContentTooLargeError;
|
|
24392
|
+
/**
|
|
24393
|
+
* MisdirectedRequestError
|
|
24394
|
+
*/
|
|
24395
|
+
421: MisdirectedRequestError;
|
|
24396
|
+
/**
|
|
24397
|
+
* UnprocessableEntityError
|
|
24398
|
+
*/
|
|
24399
|
+
422: UnprocessableEntityError;
|
|
24400
|
+
/**
|
|
24401
|
+
* TooManyRequestsError
|
|
24402
|
+
*/
|
|
24403
|
+
429: TooManyRequestsError;
|
|
24404
|
+
/**
|
|
24405
|
+
* InternalServerError
|
|
24406
|
+
*/
|
|
24407
|
+
500: InternalServerError;
|
|
24408
|
+
/**
|
|
24409
|
+
* ServiceUnavailableError
|
|
24410
|
+
*/
|
|
24411
|
+
503: ServiceUnavailableError;
|
|
24412
|
+
};
|
|
24413
|
+
export type IntegrationsReceiveIntegrationWebhookError = IntegrationsReceiveIntegrationWebhookErrors[keyof IntegrationsReceiveIntegrationWebhookErrors];
|
|
24414
|
+
export type IntegrationsReceiveIntegrationWebhookResponses = {
|
|
24415
|
+
/**
|
|
24416
|
+
* Success
|
|
24417
|
+
*/
|
|
24418
|
+
202: {
|
|
24419
|
+
code: number;
|
|
24420
|
+
data: {
|
|
24421
|
+
received: boolean;
|
|
24422
|
+
} | null;
|
|
24423
|
+
error: {
|
|
24424
|
+
code: string;
|
|
24425
|
+
details?: unknown | null;
|
|
24426
|
+
message: string;
|
|
24427
|
+
rowErrors?: Array<{
|
|
24428
|
+
code: string;
|
|
24429
|
+
message: string;
|
|
24430
|
+
path: Array<string | number>;
|
|
24431
|
+
}> | null;
|
|
24432
|
+
} | null;
|
|
24433
|
+
pagination: {
|
|
24434
|
+
limit: number;
|
|
24435
|
+
page: number;
|
|
24436
|
+
total: number;
|
|
24437
|
+
totalPages: number;
|
|
24438
|
+
} | null;
|
|
24439
|
+
sdkBehavior?: {
|
|
24440
|
+
flags: {
|
|
24441
|
+
[key: string]: unknown;
|
|
24442
|
+
};
|
|
24443
|
+
v: number;
|
|
24444
|
+
} | null;
|
|
24445
|
+
success: boolean;
|
|
24446
|
+
};
|
|
24447
|
+
};
|
|
24448
|
+
export type IntegrationsReceiveIntegrationWebhookResponse = IntegrationsReceiveIntegrationWebhookResponses[keyof IntegrationsReceiveIntegrationWebhookResponses];
|
|
23905
24449
|
export type ProjectsListProjectsData = {
|
|
23906
24450
|
body?: never;
|
|
23907
24451
|
path: {
|