@sixb/client 0.1.5 → 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 +2411 -395
- 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 +980 -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 +1271 -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
|
|
@@ -1140,6 +1212,7 @@ export type CreateAuthInvitationData = {
|
|
|
1140
1212
|
destinationId?: "atlas" | "app"
|
|
1141
1213
|
expiresAt?: string
|
|
1142
1214
|
returnTo?: string
|
|
1215
|
+
revealLink?: boolean
|
|
1143
1216
|
}
|
|
1144
1217
|
path?: never
|
|
1145
1218
|
query?: never
|
|
@@ -1205,6 +1278,10 @@ export type CreateAuthInvitationResponses = {
|
|
|
1205
1278
|
}
|
|
1206
1279
|
delivery: {
|
|
1207
1280
|
status: "sent" | "skipped" | "rate_limited" | "not_supported"
|
|
1281
|
+
link?: {
|
|
1282
|
+
url: string
|
|
1283
|
+
expiresAt?: string
|
|
1284
|
+
}
|
|
1208
1285
|
}
|
|
1209
1286
|
}
|
|
1210
1287
|
}
|
|
@@ -1655,6 +1732,12 @@ export type GetAiAccountingOverviewErrors = {
|
|
|
1655
1732
|
400: {
|
|
1656
1733
|
error: string
|
|
1657
1734
|
}
|
|
1735
|
+
/**
|
|
1736
|
+
* Response for status 403
|
|
1737
|
+
*/
|
|
1738
|
+
403: {
|
|
1739
|
+
error: string
|
|
1740
|
+
}
|
|
1658
1741
|
/**
|
|
1659
1742
|
* Response for status 501
|
|
1660
1743
|
*/
|
|
@@ -1749,30 +1832,58 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
1749
1832
|
providerId: string
|
|
1750
1833
|
modelId: string
|
|
1751
1834
|
}>
|
|
1752
|
-
agents: Array<
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
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
|
+
>
|
|
1776
1887
|
workflows: Array<{
|
|
1777
1888
|
modelCallCount: number
|
|
1778
1889
|
usage: {
|
|
@@ -1826,6 +1937,12 @@ export type ListAiModelCallsErrors = {
|
|
|
1826
1937
|
400: {
|
|
1827
1938
|
error: string
|
|
1828
1939
|
}
|
|
1940
|
+
/**
|
|
1941
|
+
* Response for status 403
|
|
1942
|
+
*/
|
|
1943
|
+
403: {
|
|
1944
|
+
error: string
|
|
1945
|
+
}
|
|
1829
1946
|
/**
|
|
1830
1947
|
* Response for status 501
|
|
1831
1948
|
*/
|
|
@@ -1849,8 +1966,25 @@ export type ListAiModelCallsResponses = {
|
|
|
1849
1966
|
callId: string
|
|
1850
1967
|
providerId: string
|
|
1851
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
|
+
}
|
|
1852
1981
|
responseModelId?: string
|
|
1853
1982
|
responseId: string
|
|
1983
|
+
providerIds: {
|
|
1984
|
+
requestId?: string
|
|
1985
|
+
responseId?: string
|
|
1986
|
+
generationId?: string
|
|
1987
|
+
} | null
|
|
1854
1988
|
usage: {
|
|
1855
1989
|
inputTokens?: number
|
|
1856
1990
|
outputTokens?: number
|
|
@@ -1868,20 +2002,68 @@ export type ListAiModelCallsResponses = {
|
|
|
1868
2002
|
attribution?:
|
|
1869
2003
|
| {
|
|
1870
2004
|
kind: "agent"
|
|
1871
|
-
agentId: string
|
|
1872
2005
|
agentRunId: string
|
|
1873
2006
|
threadId: string
|
|
1874
2007
|
}
|
|
1875
2008
|
| {
|
|
1876
2009
|
kind: "workflowAgent"
|
|
1877
|
-
|
|
2010
|
+
agentStepId: string
|
|
1878
2011
|
nodeRunId: string
|
|
1879
2012
|
workflowId: string
|
|
1880
2013
|
workflowRunId: string
|
|
1881
2014
|
}
|
|
2015
|
+
| {
|
|
2016
|
+
kind: "subagent"
|
|
2017
|
+
subagentRunId: string
|
|
2018
|
+
parentRunId: string
|
|
2019
|
+
}
|
|
1882
2020
|
cost?:
|
|
1883
2021
|
| {
|
|
1884
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
|
+
}
|
|
1885
2067
|
billingIdentity: {
|
|
1886
2068
|
providerId: string
|
|
1887
2069
|
modelId: string
|
|
@@ -1892,6 +2074,7 @@ export type ListAiModelCallsResponses = {
|
|
|
1892
2074
|
region?: string
|
|
1893
2075
|
inferenceGeo?: string
|
|
1894
2076
|
routedProviderId?: string
|
|
2077
|
+
routedModelId?: string
|
|
1895
2078
|
deploymentId?: string
|
|
1896
2079
|
inferenceProfileId?: string
|
|
1897
2080
|
cacheWriteTtlSeconds?: number
|
|
@@ -1901,7 +2084,7 @@ export type ListAiModelCallsResponses = {
|
|
|
1901
2084
|
sourceId: string
|
|
1902
2085
|
sourceEntryId: string
|
|
1903
2086
|
sourceVersion: string
|
|
1904
|
-
sourceUrl
|
|
2087
|
+
sourceUrl?: string
|
|
1905
2088
|
observedAt: string
|
|
1906
2089
|
}
|
|
1907
2090
|
money: {
|
|
@@ -1914,6 +2097,8 @@ export type ListAiModelCallsResponses = {
|
|
|
1914
2097
|
| "tokens.input.uncached"
|
|
1915
2098
|
| "tokens.input.cacheRead"
|
|
1916
2099
|
| "tokens.input.cacheWrite"
|
|
2100
|
+
| "tokens.input.cacheWrite5m"
|
|
2101
|
+
| "tokens.input.cacheWrite1h"
|
|
1917
2102
|
| "tokens.output.total"
|
|
1918
2103
|
| "tokens.output.text"
|
|
1919
2104
|
| "tokens.output.reasoning"
|
|
@@ -1924,54 +2109,759 @@ export type ListAiModelCallsResponses = {
|
|
|
1924
2109
|
ratedAt: string
|
|
1925
2110
|
}
|
|
1926
2111
|
| {
|
|
1927
|
-
status: "unpriceable"
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
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
|
|
1931
2824
|
}
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
deploymentId?: string
|
|
1939
|
-
inferenceProfileId?: string
|
|
1940
|
-
cacheWriteTtlSeconds?: number
|
|
1941
|
-
mode?: string
|
|
2825
|
+
| {
|
|
2826
|
+
kind: "workflowAgent"
|
|
2827
|
+
agentStepId: string
|
|
2828
|
+
nodeRunId: string
|
|
2829
|
+
workflowId: string
|
|
2830
|
+
workflowRunId: string
|
|
1942
2831
|
}
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
sourceUrl: string
|
|
1948
|
-
observedAt: string
|
|
2832
|
+
| {
|
|
2833
|
+
kind: "subagent"
|
|
2834
|
+
subagentRunId: string
|
|
2835
|
+
parentRunId: string
|
|
1949
2836
|
}
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
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
|
|
1968
2857
|
}>
|
|
1969
|
-
hasMore: boolean
|
|
1970
2858
|
total: number
|
|
2859
|
+
hasMore: boolean
|
|
1971
2860
|
}
|
|
1972
2861
|
}
|
|
1973
2862
|
|
|
1974
|
-
export type
|
|
2863
|
+
export type ListAiModelCallGroupsResponse =
|
|
2864
|
+
ListAiModelCallGroupsResponses[keyof ListAiModelCallGroupsResponses]
|
|
1975
2865
|
|
|
1976
2866
|
export type GetProjectInfoData = {
|
|
1977
2867
|
body?: never
|
|
@@ -4540,7 +5430,6 @@ export type ListWorkflowsResponses = {
|
|
|
4540
5430
|
type: "agent"
|
|
4541
5431
|
id: string
|
|
4542
5432
|
key: string
|
|
4543
|
-
agentId: string
|
|
4544
5433
|
input: {
|
|
4545
5434
|
[key: string]:
|
|
4546
5435
|
| string
|
|
@@ -4574,7 +5463,12 @@ export type ListWorkflowsResponses = {
|
|
|
4574
5463
|
startedAt: string
|
|
4575
5464
|
finishedAt?: string
|
|
4576
5465
|
error?: {
|
|
4577
|
-
code:
|
|
5466
|
+
code:
|
|
5467
|
+
| "internal.unexpected"
|
|
5468
|
+
| "runtime.cancelled"
|
|
5469
|
+
| "workflow.node_failed"
|
|
5470
|
+
| "ai.usage_limit_exceeded"
|
|
5471
|
+
| "ai.usage_limit_unavailable"
|
|
4578
5472
|
message: string
|
|
4579
5473
|
retryable: boolean
|
|
4580
5474
|
at: string
|
|
@@ -4720,7 +5614,6 @@ export type GetWorkflowResponses = {
|
|
|
4720
5614
|
type: "agent"
|
|
4721
5615
|
id: string
|
|
4722
5616
|
key: string
|
|
4723
|
-
agentId: string
|
|
4724
5617
|
input: {
|
|
4725
5618
|
[key: string]:
|
|
4726
5619
|
| string
|
|
@@ -4754,7 +5647,12 @@ export type GetWorkflowResponses = {
|
|
|
4754
5647
|
startedAt: string
|
|
4755
5648
|
finishedAt?: string
|
|
4756
5649
|
error?: {
|
|
4757
|
-
code:
|
|
5650
|
+
code:
|
|
5651
|
+
| "internal.unexpected"
|
|
5652
|
+
| "runtime.cancelled"
|
|
5653
|
+
| "workflow.node_failed"
|
|
5654
|
+
| "ai.usage_limit_exceeded"
|
|
5655
|
+
| "ai.usage_limit_unavailable"
|
|
4758
5656
|
message: string
|
|
4759
5657
|
retryable: boolean
|
|
4760
5658
|
at: string
|
|
@@ -5256,7 +6154,12 @@ export type ListWorkflowRunsResponses = {
|
|
|
5256
6154
|
startedAt: string
|
|
5257
6155
|
finishedAt?: string
|
|
5258
6156
|
error?: {
|
|
5259
|
-
code:
|
|
6157
|
+
code:
|
|
6158
|
+
| "internal.unexpected"
|
|
6159
|
+
| "runtime.cancelled"
|
|
6160
|
+
| "workflow.node_failed"
|
|
6161
|
+
| "ai.usage_limit_exceeded"
|
|
6162
|
+
| "ai.usage_limit_unavailable"
|
|
5260
6163
|
message: string
|
|
5261
6164
|
retryable: boolean
|
|
5262
6165
|
at: string
|
|
@@ -5332,7 +6235,12 @@ export type GetWorkflowRunResponses = {
|
|
|
5332
6235
|
startedAt: string
|
|
5333
6236
|
finishedAt?: string
|
|
5334
6237
|
error?: {
|
|
5335
|
-
code:
|
|
6238
|
+
code:
|
|
6239
|
+
| "internal.unexpected"
|
|
6240
|
+
| "runtime.cancelled"
|
|
6241
|
+
| "workflow.node_failed"
|
|
6242
|
+
| "ai.usage_limit_exceeded"
|
|
6243
|
+
| "ai.usage_limit_unavailable"
|
|
5336
6244
|
message: string
|
|
5337
6245
|
retryable: boolean
|
|
5338
6246
|
at: string
|
|
@@ -5412,7 +6320,12 @@ export type GetWorkflowRunResponses = {
|
|
|
5412
6320
|
| null
|
|
5413
6321
|
}
|
|
5414
6322
|
error?: {
|
|
5415
|
-
code:
|
|
6323
|
+
code:
|
|
6324
|
+
| "internal.unexpected"
|
|
6325
|
+
| "runtime.cancelled"
|
|
6326
|
+
| "workflow.node_failed"
|
|
6327
|
+
| "ai.usage_limit_exceeded"
|
|
6328
|
+
| "ai.usage_limit_unavailable"
|
|
5416
6329
|
message: string
|
|
5417
6330
|
retryable: boolean
|
|
5418
6331
|
at: string
|
|
@@ -5431,7 +6344,6 @@ export type GetWorkflowRunResponses = {
|
|
|
5431
6344
|
truncated?: true
|
|
5432
6345
|
}
|
|
5433
6346
|
agentExecution?: {
|
|
5434
|
-
agentId: string
|
|
5435
6347
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
5436
6348
|
attempt: number
|
|
5437
6349
|
modelId?: string
|
|
@@ -5504,7 +6416,6 @@ export type GetWorkflowAgentNodeExecutionResponses = {
|
|
|
5504
6416
|
* Response for status 200
|
|
5505
6417
|
*/
|
|
5506
6418
|
200: {
|
|
5507
|
-
agentId: string
|
|
5508
6419
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
5509
6420
|
attempt: number
|
|
5510
6421
|
modelId?: string
|
|
@@ -5592,6 +6503,22 @@ export type GetWorkflowAgentNodeExecutionResponses = {
|
|
|
5592
6503
|
}
|
|
5593
6504
|
| null
|
|
5594
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
|
+
}
|
|
5595
6522
|
| {
|
|
5596
6523
|
context:
|
|
5597
6524
|
| {
|
|
@@ -5712,7 +6639,12 @@ export type GetWorkflowAgentNodeExecutionResponses = {
|
|
|
5712
6639
|
>
|
|
5713
6640
|
failurePhase?: "agent-loop" | "structured-finalizer"
|
|
5714
6641
|
error?: {
|
|
5715
|
-
code:
|
|
6642
|
+
code:
|
|
6643
|
+
| "internal.unexpected"
|
|
6644
|
+
| "runtime.cancelled"
|
|
6645
|
+
| "agent.execution_failed"
|
|
6646
|
+
| "ai.usage_limit_exceeded"
|
|
6647
|
+
| "ai.usage_limit_unavailable"
|
|
5716
6648
|
message: string
|
|
5717
6649
|
retryable: boolean
|
|
5718
6650
|
at: string
|
|
@@ -5785,7 +6717,12 @@ export type CancelWorkflowRunResponses = {
|
|
|
5785
6717
|
startedAt: string
|
|
5786
6718
|
finishedAt?: string
|
|
5787
6719
|
error?: {
|
|
5788
|
-
code:
|
|
6720
|
+
code:
|
|
6721
|
+
| "internal.unexpected"
|
|
6722
|
+
| "runtime.cancelled"
|
|
6723
|
+
| "workflow.node_failed"
|
|
6724
|
+
| "ai.usage_limit_exceeded"
|
|
6725
|
+
| "ai.usage_limit_unavailable"
|
|
5789
6726
|
message: string
|
|
5790
6727
|
retryable: boolean
|
|
5791
6728
|
at: string
|
|
@@ -5865,7 +6802,12 @@ export type CancelWorkflowRunResponses = {
|
|
|
5865
6802
|
| null
|
|
5866
6803
|
}
|
|
5867
6804
|
error?: {
|
|
5868
|
-
code:
|
|
6805
|
+
code:
|
|
6806
|
+
| "internal.unexpected"
|
|
6807
|
+
| "runtime.cancelled"
|
|
6808
|
+
| "workflow.node_failed"
|
|
6809
|
+
| "ai.usage_limit_exceeded"
|
|
6810
|
+
| "ai.usage_limit_unavailable"
|
|
5869
6811
|
message: string
|
|
5870
6812
|
retryable: boolean
|
|
5871
6813
|
at: string
|
|
@@ -5884,7 +6826,6 @@ export type CancelWorkflowRunResponses = {
|
|
|
5884
6826
|
truncated?: true
|
|
5885
6827
|
}
|
|
5886
6828
|
agentExecution?: {
|
|
5887
|
-
agentId: string
|
|
5888
6829
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
|
|
5889
6830
|
attempt: number
|
|
5890
6831
|
modelId?: string
|
|
@@ -5926,6 +6867,10 @@ export type GetWorkflowRunFileContentData = {
|
|
|
5926
6867
|
query: {
|
|
5927
6868
|
path: string
|
|
5928
6869
|
disposition?: "inline" | "attachment"
|
|
6870
|
+
/**
|
|
6871
|
+
* Client cache key; the route still resolves the current file
|
|
6872
|
+
*/
|
|
6873
|
+
v?: string
|
|
5929
6874
|
}
|
|
5930
6875
|
url: "/api/workflow-runs/{runId}/files/content"
|
|
5931
6876
|
}
|
|
@@ -5974,6 +6919,10 @@ export type HeadWorkflowRunFileContentData = {
|
|
|
5974
6919
|
query: {
|
|
5975
6920
|
path: string
|
|
5976
6921
|
disposition?: "inline" | "attachment"
|
|
6922
|
+
/**
|
|
6923
|
+
* Client cache key; the route still resolves the current file
|
|
6924
|
+
*/
|
|
6925
|
+
v?: string
|
|
5977
6926
|
}
|
|
5978
6927
|
url: "/api/workflow-runs/{runId}/files/content"
|
|
5979
6928
|
}
|
|
@@ -6020,6 +6969,10 @@ export type GetWorkflowNodeRunFileContentData = {
|
|
|
6020
6969
|
query: {
|
|
6021
6970
|
path: string
|
|
6022
6971
|
disposition?: "inline" | "attachment"
|
|
6972
|
+
/**
|
|
6973
|
+
* Client cache key; the route still resolves the current file
|
|
6974
|
+
*/
|
|
6975
|
+
v?: string
|
|
6023
6976
|
}
|
|
6024
6977
|
url: "/api/workflow-runs/{runId}/nodes/{nodeKey}/files/content"
|
|
6025
6978
|
}
|
|
@@ -6069,6 +7022,10 @@ export type HeadWorkflowNodeRunFileContentData = {
|
|
|
6069
7022
|
query: {
|
|
6070
7023
|
path: string
|
|
6071
7024
|
disposition?: "inline" | "attachment"
|
|
7025
|
+
/**
|
|
7026
|
+
* Client cache key; the route still resolves the current file
|
|
7027
|
+
*/
|
|
7028
|
+
v?: string
|
|
6072
7029
|
}
|
|
6073
7030
|
url: "/api/workflow-runs/{runId}/nodes/{nodeKey}/files/content"
|
|
6074
7031
|
}
|
|
@@ -6971,6 +7928,10 @@ export type GetObjectFileContentData = {
|
|
|
6971
7928
|
query: {
|
|
6972
7929
|
path: string
|
|
6973
7930
|
disposition?: "inline" | "attachment"
|
|
7931
|
+
/**
|
|
7932
|
+
* Client cache key; the route still resolves the current file
|
|
7933
|
+
*/
|
|
7934
|
+
v?: string
|
|
6974
7935
|
}
|
|
6975
7936
|
url: "/api/objects/{objectTypeId}/{objectId}/files/content"
|
|
6976
7937
|
}
|
|
@@ -7015,6 +7976,10 @@ export type HeadObjectFileContentData = {
|
|
|
7015
7976
|
query: {
|
|
7016
7977
|
path: string
|
|
7017
7978
|
disposition?: "inline" | "attachment"
|
|
7979
|
+
/**
|
|
7980
|
+
* Client cache key; the route still resolves the current file
|
|
7981
|
+
*/
|
|
7982
|
+
v?: string
|
|
7018
7983
|
}
|
|
7019
7984
|
url: "/api/objects/{objectTypeId}/{objectId}/files/content"
|
|
7020
7985
|
}
|
|
@@ -7865,6 +8830,10 @@ export type GetActionRunFileContentData = {
|
|
|
7865
8830
|
query: {
|
|
7866
8831
|
path: string
|
|
7867
8832
|
disposition?: "inline" | "attachment"
|
|
8833
|
+
/**
|
|
8834
|
+
* Client cache key; the route still resolves the current file
|
|
8835
|
+
*/
|
|
8836
|
+
v?: string
|
|
7868
8837
|
}
|
|
7869
8838
|
url: "/api/action-runs/{runId}/files/content"
|
|
7870
8839
|
}
|
|
@@ -7913,6 +8882,10 @@ export type HeadActionRunFileContentData = {
|
|
|
7913
8882
|
query: {
|
|
7914
8883
|
path: string
|
|
7915
8884
|
disposition?: "inline" | "attachment"
|
|
8885
|
+
/**
|
|
8886
|
+
* Client cache key; the route still resolves the current file
|
|
8887
|
+
*/
|
|
8888
|
+
v?: string
|
|
7916
8889
|
}
|
|
7917
8890
|
url: "/api/action-runs/{runId}/files/content"
|
|
7918
8891
|
}
|
|
@@ -7950,46 +8923,11 @@ export type HeadActionRunFileContentResponses = {
|
|
|
7950
8923
|
206: unknown
|
|
7951
8924
|
}
|
|
7952
8925
|
|
|
7953
|
-
export type ListAgentsData = {
|
|
7954
|
-
body?: never
|
|
7955
|
-
path?: never
|
|
7956
|
-
query?: never
|
|
7957
|
-
url: "/api/agents"
|
|
7958
|
-
}
|
|
7959
|
-
|
|
7960
|
-
export type ListAgentsResponses = {
|
|
7961
|
-
/**
|
|
7962
|
-
* Response for status 200
|
|
7963
|
-
*/
|
|
7964
|
-
200: Array<{
|
|
7965
|
-
id: string
|
|
7966
|
-
name: string
|
|
7967
|
-
description?: string
|
|
7968
|
-
modelId?: string
|
|
7969
|
-
reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh"
|
|
7970
|
-
groupIds: Array<string>
|
|
7971
|
-
loop?: {
|
|
7972
|
-
stopWhen?: {
|
|
7973
|
-
maxSteps?: number
|
|
7974
|
-
}
|
|
7975
|
-
context?: {
|
|
7976
|
-
windowTokens?: number
|
|
7977
|
-
reserveTokens?: number
|
|
7978
|
-
keepRecentTokens?: number
|
|
7979
|
-
}
|
|
7980
|
-
}
|
|
7981
|
-
}>
|
|
7982
|
-
}
|
|
7983
|
-
|
|
7984
|
-
export type ListAgentsResponse = ListAgentsResponses[keyof ListAgentsResponses]
|
|
7985
|
-
|
|
7986
8926
|
export type GetAgentData = {
|
|
7987
8927
|
body?: never
|
|
7988
|
-
path
|
|
7989
|
-
agentId: string
|
|
7990
|
-
}
|
|
8928
|
+
path?: never
|
|
7991
8929
|
query?: never
|
|
7992
|
-
url: "/api/
|
|
8930
|
+
url: "/api/agent"
|
|
7993
8931
|
}
|
|
7994
8932
|
|
|
7995
8933
|
export type GetAgentErrors = {
|
|
@@ -8008,21 +8946,10 @@ export type GetAgentResponses = {
|
|
|
8008
8946
|
* Response for status 200
|
|
8009
8947
|
*/
|
|
8010
8948
|
200: {
|
|
8011
|
-
id: string
|
|
8012
8949
|
name: string
|
|
8013
|
-
|
|
8014
|
-
|
|
8015
|
-
|
|
8016
|
-
groupIds: Array<string>
|
|
8017
|
-
loop?: {
|
|
8018
|
-
stopWhen?: {
|
|
8019
|
-
maxSteps?: number
|
|
8020
|
-
}
|
|
8021
|
-
context?: {
|
|
8022
|
-
windowTokens?: number
|
|
8023
|
-
reserveTokens?: number
|
|
8024
|
-
keepRecentTokens?: number
|
|
8025
|
-
}
|
|
8950
|
+
model: {
|
|
8951
|
+
provider: string
|
|
8952
|
+
modelId: string
|
|
8026
8953
|
}
|
|
8027
8954
|
}
|
|
8028
8955
|
}
|
|
@@ -8033,7 +8960,6 @@ export type ListAgentThreadsData = {
|
|
|
8033
8960
|
body?: never
|
|
8034
8961
|
path?: never
|
|
8035
8962
|
query?: {
|
|
8036
|
-
agentId?: string
|
|
8037
8963
|
status?: "active" | "archived"
|
|
8038
8964
|
limit?: string
|
|
8039
8965
|
offset?: string
|
|
@@ -8067,7 +8993,6 @@ export type ListAgentThreadsResponses = {
|
|
|
8067
8993
|
threads: Array<{
|
|
8068
8994
|
id: string
|
|
8069
8995
|
projectId: string
|
|
8070
|
-
agentId: string
|
|
8071
8996
|
ownerPrincipal: {
|
|
8072
8997
|
type: "user" | "serviceAccount" | "system"
|
|
8073
8998
|
id: string
|
|
@@ -8089,7 +9014,6 @@ export type ListAgentThreadsResponse = ListAgentThreadsResponses[keyof ListAgent
|
|
|
8089
9014
|
|
|
8090
9015
|
export type CreateAgentThreadData = {
|
|
8091
9016
|
body: {
|
|
8092
|
-
agentId: string
|
|
8093
9017
|
title?: string
|
|
8094
9018
|
threadId?: string
|
|
8095
9019
|
}
|
|
@@ -8135,7 +9059,6 @@ export type CreateAgentThreadResponses = {
|
|
|
8135
9059
|
thread: {
|
|
8136
9060
|
id: string
|
|
8137
9061
|
projectId: string
|
|
8138
|
-
agentId: string
|
|
8139
9062
|
ownerPrincipal: {
|
|
8140
9063
|
type: "user" | "serviceAccount" | "system"
|
|
8141
9064
|
id: string
|
|
@@ -8192,7 +9115,6 @@ export type GetAgentThreadResponses = {
|
|
|
8192
9115
|
200: {
|
|
8193
9116
|
id: string
|
|
8194
9117
|
projectId: string
|
|
8195
|
-
agentId: string
|
|
8196
9118
|
ownerPrincipal: {
|
|
8197
9119
|
type: "user" | "serviceAccount" | "system"
|
|
8198
9120
|
id: string
|
|
@@ -8322,6 +9244,22 @@ export type ListAgentThreadMessagesResponses = {
|
|
|
8322
9244
|
}
|
|
8323
9245
|
| null
|
|
8324
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
|
+
}
|
|
8325
9263
|
| {
|
|
8326
9264
|
context:
|
|
8327
9265
|
| {
|
|
@@ -8475,6 +9413,22 @@ export type ListAgentThreadMessagesResponse =
|
|
|
8475
9413
|
export type PostAgentThreadMessageData = {
|
|
8476
9414
|
body: {
|
|
8477
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
|
+
}
|
|
8478
9432
|
attachments?: Array<{
|
|
8479
9433
|
blobId: string
|
|
8480
9434
|
digest: string
|
|
@@ -8546,6 +9500,28 @@ export type PostAgentThreadMessageErrors = {
|
|
|
8546
9500
|
409: {
|
|
8547
9501
|
error: string
|
|
8548
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
|
+
}
|
|
8549
9525
|
/**
|
|
8550
9526
|
* Response for status 501
|
|
8551
9527
|
*/
|
|
@@ -8566,13 +9542,28 @@ export type PostAgentThreadMessageResponses = {
|
|
|
8566
9542
|
id: string
|
|
8567
9543
|
projectId: string
|
|
8568
9544
|
threadId: string
|
|
8569
|
-
agentId: string
|
|
8570
9545
|
triggerMessageId: string
|
|
8571
9546
|
requestedBy?: {
|
|
8572
9547
|
type: "user" | "serviceAccount"
|
|
8573
9548
|
id: string
|
|
8574
9549
|
}
|
|
8575
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
|
+
}
|
|
8576
9567
|
modelId?: string
|
|
8577
9568
|
finishReason?:
|
|
8578
9569
|
| "stop"
|
|
@@ -8617,7 +9608,12 @@ export type PostAgentThreadMessageResponses = {
|
|
|
8617
9608
|
message: string
|
|
8618
9609
|
}>
|
|
8619
9610
|
error?: {
|
|
8620
|
-
code:
|
|
9611
|
+
code:
|
|
9612
|
+
| "internal.unexpected"
|
|
9613
|
+
| "runtime.cancelled"
|
|
9614
|
+
| "agent.execution_failed"
|
|
9615
|
+
| "ai.usage_limit_exceeded"
|
|
9616
|
+
| "ai.usage_limit_unavailable"
|
|
8621
9617
|
message: string
|
|
8622
9618
|
retryable: boolean
|
|
8623
9619
|
at: string
|
|
@@ -8656,6 +9652,10 @@ export type GetAgentMessageFileContentData = {
|
|
|
8656
9652
|
query: {
|
|
8657
9653
|
path: string
|
|
8658
9654
|
disposition?: "inline" | "attachment"
|
|
9655
|
+
/**
|
|
9656
|
+
* Client cache key; the route still resolves the current file
|
|
9657
|
+
*/
|
|
9658
|
+
v?: string
|
|
8659
9659
|
}
|
|
8660
9660
|
url: "/api/agent-threads/{threadId}/messages/{messageId}/files/content"
|
|
8661
9661
|
}
|
|
@@ -8705,6 +9705,10 @@ export type HeadAgentMessageFileContentData = {
|
|
|
8705
9705
|
query: {
|
|
8706
9706
|
path: string
|
|
8707
9707
|
disposition?: "inline" | "attachment"
|
|
9708
|
+
/**
|
|
9709
|
+
* Client cache key; the route still resolves the current file
|
|
9710
|
+
*/
|
|
9711
|
+
v?: string
|
|
8708
9712
|
}
|
|
8709
9713
|
url: "/api/agent-threads/{threadId}/messages/{messageId}/files/content"
|
|
8710
9714
|
}
|
|
@@ -8791,13 +9795,28 @@ export type CancelAgentRunResponses = {
|
|
|
8791
9795
|
id: string
|
|
8792
9796
|
projectId: string
|
|
8793
9797
|
threadId: string
|
|
8794
|
-
agentId: string
|
|
8795
9798
|
triggerMessageId: string
|
|
8796
9799
|
requestedBy?: {
|
|
8797
9800
|
type: "user" | "serviceAccount"
|
|
8798
9801
|
id: string
|
|
8799
9802
|
}
|
|
8800
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
|
+
}
|
|
8801
9820
|
modelId?: string
|
|
8802
9821
|
finishReason?:
|
|
8803
9822
|
| "stop"
|
|
@@ -8842,7 +9861,12 @@ export type CancelAgentRunResponses = {
|
|
|
8842
9861
|
message: string
|
|
8843
9862
|
}>
|
|
8844
9863
|
error?: {
|
|
8845
|
-
code:
|
|
9864
|
+
code:
|
|
9865
|
+
| "internal.unexpected"
|
|
9866
|
+
| "runtime.cancelled"
|
|
9867
|
+
| "agent.execution_failed"
|
|
9868
|
+
| "ai.usage_limit_exceeded"
|
|
9869
|
+
| "ai.usage_limit_unavailable"
|
|
8846
9870
|
message: string
|
|
8847
9871
|
retryable: boolean
|
|
8848
9872
|
at: string
|
|
@@ -8900,6 +9924,28 @@ export type RetryAgentRunErrors = {
|
|
|
8900
9924
|
409: {
|
|
8901
9925
|
error: string
|
|
8902
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
|
+
}
|
|
8903
9949
|
/**
|
|
8904
9950
|
* Response for status 501
|
|
8905
9951
|
*/
|
|
@@ -8919,13 +9965,28 @@ export type RetryAgentRunResponses = {
|
|
|
8919
9965
|
id: string
|
|
8920
9966
|
projectId: string
|
|
8921
9967
|
threadId: string
|
|
8922
|
-
agentId: string
|
|
8923
9968
|
triggerMessageId: string
|
|
8924
9969
|
requestedBy?: {
|
|
8925
9970
|
type: "user" | "serviceAccount"
|
|
8926
9971
|
id: string
|
|
8927
9972
|
}
|
|
8928
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
|
+
}
|
|
8929
9990
|
modelId?: string
|
|
8930
9991
|
finishReason?:
|
|
8931
9992
|
| "stop"
|
|
@@ -8970,7 +10031,12 @@ export type RetryAgentRunResponses = {
|
|
|
8970
10031
|
message: string
|
|
8971
10032
|
}>
|
|
8972
10033
|
error?: {
|
|
8973
|
-
code:
|
|
10034
|
+
code:
|
|
10035
|
+
| "internal.unexpected"
|
|
10036
|
+
| "runtime.cancelled"
|
|
10037
|
+
| "agent.execution_failed"
|
|
10038
|
+
| "ai.usage_limit_exceeded"
|
|
10039
|
+
| "ai.usage_limit_unavailable"
|
|
8974
10040
|
message: string
|
|
8975
10041
|
retryable: boolean
|
|
8976
10042
|
at: string
|
|
@@ -9045,13 +10111,28 @@ export type ListAgentThreadRunsResponses = {
|
|
|
9045
10111
|
id: string
|
|
9046
10112
|
projectId: string
|
|
9047
10113
|
threadId: string
|
|
9048
|
-
agentId: string
|
|
9049
10114
|
triggerMessageId: string
|
|
9050
10115
|
requestedBy?: {
|
|
9051
10116
|
type: "user" | "serviceAccount"
|
|
9052
10117
|
id: string
|
|
9053
10118
|
}
|
|
9054
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
|
+
}
|
|
9055
10136
|
modelId?: string
|
|
9056
10137
|
finishReason?:
|
|
9057
10138
|
| "stop"
|
|
@@ -9096,7 +10177,12 @@ export type ListAgentThreadRunsResponses = {
|
|
|
9096
10177
|
message: string
|
|
9097
10178
|
}>
|
|
9098
10179
|
error?: {
|
|
9099
|
-
code:
|
|
10180
|
+
code:
|
|
10181
|
+
| "internal.unexpected"
|
|
10182
|
+
| "runtime.cancelled"
|
|
10183
|
+
| "agent.execution_failed"
|
|
10184
|
+
| "ai.usage_limit_exceeded"
|
|
10185
|
+
| "ai.usage_limit_unavailable"
|
|
9100
10186
|
message: string
|
|
9101
10187
|
retryable: boolean
|
|
9102
10188
|
at: string
|
|
@@ -9168,13 +10254,28 @@ export type GetAgentRunResponses = {
|
|
|
9168
10254
|
id: string
|
|
9169
10255
|
projectId: string
|
|
9170
10256
|
threadId: string
|
|
9171
|
-
agentId: string
|
|
9172
10257
|
triggerMessageId: string
|
|
9173
10258
|
requestedBy?: {
|
|
9174
10259
|
type: "user" | "serviceAccount"
|
|
9175
10260
|
id: string
|
|
9176
10261
|
}
|
|
9177
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
|
+
}
|
|
9178
10279
|
modelId?: string
|
|
9179
10280
|
finishReason?:
|
|
9180
10281
|
| "stop"
|
|
@@ -9219,7 +10320,12 @@ export type GetAgentRunResponses = {
|
|
|
9219
10320
|
message: string
|
|
9220
10321
|
}>
|
|
9221
10322
|
error?: {
|
|
9222
|
-
code:
|
|
10323
|
+
code:
|
|
10324
|
+
| "internal.unexpected"
|
|
10325
|
+
| "runtime.cancelled"
|
|
10326
|
+
| "agent.execution_failed"
|
|
10327
|
+
| "ai.usage_limit_exceeded"
|
|
10328
|
+
| "ai.usage_limit_unavailable"
|
|
9223
10329
|
message: string
|
|
9224
10330
|
retryable: boolean
|
|
9225
10331
|
at: string
|
|
@@ -9263,6 +10369,25 @@ export type ListModelsResponses = {
|
|
|
9263
10369
|
provider: string
|
|
9264
10370
|
modelId: string
|
|
9265
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
|
+
>
|
|
9266
10391
|
}>
|
|
9267
10392
|
}
|
|
9268
10393
|
}
|