@sixb/client 0.1.2 → 0.1.4

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.
Files changed (37) hide show
  1. package/dist/browser.js +2 -2
  2. package/dist/{chunk-ctf97s25.js → chunk-5y58b4tr.js} +2 -2
  3. package/dist/{chunk-zfne7wxr.js → chunk-9bwme2g7.js} +1 -1
  4. package/dist/{chunk-skkt217g.js → chunk-ehjnq01h.js} +21 -5
  5. package/dist/{chunk-skkt217g.js.map → chunk-ehjnq01h.js.map} +3 -3
  6. package/dist/{chunk-5vp5zr0d.js → chunk-g19v53kt.js} +1 -1
  7. package/dist/{chunk-v4jdc1nb.js → chunk-hwg7mwq7.js} +3 -3
  8. package/dist/{chunk-tsdnw994.js → chunk-ks27bq5b.js} +2 -2
  9. package/dist/connectors/queries.d.ts.map +1 -1
  10. package/dist/generated/@tanstack/react-query.gen.d.ts +2285 -99
  11. package/dist/generated/@tanstack/react-query.gen.d.ts.map +1 -1
  12. package/dist/generated/index.d.ts +2 -2
  13. package/dist/generated/index.d.ts.map +1 -1
  14. package/dist/generated/sdk.gen.d.ts +15 -3
  15. package/dist/generated/sdk.gen.d.ts.map +1 -1
  16. package/dist/generated/types.gen.d.ts +612 -53
  17. package/dist/generated/types.gen.d.ts.map +1 -1
  18. package/dist/hooks.d.ts.map +1 -1
  19. package/dist/hooks.js +114 -27
  20. package/dist/hooks.js.map +4 -4
  21. package/dist/index.js +14 -8
  22. package/dist/index.js.map +1 -1
  23. package/dist/logs.js +3 -3
  24. package/dist/models.js +10 -4
  25. package/dist/models.js.map +1 -1
  26. package/dist/query.js +3 -3
  27. package/package.json +2 -2
  28. package/src/generated/@tanstack/react-query.gen.ts +145 -14
  29. package/src/generated/index.ts +26 -6
  30. package/src/generated/sdk.gen.ts +58 -9
  31. package/src/generated/types.gen.ts +733 -50
  32. package/src/hooks.ts +37 -16
  33. /package/dist/{chunk-ctf97s25.js.map → chunk-5y58b4tr.js.map} +0 -0
  34. /package/dist/{chunk-zfne7wxr.js.map → chunk-9bwme2g7.js.map} +0 -0
  35. /package/dist/{chunk-5vp5zr0d.js.map → chunk-g19v53kt.js.map} +0 -0
  36. /package/dist/{chunk-v4jdc1nb.js.map → chunk-hwg7mwq7.js.map} +0 -0
  37. /package/dist/{chunk-tsdnw994.js.map → chunk-ks27bq5b.js.map} +0 -0
@@ -62,6 +62,28 @@ export type ObjectQueryFacetsResponse = {
62
62
  facets: Array<ObjectQueryFacetResult>;
63
63
  plan: ObjectQueryPlanSummary;
64
64
  };
