@sixb/client 0.1.2 → 0.1.3
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/browser.js +2 -2
- package/dist/{chunk-5vp5zr0d.js → chunk-6esh0dxx.js} +1 -1
- package/dist/{chunk-tsdnw994.js → chunk-7ts981a8.js} +2 -2
- package/dist/{chunk-skkt217g.js → chunk-eyd61e4t.js} +7 -2
- package/dist/chunk-eyd61e4t.js.map +19 -0
- package/dist/{chunk-ctf97s25.js → chunk-heqezbjc.js} +2 -2
- package/dist/{chunk-v4jdc1nb.js → chunk-hfk246y4.js} +3 -3
- package/dist/{chunk-zfne7wxr.js → chunk-yjank04c.js} +1 -1
- package/dist/connectors/queries.d.ts.map +1 -1
- package/dist/generated/@tanstack/react-query.gen.d.ts +2123 -26
- package/dist/generated/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/sdk.gen.d.ts +9 -1
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/types.gen.d.ts +498 -7
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/hooks.js +59 -6
- package/dist/hooks.js.map +3 -3
- package/dist/index.js +10 -6
- package/dist/index.js.map +1 -1
- package/dist/logs.js +3 -3
- package/dist/models.js +6 -2
- package/dist/models.js.map +1 -1
- package/dist/query.js +3 -3
- package/package.json +2 -2
- package/src/generated/@tanstack/react-query.gen.ts +101 -0
- package/src/generated/index.ts +12 -0
- package/src/generated/sdk.gen.ts +29 -0
- package/src/generated/types.gen.ts +609 -2
- package/dist/chunk-skkt217g.js.map +0 -19
- /package/dist/{chunk-5vp5zr0d.js.map → chunk-6esh0dxx.js.map} +0 -0
- /package/dist/{chunk-tsdnw994.js.map → chunk-7ts981a8.js.map} +0 -0
- /package/dist/{chunk-ctf97s25.js.map → chunk-heqezbjc.js.map} +0 -0
- /package/dist/{chunk-v4jdc1nb.js.map → chunk-hfk246y4.js.map} +0 -0
- /package/dist/{chunk-zfne7wxr.js.map → chunk-yjank04c.js.map} +0 -0
|
@@ -1390,6 +1390,308 @@ export type ReactivateAuthMemberResponses = {
|
|
|
1390
1390
|
};
|
|
1391
1391
|
};
|
|
1392
1392
|
export type ReactivateAuthMemberResponse = ReactivateAuthMemberResponses[keyof ReactivateAuthMemberResponses];
|
|
1393
|
+
export type GetAiAccountingOverviewData = {
|
|
1394
|
+
body?: never;
|
|
1395
|
+
path?: never;
|
|
1396
|
+
query: {
|
|
1397
|
+
from: string;
|
|
1398
|
+
to: string;
|
|
1399
|
+
providerId?: string;
|
|
1400
|
+
modelId?: string;
|
|
1401
|
+
bucket: "hour" | "day" | "week";
|
|
1402
|
+
};
|
|
1403
|
+
url: "/api/ai/accounting/overview";
|
|
1404
|
+
};
|
|
1405
|
+
export type GetAiAccountingOverviewErrors = {
|
|
1406
|
+
/**
|
|
1407
|
+
* Response for status 400
|
|
1408
|
+
*/
|
|
1409
|
+
400: {
|
|
1410
|
+
error: string;
|
|
1411
|
+
};
|
|
1412
|
+
/**
|
|
1413
|
+
* Response for status 501
|
|
1414
|
+
*/
|
|
1415
|
+
501: {
|
|
1416
|
+
error: string;
|
|
1417
|
+
};
|
|
1418
|
+
};
|
|
1419
|
+
export type GetAiAccountingOverviewError = GetAiAccountingOverviewErrors[keyof GetAiAccountingOverviewErrors];
|
|
1420
|
+
export type GetAiAccountingOverviewResponses = {
|
|
1421
|
+
/**
|
|
1422
|
+
* Response for status 200
|
|
1423
|
+
*/
|
|
1424
|
+
200: {
|
|
1425
|
+
range: {
|
|
1426
|
+
from: string;
|
|
1427
|
+
to: string;
|
|
1428
|
+
};
|
|
1429
|
+
bucket: "hour" | "day" | "week";
|
|
1430
|
+
totals: {
|
|
1431
|
+
modelCallCount: number;
|
|
1432
|
+
usage: {
|
|
1433
|
+
inputTokens?: number;
|
|
1434
|
+
outputTokens?: number;
|
|
1435
|
+
totalTokens?: number;
|
|
1436
|
+
uncachedInputTokens?: number;
|
|
1437
|
+
cacheReadInputTokens?: number;
|
|
1438
|
+
cacheWriteInputTokens?: number;
|
|
1439
|
+
textOutputTokens?: number;
|
|
1440
|
+
reasoningOutputTokens?: number;
|
|
1441
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1442
|
+
};
|
|
1443
|
+
costs: {
|
|
1444
|
+
amounts: Array<{
|
|
1445
|
+
currency: string;
|
|
1446
|
+
amountNanos: string;
|
|
1447
|
+
}>;
|
|
1448
|
+
ratedCallCount: number;
|
|
1449
|
+
unpriceableCallCount: number;
|
|
1450
|
+
unvaluedCallCount: number;
|
|
1451
|
+
};
|
|
1452
|
+
};
|
|
1453
|
+
series: Array<{
|
|
1454
|
+
modelCallCount: number;
|
|
1455
|
+
usage: {
|
|
1456
|
+
inputTokens?: number;
|
|
1457
|
+
outputTokens?: number;
|
|
1458
|
+
totalTokens?: number;
|
|
1459
|
+
uncachedInputTokens?: number;
|
|
1460
|
+
cacheReadInputTokens?: number;
|
|
1461
|
+
cacheWriteInputTokens?: number;
|
|
1462
|
+
textOutputTokens?: number;
|
|
1463
|
+
reasoningOutputTokens?: number;
|
|
1464
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1465
|
+
};
|
|
1466
|
+
costs: {
|
|
1467
|
+
amounts: Array<{
|
|
1468
|
+
currency: string;
|
|
1469
|
+
amountNanos: string;
|
|
1470
|
+
}>;
|
|
1471
|
+
ratedCallCount: number;
|
|
1472
|
+
unpriceableCallCount: number;
|
|
1473
|
+
unvaluedCallCount: number;
|
|
1474
|
+
};
|
|
1475
|
+
start: string;
|
|
1476
|
+
end: string;
|
|
1477
|
+
}>;
|
|
1478
|
+
models: Array<{
|
|
1479
|
+
modelCallCount: number;
|
|
1480
|
+
usage: {
|
|
1481
|
+
inputTokens?: number;
|
|
1482
|
+
outputTokens?: number;
|
|
1483
|
+
totalTokens?: number;
|
|
1484
|
+
uncachedInputTokens?: number;
|
|
1485
|
+
cacheReadInputTokens?: number;
|
|
1486
|
+
cacheWriteInputTokens?: number;
|
|
1487
|
+
textOutputTokens?: number;
|
|
1488
|
+
reasoningOutputTokens?: number;
|
|
1489
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1490
|
+
};
|
|
1491
|
+
costs: {
|
|
1492
|
+
amounts: Array<{
|
|
1493
|
+
currency: string;
|
|
1494
|
+
amountNanos: string;
|
|
1495
|
+
}>;
|
|
1496
|
+
ratedCallCount: number;
|
|
1497
|
+
unpriceableCallCount: number;
|
|
1498
|
+
unvaluedCallCount: number;
|
|
1499
|
+
};
|
|
1500
|
+
providerId: string;
|
|
1501
|
+
modelId: string;
|
|
1502
|
+
}>;
|
|
1503
|
+
agents: Array<{
|
|
1504
|
+
modelCallCount: number;
|
|
1505
|
+
usage: {
|
|
1506
|
+
inputTokens?: number;
|
|
1507
|
+
outputTokens?: number;
|
|
1508
|
+
totalTokens?: number;
|
|
1509
|
+
uncachedInputTokens?: number;
|
|
1510
|
+
cacheReadInputTokens?: number;
|
|
1511
|
+
cacheWriteInputTokens?: number;
|
|
1512
|
+
textOutputTokens?: number;
|
|
1513
|
+
reasoningOutputTokens?: number;
|
|
1514
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1515
|
+
};
|
|
1516
|
+
costs: {
|
|
1517
|
+
amounts: Array<{
|
|
1518
|
+
currency: string;
|
|
1519
|
+
amountNanos: string;
|
|
1520
|
+
}>;
|
|
1521
|
+
ratedCallCount: number;
|
|
1522
|
+
unpriceableCallCount: number;
|
|
1523
|
+
unvaluedCallCount: number;
|
|
1524
|
+
};
|
|
1525
|
+
agentId: string;
|
|
1526
|
+
}>;
|
|
1527
|
+
workflows: Array<{
|
|
1528
|
+
modelCallCount: number;
|
|
1529
|
+
usage: {
|
|
1530
|
+
inputTokens?: number;
|
|
1531
|
+
outputTokens?: number;
|
|
1532
|
+
totalTokens?: number;
|
|
1533
|
+
uncachedInputTokens?: number;
|
|
1534
|
+
cacheReadInputTokens?: number;
|
|
1535
|
+
cacheWriteInputTokens?: number;
|
|
1536
|
+
textOutputTokens?: number;
|
|
1537
|
+
reasoningOutputTokens?: number;
|
|
1538
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1539
|
+
};
|
|
1540
|
+
costs: {
|
|
1541
|
+
amounts: Array<{
|
|
1542
|
+
currency: string;
|
|
1543
|
+
amountNanos: string;
|
|
1544
|
+
}>;
|
|
1545
|
+
ratedCallCount: number;
|
|
1546
|
+
unpriceableCallCount: number;
|
|
1547
|
+
unvaluedCallCount: number;
|
|
1548
|
+
};
|
|
1549
|
+
workflowId: string;
|
|
1550
|
+
}>;
|
|
1551
|
+
};
|
|
1552
|
+
};
|
|
1553
|
+
export type GetAiAccountingOverviewResponse = GetAiAccountingOverviewResponses[keyof GetAiAccountingOverviewResponses];
|
|
1554
|
+
export type ListAiModelCallsData = {
|
|
1555
|
+
body?: never;
|
|
1556
|
+
path?: never;
|
|
1557
|
+
query: {
|
|
1558
|
+
from: string;
|
|
1559
|
+
to: string;
|
|
1560
|
+
providerId?: string;
|
|
1561
|
+
modelId?: string;
|
|
1562
|
+
executionId?: string;
|
|
1563
|
+
valuationStatus?: "rated" | "unpriceable" | "unvalued";
|
|
1564
|
+
limit?: string;
|
|
1565
|
+
offset?: string;
|
|
1566
|
+
};
|
|
1567
|
+
url: "/api/ai/model-calls";
|
|
1568
|
+
};
|
|
1569
|
+
export type ListAiModelCallsErrors = {
|
|
1570
|
+
/**
|
|
1571
|
+
* Response for status 400
|
|
1572
|
+
*/
|
|
1573
|
+
400: {
|
|
1574
|
+
error: string;
|
|
1575
|
+
};
|
|
1576
|
+
/**
|
|
1577
|
+
* Response for status 501
|
|
1578
|
+
*/
|
|
1579
|
+
501: {
|
|
1580
|
+
error: string;
|
|
1581
|
+
};
|
|
1582
|
+
};
|
|
1583
|
+
export type ListAiModelCallsError = ListAiModelCallsErrors[keyof ListAiModelCallsErrors];
|
|
1584
|
+
export type ListAiModelCallsResponses = {
|
|
1585
|
+
/**
|
|
1586
|
+
* Response for status 200
|
|
1587
|
+
*/
|
|
1588
|
+
200: {
|
|
1589
|
+
items: Array<{
|
|
1590
|
+
usage: {
|
|
1591
|
+
id: string;
|
|
1592
|
+
executionId: string;
|
|
1593
|
+
attempt: number;
|
|
1594
|
+
callId: string;
|
|
1595
|
+
providerId: string;
|
|
1596
|
+
requestedModelId: string;
|
|
1597
|
+
responseModelId?: string;
|
|
1598
|
+
responseId: string;
|
|
1599
|
+
usage: {
|
|
1600
|
+
inputTokens?: number;
|
|
1601
|
+
outputTokens?: number;
|
|
1602
|
+
totalTokens?: number;
|
|
1603
|
+
uncachedInputTokens?: number;
|
|
1604
|
+
cacheReadInputTokens?: number;
|
|
1605
|
+
cacheWriteInputTokens?: number;
|
|
1606
|
+
textOutputTokens?: number;
|
|
1607
|
+
reasoningOutputTokens?: number;
|
|
1608
|
+
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1609
|
+
};
|
|
1610
|
+
occurredAt: string;
|
|
1611
|
+
recordedAt: string;
|
|
1612
|
+
};
|
|
1613
|
+
attribution?: {
|
|
1614
|
+
kind: "agent";
|
|
1615
|
+
agentId: string;
|
|
1616
|
+
agentRunId: string;
|
|
1617
|
+
threadId: string;
|
|
1618
|
+
} | {
|
|
1619
|
+
kind: "workflowAgent";
|
|
1620
|
+
agentId: string;
|
|
1621
|
+
nodeRunId: string;
|
|
1622
|
+
workflowId: string;
|
|
1623
|
+
workflowRunId: string;
|
|
1624
|
+
};
|
|
1625
|
+
cost?: {
|
|
1626
|
+
status: "rated";
|
|
1627
|
+
billingIdentity: {
|
|
1628
|
+
providerId: string;
|
|
1629
|
+
modelId: string;
|
|
1630
|
+
};
|
|
1631
|
+
pricingContext: {
|
|
1632
|
+
serviceTier?: string;
|
|
1633
|
+
batch?: boolean;
|
|
1634
|
+
region?: string;
|
|
1635
|
+
inferenceGeo?: string;
|
|
1636
|
+
routedProviderId?: string;
|
|
1637
|
+
deploymentId?: string;
|
|
1638
|
+
inferenceProfileId?: string;
|
|
1639
|
+
cacheWriteTtlSeconds?: number;
|
|
1640
|
+
mode?: string;
|
|
1641
|
+
};
|
|
1642
|
+
priceSource: {
|
|
1643
|
+
sourceId: string;
|
|
1644
|
+
sourceEntryId: string;
|
|
1645
|
+
sourceVersion: string;
|
|
1646
|
+
sourceUrl: string;
|
|
1647
|
+
observedAt: string;
|
|
1648
|
+
};
|
|
1649
|
+
money: {
|
|
1650
|
+
currency: string;
|
|
1651
|
+
amountNanos: string;
|
|
1652
|
+
};
|
|
1653
|
+
components: Array<{
|
|
1654
|
+
meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
|
|
1655
|
+
quantity: string;
|
|
1656
|
+
rateAmountNanosPerMillion: string;
|
|
1657
|
+
chargeAmountNanos: string;
|
|
1658
|
+
}>;
|
|
1659
|
+
ratedAt: string;
|
|
1660
|
+
} | {
|
|
1661
|
+
status: "unpriceable";
|
|
1662
|
+
billingIdentity?: {
|
|
1663
|
+
providerId: string;
|
|
1664
|
+
modelId: string;
|
|
1665
|
+
};
|
|
1666
|
+
pricingContext: {
|
|
1667
|
+
serviceTier?: string;
|
|
1668
|
+
batch?: boolean;
|
|
1669
|
+
region?: string;
|
|
1670
|
+
inferenceGeo?: string;
|
|
1671
|
+
routedProviderId?: string;
|
|
1672
|
+
deploymentId?: string;
|
|
1673
|
+
inferenceProfileId?: string;
|
|
1674
|
+
cacheWriteTtlSeconds?: number;
|
|
1675
|
+
mode?: string;
|
|
1676
|
+
};
|
|
1677
|
+
priceSource: {
|
|
1678
|
+
sourceId: string;
|
|
1679
|
+
sourceEntryId: string;
|
|
1680
|
+
sourceVersion: string;
|
|
1681
|
+
sourceUrl: string;
|
|
1682
|
+
observedAt: string;
|
|
1683
|
+
};
|
|
1684
|
+
reason: "missingBillingIdentity" | "missingCatalogEntry" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
|
|
1685
|
+
missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
|
|
1686
|
+
ratedAt: string;
|
|
1687
|
+
};
|
|
1688
|
+
valuationStatus: "rated" | "unpriceable" | "unvalued";
|
|
1689
|
+
}>;
|
|
1690
|
+
hasMore: boolean;
|
|
1691
|
+
total: number;
|
|
1692
|
+
};
|
|
1693
|
+
};
|
|
1694
|
+
export type ListAiModelCallsResponse = ListAiModelCallsResponses[keyof ListAiModelCallsResponses];
|
|
1393
1695
|
export type GetProjectInfoData = {
|
|
1394
1696
|
body?: never;
|
|
1395
1697
|
path?: never;
|
|
@@ -4165,6 +4467,15 @@ export type GetWorkflowRunResponses = {
|
|
|
4165
4467
|
reasoningOutputTokens?: number;
|
|
4166
4468
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
4167
4469
|
};
|
|
4470
|
+
cost?: {
|
|
4471
|
+
amounts: Array<{
|
|
4472
|
+
currency: string;
|
|
4473
|
+
amountNanos: string;
|
|
4474
|
+
}>;
|
|
4475
|
+
ratedCallCount: number;
|
|
4476
|
+
unpriceableCallCount: number;
|
|
4477
|
+
unvaluedCallCount: number;
|
|
4478
|
+
};
|
|
4168
4479
|
startedAt?: string;
|
|
4169
4480
|
completedAt?: string;
|
|
4170
4481
|
};
|
|
@@ -4223,12 +4534,126 @@ export type GetWorkflowAgentNodeExecutionResponses = {
|
|
|
4223
4534
|
reasoningOutputTokens?: number;
|
|
4224
4535
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
4225
4536
|
};
|
|
4537
|
+
cost?: {
|
|
4538
|
+
amounts: Array<{
|
|
4539
|
+
currency: string;
|
|
4540
|
+
amountNanos: string;
|
|
4541
|
+
}>;
|
|
4542
|
+
ratedCallCount: number;
|
|
4543
|
+
unpriceableCallCount: number;
|
|
4544
|
+
unvaluedCallCount: number;
|
|
4545
|
+
};
|
|
4226
4546
|
startedAt?: string;
|
|
4227
4547
|
completedAt?: string;
|
|
4228
4548
|
nodeRunId: string;
|
|
4229
4549
|
prompt: string;
|
|
4230
|
-
trace?: Array<
|
|
4231
|
-
|
|
4550
|
+
trace?: Array<{
|
|
4551
|
+
type: "text";
|
|
4552
|
+
text: string;
|
|
4553
|
+
/**
|
|
4554
|
+
* Any JSON-compatible value.
|
|
4555
|
+
*/
|
|
4556
|
+
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
4557
|
+
[key: string]: unknown;
|
|
4558
|
+
} | null;
|
|
4559
|
+
} | {
|
|
4560
|
+
type: "reasoning";
|
|
4561
|
+
text: string;
|
|
4562
|
+
/**
|
|
4563
|
+
* Any JSON-compatible value.
|
|
4564
|
+
*/
|
|
4565
|
+
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
4566
|
+
[key: string]: unknown;
|
|
4567
|
+
} | null;
|
|
4568
|
+
} | {
|
|
4569
|
+
type: "step-start";
|
|
4570
|
+
} | {
|
|
4571
|
+
type: "file";
|
|
4572
|
+
fileRef: {
|
|
4573
|
+
blobId: string;
|
|
4574
|
+
digest: string;
|
|
4575
|
+
sizeBytes: number;
|
|
4576
|
+
fileName?: string;
|
|
4577
|
+
mediaType?: string;
|
|
4578
|
+
logicalPath?: string;
|
|
4579
|
+
};
|
|
4580
|
+
/**
|
|
4581
|
+
* Any JSON-compatible value.
|
|
4582
|
+
*/
|
|
4583
|
+
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
4584
|
+
[key: string]: unknown;
|
|
4585
|
+
} | null;
|
|
4586
|
+
} | {
|
|
4587
|
+
context: {
|
|
4588
|
+
kind: "object";
|
|
4589
|
+
ref: {
|
|
4590
|
+
objectTypeId: string;
|
|
4591
|
+
primaryId: string;
|
|
4592
|
+
};
|
|
4593
|
+
} | {
|
|
4594
|
+
kind: "app-state";
|
|
4595
|
+
id: string;
|
|
4596
|
+
label: string;
|
|
4597
|
+
description: string;
|
|
4598
|
+
/**
|
|
4599
|
+
* Any JSON-compatible value.
|
|
4600
|
+
*/
|
|
4601
|
+
value: string | number | boolean | Array<unknown> | {
|
|
4602
|
+
[key: string]: unknown;
|
|
4603
|
+
} | null;
|
|
4604
|
+
};
|
|
4605
|
+
origin: "ambient" | "explicit";
|
|
4606
|
+
type: "context";
|
|
4607
|
+
} | {
|
|
4608
|
+
type: "tool-call";
|
|
4609
|
+
toolCallId: string;
|
|
4610
|
+
toolName: string;
|
|
4611
|
+
dynamic?: boolean;
|
|
4612
|
+
providerExecuted?: boolean;
|
|
4613
|
+
/**
|
|
4614
|
+
* Any JSON-compatible value.
|
|
4615
|
+
*/
|
|
4616
|
+
input: string | number | boolean | Array<unknown> | {
|
|
4617
|
+
[key: string]: unknown;
|
|
4618
|
+
} | null;
|
|
4619
|
+
/**
|
|
4620
|
+
* Any JSON-compatible value.
|
|
4621
|
+
*/
|
|
4622
|
+
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
4623
|
+
[key: string]: unknown;
|
|
4624
|
+
} | null;
|
|
4625
|
+
state: "output-available";
|
|
4626
|
+
/**
|
|
4627
|
+
* Any JSON-compatible value.
|
|
4628
|
+
*/
|
|
4629
|
+
output: string | number | boolean | Array<unknown> | {
|
|
4630
|
+
[key: string]: unknown;
|
|
4631
|
+
} | null;
|
|
4632
|
+
} | {
|
|
4633
|
+
type: "tool-call";
|
|
4634
|
+
toolCallId: string;
|
|
4635
|
+
toolName: string;
|
|
4636
|
+
dynamic?: boolean;
|
|
4637
|
+
providerExecuted?: boolean;
|
|
4638
|
+
/**
|
|
4639
|
+
* Any JSON-compatible value.
|
|
4640
|
+
*/
|
|
4641
|
+
input: string | number | boolean | Array<unknown> | {
|
|
4642
|
+
[key: string]: unknown;
|
|
4643
|
+
} | null;
|
|
4644
|
+
/**
|
|
4645
|
+
* Any JSON-compatible value.
|
|
4646
|
+
*/
|
|
4647
|
+
providerMetadata?: string | number | boolean | Array<unknown> | {
|
|
4648
|
+
[key: string]: unknown;
|
|
4649
|
+
} | null;
|
|
4650
|
+
state: "output-error";
|
|
4651
|
+
errorText: string;
|
|
4652
|
+
}>;
|
|
4653
|
+
diagnostics?: Array<string | number | boolean | Array<unknown> | {
|
|
4654
|
+
[key: string]: unknown;
|
|
4655
|
+
} | null>;
|
|
4656
|
+
failurePhase?: "agent-loop" | "structured-finalizer";
|
|
4232
4657
|
error?: {
|
|
4233
4658
|
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
|
|
4234
4659
|
message: string;
|
|
@@ -4370,6 +4795,15 @@ export type CancelWorkflowRunResponses = {
|
|
|
4370
4795
|
reasoningOutputTokens?: number;
|
|
4371
4796
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
4372
4797
|
};
|
|
4798
|
+
cost?: {
|
|
4799
|
+
amounts: Array<{
|
|
4800
|
+
currency: string;
|
|
4801
|
+
amountNanos: string;
|
|
4802
|
+
}>;
|
|
4803
|
+
ratedCallCount: number;
|
|
4804
|
+
unpriceableCallCount: number;
|
|
4805
|
+
unvaluedCallCount: number;
|
|
4806
|
+
};
|
|
4373
4807
|
startedAt?: string;
|
|
4374
4808
|
completedAt?: string;
|
|
4375
4809
|
};
|
|
@@ -6572,7 +7006,7 @@ export type PostAgentThreadMessageResponses = {
|
|
|
6572
7006
|
};
|
|
6573
7007
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
6574
7008
|
modelId?: string;
|
|
6575
|
-
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "error" | "other" | "unknown";
|
|
7009
|
+
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
|
|
6576
7010
|
usage?: {
|
|
6577
7011
|
inputTokens?: number;
|
|
6578
7012
|
outputTokens?: number;
|
|
@@ -6584,6 +7018,15 @@ export type PostAgentThreadMessageResponses = {
|
|
|
6584
7018
|
reasoningOutputTokens?: number;
|
|
6585
7019
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
6586
7020
|
};
|
|
7021
|
+
cost?: {
|
|
7022
|
+
amounts: Array<{
|
|
7023
|
+
currency: string;
|
|
7024
|
+
amountNanos: string;
|
|
7025
|
+
}>;
|
|
7026
|
+
ratedCallCount: number;
|
|
7027
|
+
unpriceableCallCount: number;
|
|
7028
|
+
unvaluedCallCount: number;
|
|
7029
|
+
};
|
|
6587
7030
|
diagnostics?: Array<{
|
|
6588
7031
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
6589
7032
|
severity: "warning" | "error";
|
|
@@ -6750,7 +7193,7 @@ export type CancelAgentRunResponses = {
|
|
|
6750
7193
|
};
|
|
6751
7194
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
6752
7195
|
modelId?: string;
|
|
6753
|
-
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "error" | "other" | "unknown";
|
|
7196
|
+
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
|
|
6754
7197
|
usage?: {
|
|
6755
7198
|
inputTokens?: number;
|
|
6756
7199
|
outputTokens?: number;
|
|
@@ -6762,6 +7205,15 @@ export type CancelAgentRunResponses = {
|
|
|
6762
7205
|
reasoningOutputTokens?: number;
|
|
6763
7206
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
6764
7207
|
};
|
|
7208
|
+
cost?: {
|
|
7209
|
+
amounts: Array<{
|
|
7210
|
+
currency: string;
|
|
7211
|
+
amountNanos: string;
|
|
7212
|
+
}>;
|
|
7213
|
+
ratedCallCount: number;
|
|
7214
|
+
unpriceableCallCount: number;
|
|
7215
|
+
unvaluedCallCount: number;
|
|
7216
|
+
};
|
|
6765
7217
|
diagnostics?: Array<{
|
|
6766
7218
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
6767
7219
|
severity: "warning" | "error";
|
|
@@ -6844,7 +7296,7 @@ export type RetryAgentRunResponses = {
|
|
|
6844
7296
|
};
|
|
6845
7297
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
6846
7298
|
modelId?: string;
|
|
6847
|
-
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "error" | "other" | "unknown";
|
|
7299
|
+
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
|
|
6848
7300
|
usage?: {
|
|
6849
7301
|
inputTokens?: number;
|
|
6850
7302
|
outputTokens?: number;
|
|
@@ -6856,6 +7308,15 @@ export type RetryAgentRunResponses = {
|
|
|
6856
7308
|
reasoningOutputTokens?: number;
|
|
6857
7309
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
6858
7310
|
};
|
|
7311
|
+
cost?: {
|
|
7312
|
+
amounts: Array<{
|
|
7313
|
+
currency: string;
|
|
7314
|
+
amountNanos: string;
|
|
7315
|
+
}>;
|
|
7316
|
+
ratedCallCount: number;
|
|
7317
|
+
unpriceableCallCount: number;
|
|
7318
|
+
unvaluedCallCount: number;
|
|
7319
|
+
};
|
|
6859
7320
|
diagnostics?: Array<{
|
|
6860
7321
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
6861
7322
|
severity: "warning" | "error";
|
|
@@ -6936,7 +7397,7 @@ export type ListAgentThreadRunsResponses = {
|
|
|
6936
7397
|
};
|
|
6937
7398
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
6938
7399
|
modelId?: string;
|
|
6939
|
-
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "error" | "other" | "unknown";
|
|
7400
|
+
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
|
|
6940
7401
|
usage?: {
|
|
6941
7402
|
inputTokens?: number;
|
|
6942
7403
|
outputTokens?: number;
|
|
@@ -6948,6 +7409,15 @@ export type ListAgentThreadRunsResponses = {
|
|
|
6948
7409
|
reasoningOutputTokens?: number;
|
|
6949
7410
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
6950
7411
|
};
|
|
7412
|
+
cost?: {
|
|
7413
|
+
amounts: Array<{
|
|
7414
|
+
currency: string;
|
|
7415
|
+
amountNanos: string;
|
|
7416
|
+
}>;
|
|
7417
|
+
ratedCallCount: number;
|
|
7418
|
+
unpriceableCallCount: number;
|
|
7419
|
+
unvaluedCallCount: number;
|
|
7420
|
+
};
|
|
6951
7421
|
diagnostics?: Array<{
|
|
6952
7422
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
6953
7423
|
severity: "warning" | "error";
|
|
@@ -7024,7 +7494,7 @@ export type GetAgentRunResponses = {
|
|
|
7024
7494
|
};
|
|
7025
7495
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
7026
7496
|
modelId?: string;
|
|
7027
|
-
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "error" | "other" | "unknown";
|
|
7497
|
+
finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
|
|
7028
7498
|
usage?: {
|
|
7029
7499
|
inputTokens?: number;
|
|
7030
7500
|
outputTokens?: number;
|
|
@@ -7036,6 +7506,15 @@ export type GetAgentRunResponses = {
|
|
|
7036
7506
|
reasoningOutputTokens?: number;
|
|
7037
7507
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
7038
7508
|
};
|
|
7509
|
+
cost?: {
|
|
7510
|
+
amounts: Array<{
|
|
7511
|
+
currency: string;
|
|
7512
|
+
amountNanos: string;
|
|
7513
|
+
}>;
|
|
7514
|
+
ratedCallCount: number;
|
|
7515
|
+
unpriceableCallCount: number;
|
|
7516
|
+
unvaluedCallCount: number;
|
|
7517
|
+
};
|
|
7039
7518
|
diagnostics?: Array<{
|
|
7040
7519
|
code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
|
|
7041
7520
|
severity: "warning" | "error";
|
|
@@ -8117,6 +8596,12 @@ export type ListProjectionsResponses = {
|
|
|
8117
8596
|
targetObjectTypeId: string;
|
|
8118
8597
|
};
|
|
8119
8598
|
};
|
|
8599
|
+
conflictResolution: {
|
|
8600
|
+
strategy: "editsWin";
|
|
8601
|
+
} | {
|
|
8602
|
+
strategy: "mostRecent";
|
|
8603
|
+
sourceTimestamp: string;
|
|
8604
|
+
};
|
|
8120
8605
|
latestRun: {
|
|
8121
8606
|
id: string;
|
|
8122
8607
|
projectId: string;
|
|
@@ -8563,6 +9048,12 @@ export type GetProjectionResponses = {
|
|
|
8563
9048
|
targetObjectTypeId: string;
|
|
8564
9049
|
};
|
|
8565
9050
|
};
|
|
9051
|
+
conflictResolution: {
|
|
9052
|
+
strategy: "editsWin";
|
|
9053
|
+
} | {
|
|
9054
|
+
strategy: "mostRecent";
|
|
9055
|
+
sourceTimestamp: string;
|
|
9056
|
+
};
|
|
8566
9057
|
latestRun: {
|
|
8567
9058
|
id: string;
|
|
8568
9059
|
projectId: string;
|