@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.
- package/dist/browser.js +2 -2
- package/dist/{chunk-ctf97s25.js → chunk-5y58b4tr.js} +2 -2
- package/dist/{chunk-zfne7wxr.js → chunk-9bwme2g7.js} +1 -1
- package/dist/{chunk-skkt217g.js → chunk-ehjnq01h.js} +21 -5
- package/dist/{chunk-skkt217g.js.map → chunk-ehjnq01h.js.map} +3 -3
- package/dist/{chunk-5vp5zr0d.js → chunk-g19v53kt.js} +1 -1
- package/dist/{chunk-v4jdc1nb.js → chunk-hwg7mwq7.js} +3 -3
- package/dist/{chunk-tsdnw994.js → chunk-ks27bq5b.js} +2 -2
- package/dist/connectors/queries.d.ts.map +1 -1
- package/dist/generated/@tanstack/react-query.gen.d.ts +2285 -99
- 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 +15 -3
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/types.gen.d.ts +612 -53
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/hooks.d.ts.map +1 -1
- package/dist/hooks.js +114 -27
- package/dist/hooks.js.map +4 -4
- package/dist/index.js +14 -8
- package/dist/index.js.map +1 -1
- package/dist/logs.js +3 -3
- package/dist/models.js +10 -4
- 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 +145 -14
- package/src/generated/index.ts +26 -6
- package/src/generated/sdk.gen.ts +58 -9
- package/src/generated/types.gen.ts +733 -50
- package/src/hooks.ts +37 -16
- /package/dist/{chunk-ctf97s25.js.map → chunk-5y58b4tr.js.map} +0 -0
- /package/dist/{chunk-zfne7wxr.js.map → chunk-9bwme2g7.js.map} +0 -0
- /package/dist/{chunk-5vp5zr0d.js.map → chunk-g19v53kt.js.map} +0 -0
- /package/dist/{chunk-v4jdc1nb.js.map → chunk-hwg7mwq7.js.map} +0 -0
- /package/dist/{chunk-tsdnw994.js.map → chunk-ks27bq5b.js.map} +0 -0
|
@@ -76,6 +76,30 @@ export type ObjectQueryFacetsResponse = {
|
|
|
76
76
|
plan: ObjectQueryPlanSummary
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
+
export type ObjectQueryLink = {
|
|
80
|
+
source: ObjectRef
|
|
81
|
+
linkId: string
|
|
82
|
+
target: ObjectRef
|
|
83
|
+
properties?: {
|
|
84
|
+
[key: string]: unknown
|
|
85
|
+
}
|
|
86
|
+
createdAt: string
|
|
87
|
+
updatedAt: string
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export type ObjectQueryLinksResponse = {
|
|
91
|
+
/**
|
|
92
|
+
* Selected objects followed by visible endpoint objects from this link page, de-duplicated. Empty unless includeObjects is true.
|
|
93
|
+
*/
|
|
94
|
+
objects: Array<ObjectQueryObject>
|
|
95
|
+
/**
|
|
96
|
+
* Visible physical links in deterministic identity order.
|
|
97
|
+
*/
|
|
98
|
+
links: Array<ObjectQueryLink>
|
|
99
|
+
hasMore: boolean
|
|
100
|
+
nextPageToken?: string
|
|
101
|
+
}
|
|
102
|
+
|
|
79
103
|
export type ObjectQueryErrorResponse = {
|
|
80
104
|
error: string
|
|
81
105
|
issues?: Array<ObjectQueryIssue>
|
|
@@ -104,12 +128,39 @@ export type ObjectQueryFacetsRequest = {
|
|
|
104
128
|
facets: Array<ObjectQueryFacetRequest>
|
|
105
129
|
}
|
|
106
130
|
|
|
131
|
+
export type ObjectQueryLinksRequest = {
|
|
132
|
+
query: ObjectQuery
|
|
133
|
+
direction?: "outgoing" | "incoming" | "both"
|
|
134
|
+
linkId?: string
|
|
135
|
+
/**
|
|
136
|
+
* Include selected objects and visible endpoints from the current link page.
|
|
137
|
+
*/
|
|
138
|
+
includeObjects?: boolean
|
|
139
|
+
pageSize?: number
|
|
140
|
+
/**
|
|
141
|
+
* Opaque token from the previous page. The project, normalized query, direction, and linkId must remain unchanged.
|
|
142
|
+
*/
|
|
143
|
+
pageToken?: string
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export type ObjectRef = {
|
|
147
|
+
objectTypeId: string
|
|
148
|
+
primaryId: string
|
|
149
|
+
}
|
|
150
|
+
|
|
107
151
|
export type ObjectQuery =
|
|
108
152
|
| {
|
|
109
153
|
kind: "start"
|
|
110
154
|
objectTypeId: string
|
|
111
155
|
includeSubtypes?: boolean
|
|
112
156
|
}
|
|
157
|
+
| {
|
|
158
|
+
kind: "refs"
|
|
159
|
+
/**
|
|
160
|
+
* One to 1,000 unique identities after normalization; duplicate entries are accepted and removed.
|
|
161
|
+
*/
|
|
162
|
+
refs: Array<ObjectRef>
|
|
163
|
+
}
|
|
113
164
|
| {
|
|
114
165
|
kind: "filter"
|
|
115
166
|
input: ObjectQuery
|
|
@@ -1584,6 +1635,344 @@ export type ReactivateAuthMemberResponses = {
|
|
|
1584
1635
|
export type ReactivateAuthMemberResponse =
|
|
1585
1636
|
ReactivateAuthMemberResponses[keyof ReactivateAuthMemberResponses]
|
|
1586
1637
|
|
|
1638
|
+
export type GetAiAccountingOverviewData = {
|
|
1639
|
+
body?: never
|
|
1640
|
+
path?: never
|
|
1641
|
+
query: {
|
|
1642
|
+
from: string
|
|
1643
|
+
to: string
|
|
1644
|
+
providerId?: string
|
|
1645
|
+
modelId?: string
|
|
1646
|
+
bucket: "hour" | "day" | "week"
|
|
1647
|
+
}
|
|
1648
|
+
url: "/api/ai/accounting/overview"
|
|
1649
|
+
}
|
|
1650
|
+
|
|
1651
|
+
export type GetAiAccountingOverviewErrors = {
|
|
1652
|
+
/**
|
|
1653
|
+
* Response for status 400
|
|
1654
|
+
*/
|
|
1655
|
+
400: {
|
|
1656
|
+
error: string
|
|
1657
|
+
}
|
|
1658
|
+
/**
|
|
1659
|
+
* Response for status 501
|
|
1660
|
+
*/
|
|
1661
|
+
501: {
|
|
1662
|
+
error: string
|
|
1663
|
+
}
|
|
1664
|
+
}
|
|
1665
|
+
|
|
1666
|
+
export type GetAiAccountingOverviewError =
|
|
1667
|
+
GetAiAccountingOverviewErrors[keyof GetAiAccountingOverviewErrors]
|
|
1668
|
+
|
|
1669
|
+
export type GetAiAccountingOverviewResponses = {
|
|
1670
|
+
/**
|
|
1671
|
+
* Response for status 200
|
|
1672
|
+
*/
|
|
1673
|
+
200: {
|
|
1674
|
+
range: {
|
|
1675
|
+
from: string
|
|
1676
|
+
to: string
|
|
1677
|
+
}
|
|
1678
|
+
bucket: "hour" | "day" | "week"
|
|
1679
|
+
totals: {
|
|
1680
|
+
modelCallCount: number
|
|
1681
|
+
usage: {
|
|
1682
|
+
inputTokens?: number
|
|
1683
|
+
outputTokens?: number
|
|
1684
|
+
totalTokens?: number
|
|
1685
|
+
uncachedInputTokens?: number
|
|
1686
|
+
cacheReadInputTokens?: number
|
|
1687
|
+
cacheWriteInputTokens?: number
|
|
1688
|
+
textOutputTokens?: number
|
|
1689
|
+
reasoningOutputTokens?: number
|
|
1690
|
+
reportingStatus: "complete" | "partial" | "unavailable"
|
|
1691
|
+
}
|
|
1692
|
+
costs: {
|
|
1693
|
+
amounts: Array<{
|
|
1694
|
+
currency: string
|
|
1695
|
+
amountNanos: string
|
|
1696
|
+
}>
|
|
1697
|
+
ratedCallCount: number
|
|
1698
|
+
unpriceableCallCount: number
|
|
1699
|
+
unvaluedCallCount: number
|
|
1700
|
+
}
|
|
1701
|
+
}
|
|
1702
|
+
series: Array<{
|
|
1703
|
+
modelCallCount: number
|
|
1704
|
+
usage: {
|
|
1705
|
+
inputTokens?: number
|
|
1706
|
+
outputTokens?: number
|
|
1707
|
+
totalTokens?: number
|
|
1708
|
+
uncachedInputTokens?: number
|
|
1709
|
+
cacheReadInputTokens?: number
|
|
1710
|
+
cacheWriteInputTokens?: number
|
|
1711
|
+
textOutputTokens?: number
|
|
1712
|
+
reasoningOutputTokens?: number
|
|
1713
|
+
reportingStatus: "complete" | "partial" | "unavailable"
|
|
1714
|
+
}
|
|
1715
|
+
costs: {
|
|
1716
|
+
amounts: Array<{
|
|
1717
|
+
currency: string
|
|
1718
|
+
amountNanos: string
|
|
1719
|
+
}>
|
|
1720
|
+
ratedCallCount: number
|
|
1721
|
+
unpriceableCallCount: number
|
|
1722
|
+
unvaluedCallCount: number
|
|
1723
|
+
}
|
|
1724
|
+
start: string
|
|
1725
|
+
end: string
|
|
1726
|
+
}>
|
|
1727
|
+
models: Array<{
|
|
1728
|
+
modelCallCount: number
|
|
1729
|
+
usage: {
|
|
1730
|
+
inputTokens?: number
|
|
1731
|
+
outputTokens?: number
|
|
1732
|
+
totalTokens?: number
|
|
1733
|
+
uncachedInputTokens?: number
|
|
1734
|
+
cacheReadInputTokens?: number
|
|
1735
|
+
cacheWriteInputTokens?: number
|
|
1736
|
+
textOutputTokens?: number
|
|
1737
|
+
reasoningOutputTokens?: number
|
|
1738
|
+
reportingStatus: "complete" | "partial" | "unavailable"
|
|
1739
|
+
}
|
|
1740
|
+
costs: {
|
|
1741
|
+
amounts: Array<{
|
|
1742
|
+
currency: string
|
|
1743
|
+
amountNanos: string
|
|
1744
|
+
}>
|
|
1745
|
+
ratedCallCount: number
|
|
1746
|
+
unpriceableCallCount: number
|
|
1747
|
+
unvaluedCallCount: number
|
|
1748
|
+
}
|
|
1749
|
+
providerId: string
|
|
1750
|
+
modelId: string
|
|
1751
|
+
}>
|
|
1752
|
+
agents: Array<{
|
|
1753
|
+
modelCallCount: number
|
|
1754
|
+
usage: {
|
|
1755
|
+
inputTokens?: number
|
|
1756
|
+
outputTokens?: number
|
|
1757
|
+
totalTokens?: number
|
|
1758
|
+
uncachedInputTokens?: number
|
|
1759
|
+
cacheReadInputTokens?: number
|
|
1760
|
+
cacheWriteInputTokens?: number
|
|
1761
|
+
textOutputTokens?: number
|
|
1762
|
+
reasoningOutputTokens?: number
|
|
1763
|
+
reportingStatus: "complete" | "partial" | "unavailable"
|
|
1764
|
+
}
|
|
1765
|
+
costs: {
|
|
1766
|
+
amounts: Array<{
|
|
1767
|
+
currency: string
|
|
1768
|
+
amountNanos: string
|
|
1769
|
+
}>
|
|
1770
|
+
ratedCallCount: number
|
|
1771
|
+
unpriceableCallCount: number
|
|
1772
|
+
unvaluedCallCount: number
|
|
1773
|
+
}
|
|
1774
|
+
agentId: string
|
|
1775
|
+
}>
|
|
1776
|
+
workflows: Array<{
|
|
1777
|
+
modelCallCount: number
|
|
1778
|
+
usage: {
|
|
1779
|
+
inputTokens?: number
|
|
1780
|
+
outputTokens?: number
|
|
1781
|
+
totalTokens?: number
|
|
1782
|
+
uncachedInputTokens?: number
|
|
1783
|
+
cacheReadInputTokens?: number
|
|
1784
|
+
cacheWriteInputTokens?: number
|
|
1785
|
+
textOutputTokens?: number
|
|
1786
|
+
reasoningOutputTokens?: number
|
|
1787
|
+
reportingStatus: "complete" | "partial" | "unavailable"
|
|
1788
|
+
}
|
|
1789
|
+
costs: {
|
|
1790
|
+
amounts: Array<{
|
|
1791
|
+
currency: string
|
|
1792
|
+
amountNanos: string
|
|
1793
|
+
}>
|
|
1794
|
+
ratedCallCount: number
|
|
1795
|
+
unpriceableCallCount: number
|
|
1796
|
+
unvaluedCallCount: number
|
|
1797
|
+
}
|
|
1798
|
+
workflowId: string
|
|
1799
|
+
}>
|
|
1800
|
+
}
|
|
1801
|
+
}
|
|
1802
|
+
|
|
1803
|
+
export type GetAiAccountingOverviewResponse =
|
|
1804
|
+
GetAiAccountingOverviewResponses[keyof GetAiAccountingOverviewResponses]
|
|
1805
|
+
|
|
1806
|
+
export type ListAiModelCallsData = {
|
|
1807
|
+
body?: never
|
|
1808
|
+
path?: never
|
|
1809
|
+
query: {
|
|
1810
|
+
from: string
|
|
1811
|
+
to: string
|
|
1812
|
+
providerId?: string
|
|
1813
|
+
modelId?: string
|
|
1814
|
+
executionId?: string
|
|
1815
|
+
valuationStatus?: "rated" | "unpriceable" | "unvalued"
|
|
1816
|
+
limit?: string
|
|
1817
|
+
offset?: string
|
|
1818
|
+
}
|
|
1819
|
+
url: "/api/ai/model-calls"
|
|
1820
|
+
}
|
|
1821
|
+
|
|
1822
|
+
export type ListAiModelCallsErrors = {
|
|
1823
|
+
/**
|
|
1824
|
+
* Response for status 400
|
|
1825
|
+
*/
|
|
1826
|
+
400: {
|
|
1827
|
+
error: string
|
|
1828
|
+
}
|
|
1829
|
+
/**
|
|
1830
|
+
* Response for status 501
|
|
1831
|
+
*/
|
|
1832
|
+
501: {
|
|
1833
|
+
error: string
|
|
1834
|
+
}
|
|
1835
|
+
}
|
|
1836
|
+
|
|
1837
|
+
export type ListAiModelCallsError = ListAiModelCallsErrors[keyof ListAiModelCallsErrors]
|
|
1838
|
+
|
|
1839
|
+
export type ListAiModelCallsResponses = {
|
|
1840
|
+
/**
|
|
1841
|
+
* Response for status 200
|
|
1842
|
+
*/
|
|
1843
|
+
200: {
|
|
1844
|
+
items: Array<{
|
|
1845
|
+
usage: {
|
|
1846
|
+
id: string
|
|
1847
|
+
executionId: string
|
|
1848
|
+
attempt: number
|
|
1849
|
+
callId: string
|
|
1850
|
+
providerId: string
|
|
1851
|
+
requestedModelId: string
|
|
1852
|
+
responseModelId?: string
|
|
1853
|
+
responseId: string
|
|
1854
|
+
usage: {
|
|
1855
|
+
inputTokens?: number
|
|
1856
|
+
outputTokens?: number
|
|
1857
|
+
totalTokens?: number
|
|
1858
|
+
uncachedInputTokens?: number
|
|
1859
|
+
cacheReadInputTokens?: number
|
|
1860
|
+
cacheWriteInputTokens?: number
|
|
1861
|
+
textOutputTokens?: number
|
|
1862
|
+
reasoningOutputTokens?: number
|
|
1863
|
+
reportingStatus: "complete" | "partial" | "unavailable"
|
|
1864
|
+
}
|
|
1865
|
+
occurredAt: string
|
|
1866
|
+
recordedAt: string
|
|
1867
|
+
}
|
|
1868
|
+
attribution?:
|
|
1869
|
+
| {
|
|
1870
|
+
kind: "agent"
|
|
1871
|
+
agentId: string
|
|
1872
|
+
agentRunId: string
|
|
1873
|
+
threadId: string
|
|
1874
|
+
}
|
|
1875
|
+
| {
|
|
1876
|
+
kind: "workflowAgent"
|
|
1877
|
+
agentId: string
|
|
1878
|
+
nodeRunId: string
|
|
1879
|
+
workflowId: string
|
|
1880
|
+
workflowRunId: string
|
|
1881
|
+
}
|
|
1882
|
+
cost?:
|
|
1883
|
+
| {
|
|
1884
|
+
status: "rated"
|
|
1885
|
+
billingIdentity: {
|
|
1886
|
+
providerId: string
|
|
1887
|
+
modelId: string
|
|
1888
|
+
}
|
|
1889
|
+
pricingContext: {
|
|
1890
|
+
serviceTier?: string
|
|
1891
|
+
batch?: boolean
|
|
1892
|
+
region?: string
|
|
1893
|
+
inferenceGeo?: string
|
|
1894
|
+
routedProviderId?: string
|
|
1895
|
+
deploymentId?: string
|
|
1896
|
+
inferenceProfileId?: string
|
|
1897
|
+
cacheWriteTtlSeconds?: number
|
|
1898
|
+
mode?: string
|
|
1899
|
+
}
|
|
1900
|
+
priceSource: {
|
|
1901
|
+
sourceId: string
|
|
1902
|
+
sourceEntryId: string
|
|
1903
|
+
sourceVersion: string
|
|
1904
|
+
sourceUrl: string
|
|
1905
|
+
observedAt: string
|
|
1906
|
+
}
|
|
1907
|
+
money: {
|
|
1908
|
+
currency: string
|
|
1909
|
+
amountNanos: string
|
|
1910
|
+
}
|
|
1911
|
+
components: Array<{
|
|
1912
|
+
meter:
|
|
1913
|
+
| "tokens.input.total"
|
|
1914
|
+
| "tokens.input.uncached"
|
|
1915
|
+
| "tokens.input.cacheRead"
|
|
1916
|
+
| "tokens.input.cacheWrite"
|
|
1917
|
+
| "tokens.output.total"
|
|
1918
|
+
| "tokens.output.text"
|
|
1919
|
+
| "tokens.output.reasoning"
|
|
1920
|
+
quantity: string
|
|
1921
|
+
rateAmountNanosPerMillion: string
|
|
1922
|
+
chargeAmountNanos: string
|
|
1923
|
+
}>
|
|
1924
|
+
ratedAt: string
|
|
1925
|
+
}
|
|
1926
|
+
| {
|
|
1927
|
+
status: "unpriceable"
|
|
1928
|
+
billingIdentity?: {
|
|
1929
|
+
providerId: string
|
|
1930
|
+
modelId: string
|
|
1931
|
+
}
|
|
1932
|
+
pricingContext: {
|
|
1933
|
+
serviceTier?: string
|
|
1934
|
+
batch?: boolean
|
|
1935
|
+
region?: string
|
|
1936
|
+
inferenceGeo?: string
|
|
1937
|
+
routedProviderId?: string
|
|
1938
|
+
deploymentId?: string
|
|
1939
|
+
inferenceProfileId?: string
|
|
1940
|
+
cacheWriteTtlSeconds?: number
|
|
1941
|
+
mode?: string
|
|
1942
|
+
}
|
|
1943
|
+
priceSource: {
|
|
1944
|
+
sourceId: string
|
|
1945
|
+
sourceEntryId: string
|
|
1946
|
+
sourceVersion: string
|
|
1947
|
+
sourceUrl: string
|
|
1948
|
+
observedAt: string
|
|
1949
|
+
}
|
|
1950
|
+
reason:
|
|
1951
|
+
| "missingBillingIdentity"
|
|
1952
|
+
| "missingCatalogEntry"
|
|
1953
|
+
| "missingUsageMeter"
|
|
1954
|
+
| "unsupportedPricingDimension"
|
|
1955
|
+
| "invalidUsageForFormula"
|
|
1956
|
+
missingMeters?: Array<
|
|
1957
|
+
| "tokens.input.total"
|
|
1958
|
+
| "tokens.input.uncached"
|
|
1959
|
+
| "tokens.input.cacheRead"
|
|
1960
|
+
| "tokens.input.cacheWrite"
|
|
1961
|
+
| "tokens.output.total"
|
|
1962
|
+
| "tokens.output.text"
|
|
1963
|
+
| "tokens.output.reasoning"
|
|
1964
|
+
>
|
|
1965
|
+
ratedAt: string
|
|
1966
|
+
}
|
|
1967
|
+
valuationStatus: "rated" | "unpriceable" | "unvalued"
|
|
1968
|
+
}>
|
|
1969
|
+
hasMore: boolean
|
|
1970
|
+
total: number
|
|
1971
|
+
}
|
|
1972
|
+
}
|
|
1973
|
+
|
|
1974
|
+
export type ListAiModelCallsResponse = ListAiModelCallsResponses[keyof ListAiModelCallsResponses]
|
|
1975
|
+
|
|
1587
1976
|
export type GetProjectInfoData = {
|
|
1588
1977
|
body?: never
|
|
1589
1978
|
path?: never
|
|
@@ -5058,6 +5447,15 @@ export type GetWorkflowRunResponses = {
|
|
|
5058
5447
|
reasoningOutputTokens?: number
|
|
5059
5448
|
reportingStatus: "complete" | "partial" | "unavailable"
|
|
5060
5449
|
}
|
|
5450
|
+
cost?: {
|
|
5451
|
+
amounts: Array<{
|
|
5452
|
+
currency: string
|
|
5453
|
+
amountNanos: string
|
|
5454
|
+
}>
|
|
5455
|
+
ratedCallCount: number
|
|
5456
|
+
unpriceableCallCount: number
|
|
5457
|
+
unvaluedCallCount: number
|
|
5458
|
+
}
|
|
5061
5459
|
startedAt?: string
|
|
5062
5460
|
completedAt?: string
|
|
5063
5461
|
}
|
|
@@ -5122,12 +5520,197 @@ export type GetWorkflowAgentNodeExecutionResponses = {
|
|
|
5122
5520
|
reasoningOutputTokens?: number
|
|
5123
5521
|
reportingStatus: "complete" | "partial" | "unavailable"
|
|
5124
5522
|
}
|
|
5523
|
+
cost?: {
|
|
5524
|
+
amounts: Array<{
|
|
5525
|
+
currency: string
|
|
5526
|
+
amountNanos: string
|
|
5527
|
+
}>
|
|
5528
|
+
ratedCallCount: number
|
|
5529
|
+
unpriceableCallCount: number
|
|
5530
|
+
unvaluedCallCount: number
|
|
5531
|
+
}
|
|
5125
5532
|
startedAt?: string
|
|
5126
5533
|
completedAt?: string
|
|
5127
5534
|
nodeRunId: string
|
|
5128
5535
|
prompt: string
|
|
5129
|
-
trace?: Array<
|
|
5130
|
-
|
|
5536
|
+
trace?: Array<
|
|
5537
|
+
| {
|
|
5538
|
+
type: "text"
|
|
5539
|
+
text: string
|
|
5540
|
+
/**
|
|
5541
|
+
* Any JSON-compatible value.
|
|
5542
|
+
*/
|
|
5543
|
+
providerMetadata?:
|
|
5544
|
+
| string
|
|
5545
|
+
| number
|
|
5546
|
+
| boolean
|
|
5547
|
+
| Array<unknown>
|
|
5548
|
+
| {
|
|
5549
|
+
[key: string]: unknown
|
|
5550
|
+
}
|
|
5551
|
+
| null
|
|
5552
|
+
}
|
|
5553
|
+
| {
|
|
5554
|
+
type: "reasoning"
|
|
5555
|
+
text: string
|
|
5556
|
+
/**
|
|
5557
|
+
* Any JSON-compatible value.
|
|
5558
|
+
*/
|
|
5559
|
+
providerMetadata?:
|
|
5560
|
+
| string
|
|
5561
|
+
| number
|
|
5562
|
+
| boolean
|
|
5563
|
+
| Array<unknown>
|
|
5564
|
+
| {
|
|
5565
|
+
[key: string]: unknown
|
|
5566
|
+
}
|
|
5567
|
+
| null
|
|
5568
|
+
}
|
|
5569
|
+
| {
|
|
5570
|
+
type: "step-start"
|
|
5571
|
+
}
|
|
5572
|
+
| {
|
|
5573
|
+
type: "file"
|
|
5574
|
+
fileRef: {
|
|
5575
|
+
blobId: string
|
|
5576
|
+
digest: string
|
|
5577
|
+
sizeBytes: number
|
|
5578
|
+
fileName?: string
|
|
5579
|
+
mediaType?: string
|
|
5580
|
+
logicalPath?: string
|
|
5581
|
+
}
|
|
5582
|
+
/**
|
|
5583
|
+
* Any JSON-compatible value.
|
|
5584
|
+
*/
|
|
5585
|
+
providerMetadata?:
|
|
5586
|
+
| string
|
|
5587
|
+
| number
|
|
5588
|
+
| boolean
|
|
5589
|
+
| Array<unknown>
|
|
5590
|
+
| {
|
|
5591
|
+
[key: string]: unknown
|
|
5592
|
+
}
|
|
5593
|
+
| null
|
|
5594
|
+
}
|
|
5595
|
+
| {
|
|
5596
|
+
context:
|
|
5597
|
+
| {
|
|
5598
|
+
kind: "object"
|
|
5599
|
+
ref: {
|
|
5600
|
+
objectTypeId: string
|
|
5601
|
+
primaryId: string
|
|
5602
|
+
}
|
|
5603
|
+
}
|
|
5604
|
+
| {
|
|
5605
|
+
kind: "app-state"
|
|
5606
|
+
id: string
|
|
5607
|
+
label: string
|
|
5608
|
+
description: string
|
|
5609
|
+
/**
|
|
5610
|
+
* Any JSON-compatible value.
|
|
5611
|
+
*/
|
|
5612
|
+
value:
|
|
5613
|
+
| string
|
|
5614
|
+
| number
|
|
5615
|
+
| boolean
|
|
5616
|
+
| Array<unknown>
|
|
5617
|
+
| {
|
|
5618
|
+
[key: string]: unknown
|
|
5619
|
+
}
|
|
5620
|
+
| null
|
|
5621
|
+
}
|
|
5622
|
+
origin: "ambient" | "explicit"
|
|
5623
|
+
type: "context"
|
|
5624
|
+
}
|
|
5625
|
+
| {
|
|
5626
|
+
type: "tool-call"
|
|
5627
|
+
toolCallId: string
|
|
5628
|
+
toolName: string
|
|
5629
|
+
dynamic?: boolean
|
|
5630
|
+
providerExecuted?: boolean
|
|
5631
|
+
/**
|
|
5632
|
+
* Any JSON-compatible value.
|
|
5633
|
+
*/
|
|
5634
|
+
input:
|
|
5635
|
+
| string
|
|
5636
|
+
| number
|
|
5637
|
+
| boolean
|
|
5638
|
+
| Array<unknown>
|
|
5639
|
+
| {
|
|
5640
|
+
[key: string]: unknown
|
|
5641
|
+
}
|
|
5642
|
+
| null
|
|
5643
|
+
/**
|
|
5644
|
+
* Any JSON-compatible value.
|
|
5645
|
+
*/
|
|
5646
|
+
providerMetadata?:
|
|
5647
|
+
| string
|
|
5648
|
+
| number
|
|
5649
|
+
| boolean
|
|
5650
|
+
| Array<unknown>
|
|
5651
|
+
| {
|
|
5652
|
+
[key: string]: unknown
|
|
5653
|
+
}
|
|
5654
|
+
| null
|
|
5655
|
+
state: "output-available"
|
|
5656
|
+
/**
|
|
5657
|
+
* Any JSON-compatible value.
|
|
5658
|
+
*/
|
|
5659
|
+
output:
|
|
5660
|
+
| string
|
|
5661
|
+
| number
|
|
5662
|
+
| boolean
|
|
5663
|
+
| Array<unknown>
|
|
5664
|
+
| {
|
|
5665
|
+
[key: string]: unknown
|
|
5666
|
+
}
|
|
5667
|
+
| null
|
|
5668
|
+
}
|
|
5669
|
+
| {
|
|
5670
|
+
type: "tool-call"
|
|
5671
|
+
toolCallId: string
|
|
5672
|
+
toolName: string
|
|
5673
|
+
dynamic?: boolean
|
|
5674
|
+
providerExecuted?: boolean
|
|
5675
|
+
/**
|
|
5676
|
+
* Any JSON-compatible value.
|
|
5677
|
+
*/
|
|
5678
|
+
input:
|
|
5679
|
+
| string
|
|
5680
|
+
| number
|
|
5681
|
+
| boolean
|
|
5682
|
+
| Array<unknown>
|
|
5683
|
+
| {
|
|
5684
|
+
[key: string]: unknown
|
|
5685
|
+
}
|
|
5686
|
+
| null
|
|
5687
|
+
/**
|
|
5688
|
+
* Any JSON-compatible value.
|
|
5689
|
+
*/
|
|
5690
|
+
providerMetadata?:
|
|
5691
|
+
| string
|
|
5692
|
+
| number
|
|
5693
|
+
| boolean
|
|
5694
|
+
| Array<unknown>
|
|
5695
|
+
| {
|
|
5696
|
+
[key: string]: unknown
|
|
5697
|
+
}
|
|
5698
|
+
| null
|
|
5699
|
+
state: "output-error"
|
|
5700
|
+
errorText: string
|
|
5701
|
+
}
|
|
5702
|
+
>
|
|
5703
|
+
diagnostics?: Array<
|
|
5704
|
+
| string
|
|
5705
|
+
| number
|
|
5706
|
+
| boolean
|
|
5707
|
+
| Array<unknown>
|
|
5708
|
+
| {
|
|
5709
|
+
[key: string]: unknown
|
|
5710
|
+
}
|
|
5711
|
+
| null
|
|
5712
|
+
>
|
|
5713
|
+
failurePhase?: "agent-loop" | "structured-finalizer"
|
|
5131
5714
|
error?: {
|
|
5132
5715
|
code: "internal.unexpected" | "runtime.cancelled" | "agent.execution_failed"
|
|
5133
5716
|
message: string
|
|
@@ -5317,6 +5900,15 @@ export type CancelWorkflowRunResponses = {
|
|
|
5317
5900
|
reasoningOutputTokens?: number
|
|
5318
5901
|
reportingStatus: "complete" | "partial" | "unavailable"
|
|
5319
5902
|
}
|
|
5903
|
+
cost?: {
|
|
5904
|
+
amounts: Array<{
|
|
5905
|
+
currency: string
|
|
5906
|
+
amountNanos: string
|
|
5907
|
+
}>
|
|
5908
|
+
ratedCallCount: number
|
|
5909
|
+
unpriceableCallCount: number
|
|
5910
|
+
unvaluedCallCount: number
|
|
5911
|
+
}
|
|
5320
5912
|
startedAt?: string
|
|
5321
5913
|
completedAt?: string
|
|
5322
5914
|
}
|
|
@@ -6238,6 +6830,39 @@ export type QueryObjectsResponses = {
|
|
|
6238
6830
|
|
|
6239
6831
|
export type QueryObjectsResponse = QueryObjectsResponses[keyof QueryObjectsResponses]
|
|
6240
6832
|
|
|
6833
|
+
export type QueryObjectLinksData = {
|
|
6834
|
+
body: ObjectQueryLinksRequest
|
|
6835
|
+
path?: never
|
|
6836
|
+
query?: never
|
|
6837
|
+
url: "/api/objects/query/links"
|
|
6838
|
+
}
|
|
6839
|
+
|
|
6840
|
+
export type QueryObjectLinksErrors = {
|
|
6841
|
+
/**
|
|
6842
|
+
* Response for status 400
|
|
6843
|
+
*/
|
|
6844
|
+
400: ObjectQueryErrorResponse
|
|
6845
|
+
/**
|
|
6846
|
+
* Response for status 403
|
|
6847
|
+
*/
|
|
6848
|
+
403: ErrorResponse
|
|
6849
|
+
/**
|
|
6850
|
+
* Response for status 500
|
|
6851
|
+
*/
|
|
6852
|
+
500: ErrorResponse
|
|
6853
|
+
}
|
|
6854
|
+
|
|
6855
|
+
export type QueryObjectLinksError = QueryObjectLinksErrors[keyof QueryObjectLinksErrors]
|
|
6856
|
+
|
|
6857
|
+
export type QueryObjectLinksResponses = {
|
|
6858
|
+
/**
|
|
6859
|
+
* Response for status 200
|
|
6860
|
+
*/
|
|
6861
|
+
200: ObjectQueryLinksResponse
|
|
6862
|
+
}
|
|
6863
|
+
|
|
6864
|
+
export type QueryObjectLinksResponse = QueryObjectLinksResponses[keyof QueryObjectLinksResponses]
|
|
6865
|
+
|
|
6241
6866
|
export type CountObjectsData = {
|
|
6242
6867
|
body: ObjectQueryCountRequest
|
|
6243
6868
|
path?: never
|
|
@@ -7344,6 +7969,11 @@ export type ListAgentsResponses = {
|
|
|
7344
7969
|
stopWhen?: {
|
|
7345
7970
|
maxSteps?: number
|
|
7346
7971
|
}
|
|
7972
|
+
context?: {
|
|
7973
|
+
windowTokens?: number
|
|
7974
|
+
reserveTokens?: number
|
|
7975
|
+
keepRecentTokens?: number
|
|
7976
|
+
}
|
|
7347
7977
|
}
|
|
7348
7978
|
}>
|
|
7349
7979
|
}
|
|
@@ -7385,6 +8015,11 @@ export type GetAgentResponses = {
|
|
|
7385
8015
|
stopWhen?: {
|
|
7386
8016
|
maxSteps?: number
|
|
7387
8017
|
}
|
|
8018
|
+
context?: {
|
|
8019
|
+
windowTokens?: number
|
|
8020
|
+
reserveTokens?: number
|
|
8021
|
+
keepRecentTokens?: number
|
|
8022
|
+
}
|
|
7388
8023
|
}
|
|
7389
8024
|
}
|
|
7390
8025
|
}
|
|
@@ -7805,6 +8440,11 @@ export type ListAgentThreadMessagesResponses = {
|
|
|
7805
8440
|
path?: string
|
|
7806
8441
|
message: string
|
|
7807
8442
|
}>
|
|
8443
|
+
compaction?: {
|
|
8444
|
+
checkpointId: string
|
|
8445
|
+
summary: string
|
|
8446
|
+
createdAt: string
|
|
8447
|
+
}
|
|
7808
8448
|
/**
|
|
7809
8449
|
* Any JSON-compatible value.
|
|
7810
8450
|
*/
|
|
@@ -7936,6 +8576,7 @@ export type PostAgentThreadMessageResponses = {
|
|
|
7936
8576
|
| "length"
|
|
7937
8577
|
| "content-filter"
|
|
7938
8578
|
| "tool-calls"
|
|
8579
|
+
| "timeout"
|
|
7939
8580
|
| "error"
|
|
7940
8581
|
| "other"
|
|
7941
8582
|
| "unknown"
|
|
@@ -7950,6 +8591,15 @@ export type PostAgentThreadMessageResponses = {
|
|
|
7950
8591
|
reasoningOutputTokens?: number
|
|
7951
8592
|
reportingStatus: "complete" | "partial" | "unavailable"
|
|
7952
8593
|
}
|
|
8594
|
+
cost?: {
|
|
8595
|
+
amounts: Array<{
|
|
8596
|
+
currency: string
|
|
8597
|
+
amountNanos: string
|
|
8598
|
+
}>
|
|
8599
|
+
ratedCallCount: number
|
|
8600
|
+
unpriceableCallCount: number
|
|
8601
|
+
unvaluedCallCount: number
|
|
8602
|
+
}
|
|
7953
8603
|
diagnostics?: Array<{
|
|
7954
8604
|
code:
|
|
7955
8605
|
| "output_file_limit_exceeded"
|
|
@@ -8151,6 +8801,7 @@ export type CancelAgentRunResponses = {
|
|
|
8151
8801
|
| "length"
|
|
8152
8802
|
| "content-filter"
|
|
8153
8803
|
| "tool-calls"
|
|
8804
|
+
| "timeout"
|
|
8154
8805
|
| "error"
|
|
8155
8806
|
| "other"
|
|
8156
8807
|
| "unknown"
|
|
@@ -8165,6 +8816,15 @@ export type CancelAgentRunResponses = {
|
|
|
8165
8816
|
reasoningOutputTokens?: number
|
|
8166
8817
|
reportingStatus: "complete" | "partial" | "unavailable"
|
|
8167
8818
|
}
|
|
8819
|
+
cost?: {
|
|
8820
|
+
amounts: Array<{
|
|
8821
|
+
currency: string
|
|
8822
|
+
amountNanos: string
|
|
8823
|
+
}>
|
|
8824
|
+
ratedCallCount: number
|
|
8825
|
+
unpriceableCallCount: number
|
|
8826
|
+
unvaluedCallCount: number
|
|
8827
|
+
}
|
|
8168
8828
|
diagnostics?: Array<{
|
|
8169
8829
|
code:
|
|
8170
8830
|
| "output_file_limit_exceeded"
|
|
@@ -8269,6 +8929,7 @@ export type RetryAgentRunResponses = {
|
|
|
8269
8929
|
| "length"
|
|
8270
8930
|
| "content-filter"
|
|
8271
8931
|
| "tool-calls"
|
|
8932
|
+
| "timeout"
|
|
8272
8933
|
| "error"
|
|
8273
8934
|
| "other"
|
|
8274
8935
|
| "unknown"
|
|
@@ -8283,6 +8944,15 @@ export type RetryAgentRunResponses = {
|
|
|
8283
8944
|
reasoningOutputTokens?: number
|
|
8284
8945
|
reportingStatus: "complete" | "partial" | "unavailable"
|
|
8285
8946
|
}
|
|
8947
|
+
cost?: {
|
|
8948
|
+
amounts: Array<{
|
|
8949
|
+
currency: string
|
|
8950
|
+
amountNanos: string
|
|
8951
|
+
}>
|
|
8952
|
+
ratedCallCount: number
|
|
8953
|
+
unpriceableCallCount: number
|
|
8954
|
+
unvaluedCallCount: number
|
|
8955
|
+
}
|
|
8286
8956
|
diagnostics?: Array<{
|
|
8287
8957
|
code:
|
|
8288
8958
|
| "output_file_limit_exceeded"
|
|
@@ -8385,6 +9055,7 @@ export type ListAgentThreadRunsResponses = {
|
|
|
8385
9055
|
| "length"
|
|
8386
9056
|
| "content-filter"
|
|
8387
9057
|
| "tool-calls"
|
|
9058
|
+
| "timeout"
|
|
8388
9059
|
| "error"
|
|
8389
9060
|
| "other"
|
|
8390
9061
|
| "unknown"
|
|
@@ -8399,6 +9070,15 @@ export type ListAgentThreadRunsResponses = {
|
|
|
8399
9070
|
reasoningOutputTokens?: number
|
|
8400
9071
|
reportingStatus: "complete" | "partial" | "unavailable"
|
|
8401
9072
|
}
|
|
9073
|
+
cost?: {
|
|
9074
|
+
amounts: Array<{
|
|
9075
|
+
currency: string
|
|
9076
|
+
amountNanos: string
|
|
9077
|
+
}>
|
|
9078
|
+
ratedCallCount: number
|
|
9079
|
+
unpriceableCallCount: number
|
|
9080
|
+
unvaluedCallCount: number
|
|
9081
|
+
}
|
|
8402
9082
|
diagnostics?: Array<{
|
|
8403
9083
|
code:
|
|
8404
9084
|
| "output_file_limit_exceeded"
|
|
@@ -8498,6 +9178,7 @@ export type GetAgentRunResponses = {
|
|
|
8498
9178
|
| "length"
|
|
8499
9179
|
| "content-filter"
|
|
8500
9180
|
| "tool-calls"
|
|
9181
|
+
| "timeout"
|
|
8501
9182
|
| "error"
|
|
8502
9183
|
| "other"
|
|
8503
9184
|
| "unknown"
|
|
@@ -8512,6 +9193,15 @@ export type GetAgentRunResponses = {
|
|
|
8512
9193
|
reasoningOutputTokens?: number
|
|
8513
9194
|
reportingStatus: "complete" | "partial" | "unavailable"
|
|
8514
9195
|
}
|
|
9196
|
+
cost?: {
|
|
9197
|
+
amounts: Array<{
|
|
9198
|
+
currency: string
|
|
9199
|
+
amountNanos: string
|
|
9200
|
+
}>
|
|
9201
|
+
ratedCallCount: number
|
|
9202
|
+
unpriceableCallCount: number
|
|
9203
|
+
unvaluedCallCount: number
|
|
9204
|
+
}
|
|
8515
9205
|
diagnostics?: Array<{
|
|
8516
9206
|
code:
|
|
8517
9207
|
| "output_file_limit_exceeded"
|
|
@@ -8554,56 +9244,27 @@ export type GetAgentRunResponses = {
|
|
|
8554
9244
|
|
|
8555
9245
|
export type GetAgentRunResponse = GetAgentRunResponses[keyof GetAgentRunResponses]
|
|
8556
9246
|
|
|
8557
|
-
export type
|
|
9247
|
+
export type ListModelsData = {
|
|
8558
9248
|
body?: never
|
|
8559
|
-
path
|
|
8560
|
-
|
|
8561
|
-
|
|
8562
|
-
}
|
|
8563
|
-
query?: {
|
|
8564
|
-
linkId?: string
|
|
8565
|
-
direction?: "outgoing" | "incoming" | "both"
|
|
8566
|
-
}
|
|
8567
|
-
url: "/api/objects/{objectTypeId}/{objectId}/links"
|
|
8568
|
-
}
|
|
8569
|
-
|
|
8570
|
-
export type ListObjectLinksErrors = {
|
|
8571
|
-
/**
|
|
8572
|
-
* Response for status 400
|
|
8573
|
-
*/
|
|
8574
|
-
400: {
|
|
8575
|
-
error: string
|
|
8576
|
-
}
|
|
8577
|
-
/**
|
|
8578
|
-
* Response for status 404
|
|
8579
|
-
*/
|
|
8580
|
-
404: {
|
|
8581
|
-
error: string
|
|
8582
|
-
}
|
|
9249
|
+
path?: never
|
|
9250
|
+
query?: never
|
|
9251
|
+
url: "/api/models"
|
|
8583
9252
|
}
|
|
8584
9253
|
|
|
8585
|
-
export type
|
|
8586
|
-
|
|
8587
|
-
export type ListObjectLinksResponses = {
|
|
9254
|
+
export type ListModelsResponses = {
|
|
8588
9255
|
/**
|
|
8589
9256
|
* Response for status 200
|
|
8590
9257
|
*/
|
|
8591
|
-
200:
|
|
8592
|
-
|
|
8593
|
-
|
|
8594
|
-
|
|
8595
|
-
|
|
8596
|
-
|
|
8597
|
-
|
|
8598
|
-
properties?: {
|
|
8599
|
-
[key: string]: unknown
|
|
8600
|
-
}
|
|
8601
|
-
createdAt: string
|
|
8602
|
-
updatedAt: string
|
|
8603
|
-
}>
|
|
9258
|
+
200: {
|
|
9259
|
+
language: Array<{
|
|
9260
|
+
provider: string
|
|
9261
|
+
modelId: string
|
|
9262
|
+
isDefault: boolean
|
|
9263
|
+
}>
|
|
9264
|
+
}
|
|
8604
9265
|
}
|
|
8605
9266
|
|
|
8606
|
-
export type
|
|
9267
|
+
export type ListModelsResponse = ListModelsResponses[keyof ListModelsResponses]
|
|
8607
9268
|
|
|
8608
9269
|
export type RemoveObjectLinkData = {
|
|
8609
9270
|
body?: never
|
|
@@ -9987,6 +10648,14 @@ export type ListProjectionsResponses = {
|
|
|
9987
10648
|
targetObjectTypeId: string
|
|
9988
10649
|
}
|
|
9989
10650
|
}
|
|
10651
|
+
conflictResolution:
|
|
10652
|
+
| {
|
|
10653
|
+
strategy: "editsWin"
|
|
10654
|
+
}
|
|
10655
|
+
| {
|
|
10656
|
+
strategy: "mostRecent"
|
|
10657
|
+
sourceTimestamp: string
|
|
10658
|
+
}
|
|
9990
10659
|
latestRun:
|
|
9991
10660
|
| {
|
|
9992
10661
|
id: string
|
|
@@ -10326,12 +10995,15 @@ export type ListProjectionsResponses = {
|
|
|
10326
10995
|
_tag: "TelemetryProjectionDefinition"
|
|
10327
10996
|
id: string
|
|
10328
10997
|
objectTypeId: string
|
|
10329
|
-
propertyId: string
|
|
10330
10998
|
datasetId: string
|
|
10331
10999
|
objectIdField: string
|
|
10332
11000
|
atField: string
|
|
10333
|
-
|
|
10334
|
-
|
|
11001
|
+
properties: {
|
|
11002
|
+
[key: string]: {
|
|
11003
|
+
valueField: string
|
|
11004
|
+
unitField?: string
|
|
11005
|
+
}
|
|
11006
|
+
}
|
|
10335
11007
|
latestRun:
|
|
10336
11008
|
| {
|
|
10337
11009
|
id: string
|
|
@@ -10541,6 +11213,14 @@ export type GetProjectionResponses = {
|
|
|
10541
11213
|
targetObjectTypeId: string
|
|
10542
11214
|
}
|
|
10543
11215
|
}
|
|
11216
|
+
conflictResolution:
|
|
11217
|
+
| {
|
|
11218
|
+
strategy: "editsWin"
|
|
11219
|
+
}
|
|
11220
|
+
| {
|
|
11221
|
+
strategy: "mostRecent"
|
|
11222
|
+
sourceTimestamp: string
|
|
11223
|
+
}
|
|
10544
11224
|
latestRun:
|
|
10545
11225
|
| {
|
|
10546
11226
|
id: string
|
|
@@ -10880,12 +11560,15 @@ export type GetProjectionResponses = {
|
|
|
10880
11560
|
_tag: "TelemetryProjectionDefinition"
|
|
10881
11561
|
id: string
|
|
10882
11562
|
objectTypeId: string
|
|
10883
|
-
propertyId: string
|
|
10884
11563
|
datasetId: string
|
|
10885
11564
|
objectIdField: string
|
|
10886
11565
|
atField: string
|
|
10887
|
-
|
|
10888
|
-
|
|
11566
|
+
properties: {
|
|
11567
|
+
[key: string]: {
|
|
11568
|
+
valueField: string
|
|
11569
|
+
unitField?: string
|
|
11570
|
+
}
|
|
11571
|
+
}
|
|
10889
11572
|
latestRun:
|
|
10890
11573
|
| {
|
|
10891
11574
|
id: string
|