@to11ai/sdk 3.0.0-rc.22 → 3.0.0-rc.24
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 +798 -0
- package/dist/generated/zod.gen.d.ts +605 -0
- package/package.json +1 -1
- package/src/generated/index.ts +1 -1
- package/src/generated/types.gen.ts +822 -0
- package/src/generated/zod.gen.ts +609 -0
|
@@ -17365,6 +17365,115 @@ export type PromptMetricsGetPromptRequestMetricsResponses = {
|
|
|
17365
17365
|
|
|
17366
17366
|
export type PromptMetricsGetPromptRequestMetricsResponse = PromptMetricsGetPromptRequestMetricsResponses[keyof PromptMetricsGetPromptRequestMetricsResponses];
|
|
17367
17367
|
|
|
17368
|
+
export type PromptMetricsGetPromptSkillUsageData = {
|
|
17369
|
+
body?: never;
|
|
17370
|
+
path: {
|
|
17371
|
+
projectId: string;
|
|
17372
|
+
promptId: string;
|
|
17373
|
+
};
|
|
17374
|
+
query?: {
|
|
17375
|
+
timePreset?: '10m' | '30m' | '1h' | '2h' | '3h' | '8h' | '24h' | '7d' | '14d' | '28d' | '60d' | null;
|
|
17376
|
+
startTimeFrom?: string | null;
|
|
17377
|
+
startTimeTo?: string | null;
|
|
17378
|
+
};
|
|
17379
|
+
url: '/v1/projects/{projectId}/prompts/{promptId}/skill-usage';
|
|
17380
|
+
};
|
|
17381
|
+
|
|
17382
|
+
export type PromptMetricsGetPromptSkillUsageErrors = {
|
|
17383
|
+
/**
|
|
17384
|
+
* BadRequestError
|
|
17385
|
+
*/
|
|
17386
|
+
400: BadRequestError;
|
|
17387
|
+
/**
|
|
17388
|
+
* UnauthorizedError
|
|
17389
|
+
*/
|
|
17390
|
+
401: UnauthorizedError;
|
|
17391
|
+
/**
|
|
17392
|
+
* ForbiddenError
|
|
17393
|
+
*/
|
|
17394
|
+
403: ForbiddenError;
|
|
17395
|
+
/**
|
|
17396
|
+
* NotFoundError
|
|
17397
|
+
*/
|
|
17398
|
+
404: NotFoundError;
|
|
17399
|
+
/**
|
|
17400
|
+
* ConflictError
|
|
17401
|
+
*/
|
|
17402
|
+
409: ConflictError;
|
|
17403
|
+
/**
|
|
17404
|
+
* GoneError
|
|
17405
|
+
*/
|
|
17406
|
+
410: GoneError;
|
|
17407
|
+
/**
|
|
17408
|
+
* ContentTooLargeError
|
|
17409
|
+
*/
|
|
17410
|
+
413: ContentTooLargeError;
|
|
17411
|
+
/**
|
|
17412
|
+
* MisdirectedRequestError
|
|
17413
|
+
*/
|
|
17414
|
+
421: MisdirectedRequestError;
|
|
17415
|
+
/**
|
|
17416
|
+
* UnprocessableEntityError
|
|
17417
|
+
*/
|
|
17418
|
+
422: UnprocessableEntityError;
|
|
17419
|
+
/**
|
|
17420
|
+
* TooManyRequestsError
|
|
17421
|
+
*/
|
|
17422
|
+
429: TooManyRequestsError;
|
|
17423
|
+
/**
|
|
17424
|
+
* InternalServerError
|
|
17425
|
+
*/
|
|
17426
|
+
500: InternalServerError;
|
|
17427
|
+
/**
|
|
17428
|
+
* ServiceUnavailableError
|
|
17429
|
+
*/
|
|
17430
|
+
503: ServiceUnavailableError;
|
|
17431
|
+
};
|
|
17432
|
+
|
|
17433
|
+
export type PromptMetricsGetPromptSkillUsageError = PromptMetricsGetPromptSkillUsageErrors[keyof PromptMetricsGetPromptSkillUsageErrors];
|
|
17434
|
+
|
|
17435
|
+
export type PromptMetricsGetPromptSkillUsageResponses = {
|
|
17436
|
+
/**
|
|
17437
|
+
* Success
|
|
17438
|
+
*/
|
|
17439
|
+
200: {
|
|
17440
|
+
code: number;
|
|
17441
|
+
data: {
|
|
17442
|
+
versions: Array<{
|
|
17443
|
+
loads: number;
|
|
17444
|
+
sessions: number;
|
|
17445
|
+
traces: number;
|
|
17446
|
+
version: number;
|
|
17447
|
+
}>;
|
|
17448
|
+
} | null;
|
|
17449
|
+
error: {
|
|
17450
|
+
code: string;
|
|
17451
|
+
details?: unknown | null;
|
|
17452
|
+
message: string;
|
|
17453
|
+
rowErrors?: Array<{
|
|
17454
|
+
code: string;
|
|
17455
|
+
message: string;
|
|
17456
|
+
path: Array<string | number>;
|
|
17457
|
+
}> | null;
|
|
17458
|
+
} | null;
|
|
17459
|
+
pagination: {
|
|
17460
|
+
limit: number;
|
|
17461
|
+
page: number;
|
|
17462
|
+
total: number;
|
|
17463
|
+
totalPages: number;
|
|
17464
|
+
} | null;
|
|
17465
|
+
sdkBehavior?: {
|
|
17466
|
+
flags: {
|
|
17467
|
+
[key: string]: unknown;
|
|
17468
|
+
};
|
|
17469
|
+
v: number;
|
|
17470
|
+
} | null;
|
|
17471
|
+
success: boolean;
|
|
17472
|
+
};
|
|
17473
|
+
};
|
|
17474
|
+
|
|
17475
|
+
export type PromptMetricsGetPromptSkillUsageResponse = PromptMetricsGetPromptSkillUsageResponses[keyof PromptMetricsGetPromptSkillUsageResponses];
|
|
17476
|
+
|
|
17368
17477
|
export type PromptsListPromptVersionsData = {
|
|
17369
17478
|
body?: never;
|
|
17370
17479
|
path: {
|
|
@@ -26896,6 +27005,21 @@ export type SessionsGetSessionResponses = {
|
|
|
26896
27005
|
vcsHeadName: string | null;
|
|
26897
27006
|
vcsRepositoryUrl: string | null;
|
|
26898
27007
|
};
|
|
27008
|
+
skills: {
|
|
27009
|
+
loaded: Array<{
|
|
27010
|
+
firstLoadedAt: string;
|
|
27011
|
+
firstSpanId: string;
|
|
27012
|
+
firstTraceId: string;
|
|
27013
|
+
loads: number;
|
|
27014
|
+
promptId: string;
|
|
27015
|
+
slug: string;
|
|
27016
|
+
version: number;
|
|
27017
|
+
}>;
|
|
27018
|
+
unmanaged: Array<{
|
|
27019
|
+
invocations: number;
|
|
27020
|
+
name: string;
|
|
27021
|
+
}>;
|
|
27022
|
+
};
|
|
26899
27023
|
timeline: Array<{
|
|
26900
27024
|
durationMs: number;
|
|
26901
27025
|
firstUserMessage: string | null;
|
|
@@ -26940,6 +27064,702 @@ export type SessionsGetSessionResponses = {
|
|
|
26940
27064
|
|
|
26941
27065
|
export type SessionsGetSessionResponse = SessionsGetSessionResponses[keyof SessionsGetSessionResponses];
|
|
26942
27066
|
|
|
27067
|
+
export type SessionsExportSessionData = {
|
|
27068
|
+
body?: never;
|
|
27069
|
+
path: {
|
|
27070
|
+
projectId: string;
|
|
27071
|
+
sessionId: string;
|
|
27072
|
+
};
|
|
27073
|
+
query?: never;
|
|
27074
|
+
url: '/v1/projects/{projectId}/sessions/{sessionId}/export';
|
|
27075
|
+
};
|
|
27076
|
+
|
|
27077
|
+
export type SessionsExportSessionErrors = {
|
|
27078
|
+
/**
|
|
27079
|
+
* BadRequestError
|
|
27080
|
+
*/
|
|
27081
|
+
400: BadRequestError;
|
|
27082
|
+
/**
|
|
27083
|
+
* UnauthorizedError
|
|
27084
|
+
*/
|
|
27085
|
+
401: UnauthorizedError;
|
|
27086
|
+
/**
|
|
27087
|
+
* ForbiddenError
|
|
27088
|
+
*/
|
|
27089
|
+
403: ForbiddenError;
|
|
27090
|
+
/**
|
|
27091
|
+
* NotFoundError
|
|
27092
|
+
*/
|
|
27093
|
+
404: NotFoundError;
|
|
27094
|
+
/**
|
|
27095
|
+
* ConflictError
|
|
27096
|
+
*/
|
|
27097
|
+
409: ConflictError;
|
|
27098
|
+
/**
|
|
27099
|
+
* GoneError
|
|
27100
|
+
*/
|
|
27101
|
+
410: GoneError;
|
|
27102
|
+
/**
|
|
27103
|
+
* ContentTooLargeError
|
|
27104
|
+
*/
|
|
27105
|
+
413: ContentTooLargeError;
|
|
27106
|
+
/**
|
|
27107
|
+
* MisdirectedRequestError
|
|
27108
|
+
*/
|
|
27109
|
+
421: MisdirectedRequestError;
|
|
27110
|
+
/**
|
|
27111
|
+
* UnprocessableEntityError
|
|
27112
|
+
*/
|
|
27113
|
+
422: UnprocessableEntityError;
|
|
27114
|
+
/**
|
|
27115
|
+
* TooManyRequestsError
|
|
27116
|
+
*/
|
|
27117
|
+
429: TooManyRequestsError;
|
|
27118
|
+
/**
|
|
27119
|
+
* InternalServerError
|
|
27120
|
+
*/
|
|
27121
|
+
500: InternalServerError;
|
|
27122
|
+
/**
|
|
27123
|
+
* ServiceUnavailableError
|
|
27124
|
+
*/
|
|
27125
|
+
503: ServiceUnavailableError;
|
|
27126
|
+
};
|
|
27127
|
+
|
|
27128
|
+
export type SessionsExportSessionError = SessionsExportSessionErrors[keyof SessionsExportSessionErrors];
|
|
27129
|
+
|
|
27130
|
+
export type SessionsExportSessionResponses = {
|
|
27131
|
+
/**
|
|
27132
|
+
* Success
|
|
27133
|
+
*/
|
|
27134
|
+
200: {
|
|
27135
|
+
session: {
|
|
27136
|
+
apiPriceEquivalentUsd: number | null;
|
|
27137
|
+
billedCostUsd: number | null;
|
|
27138
|
+
billingMode: 'subscription' | 'api' | 'unknown' | 'mixed' | null;
|
|
27139
|
+
cost: {
|
|
27140
|
+
api_price_equivalent_total?: number | null;
|
|
27141
|
+
billed_total?: number | null;
|
|
27142
|
+
by_model?: Array<{
|
|
27143
|
+
mode?: string | null;
|
|
27144
|
+
model: string;
|
|
27145
|
+
provider: string;
|
|
27146
|
+
region?: string | null;
|
|
27147
|
+
span_count: number;
|
|
27148
|
+
tier?: string | null;
|
|
27149
|
+
tokens: {
|
|
27150
|
+
cache_creation?: {
|
|
27151
|
+
cost: number | null;
|
|
27152
|
+
count: number;
|
|
27153
|
+
} | null;
|
|
27154
|
+
cache_creation_12h?: {
|
|
27155
|
+
cost: number | null;
|
|
27156
|
+
count: number;
|
|
27157
|
+
} | null;
|
|
27158
|
+
cache_creation_1h?: {
|
|
27159
|
+
cost: number | null;
|
|
27160
|
+
count: number;
|
|
27161
|
+
} | null;
|
|
27162
|
+
cache_creation_5m?: {
|
|
27163
|
+
cost: number | null;
|
|
27164
|
+
count: number;
|
|
27165
|
+
} | null;
|
|
27166
|
+
cache_read?: {
|
|
27167
|
+
cost: number | null;
|
|
27168
|
+
count: number;
|
|
27169
|
+
} | null;
|
|
27170
|
+
input: {
|
|
27171
|
+
cost: number | null;
|
|
27172
|
+
count: number;
|
|
27173
|
+
};
|
|
27174
|
+
missing_rates?: Array<'input' | 'output' | 'cache_read' | 'cache_creation' | 'cache_creation_5m' | 'cache_creation_1h' | 'cache_creation_12h' | 'reasoning'> | null;
|
|
27175
|
+
output: {
|
|
27176
|
+
cost: number | null;
|
|
27177
|
+
count: number;
|
|
27178
|
+
};
|
|
27179
|
+
reasoning?: {
|
|
27180
|
+
cost: number | null;
|
|
27181
|
+
count: number;
|
|
27182
|
+
} | null;
|
|
27183
|
+
total: {
|
|
27184
|
+
cost: number | null;
|
|
27185
|
+
count: number;
|
|
27186
|
+
};
|
|
27187
|
+
};
|
|
27188
|
+
total: number | null;
|
|
27189
|
+
}> | null;
|
|
27190
|
+
currency: 'USD';
|
|
27191
|
+
tokens: {
|
|
27192
|
+
cache_creation?: {
|
|
27193
|
+
cost: number | null;
|
|
27194
|
+
count: number;
|
|
27195
|
+
} | null;
|
|
27196
|
+
cache_creation_12h?: {
|
|
27197
|
+
cost: number | null;
|
|
27198
|
+
count: number;
|
|
27199
|
+
} | null;
|
|
27200
|
+
cache_creation_1h?: {
|
|
27201
|
+
cost: number | null;
|
|
27202
|
+
count: number;
|
|
27203
|
+
} | null;
|
|
27204
|
+
cache_creation_5m?: {
|
|
27205
|
+
cost: number | null;
|
|
27206
|
+
count: number;
|
|
27207
|
+
} | null;
|
|
27208
|
+
cache_read?: {
|
|
27209
|
+
cost: number | null;
|
|
27210
|
+
count: number;
|
|
27211
|
+
} | null;
|
|
27212
|
+
input: {
|
|
27213
|
+
cost: number | null;
|
|
27214
|
+
count: number;
|
|
27215
|
+
};
|
|
27216
|
+
output: {
|
|
27217
|
+
cost: number | null;
|
|
27218
|
+
count: number;
|
|
27219
|
+
};
|
|
27220
|
+
reasoning?: {
|
|
27221
|
+
cost: number | null;
|
|
27222
|
+
count: number;
|
|
27223
|
+
} | null;
|
|
27224
|
+
total: {
|
|
27225
|
+
cost: number | null;
|
|
27226
|
+
count: number;
|
|
27227
|
+
};
|
|
27228
|
+
};
|
|
27229
|
+
total: number | null;
|
|
27230
|
+
};
|
|
27231
|
+
costUsd: number | null;
|
|
27232
|
+
durationMs: number;
|
|
27233
|
+
errorCount: number;
|
|
27234
|
+
errorTypes: Array<string>;
|
|
27235
|
+
firstSeen: string;
|
|
27236
|
+
lastSeen: string;
|
|
27237
|
+
models: Array<string>;
|
|
27238
|
+
owner: {
|
|
27239
|
+
displayName: string | null;
|
|
27240
|
+
id: string;
|
|
27241
|
+
} | null;
|
|
27242
|
+
providerSlug: string | null;
|
|
27243
|
+
pullRequests: Array<{
|
|
27244
|
+
number: number;
|
|
27245
|
+
state: 'open' | 'draft' | 'merged' | 'closed';
|
|
27246
|
+
url: string;
|
|
27247
|
+
/**
|
|
27248
|
+
* The session's usage on this pull request: its spans on the pull request's branch inside the pull request's window, as of the pull request's last link rebuild, not limited to the requested window. Spans aging out of the 60-day retention never lower it. Zero when none of its spans is on the pull request. `null` until the pull request's links are next rebuilt.
|
|
27249
|
+
*/
|
|
27250
|
+
usage?: {
|
|
27251
|
+
apiEquivalentUsd: number | null;
|
|
27252
|
+
requests: number;
|
|
27253
|
+
tokens: number;
|
|
27254
|
+
} | null;
|
|
27255
|
+
}>;
|
|
27256
|
+
requestCount: number;
|
|
27257
|
+
sessionId: string;
|
|
27258
|
+
startedAt: string;
|
|
27259
|
+
title: string | null;
|
|
27260
|
+
tokens: {
|
|
27261
|
+
cacheCreation: number;
|
|
27262
|
+
cacheRead: number;
|
|
27263
|
+
input: number;
|
|
27264
|
+
output: number;
|
|
27265
|
+
reasoning: number;
|
|
27266
|
+
};
|
|
27267
|
+
toolCalls: number;
|
|
27268
|
+
traceCount: number;
|
|
27269
|
+
vcsHeadName: string | null;
|
|
27270
|
+
vcsRepositoryUrl: string | null;
|
|
27271
|
+
};
|
|
27272
|
+
spans: Array<{
|
|
27273
|
+
api_price_equivalent_usd: number | null;
|
|
27274
|
+
attributes: {
|
|
27275
|
+
[key: string]: string | number | boolean | null;
|
|
27276
|
+
};
|
|
27277
|
+
billed_cost_usd: number | null;
|
|
27278
|
+
billing_mode: 'subscription' | 'api' | 'unknown' | null;
|
|
27279
|
+
consumedBy?: Array<{
|
|
27280
|
+
kind: string;
|
|
27281
|
+
name: string;
|
|
27282
|
+
spanId: string;
|
|
27283
|
+
traceId: string;
|
|
27284
|
+
}> | null;
|
|
27285
|
+
cost: {
|
|
27286
|
+
api_price_equivalent_total?: number | null;
|
|
27287
|
+
billed_total?: number | null;
|
|
27288
|
+
currency: 'USD';
|
|
27289
|
+
tokens: {
|
|
27290
|
+
cache_creation?: {
|
|
27291
|
+
cost: number | null;
|
|
27292
|
+
count: number;
|
|
27293
|
+
} | null;
|
|
27294
|
+
cache_creation_12h?: {
|
|
27295
|
+
cost: number | null;
|
|
27296
|
+
count: number;
|
|
27297
|
+
} | null;
|
|
27298
|
+
cache_creation_1h?: {
|
|
27299
|
+
cost: number | null;
|
|
27300
|
+
count: number;
|
|
27301
|
+
} | null;
|
|
27302
|
+
cache_creation_5m?: {
|
|
27303
|
+
cost: number | null;
|
|
27304
|
+
count: number;
|
|
27305
|
+
} | null;
|
|
27306
|
+
cache_read?: {
|
|
27307
|
+
cost: number | null;
|
|
27308
|
+
count: number;
|
|
27309
|
+
} | null;
|
|
27310
|
+
input: {
|
|
27311
|
+
cost: number | null;
|
|
27312
|
+
count: number;
|
|
27313
|
+
};
|
|
27314
|
+
missing_rates?: Array<'input' | 'output' | 'cache_read' | 'cache_creation' | 'cache_creation_5m' | 'cache_creation_1h' | 'cache_creation_12h' | 'reasoning'> | null;
|
|
27315
|
+
output: {
|
|
27316
|
+
cost: number | null;
|
|
27317
|
+
count: number;
|
|
27318
|
+
};
|
|
27319
|
+
reasoning?: {
|
|
27320
|
+
cost: number | null;
|
|
27321
|
+
count: number;
|
|
27322
|
+
} | null;
|
|
27323
|
+
total: {
|
|
27324
|
+
cost: number | null;
|
|
27325
|
+
count: number;
|
|
27326
|
+
};
|
|
27327
|
+
};
|
|
27328
|
+
total: number | null;
|
|
27329
|
+
} | null;
|
|
27330
|
+
duration_ms: number;
|
|
27331
|
+
events: Array<{
|
|
27332
|
+
attributes: {
|
|
27333
|
+
[key: string]: string | number | boolean | null;
|
|
27334
|
+
};
|
|
27335
|
+
name: string;
|
|
27336
|
+
timestampOffsetMs: number;
|
|
27337
|
+
}>;
|
|
27338
|
+
kind: 'SERVER' | 'CLIENT' | 'INTERNAL';
|
|
27339
|
+
links?: Array<{
|
|
27340
|
+
attributes: {
|
|
27341
|
+
[key: string]: string;
|
|
27342
|
+
};
|
|
27343
|
+
kind: string;
|
|
27344
|
+
name: string;
|
|
27345
|
+
spanId: string;
|
|
27346
|
+
traceId: string;
|
|
27347
|
+
}> | null;
|
|
27348
|
+
name: string;
|
|
27349
|
+
parent_span_id: string | null;
|
|
27350
|
+
span_id: string;
|
|
27351
|
+
startOffsetMs: number;
|
|
27352
|
+
start_time: string;
|
|
27353
|
+
status: 'ok' | 'error' | 'timeout';
|
|
27354
|
+
trace_id: string;
|
|
27355
|
+
type: 'generation' | 'span';
|
|
27356
|
+
}>;
|
|
27357
|
+
truncated: boolean;
|
|
27358
|
+
};
|
|
27359
|
+
};
|
|
27360
|
+
|
|
27361
|
+
export type SessionsExportSessionResponse = SessionsExportSessionResponses[keyof SessionsExportSessionResponses];
|
|
27362
|
+
|
|
27363
|
+
export type SessionsGetSessionTurnData = {
|
|
27364
|
+
body?: never;
|
|
27365
|
+
path: {
|
|
27366
|
+
projectId: string;
|
|
27367
|
+
sessionId: string;
|
|
27368
|
+
traceId: string;
|
|
27369
|
+
};
|
|
27370
|
+
query?: {
|
|
27371
|
+
view?: 'last' | 'first' | 'io' | 'all' | null;
|
|
27372
|
+
};
|
|
27373
|
+
url: '/v1/projects/{projectId}/sessions/{sessionId}/turns/{traceId}';
|
|
27374
|
+
};
|
|
27375
|
+
|
|
27376
|
+
export type SessionsGetSessionTurnErrors = {
|
|
27377
|
+
/**
|
|
27378
|
+
* BadRequestError
|
|
27379
|
+
*/
|
|
27380
|
+
400: BadRequestError;
|
|
27381
|
+
/**
|
|
27382
|
+
* UnauthorizedError
|
|
27383
|
+
*/
|
|
27384
|
+
401: UnauthorizedError;
|
|
27385
|
+
/**
|
|
27386
|
+
* ForbiddenError
|
|
27387
|
+
*/
|
|
27388
|
+
403: ForbiddenError;
|
|
27389
|
+
/**
|
|
27390
|
+
* NotFoundError
|
|
27391
|
+
*/
|
|
27392
|
+
404: NotFoundError;
|
|
27393
|
+
/**
|
|
27394
|
+
* ConflictError
|
|
27395
|
+
*/
|
|
27396
|
+
409: ConflictError;
|
|
27397
|
+
/**
|
|
27398
|
+
* GoneError
|
|
27399
|
+
*/
|
|
27400
|
+
410: GoneError;
|
|
27401
|
+
/**
|
|
27402
|
+
* ContentTooLargeError
|
|
27403
|
+
*/
|
|
27404
|
+
413: ContentTooLargeError;
|
|
27405
|
+
/**
|
|
27406
|
+
* MisdirectedRequestError
|
|
27407
|
+
*/
|
|
27408
|
+
421: MisdirectedRequestError;
|
|
27409
|
+
/**
|
|
27410
|
+
* UnprocessableEntityError
|
|
27411
|
+
*/
|
|
27412
|
+
422: UnprocessableEntityError;
|
|
27413
|
+
/**
|
|
27414
|
+
* TooManyRequestsError
|
|
27415
|
+
*/
|
|
27416
|
+
429: TooManyRequestsError;
|
|
27417
|
+
/**
|
|
27418
|
+
* InternalServerError
|
|
27419
|
+
*/
|
|
27420
|
+
500: InternalServerError;
|
|
27421
|
+
/**
|
|
27422
|
+
* ServiceUnavailableError
|
|
27423
|
+
*/
|
|
27424
|
+
503: ServiceUnavailableError;
|
|
27425
|
+
};
|
|
27426
|
+
|
|
27427
|
+
export type SessionsGetSessionTurnError = SessionsGetSessionTurnErrors[keyof SessionsGetSessionTurnErrors];
|
|
27428
|
+
|
|
27429
|
+
export type SessionsGetSessionTurnResponses = {
|
|
27430
|
+
/**
|
|
27431
|
+
* Success
|
|
27432
|
+
*/
|
|
27433
|
+
200: {
|
|
27434
|
+
code: number;
|
|
27435
|
+
data: {
|
|
27436
|
+
budgetExceeded: boolean;
|
|
27437
|
+
duration_ms: number;
|
|
27438
|
+
payloads: {
|
|
27439
|
+
[key: string]: {
|
|
27440
|
+
input: {
|
|
27441
|
+
chars: number;
|
|
27442
|
+
kind: 'preview';
|
|
27443
|
+
previewChars: number;
|
|
27444
|
+
truncatedStrings: number;
|
|
27445
|
+
} | {
|
|
27446
|
+
bytes: number;
|
|
27447
|
+
kind: 'omitted';
|
|
27448
|
+
reason: 'too_large' | 'budget';
|
|
27449
|
+
} | null;
|
|
27450
|
+
output: {
|
|
27451
|
+
chars: number;
|
|
27452
|
+
kind: 'preview';
|
|
27453
|
+
previewChars: number;
|
|
27454
|
+
truncatedStrings: number;
|
|
27455
|
+
} | {
|
|
27456
|
+
bytes: number;
|
|
27457
|
+
kind: 'omitted';
|
|
27458
|
+
reason: 'too_large' | 'budget';
|
|
27459
|
+
} | null;
|
|
27460
|
+
};
|
|
27461
|
+
};
|
|
27462
|
+
spans: Array<{
|
|
27463
|
+
api_price_equivalent_usd: number | null;
|
|
27464
|
+
attributes: {
|
|
27465
|
+
[key: string]: string | number | boolean | null;
|
|
27466
|
+
};
|
|
27467
|
+
billed_cost_usd: number | null;
|
|
27468
|
+
billing_mode: 'subscription' | 'api' | 'unknown' | null;
|
|
27469
|
+
consumedBy?: Array<{
|
|
27470
|
+
kind: string;
|
|
27471
|
+
name: string;
|
|
27472
|
+
spanId: string;
|
|
27473
|
+
traceId: string;
|
|
27474
|
+
}> | null;
|
|
27475
|
+
cost: {
|
|
27476
|
+
api_price_equivalent_total?: number | null;
|
|
27477
|
+
billed_total?: number | null;
|
|
27478
|
+
currency: 'USD';
|
|
27479
|
+
tokens: {
|
|
27480
|
+
cache_creation?: {
|
|
27481
|
+
cost: number | null;
|
|
27482
|
+
count: number;
|
|
27483
|
+
} | null;
|
|
27484
|
+
cache_creation_12h?: {
|
|
27485
|
+
cost: number | null;
|
|
27486
|
+
count: number;
|
|
27487
|
+
} | null;
|
|
27488
|
+
cache_creation_1h?: {
|
|
27489
|
+
cost: number | null;
|
|
27490
|
+
count: number;
|
|
27491
|
+
} | null;
|
|
27492
|
+
cache_creation_5m?: {
|
|
27493
|
+
cost: number | null;
|
|
27494
|
+
count: number;
|
|
27495
|
+
} | null;
|
|
27496
|
+
cache_read?: {
|
|
27497
|
+
cost: number | null;
|
|
27498
|
+
count: number;
|
|
27499
|
+
} | null;
|
|
27500
|
+
input: {
|
|
27501
|
+
cost: number | null;
|
|
27502
|
+
count: number;
|
|
27503
|
+
};
|
|
27504
|
+
missing_rates?: Array<'input' | 'output' | 'cache_read' | 'cache_creation' | 'cache_creation_5m' | 'cache_creation_1h' | 'cache_creation_12h' | 'reasoning'> | null;
|
|
27505
|
+
output: {
|
|
27506
|
+
cost: number | null;
|
|
27507
|
+
count: number;
|
|
27508
|
+
};
|
|
27509
|
+
reasoning?: {
|
|
27510
|
+
cost: number | null;
|
|
27511
|
+
count: number;
|
|
27512
|
+
} | null;
|
|
27513
|
+
total: {
|
|
27514
|
+
cost: number | null;
|
|
27515
|
+
count: number;
|
|
27516
|
+
};
|
|
27517
|
+
};
|
|
27518
|
+
total: number | null;
|
|
27519
|
+
} | null;
|
|
27520
|
+
duration_ms: number;
|
|
27521
|
+
events: Array<{
|
|
27522
|
+
attributes: {
|
|
27523
|
+
[key: string]: string | number | boolean | null;
|
|
27524
|
+
};
|
|
27525
|
+
name: string;
|
|
27526
|
+
timestampOffsetMs: number;
|
|
27527
|
+
}>;
|
|
27528
|
+
kind: 'SERVER' | 'CLIENT' | 'INTERNAL';
|
|
27529
|
+
links?: Array<{
|
|
27530
|
+
attributes: {
|
|
27531
|
+
[key: string]: string;
|
|
27532
|
+
};
|
|
27533
|
+
kind: string;
|
|
27534
|
+
name: string;
|
|
27535
|
+
spanId: string;
|
|
27536
|
+
traceId: string;
|
|
27537
|
+
}> | null;
|
|
27538
|
+
name: string;
|
|
27539
|
+
parent_span_id: string | null;
|
|
27540
|
+
span_id: string;
|
|
27541
|
+
startOffsetMs: number;
|
|
27542
|
+
start_time: string;
|
|
27543
|
+
status: 'ok' | 'error' | 'timeout';
|
|
27544
|
+
trace_id: string;
|
|
27545
|
+
type: 'generation' | 'span';
|
|
27546
|
+
}>;
|
|
27547
|
+
spansTruncated: boolean;
|
|
27548
|
+
start_time: string;
|
|
27549
|
+
status: 'ok' | 'error' | 'timeout';
|
|
27550
|
+
trace_id: string;
|
|
27551
|
+
view: 'last' | 'first' | 'io' | 'all';
|
|
27552
|
+
} | null;
|
|
27553
|
+
error: {
|
|
27554
|
+
code: string;
|
|
27555
|
+
details?: unknown | null;
|
|
27556
|
+
message: string;
|
|
27557
|
+
rowErrors?: Array<{
|
|
27558
|
+
code: string;
|
|
27559
|
+
message: string;
|
|
27560
|
+
path: Array<string | number>;
|
|
27561
|
+
}> | null;
|
|
27562
|
+
} | null;
|
|
27563
|
+
pagination: {
|
|
27564
|
+
limit: number;
|
|
27565
|
+
page: number;
|
|
27566
|
+
total: number;
|
|
27567
|
+
totalPages: number;
|
|
27568
|
+
} | null;
|
|
27569
|
+
sdkBehavior?: {
|
|
27570
|
+
flags: {
|
|
27571
|
+
[key: string]: unknown;
|
|
27572
|
+
};
|
|
27573
|
+
v: number;
|
|
27574
|
+
} | null;
|
|
27575
|
+
success: boolean;
|
|
27576
|
+
};
|
|
27577
|
+
};
|
|
27578
|
+
|
|
27579
|
+
export type SessionsGetSessionTurnResponse = SessionsGetSessionTurnResponses[keyof SessionsGetSessionTurnResponses];
|
|
27580
|
+
|
|
27581
|
+
export type SessionsGetSessionSpanFieldData = {
|
|
27582
|
+
body?: never;
|
|
27583
|
+
path: {
|
|
27584
|
+
projectId: string;
|
|
27585
|
+
sessionId: string;
|
|
27586
|
+
traceId: string;
|
|
27587
|
+
spanId: string;
|
|
27588
|
+
};
|
|
27589
|
+
query: {
|
|
27590
|
+
field: 'input' | 'output';
|
|
27591
|
+
};
|
|
27592
|
+
url: '/v1/projects/{projectId}/sessions/{sessionId}/turns/{traceId}/spans/{spanId}';
|
|
27593
|
+
};
|
|
27594
|
+
|
|
27595
|
+
export type SessionsGetSessionSpanFieldErrors = {
|
|
27596
|
+
/**
|
|
27597
|
+
* BadRequestError
|
|
27598
|
+
*/
|
|
27599
|
+
400: BadRequestError;
|
|
27600
|
+
/**
|
|
27601
|
+
* UnauthorizedError
|
|
27602
|
+
*/
|
|
27603
|
+
401: UnauthorizedError;
|
|
27604
|
+
/**
|
|
27605
|
+
* ForbiddenError
|
|
27606
|
+
*/
|
|
27607
|
+
403: ForbiddenError;
|
|
27608
|
+
/**
|
|
27609
|
+
* NotFoundError
|
|
27610
|
+
*/
|
|
27611
|
+
404: NotFoundError;
|
|
27612
|
+
/**
|
|
27613
|
+
* ConflictError
|
|
27614
|
+
*/
|
|
27615
|
+
409: ConflictError;
|
|
27616
|
+
/**
|
|
27617
|
+
* GoneError
|
|
27618
|
+
*/
|
|
27619
|
+
410: GoneError;
|
|
27620
|
+
/**
|
|
27621
|
+
* ContentTooLargeError
|
|
27622
|
+
*/
|
|
27623
|
+
413: ContentTooLargeError;
|
|
27624
|
+
/**
|
|
27625
|
+
* MisdirectedRequestError
|
|
27626
|
+
*/
|
|
27627
|
+
421: MisdirectedRequestError;
|
|
27628
|
+
/**
|
|
27629
|
+
* UnprocessableEntityError
|
|
27630
|
+
*/
|
|
27631
|
+
422: UnprocessableEntityError;
|
|
27632
|
+
/**
|
|
27633
|
+
* TooManyRequestsError
|
|
27634
|
+
*/
|
|
27635
|
+
429: TooManyRequestsError;
|
|
27636
|
+
/**
|
|
27637
|
+
* InternalServerError
|
|
27638
|
+
*/
|
|
27639
|
+
500: InternalServerError;
|
|
27640
|
+
/**
|
|
27641
|
+
* ServiceUnavailableError
|
|
27642
|
+
*/
|
|
27643
|
+
503: ServiceUnavailableError;
|
|
27644
|
+
};
|
|
27645
|
+
|
|
27646
|
+
export type SessionsGetSessionSpanFieldError = SessionsGetSessionSpanFieldErrors[keyof SessionsGetSessionSpanFieldErrors];
|
|
27647
|
+
|
|
27648
|
+
export type SessionsGetSessionSpanFieldResponses = {
|
|
27649
|
+
/**
|
|
27650
|
+
* Success
|
|
27651
|
+
*/
|
|
27652
|
+
200: {
|
|
27653
|
+
code: number;
|
|
27654
|
+
data: {
|
|
27655
|
+
chars: number;
|
|
27656
|
+
field: 'input' | 'output';
|
|
27657
|
+
omitted: 'too_large' | null;
|
|
27658
|
+
spanId: string;
|
|
27659
|
+
value: unknown | null;
|
|
27660
|
+
} | null;
|
|
27661
|
+
error: {
|
|
27662
|
+
code: string;
|
|
27663
|
+
details?: unknown | null;
|
|
27664
|
+
message: string;
|
|
27665
|
+
rowErrors?: Array<{
|
|
27666
|
+
code: string;
|
|
27667
|
+
message: string;
|
|
27668
|
+
path: Array<string | number>;
|
|
27669
|
+
}> | null;
|
|
27670
|
+
} | null;
|
|
27671
|
+
pagination: {
|
|
27672
|
+
limit: number;
|
|
27673
|
+
page: number;
|
|
27674
|
+
total: number;
|
|
27675
|
+
totalPages: number;
|
|
27676
|
+
} | null;
|
|
27677
|
+
sdkBehavior?: {
|
|
27678
|
+
flags: {
|
|
27679
|
+
[key: string]: unknown;
|
|
27680
|
+
};
|
|
27681
|
+
v: number;
|
|
27682
|
+
} | null;
|
|
27683
|
+
success: boolean;
|
|
27684
|
+
};
|
|
27685
|
+
};
|
|
27686
|
+
|
|
27687
|
+
export type SessionsGetSessionSpanFieldResponse = SessionsGetSessionSpanFieldResponses[keyof SessionsGetSessionSpanFieldResponses];
|
|
27688
|
+
|
|
27689
|
+
export type SessionsDownloadSessionSpanFieldData = {
|
|
27690
|
+
body?: never;
|
|
27691
|
+
path: {
|
|
27692
|
+
projectId: string;
|
|
27693
|
+
sessionId: string;
|
|
27694
|
+
traceId: string;
|
|
27695
|
+
spanId: string;
|
|
27696
|
+
};
|
|
27697
|
+
query: {
|
|
27698
|
+
field: 'input' | 'output';
|
|
27699
|
+
};
|
|
27700
|
+
url: '/v1/projects/{projectId}/sessions/{sessionId}/turns/{traceId}/spans/{spanId}/download';
|
|
27701
|
+
};
|
|
27702
|
+
|
|
27703
|
+
export type SessionsDownloadSessionSpanFieldErrors = {
|
|
27704
|
+
/**
|
|
27705
|
+
* BadRequestError
|
|
27706
|
+
*/
|
|
27707
|
+
400: BadRequestError;
|
|
27708
|
+
/**
|
|
27709
|
+
* UnauthorizedError
|
|
27710
|
+
*/
|
|
27711
|
+
401: UnauthorizedError;
|
|
27712
|
+
/**
|
|
27713
|
+
* ForbiddenError
|
|
27714
|
+
*/
|
|
27715
|
+
403: ForbiddenError;
|
|
27716
|
+
/**
|
|
27717
|
+
* NotFoundError
|
|
27718
|
+
*/
|
|
27719
|
+
404: NotFoundError;
|
|
27720
|
+
/**
|
|
27721
|
+
* ConflictError
|
|
27722
|
+
*/
|
|
27723
|
+
409: ConflictError;
|
|
27724
|
+
/**
|
|
27725
|
+
* GoneError
|
|
27726
|
+
*/
|
|
27727
|
+
410: GoneError;
|
|
27728
|
+
/**
|
|
27729
|
+
* ContentTooLargeError
|
|
27730
|
+
*/
|
|
27731
|
+
413: ContentTooLargeError;
|
|
27732
|
+
/**
|
|
27733
|
+
* MisdirectedRequestError
|
|
27734
|
+
*/
|
|
27735
|
+
421: MisdirectedRequestError;
|
|
27736
|
+
/**
|
|
27737
|
+
* UnprocessableEntityError
|
|
27738
|
+
*/
|
|
27739
|
+
422: UnprocessableEntityError;
|
|
27740
|
+
/**
|
|
27741
|
+
* TooManyRequestsError
|
|
27742
|
+
*/
|
|
27743
|
+
429: TooManyRequestsError;
|
|
27744
|
+
/**
|
|
27745
|
+
* InternalServerError
|
|
27746
|
+
*/
|
|
27747
|
+
500: InternalServerError;
|
|
27748
|
+
/**
|
|
27749
|
+
* ServiceUnavailableError
|
|
27750
|
+
*/
|
|
27751
|
+
503: ServiceUnavailableError;
|
|
27752
|
+
};
|
|
27753
|
+
|
|
27754
|
+
export type SessionsDownloadSessionSpanFieldError = SessionsDownloadSessionSpanFieldErrors[keyof SessionsDownloadSessionSpanFieldErrors];
|
|
27755
|
+
|
|
27756
|
+
export type SessionsDownloadSessionSpanFieldResponses = {
|
|
27757
|
+
/**
|
|
27758
|
+
* Success
|
|
27759
|
+
*/
|
|
27760
|
+
200: unknown;
|
|
27761
|
+
};
|
|
27762
|
+
|
|
26943
27763
|
export type TracesListTracesData = {
|
|
26944
27764
|
body?: never;
|
|
26945
27765
|
path: {
|
|
@@ -26954,6 +27774,7 @@ export type TracesListTracesData = {
|
|
|
26954
27774
|
provider?: string | Array<string> | null;
|
|
26955
27775
|
model?: string | Array<string> | null;
|
|
26956
27776
|
promptRef?: string | Array<string> | null;
|
|
27777
|
+
skill?: string | Array<string> | null;
|
|
26957
27778
|
sessionId?: string | null;
|
|
26958
27779
|
vcsRepositoryUrl?: string | null;
|
|
26959
27780
|
vcsHeadName?: string | null;
|
|
@@ -27291,6 +28112,7 @@ export type TracesListTracePromptFacetsData = {
|
|
|
27291
28112
|
provider?: string | Array<string> | null;
|
|
27292
28113
|
model?: string | Array<string> | null;
|
|
27293
28114
|
promptRef?: string | Array<string> | null;
|
|
28115
|
+
skill?: string | Array<string> | null;
|
|
27294
28116
|
sessionId?: string | null;
|
|
27295
28117
|
vcsRepositoryUrl?: string | null;
|
|
27296
28118
|
vcsHeadName?: string | null;
|