65
+ export type ObjectQueryLink = {
66
+ source: ObjectRef;
67
+ linkId: string;
68
+ target: ObjectRef;
69
+ properties?: {
70
+ [key: string]: unknown;
71
+ };
72
+ createdAt: string;
73
+ updatedAt: string;
74
+ };
75
+ export type ObjectQueryLinksResponse = {
76
+ /**
77
+ * Selected objects followed by visible endpoint objects from this link page, de-duplicated. Empty unless includeObjects is true.
78
+ */
79
+ objects: Array<ObjectQueryObject>;
80
+ /**
81
+ * Visible physical links in deterministic identity order.
82
+ */
83
+ links: Array<ObjectQueryLink>;
84
+ hasMore: boolean;
85
+ nextPageToken?: string;
86
+ };
65
87
  export type ObjectQueryErrorResponse = {
66
88
  error: string;
67
89
  issues?: Array<ObjectQueryIssue>;
@@ -84,10 +106,34 @@ export type ObjectQueryFacetsRequest = {
84
106
  query: ObjectQuery;
85
107
  facets: Array<ObjectQueryFacetRequest>;
86
108
  };
109
+ export type ObjectQueryLinksRequest = {
110
+ query: ObjectQuery;
111
+ direction?: "outgoing" | "incoming" | "both";
112
+ linkId?: string;
113
+ /**
114
+ * Include selected objects and visible endpoints from the current link page.
115
+ */
116
+ includeObjects?: boolean;
117
+ pageSize?: number;
118
+ /**
119
+ * Opaque token from the previous page. The project, normalized query, direction, and linkId must remain unchanged.
120
+ */
121
+ pageToken?: string;
122
+ };
123
+ export type ObjectRef = {
124
+ objectTypeId: string;
125
+ primaryId: string;
126
+ };
87
127
  export type ObjectQuery = {
88
128
  kind: "start";
89
129
  objectTypeId: string;
90
130
  includeSubtypes?: boolean;
131
+ } | {
132
+ kind: "refs";
133
+ /**
134
+ * One to 1,000 unique identities after normalization; duplicate entries are accepted and removed.
135
+ */
136
+ refs: Array<ObjectRef>;
91
137
  } | {
92
138
  kind: "filter";
93
139
  input: ObjectQuery;
@@ -1390,6 +1436,308 @@ export type ReactivateAuthMemberResponses = {
1390
1436
  };
1391
1437
  };
1392
1438
  export type ReactivateAuthMemberResponse = ReactivateAuthMemberResponses[keyof ReactivateAuthMemberResponses];
1439
+ export type GetAiAccountingOverviewData = {
1440
+ body?: never;
1441
+ path?: never;
1442
+ query: {
1443
+ from: string;
1444
+ to: string;
1445
+ providerId?: string;
1446
+ modelId?: string;
1447
+ bucket: "hour" | "day" | "week";
1448
+ };
1449
+ url: "/api/ai/accounting/overview";
1450
+ };
1451
+ export type GetAiAccountingOverviewErrors = {
1452
+ /**
1453
+ * Response for status 400
1454
+ */
1455
+ 400: {
1456
+ error: string;
1457
+ };
1458
+ /**
1459
+ * Response for status 501
1460
+ */
1461
+ 501: {
1462
+ error: string;
1463
+ };
1464
+ };
1465
+ export type GetAiAccountingOverviewError = GetAiAccountingOverviewErrors[keyof GetAiAccountingOverviewErrors];
1466
+ export type GetAiAccountingOverviewResponses = {
1467
+ /**
1468
+ * Response for status 200
1469
+ */
1470
+ 200: {
1471
+ range: {
1472
+ from: string;
1473
+ to: string;
1474
+ };
1475
+ bucket: "hour" | "day" | "week";
1476
+ totals: {
1477
+ modelCallCount: number;
1478
+ usage: {
1479
+ inputTokens?: number;
1480
+ outputTokens?: number;
1481
+ totalTokens?: number;
1482
+ uncachedInputTokens?: number;
1483
+ cacheReadInputTokens?: number;
1484
+ cacheWriteInputTokens?: number;
1485
+ textOutputTokens?: number;
1486
+ reasoningOutputTokens?: number;
1487
+ reportingStatus: "complete" | "partial" | "unavailable";
1488
+ };
1489
+ costs: {
1490
+ amounts: Array<{
1491
+ currency: string;
1492
+ amountNanos: string;
1493
+ }>;
1494
+ ratedCallCount: number;
1495
+ unpriceableCallCount: number;
1496
+ unvaluedCallCount: number;
1497
+ };
1498
+ };
1499
+ series: Array<{
1500
+ modelCallCount: number;
1501
+ usage: {
1502
+ inputTokens?: number;
1503
+ outputTokens?: number;
1504
+ totalTokens?: number;
1505
+ uncachedInputTokens?: number;
1506
+ cacheReadInputTokens?: number;
1507
+ cacheWriteInputTokens?: number;
1508
+ textOutputTokens?: number;
1509
+ reasoningOutputTokens?: number;
1510
+ reportingStatus: "complete" | "partial" | "unavailable";
1511
+ };
1512
+ costs: {
1513
+ amounts: Array<{
1514
+ currency: string;
1515
+ amountNanos: string;
1516
+ }>;
1517
+ ratedCallCount: number;
1518
+ unpriceableCallCount: number;
1519
+ unvaluedCallCount: number;
1520
+ };
1521
+ start: string;
1522
+ end: string;
1523
+ }>;
1524
+ models: Array<{
1525
+ modelCallCount: number;
1526
+ usage: {
1527
+ inputTokens?: number;
1528
+ outputTokens?: number;
1529
+ totalTokens?: number;
1530
+ uncachedInputTokens?: number;
1531
+ cacheReadInputTokens?: number;
1532
+ cacheWriteInputTokens?: number;
1533
+ textOutputTokens?: number;
1534
+ reasoningOutputTokens?: number;
1535
+ reportingStatus: "complete" | "partial" | "unavailable";
1536
+ };
1537
+ costs: {
1538
+ amounts: Array<{
1539
+ currency: string;
1540
+ amountNanos: string;
1541
+ }>;
1542
+ ratedCallCount: number;
1543
+ unpriceableCallCount: number;
1544
+ unvaluedCallCount: number;
1545
+ };
1546
+ providerId: string;
1547
+ modelId: string;
1548
+ }>;
1549
+ agents: Array<{
1550
+ modelCallCount: number;
1551
+ usage: {
1552
+ inputTokens?: number;
1553
+ outputTokens?: number;
1554
+ totalTokens?: number;
1555
+ uncachedInputTokens?: number;
1556
+ cacheReadInputTokens?: number;
1557
+ cacheWriteInputTokens?: number;
1558
+ textOutputTokens?: number;
1559
+ reasoningOutputTokens?: number;
1560
+ reportingStatus: "complete" | "partial" | "unavailable";
1561
+ };
1562
+ costs: {
1563
+ amounts: Array<{
1564
+ currency: string;
1565
+ amountNanos: string;
1566
+ }>;
1567
+ ratedCallCount: number;
1568
+ unpriceableCallCount: number;
1569
+ unvaluedCallCount: number;
1570
+ };
1571
+ agentId: string;
1572
+ }>;
1573
+ workflows: Array<{
1574
+ modelCallCount: number;
1575
+ usage: {
1576
+ inputTokens?: number;
1577
+ outputTokens?: number;
1578
+ totalTokens?: number;
1579
+ uncachedInputTokens?: number;
1580
+ cacheReadInputTokens?: number;
1581
+ cacheWriteInputTokens?: number;
1582
+ textOutputTokens?: number;
1583
+ reasoningOutputTokens?: number;
1584
+ reportingStatus: "complete" | "partial" | "unavailable";
1585
+ };
1586
+ costs: {
1587
+ amounts: Array<{
1588
+ currency: string;
1589
+ amountNanos: string;
1590
+ }>;
1591
+ ratedCallCount: number;
1592
+ unpriceableCallCount: number;
1593
+ unvaluedCallCount: number;
1594
+ };
1595
+ workflowId: string;
1596
+ }>;
1597
+ };
1598
+ };
1599
+ export type GetAiAccountingOverviewResponse = GetAiAccountingOverviewResponses[keyof GetAiAccountingOverviewResponses];
1600
+ export type ListAiModelCallsData = {
1601
+ body?: never;
1602
+ path?: never;
1603
+ query: {
1604
+ from: string;
1605
+ to: string;
1606
+ providerId?: string;
1607
+ modelId?: string;
1608
+ executionId?: string;
1609
+ valuationStatus?: "rated" | "unpriceable" | "unvalued";
1610
+ limit?: string;
1611
+ offset?: string;
1612
+ };
1613
+ url: "/api/ai/model-calls";
1614
+ };
1615
+ export type ListAiModelCallsErrors = {
1616
+ /**
1617
+ * Response for status 400
1618
+ */
1619
+ 400: {
1620
+ error: string;
1621
+ };
1622
+ /**
1623
+ * Response for status 501
1624
+ */
1625
+ 501: {
1626
+ error: string;
1627
+ };
1628
+ };
1629
+ export type ListAiModelCallsError = ListAiModelCallsErrors[keyof ListAiModelCallsErrors];
1630
+ export type ListAiModelCallsResponses = {
1631
+ /**
1632
+ * Response for status 200
1633
+ */
1634
+ 200: {
1635
+ items: Array<{
1636
+ usage: {
1637
+ id: string;
1638
+ executionId: string;
1639
+ attempt: number;
1640
+ callId: string;
1641
+ providerId: string;
1642
+ requestedModelId: string;
1643
+ responseModelId?: string;
1644
+ responseId: string;
1645
+ usage: {
1646
+ inputTokens?: number;
1647
+ outputTokens?: number;
1648
+ totalTokens?: number;
1649
+ uncachedInputTokens?: number;
1650
+ cacheReadInputTokens?: number;
1651
+ cacheWriteInputTokens?: number;
1652
+ textOutputTokens?: number;
1653
+ reasoningOutputTokens?: number;
1654
+ reportingStatus: "complete" | "partial" | "unavailable";
1655
+ };
1656
+ occurredAt: string;
1657
+ recordedAt: string;
1658
+ };
1659
+ attribution?: {
1660
+ kind: "agent";
1661
+ agentId: string;
1662
+ agentRunId: string;
1663
+ threadId: string;
1664
+ } | {
1665
+ kind: "workflowAgent";
1666
+ agentId: string;
1667
+ nodeRunId: string;
1668
+ workflowId: string;
1669
+ workflowRunId: string;
1670
+ };
1671
+ cost?: {
1672
+ status: "rated";
1673
+ billingIdentity: {
1674
+ providerId: string;
1675
+ modelId: string;
1676
+ };
1677
+ pricingContext: {
1678
+ serviceTier?: string;
1679
+ batch?: boolean;
1680
+ region?: string;
1681
+ inferenceGeo?: string;
1682
+ routedProviderId?: string;
1683
+ deploymentId?: string;
1684
+ inferenceProfileId?: string;
1685
+ cacheWriteTtlSeconds?: number;
1686
+ mode?: string;
1687
+ };
1688
+ priceSource: {
1689
+ sourceId: string;
1690
+ sourceEntryId: string;
1691
+ sourceVersion: string;
1692
+ sourceUrl: string;
1693
+ observedAt: string;
1694
+ };
1695
+ money: {
1696
+ currency: string;
1697
+ amountNanos: string;
1698
+ };
1699
+ components: Array<{
1700
+ meter: "tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning";
1701
+ quantity: string;
1702
+ rateAmountNanosPerMillion: string;
1703
+ chargeAmountNanos: string;
1704
+ }>;
1705
+ ratedAt: string;
1706
+ } | {
1707
+ status: "unpriceable";
1708
+ billingIdentity?: {
1709
+ providerId: string;
1710
+ modelId: string;
1711
+ };
1712
+ pricingContext: {
1713
+ serviceTier?: string;
1714
+ batch?: boolean;
1715
+ region?: string;
1716
+ inferenceGeo?: string;
1717
+ routedProviderId?: string;
1718
+ deploymentId?: string;
1719
+ inferenceProfileId?: string;
1720
+ cacheWriteTtlSeconds?: number;
1721
+ mode?: string;
1722
+ };
1723
+ priceSource: {
1724
+ sourceId: string;
1725
+ sourceEntryId: string;
1726
+ sourceVersion: string;
1727
+ sourceUrl: string;
1728
+ observedAt: string;
1729
+ };
1730
+ reason: "missingBillingIdentity" | "missingCatalogEntry" | "missingUsageMeter" | "unsupportedPricingDimension" | "invalidUsageForFormula";
1731
+ missingMeters?: Array<"tokens.input.total" | "tokens.input.uncached" | "tokens.input.cacheRead" | "tokens.input.cacheWrite" | "tokens.output.total" | "tokens.output.text" | "tokens.output.reasoning">;
1732
+ ratedAt: string;
1733
+ };
1734
+ valuationStatus: "rated" | "unpriceable" | "unvalued";
1735
+ }>;
1736
+ hasMore: boolean;
1737
+ total: number;
1738
+ };
1739
+ };
1740
+ export type ListAiModelCallsResponse = ListAiModelCallsResponses[keyof ListAiModelCallsResponses];
1393
1741
  export type GetProjectInfoData = {
1394
1742
  body?: never;
1395
1743
  path?: never;
@@ -4165,6 +4513,15 @@ export type GetWorkflowRunResponses = {
4165
4513
  reasoningOutputTokens?: number;
4166
4514
  reportingStatus: "complete" | "partial" | "unavailable";
4167
4515
  };
4516
+ cost?: {
4517
+ amounts: Array<{
4518
+ currency: string;
4519
+ amountNanos: string;
4520
+ }>;
4521
+ ratedCallCount: number;
4522
+ unpriceableCallCount: number;
4523
+ unvaluedCallCount: number;
4524
+ };
4168
4525
  startedAt?: string;
4169
4526
  completedAt?: string;
4170
4527
  };
@@ -4223,12 +4580,126 @@ export type GetWorkflowAgentNodeExecutionResponses = {
4223
4580
  reasoningOutputTokens?: number;
4224
4581
  reportingStatus: "complete" | "partial" | "unavailable";
4225
4582
  };
4583
+ cost?: {
4584
+ amounts: Array<{
4585
+ currency: string;
4586
+ amountNanos: string;
4587
+ }>;
4588
+ ratedCallCount: number;
4589
+ unpriceableCallCount: number;
4590
+ unvaluedCallCount: number;
4591
+ };
4226
4592
  startedAt?: string;
4227
4593
  completedAt?: string;
4228
4594
  nodeRunId: string;
4229
4595
  prompt: string;
4230
- trace?: Array<unknown>;
4231
- diagnostics?: Array<unknown>;
4596
+ trace?: Array<{
4597
+ type: "text";
4598
+ text: string;
4599
+ /**
4600
+ * Any JSON-compatible value.
4601
+ */
4602
+ providerMetadata?: string | number | boolean | Array<unknown> | {
4603
+ [key: string]: unknown;
4604
+ } | null;
4605
+ } | {
4606
+ type: "reasoning";
4607
+ text: string;
4608
+ /**
4609
+ * Any JSON-compatible value.
4610
+ */
4611
+ providerMetadata?: string | number | boolean | Array<unknown> | {
4612
+ [key: string]: unknown;
4613
+ } | null;
4614
+ } | {
4615
+ type: "step-start";
4616
+ } | {
4617
+ type: "file";
4618
+ fileRef: {
4619
+ blobId: string;
4620
+ digest: string;
4621
+ sizeBytes: number;
4622
+ fileName?: string;
4623
+ mediaType?: string;
4624
+ logicalPath?: string;
4625
+ };
4626
+ /**
4627
+ * Any JSON-compatible value.
4628
+ */
4629
+ providerMetadata?: string | number | boolean | Array<unknown> | {
4630
+ [key: string]: unknown;
4631
+ } | null;
4632
+ } | {
4633
+ context: {
4634
+ kind: "object";
4635
+ ref: {
4636
+ objectTypeId: string;
4637
+ primaryId: string;
4638
+ };
4639
+ } | {
4640
+ kind: "app-state";
4641
+ id: string;
4642
+ label: string;
4643
+ description: string;
4644
+ /**
4645
+ * Any JSON-compatible value.
4646
+ */
4647
+ value: string | number | boolean | Array<unknown> | {
4648
+ [key: string]: unknown;
4649
+ } | null;
4650
+ };
4651
+ origin: "ambient" | "explicit";
4652
+ type: "context";
4653
+ } | {
4654
+ type: "tool-call";
4655
+ toolCallId: string;
4656
+ toolName: string;
4657
+ dynamic?: boolean;
4658
+ providerExecuted?: boolean;
4659
+ /**
4660
+ * Any JSON-compatible value.
4661
+ */
4662
+ input: string | number | boolean | Array<unknown> | {
4663
+ [key: string]: unknown;
4664
+ } | null;
4665
+ /**
4666
+ * Any JSON-compatible value.
4667
+ */
4668
+ providerMetadata?: string | number | boolean | Array<unknown> | {
4669
+ [key: string]: unknown;
4670
+ } | null;
4671
+ state: "output-available";
4672
+ /**
4673
+ * Any JSON-compatible value.
4674
+ */
4675
+ output: string | number | boolean | Array<unknown> | {
4676
+ [key: string]: unknown;
4677
+ } | null;
4678
+ } | {
4679
+ type: "tool-call";
4680
+ toolCallId: string;
4681
+ toolName: string;
4682
+ dynamic?: boolean;
4683
+ providerExecuted?: boolean;
4684
+ /**
4685
+ * Any JSON-compatible value.
4686
+ */
4687
+ input: string | number | boolean | Array<unknown> | {
4688
+ [key: string]: unknown;
4689
+ } | null;
4690
+ /**
4691
+ * Any JSON-compatible value.
4692
+ */
4693
+ providerMetadata?: string | number | boolean | Array<unknown> | {
4694
+ [key: string]: unknown;
4695
+ } | null;
4696
+ state: "output-error";
4697
+ errorText: string;
4698
+ }>;
4699
+ diagnostics?: Array<string | number | boolean | Array<unknown> | {
4700
+ [key: string]: unknown;
4701
+ } | null>;
4702
+ failurePhase?: "agent-loop" | "structured-finalizer";
4232
4703
  error?: {
4233
4704
  code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed";
4234
4705
  message: string;
@@ -4370,6 +4841,15 @@ export type CancelWorkflowRunResponses = {
4370
4841
  reasoningOutputTokens?: number;
4371
4842
  reportingStatus: "complete" | "partial" | "unavailable";
4372
4843
  };
4844
+ cost?: {
4845
+ amounts: Array<{
4846
+ currency: string;
4847
+ amountNanos: string;
4848
+ }>;
4849
+ ratedCallCount: number;
4850
+ unpriceableCallCount: number;
4851
+ unvaluedCallCount: number;
4852
+ };
4373
4853
  startedAt?: string;
4374
4854
  completedAt?: string;
4375
4855
  };
@@ -5167,6 +5647,34 @@ export type QueryObjectsResponses = {
5167
5647
  200: ObjectQueryResponse;
5168
5648
  };
5169
5649
  export type QueryObjectsResponse = QueryObjectsResponses[keyof QueryObjectsResponses];
5650
+ export type QueryObjectLinksData = {
5651
+ body: ObjectQueryLinksRequest;
5652
+ path?: never;
5653
+ query?: never;
5654
+ url: "/api/objects/query/links";
5655
+ };
5656
+ export type QueryObjectLinksErrors = {
5657
+ /**
5658
+ * Response for status 400
5659
+ */
5660
+ 400: ObjectQueryErrorResponse;
5661
+ /**
5662
+ * Response for status 403
5663
+ */
5664
+ 403: ErrorResponse;
5665
+ /**
5666
+ * Response for status 500
5667
+ */
5668
+ 500: ErrorResponse;
5669
+ };
5670
+ export type QueryObjectLinksError = QueryObjectLinksErrors[keyof QueryObjectLinksErrors];
5671
+ export type QueryObjectLinksResponses = {
5672
+ /**
5673
+ * Response for status 200
5674
+ */
5675
+ 200: ObjectQueryLinksResponse;
5676
+ };
5677
+ export type QueryObjectLinksResponse = QueryObjectLinksResponses[keyof QueryObjectLinksResponses];
5170
5678
  export type CountObjectsData = {
5171
5679
  body: ObjectQueryCountRequest;
5172
5680
  path?: never;
@@ -6102,6 +6610,11 @@ export type ListAgentsResponses = {
6102
6610
  stopWhen?: {
6103
6611
  maxSteps?: number;
6104
6612
  };
6613
+ context?: {
6614
+ windowTokens?: number;
6615
+ reserveTokens?: number;
6616
+ keepRecentTokens?: number;
6617
+ };
6105
6618
  };
6106
6619
  }>;
6107
6620
  };
