langwatch 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-JYTJEAOU.mjs → chunk-7SZIBH2A.mjs} +2 -2
- package/dist/{chunk-JYTJEAOU.mjs.map → chunk-7SZIBH2A.mjs.map} +1 -1
- package/dist/{chunk-UOFSG6R4.js → chunk-GOGMRTV5.js} +2 -2
- package/dist/{chunk-UOFSG6R4.js.map → chunk-GOGMRTV5.js.map} +1 -1
- package/dist/{chunk-DTSULVK5.js → chunk-KUJACQJ2.js} +12 -12
- package/dist/{chunk-DTSULVK5.js.map → chunk-KUJACQJ2.js.map} +1 -1
- package/dist/{chunk-PDNXHBSL.mjs → chunk-SOODMKTN.mjs} +2 -2
- package/dist/cli/bundle.js +233 -190
- package/dist/{implementation-CHXrVq_q.d.mts → implementation-Bd2Z0kjH.d.mts} +1 -1
- package/dist/{implementation-D_v0fUvU.d.ts → implementation-Cdrj3mBw.d.ts} +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +31 -31
- package/dist/index.mjs +2 -2
- package/dist/observability-sdk/index.d.mts +3 -3
- package/dist/observability-sdk/index.d.ts +3 -3
- package/dist/observability-sdk/index.js +2 -2
- package/dist/observability-sdk/index.mjs +1 -1
- package/dist/observability-sdk/instrumentation/langchain/index.d.mts +1 -1
- package/dist/observability-sdk/instrumentation/langchain/index.d.ts +1 -1
- package/dist/observability-sdk/setup/node/index.js +3 -3
- package/dist/observability-sdk/setup/node/index.mjs +2 -2
- package/dist/{types-av2kmt_i.d.ts → types-DzSFwVBw.d.ts} +300 -1
- package/dist/{types-DlP7QdqU.d.mts → types-ruthADbq.d.mts} +300 -1
- package/package.json +1 -1
- /package/dist/{chunk-PDNXHBSL.mjs.map → chunk-SOODMKTN.mjs.map} +0 -0
|
@@ -1320,6 +1320,46 @@ interface paths {
|
|
|
1320
1320
|
patch?: never;
|
|
1321
1321
|
trace?: never;
|
|
1322
1322
|
};
|
|
1323
|
+
"/api/coding-agent/sessions/{sessionId}/events": {
|
|
1324
|
+
parameters: {
|
|
1325
|
+
query?: never;
|
|
1326
|
+
header?: never;
|
|
1327
|
+
path?: never;
|
|
1328
|
+
cookie?: never;
|
|
1329
|
+
};
|
|
1330
|
+
/**
|
|
1331
|
+
* List coding agent session events
|
|
1332
|
+
* @description List a coding-agent session's events (model calls, compactions, rate limits, tool runs, prompts) in time order, keyset-paginated. Pass the previous response's nextCursor to continue; filter with kinds (comma-separated).
|
|
1333
|
+
*/
|
|
1334
|
+
get: operations["getApiCoding-agentSessionsBySessionIdEvents"];
|
|
1335
|
+
put?: never;
|
|
1336
|
+
post?: never;
|
|
1337
|
+
delete?: never;
|
|
1338
|
+
options?: never;
|
|
1339
|
+
head?: never;
|
|
1340
|
+
patch?: never;
|
|
1341
|
+
trace?: never;
|
|
1342
|
+
};
|
|
1343
|
+
"/api/coding-agent/pull-request-usage": {
|
|
1344
|
+
parameters: {
|
|
1345
|
+
query?: never;
|
|
1346
|
+
header?: never;
|
|
1347
|
+
path?: never;
|
|
1348
|
+
cookie?: never;
|
|
1349
|
+
};
|
|
1350
|
+
/**
|
|
1351
|
+
* Get pull request coding agent usage
|
|
1352
|
+
* @description Assistant usage for one pull request: sessions, tokens and cost, grouped by contributor and agent, plus per-model totals, over the pull request's whole lifetime rather than a time window. Every row and the totals split cost three ways: the part priced per token, the part a bundled subscription already covers, and the list-price total of both. Per-model totals carry the list price only. Cost is calculated from the tokens the agent reported and LangWatch's model prices, so it estimates spend rather than restating a provider invoice. Requires a personal-project API key; rows appear only for projects the calling user may view, and cost only for those they may price.
|
|
1353
|
+
*/
|
|
1354
|
+
get: operations["getApiCoding-agentPull-request-usage"];
|
|
1355
|
+
put?: never;
|
|
1356
|
+
post?: never;
|
|
1357
|
+
delete?: never;
|
|
1358
|
+
options?: never;
|
|
1359
|
+
head?: never;
|
|
1360
|
+
patch?: never;
|
|
1361
|
+
trace?: never;
|
|
1362
|
+
};
|
|
1323
1363
|
"/api/dashboards": {
|
|
1324
1364
|
parameters: {
|
|
1325
1365
|
query?: never;
|
|
@@ -1784,7 +1824,7 @@ interface paths {
|
|
|
1784
1824
|
put?: never;
|
|
1785
1825
|
/**
|
|
1786
1826
|
* Evaluate a dataset
|
|
1787
|
-
* @description Run one evaluator across a saved dataset and record the result against an experiment. Name the dataset by slug and the evaluator the same way the evaluate endpoints do; results are grouped under `experimentSlug`, or under a generated batch id when you omit it.
|
|
1827
|
+
* @description Run one evaluator across a saved dataset and record the result against an experiment. Name the dataset by slug and the evaluator the same way the evaluate endpoints do; results are grouped under `experimentSlug`, or under a generated batch id when you omit it. Bodies up to 30MB are accepted.
|
|
1788
1828
|
*/
|
|
1789
1829
|
post: operations["postApiDatasetEvaluate"];
|
|
1790
1830
|
delete?: never;
|
|
@@ -5259,6 +5299,256 @@ interface operations {
|
|
|
5259
5299
|
};
|
|
5260
5300
|
};
|
|
5261
5301
|
};
|
|
5302
|
+
"getApiCoding-agentSessionsBySessionIdEvents": {
|
|
5303
|
+
parameters: {
|
|
5304
|
+
query?: {
|
|
5305
|
+
/** @description Comma-separated event kinds to include. Known kinds: model_call, compaction, rate_limit, api_error, retries_exhausted, tool_result, tool_decision, user_prompt, subagent_completed. */
|
|
5306
|
+
kinds?: string;
|
|
5307
|
+
/** @description Opaque keyset cursor from the previous response's nextCursor. */
|
|
5308
|
+
cursor?: string;
|
|
5309
|
+
limit?: number;
|
|
5310
|
+
/** @description Epoch ms lower bound on event time; with `to`, prunes storage partitions for faster reads. */
|
|
5311
|
+
from?: number;
|
|
5312
|
+
/** @description Epoch ms upper bound on event time. */
|
|
5313
|
+
to?: number;
|
|
5314
|
+
};
|
|
5315
|
+
header?: never;
|
|
5316
|
+
path: {
|
|
5317
|
+
/** @description The agent's own session id (session.id / conversation id). */
|
|
5318
|
+
sessionId: string;
|
|
5319
|
+
};
|
|
5320
|
+
cookie?: never;
|
|
5321
|
+
};
|
|
5322
|
+
requestBody?: never;
|
|
5323
|
+
responses: {
|
|
5324
|
+
/** @description One page of session events plus the cursor for the next page */
|
|
5325
|
+
200: {
|
|
5326
|
+
headers: {
|
|
5327
|
+
[name: string]: unknown;
|
|
5328
|
+
};
|
|
5329
|
+
content: {
|
|
5330
|
+
"application/json": {
|
|
5331
|
+
events: {
|
|
5332
|
+
sessionId: string;
|
|
5333
|
+
timeUnixMs: number;
|
|
5334
|
+
recordId: string;
|
|
5335
|
+
eventKind: string;
|
|
5336
|
+
agent: string;
|
|
5337
|
+
sessionKeySource: string;
|
|
5338
|
+
traceId: string;
|
|
5339
|
+
spanId: string;
|
|
5340
|
+
promptId: string;
|
|
5341
|
+
querySource: string;
|
|
5342
|
+
agentType: string;
|
|
5343
|
+
eventSequence: number;
|
|
5344
|
+
requestId: string;
|
|
5345
|
+
model: string;
|
|
5346
|
+
inputTokens: number;
|
|
5347
|
+
outputTokens: number;
|
|
5348
|
+
cacheReadTokens: number;
|
|
5349
|
+
cacheCreationTokens: number;
|
|
5350
|
+
costUsd: number;
|
|
5351
|
+
durationMs: number;
|
|
5352
|
+
ttftMs: number;
|
|
5353
|
+
attempt: number;
|
|
5354
|
+
speed: string;
|
|
5355
|
+
stopReason: string;
|
|
5356
|
+
preTokens: number;
|
|
5357
|
+
postTokens: number;
|
|
5358
|
+
compactionTrigger: string;
|
|
5359
|
+
precomputeReuse: string;
|
|
5360
|
+
statusCode: string;
|
|
5361
|
+
errorType: string;
|
|
5362
|
+
rateLimitCarrier: string;
|
|
5363
|
+
retryDurationMs: number;
|
|
5364
|
+
toolName: string;
|
|
5365
|
+
success: string;
|
|
5366
|
+
decision: string;
|
|
5367
|
+
decisionSource: string;
|
|
5368
|
+
toolInputBytes: number;
|
|
5369
|
+
toolResultBytes: number;
|
|
5370
|
+
promptChars: number;
|
|
5371
|
+
totalTokens: number;
|
|
5372
|
+
}[];
|
|
5373
|
+
nextCursor: string | null;
|
|
5374
|
+
};
|
|
5375
|
+
};
|
|
5376
|
+
};
|
|
5377
|
+
/** @description Bad Request */
|
|
5378
|
+
400: {
|
|
5379
|
+
headers: {
|
|
5380
|
+
[name: string]: unknown;
|
|
5381
|
+
};
|
|
5382
|
+
content: {
|
|
5383
|
+
"application/json": {
|
|
5384
|
+
error: string;
|
|
5385
|
+
message?: string;
|
|
5386
|
+
};
|
|
5387
|
+
};
|
|
5388
|
+
};
|
|
5389
|
+
/** @description Unauthorized */
|
|
5390
|
+
401: {
|
|
5391
|
+
headers: {
|
|
5392
|
+
[name: string]: unknown;
|
|
5393
|
+
};
|
|
5394
|
+
content: {
|
|
5395
|
+
"application/json": {
|
|
5396
|
+
error: string;
|
|
5397
|
+
message?: string;
|
|
5398
|
+
};
|
|
5399
|
+
};
|
|
5400
|
+
};
|
|
5401
|
+
/** @description Unprocessable Entity */
|
|
5402
|
+
422: {
|
|
5403
|
+
headers: {
|
|
5404
|
+
[name: string]: unknown;
|
|
5405
|
+
};
|
|
5406
|
+
content: {
|
|
5407
|
+
"application/json": {
|
|
5408
|
+
error: string;
|
|
5409
|
+
message?: string;
|
|
5410
|
+
};
|
|
5411
|
+
};
|
|
5412
|
+
};
|
|
5413
|
+
/** @description Internal Server Error */
|
|
5414
|
+
500: {
|
|
5415
|
+
headers: {
|
|
5416
|
+
[name: string]: unknown;
|
|
5417
|
+
};
|
|
5418
|
+
content: {
|
|
5419
|
+
"application/json": {
|
|
5420
|
+
error: string;
|
|
5421
|
+
message?: string;
|
|
5422
|
+
};
|
|
5423
|
+
};
|
|
5424
|
+
};
|
|
5425
|
+
};
|
|
5426
|
+
};
|
|
5427
|
+
"getApiCoding-agentPull-request-usage": {
|
|
5428
|
+
parameters: {
|
|
5429
|
+
query: {
|
|
5430
|
+
/** @description The repository as "owner/name". */
|
|
5431
|
+
repository: string;
|
|
5432
|
+
/** @description The pull request number. */
|
|
5433
|
+
pullRequest: number;
|
|
5434
|
+
host?: string;
|
|
5435
|
+
};
|
|
5436
|
+
header?: never;
|
|
5437
|
+
path?: never;
|
|
5438
|
+
cookie?: never;
|
|
5439
|
+
};
|
|
5440
|
+
requestBody?: never;
|
|
5441
|
+
responses: {
|
|
5442
|
+
/** @description The pull request's usage rollup */
|
|
5443
|
+
200: {
|
|
5444
|
+
headers: {
|
|
5445
|
+
[name: string]: unknown;
|
|
5446
|
+
};
|
|
5447
|
+
content: {
|
|
5448
|
+
"application/json": {
|
|
5449
|
+
pullRequest: {
|
|
5450
|
+
repositoryHost: string;
|
|
5451
|
+
repositoryFullName: string;
|
|
5452
|
+
prNumber: number;
|
|
5453
|
+
headBranch: string;
|
|
5454
|
+
htmlUrl: string;
|
|
5455
|
+
state: string;
|
|
5456
|
+
isDraft: boolean;
|
|
5457
|
+
authorLogin: string | null;
|
|
5458
|
+
prCreatedAtMs: number;
|
|
5459
|
+
prClosedAtMs: number | null;
|
|
5460
|
+
prMergedAtMs: number | null;
|
|
5461
|
+
};
|
|
5462
|
+
rows: {
|
|
5463
|
+
projectId: string;
|
|
5464
|
+
projectSlug: string;
|
|
5465
|
+
contributorLabel: string;
|
|
5466
|
+
contributorIsProject: boolean;
|
|
5467
|
+
agent: string;
|
|
5468
|
+
models: string[];
|
|
5469
|
+
sessionsCount: number;
|
|
5470
|
+
inputTokens: number;
|
|
5471
|
+
outputTokens: number;
|
|
5472
|
+
cacheReadTokens: number;
|
|
5473
|
+
cacheCreationTokens: number;
|
|
5474
|
+
totalTokens: number;
|
|
5475
|
+
costUsd: number | null;
|
|
5476
|
+
billedCostUsd: number | null;
|
|
5477
|
+
nonBilledCostUsd: number | null;
|
|
5478
|
+
}[];
|
|
5479
|
+
totals: {
|
|
5480
|
+
sessionsCount: number;
|
|
5481
|
+
inputTokens: number;
|
|
5482
|
+
outputTokens: number;
|
|
5483
|
+
cacheReadTokens: number;
|
|
5484
|
+
cacheCreationTokens: number;
|
|
5485
|
+
totalTokens: number;
|
|
5486
|
+
costUsd: number | null;
|
|
5487
|
+
billedCostUsd: number | null;
|
|
5488
|
+
nonBilledCostUsd: number | null;
|
|
5489
|
+
};
|
|
5490
|
+
modelBreakdown: {
|
|
5491
|
+
model: string;
|
|
5492
|
+
inputTokens: number;
|
|
5493
|
+
outputTokens: number;
|
|
5494
|
+
cacheReadTokens: number;
|
|
5495
|
+
cacheCreationTokens: number;
|
|
5496
|
+
totalTokens: number;
|
|
5497
|
+
costUsd: number | null;
|
|
5498
|
+
}[];
|
|
5499
|
+
};
|
|
5500
|
+
};
|
|
5501
|
+
};
|
|
5502
|
+
/** @description Bad Request */
|
|
5503
|
+
400: {
|
|
5504
|
+
headers: {
|
|
5505
|
+
[name: string]: unknown;
|
|
5506
|
+
};
|
|
5507
|
+
content: {
|
|
5508
|
+
"application/json": {
|
|
5509
|
+
error: string;
|
|
5510
|
+
message?: string;
|
|
5511
|
+
};
|
|
5512
|
+
};
|
|
5513
|
+
};
|
|
5514
|
+
/** @description Unauthorized */
|
|
5515
|
+
401: {
|
|
5516
|
+
headers: {
|
|
5517
|
+
[name: string]: unknown;
|
|
5518
|
+
};
|
|
5519
|
+
content: {
|
|
5520
|
+
"application/json": {
|
|
5521
|
+
error: string;
|
|
5522
|
+
message?: string;
|
|
5523
|
+
};
|
|
5524
|
+
};
|
|
5525
|
+
};
|
|
5526
|
+
/** @description Unprocessable Entity */
|
|
5527
|
+
422: {
|
|
5528
|
+
headers: {
|
|
5529
|
+
[name: string]: unknown;
|
|
5530
|
+
};
|
|
5531
|
+
content: {
|
|
5532
|
+
"application/json": {
|
|
5533
|
+
error: string;
|
|
5534
|
+
message?: string;
|
|
5535
|
+
};
|
|
5536
|
+
};
|
|
5537
|
+
};
|
|
5538
|
+
/** @description Internal Server Error */
|
|
5539
|
+
500: {
|
|
5540
|
+
headers: {
|
|
5541
|
+
[name: string]: unknown;
|
|
5542
|
+
};
|
|
5543
|
+
content: {
|
|
5544
|
+
"application/json": {
|
|
5545
|
+
error: string;
|
|
5546
|
+
message?: string;
|
|
5547
|
+
};
|
|
5548
|
+
};
|
|
5549
|
+
};
|
|
5550
|
+
};
|
|
5551
|
+
};
|
|
5262
5552
|
getApiDashboards: {
|
|
5263
5553
|
parameters: {
|
|
5264
5554
|
query?: never;
|
|
@@ -7117,6 +7407,15 @@ interface operations {
|
|
|
7117
7407
|
};
|
|
7118
7408
|
};
|
|
7119
7409
|
};
|
|
7410
|
+
/** @description The body is larger than 30MB. Refused before it is read, so the response is the plain sentence `Payload Too Large` rather than a JSON error */
|
|
7411
|
+
413: {
|
|
7412
|
+
headers: {
|
|
7413
|
+
[name: string]: unknown;
|
|
7414
|
+
};
|
|
7415
|
+
content: {
|
|
7416
|
+
"text/plain": string;
|
|
7417
|
+
};
|
|
7418
|
+
};
|
|
7120
7419
|
};
|
|
7121
7420
|
};
|
|
7122
7421
|
postApiExperimentsBySlugRun: {
|
|
@@ -1320,6 +1320,46 @@ interface paths {
|
|
|
1320
1320
|
patch?: never;
|
|
1321
1321
|
trace?: never;
|
|
1322
1322
|
};
|
|
1323
|
+
"/api/coding-agent/sessions/{sessionId}/events": {
|
|
1324
|
+
parameters: {
|
|
1325
|
+
query?: never;
|
|
1326
|
+
header?: never;
|
|
1327
|
+
path?: never;
|
|
1328
|
+
cookie?: never;
|
|
1329
|
+
};
|
|
1330
|
+
/**
|
|
1331
|
+
* List coding agent session events
|
|
1332
|
+
* @description List a coding-agent session's events (model calls, compactions, rate limits, tool runs, prompts) in time order, keyset-paginated. Pass the previous response's nextCursor to continue; filter with kinds (comma-separated).
|
|
1333
|
+
*/
|
|
1334
|
+
get: operations["getApiCoding-agentSessionsBySessionIdEvents"];
|
|
1335
|
+
put?: never;
|
|
1336
|
+
post?: never;
|
|
1337
|
+
delete?: never;
|
|
1338
|
+
options?: never;
|
|
1339
|
+
head?: never;
|
|
1340
|
+
patch?: never;
|
|
1341
|
+
trace?: never;
|
|
1342
|
+
};
|
|
1343
|
+
"/api/coding-agent/pull-request-usage": {
|
|
1344
|
+
parameters: {
|
|
1345
|
+
query?: never;
|
|
1346
|
+
header?: never;
|
|
1347
|
+
path?: never;
|
|
1348
|
+
cookie?: never;
|
|
1349
|
+
};
|
|
1350
|
+
/**
|
|
1351
|
+
* Get pull request coding agent usage
|
|
1352
|
+
* @description Assistant usage for one pull request: sessions, tokens and cost, grouped by contributor and agent, plus per-model totals, over the pull request's whole lifetime rather than a time window. Every row and the totals split cost three ways: the part priced per token, the part a bundled subscription already covers, and the list-price total of both. Per-model totals carry the list price only. Cost is calculated from the tokens the agent reported and LangWatch's model prices, so it estimates spend rather than restating a provider invoice. Requires a personal-project API key; rows appear only for projects the calling user may view, and cost only for those they may price.
|
|
1353
|
+
*/
|
|
1354
|
+
get: operations["getApiCoding-agentPull-request-usage"];
|
|
1355
|
+
put?: never;
|
|
1356
|
+
post?: never;
|
|
1357
|
+
delete?: never;
|
|
1358
|
+
options?: never;
|
|
1359
|
+
head?: never;
|
|
1360
|
+
patch?: never;
|
|
1361
|
+
trace?: never;
|
|
1362
|
+
};
|
|
1323
1363
|
"/api/dashboards": {
|
|
1324
1364
|
parameters: {
|
|
1325
1365
|
query?: never;
|
|
@@ -1784,7 +1824,7 @@ interface paths {
|
|
|
1784
1824
|
put?: never;
|
|
1785
1825
|
/**
|
|
1786
1826
|
* Evaluate a dataset
|
|
1787
|
-
* @description Run one evaluator across a saved dataset and record the result against an experiment. Name the dataset by slug and the evaluator the same way the evaluate endpoints do; results are grouped under `experimentSlug`, or under a generated batch id when you omit it.
|
|
1827
|
+
* @description Run one evaluator across a saved dataset and record the result against an experiment. Name the dataset by slug and the evaluator the same way the evaluate endpoints do; results are grouped under `experimentSlug`, or under a generated batch id when you omit it. Bodies up to 30MB are accepted.
|
|
1788
1828
|
*/
|
|
1789
1829
|
post: operations["postApiDatasetEvaluate"];
|
|
1790
1830
|
delete?: never;
|
|
@@ -5259,6 +5299,256 @@ interface operations {
|
|
|
5259
5299
|
};
|
|
5260
5300
|
};
|
|
5261
5301
|
};
|
|
5302
|
+
"getApiCoding-agentSessionsBySessionIdEvents": {
|
|
5303
|
+
parameters: {
|
|
5304
|
+
query?: {
|
|
5305
|
+
/** @description Comma-separated event kinds to include. Known kinds: model_call, compaction, rate_limit, api_error, retries_exhausted, tool_result, tool_decision, user_prompt, subagent_completed. */
|
|
5306
|
+
kinds?: string;
|
|
5307
|
+
/** @description Opaque keyset cursor from the previous response's nextCursor. */
|
|
5308
|
+
cursor?: string;
|
|
5309
|
+
limit?: number;
|
|
5310
|
+
/** @description Epoch ms lower bound on event time; with `to`, prunes storage partitions for faster reads. */
|
|
5311
|
+
from?: number;
|
|
5312
|
+
/** @description Epoch ms upper bound on event time. */
|
|
5313
|
+
to?: number;
|
|
5314
|
+
};
|
|
5315
|
+
header?: never;
|
|
5316
|
+
path: {
|
|
5317
|
+
/** @description The agent's own session id (session.id / conversation id). */
|
|
5318
|
+
sessionId: string;
|
|
5319
|
+
};
|
|
5320
|
+
cookie?: never;
|
|
5321
|
+
};
|
|
5322
|
+
requestBody?: never;
|
|
5323
|
+
responses: {
|
|
5324
|
+
/** @description One page of session events plus the cursor for the next page */
|
|
5325
|
+
200: {
|
|
5326
|
+
headers: {
|
|
5327
|
+
[name: string]: unknown;
|
|
5328
|
+
};
|
|
5329
|
+
content: {
|
|
5330
|
+
"application/json": {
|
|
5331
|
+
events: {
|
|
5332
|
+
sessionId: string;
|
|
5333
|
+
timeUnixMs: number;
|
|
5334
|
+
recordId: string;
|
|
5335
|
+
eventKind: string;
|
|
5336
|
+
agent: string;
|
|
5337
|
+
sessionKeySource: string;
|
|
5338
|
+
traceId: string;
|
|
5339
|
+
spanId: string;
|
|
5340
|
+
promptId: string;
|
|
5341
|
+
querySource: string;
|
|
5342
|
+
agentType: string;
|
|
5343
|
+
eventSequence: number;
|
|
5344
|
+
requestId: string;
|
|
5345
|
+
model: string;
|
|
5346
|
+
inputTokens: number;
|
|
5347
|
+
outputTokens: number;
|
|
5348
|
+
cacheReadTokens: number;
|
|
5349
|
+
cacheCreationTokens: number;
|
|
5350
|
+
costUsd: number;
|
|
5351
|
+
durationMs: number;
|
|
5352
|
+
ttftMs: number;
|
|
5353
|
+
attempt: number;
|
|
5354
|
+
speed: string;
|
|
5355
|
+
stopReason: string;
|
|
5356
|
+
preTokens: number;
|
|
5357
|
+
postTokens: number;
|
|
5358
|
+
compactionTrigger: string;
|
|
5359
|
+
precomputeReuse: string;
|
|
5360
|
+
statusCode: string;
|
|
5361
|
+
errorType: string;
|
|
5362
|
+
rateLimitCarrier: string;
|
|
5363
|
+
retryDurationMs: number;
|
|
5364
|
+
toolName: string;
|
|
5365
|
+
success: string;
|
|
5366
|
+
decision: string;
|
|
5367
|
+
decisionSource: string;
|
|
5368
|
+
toolInputBytes: number;
|
|
5369
|
+
toolResultBytes: number;
|
|
5370
|
+
promptChars: number;
|
|
5371
|
+
totalTokens: number;
|
|
5372
|
+
}[];
|
|
5373
|
+
nextCursor: string | null;
|
|
5374
|
+
};
|
|
5375
|
+
};
|
|
5376
|
+
};
|
|
5377
|
+
/** @description Bad Request */
|
|
5378
|
+
400: {
|
|
5379
|
+
headers: {
|
|
5380
|
+
[name: string]: unknown;
|
|
5381
|
+
};
|
|
5382
|
+
content: {
|
|
5383
|
+
"application/json": {
|
|
5384
|
+
error: string;
|
|
5385
|
+
message?: string;
|
|
5386
|
+
};
|
|
5387
|
+
};
|
|
5388
|
+
};
|
|
5389
|
+
/** @description Unauthorized */
|
|
5390
|
+
401: {
|
|
5391
|
+
headers: {
|
|
5392
|
+
[name: string]: unknown;
|
|
5393
|
+
};
|
|
5394
|
+
content: {
|
|
5395
|
+
"application/json": {
|
|
5396
|
+
error: string;
|
|
5397
|
+
message?: string;
|
|
5398
|
+
};
|
|
5399
|
+
};
|
|
5400
|
+
};
|
|
5401
|
+
/** @description Unprocessable Entity */
|
|
5402
|
+
422: {
|
|
5403
|
+
headers: {
|
|
5404
|
+
[name: string]: unknown;
|
|
5405
|
+
};
|
|
5406
|
+
content: {
|
|
5407
|
+
"application/json": {
|
|
5408
|
+
error: string;
|
|
5409
|
+
message?: string;
|
|
5410
|
+
};
|
|
5411
|
+
};
|
|
5412
|
+
};
|
|
5413
|
+
/** @description Internal Server Error */
|
|
5414
|
+
500: {
|
|
5415
|
+
headers: {
|
|
5416
|
+
[name: string]: unknown;
|
|
5417
|
+
};
|
|
5418
|
+
content: {
|
|
5419
|
+
"application/json": {
|
|
5420
|
+
error: string;
|
|
5421
|
+
message?: string;
|
|
5422
|
+
};
|
|
5423
|
+
};
|
|
5424
|
+
};
|
|
5425
|
+
};
|
|
5426
|
+
};
|
|
5427
|
+
"getApiCoding-agentPull-request-usage": {
|
|
5428
|
+
parameters: {
|
|
5429
|
+
query: {
|
|
5430
|
+
/** @description The repository as "owner/name". */
|
|
5431
|
+
repository: string;
|
|
5432
|
+
/** @description The pull request number. */
|
|
5433
|
+
pullRequest: number;
|
|
5434
|
+
host?: string;
|
|
5435
|
+
};
|
|
5436
|
+
header?: never;
|
|
5437
|
+
path?: never;
|
|
5438
|
+
cookie?: never;
|
|
5439
|
+
};
|
|
5440
|
+
requestBody?: never;
|
|
5441
|
+
responses: {
|
|
5442
|
+
/** @description The pull request's usage rollup */
|
|
5443
|
+
200: {
|
|
5444
|
+
headers: {
|
|
5445
|
+
[name: string]: unknown;
|
|
5446
|
+
};
|
|
5447
|
+
content: {
|
|
5448
|
+
"application/json": {
|
|
5449
|
+
pullRequest: {
|
|
5450
|
+
repositoryHost: string;
|
|
5451
|
+
repositoryFullName: string;
|
|
5452
|
+
prNumber: number;
|
|
5453
|
+
headBranch: string;
|
|
5454
|
+
htmlUrl: string;
|
|
5455
|
+
state: string;
|
|
5456
|
+
isDraft: boolean;
|
|
5457
|
+
authorLogin: string | null;
|
|
5458
|
+
prCreatedAtMs: number;
|
|
5459
|
+
prClosedAtMs: number | null;
|
|
5460
|
+
prMergedAtMs: number | null;
|
|
5461
|
+
};
|
|
5462
|
+
rows: {
|
|
5463
|
+
projectId: string;
|
|
5464
|
+
projectSlug: string;
|
|
5465
|
+
contributorLabel: string;
|
|
5466
|
+
contributorIsProject: boolean;
|
|
5467
|
+
agent: string;
|
|
5468
|
+
models: string[];
|
|
5469
|
+
sessionsCount: number;
|
|
5470
|
+
inputTokens: number;
|
|
5471
|
+
outputTokens: number;
|
|
5472
|
+
cacheReadTokens: number;
|
|
5473
|
+
cacheCreationTokens: number;
|
|
5474
|
+
totalTokens: number;
|
|
5475
|
+
costUsd: number | null;
|
|
5476
|
+
billedCostUsd: number | null;
|
|
5477
|
+
nonBilledCostUsd: number | null;
|
|
5478
|
+
}[];
|
|
5479
|
+
totals: {
|
|
5480
|
+
sessionsCount: number;
|
|
5481
|
+
inputTokens: number;
|
|
5482
|
+
outputTokens: number;
|
|
5483
|
+
cacheReadTokens: number;
|
|
5484
|
+
cacheCreationTokens: number;
|
|
5485
|
+
totalTokens: number;
|
|
5486
|
+
costUsd: number | null;
|
|
5487
|
+
billedCostUsd: number | null;
|
|
5488
|
+
nonBilledCostUsd: number | null;
|
|
5489
|
+
};
|
|
5490
|
+
modelBreakdown: {
|
|
5491
|
+
model: string;
|
|
5492
|
+
inputTokens: number;
|
|
5493
|
+
outputTokens: number;
|
|
5494
|
+
cacheReadTokens: number;
|
|
5495
|
+
cacheCreationTokens: number;
|
|
5496
|
+
totalTokens: number;
|
|
5497
|
+
costUsd: number | null;
|
|
5498
|
+
}[];
|
|
5499
|
+
};
|
|
5500
|
+
};
|
|
5501
|
+
};
|
|
5502
|
+
/** @description Bad Request */
|
|
5503
|
+
400: {
|
|
5504
|
+
headers: {
|
|
5505
|
+
[name: string]: unknown;
|
|
5506
|
+
};
|
|
5507
|
+
content: {
|
|
5508
|
+
"application/json": {
|
|
5509
|
+
error: string;
|
|
5510
|
+
message?: string;
|
|
5511
|
+
};
|
|
5512
|
+
};
|
|
5513
|
+
};
|
|
5514
|
+
/** @description Unauthorized */
|
|
5515
|
+
401: {
|
|
5516
|
+
headers: {
|
|
5517
|
+
[name: string]: unknown;
|
|
5518
|
+
};
|
|
5519
|
+
content: {
|
|
5520
|
+
"application/json": {
|
|
5521
|
+
error: string;
|
|
5522
|
+
message?: string;
|
|
5523
|
+
};
|
|
5524
|
+
};
|
|
5525
|
+
};
|
|
5526
|
+
/** @description Unprocessable Entity */
|
|
5527
|
+
422: {
|
|
5528
|
+
headers: {
|
|
5529
|
+
[name: string]: unknown;
|
|
5530
|
+
};
|
|
5531
|
+
content: {
|
|
5532
|
+
"application/json": {
|
|
5533
|
+
error: string;
|
|
5534
|
+
message?: string;
|
|
5535
|
+
};
|
|
5536
|
+
};
|
|
5537
|
+
};
|
|
5538
|
+
/** @description Internal Server Error */
|
|
5539
|
+
500: {
|
|
5540
|
+
headers: {
|
|
5541
|
+
[name: string]: unknown;
|
|
5542
|
+
};
|
|
5543
|
+
content: {
|
|
5544
|
+
"application/json": {
|
|
5545
|
+
error: string;
|
|
5546
|
+
message?: string;
|
|
5547
|
+
};
|
|
5548
|
+
};
|
|
5549
|
+
};
|
|
5550
|
+
};
|
|
5551
|
+
};
|
|
5262
5552
|
getApiDashboards: {
|
|
5263
5553
|
parameters: {
|
|
5264
5554
|
query?: never;
|
|
@@ -7117,6 +7407,15 @@ interface operations {
|
|
|
7117
7407
|
};
|
|
7118
7408
|
};
|
|
7119
7409
|
};
|
|
7410
|
+
/** @description The body is larger than 30MB. Refused before it is read, so the response is the plain sentence `Payload Too Large` rather than a JSON error */
|
|
7411
|
+
413: {
|
|
7412
|
+
headers: {
|
|
7413
|
+
[name: string]: unknown;
|
|
7414
|
+
};
|
|
7415
|
+
content: {
|
|
7416
|
+
"text/plain": string;
|
|
7417
|
+
};
|
|
7418
|
+
};
|
|
7120
7419
|
};
|
|
7121
7420
|
};
|
|
7122
7421
|
postApiExperimentsBySlugRun: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "langwatch",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "LangWatch TypeScript/JavaScript SDK. Interact with the full LangWatch API and use the LangWatch OpenTelemetry SDK to instrument your application. For more information, see https://docs.langwatch.ai/integration/typescript/guide",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
File without changes
|