@sixb/client 0.1.6 → 0.1.7
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/README.md +25 -0
- package/dist/browser.js +2 -2
- package/dist/{chunk-9bwme2g7.js → chunk-b3bfdm80.js} +1 -1
- package/dist/{chunk-hwg7mwq7.js → chunk-dcebhkmz.js} +25 -6
- package/dist/{chunk-hwg7mwq7.js.map → chunk-dcebhkmz.js.map} +4 -4
- package/dist/{chunk-g19v53kt.js → chunk-h80qj1f8.js} +1 -1
- package/dist/{chunk-5y58b4tr.js → chunk-m4by7m5r.js} +2 -2
- package/dist/{chunk-ks27bq5b.js → chunk-p0xrjaz6.js} +2 -2
- package/dist/{chunk-ehjnq01h.js → chunk-r8p88mbg.js} +78 -9
- package/dist/chunk-r8p88mbg.js.map +19 -0
- package/dist/connectors/queries.d.ts.map +1 -1
- package/dist/file.d.ts +11 -0
- package/dist/file.d.ts.map +1 -1
- package/dist/generated/@tanstack/react-query.gen.d.ts +2407 -367
- 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 +41 -7
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/types.gen.d.ts +975 -172
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/hooks.js +166 -22
- package/dist/hooks.js.map +3 -3
- package/dist/index.js +26 -8
- package/dist/index.js.map +1 -1
- package/dist/logs.js +3 -3
- package/dist/models.js +20 -4
- package/dist/models.js.map +1 -1
- package/dist/query.js +3 -3
- package/package.json +2 -2
- package/src/agent-streams.ts +0 -1
- package/src/file.ts +36 -0
- package/src/generated/@tanstack/react-query.gen.ts +320 -31
- package/src/generated/index.ts +52 -4
- package/src/generated/sdk.gen.ts +197 -18
- package/src/generated/types.gen.ts +1266 -146
- package/dist/chunk-ehjnq01h.js.map +0 -19
- /package/dist/{chunk-9bwme2g7.js.map → chunk-b3bfdm80.js.map} +0 -0
- /package/dist/{chunk-g19v53kt.js.map → chunk-h80qj1f8.js.map} +0 -0
- /package/dist/{chunk-5y58b4tr.js.map → chunk-m4by7m5r.js.map} +0 -0
- /package/dist/{chunk-ks27bq5b.js.map → chunk-p0xrjaz6.js.map} +0 -0
|
@@ -268,6 +268,78 @@ export type ObjectQuerySortField =
|
|
|
268
268
|
direction?: "asc" | "desc"
|
|
269
269
|
}
|
|
270
270
|
|
|
271
|
+
export type CreateDeviceAuthorizationData = {
|
|
272
|
+
body: {
|
|
273
|
+
clientName: string
|
|
274
|
+
tokenName: string
|
|
275
|
+
expiresIn?: "90d"
|
|
276
|
+
}
|
|
277
|
+
path?: never
|
|
278
|
+
query?: never
|
|
279
|
+
url: "/api/auth/device-authorizations"
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
export type CreateDeviceAuthorizationErrors = {
|
|
283
|
+
/**
|
|
284
|
+
* Response for status 429
|
|
285
|
+
*/
|
|
286
|
+
429: {
|
|
287
|
+
error: string
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
export type CreateDeviceAuthorizationError =
|
|
292
|
+
CreateDeviceAuthorizationErrors[keyof CreateDeviceAuthorizationErrors]
|
|
293
|
+
|
|
294
|
+
export type CreateDeviceAuthorizationResponses = {
|
|
295
|
+
/**
|
|
296
|
+
* Response for status 201
|
|
297
|
+
*/
|
|
298
|
+
201: {
|
|
299
|
+
deviceCode: string
|
|
300
|
+
userCode: string
|
|
301
|
+
verificationUri: string
|
|
302
|
+
verificationUriComplete: string
|
|
303
|
+
expiresAt: string
|
|
304
|
+
interval: number
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
export type CreateDeviceAuthorizationResponse =
|
|
309
|
+
CreateDeviceAuthorizationResponses[keyof CreateDeviceAuthorizationResponses]
|
|
310
|
+
|
|
311
|
+
export type ExchangeDeviceAuthorizationData = {
|
|
312
|
+
body: {
|
|
313
|
+
deviceCode: string
|
|
314
|
+
}
|
|
315
|
+
path?: never
|
|
316
|
+
query?: never
|
|
317
|
+
url: "/api/auth/device-authorizations/token"
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
export type ExchangeDeviceAuthorizationResponses = {
|
|
321
|
+
/**
|
|
322
|
+
* Response for status 200
|
|
323
|
+
*/
|
|
324
|
+
200:
|
|
325
|
+
| {
|
|
326
|
+
status: "pending"
|
|
327
|
+
}
|
|
328
|
+
| {
|
|
329
|
+
status: "denied"
|
|
330
|
+
}
|
|
331
|
+
| {
|
|
332
|
+
status: "expired"
|
|
333
|
+
}
|
|
334
|
+
| {
|
|
335
|
+
status: "approved"
|
|
336
|
+
accessToken: string
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
export type ExchangeDeviceAuthorizationResponse =
|
|
341
|
+
ExchangeDeviceAuthorizationResponses[keyof ExchangeDeviceAuthorizationResponses]
|
|
342
|
+
|
|
271
343
|
export type GetAuthSessionData = {
|
|
272
344
|
body?: never
|
|
273
345
|
path?: never
|
|
@@ -1660,6 +1732,12 @@ export type GetAiAccountingOverviewErrors = {
|
|
|
1660
1732
|
400: {
|
|
1661
1733
|
error: string
|
|
1662
1734
|
}
|
|
1735
|
+
/**
|
|
1736
|
+
* Response for status 403
|
|
1737
|
+
*/
|
|
1738
|
+
403: {
|
|
1739
|
+
error: string
|
|
1740
|
+
}
|
|
1663
1741
|
/**
|
|
1664
1742
|
* Response for status 501
|
|
1665
1743
|
*/
|
|
@@ -1754,30 +1832,58 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
1754
1832
|
providerId: string
|
|
1755
1833
|
modelId: string
|
|
1756
1834
|
}>
|
|
1757
|
-
agents: Array<
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1835
|
+
agents: Array<
|
|
1836
|
+
| {
|
|
1837
|
+
modelCallCount: number
|
|
1838
|
+
usage: {
|
|
1839
|
+
inputTokens?: number
|
|
1840
|
+
outputTokens?: number
|
|
1841
|
+
totalTokens?: number
|
|
1842
|
+
uncachedInputTokens?: number
|
|
1843
|
+
cacheReadInputTokens?: number
|
|
1844
|
+
cacheWriteInputTokens?: number
|
|
1845
|
+
textOutputTokens?: number
|
|
1846
|
+
reasoningOutputTokens?: number
|
|
1847
|
+
reportingStatus: "complete" | "partial" | "unavailable"
|
|
1848
|
+
}
|
|
1849
|
+
costs: {
|
|
1850
|
+
amounts: Array<{
|
|
1851
|
+
currency: string
|
|
1852
|
+
amountNanos: string
|
|
1853
|
+
}>
|
|
1854
|
+
ratedCallCount: number
|
|
1855
|
+
unpriceableCallCount: number
|
|
1856
|
+
unvaluedCallCount: number
|
|
1857
|
+
}
|
|
1858
|
+
kind: "agent"
|
|
1859
|
+
}
|
|
1860
|
+
| {
|
|
1861
|
+
modelCallCount: number
|
|
1862
|
+
usage: {
|
|
1863
|
+
inputTokens?: number
|
|
1864
|
+
outputTokens?: number
|
|
1865
|
+
totalTokens?: number
|
|
1866
|
+
uncachedInputTokens?: number
|
|
1867
|
+
cacheReadInputTokens?: number
|
|
1868
|
+
cacheWriteInputTokens?: number
|
|
1869
|
+
textOutputTokens?: number
|
|
1870
|
+
reasoningOutputTokens?: number
|
|
1871
|
+
reportingStatus: "complete" | "partial" | "unavailable"
|
|
1872
|
+
}
|
|
1873
|
+
costs: {
|
|
1874
|
+
amounts: Array<{
|
|
1875
|
+
currency: string
|
|
1876
|
+
amountNanos: string
|
|
1877
|
+
}>
|
|
1878
|
+
ratedCallCount: number
|
|
1879
|
+
unpriceableCallCount: number
|
|
1880
|
+
unvaluedCallCount: number
|
|
1881
|
+
}
|
|
1882
|
+
kind: "workflowAgent"
|
|
1883
|
+
workflowId: string
|
|
1884
|
+
agentStepId: string
|
|
1885
|
+
}
|
|
1886
|
+
>
|
|
1781
1887
|
workflows: Array<{
|
|
1782
1888
|
modelCallCount: number
|
|
1783
1889
|
usage: {
|
|
@@ -1831,6 +1937,12 @@ export type ListAiModelCallsErrors = {
|
|
|
1831
1937
|
400: {
|
|
1832
1938
|
error: string
|
|
1833
1939
|
}
|
|
1940
|
+
/**
|
|
1941
|
+
* Response for status 403
|
|
1942
|
+
*/
|
|
1943
|
+
403: {
|
|
1944
|
+
error: string
|
|
1945
|
+
}
|
|
1834
1946
|
/**
|
|
1835
1947
|
* Response for status 501
|
|
1836
1948
|
*/
|
|
@@ -1854,8 +1966,25 @@ export type ListAiModelCallsResponses = {
|
|
|
1854
1966
|
callId: string
|
|
1855
1967
|
providerId: string
|
|
1856
1968
|
requestedModelId: string
|
|
1969
|
+
requestedReasoning?:
|
|
1970
|
+
| "provider-default"
|
|
1971
|
+
| "none"
|
|
1972
|
+
| "minimal"
|
|
1973
|
+
| "low"
|
|
1974
|
+
| "medium"
|
|
1975
|
+
| "high"
|
|
1976
|
+
| "xhigh"
|
|
1977
|
+
| "max"
|
|
1978
|
+
| {
|
|
1979
|
+
budgetTokens: number
|
|
1980
|
+
}
|
|
1857
1981
|
responseModelId?: string
|
|
1858
1982
|
responseId: string
|
|
1983
|
+
providerIds: {
|
|
1984
|
+
requestId?: string
|
|
1985
|
+
responseId?: string
|
|
1986
|
+
generationId?: string
|
|
1987
|
+
} | null
|
|
1859
1988
|
usage: {
|
|
1860
1989
|
inputTokens?: number
|
|
1861
1990
|
outputTokens?: number
|
|
@@ -1873,20 +2002,68 @@ export type ListAiModelCallsResponses = {
|
|
|
1873
2002
|
attribution?:
|
|
1874
2003
|
| {
|
|
1875
2004
|
kind: "agent"
|
|
1876
|
-
agentId: string
|
|
1877
2005
|
agentRunId: string
|
|
1878
2006
|
threadId: string
|
|
1879
2007
|
}
|
|
1880
2008
|
| {
|
|
1881
2009
|
kind: "workflowAgent"
|
|
1882
|
-
|
|
2010
|
+
agentStepId: string
|
|
1883
2011
|
nodeRunId: string
|
|
1884
2012
|
workflowId: string
|
|
1885
2013
|
workflowRunId: string
|
|
1886
2014
|
}
|
|
2015
|
+
| {
|
|
2016
|
+
kind: "subagent"
|
|
2017
|
+
subagentRunId: string
|
|
2018
|
+
parentRunId: string
|
|
2019
|
+
}
|
|
1887
2020
|
cost?:
|
|
1888
2021
|
| {
|
|
1889
2022
|
status: "rated"
|
|
2023
|
+
source: "estimate" | "provider" | "unknown"
|
|
2024
|
+
estimate?:
|
|
2025
|
+
| {
|
|
2026
|
+
status: "rated"
|
|
2027
|
+
money: {
|
|
2028
|
+
currency: string
|
|
2029
|
+
amountNanos: string
|
|
2030
|
+
}
|
|
2031
|
+
components: Array<{
|
|
2032
|
+
meter:
|
|
2033
|
+
| "tokens.input.total"
|
|
2034
|
+
| "tokens.input.uncached"
|
|
2035
|
+
| "tokens.input.cacheRead"
|
|
2036
|
+
| "tokens.input.cacheWrite"
|
|
2037
|
+
| "tokens.input.cacheWrite5m"
|
|
2038
|
+
| "tokens.input.cacheWrite1h"
|
|
2039
|
+
| "tokens.output.total"
|
|
2040
|
+
| "tokens.output.text"
|
|
2041
|
+
| "tokens.output.reasoning"
|
|
2042
|
+
quantity: string
|
|
2043
|
+
rateAmountNanosPerMillion: string
|
|
2044
|
+
chargeAmountNanos: string
|
|
2045
|
+
}>
|
|
2046
|
+
}
|
|
2047
|
+
| {
|
|
2048
|
+
status: "unpriceable"
|
|
2049
|
+
reason:
|
|
2050
|
+
| "missingBillingIdentity"
|
|
2051
|
+
| "missingRateCard"
|
|
2052
|
+
| "missingUsageMeter"
|
|
2053
|
+
| "unsupportedPricingDimension"
|
|
2054
|
+
| "invalidUsageForFormula"
|
|
2055
|
+
missingMeters?: Array<
|
|
2056
|
+
| "tokens.input.total"
|
|
2057
|
+
| "tokens.input.uncached"
|
|
2058
|
+
| "tokens.input.cacheRead"
|
|
2059
|
+
| "tokens.input.cacheWrite"
|
|
2060
|
+
| "tokens.input.cacheWrite5m"
|
|
2061
|
+
| "tokens.input.cacheWrite1h"
|
|
2062
|
+
| "tokens.output.total"
|
|
2063
|
+
| "tokens.output.text"
|
|
2064
|
+
| "tokens.output.reasoning"
|
|
2065
|
+
>
|
|
2066
|
+
}
|
|
1890
2067
|
billingIdentity: {
|
|
1891
2068
|
providerId: string
|
|
1892
2069
|
modelId: string
|
|
@@ -1897,6 +2074,7 @@ export type ListAiModelCallsResponses = {
|
|
|
1897
2074
|
region?: string
|
|
1898
2075
|
inferenceGeo?: string
|
|
1899
2076
|
routedProviderId?: string
|
|
2077
|
+
routedModelId?: string
|
|
1900
2078
|
deploymentId?: string
|
|
1901
2079
|
inferenceProfileId?: string
|
|
1902
2080
|
cacheWriteTtlSeconds?: number
|
|
@@ -1906,7 +2084,7 @@ export type ListAiModelCallsResponses = {
|
|
|
1906
2084
|
sourceId: string
|
|
1907
2085
|
sourceEntryId: string
|
|
1908
2086
|
sourceVersion: string
|
|
1909
|
-
sourceUrl
|
|
2087
|
+
sourceUrl?: string
|
|
1910
2088
|
observedAt: string
|
|
1911
2089
|
}
|
|
1912
2090
|
money: {
|
|
@@ -1919,6 +2097,8 @@ export type ListAiModelCallsResponses = {
|
|
|
1919
2097
|
| "tokens.input.uncached"
|
|
1920
2098
|
| "tokens.input.cacheRead"
|
|
1921
2099
|
| "tokens.input.cacheWrite"
|
|
2100
|
+
| "tokens.input.cacheWrite5m"
|
|
2101
|
+
| "tokens.input.cacheWrite1h"
|
|
1922
2102
|
| "tokens.output.total"
|
|
1923
2103
|
| "tokens.output.text"
|
|
1924
2104
|
| "tokens.output.reasoning"
|
|
@@ -1929,54 +2109,759 @@ export type ListAiModelCallsResponses = {
|
|
|
1929
2109
|
ratedAt: string
|
|
1930
2110
|
}
|
|
1931
2111
|
| {
|
|
1932
|
-
status: "unpriceable"
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
2112
|
+
status: "unpriceable"
|
|
2113
|
+
source: "estimate" | "provider" | "unknown"
|
|
2114
|
+
estimate?:
|
|
2115
|
+
| {
|
|
2116
|
+
status: "rated"
|
|
2117
|
+
money: {
|
|
2118
|
+
currency: string
|
|
2119
|
+
amountNanos: string
|
|
2120
|
+
}
|
|
2121
|
+
components: Array<{
|
|
2122
|
+
meter:
|
|
2123
|
+
| "tokens.input.total"
|
|
2124
|
+
| "tokens.input.uncached"
|
|
2125
|
+
| "tokens.input.cacheRead"
|
|
2126
|
+
| "tokens.input.cacheWrite"
|
|
2127
|
+
| "tokens.input.cacheWrite5m"
|
|
2128
|
+
| "tokens.input.cacheWrite1h"
|
|
2129
|
+
| "tokens.output.total"
|
|
2130
|
+
| "tokens.output.text"
|
|
2131
|
+
| "tokens.output.reasoning"
|
|
2132
|
+
quantity: string
|
|
2133
|
+
rateAmountNanosPerMillion: string
|
|
2134
|
+
chargeAmountNanos: string
|
|
2135
|
+
}>
|
|
2136
|
+
}
|
|
2137
|
+
| {
|
|
2138
|
+
status: "unpriceable"
|
|
2139
|
+
reason:
|
|
2140
|
+
| "missingBillingIdentity"
|
|
2141
|
+
| "missingRateCard"
|
|
2142
|
+
| "missingUsageMeter"
|
|
2143
|
+
| "unsupportedPricingDimension"
|
|
2144
|
+
| "invalidUsageForFormula"
|
|
2145
|
+
missingMeters?: Array<
|
|
2146
|
+
| "tokens.input.total"
|
|
2147
|
+
| "tokens.input.uncached"
|
|
2148
|
+
| "tokens.input.cacheRead"
|
|
2149
|
+
| "tokens.input.cacheWrite"
|
|
2150
|
+
| "tokens.input.cacheWrite5m"
|
|
2151
|
+
| "tokens.input.cacheWrite1h"
|
|
2152
|
+
| "tokens.output.total"
|
|
2153
|
+
| "tokens.output.text"
|
|
2154
|
+
| "tokens.output.reasoning"
|
|
2155
|
+
>
|
|
2156
|
+
}
|
|
2157
|
+
billingIdentity?: {
|
|
2158
|
+
providerId: string
|
|
2159
|
+
modelId: string
|
|
2160
|
+
}
|
|
2161
|
+
pricingContext: {
|
|
2162
|
+
serviceTier?: string
|
|
2163
|
+
batch?: boolean
|
|
2164
|
+
region?: string
|
|
2165
|
+
inferenceGeo?: string
|
|
2166
|
+
routedProviderId?: string
|
|
2167
|
+
routedModelId?: string
|
|
2168
|
+
deploymentId?: string
|
|
2169
|
+
inferenceProfileId?: string
|
|
2170
|
+
cacheWriteTtlSeconds?: number
|
|
2171
|
+
mode?: string
|
|
2172
|
+
}
|
|
2173
|
+
priceSource?: {
|
|
2174
|
+
sourceId: string
|
|
2175
|
+
sourceEntryId: string
|
|
2176
|
+
sourceVersion: string
|
|
2177
|
+
sourceUrl?: string
|
|
2178
|
+
observedAt: string
|
|
2179
|
+
}
|
|
2180
|
+
reason:
|
|
2181
|
+
| "missingBillingIdentity"
|
|
2182
|
+
| "missingRateCard"
|
|
2183
|
+
| "missingUsageMeter"
|
|
2184
|
+
| "unsupportedPricingDimension"
|
|
2185
|
+
| "invalidUsageForFormula"
|
|
2186
|
+
missingMeters?: Array<
|
|
2187
|
+
| "tokens.input.total"
|
|
2188
|
+
| "tokens.input.uncached"
|
|
2189
|
+
| "tokens.input.cacheRead"
|
|
2190
|
+
| "tokens.input.cacheWrite"
|
|
2191
|
+
| "tokens.input.cacheWrite5m"
|
|
2192
|
+
| "tokens.input.cacheWrite1h"
|
|
2193
|
+
| "tokens.output.total"
|
|
2194
|
+
| "tokens.output.text"
|
|
2195
|
+
| "tokens.output.reasoning"
|
|
2196
|
+
>
|
|
2197
|
+
ratedAt: string
|
|
2198
|
+
}
|
|
2199
|
+
valuationStatus: "rated" | "unpriceable" | "unvalued"
|
|
2200
|
+
}>
|
|
2201
|
+
hasMore: boolean
|
|
2202
|
+
total: number
|
|
2203
|
+
}
|
|
2204
|
+
}
|
|
2205
|
+
|
|
2206
|
+
export type ListAiModelCallsResponse = ListAiModelCallsResponses[keyof ListAiModelCallsResponses]
|
|
2207
|
+
|
|
2208
|
+
export type ListAiLimitPoliciesData = {
|
|
2209
|
+
body?: never
|
|
2210
|
+
path?: never
|
|
2211
|
+
query?: {
|
|
2212
|
+
includeDisabled?: "true" | "false"
|
|
2213
|
+
}
|
|
2214
|
+
url: "/api/ai/limits"
|
|
2215
|
+
}
|
|
2216
|
+
|
|
2217
|
+
export type ListAiLimitPoliciesErrors = {
|
|
2218
|
+
/**
|
|
2219
|
+
* Response for status 400
|
|
2220
|
+
*/
|
|
2221
|
+
400: {
|
|
2222
|
+
error: string
|
|
2223
|
+
}
|
|
2224
|
+
/**
|
|
2225
|
+
* Response for status 403
|
|
2226
|
+
*/
|
|
2227
|
+
403: {
|
|
2228
|
+
error: string
|
|
2229
|
+
}
|
|
2230
|
+
/**
|
|
2231
|
+
* Response for status 501
|
|
2232
|
+
*/
|
|
2233
|
+
501: {
|
|
2234
|
+
error: string
|
|
2235
|
+
}
|
|
2236
|
+
}
|
|
2237
|
+
|
|
2238
|
+
export type ListAiLimitPoliciesError = ListAiLimitPoliciesErrors[keyof ListAiLimitPoliciesErrors]
|
|
2239
|
+
|
|
2240
|
+
export type ListAiLimitPoliciesResponses = {
|
|
2241
|
+
/**
|
|
2242
|
+
* Response for status 200
|
|
2243
|
+
*/
|
|
2244
|
+
200: {
|
|
2245
|
+
items: Array<{
|
|
2246
|
+
id: string
|
|
2247
|
+
subject:
|
|
2248
|
+
| {
|
|
2249
|
+
type: "project"
|
|
2250
|
+
}
|
|
2251
|
+
| {
|
|
2252
|
+
type: "group"
|
|
2253
|
+
id: string
|
|
2254
|
+
}
|
|
2255
|
+
| {
|
|
2256
|
+
type: "user"
|
|
2257
|
+
id: string
|
|
2258
|
+
}
|
|
2259
|
+
| {
|
|
2260
|
+
type: "serviceAccount"
|
|
2261
|
+
id: string
|
|
2262
|
+
}
|
|
2263
|
+
limit:
|
|
2264
|
+
| {
|
|
2265
|
+
meter: "tokens.total"
|
|
2266
|
+
amount: number
|
|
2267
|
+
}
|
|
2268
|
+
| {
|
|
2269
|
+
meter: "cost.catalogEstimated"
|
|
2270
|
+
amount: {
|
|
2271
|
+
currency: "USD"
|
|
2272
|
+
amountNanos: string
|
|
2273
|
+
}
|
|
2274
|
+
}
|
|
2275
|
+
period: "calendarMonth"
|
|
2276
|
+
enabled: boolean
|
|
2277
|
+
createdAt: string
|
|
2278
|
+
updatedAt: string
|
|
2279
|
+
}>
|
|
2280
|
+
capabilities: {
|
|
2281
|
+
manage: boolean
|
|
2282
|
+
}
|
|
2283
|
+
}
|
|
2284
|
+
}
|
|
2285
|
+
|
|
2286
|
+
export type ListAiLimitPoliciesResponse =
|
|
2287
|
+
ListAiLimitPoliciesResponses[keyof ListAiLimitPoliciesResponses]
|
|
2288
|
+
|
|
2289
|
+
export type CreateAiLimitPolicyData = {
|
|
2290
|
+
body: {
|
|
2291
|
+
subject:
|
|
2292
|
+
| {
|
|
2293
|
+
type: "project"
|
|
2294
|
+
}
|
|
2295
|
+
| {
|
|
2296
|
+
type: "group"
|
|
2297
|
+
id: string
|
|
2298
|
+
}
|
|
2299
|
+
| {
|
|
2300
|
+
type: "user"
|
|
2301
|
+
id: string
|
|
2302
|
+
}
|
|
2303
|
+
| {
|
|
2304
|
+
type: "serviceAccount"
|
|
2305
|
+
id: string
|
|
2306
|
+
}
|
|
2307
|
+
limit:
|
|
2308
|
+
| {
|
|
2309
|
+
meter: "tokens.total"
|
|
2310
|
+
amount: number
|
|
2311
|
+
}
|
|
2312
|
+
| {
|
|
2313
|
+
meter: "cost.catalogEstimated"
|
|
2314
|
+
amount: {
|
|
2315
|
+
currency: "USD"
|
|
2316
|
+
amountNanos: string
|
|
2317
|
+
}
|
|
2318
|
+
}
|
|
2319
|
+
enabled?: boolean
|
|
2320
|
+
}
|
|
2321
|
+
path?: never
|
|
2322
|
+
query?: never
|
|
2323
|
+
url: "/api/ai/limits"
|
|
2324
|
+
}
|
|
2325
|
+
|
|
2326
|
+
export type CreateAiLimitPolicyErrors = {
|
|
2327
|
+
/**
|
|
2328
|
+
* Response for status 400
|
|
2329
|
+
*/
|
|
2330
|
+
400: {
|
|
2331
|
+
error: string
|
|
2332
|
+
}
|
|
2333
|
+
/**
|
|
2334
|
+
* Response for status 403
|
|
2335
|
+
*/
|
|
2336
|
+
403: {
|
|
2337
|
+
error: string
|
|
2338
|
+
}
|
|
2339
|
+
/**
|
|
2340
|
+
* Response for status 409
|
|
2341
|
+
*/
|
|
2342
|
+
409: {
|
|
2343
|
+
error: string
|
|
2344
|
+
}
|
|
2345
|
+
/**
|
|
2346
|
+
* Response for status 501
|
|
2347
|
+
*/
|
|
2348
|
+
501: {
|
|
2349
|
+
error: string
|
|
2350
|
+
}
|
|
2351
|
+
}
|
|
2352
|
+
|
|
2353
|
+
export type CreateAiLimitPolicyError = CreateAiLimitPolicyErrors[keyof CreateAiLimitPolicyErrors]
|
|
2354
|
+
|
|
2355
|
+
export type CreateAiLimitPolicyResponses = {
|
|
2356
|
+
/**
|
|
2357
|
+
* Response for status 200
|
|
2358
|
+
*/
|
|
2359
|
+
200: {
|
|
2360
|
+
id: string
|
|
2361
|
+
subject:
|
|
2362
|
+
| {
|
|
2363
|
+
type: "project"
|
|
2364
|
+
}
|
|
2365
|
+
| {
|
|
2366
|
+
type: "group"
|
|
2367
|
+
id: string
|
|
2368
|
+
}
|
|
2369
|
+
| {
|
|
2370
|
+
type: "user"
|
|
2371
|
+
id: string
|
|
2372
|
+
}
|
|
2373
|
+
| {
|
|
2374
|
+
type: "serviceAccount"
|
|
2375
|
+
id: string
|
|
2376
|
+
}
|
|
2377
|
+
limit:
|
|
2378
|
+
| {
|
|
2379
|
+
meter: "tokens.total"
|
|
2380
|
+
amount: number
|
|
2381
|
+
}
|
|
2382
|
+
| {
|
|
2383
|
+
meter: "cost.catalogEstimated"
|
|
2384
|
+
amount: {
|
|
2385
|
+
currency: "USD"
|
|
2386
|
+
amountNanos: string
|
|
2387
|
+
}
|
|
2388
|
+
}
|
|
2389
|
+
period: "calendarMonth"
|
|
2390
|
+
enabled: boolean
|
|
2391
|
+
createdAt: string
|
|
2392
|
+
updatedAt: string
|
|
2393
|
+
}
|
|
2394
|
+
}
|
|
2395
|
+
|
|
2396
|
+
export type CreateAiLimitPolicyResponse =
|
|
2397
|
+
CreateAiLimitPolicyResponses[keyof CreateAiLimitPolicyResponses]
|
|
2398
|
+
|
|
2399
|
+
export type GetAiLimitStatusData = {
|
|
2400
|
+
body?: never
|
|
2401
|
+
path?: never
|
|
2402
|
+
query?: {
|
|
2403
|
+
includeDisabled?: "true" | "false"
|
|
2404
|
+
}
|
|
2405
|
+
url: "/api/ai/limits/status"
|
|
2406
|
+
}
|
|
2407
|
+
|
|
2408
|
+
export type GetAiLimitStatusErrors = {
|
|
2409
|
+
/**
|
|
2410
|
+
* Response for status 400
|
|
2411
|
+
*/
|
|
2412
|
+
400: {
|
|
2413
|
+
error: string
|
|
2414
|
+
}
|
|
2415
|
+
/**
|
|
2416
|
+
* Response for status 403
|
|
2417
|
+
*/
|
|
2418
|
+
403: {
|
|
2419
|
+
error: string
|
|
2420
|
+
}
|
|
2421
|
+
/**
|
|
2422
|
+
* Response for status 501
|
|
2423
|
+
*/
|
|
2424
|
+
501: {
|
|
2425
|
+
error: string
|
|
2426
|
+
}
|
|
2427
|
+
}
|
|
2428
|
+
|
|
2429
|
+
export type GetAiLimitStatusError = GetAiLimitStatusErrors[keyof GetAiLimitStatusErrors]
|
|
2430
|
+
|
|
2431
|
+
export type GetAiLimitStatusResponses = {
|
|
2432
|
+
/**
|
|
2433
|
+
* Response for status 200
|
|
2434
|
+
*/
|
|
2435
|
+
200: {
|
|
2436
|
+
items: Array<{
|
|
2437
|
+
policy: {
|
|
2438
|
+
id: string
|
|
2439
|
+
subject:
|
|
2440
|
+
| {
|
|
2441
|
+
type: "project"
|
|
2442
|
+
}
|
|
2443
|
+
| {
|
|
2444
|
+
type: "group"
|
|
2445
|
+
id: string
|
|
2446
|
+
}
|
|
2447
|
+
| {
|
|
2448
|
+
type: "user"
|
|
2449
|
+
id: string
|
|
2450
|
+
}
|
|
2451
|
+
| {
|
|
2452
|
+
type: "serviceAccount"
|
|
2453
|
+
id: string
|
|
2454
|
+
}
|
|
2455
|
+
limit:
|
|
2456
|
+
| {
|
|
2457
|
+
meter: "tokens.total"
|
|
2458
|
+
amount: number
|
|
2459
|
+
}
|
|
2460
|
+
| {
|
|
2461
|
+
meter: "cost.catalogEstimated"
|
|
2462
|
+
amount: {
|
|
2463
|
+
currency: "USD"
|
|
2464
|
+
amountNanos: string
|
|
2465
|
+
}
|
|
2466
|
+
}
|
|
2467
|
+
period: "calendarMonth"
|
|
2468
|
+
enabled: boolean
|
|
2469
|
+
createdAt: string
|
|
2470
|
+
updatedAt: string
|
|
2471
|
+
}
|
|
2472
|
+
period: {
|
|
2473
|
+
kind: "calendarMonth"
|
|
2474
|
+
start: string
|
|
2475
|
+
end: string
|
|
2476
|
+
resetAt: string
|
|
2477
|
+
}
|
|
2478
|
+
consumption: {
|
|
2479
|
+
actual:
|
|
2480
|
+
| {
|
|
2481
|
+
meter: "tokens.total"
|
|
2482
|
+
amount: number
|
|
2483
|
+
}
|
|
2484
|
+
| {
|
|
2485
|
+
meter: "cost.catalogEstimated"
|
|
2486
|
+
amount: {
|
|
2487
|
+
currency: "USD"
|
|
2488
|
+
amountNanos: string
|
|
2489
|
+
}
|
|
2490
|
+
}
|
|
2491
|
+
reserved:
|
|
2492
|
+
| {
|
|
2493
|
+
meter: "tokens.total"
|
|
2494
|
+
amount: number
|
|
2495
|
+
}
|
|
2496
|
+
| {
|
|
2497
|
+
meter: "cost.catalogEstimated"
|
|
2498
|
+
amount: {
|
|
2499
|
+
currency: "USD"
|
|
2500
|
+
amountNanos: string
|
|
2501
|
+
}
|
|
2502
|
+
}
|
|
2503
|
+
unknown:
|
|
2504
|
+
| {
|
|
2505
|
+
meter: "tokens.total"
|
|
2506
|
+
amount: number
|
|
2507
|
+
}
|
|
2508
|
+
| {
|
|
2509
|
+
meter: "cost.catalogEstimated"
|
|
2510
|
+
amount: {
|
|
2511
|
+
currency: "USD"
|
|
2512
|
+
amountNanos: string
|
|
2513
|
+
}
|
|
2514
|
+
}
|
|
2515
|
+
remaining:
|
|
2516
|
+
| {
|
|
2517
|
+
meter: "tokens.total"
|
|
2518
|
+
amount: number
|
|
2519
|
+
}
|
|
2520
|
+
| {
|
|
2521
|
+
meter: "cost.catalogEstimated"
|
|
2522
|
+
amount: {
|
|
2523
|
+
currency: "USD"
|
|
2524
|
+
amountNanos: string
|
|
2525
|
+
}
|
|
2526
|
+
}
|
|
2527
|
+
}
|
|
2528
|
+
accountingStatus: "complete" | "unavailable"
|
|
2529
|
+
exhausted: boolean
|
|
2530
|
+
orphaned: boolean
|
|
2531
|
+
}>
|
|
2532
|
+
capabilities: {
|
|
2533
|
+
manage: boolean
|
|
2534
|
+
}
|
|
2535
|
+
}
|
|
2536
|
+
}
|
|
2537
|
+
|
|
2538
|
+
export type GetAiLimitStatusResponse = GetAiLimitStatusResponses[keyof GetAiLimitStatusResponses]
|
|
2539
|
+
|
|
2540
|
+
export type GetAiLimitSubjectOptionsData = {
|
|
2541
|
+
body?: never
|
|
2542
|
+
path?: never
|
|
2543
|
+
query?: never
|
|
2544
|
+
url: "/api/ai/limits/subjects"
|
|
2545
|
+
}
|
|
2546
|
+
|
|
2547
|
+
export type GetAiLimitSubjectOptionsErrors = {
|
|
2548
|
+
/**
|
|
2549
|
+
* Response for status 400
|
|
2550
|
+
*/
|
|
2551
|
+
400: {
|
|
2552
|
+
error: string
|
|
2553
|
+
}
|
|
2554
|
+
/**
|
|
2555
|
+
* Response for status 403
|
|
2556
|
+
*/
|
|
2557
|
+
403: {
|
|
2558
|
+
error: string
|
|
2559
|
+
}
|
|
2560
|
+
}
|
|
2561
|
+
|
|
2562
|
+
export type GetAiLimitSubjectOptionsError =
|
|
2563
|
+
GetAiLimitSubjectOptionsErrors[keyof GetAiLimitSubjectOptionsErrors]
|
|
2564
|
+
|
|
2565
|
+
export type GetAiLimitSubjectOptionsResponses = {
|
|
2566
|
+
/**
|
|
2567
|
+
* Response for status 200
|
|
2568
|
+
*/
|
|
2569
|
+
200: {
|
|
2570
|
+
groups: Array<{
|
|
2571
|
+
id: string
|
|
2572
|
+
label?: string
|
|
2573
|
+
description?: string
|
|
2574
|
+
}>
|
|
2575
|
+
users: Array<{
|
|
2576
|
+
id: string
|
|
2577
|
+
email: string
|
|
2578
|
+
displayName?: string
|
|
2579
|
+
status: "active" | "suspended"
|
|
2580
|
+
}>
|
|
2581
|
+
serviceAccounts: Array<{
|
|
2582
|
+
id: string
|
|
2583
|
+
name: string
|
|
2584
|
+
description?: string
|
|
2585
|
+
status: "active" | "suspended"
|
|
2586
|
+
}>
|
|
2587
|
+
}
|
|
2588
|
+
}
|
|
2589
|
+
|
|
2590
|
+
export type GetAiLimitSubjectOptionsResponse =
|
|
2591
|
+
GetAiLimitSubjectOptionsResponses[keyof GetAiLimitSubjectOptionsResponses]
|
|
2592
|
+
|
|
2593
|
+
export type DeleteAiLimitPolicyData = {
|
|
2594
|
+
body?: never
|
|
2595
|
+
path: {
|
|
2596
|
+
limitId: string
|
|
2597
|
+
}
|
|
2598
|
+
query?: never
|
|
2599
|
+
url: "/api/ai/limits/{limitId}"
|
|
2600
|
+
}
|
|
2601
|
+
|
|
2602
|
+
export type DeleteAiLimitPolicyErrors = {
|
|
2603
|
+
/**
|
|
2604
|
+
* Response for status 400
|
|
2605
|
+
*/
|
|
2606
|
+
400: {
|
|
2607
|
+
error: string
|
|
2608
|
+
}
|
|
2609
|
+
/**
|
|
2610
|
+
* Response for status 403
|
|
2611
|
+
*/
|
|
2612
|
+
403: {
|
|
2613
|
+
error: string
|
|
2614
|
+
}
|
|
2615
|
+
/**
|
|
2616
|
+
* Response for status 404
|
|
2617
|
+
*/
|
|
2618
|
+
404: {
|
|
2619
|
+
error: string
|
|
2620
|
+
}
|
|
2621
|
+
/**
|
|
2622
|
+
* Response for status 501
|
|
2623
|
+
*/
|
|
2624
|
+
501: {
|
|
2625
|
+
error: string
|
|
2626
|
+
}
|
|
2627
|
+
}
|
|
2628
|
+
|
|
2629
|
+
export type DeleteAiLimitPolicyError = DeleteAiLimitPolicyErrors[keyof DeleteAiLimitPolicyErrors]
|
|
2630
|
+
|
|
2631
|
+
export type DeleteAiLimitPolicyResponses = {
|
|
2632
|
+
/**
|
|
2633
|
+
* Response for status 200
|
|
2634
|
+
*/
|
|
2635
|
+
200: {
|
|
2636
|
+
success: boolean
|
|
2637
|
+
}
|
|
2638
|
+
}
|
|
2639
|
+
|
|
2640
|
+
export type DeleteAiLimitPolicyResponse =
|
|
2641
|
+
DeleteAiLimitPolicyResponses[keyof DeleteAiLimitPolicyResponses]
|
|
2642
|
+
|
|
2643
|
+
export type UpdateAiLimitPolicyData = {
|
|
2644
|
+
body: {
|
|
2645
|
+
limit?:
|
|
2646
|
+
| {
|
|
2647
|
+
meter: "tokens.total"
|
|
2648
|
+
amount: number
|
|
2649
|
+
}
|
|
2650
|
+
| {
|
|
2651
|
+
meter: "cost.catalogEstimated"
|
|
2652
|
+
amount: {
|
|
2653
|
+
currency: "USD"
|
|
2654
|
+
amountNanos: string
|
|
2655
|
+
}
|
|
2656
|
+
}
|
|
2657
|
+
enabled?: boolean
|
|
2658
|
+
}
|
|
2659
|
+
path: {
|
|
2660
|
+
limitId: string
|
|
2661
|
+
}
|
|
2662
|
+
query?: never
|
|
2663
|
+
url: "/api/ai/limits/{limitId}"
|
|
2664
|
+
}
|
|
2665
|
+
|
|
2666
|
+
export type UpdateAiLimitPolicyErrors = {
|
|
2667
|
+
/**
|
|
2668
|
+
* Response for status 400
|
|
2669
|
+
*/
|
|
2670
|
+
400: {
|
|
2671
|
+
error: string
|
|
2672
|
+
}
|
|
2673
|
+
/**
|
|
2674
|
+
* Response for status 403
|
|
2675
|
+
*/
|
|
2676
|
+
403: {
|
|
2677
|
+
error: string
|
|
2678
|
+
}
|
|
2679
|
+
/**
|
|
2680
|
+
* Response for status 404
|
|
2681
|
+
*/
|
|
2682
|
+
404: {
|
|
2683
|
+
error: string
|
|
2684
|
+
}
|
|
2685
|
+
/**
|
|
2686
|
+
* Response for status 501
|
|
2687
|
+
*/
|
|
2688
|
+
501: {
|
|
2689
|
+
error: string
|
|
2690
|
+
}
|
|
2691
|
+
}
|
|
2692
|
+
|
|
2693
|
+
export type UpdateAiLimitPolicyError = UpdateAiLimitPolicyErrors[keyof UpdateAiLimitPolicyErrors]
|
|
2694
|
+
|
|
2695
|
+
export type UpdateAiLimitPolicyResponses = {
|
|
2696
|
+
/**
|
|
2697
|
+
* Response for status 200
|
|
2698
|
+
*/
|
|
2699
|
+
200: {
|
|
2700
|
+
id: string
|
|
2701
|
+
subject:
|
|
2702
|
+
| {
|
|
2703
|
+
type: "project"
|
|
2704
|
+
}
|
|
2705
|
+
| {
|
|
2706
|
+
type: "group"
|
|
2707
|
+
id: string
|
|
2708
|
+
}
|
|
2709
|
+
| {
|
|
2710
|
+
type: "user"
|
|
2711
|
+
id: string
|
|
2712
|
+
}
|
|
2713
|
+
| {
|
|
2714
|
+
type: "serviceAccount"
|
|
2715
|
+
id: string
|
|
2716
|
+
}
|
|
2717
|
+
limit:
|
|
2718
|
+
| {
|
|
2719
|
+
meter: "tokens.total"
|
|
2720
|
+
amount: number
|
|
2721
|
+
}
|
|
2722
|
+
| {
|
|
2723
|
+
meter: "cost.catalogEstimated"
|
|
2724
|
+
amount: {
|
|
2725
|
+
currency: "USD"
|
|
2726
|
+
amountNanos: string
|
|
2727
|
+
}
|
|
2728
|
+
}
|
|
2729
|
+
period: "calendarMonth"
|
|
2730
|
+
enabled: boolean
|
|
2731
|
+
createdAt: string
|
|
2732
|
+
updatedAt: string
|
|
2733
|
+
}
|
|
2734
|
+
}
|
|
2735
|
+
|
|
2736
|
+
export type UpdateAiLimitPolicyResponse =
|
|
2737
|
+
UpdateAiLimitPolicyResponses[keyof UpdateAiLimitPolicyResponses]
|
|
2738
|
+
|
|
2739
|
+
export type ListAiModelCallGroupsData = {
|
|
2740
|
+
body?: never
|
|
2741
|
+
path?: never
|
|
2742
|
+
query: {
|
|
2743
|
+
from: string
|
|
2744
|
+
to: string
|
|
2745
|
+
providerId?: string
|
|
2746
|
+
modelId?: string
|
|
2747
|
+
valuationStatus?: "rated" | "unpriceable" | "unvalued"
|
|
2748
|
+
limit?: string
|
|
2749
|
+
offset?: string
|
|
2750
|
+
}
|
|
2751
|
+
url: "/api/ai/model-call-groups"
|
|
2752
|
+
}
|
|
2753
|
+
|
|
2754
|
+
export type ListAiModelCallGroupsErrors = {
|
|
2755
|
+
/**
|
|
2756
|
+
* Response for status 400
|
|
2757
|
+
*/
|
|
2758
|
+
400: {
|
|
2759
|
+
error: string
|
|
2760
|
+
}
|
|
2761
|
+
/**
|
|
2762
|
+
* Response for status 403
|
|
2763
|
+
*/
|
|
2764
|
+
403: {
|
|
2765
|
+
error: string
|
|
2766
|
+
}
|
|
2767
|
+
/**
|
|
2768
|
+
* Response for status 501
|
|
2769
|
+
*/
|
|
2770
|
+
501: {
|
|
2771
|
+
error: string
|
|
2772
|
+
}
|
|
2773
|
+
}
|
|
2774
|
+
|
|
2775
|
+
export type ListAiModelCallGroupsError =
|
|
2776
|
+
ListAiModelCallGroupsErrors[keyof ListAiModelCallGroupsErrors]
|
|
2777
|
+
|
|
2778
|
+
export type ListAiModelCallGroupsResponses = {
|
|
2779
|
+
/**
|
|
2780
|
+
* Response for status 200
|
|
2781
|
+
*/
|
|
2782
|
+
200: {
|
|
2783
|
+
items: Array<{
|
|
2784
|
+
executionId: string
|
|
2785
|
+
attribution?:
|
|
2786
|
+
| {
|
|
2787
|
+
kind: "agent"
|
|
2788
|
+
agentRunId: string
|
|
2789
|
+
threadId: string
|
|
2790
|
+
}
|
|
2791
|
+
| {
|
|
2792
|
+
kind: "workflowAgent"
|
|
2793
|
+
agentStepId: string
|
|
2794
|
+
nodeRunId: string
|
|
2795
|
+
workflowId: string
|
|
2796
|
+
workflowRunId: string
|
|
2797
|
+
}
|
|
2798
|
+
| {
|
|
2799
|
+
kind: "subagent"
|
|
2800
|
+
subagentRunId: string
|
|
2801
|
+
parentRunId: string
|
|
2802
|
+
}
|
|
2803
|
+
modelCallCount: number
|
|
2804
|
+
totalTokens?: number
|
|
2805
|
+
costs: {
|
|
2806
|
+
amounts: Array<{
|
|
2807
|
+
currency: string
|
|
2808
|
+
amountNanos: string
|
|
2809
|
+
}>
|
|
2810
|
+
ratedCallCount: number
|
|
2811
|
+
unpriceableCallCount: number
|
|
2812
|
+
unvaluedCallCount: number
|
|
2813
|
+
}
|
|
2814
|
+
firstCallAt: string
|
|
2815
|
+
lastCallAt: string
|
|
2816
|
+
label?: string
|
|
2817
|
+
executions: Array<{
|
|
2818
|
+
executionId: string
|
|
2819
|
+
attribution?:
|
|
2820
|
+
| {
|
|
2821
|
+
kind: "agent"
|
|
2822
|
+
agentRunId: string
|
|
2823
|
+
threadId: string
|
|
1936
2824
|
}
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
deploymentId?: string
|
|
1944
|
-
inferenceProfileId?: string
|
|
1945
|
-
cacheWriteTtlSeconds?: number
|
|
1946
|
-
mode?: string
|
|
2825
|
+
| {
|
|
2826
|
+
kind: "workflowAgent"
|
|
2827
|
+
agentStepId: string
|
|
2828
|
+
nodeRunId: string
|
|
2829
|
+
workflowId: string
|
|
2830
|
+
workflowRunId: string
|
|
1947
2831
|
}
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
sourceUrl: string
|
|
1953
|
-
observedAt: string
|
|
2832
|
+
| {
|
|
2833
|
+
kind: "subagent"
|
|
2834
|
+
subagentRunId: string
|
|
2835
|
+
parentRunId: string
|
|
1954
2836
|
}
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
2837
|
+
modelCallCount: number
|
|
2838
|
+
totalTokens?: number
|
|
2839
|
+
costs: {
|
|
2840
|
+
amounts: Array<{
|
|
2841
|
+
currency: string
|
|
2842
|
+
amountNanos: string
|
|
2843
|
+
}>
|
|
2844
|
+
ratedCallCount: number
|
|
2845
|
+
unpriceableCallCount: number
|
|
2846
|
+
unvaluedCallCount: number
|
|
2847
|
+
}
|
|
2848
|
+
firstCallAt: string
|
|
2849
|
+
lastCallAt: string
|
|
2850
|
+
models: Array<{
|
|
2851
|
+
providerId: string
|
|
2852
|
+
modelId: string
|
|
2853
|
+
}>
|
|
2854
|
+
label?: string
|
|
2855
|
+
}>
|
|
2856
|
+
canOpenThread: boolean
|
|
1973
2857
|
}>
|
|
1974
|
-
hasMore: boolean
|
|
1975
2858
|
total: number
|
|
2859
|
+
hasMore: boolean
|
|
1976
2860
|
}
|
|
1977
2861
|
}
|
|
1978
2862
|
|
|
1979
|
-
export type
|
|
2863
|
+
export type ListAiModelCallGroupsResponse =
|
|
2864
|
+
ListAiModelCallGroupsResponses[keyof ListAiModelCallGroupsResponses]
|
|
1980
2865
|
|
|
1981
2866
|
export type GetProjectInfoData = {
|
|
1982
2867
|
body?: never
|
|
@@ -4545,7 +5430,6 @@ export type ListWorkflowsResponses = {
|
|
|
4545
5430
|
type: "agent"
|
|
4546
5431
|
id: string
|
|
4547
5432
|
key: string
|
|
4548
|
-
agentId: string
|
|
4549
5433
|
input: {
|
|
4550
5434
|
[key: string]:
|
|
4551
5435
|
| string
|
|
@@ -4579,7 +5463,12 @@ export type ListWorkflowsResponses = {
|
|
|
4579
5463
|
startedAt: string
|
|
4580
5464
|
finishedAt?: string
|
|
4581
5465
|
error?: {
|
|
4582
|
-
code:
|
|
5466
|
+
code:
|
|
5467
|
+
| "internal.unexpected"
|
|
5468
|
+
| "runtime.cancelled"
|
|
5469
|
+
| "workflow.node_failed"
|
|
5470
|
+
| "ai.usage_limit_exceeded"
|
|
5471
|
+
| "ai.usage_limit_unavailable"
|
|
4583
5472
|
message: string
|
|
4584
5473
|
retryable: boolean
|
|
4585
5474
|
at: string
|
|
@@ -4725,7 +5614,6 @@ export type GetWorkflowResponses = {
|
|
|
4725
5614
|
type: "agent"
|
|
4726
5615
|
id: string
|
|
4727
5616
|
key: string
|
|
4728
|
-
agentId: string
|
|
4729
5617
|
input: {
|
|
4730
5618
|
[key: string]:
|
|
4731
5619
|
| string
|
|
@@ -4759,7 +5647,12 @@ export type GetWorkflowResponses = {
|
|
|
4759
5647
|
startedAt: string
|
|
4760
5648
|
finishedAt?: string
|
|
4761
5649
|
error?: {
|
|
4762
|
-
code:
|
|
5650
|
+
code:
|
|
5651
|
+
| "internal.unexpected"
|
|
5652
|
+
| "runtime.cancelled"
|
|
5653
|
+
| "workflow.node_failed"
|
|
5654
|
+
| "ai.usage_limit_exceeded"
|
|
5655
|
+
| "ai.usage_limit_unavailable"
|
|
4763
5656
|
message: string
|
|
4764
5657
|
retryable: boolean
|
|
4765
5658
|
at: string
|
|
@@ -5261,7 +6154,12 @@ export type ListWorkflowRunsResponses = {
|
|
|
5261
6154
|
startedAt: string
|
|
5262
6155
|
finishedAt?: string
|
|
5263
6156
|
error?: {
|
|
5264
|
-
code:
|
|
6157
|
+
code:
|
|
6158
|
+
| "internal.unexpected"
|
|
6159
|
+
| "runtime.cancelled"
|
|
6160
|
+
| "workflow.node_failed"
|
|
6161
|
+
| "ai.usage_limit_exceeded"
|
|
6162
|
+
| "ai.usage_limit_unavailable"
|
|
5265
6163
|
message: string
|
|
5266
6164
|
retryable: boolean
|
|
5267
6165
|
at: string
|
|
@@ -5337,7 +6235,12 @@ export type GetWorkflowRunResponses = {
|
|
|
5337
6235
|
startedAt: string
|
|
5338
6236
|
finishedAt?: string
|
|
5339
6237
|
error?: {
|
|
5340
|
-
code:
|
|
6238
|
+
code:
|
|
6239
|
+
| "internal.unexpected"
|
|
6240
|
+
| "runtime.cancelled"
|
|
6241
|
+
| "workflow.node_failed"
|
|
6242
|
+
| "ai.usage_limit_exceeded"
|
|
6243
|
+
| "ai.usage_limit_unavailable"
|
|
5341
6244
|
message: string
|
|
5342
6245
|
retryable: boolean
|
|
5343
6246
|
at: string
|
|
@@ -5417,7 +6320,12 @@ export type GetWorkflowRunResponses = {
|
|
|
5417
6320
|
| null
|
|
5418
6321
|
}
|
|
5419
6322
|
error?: {
|
|
5420
|
-
code:
|
|
6323
|
+
code:
|
|
6324
|
+
| "internal.unexpected"
|
|
6325
|
+
| "runtime.cancelled"
|
|
6326
|
+
| "workflow.node_failed"
|
|
6327
|
+
| "ai.usage_limit_exceeded"
|
|
6328
|
+
| "ai.usage_limit_unavailable"
|
|
5421
6329
|
message: string
|
|
5422
6330
|
retryable: boolean
|
|
5423
6331
|
at: string
|
|
@@ -5436,7 +6344,6 @@ export type GetWorkflowRunResponses = {
|
|
|
5436
6344
|
truncated?: true
|
|
5437
6345
|
}
|
|
5438
6346
|
agentExecution?: {
|
|
5439
|
-
agentId: string
|
|
5440
6347
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
5441
6348
|
attempt: number
|
|
5442
6349
|
modelId?: string
|
|
@@ -5509,7 +6416,6 @@ export type GetWorkflowAgentNodeExecutionResponses = {
|
|
|
5509
6416
|
* Response for status 200
|
|
5510
6417
|
*/
|
|
5511
6418
|
200: {
|
|
5512
|
-
agentId: string
|
|
5513
6419
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
5514
6420
|
attempt: number
|
|
5515
6421
|
modelId?: string
|
|
@@ -5597,6 +6503,22 @@ export type GetWorkflowAgentNodeExecutionResponses = {
|
|
|
5597
6503
|
}
|
|
5598
6504
|
| null
|
|
5599
6505
|
}
|
|
6506
|
+
| {
|
|
6507
|
+
type: "provider-state"
|
|
6508
|
+
providerId: string
|
|
6509
|
+
/**
|
|
6510
|
+
* Any JSON-compatible value.
|
|
6511
|
+
*/
|
|
6512
|
+
data:
|
|
6513
|
+
| string
|
|
6514
|
+
| number
|
|
6515
|
+
| boolean
|
|
6516
|
+
| Array<unknown>
|
|
6517
|
+
| {
|
|
6518
|
+
[key: string]: unknown
|
|
6519
|
+
}
|
|
6520
|
+
| null
|
|
6521
|
+
}
|
|
5600
6522
|
| {
|
|
5601
6523
|
context:
|
|
5602
6524
|
| {
|
|
@@ -5717,7 +6639,12 @@ export type GetWorkflowAgentNodeExecutionResponses = {
|
|
|
5717
6639
|
>
|
|
5718
6640
|
failurePhase?: "agent-loop" | "structured-finalizer"
|
|
5719
6641
|
error?: {
|
|
5720
|
-
code:
|
|
6642
|
+
code:
|
|
6643
|
+
| "internal.unexpected"
|
|
6644
|
+
| "runtime.cancelled"
|
|
6645
|
+
| "agent.execution_failed"
|
|
6646
|
+
| "ai.usage_limit_exceeded"
|
|
6647
|
+
| "ai.usage_limit_unavailable"
|
|
5721
6648
|
message: string
|
|
5722
6649
|
retryable: boolean
|
|
5723
6650
|
at: string
|
|
@@ -5790,7 +6717,12 @@ export type CancelWorkflowRunResponses = {
|
|
|
5790
6717
|
startedAt: string
|
|
5791
6718
|
finishedAt?: string
|
|
5792
6719
|
error?: {
|
|
5793
|
-
code:
|
|
6720
|
+
code:
|
|
6721
|
+
| "internal.unexpected"
|
|
6722
|
+
| "runtime.cancelled"
|
|
6723
|
+
| "workflow.node_failed"
|
|
6724
|
+
| "ai.usage_limit_exceeded"
|
|
6725
|
+
| "ai.usage_limit_unavailable"
|
|
5794
6726
|
message: string
|
|
5795
6727
|
retryable: boolean
|
|
5796
6728
|
at: string
|
|
@@ -5870,7 +6802,12 @@ export type CancelWorkflowRunResponses = {
|
|
|
5870
6802
|
| null
|
|
5871
6803
|
}
|
|
5872
6804
|
error?: {
|
|
5873
|
-
code:
|
|
6805
|
+
code:
|
|
6806
|
+
| "internal.unexpected"
|
|
6807
|
+
| "runtime.cancelled"
|
|
6808
|
+
| "workflow.node_failed"
|
|
6809
|
+
| "ai.usage_limit_exceeded"
|
|
6810
|
+
| "ai.usage_limit_unavailable"
|
|
5874
6811
|
message: string
|
|
5875
6812
|
retryable: boolean
|
|
5876
6813
|
at: string
|
|
@@ -5889,7 +6826,6 @@ export type CancelWorkflowRunResponses = {
|
|
|
5889
6826
|
truncated?: true
|
|
5890
6827
|
}
|
|
5891
6828
|
agentExecution?: {
|
|
5892
|
-
agentId: string
|
|
5893
6829
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
5894
6830
|
attempt: number
|
|
5895
6831
|
modelId?: string
|
|
@@ -5931,6 +6867,10 @@ export type GetWorkflowRunFileContentData = {
|
|
|
5931
6867
|
query: {
|
|
5932
6868
|
path: string
|
|
5933
6869
|
disposition?: "inline" | "attachment"
|
|
6870
|
+
/**
|
|
6871
|
+
* Client cache key; the route still resolves the current file
|
|
6872
|
+
*/
|
|
6873
|
+
v?: string
|
|
5934
6874
|
}
|
|
5935
6875
|
url: "/api/workflow-runs/{runId}/files/content"
|
|
5936
6876
|
}
|
|
@@ -5979,6 +6919,10 @@ export type HeadWorkflowRunFileContentData = {
|
|
|
5979
6919
|
query: {
|
|
5980
6920
|
path: string
|
|
5981
6921
|
disposition?: "inline" | "attachment"
|
|
6922
|
+
/**
|
|
6923
|
+
* Client cache key; the route still resolves the current file
|
|
6924
|
+
*/
|
|
6925
|
+
v?: string
|
|
5982
6926
|
}
|
|
5983
6927
|
url: "/api/workflow-runs/{runId}/files/content"
|
|
5984
6928
|
}
|
|
@@ -6025,6 +6969,10 @@ export type GetWorkflowNodeRunFileContentData = {
|
|
|
6025
6969
|
query: {
|
|
6026
6970
|
path: string
|
|
6027
6971
|
disposition?: "inline" | "attachment"
|
|
6972
|
+
/**
|
|
6973
|
+
* Client cache key; the route still resolves the current file
|
|
6974
|
+
*/
|
|
6975
|
+
v?: string
|
|
6028
6976
|
}
|
|
6029
6977
|
url: "/api/workflow-runs/{runId}/nodes/{nodeKey}/files/content"
|
|
6030
6978
|
}
|
|
@@ -6074,6 +7022,10 @@ export type HeadWorkflowNodeRunFileContentData = {
|
|
|
6074
7022
|
query: {
|
|
6075
7023
|
path: string
|
|
6076
7024
|
disposition?: "inline" | "attachment"
|
|
7025
|
+
/**
|
|
7026
|
+
* Client cache key; the route still resolves the current file
|
|
7027
|
+
*/
|
|
7028
|
+
v?: string
|
|
6077
7029
|
}
|
|
6078
7030
|
url: "/api/workflow-runs/{runId}/nodes/{nodeKey}/files/content"
|
|
6079
7031
|
}
|
|
@@ -6976,6 +7928,10 @@ export type GetObjectFileContentData = {
|
|
|
6976
7928
|
query: {
|
|
6977
7929
|
path: string
|
|
6978
7930
|
disposition?: "inline" | "attachment"
|
|
7931
|
+
/**
|
|
7932
|
+
* Client cache key; the route still resolves the current file
|
|
7933
|
+
*/
|
|
7934
|
+
v?: string
|
|
6979
7935
|
}
|
|
6980
7936
|
url: "/api/objects/{objectTypeId}/{objectId}/files/content"
|
|
6981
7937
|
}
|
|
@@ -7020,6 +7976,10 @@ export type HeadObjectFileContentData = {
|
|
|
7020
7976
|
query: {
|
|
7021
7977
|
path: string
|
|
7022
7978
|
disposition?: "inline" | "attachment"
|
|
7979
|
+
/**
|
|
7980
|
+
* Client cache key; the route still resolves the current file
|
|
7981
|
+
*/
|
|
7982
|
+
v?: string
|
|
7023
7983
|
}
|
|
7024
7984
|
url: "/api/objects/{objectTypeId}/{objectId}/files/content"
|
|
7025
7985
|
}
|
|
@@ -7870,6 +8830,10 @@ export type GetActionRunFileContentData = {
|
|
|
7870
8830
|
query: {
|
|
7871
8831
|
path: string
|
|
7872
8832
|
disposition?: "inline" | "attachment"
|
|
8833
|
+
/**
|
|
8834
|
+
* Client cache key; the route still resolves the current file
|
|
8835
|
+
*/
|
|
8836
|
+
v?: string
|
|
7873
8837
|
}
|
|
7874
8838
|
url: "/api/action-runs/{runId}/files/content"
|
|
7875
8839
|
}
|
|
@@ -7918,6 +8882,10 @@ export type HeadActionRunFileContentData = {
|
|
|
7918
8882
|
query: {
|
|
7919
8883
|
path: string
|
|
7920
8884
|
disposition?: "inline" | "attachment"
|
|
8885
|
+
/**
|
|
8886
|
+
* Client cache key; the route still resolves the current file
|
|
8887
|
+
*/
|
|
8888
|
+
v?: string
|
|
7921
8889
|
}
|
|
7922
8890
|
url: "/api/action-runs/{runId}/files/content"
|
|
7923
8891
|
}
|
|
@@ -7955,46 +8923,11 @@ export type HeadActionRunFileContentResponses = {
|
|
|
7955
8923
|
206: unknown
|
|
7956
8924
|
}
|
|
7957
8925
|
|
|
7958
|
-
export type ListAgentsData = {
|
|
7959
|
-
body?: never
|
|
7960
|
-
path?: never
|
|
7961
|
-
query?: never
|
|
7962
|
-
url: "/api/agents"
|
|
7963
|
-
}
|
|
7964
|
-
|
|
7965
|
-
export type ListAgentsResponses = {
|
|
7966
|
-
/**
|
|
7967
|
-
* Response for status 200
|
|
7968
|
-
*/
|
|
7969
|
-
200: Array<{
|
|
7970
|
-
id: string
|
|
7971
|
-
name: string
|
|
7972
|
-
description?: string
|
|
7973
|
-
modelId?: string
|
|
7974
|
-
reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh"
|
|
7975
|
-
groupIds: Array<string>
|
|
7976
|
-
loop?: {
|
|
7977
|
-
stopWhen?: {
|
|
7978
|
-
maxSteps?: number
|
|
7979
|
-
}
|
|
7980
|
-
context?: {
|
|
7981
|
-
windowTokens?: number
|
|
7982
|
-
reserveTokens?: number
|
|
7983
|
-
keepRecentTokens?: number
|
|
7984
|
-
}
|
|
7985
|
-
}
|
|
7986
|
-
}>
|
|
7987
|
-
}
|
|
7988
|
-
|
|
7989
|
-
export type ListAgentsResponse = ListAgentsResponses[keyof ListAgentsResponses]
|
|
7990
|
-
|
|
7991
8926
|
export type GetAgentData = {
|
|
7992
8927
|
body?: never
|
|
7993
|
-
path
|
|
7994
|
-
agentId: string
|
|
7995
|
-
}
|
|
8928
|
+
path?: never
|
|
7996
8929
|
query?: never
|
|
7997
|
-
url: "/api/
|
|
8930
|
+
url: "/api/agent"
|
|
7998
8931
|
}
|
|
7999
8932
|
|
|
8000
8933
|
export type GetAgentErrors = {
|
|
@@ -8013,21 +8946,10 @@ export type GetAgentResponses = {
|
|
|
8013
8946
|
* Response for status 200
|
|
8014
8947
|
*/
|
|
8015
8948
|
200: {
|
|
8016
|
-
id: string
|
|
8017
8949
|
name: string
|
|
8018
|
-
|
|
8019
|
-
|
|
8020
|
-
|
|
8021
|
-
groupIds: Array<string>
|
|
8022
|
-
loop?: {
|
|
8023
|
-
stopWhen?: {
|
|
8024
|
-
maxSteps?: number
|
|
8025
|
-
}
|
|
8026
|
-
context?: {
|
|
8027
|
-
windowTokens?: number
|
|
8028
|
-
reserveTokens?: number
|
|
8029
|
-
keepRecentTokens?: number
|
|
8030
|
-
}
|
|
8950
|
+
model: {
|
|
8951
|
+
provider: string
|
|
8952
|
+
modelId: string
|
|
8031
8953
|
}
|
|
8032
8954
|
}
|
|
8033
8955
|
}
|
|
@@ -8038,7 +8960,6 @@ export type ListAgentThreadsData = {
|
|
|
8038
8960
|
body?: never
|
|
8039
8961
|
path?: never
|
|
8040
8962
|
query?: {
|
|
8041
|
-
agentId?: string
|
|
8042
8963
|
status?: "active" | "archived"
|
|
8043
8964
|
limit?: string
|
|
8044
8965
|
offset?: string
|
|
@@ -8072,7 +8993,6 @@ export type ListAgentThreadsResponses = {
|
|
|
8072
8993
|
threads: Array<{
|
|
8073
8994
|
id: string
|
|
8074
8995
|
projectId: string
|
|
8075
|
-
agentId: string
|
|
8076
8996
|
ownerPrincipal: {
|
|
8077
8997
|
type: "user" | "serviceAccount" | "system"
|
|
8078
8998
|
id: string
|
|
@@ -8094,7 +9014,6 @@ export type ListAgentThreadsResponse = ListAgentThreadsResponses[keyof ListAgent
|
|
|
8094
9014
|
|
|
8095
9015
|
export type CreateAgentThreadData = {
|
|
8096
9016
|
body: {
|
|
8097
|
-
agentId: string
|
|
8098
9017
|
title?: string
|
|
8099
9018
|
threadId?: string
|
|
8100
9019
|
}
|
|
@@ -8140,7 +9059,6 @@ export type CreateAgentThreadResponses = {
|
|
|
8140
9059
|
thread: {
|
|
8141
9060
|
id: string
|
|
8142
9061
|
projectId: string
|
|
8143
|
-
agentId: string
|
|
8144
9062
|
ownerPrincipal: {
|
|
8145
9063
|
type: "user" | "serviceAccount" | "system"
|
|
8146
9064
|
id: string
|
|
@@ -8197,7 +9115,6 @@ export type GetAgentThreadResponses = {
|
|
|
8197
9115
|
200: {
|
|
8198
9116
|
id: string
|
|
8199
9117
|
projectId: string
|
|
8200
|
-
agentId: string
|
|
8201
9118
|
ownerPrincipal: {
|
|
8202
9119
|
type: "user" | "serviceAccount" | "system"
|
|
8203
9120
|
id: string
|
|
@@ -8327,6 +9244,22 @@ export type ListAgentThreadMessagesResponses = {
|
|
|
8327
9244
|
}
|
|
8328
9245
|
| null
|
|
8329
9246
|
}
|
|
9247
|
+
| {
|
|
9248
|
+
type: "provider-state"
|
|
9249
|
+
providerId: string
|
|
9250
|
+
/**
|
|
9251
|
+
* Any JSON-compatible value.
|
|
9252
|
+
*/
|
|
9253
|
+
data:
|
|
9254
|
+
| string
|
|
9255
|
+
| number
|
|
9256
|
+
| boolean
|
|
9257
|
+
| Array<unknown>
|
|
9258
|
+
| {
|
|
9259
|
+
[key: string]: unknown
|
|
9260
|
+
}
|
|
9261
|
+
| null
|
|
9262
|
+
}
|
|
8330
9263
|
| {
|
|
8331
9264
|
context:
|
|
8332
9265
|
| {
|
|
@@ -8480,6 +9413,22 @@ export type ListAgentThreadMessagesResponse =
|
|
|
8480
9413
|
export type PostAgentThreadMessageData = {
|
|
8481
9414
|
body: {
|
|
8482
9415
|
text: string
|
|
9416
|
+
model?: {
|
|
9417
|
+
provider: string
|
|
9418
|
+
modelId: string
|
|
9419
|
+
}
|
|
9420
|
+
reasoning?:
|
|
9421
|
+
| "provider-default"
|
|
9422
|
+
| "none"
|
|
9423
|
+
| "minimal"
|
|
9424
|
+
| "low"
|
|
9425
|
+
| "medium"
|
|
9426
|
+
| "high"
|
|
9427
|
+
| "xhigh"
|
|
9428
|
+
| "max"
|
|
9429
|
+
| {
|
|
9430
|
+
budgetTokens: number
|
|
9431
|
+
}
|
|
8483
9432
|
attachments?: Array<{
|
|
8484
9433
|
blobId: string
|
|
8485
9434
|
digest: string
|
|
@@ -8551,6 +9500,28 @@ export type PostAgentThreadMessageErrors = {
|
|
|
8551
9500
|
409: {
|
|
8552
9501
|
error: string
|
|
8553
9502
|
}
|
|
9503
|
+
/**
|
|
9504
|
+
* Response for status 429
|
|
9505
|
+
*/
|
|
9506
|
+
429: {
|
|
9507
|
+
error: string
|
|
9508
|
+
/**
|
|
9509
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
9510
|
+
*/
|
|
9511
|
+
code: "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable"
|
|
9512
|
+
/**
|
|
9513
|
+
* Any JSON-compatible value.
|
|
9514
|
+
*/
|
|
9515
|
+
details?:
|
|
9516
|
+
| string
|
|
9517
|
+
| number
|
|
9518
|
+
| boolean
|
|
9519
|
+
| Array<unknown>
|
|
9520
|
+
| {
|
|
9521
|
+
[key: string]: unknown
|
|
9522
|
+
}
|
|
9523
|
+
| null
|
|
9524
|
+
}
|
|
8554
9525
|
/**
|
|
8555
9526
|
* Response for status 501
|
|
8556
9527
|
*/
|
|
@@ -8571,13 +9542,28 @@ export type PostAgentThreadMessageResponses = {
|
|
|
8571
9542
|
id: string
|
|
8572
9543
|
projectId: string
|
|
8573
9544
|
threadId: string
|
|
8574
|
-
agentId: string
|
|
8575
9545
|
triggerMessageId: string
|
|
8576
9546
|
requestedBy?: {
|
|
8577
9547
|
type: "user" | "serviceAccount"
|
|
8578
9548
|
id: string
|
|
8579
9549
|
}
|
|
8580
9550
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
9551
|
+
model?: {
|
|
9552
|
+
provider: string
|
|
9553
|
+
modelId: string
|
|
9554
|
+
}
|
|
9555
|
+
reasoning?:
|
|
9556
|
+
| "provider-default"
|
|
9557
|
+
| "none"
|
|
9558
|
+
| "minimal"
|
|
9559
|
+
| "low"
|
|
9560
|
+
| "medium"
|
|
9561
|
+
| "high"
|
|
9562
|
+
| "xhigh"
|
|
9563
|
+
| "max"
|
|
9564
|
+
| {
|
|
9565
|
+
budgetTokens: number
|
|
9566
|
+
}
|
|
8581
9567
|
modelId?: string
|
|
8582
9568
|
finishReason?:
|
|
8583
9569
|
| "stop"
|
|
@@ -8622,7 +9608,12 @@ export type PostAgentThreadMessageResponses = {
|
|
|
8622
9608
|
message: string
|
|
8623
9609
|
}>
|
|
8624
9610
|
error?: {
|
|
8625
|
-
code:
|
|
9611
|
+
code:
|
|
9612
|
+
| "internal.unexpected"
|
|
9613
|
+
| "runtime.cancelled"
|
|
9614
|
+
| "agent.execution_failed"
|
|
9615
|
+
| "ai.usage_limit_exceeded"
|
|
9616
|
+
| "ai.usage_limit_unavailable"
|
|
8626
9617
|
message: string
|
|
8627
9618
|
retryable: boolean
|
|
8628
9619
|
at: string
|
|
@@ -8661,6 +9652,10 @@ export type GetAgentMessageFileContentData = {
|
|
|
8661
9652
|
query: {
|
|
8662
9653
|
path: string
|
|
8663
9654
|
disposition?: "inline" | "attachment"
|
|
9655
|
+
/**
|
|
9656
|
+
* Client cache key; the route still resolves the current file
|
|
9657
|
+
*/
|
|
9658
|
+
v?: string
|
|
8664
9659
|
}
|
|
8665
9660
|
url: "/api/agent-threads/{threadId}/messages/{messageId}/files/content"
|
|
8666
9661
|
}
|
|
@@ -8710,6 +9705,10 @@ export type HeadAgentMessageFileContentData = {
|
|
|
8710
9705
|
query: {
|
|
8711
9706
|
path: string
|
|
8712
9707
|
disposition?: "inline" | "attachment"
|
|
9708
|
+
/**
|
|
9709
|
+
* Client cache key; the route still resolves the current file
|
|
9710
|
+
*/
|
|
9711
|
+
v?: string
|
|
8713
9712
|
}
|
|
8714
9713
|
url: "/api/agent-threads/{threadId}/messages/{messageId}/files/content"
|
|
8715
9714
|
}
|
|
@@ -8796,13 +9795,28 @@ export type CancelAgentRunResponses = {
|
|
|
8796
9795
|
id: string
|
|
8797
9796
|
projectId: string
|
|
8798
9797
|
threadId: string
|
|
8799
|
-
agentId: string
|
|
8800
9798
|
triggerMessageId: string
|
|
8801
9799
|
requestedBy?: {
|
|
8802
9800
|
type: "user" | "serviceAccount"
|
|
8803
9801
|
id: string
|
|
8804
9802
|
}
|
|
8805
9803
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
9804
|
+
model?: {
|
|
9805
|
+
provider: string
|
|
9806
|
+
modelId: string
|
|
9807
|
+
}
|
|
9808
|
+
reasoning?:
|
|
9809
|
+
| "provider-default"
|
|
9810
|
+
| "none"
|
|
9811
|
+
| "minimal"
|
|
9812
|
+
| "low"
|
|
9813
|
+
| "medium"
|
|
9814
|
+
| "high"
|
|
9815
|
+
| "xhigh"
|
|
9816
|
+
| "max"
|
|
9817
|
+
| {
|
|
9818
|
+
budgetTokens: number
|
|
9819
|
+
}
|
|
8806
9820
|
modelId?: string
|
|
8807
9821
|
finishReason?:
|
|
8808
9822
|
| "stop"
|
|
@@ -8847,7 +9861,12 @@ export type CancelAgentRunResponses = {
|
|
|
8847
9861
|
message: string
|
|
8848
9862
|
}>
|
|
8849
9863
|
error?: {
|
|
8850
|
-
code:
|
|
9864
|
+
code:
|
|
9865
|
+
| "internal.unexpected"
|
|
9866
|
+
| "runtime.cancelled"
|
|
9867
|
+
| "agent.execution_failed"
|
|
9868
|
+
| "ai.usage_limit_exceeded"
|
|
9869
|
+
| "ai.usage_limit_unavailable"
|
|
8851
9870
|
message: string
|
|
8852
9871
|
retryable: boolean
|
|
8853
9872
|
at: string
|
|
@@ -8905,6 +9924,28 @@ export type RetryAgentRunErrors = {
|
|
|
8905
9924
|
409: {
|
|
8906
9925
|
error: string
|
|
8907
9926
|
}
|
|
9927
|
+
/**
|
|
9928
|
+
* Response for status 429
|
|
9929
|
+
*/
|
|
9930
|
+
429: {
|
|
9931
|
+
error: string
|
|
9932
|
+
/**
|
|
9933
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
9934
|
+
*/
|
|
9935
|
+
code: "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable"
|
|
9936
|
+
/**
|
|
9937
|
+
* Any JSON-compatible value.
|
|
9938
|
+
*/
|
|
9939
|
+
details?:
|
|
9940
|
+
| string
|
|
9941
|
+
| number
|
|
9942
|
+
| boolean
|
|
9943
|
+
| Array<unknown>
|
|
9944
|
+
| {
|
|
9945
|
+
[key: string]: unknown
|
|
9946
|
+
}
|
|
9947
|
+
| null
|
|
9948
|
+
}
|
|
8908
9949
|
/**
|
|
8909
9950
|
* Response for status 501
|
|
8910
9951
|
*/
|
|
@@ -8924,13 +9965,28 @@ export type RetryAgentRunResponses = {
|
|
|
8924
9965
|
id: string
|
|
8925
9966
|
projectId: string
|
|
8926
9967
|
threadId: string
|
|
8927
|
-
agentId: string
|
|
8928
9968
|
triggerMessageId: string
|
|
8929
9969
|
requestedBy?: {
|
|
8930
9970
|
type: "user" | "serviceAccount"
|
|
8931
9971
|
id: string
|
|
8932
9972
|
}
|
|
8933
9973
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
9974
|
+
model?: {
|
|
9975
|
+
provider: string
|
|
9976
|
+
modelId: string
|
|
9977
|
+
}
|
|
9978
|
+
reasoning?:
|
|
9979
|
+
| "provider-default"
|
|
9980
|
+
| "none"
|
|
9981
|
+
| "minimal"
|
|
9982
|
+
| "low"
|
|
9983
|
+
| "medium"
|
|
9984
|
+
| "high"
|
|
9985
|
+
| "xhigh"
|
|
9986
|
+
| "max"
|
|
9987
|
+
| {
|
|
9988
|
+
budgetTokens: number
|
|
9989
|
+
}
|
|
8934
9990
|
modelId?: string
|
|
8935
9991
|
finishReason?:
|
|
8936
9992
|
| "stop"
|
|
@@ -8975,7 +10031,12 @@ export type RetryAgentRunResponses = {
|
|
|
8975
10031
|
message: string
|
|
8976
10032
|
}>
|
|
8977
10033
|
error?: {
|
|
8978
|
-
code:
|
|
10034
|
+
code:
|
|
10035
|
+
| "internal.unexpected"
|
|
10036
|
+
| "runtime.cancelled"
|
|
10037
|
+
| "agent.execution_failed"
|
|
10038
|
+
| "ai.usage_limit_exceeded"
|
|
10039
|
+
| "ai.usage_limit_unavailable"
|
|
8979
10040
|
message: string
|
|
8980
10041
|
retryable: boolean
|
|
8981
10042
|
at: string
|
|
@@ -9050,13 +10111,28 @@ export type ListAgentThreadRunsResponses = {
|
|
|
9050
10111
|
id: string
|
|
9051
10112
|
projectId: string
|
|
9052
10113
|
threadId: string
|
|
9053
|
-
agentId: string
|
|
9054
10114
|
triggerMessageId: string
|
|
9055
10115
|
requestedBy?: {
|
|
9056
10116
|
type: "user" | "serviceAccount"
|
|
9057
10117
|
id: string
|
|
9058
10118
|
}
|
|
9059
10119
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
10120
|
+
model?: {
|
|
10121
|
+
provider: string
|
|
10122
|
+
modelId: string
|
|
10123
|
+
}
|
|
10124
|
+
reasoning?:
|
|
10125
|
+
| "provider-default"
|
|
10126
|
+
| "none"
|
|
10127
|
+
| "minimal"
|
|
10128
|
+
| "low"
|
|
10129
|
+
| "medium"
|
|
10130
|
+
| "high"
|
|
10131
|
+
| "xhigh"
|
|
10132
|
+
| "max"
|
|
10133
|
+
| {
|
|
10134
|
+
budgetTokens: number
|
|
10135
|
+
}
|
|
9060
10136
|
modelId?: string
|
|
9061
10137
|
finishReason?:
|
|
9062
10138
|
| "stop"
|
|
@@ -9101,7 +10177,12 @@ export type ListAgentThreadRunsResponses = {
|
|
|
9101
10177
|
message: string
|
|
9102
10178
|
}>
|
|
9103
10179
|
error?: {
|
|
9104
|
-
code:
|
|
10180
|
+
code:
|
|
10181
|
+
| "internal.unexpected"
|
|
10182
|
+
| "runtime.cancelled"
|
|
10183
|
+
| "agent.execution_failed"
|
|
10184
|
+
| "ai.usage_limit_exceeded"
|
|
10185
|
+
| "ai.usage_limit_unavailable"
|
|
9105
10186
|
message: string
|
|
9106
10187
|
retryable: boolean
|
|
9107
10188
|
at: string
|
|
@@ -9173,13 +10254,28 @@ export type GetAgentRunResponses = {
|
|
|
9173
10254
|
id: string
|
|
9174
10255
|
projectId: string
|
|
9175
10256
|
threadId: string
|
|
9176
|
-
agentId: string
|
|
9177
10257
|
triggerMessageId: string
|
|
9178
10258
|
requestedBy?: {
|
|
9179
10259
|
type: "user" | "serviceAccount"
|
|
9180
10260
|
id: string
|
|
9181
10261
|
}
|
|
9182
10262
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
10263
|
+
model?: {
|
|
10264
|
+
provider: string
|
|
10265
|
+
modelId: string
|
|
10266
|
+
}
|
|
10267
|
+
reasoning?:
|
|
10268
|
+
| "provider-default"
|
|
10269
|
+
| "none"
|
|
10270
|
+
| "minimal"
|
|
10271
|
+
| "low"
|
|
10272
|
+
| "medium"
|
|
10273
|
+
| "high"
|
|
10274
|
+
| "xhigh"
|
|
10275
|
+
| "max"
|
|
10276
|
+
| {
|
|
10277
|
+
budgetTokens: number
|
|
10278
|
+
}
|
|
9183
10279
|
modelId?: string
|
|
9184
10280
|
finishReason?:
|
|
9185
10281
|
| "stop"
|
|
@@ -9224,7 +10320,12 @@ export type GetAgentRunResponses = {
|
|
|
9224
10320
|
message: string
|
|
9225
10321
|
}>
|
|
9226
10322
|
error?: {
|
|
9227
|
-
code:
|
|
10323
|
+
code:
|
|
10324
|
+
| "internal.unexpected"
|
|
10325
|
+
| "runtime.cancelled"
|
|
10326
|
+
| "agent.execution_failed"
|
|
10327
|
+
| "ai.usage_limit_exceeded"
|
|
10328
|
+
| "ai.usage_limit_unavailable"
|
|
9228
10329
|
message: string
|
|
9229
10330
|
retryable: boolean
|
|
9230
10331
|
at: string
|
|
@@ -9268,6 +10369,25 @@ export type ListModelsResponses = {
|
|
|
9268
10369
|
provider: string
|
|
9269
10370
|
modelId: string
|
|
9270
10371
|
isDefault: boolean
|
|
10372
|
+
name: string
|
|
10373
|
+
description?: string
|
|
10374
|
+
publisher: {
|
|
10375
|
+
id: string
|
|
10376
|
+
name: string
|
|
10377
|
+
}
|
|
10378
|
+
via?: string
|
|
10379
|
+
capabilities: {
|
|
10380
|
+
input: Array<"text" | "image" | "audio" | "video" | "pdf">
|
|
10381
|
+
output: Array<"text" | "image" | "audio" | "video" | "pdf">
|
|
10382
|
+
attachments?: boolean
|
|
10383
|
+
reasoning?: boolean
|
|
10384
|
+
tools?: boolean
|
|
10385
|
+
structuredOutput?: boolean
|
|
10386
|
+
contextWindowTokens?: number
|
|
10387
|
+
}
|
|
10388
|
+
reasoningLevels: Array<
|
|
10389
|
+
"provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max"
|
|
10390
|
+
>
|
|
9271
10391
|
}>
|
|
9272
10392
|
}
|
|
9273
10393
|
}
|