@@ -6138,6 +6651,11 @@ export type GetAgentResponses = {
6138
6651
  stopWhen?: {
6139
6652
  maxSteps?: number;
6140
6653
  };
6654
+ context?: {
6655
+ windowTokens?: number;
6656
+ reserveTokens?: number;
6657
+ keepRecentTokens?: number;
6658
+ };
6141
6659
  };
6142
6660
  };
6143
6661
  };
@@ -6467,6 +6985,11 @@ export type ListAgentThreadMessagesResponses = {
6467
6985
  path?: string;
6468
6986
  message: string;
6469
6987
  }>;
6988
+ compaction?: {
6989
+ checkpointId: string;
6990
+ summary: string;
6991
+ createdAt: string;
6992
+ };
6470
6993
  /**
6471
6994
  * Any JSON-compatible value.
6472
6995
  */
@@ -6572,7 +7095,7 @@ export type PostAgentThreadMessageResponses = {
6572
7095
  };
6573
7096
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
6574
7097
  modelId?: string;
6575
- finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "error" | "other" | "unknown";
7098
+ finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
6576
7099
  usage?: {
6577
7100
  inputTokens?: number;
6578
7101
  outputTokens?: number;
@@ -6584,6 +7107,15 @@ export type PostAgentThreadMessageResponses = {
6584
7107
  reasoningOutputTokens?: number;
6585
7108
  reportingStatus: "complete" | "partial" | "unavailable";
6586
7109
  };
7110
+ cost?: {
7111
+ amounts: Array<{
7112
+ currency: string;
7113
+ amountNanos: string;
7114
+ }>;
7115
+ ratedCallCount: number;
7116
+ unpriceableCallCount: number;
7117
+ unvaluedCallCount: number;
7118
+ };
6587
7119
  diagnostics?: Array<{
6588
7120
  code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
6589
7121
  severity: "warning" | "error";
@@ -6750,7 +7282,7 @@ export type CancelAgentRunResponses = {
6750
7282
  };
6751
7283
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
6752
7284
  modelId?: string;
6753
- finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "error" | "other" | "unknown";
7285
+ finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
6754
7286
  usage?: {
6755
7287
  inputTokens?: number;
6756
7288
  outputTokens?: number;
@@ -6762,6 +7294,15 @@ export type CancelAgentRunResponses = {
6762
7294
  reasoningOutputTokens?: number;
6763
7295
  reportingStatus: "complete" | "partial" | "unavailable";
6764
7296
  };
7297
+ cost?: {
7298
+ amounts: Array<{
7299
+ currency: string;
7300
+ amountNanos: string;
7301
+ }>;
7302
+ ratedCallCount: number;
7303
+ unpriceableCallCount: number;
7304
+ unvaluedCallCount: number;
7305
+ };
6765
7306
  diagnostics?: Array<{
6766
7307
  code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
6767
7308
  severity: "warning" | "error";
@@ -6844,7 +7385,7 @@ export type RetryAgentRunResponses = {
6844
7385
  };
6845
7386
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
6846
7387
  modelId?: string;
6847
- finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "error" | "other" | "unknown";
7388
+ finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
6848
7389
  usage?: {
6849
7390
  inputTokens?: number;
6850
7391
  outputTokens?: number;
@@ -6856,6 +7397,15 @@ export type RetryAgentRunResponses = {
6856
7397
  reasoningOutputTokens?: number;
6857
7398
  reportingStatus: "complete" | "partial" | "unavailable";
6858
7399
  };
7400
+ cost?: {
7401
+ amounts: Array<{
7402
+ currency: string;
7403
+ amountNanos: string;
7404
+ }>;
7405
+ ratedCallCount: number;
7406
+ unpriceableCallCount: number;
7407
+ unvaluedCallCount: number;
7408
+ };
6859
7409
  diagnostics?: Array<{
6860
7410
  code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
6861
7411
  severity: "warning" | "error";
@@ -6936,7 +7486,7 @@ export type ListAgentThreadRunsResponses = {
6936
7486
  };
6937
7487
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
6938
7488
  modelId?: string;
6939
- finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "error" | "other" | "unknown";
7489
+ finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
6940
7490
  usage?: {
6941
7491
  inputTokens?: number;
6942
7492
  outputTokens?: number;
@@ -6948,6 +7498,15 @@ export type ListAgentThreadRunsResponses = {
6948
7498
  reasoningOutputTokens?: number;
6949
7499
  reportingStatus: "complete" | "partial" | "unavailable";
6950
7500
  };
7501
+ cost?: {
7502
+ amounts: Array<{
7503
+ currency: string;
7504
+ amountNanos: string;
7505
+ }>;
7506
+ ratedCallCount: number;
7507
+ unpriceableCallCount: number;
7508
+ unvaluedCallCount: number;
7509
+ };
6951
7510
  diagnostics?: Array<{
6952
7511
  code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
6953
7512
  severity: "warning" | "error";
@@ -7024,7 +7583,7 @@ export type GetAgentRunResponses = {
7024
7583
  };
7025
7584
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
7026
7585
  modelId?: string;
7027
- finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "error" | "other" | "unknown";
7586
+ finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "error" | "other" | "unknown";
7028
7587
  usage?: {
7029
7588
  inputTokens?: number;
7030
7589
  outputTokens?: number;
@@ -7036,6 +7595,15 @@ export type GetAgentRunResponses = {
7036
7595
  reasoningOutputTokens?: number;
7037
7596
  reportingStatus: "complete" | "partial" | "unavailable";
7038
7597
  };
7598
+ cost?: {
7599
+ amounts: Array<{
7600
+ currency: string;
7601
+ amountNanos: string;
7602
+ }>;
7603
+ ratedCallCount: number;
7604
+ unpriceableCallCount: number;
7605
+ unvaluedCallCount: number;
7606
+ };
7039
7607
  diagnostics?: Array<{
7040
7608
  code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
7041
7609
  severity: "warning" | "error";
@@ -7064,52 +7632,25 @@ export type GetAgentRunResponses = {
7064
7632
  };
7065
7633
  };
7066
7634
  export type GetAgentRunResponse = GetAgentRunResponses[keyof GetAgentRunResponses];
7067
- export type ListObjectLinksData = {
7635
+ export type ListModelsData = {
7068
7636
  body?: never;
7069
- path: {
7070
- objectTypeId: string;
7071
- objectId: string;
7072
- };
7073
- query?: {
7074
- linkId?: string;
7075
- direction?: "outgoing" | "incoming" | "both";
7076
- };
7077
- url: "/api/objects/{objectTypeId}/{objectId}/links";
7078
- };
7079
- export type ListObjectLinksErrors = {
7080
- /**
7081
- * Response for status 400
7082
- */
7083
- 400: {
7084
- error: string;
7085
- };
7086
- /**
7087
- * Response for status 404
7088
- */
7089
- 404: {
7090
- error: string;
7091
- };
7637
+ path?: never;
7638
+ query?: never;
7639
+ url: "/api/models";
7092
7640
  };
7093
- export type ListObjectLinksError = ListObjectLinksErrors[keyof ListObjectLinksErrors];
7094
- export type ListObjectLinksResponses = {
7641
+ export type ListModelsResponses = {
7095
7642
  /**
7096
7643
  * Response for status 200
7097
7644
  */
7098
- 200: Array<{
7099
- projectId: string;
7100
- sourceTypeId: string;
7101
- sourceId: string;
7102
- linkId: string;
7103
- targetTypeId: string;
7104
- targetId: string;
7105
- properties?: {
7106
- [key: string]: unknown;
7107
- };
7108
- createdAt: string;
7109
- updatedAt: string;
7110
- }>;
7645
+ 200: {
7646
+ language: Array<{
7647
+ provider: string;
7648
+ modelId: string;
7649
+ isDefault: boolean;
7650
+ }>;
7651
+ };
7111
7652
  };
7112
- export type ListObjectLinksResponse = ListObjectLinksResponses[keyof ListObjectLinksResponses];
7653
+ export type ListModelsResponse = ListModelsResponses[keyof ListModelsResponses];
7113
7654
  export type RemoveObjectLinkData = {
7114
7655
  body?: never;
7115
7656
  path: {
@@ -8117,6 +8658,12 @@ export type ListProjectionsResponses = {
8117
8658
  targetObjectTypeId: string;
8118
8659
  };
8119
8660
  };
8661
+ conflictResolution: {
8662
+ strategy: "editsWin";
8663
+ } | {
8664
+ strategy: "mostRecent";
8665
+ sourceTimestamp: string;
8666
+ };
8120
8667
  latestRun: {
8121
8668
  id: string;
8122
8669
  projectId: string;
@@ -8388,12 +8935,15 @@ export type ListProjectionsResponses = {
8388
8935
  _tag: "TelemetryProjectionDefinition";
8389
8936
  id: string;
8390
8937
  objectTypeId: string;
8391
- propertyId: string;
8392
8938
  datasetId: string;
8393
8939
  objectIdField: string;
8394
8940
  atField: string;
8395
- valueField: string;
8396
- unitField?: string;
8941
+ properties: {
8942
+ [key: string]: {
8943
+ valueField: string;
8944
+ unitField?: string;
8945
+ };
8946
+ };
8397
8947
  latestRun: {
8398
8948
  id: string;
8399
8949
  projectId: string;
@@ -8563,6 +9113,12 @@ export type GetProjectionResponses = {
8563
9113
  targetObjectTypeId: string;
8564
9114
  };
8565
9115
  };
9116
+ conflictResolution: {
9117
+ strategy: "editsWin";
9118
+ } | {
9119
+ strategy: "mostRecent";
9120
+ sourceTimestamp: string;
9121
+ };
8566
9122
  latestRun: {
8567
9123
  id: string;
8568
9124
  projectId: string;
@@ -8832,12 +9388,15 @@ export type GetProjectionResponses = {
8832
9388
  _tag: "TelemetryProjectionDefinition";
8833
9389
  id: string;
8834
9390
  objectTypeId: string;
8835
- propertyId: string;
8836
9391
  datasetId: string;
8837
9392
  objectIdField: string;
8838
9393
  atField: string;
8839
- valueField: string;
8840
- unitField?: string;
9394
+ properties: {
9395
+ [key: string]: {
9396
+ valueField: string;
9397
+ unitField?: string;
9398
+ };
9399
+ };
8841
9400
  latestRun: {
8842
9401
  id: string;
8843
9402
  projectId: string;