@sixb/client 0.1.11 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-streams.d.ts +7 -2
- package/dist/agent-streams.d.ts.map +1 -1
- package/dist/api.d.ts +8 -1
- package/dist/api.d.ts.map +1 -1
- package/dist/base-url.d.ts +2 -0
- package/dist/base-url.d.ts.map +1 -0
- package/dist/browser.js +7 -7
- package/dist/browser.js.map +3 -3
- package/dist/{chunk-y4g6jrvs.js → chunk-1d0xnr6p.js} +38 -7
- package/dist/chunk-1d0xnr6p.js.map +10 -0
- package/dist/{chunk-f4qeqxz2.js → chunk-50rkzhcy.js} +23 -30
- package/dist/chunk-50rkzhcy.js.map +10 -0
- package/dist/{chunk-65mmaq7r.js → chunk-6k1hzwk1.js} +13 -11
- package/dist/chunk-6k1hzwk1.js.map +17 -0
- package/dist/{chunk-7bv57jcq.js → chunk-hdgztpzs.js} +372 -70
- package/dist/chunk-hdgztpzs.js.map +19 -0
- package/dist/{chunk-tyym13kq.js → chunk-jh4ts8mt.js} +3 -1
- package/dist/chunk-jh4ts8mt.js.map +10 -0
- package/dist/{chunk-qaacaq2e.js → chunk-nkx0fxxn.js} +6 -4
- package/dist/chunk-nkx0fxxn.js.map +10 -0
- package/dist/{chunk-65bdf9vw.js → chunk-tgyh8wz9.js} +7 -6
- package/dist/chunk-tgyh8wz9.js.map +12 -0
- package/dist/chunk-ys86w6hc.js +277 -0
- package/dist/chunk-ys86w6hc.js.map +12 -0
- package/dist/client-authority.d.ts +4 -0
- package/dist/client-authority.d.ts.map +1 -1
- package/dist/connectors/queries.d.ts.map +1 -1
- package/dist/events-builder.d.ts +2 -2
- package/dist/events-builder.d.ts.map +1 -1
- package/dist/events-transport.d.ts +4 -1
- package/dist/events-transport.d.ts.map +1 -1
- package/dist/generated/@tanstack/react-query.gen.d.ts +1555 -366
- package/dist/generated/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/sdk.gen.d.ts +9 -1
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/types.gen.d.ts +594 -91
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/hooks.js +44 -12
- package/dist/hooks.js.map +6 -6
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +23 -10
- package/dist/index.js.map +1 -1
- package/dist/logs-builder.d.ts +1 -1
- package/dist/logs-builder.d.ts.map +1 -1
- package/dist/logs-transport.d.ts +4 -1
- package/dist/logs-transport.d.ts.map +1 -1
- package/dist/logs.js +4 -4
- package/dist/models.d.ts +2 -1
- package/dist/models.d.ts.map +1 -1
- package/dist/models.js +7 -3
- package/dist/models.js.map +1 -1
- package/dist/query-hooks.d.ts +3 -21
- package/dist/query-hooks.d.ts.map +1 -1
- package/dist/query.d.ts +2 -4
- package/dist/query.d.ts.map +1 -1
- package/dist/query.js +4 -4
- package/dist/session.d.ts +56 -0
- package/dist/session.d.ts.map +1 -0
- package/dist/useAgentActivityStream.d.ts +3 -0
- package/dist/useAgentActivityStream.d.ts.map +1 -1
- package/dist/useAgentRunStream.d.ts +4 -1
- package/dist/useAgentRunStream.d.ts.map +1 -1
- package/dist/ws-socket.d.ts +3 -0
- package/dist/ws-socket.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/agent-streams.ts +11 -4
- package/src/api.ts +37 -32
- package/src/base-url.ts +30 -0
- package/src/browser.ts +1 -1
- package/src/client-authority.ts +19 -0
- package/src/events-builder.ts +5 -9
- package/src/events-transport.ts +6 -2
- package/src/generated/@tanstack/react-query.gen.ts +62 -0
- package/src/generated/index.ts +13 -0
- package/src/generated/sdk.gen.ts +398 -68
- package/src/generated/types.gen.ts +735 -87
- package/src/index.ts +13 -1
- package/src/logs-builder.ts +2 -2
- package/src/logs-transport.ts +6 -2
- package/src/models.ts +4 -2
- package/src/query-hooks.ts +2 -17
- package/src/query.ts +9 -12
- package/src/session.ts +316 -0
- package/src/useAgentActivityStream.ts +6 -2
- package/src/useAgentRunStream.ts +7 -3
- package/src/ws-socket.ts +62 -5
- package/dist/chunk-65bdf9vw.js.map +0 -12
- package/dist/chunk-65mmaq7r.js.map +0 -17
- package/dist/chunk-65zz479s.js +0 -23
- package/dist/chunk-65zz479s.js.map +0 -10
- package/dist/chunk-7bv57jcq.js.map +0 -19
- package/dist/chunk-f4qeqxz2.js.map +0 -10
- package/dist/chunk-qaacaq2e.js.map +0 -10
- package/dist/chunk-tyym13kq.js.map +0 -10
- package/dist/chunk-y4g6jrvs.js.map +0 -10
|
@@ -9,6 +9,7 @@ export type ErrorResponse = {
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
export type ObjectQueryObject = {
|
|
12
|
+
score?: number
|
|
12
13
|
primaryId: string
|
|
13
14
|
objectTypeId: string
|
|
14
15
|
properties: {
|
|
@@ -100,6 +101,26 @@ export type ObjectQueryLinksResponse = {
|
|
|
100
101
|
nextPageToken?: string
|
|
101
102
|
}
|
|
102
103
|
|
|
104
|
+
export type AiUsageLimitErrorResponse = {
|
|
105
|
+
error: string
|
|
106
|
+
/**
|
|
107
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
108
|
+
*/
|
|
109
|
+
code: "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable"
|
|
110
|
+
/**
|
|
111
|
+
* Any JSON-compatible value.
|
|
112
|
+
*/
|
|
113
|
+
details?:
|
|
114
|
+
| string
|
|
115
|
+
| number
|
|
116
|
+
| boolean
|
|
117
|
+
| Array<unknown>
|
|
118
|
+
| {
|
|
119
|
+
[key: string]: unknown
|
|
120
|
+
}
|
|
121
|
+
| null
|
|
122
|
+
}
|
|
123
|
+
|
|
103
124
|
export type ObjectQueryErrorResponse = {
|
|
104
125
|
error: string
|
|
105
126
|
issues?: Array<ObjectQueryIssue>
|
|
@@ -175,8 +196,8 @@ export type ObjectQuery =
|
|
|
175
196
|
| {
|
|
176
197
|
kind: "vector"
|
|
177
198
|
input: ObjectQuery
|
|
178
|
-
vector:
|
|
179
|
-
|
|
199
|
+
vector: string
|
|
200
|
+
profile: string
|
|
180
201
|
k: number
|
|
181
202
|
}
|
|
182
203
|
| {
|
|
@@ -271,8 +292,6 @@ export type ObjectQuerySortField =
|
|
|
271
292
|
export type CreateDeviceAuthorizationData = {
|
|
272
293
|
body: {
|
|
273
294
|
clientName: string
|
|
274
|
-
tokenName: string
|
|
275
|
-
expiresIn?: "90d"
|
|
276
295
|
}
|
|
277
296
|
path?: never
|
|
278
297
|
query?: never
|
|
@@ -332,14 +351,50 @@ export type ExchangeDeviceAuthorizationResponses = {
|
|
|
332
351
|
status: "expired"
|
|
333
352
|
}
|
|
334
353
|
| {
|
|
335
|
-
status: "approved"
|
|
336
354
|
accessToken: string
|
|
355
|
+
refreshToken: string
|
|
356
|
+
expiresIn: number
|
|
357
|
+
status: "approved"
|
|
337
358
|
}
|
|
338
359
|
}
|
|
339
360
|
|
|
340
361
|
export type ExchangeDeviceAuthorizationResponse =
|
|
341
362
|
ExchangeDeviceAuthorizationResponses[keyof ExchangeDeviceAuthorizationResponses]
|
|
342
363
|
|
|
364
|
+
export type RefreshAuthSessionData = {
|
|
365
|
+
body: {
|
|
366
|
+
refreshToken: string
|
|
367
|
+
}
|
|
368
|
+
path?: never
|
|
369
|
+
query?: never
|
|
370
|
+
url: "/api/auth/refresh"
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
export type RefreshAuthSessionErrors = {
|
|
374
|
+
/**
|
|
375
|
+
* Response for status 401
|
|
376
|
+
*/
|
|
377
|
+
401: {
|
|
378
|
+
error: string
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
export type RefreshAuthSessionError = RefreshAuthSessionErrors[keyof RefreshAuthSessionErrors]
|
|
383
|
+
|
|
384
|
+
export type RefreshAuthSessionResponses = {
|
|
385
|
+
/**
|
|
386
|
+
* Response for status 200
|
|
387
|
+
*/
|
|
388
|
+
200: {
|
|
389
|
+
accessToken: string
|
|
390
|
+
refreshToken: string
|
|
391
|
+
expiresIn: number
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
export type RefreshAuthSessionResponse =
|
|
396
|
+
RefreshAuthSessionResponses[keyof RefreshAuthSessionResponses]
|
|
397
|
+
|
|
343
398
|
export type GetAuthSessionData = {
|
|
344
399
|
body?: never
|
|
345
400
|
path?: never
|
|
@@ -357,7 +412,7 @@ export type GetAuthSessionResponses = {
|
|
|
357
412
|
}
|
|
358
413
|
| {
|
|
359
414
|
authenticated: true
|
|
360
|
-
csrfToken
|
|
415
|
+
csrfToken?: string
|
|
361
416
|
applicationAccess: {
|
|
362
417
|
allowed: boolean
|
|
363
418
|
audience: "atlas" | "app"
|
|
@@ -432,13 +487,14 @@ export type ListAuthSessionsResponses = {
|
|
|
432
487
|
200: {
|
|
433
488
|
sessions: Array<{
|
|
434
489
|
id: string
|
|
435
|
-
audience
|
|
490
|
+
audience?: "atlas" | "app"
|
|
436
491
|
current: boolean
|
|
437
492
|
createdAt: string
|
|
438
493
|
expiresAt: string
|
|
439
494
|
lastSeenAt?: string
|
|
440
495
|
userAgent?: string
|
|
441
496
|
ipAddress?: string
|
|
497
|
+
clientName?: string
|
|
442
498
|
}>
|
|
443
499
|
}
|
|
444
500
|
}
|
|
@@ -599,8 +655,10 @@ export type ListAuthAccessTokensResponses = {
|
|
|
599
655
|
name: string
|
|
600
656
|
kind: "personal" | "serviceAccount"
|
|
601
657
|
status: "active" | "expired" | "revoked"
|
|
602
|
-
|
|
603
|
-
|
|
658
|
+
subject: {
|
|
659
|
+
type: "user" | "serviceAccount"
|
|
660
|
+
id: string
|
|
661
|
+
}
|
|
604
662
|
subjectLabel?: string
|
|
605
663
|
groupIds?: Array<string>
|
|
606
664
|
createdAt: string
|
|
@@ -667,8 +725,10 @@ export type CreateAuthPersonalAccessTokenResponses = {
|
|
|
667
725
|
name: string
|
|
668
726
|
kind: "personal" | "serviceAccount"
|
|
669
727
|
status: "active" | "expired" | "revoked"
|
|
670
|
-
|
|
671
|
-
|
|
728
|
+
subject: {
|
|
729
|
+
type: "user" | "serviceAccount"
|
|
730
|
+
id: string
|
|
731
|
+
}
|
|
672
732
|
subjectLabel?: string
|
|
673
733
|
groupIds?: Array<string>
|
|
674
734
|
createdAt: string
|
|
@@ -734,8 +794,10 @@ export type RevokeAuthAccessTokenResponses = {
|
|
|
734
794
|
name: string
|
|
735
795
|
kind: "personal" | "serviceAccount"
|
|
736
796
|
status: "active" | "expired" | "revoked"
|
|
737
|
-
|
|
738
|
-
|
|
797
|
+
subject: {
|
|
798
|
+
type: "user" | "serviceAccount"
|
|
799
|
+
id: string
|
|
800
|
+
}
|
|
739
801
|
subjectLabel?: string
|
|
740
802
|
groupIds?: Array<string>
|
|
741
803
|
createdAt: string
|
|
@@ -972,8 +1034,10 @@ export type ListAuthServiceAccountAccessTokensResponses = {
|
|
|
972
1034
|
name: string
|
|
973
1035
|
kind: "personal" | "serviceAccount"
|
|
974
1036
|
status: "active" | "expired" | "revoked"
|
|
975
|
-
|
|
976
|
-
|
|
1037
|
+
subject: {
|
|
1038
|
+
type: "user" | "serviceAccount"
|
|
1039
|
+
id: string
|
|
1040
|
+
}
|
|
977
1041
|
subjectLabel?: string
|
|
978
1042
|
groupIds?: Array<string>
|
|
979
1043
|
createdAt: string
|
|
@@ -1048,8 +1112,10 @@ export type CreateAuthServiceAccountAccessTokenResponses = {
|
|
|
1048
1112
|
name: string
|
|
1049
1113
|
kind: "personal" | "serviceAccount"
|
|
1050
1114
|
status: "active" | "expired" | "revoked"
|
|
1051
|
-
|
|
1052
|
-
|
|
1115
|
+
subject: {
|
|
1116
|
+
type: "user" | "serviceAccount"
|
|
1117
|
+
id: string
|
|
1118
|
+
}
|
|
1053
1119
|
subjectLabel?: string
|
|
1054
1120
|
groupIds?: Array<string>
|
|
1055
1121
|
createdAt: string
|
|
@@ -1116,8 +1182,10 @@ export type RevokeAuthServiceAccountAccessTokenResponses = {
|
|
|
1116
1182
|
name: string
|
|
1117
1183
|
kind: "personal" | "serviceAccount"
|
|
1118
1184
|
status: "active" | "expired" | "revoked"
|
|
1119
|
-
|
|
1120
|
-
|
|
1185
|
+
subject: {
|
|
1186
|
+
type: "user" | "serviceAccount"
|
|
1187
|
+
id: string
|
|
1188
|
+
}
|
|
1121
1189
|
subjectLabel?: string
|
|
1122
1190
|
groupIds?: Array<string>
|
|
1123
1191
|
createdAt: string
|
|
@@ -1761,6 +1829,9 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
1761
1829
|
bucket: "hour" | "day" | "week"
|
|
1762
1830
|
totals: {
|
|
1763
1831
|
modelCallCount: number
|
|
1832
|
+
/**
|
|
1833
|
+
* Sums of reported meters; unreported meters are absent. totalTokens sums available input and output counts and is a lower bound when coverage is incomplete.
|
|
1834
|
+
*/
|
|
1764
1835
|
usage: {
|
|
1765
1836
|
inputTokens?: number
|
|
1766
1837
|
outputTokens?: number
|
|
@@ -1772,6 +1843,21 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
1772
1843
|
reasoningOutputTokens?: number
|
|
1773
1844
|
reportingStatus: "complete" | "partial" | "unavailable"
|
|
1774
1845
|
}
|
|
1846
|
+
usageCoverage: {
|
|
1847
|
+
/**
|
|
1848
|
+
* Calls reporting both inputTokens and outputTokens.
|
|
1849
|
+
*/
|
|
1850
|
+
completeCallCount: number
|
|
1851
|
+
fieldCallCounts: {
|
|
1852
|
+
inputTokens: number
|
|
1853
|
+
outputTokens: number
|
|
1854
|
+
uncachedInputTokens: number
|
|
1855
|
+
cacheReadInputTokens: number
|
|
1856
|
+
cacheWriteInputTokens: number
|
|
1857
|
+
textOutputTokens: number
|
|
1858
|
+
reasoningOutputTokens: number
|
|
1859
|
+
}
|
|
1860
|
+
}
|
|
1775
1861
|
costs: {
|
|
1776
1862
|
amounts: Array<{
|
|
1777
1863
|
currency: string
|
|
@@ -1784,6 +1870,9 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
1784
1870
|
}
|
|
1785
1871
|
series: Array<{
|
|
1786
1872
|
modelCallCount: number
|
|
1873
|
+
/**
|
|
1874
|
+
* Sums of reported meters; unreported meters are absent. totalTokens sums available input and output counts and is a lower bound when coverage is incomplete.
|
|
1875
|
+
*/
|
|
1787
1876
|
usage: {
|
|
1788
1877
|
inputTokens?: number
|
|
1789
1878
|
outputTokens?: number
|
|
@@ -1795,6 +1884,21 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
1795
1884
|
reasoningOutputTokens?: number
|
|
1796
1885
|
reportingStatus: "complete" | "partial" | "unavailable"
|
|
1797
1886
|
}
|
|
1887
|
+
usageCoverage: {
|
|
1888
|
+
/**
|
|
1889
|
+
* Calls reporting both inputTokens and outputTokens.
|
|
1890
|
+
*/
|
|
1891
|
+
completeCallCount: number
|
|
1892
|
+
fieldCallCounts: {
|
|
1893
|
+
inputTokens: number
|
|
1894
|
+
outputTokens: number
|
|
1895
|
+
uncachedInputTokens: number
|
|
1896
|
+
cacheReadInputTokens: number
|
|
1897
|
+
cacheWriteInputTokens: number
|
|
1898
|
+
textOutputTokens: number
|
|
1899
|
+
reasoningOutputTokens: number
|
|
1900
|
+
}
|
|
1901
|
+
}
|
|
1798
1902
|
costs: {
|
|
1799
1903
|
amounts: Array<{
|
|
1800
1904
|
currency: string
|
|
@@ -1809,6 +1913,9 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
1809
1913
|
}>
|
|
1810
1914
|
models: Array<{
|
|
1811
1915
|
modelCallCount: number
|
|
1916
|
+
/**
|
|
1917
|
+
* Sums of reported meters; unreported meters are absent. totalTokens sums available input and output counts and is a lower bound when coverage is incomplete.
|
|
1918
|
+
*/
|
|
1812
1919
|
usage: {
|
|
1813
1920
|
inputTokens?: number
|
|
1814
1921
|
outputTokens?: number
|
|
@@ -1820,6 +1927,21 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
1820
1927
|
reasoningOutputTokens?: number
|
|
1821
1928
|
reportingStatus: "complete" | "partial" | "unavailable"
|
|
1822
1929
|
}
|
|
1930
|
+
usageCoverage: {
|
|
1931
|
+
/**
|
|
1932
|
+
* Calls reporting both inputTokens and outputTokens.
|
|
1933
|
+
*/
|
|
1934
|
+
completeCallCount: number
|
|
1935
|
+
fieldCallCounts: {
|
|
1936
|
+
inputTokens: number
|
|
1937
|
+
outputTokens: number
|
|
1938
|
+
uncachedInputTokens: number
|
|
1939
|
+
cacheReadInputTokens: number
|
|
1940
|
+
cacheWriteInputTokens: number
|
|
1941
|
+
textOutputTokens: number
|
|
1942
|
+
reasoningOutputTokens: number
|
|
1943
|
+
}
|
|
1944
|
+
}
|
|
1823
1945
|
costs: {
|
|
1824
1946
|
amounts: Array<{
|
|
1825
1947
|
currency: string
|
|
@@ -1835,6 +1957,9 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
1835
1957
|
agents: Array<
|
|
1836
1958
|
| {
|
|
1837
1959
|
modelCallCount: number
|
|
1960
|
+
/**
|
|
1961
|
+
* Sums of reported meters; unreported meters are absent. totalTokens sums available input and output counts and is a lower bound when coverage is incomplete.
|
|
1962
|
+
*/
|
|
1838
1963
|
usage: {
|
|
1839
1964
|
inputTokens?: number
|
|
1840
1965
|
outputTokens?: number
|
|
@@ -1846,6 +1971,21 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
1846
1971
|
reasoningOutputTokens?: number
|
|
1847
1972
|
reportingStatus: "complete" | "partial" | "unavailable"
|
|
1848
1973
|
}
|
|
1974
|
+
usageCoverage: {
|
|
1975
|
+
/**
|
|
1976
|
+
* Calls reporting both inputTokens and outputTokens.
|
|
1977
|
+
*/
|
|
1978
|
+
completeCallCount: number
|
|
1979
|
+
fieldCallCounts: {
|
|
1980
|
+
inputTokens: number
|
|
1981
|
+
outputTokens: number
|
|
1982
|
+
uncachedInputTokens: number
|
|
1983
|
+
cacheReadInputTokens: number
|
|
1984
|
+
cacheWriteInputTokens: number
|
|
1985
|
+
textOutputTokens: number
|
|
1986
|
+
reasoningOutputTokens: number
|
|
1987
|
+
}
|
|
1988
|
+
}
|
|
1849
1989
|
costs: {
|
|
1850
1990
|
amounts: Array<{
|
|
1851
1991
|
currency: string
|
|
@@ -1859,6 +1999,9 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
1859
1999
|
}
|
|
1860
2000
|
| {
|
|
1861
2001
|
modelCallCount: number
|
|
2002
|
+
/**
|
|
2003
|
+
* Sums of reported meters; unreported meters are absent. totalTokens sums available input and output counts and is a lower bound when coverage is incomplete.
|
|
2004
|
+
*/
|
|
1862
2005
|
usage: {
|
|
1863
2006
|
inputTokens?: number
|
|
1864
2007
|
outputTokens?: number
|
|
@@ -1870,6 +2013,21 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
1870
2013
|
reasoningOutputTokens?: number
|
|
1871
2014
|
reportingStatus: "complete" | "partial" | "unavailable"
|
|
1872
2015
|
}
|
|
2016
|
+
usageCoverage: {
|
|
2017
|
+
/**
|
|
2018
|
+
* Calls reporting both inputTokens and outputTokens.
|
|
2019
|
+
*/
|
|
2020
|
+
completeCallCount: number
|
|
2021
|
+
fieldCallCounts: {
|
|
2022
|
+
inputTokens: number
|
|
2023
|
+
outputTokens: number
|
|
2024
|
+
uncachedInputTokens: number
|
|
2025
|
+
cacheReadInputTokens: number
|
|
2026
|
+
cacheWriteInputTokens: number
|
|
2027
|
+
textOutputTokens: number
|
|
2028
|
+
reasoningOutputTokens: number
|
|
2029
|
+
}
|
|
2030
|
+
}
|
|
1873
2031
|
costs: {
|
|
1874
2032
|
amounts: Array<{
|
|
1875
2033
|
currency: string
|
|
@@ -1886,6 +2044,9 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
1886
2044
|
>
|
|
1887
2045
|
workflows: Array<{
|
|
1888
2046
|
modelCallCount: number
|
|
2047
|
+
/**
|
|
2048
|
+
* Sums of reported meters; unreported meters are absent. totalTokens sums available input and output counts and is a lower bound when coverage is incomplete.
|
|
2049
|
+
*/
|
|
1889
2050
|
usage: {
|
|
1890
2051
|
inputTokens?: number
|
|
1891
2052
|
outputTokens?: number
|
|
@@ -1897,6 +2058,21 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
1897
2058
|
reasoningOutputTokens?: number
|
|
1898
2059
|
reportingStatus: "complete" | "partial" | "unavailable"
|
|
1899
2060
|
}
|
|
2061
|
+
usageCoverage: {
|
|
2062
|
+
/**
|
|
2063
|
+
* Calls reporting both inputTokens and outputTokens.
|
|
2064
|
+
*/
|
|
2065
|
+
completeCallCount: number
|
|
2066
|
+
fieldCallCounts: {
|
|
2067
|
+
inputTokens: number
|
|
2068
|
+
outputTokens: number
|
|
2069
|
+
uncachedInputTokens: number
|
|
2070
|
+
cacheReadInputTokens: number
|
|
2071
|
+
cacheWriteInputTokens: number
|
|
2072
|
+
textOutputTokens: number
|
|
2073
|
+
reasoningOutputTokens: number
|
|
2074
|
+
}
|
|
2075
|
+
}
|
|
1900
2076
|
costs: {
|
|
1901
2077
|
amounts: Array<{
|
|
1902
2078
|
currency: string
|
|
@@ -5750,8 +5926,8 @@ export type ListWorkflowsResponses = {
|
|
|
5750
5926
|
truncated?: true
|
|
5751
5927
|
}
|
|
5752
5928
|
requestedBy: {
|
|
5753
|
-
|
|
5754
|
-
|
|
5929
|
+
type: "user" | "serviceAccount" | "system"
|
|
5930
|
+
id: string
|
|
5755
5931
|
}
|
|
5756
5932
|
} | null
|
|
5757
5933
|
}>
|
|
@@ -5936,8 +6112,8 @@ export type GetWorkflowResponses = {
|
|
|
5936
6112
|
truncated?: true
|
|
5937
6113
|
}
|
|
5938
6114
|
requestedBy: {
|
|
5939
|
-
|
|
5940
|
-
|
|
6115
|
+
type: "user" | "serviceAccount" | "system"
|
|
6116
|
+
id: string
|
|
5941
6117
|
}
|
|
5942
6118
|
} | null
|
|
5943
6119
|
}
|
|
@@ -6025,8 +6201,8 @@ export type ListWorkflowInterventionsResponses = {
|
|
|
6025
6201
|
expiresAt?: string
|
|
6026
6202
|
submittedAt?: string
|
|
6027
6203
|
submittedBy?: {
|
|
6028
|
-
|
|
6029
|
-
|
|
6204
|
+
type: "user" | "serviceAccount" | "system"
|
|
6205
|
+
id: string
|
|
6030
6206
|
}
|
|
6031
6207
|
response?: {
|
|
6032
6208
|
[key: string]:
|
|
@@ -6041,8 +6217,8 @@ export type ListWorkflowInterventionsResponses = {
|
|
|
6041
6217
|
}
|
|
6042
6218
|
cancelledAt?: string
|
|
6043
6219
|
cancelledBy?: {
|
|
6044
|
-
|
|
6045
|
-
|
|
6220
|
+
type: "user" | "serviceAccount" | "system"
|
|
6221
|
+
id: string
|
|
6046
6222
|
}
|
|
6047
6223
|
expiredAt?: string
|
|
6048
6224
|
}>
|
|
@@ -6128,8 +6304,8 @@ export type GetWorkflowInterventionResponses = {
|
|
|
6128
6304
|
expiresAt?: string
|
|
6129
6305
|
submittedAt?: string
|
|
6130
6306
|
submittedBy?: {
|
|
6131
|
-
|
|
6132
|
-
|
|
6307
|
+
type: "user" | "serviceAccount" | "system"
|
|
6308
|
+
id: string
|
|
6133
6309
|
}
|
|
6134
6310
|
response?: {
|
|
6135
6311
|
[key: string]:
|
|
@@ -6144,8 +6320,8 @@ export type GetWorkflowInterventionResponses = {
|
|
|
6144
6320
|
}
|
|
6145
6321
|
cancelledAt?: string
|
|
6146
6322
|
cancelledBy?: {
|
|
6147
|
-
|
|
6148
|
-
|
|
6323
|
+
type: "user" | "serviceAccount" | "system"
|
|
6324
|
+
id: string
|
|
6149
6325
|
}
|
|
6150
6326
|
expiredAt?: string
|
|
6151
6327
|
}
|
|
@@ -6241,8 +6417,8 @@ export type SubmitWorkflowInterventionResponses = {
|
|
|
6241
6417
|
expiresAt?: string
|
|
6242
6418
|
submittedAt?: string
|
|
6243
6419
|
submittedBy?: {
|
|
6244
|
-
|
|
6245
|
-
|
|
6420
|
+
type: "user" | "serviceAccount" | "system"
|
|
6421
|
+
id: string
|
|
6246
6422
|
}
|
|
6247
6423
|
response?: {
|
|
6248
6424
|
[key: string]:
|
|
@@ -6257,8 +6433,8 @@ export type SubmitWorkflowInterventionResponses = {
|
|
|
6257
6433
|
}
|
|
6258
6434
|
cancelledAt?: string
|
|
6259
6435
|
cancelledBy?: {
|
|
6260
|
-
|
|
6261
|
-
|
|
6436
|
+
type: "user" | "serviceAccount" | "system"
|
|
6437
|
+
id: string
|
|
6262
6438
|
}
|
|
6263
6439
|
expiredAt?: string
|
|
6264
6440
|
}
|
|
@@ -6346,8 +6522,8 @@ export type CancelWorkflowInterventionResponses = {
|
|
|
6346
6522
|
expiresAt?: string
|
|
6347
6523
|
submittedAt?: string
|
|
6348
6524
|
submittedBy?: {
|
|
6349
|
-
|
|
6350
|
-
|
|
6525
|
+
type: "user" | "serviceAccount" | "system"
|
|
6526
|
+
id: string
|
|
6351
6527
|
}
|
|
6352
6528
|
response?: {
|
|
6353
6529
|
[key: string]:
|
|
@@ -6362,8 +6538,8 @@ export type CancelWorkflowInterventionResponses = {
|
|
|
6362
6538
|
}
|
|
6363
6539
|
cancelledAt?: string
|
|
6364
6540
|
cancelledBy?: {
|
|
6365
|
-
|
|
6366
|
-
|
|
6541
|
+
type: "user" | "serviceAccount" | "system"
|
|
6542
|
+
id: string
|
|
6367
6543
|
}
|
|
6368
6544
|
expiredAt?: string
|
|
6369
6545
|
}
|
|
@@ -6445,8 +6621,8 @@ export type ListWorkflowRunsResponses = {
|
|
|
6445
6621
|
truncated?: true
|
|
6446
6622
|
}
|
|
6447
6623
|
requestedBy: {
|
|
6448
|
-
|
|
6449
|
-
|
|
6624
|
+
type: "user" | "serviceAccount" | "system"
|
|
6625
|
+
id: string
|
|
6450
6626
|
}
|
|
6451
6627
|
}>
|
|
6452
6628
|
hasMore: boolean
|
|
@@ -6528,8 +6704,8 @@ export type GetWorkflowRunResponses = {
|
|
|
6528
6704
|
truncated?: true
|
|
6529
6705
|
}
|
|
6530
6706
|
requestedBy: {
|
|
6531
|
-
|
|
6532
|
-
|
|
6707
|
+
type: "user" | "serviceAccount" | "system"
|
|
6708
|
+
id: string
|
|
6533
6709
|
}
|
|
6534
6710
|
input: {
|
|
6535
6711
|
[key: string]:
|
|
@@ -7016,8 +7192,8 @@ export type CancelWorkflowRunResponses = {
|
|
|
7016
7192
|
truncated?: true
|
|
7017
7193
|
}
|
|
7018
7194
|
requestedBy: {
|
|
7019
|
-
|
|
7020
|
-
|
|
7195
|
+
type: "user" | "serviceAccount" | "system"
|
|
7196
|
+
id: string
|
|
7021
7197
|
}
|
|
7022
7198
|
input: {
|
|
7023
7199
|
[key: string]:
|
|
@@ -8170,17 +8346,35 @@ export type ListObjectTypesResponses = {
|
|
|
8170
8346
|
text?: boolean
|
|
8171
8347
|
exact?: boolean
|
|
8172
8348
|
facet?: boolean
|
|
8173
|
-
vector?: boolean
|
|
8174
8349
|
weight?: number
|
|
8175
8350
|
}
|
|
8351
|
+
/**
|
|
8352
|
+
* What object queries accept for this property, resolved from its schema and query metadata.
|
|
8353
|
+
*/
|
|
8354
|
+
capabilities: {
|
|
8355
|
+
operators: Array<"eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in" | "exists" | "contains">
|
|
8356
|
+
sortable: boolean
|
|
8357
|
+
facet: boolean
|
|
8358
|
+
text: boolean
|
|
8359
|
+
}
|
|
8176
8360
|
}>
|
|
8177
8361
|
search?: {
|
|
8178
8362
|
title?: string
|
|
8179
8363
|
defaultText?: Array<string>
|
|
8180
8364
|
exact?: Array<string>
|
|
8181
|
-
|
|
8182
|
-
|
|
8183
|
-
|
|
8365
|
+
vectors?: {
|
|
8366
|
+
[key: string]: {
|
|
8367
|
+
source: Array<string>
|
|
8368
|
+
model: {
|
|
8369
|
+
providerId: string
|
|
8370
|
+
modelId: string
|
|
8371
|
+
dimensions: number
|
|
8372
|
+
representation?: {
|
|
8373
|
+
name: string
|
|
8374
|
+
version?: string
|
|
8375
|
+
}
|
|
8376
|
+
}
|
|
8377
|
+
}
|
|
8184
8378
|
}
|
|
8185
8379
|
}
|
|
8186
8380
|
links: Array<{
|
|
@@ -8206,7 +8400,6 @@ export type ListObjectTypesResponses = {
|
|
|
8206
8400
|
text?: boolean
|
|
8207
8401
|
exact?: boolean
|
|
8208
8402
|
facet?: boolean
|
|
8209
|
-
vector?: boolean
|
|
8210
8403
|
weight?: number
|
|
8211
8404
|
}
|
|
8212
8405
|
}>
|
|
@@ -8277,17 +8470,35 @@ export type GetObjectTypeResponses = {
|
|
|
8277
8470
|
text?: boolean
|
|
8278
8471
|
exact?: boolean
|
|
8279
8472
|
facet?: boolean
|
|
8280
|
-
vector?: boolean
|
|
8281
8473
|
weight?: number
|
|
8282
8474
|
}
|
|
8475
|
+
/**
|
|
8476
|
+
* What object queries accept for this property, resolved from its schema and query metadata.
|
|
8477
|
+
*/
|
|
8478
|
+
capabilities: {
|
|
8479
|
+
operators: Array<"eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in" | "exists" | "contains">
|
|
8480
|
+
sortable: boolean
|
|
8481
|
+
facet: boolean
|
|
8482
|
+
text: boolean
|
|
8483
|
+
}
|
|
8283
8484
|
}>
|
|
8284
8485
|
search?: {
|
|
8285
8486
|
title?: string
|
|
8286
8487
|
defaultText?: Array<string>
|
|
8287
8488
|
exact?: Array<string>
|
|
8288
|
-
|
|
8289
|
-
|
|
8290
|
-
|
|
8489
|
+
vectors?: {
|
|
8490
|
+
[key: string]: {
|
|
8491
|
+
source: Array<string>
|
|
8492
|
+
model: {
|
|
8493
|
+
providerId: string
|
|
8494
|
+
modelId: string
|
|
8495
|
+
dimensions: number
|
|
8496
|
+
representation?: {
|
|
8497
|
+
name: string
|
|
8498
|
+
version?: string
|
|
8499
|
+
}
|
|
8500
|
+
}
|
|
8501
|
+
}
|
|
8291
8502
|
}
|
|
8292
8503
|
}
|
|
8293
8504
|
links: Array<{
|
|
@@ -8313,7 +8524,6 @@ export type GetObjectTypeResponses = {
|
|
|
8313
8524
|
text?: boolean
|
|
8314
8525
|
exact?: boolean
|
|
8315
8526
|
facet?: boolean
|
|
8316
|
-
vector?: boolean
|
|
8317
8527
|
weight?: number
|
|
8318
8528
|
}
|
|
8319
8529
|
}>
|
|
@@ -8423,6 +8633,7 @@ export type ListObjectsResponses = {
|
|
|
8423
8633
|
*/
|
|
8424
8634
|
200: {
|
|
8425
8635
|
objects: Array<{
|
|
8636
|
+
score?: number
|
|
8426
8637
|
primaryId: string
|
|
8427
8638
|
objectTypeId: string
|
|
8428
8639
|
properties: {
|
|
@@ -8454,6 +8665,10 @@ export type QueryObjectsErrors = {
|
|
|
8454
8665
|
* Response for status 403
|
|
8455
8666
|
*/
|
|
8456
8667
|
403: ErrorResponse
|
|
8668
|
+
/**
|
|
8669
|
+
* AI usage limit exceeded or unavailable
|
|
8670
|
+
*/
|
|
8671
|
+
429: AiUsageLimitErrorResponse
|
|
8457
8672
|
/**
|
|
8458
8673
|
* Response for status 500
|
|
8459
8674
|
*/
|
|
@@ -8520,6 +8735,10 @@ export type CountObjectsErrors = {
|
|
|
8520
8735
|
* Response for status 403
|
|
8521
8736
|
*/
|
|
8522
8737
|
403: ErrorResponse
|
|
8738
|
+
/**
|
|
8739
|
+
* AI usage limit exceeded or unavailable
|
|
8740
|
+
*/
|
|
8741
|
+
429: AiUsageLimitErrorResponse
|
|
8523
8742
|
/**
|
|
8524
8743
|
* Response for status 500
|
|
8525
8744
|
*/
|
|
@@ -8553,6 +8772,10 @@ export type ExistsObjectsErrors = {
|
|
|
8553
8772
|
* Response for status 403
|
|
8554
8773
|
*/
|
|
8555
8774
|
403: ErrorResponse
|
|
8775
|
+
/**
|
|
8776
|
+
* AI usage limit exceeded or unavailable
|
|
8777
|
+
*/
|
|
8778
|
+
429: AiUsageLimitErrorResponse
|
|
8556
8779
|
/**
|
|
8557
8780
|
* Response for status 500
|
|
8558
8781
|
*/
|
|
@@ -8731,6 +8954,7 @@ export type GetObjectResponses = {
|
|
|
8731
8954
|
* Response for status 200
|
|
8732
8955
|
*/
|
|
8733
8956
|
200: {
|
|
8957
|
+
score?: number
|
|
8734
8958
|
primaryId: string
|
|
8735
8959
|
objectTypeId: string
|
|
8736
8960
|
properties: {
|
|
@@ -8785,6 +9009,7 @@ export type UpsertObjectResponses = {
|
|
|
8785
9009
|
* Response for status 200
|
|
8786
9010
|
*/
|
|
8787
9011
|
200: {
|
|
9012
|
+
score?: number
|
|
8788
9013
|
primaryId: string
|
|
8789
9014
|
objectTypeId: string
|
|
8790
9015
|
properties: {
|
|
@@ -9008,6 +9233,12 @@ export type CreateFileUploadErrors = {
|
|
|
9008
9233
|
400: {
|
|
9009
9234
|
error: string
|
|
9010
9235
|
}
|
|
9236
|
+
/**
|
|
9237
|
+
* Response for status 501
|
|
9238
|
+
*/
|
|
9239
|
+
501: {
|
|
9240
|
+
error: string
|
|
9241
|
+
}
|
|
9011
9242
|
}
|
|
9012
9243
|
|
|
9013
9244
|
export type CreateFileUploadError = CreateFileUploadErrors[keyof CreateFileUploadErrors]
|
|
@@ -9079,6 +9310,12 @@ export type UploadFileContentErrors = {
|
|
|
9079
9310
|
410: {
|
|
9080
9311
|
error: string
|
|
9081
9312
|
}
|
|
9313
|
+
/**
|
|
9314
|
+
* Response for status 501
|
|
9315
|
+
*/
|
|
9316
|
+
501: {
|
|
9317
|
+
error: string
|
|
9318
|
+
}
|
|
9082
9319
|
}
|
|
9083
9320
|
|
|
9084
9321
|
export type UploadFileContentError = UploadFileContentErrors[keyof UploadFileContentErrors]
|
|
@@ -9129,6 +9366,12 @@ export type SignFileUploadPartErrors = {
|
|
|
9129
9366
|
410: {
|
|
9130
9367
|
error: string
|
|
9131
9368
|
}
|
|
9369
|
+
/**
|
|
9370
|
+
* Response for status 501
|
|
9371
|
+
*/
|
|
9372
|
+
501: {
|
|
9373
|
+
error: string
|
|
9374
|
+
}
|
|
9132
9375
|
}
|
|
9133
9376
|
|
|
9134
9377
|
export type SignFileUploadPartError = SignFileUploadPartErrors[keyof SignFileUploadPartErrors]
|
|
@@ -9192,6 +9435,12 @@ export type CompleteFileUploadErrors = {
|
|
|
9192
9435
|
410: {
|
|
9193
9436
|
error: string
|
|
9194
9437
|
}
|
|
9438
|
+
/**
|
|
9439
|
+
* Response for status 501
|
|
9440
|
+
*/
|
|
9441
|
+
501: {
|
|
9442
|
+
error: string
|
|
9443
|
+
}
|
|
9195
9444
|
}
|
|
9196
9445
|
|
|
9197
9446
|
export type CompleteFileUploadError = CompleteFileUploadErrors[keyof CompleteFileUploadErrors]
|
|
@@ -9247,6 +9496,12 @@ export type AbortFileUploadErrors = {
|
|
|
9247
9496
|
410: {
|
|
9248
9497
|
error: string
|
|
9249
9498
|
}
|
|
9499
|
+
/**
|
|
9500
|
+
* Response for status 501
|
|
9501
|
+
*/
|
|
9502
|
+
501: {
|
|
9503
|
+
error: string
|
|
9504
|
+
}
|
|
9250
9505
|
}
|
|
9251
9506
|
|
|
9252
9507
|
export type AbortFileUploadError = AbortFileUploadErrors[keyof AbortFileUploadErrors]
|
|
@@ -9333,6 +9588,7 @@ export type ListActionRunsResponses = {
|
|
|
9333
9588
|
| "runtime.cancelled"
|
|
9334
9589
|
| "queue.enqueue_failed"
|
|
9335
9590
|
| "action.phase_failed"
|
|
9591
|
+
| "action.read_conflict"
|
|
9336
9592
|
message: string
|
|
9337
9593
|
retryable: boolean
|
|
9338
9594
|
at: string
|
|
@@ -9429,6 +9685,7 @@ export type GetActionRunResponses = {
|
|
|
9429
9685
|
| "runtime.cancelled"
|
|
9430
9686
|
| "queue.enqueue_failed"
|
|
9431
9687
|
| "action.phase_failed"
|
|
9688
|
+
| "action.read_conflict"
|
|
9432
9689
|
message: string
|
|
9433
9690
|
retryable: boolean
|
|
9434
9691
|
at: string
|
|
@@ -9478,6 +9735,7 @@ export type GetActionRunResponses = {
|
|
|
9478
9735
|
| "runtime.cancelled"
|
|
9479
9736
|
| "queue.enqueue_failed"
|
|
9480
9737
|
| "action.phase_failed"
|
|
9738
|
+
| "action.read_conflict"
|
|
9481
9739
|
message: string
|
|
9482
9740
|
retryable: boolean
|
|
9483
9741
|
at: string
|
|
@@ -9505,6 +9763,7 @@ export type GetActionRunResponses = {
|
|
|
9505
9763
|
| "runtime.cancelled"
|
|
9506
9764
|
| "queue.enqueue_failed"
|
|
9507
9765
|
| "action.phase_failed"
|
|
9766
|
+
| "action.read_conflict"
|
|
9508
9767
|
message: string
|
|
9509
9768
|
retryable: boolean
|
|
9510
9769
|
at: string
|
|
@@ -9700,6 +9959,11 @@ export type ListAgentThreadsResponses = {
|
|
|
9700
9959
|
*/
|
|
9701
9960
|
200: {
|
|
9702
9961
|
threads: Array<{
|
|
9962
|
+
sandboxState?: {
|
|
9963
|
+
name: string
|
|
9964
|
+
status: "new" | "busy" | "ready" | "blocked" | "unavailable"
|
|
9965
|
+
initialized: boolean
|
|
9966
|
+
}
|
|
9703
9967
|
id: string
|
|
9704
9968
|
projectId: string
|
|
9705
9969
|
ownerPrincipal: {
|
|
@@ -9707,6 +9971,17 @@ export type ListAgentThreadsResponses = {
|
|
|
9707
9971
|
id: string
|
|
9708
9972
|
}
|
|
9709
9973
|
title?: string
|
|
9974
|
+
sandboxParams?: {
|
|
9975
|
+
[key: string]:
|
|
9976
|
+
| string
|
|
9977
|
+
| number
|
|
9978
|
+
| boolean
|
|
9979
|
+
| Array<unknown>
|
|
9980
|
+
| {
|
|
9981
|
+
[key: string]: unknown
|
|
9982
|
+
}
|
|
9983
|
+
| null
|
|
9984
|
+
}
|
|
9710
9985
|
status: "active" | "archived"
|
|
9711
9986
|
activeRunId: string | null
|
|
9712
9987
|
lastMessageAt?: string
|
|
@@ -9725,6 +10000,17 @@ export type CreateAgentThreadData = {
|
|
|
9725
10000
|
body: {
|
|
9726
10001
|
title?: string
|
|
9727
10002
|
threadId?: string
|
|
10003
|
+
sandbox?: {
|
|
10004
|
+
[key: string]:
|
|
10005
|
+
| string
|
|
10006
|
+
| number
|
|
10007
|
+
| boolean
|
|
10008
|
+
| Array<unknown>
|
|
10009
|
+
| {
|
|
10010
|
+
[key: string]: unknown
|
|
10011
|
+
}
|
|
10012
|
+
| null
|
|
10013
|
+
}
|
|
9728
10014
|
}
|
|
9729
10015
|
path?: never
|
|
9730
10016
|
query?: never
|
|
@@ -9766,6 +10052,11 @@ export type CreateAgentThreadResponses = {
|
|
|
9766
10052
|
*/
|
|
9767
10053
|
201: {
|
|
9768
10054
|
thread: {
|
|
10055
|
+
sandboxState?: {
|
|
10056
|
+
name: string
|
|
10057
|
+
status: "new" | "busy" | "ready" | "blocked" | "unavailable"
|
|
10058
|
+
initialized: boolean
|
|
10059
|
+
}
|
|
9769
10060
|
id: string
|
|
9770
10061
|
projectId: string
|
|
9771
10062
|
ownerPrincipal: {
|
|
@@ -9773,6 +10064,17 @@ export type CreateAgentThreadResponses = {
|
|
|
9773
10064
|
id: string
|
|
9774
10065
|
}
|
|
9775
10066
|
title?: string
|
|
10067
|
+
sandboxParams?: {
|
|
10068
|
+
[key: string]:
|
|
10069
|
+
| string
|
|
10070
|
+
| number
|
|
10071
|
+
| boolean
|
|
10072
|
+
| Array<unknown>
|
|
10073
|
+
| {
|
|
10074
|
+
[key: string]: unknown
|
|
10075
|
+
}
|
|
10076
|
+
| null
|
|
10077
|
+
}
|
|
9776
10078
|
status: "active" | "archived"
|
|
9777
10079
|
activeRunId: string | null
|
|
9778
10080
|
lastMessageAt?: string
|
|
@@ -9822,6 +10124,11 @@ export type GetAgentThreadResponses = {
|
|
|
9822
10124
|
* Response for status 200
|
|
9823
10125
|
*/
|
|
9824
10126
|
200: {
|
|
10127
|
+
sandboxState?: {
|
|
10128
|
+
name: string
|
|
10129
|
+
status: "new" | "busy" | "ready" | "blocked" | "unavailable"
|
|
10130
|
+
initialized: boolean
|
|
10131
|
+
}
|
|
9825
10132
|
id: string
|
|
9826
10133
|
projectId: string
|
|
9827
10134
|
ownerPrincipal: {
|
|
@@ -9829,6 +10136,17 @@ export type GetAgentThreadResponses = {
|
|
|
9829
10136
|
id: string
|
|
9830
10137
|
}
|
|
9831
10138
|
title?: string
|
|
10139
|
+
sandboxParams?: {
|
|
10140
|
+
[key: string]:
|
|
10141
|
+
| string
|
|
10142
|
+
| number
|
|
10143
|
+
| boolean
|
|
10144
|
+
| Array<unknown>
|
|
10145
|
+
| {
|
|
10146
|
+
[key: string]: unknown
|
|
10147
|
+
}
|
|
10148
|
+
| null
|
|
10149
|
+
}
|
|
9832
10150
|
status: "active" | "archived"
|
|
9833
10151
|
activeRunId: string | null
|
|
9834
10152
|
lastMessageAt?: string
|
|
@@ -9840,6 +10158,81 @@ export type GetAgentThreadResponses = {
|
|
|
9840
10158
|
|
|
9841
10159
|
export type GetAgentThreadResponse = GetAgentThreadResponses[keyof GetAgentThreadResponses]
|
|
9842
10160
|
|
|
10161
|
+
export type RecreateAgentThreadSandboxData = {
|
|
10162
|
+
body: {
|
|
10163
|
+
expectedSandboxName: string
|
|
10164
|
+
}
|
|
10165
|
+
path: {
|
|
10166
|
+
threadId: string
|
|
10167
|
+
}
|
|
10168
|
+
query?: never
|
|
10169
|
+
url: "/api/agent-threads/{threadId}/sandbox/recreate"
|
|
10170
|
+
}
|
|
10171
|
+
|
|
10172
|
+
export type RecreateAgentThreadSandboxErrors = {
|
|
10173
|
+
/**
|
|
10174
|
+
* Response for status 400
|
|
10175
|
+
*/
|
|
10176
|
+
400: {
|
|
10177
|
+
error: string
|
|
10178
|
+
}
|
|
10179
|
+
/**
|
|
10180
|
+
* Response for status 404
|
|
10181
|
+
*/
|
|
10182
|
+
404: {
|
|
10183
|
+
error: string
|
|
10184
|
+
}
|
|
10185
|
+
/**
|
|
10186
|
+
* Response for status 409
|
|
10187
|
+
*/
|
|
10188
|
+
409: {
|
|
10189
|
+
error: string
|
|
10190
|
+
}
|
|
10191
|
+
}
|
|
10192
|
+
|
|
10193
|
+
export type RecreateAgentThreadSandboxError =
|
|
10194
|
+
RecreateAgentThreadSandboxErrors[keyof RecreateAgentThreadSandboxErrors]
|
|
10195
|
+
|
|
10196
|
+
export type RecreateAgentThreadSandboxResponses = {
|
|
10197
|
+
/**
|
|
10198
|
+
* Response for status 200
|
|
10199
|
+
*/
|
|
10200
|
+
200: {
|
|
10201
|
+
sandboxState?: {
|
|
10202
|
+
name: string
|
|
10203
|
+
status: "new" | "busy" | "ready" | "blocked" | "unavailable"
|
|
10204
|
+
initialized: boolean
|
|
10205
|
+
}
|
|
10206
|
+
id: string
|
|
10207
|
+
projectId: string
|
|
10208
|
+
ownerPrincipal: {
|
|
10209
|
+
type: "user" | "serviceAccount" | "system"
|
|
10210
|
+
id: string
|
|
10211
|
+
}
|
|
10212
|
+
title?: string
|
|
10213
|
+
sandboxParams?: {
|
|
10214
|
+
[key: string]:
|
|
10215
|
+
| string
|
|
10216
|
+
| number
|
|
10217
|
+
| boolean
|
|
10218
|
+
| Array<unknown>
|
|
10219
|
+
| {
|
|
10220
|
+
[key: string]: unknown
|
|
10221
|
+
}
|
|
10222
|
+
| null
|
|
10223
|
+
}
|
|
10224
|
+
status: "active" | "archived"
|
|
10225
|
+
activeRunId: string | null
|
|
10226
|
+
lastMessageAt?: string
|
|
10227
|
+
messageCount: number
|
|
10228
|
+
createdAt: string
|
|
10229
|
+
updatedAt: string
|
|
10230
|
+
}
|
|
10231
|
+
}
|
|
10232
|
+
|
|
10233
|
+
export type RecreateAgentThreadSandboxResponse =
|
|
10234
|
+
RecreateAgentThreadSandboxResponses[keyof RecreateAgentThreadSandboxResponses]
|
|
10235
|
+
|
|
9843
10236
|
export type ListAgentThreadMessagesData = {
|
|
9844
10237
|
body?: never
|
|
9845
10238
|
path: {
|
|
@@ -11509,10 +11902,6 @@ export type ListEventsResponses = {
|
|
|
11509
11902
|
schemaVersion: 1
|
|
11510
11903
|
projectId: string
|
|
11511
11904
|
occurredAt: string
|
|
11512
|
-
actor?: {
|
|
11513
|
-
type: "user" | "serviceAccount" | "system"
|
|
11514
|
-
id: string
|
|
11515
|
-
}
|
|
11516
11905
|
partitionKey: string
|
|
11517
11906
|
origin:
|
|
11518
11907
|
| {
|
|
@@ -11547,6 +11936,47 @@ export type ListEventsResponses = {
|
|
|
11547
11936
|
batchOrdinal: number
|
|
11548
11937
|
}
|
|
11549
11938
|
}
|
|
11939
|
+
/**
|
|
11940
|
+
* Principal on whose behalf the write ran; absent for automatic or anonymous work.
|
|
11941
|
+
*/
|
|
11942
|
+
requestedBy?: {
|
|
11943
|
+
type: "user" | "serviceAccount"
|
|
11944
|
+
id: string
|
|
11945
|
+
}
|
|
11946
|
+
executor:
|
|
11947
|
+
| {
|
|
11948
|
+
type: "request"
|
|
11949
|
+
requestId: string
|
|
11950
|
+
}
|
|
11951
|
+
| {
|
|
11952
|
+
type: "primitive"
|
|
11953
|
+
kind:
|
|
11954
|
+
| "action"
|
|
11955
|
+
| "pipeline"
|
|
11956
|
+
| "projection"
|
|
11957
|
+
| "rule"
|
|
11958
|
+
| "sync"
|
|
11959
|
+
| "webhook"
|
|
11960
|
+
| "workflow"
|
|
11961
|
+
id: string
|
|
11962
|
+
runId: string
|
|
11963
|
+
}
|
|
11964
|
+
| {
|
|
11965
|
+
type: "agent"
|
|
11966
|
+
runId: string
|
|
11967
|
+
}
|
|
11968
|
+
| {
|
|
11969
|
+
type: "kernel"
|
|
11970
|
+
operation:
|
|
11971
|
+
| {
|
|
11972
|
+
type: "ontology.recover"
|
|
11973
|
+
recoveryId: string
|
|
11974
|
+
}
|
|
11975
|
+
| {
|
|
11976
|
+
type: "ontology.indexVectors"
|
|
11977
|
+
indexingId: string
|
|
11978
|
+
}
|
|
11979
|
+
}
|
|
11550
11980
|
commitId: string
|
|
11551
11981
|
commitOrdinal: number
|
|
11552
11982
|
type: "object.created"
|
|
@@ -11634,10 +12064,6 @@ export type ListEventsResponses = {
|
|
|
11634
12064
|
schemaVersion: 1
|
|
11635
12065
|
projectId: string
|
|
11636
12066
|
occurredAt: string
|
|
11637
|
-
actor?: {
|
|
11638
|
-
type: "user" | "serviceAccount" | "system"
|
|
11639
|
-
id: string
|
|
11640
|
-
}
|
|
11641
12067
|
partitionKey: string
|
|
11642
12068
|
origin:
|
|
11643
12069
|
| {
|
|
@@ -11672,6 +12098,47 @@ export type ListEventsResponses = {
|
|
|
11672
12098
|
batchOrdinal: number
|
|
11673
12099
|
}
|
|
11674
12100
|
}
|
|
12101
|
+
/**
|
|
12102
|
+
* Principal on whose behalf the write ran; absent for automatic or anonymous work.
|
|
12103
|
+
*/
|
|
12104
|
+
requestedBy?: {
|
|
12105
|
+
type: "user" | "serviceAccount"
|
|
12106
|
+
id: string
|
|
12107
|
+
}
|
|
12108
|
+
executor:
|
|
12109
|
+
| {
|
|
12110
|
+
type: "request"
|
|
12111
|
+
requestId: string
|
|
12112
|
+
}
|
|
12113
|
+
| {
|
|
12114
|
+
type: "primitive"
|
|
12115
|
+
kind:
|
|
12116
|
+
| "action"
|
|
12117
|
+
| "pipeline"
|
|
12118
|
+
| "projection"
|
|
12119
|
+
| "rule"
|
|
12120
|
+
| "sync"
|
|
12121
|
+
| "webhook"
|
|
12122
|
+
| "workflow"
|
|
12123
|
+
id: string
|
|
12124
|
+
runId: string
|
|
12125
|
+
}
|
|
12126
|
+
| {
|
|
12127
|
+
type: "agent"
|
|
12128
|
+
runId: string
|
|
12129
|
+
}
|
|
12130
|
+
| {
|
|
12131
|
+
type: "kernel"
|
|
12132
|
+
operation:
|
|
12133
|
+
| {
|
|
12134
|
+
type: "ontology.recover"
|
|
12135
|
+
recoveryId: string
|
|
12136
|
+
}
|
|
12137
|
+
| {
|
|
12138
|
+
type: "ontology.indexVectors"
|
|
12139
|
+
indexingId: string
|
|
12140
|
+
}
|
|
12141
|
+
}
|
|
11675
12142
|
commitId: string
|
|
11676
12143
|
commitOrdinal: number
|
|
11677
12144
|
type: "object.updated"
|
|
@@ -11759,10 +12226,6 @@ export type ListEventsResponses = {
|
|
|
11759
12226
|
schemaVersion: 1
|
|
11760
12227
|
projectId: string
|
|
11761
12228
|
occurredAt: string
|
|
11762
|
-
actor?: {
|
|
11763
|
-
type: "user" | "serviceAccount" | "system"
|
|
11764
|
-
id: string
|
|
11765
|
-
}
|
|
11766
12229
|
partitionKey: string
|
|
11767
12230
|
origin:
|
|
11768
12231
|
| {
|
|
@@ -11797,6 +12260,47 @@ export type ListEventsResponses = {
|
|
|
11797
12260
|
batchOrdinal: number
|
|
11798
12261
|
}
|
|
11799
12262
|
}
|
|
12263
|
+
/**
|
|
12264
|
+
* Principal on whose behalf the write ran; absent for automatic or anonymous work.
|
|
12265
|
+
*/
|
|
12266
|
+
requestedBy?: {
|
|
12267
|
+
type: "user" | "serviceAccount"
|
|
12268
|
+
id: string
|
|
12269
|
+
}
|
|
12270
|
+
executor:
|
|
12271
|
+
| {
|
|
12272
|
+
type: "request"
|
|
12273
|
+
requestId: string
|
|
12274
|
+
}
|
|
12275
|
+
| {
|
|
12276
|
+
type: "primitive"
|
|
12277
|
+
kind:
|
|
12278
|
+
| "action"
|
|
12279
|
+
| "pipeline"
|
|
12280
|
+
| "projection"
|
|
12281
|
+
| "rule"
|
|
12282
|
+
| "sync"
|
|
12283
|
+
| "webhook"
|
|
12284
|
+
| "workflow"
|
|
12285
|
+
id: string
|
|
12286
|
+
runId: string
|
|
12287
|
+
}
|
|
12288
|
+
| {
|
|
12289
|
+
type: "agent"
|
|
12290
|
+
runId: string
|
|
12291
|
+
}
|
|
12292
|
+
| {
|
|
12293
|
+
type: "kernel"
|
|
12294
|
+
operation:
|
|
12295
|
+
| {
|
|
12296
|
+
type: "ontology.recover"
|
|
12297
|
+
recoveryId: string
|
|
12298
|
+
}
|
|
12299
|
+
| {
|
|
12300
|
+
type: "ontology.indexVectors"
|
|
12301
|
+
indexingId: string
|
|
12302
|
+
}
|
|
12303
|
+
}
|
|
11800
12304
|
commitId: string
|
|
11801
12305
|
commitOrdinal: number
|
|
11802
12306
|
type: "object.deleted"
|
|
@@ -11873,10 +12377,6 @@ export type ListEventsResponses = {
|
|
|
11873
12377
|
schemaVersion: 1
|
|
11874
12378
|
projectId: string
|
|
11875
12379
|
occurredAt: string
|
|
11876
|
-
actor?: {
|
|
11877
|
-
type: "user" | "serviceAccount" | "system"
|
|
11878
|
-
id: string
|
|
11879
|
-
}
|
|
11880
12380
|
partitionKey: string
|
|
11881
12381
|
origin:
|
|
11882
12382
|
| {
|
|
@@ -11911,6 +12411,47 @@ export type ListEventsResponses = {
|
|
|
11911
12411
|
batchOrdinal: number
|
|
11912
12412
|
}
|
|
11913
12413
|
}
|
|
12414
|
+
/**
|
|
12415
|
+
* Principal on whose behalf the write ran; absent for automatic or anonymous work.
|
|
12416
|
+
*/
|
|
12417
|
+
requestedBy?: {
|
|
12418
|
+
type: "user" | "serviceAccount"
|
|
12419
|
+
id: string
|
|
12420
|
+
}
|
|
12421
|
+
executor:
|
|
12422
|
+
| {
|
|
12423
|
+
type: "request"
|
|
12424
|
+
requestId: string
|
|
12425
|
+
}
|
|
12426
|
+
| {
|
|
12427
|
+
type: "primitive"
|
|
12428
|
+
kind:
|
|
12429
|
+
| "action"
|
|
12430
|
+
| "pipeline"
|
|
12431
|
+
| "projection"
|
|
12432
|
+
| "rule"
|
|
12433
|
+
| "sync"
|
|
12434
|
+
| "webhook"
|
|
12435
|
+
| "workflow"
|
|
12436
|
+
id: string
|
|
12437
|
+
runId: string
|
|
12438
|
+
}
|
|
12439
|
+
| {
|
|
12440
|
+
type: "agent"
|
|
12441
|
+
runId: string
|
|
12442
|
+
}
|
|
12443
|
+
| {
|
|
12444
|
+
type: "kernel"
|
|
12445
|
+
operation:
|
|
12446
|
+
| {
|
|
12447
|
+
type: "ontology.recover"
|
|
12448
|
+
recoveryId: string
|
|
12449
|
+
}
|
|
12450
|
+
| {
|
|
12451
|
+
type: "ontology.indexVectors"
|
|
12452
|
+
indexingId: string
|
|
12453
|
+
}
|
|
12454
|
+
}
|
|
11914
12455
|
commitId: string
|
|
11915
12456
|
commitOrdinal: number
|
|
11916
12457
|
type: "telemetry.appended"
|
|
@@ -11941,10 +12482,6 @@ export type ListEventsResponses = {
|
|
|
11941
12482
|
schemaVersion: 1
|
|
11942
12483
|
projectId: string
|
|
11943
12484
|
occurredAt: string
|
|
11944
|
-
actor?: {
|
|
11945
|
-
type: "user" | "serviceAccount" | "system"
|
|
11946
|
-
id: string
|
|
11947
|
-
}
|
|
11948
12485
|
partitionKey: string
|
|
11949
12486
|
origin:
|
|
11950
12487
|
| {
|
|
@@ -11979,6 +12516,47 @@ export type ListEventsResponses = {
|
|
|
11979
12516
|
batchOrdinal: number
|
|
11980
12517
|
}
|
|
11981
12518
|
}
|
|
12519
|
+
/**
|
|
12520
|
+
* Principal on whose behalf the write ran; absent for automatic or anonymous work.
|
|
12521
|
+
*/
|
|
12522
|
+
requestedBy?: {
|
|
12523
|
+
type: "user" | "serviceAccount"
|
|
12524
|
+
id: string
|
|
12525
|
+
}
|
|
12526
|
+
executor:
|
|
12527
|
+
| {
|
|
12528
|
+
type: "request"
|
|
12529
|
+
requestId: string
|
|
12530
|
+
}
|
|
12531
|
+
| {
|
|
12532
|
+
type: "primitive"
|
|
12533
|
+
kind:
|
|
12534
|
+
| "action"
|
|
12535
|
+
| "pipeline"
|
|
12536
|
+
| "projection"
|
|
12537
|
+
| "rule"
|
|
12538
|
+
| "sync"
|
|
12539
|
+
| "webhook"
|
|
12540
|
+
| "workflow"
|
|
12541
|
+
id: string
|
|
12542
|
+
runId: string
|
|
12543
|
+
}
|
|
12544
|
+
| {
|
|
12545
|
+
type: "agent"
|
|
12546
|
+
runId: string
|
|
12547
|
+
}
|
|
12548
|
+
| {
|
|
12549
|
+
type: "kernel"
|
|
12550
|
+
operation:
|
|
12551
|
+
| {
|
|
12552
|
+
type: "ontology.recover"
|
|
12553
|
+
recoveryId: string
|
|
12554
|
+
}
|
|
12555
|
+
| {
|
|
12556
|
+
type: "ontology.indexVectors"
|
|
12557
|
+
indexingId: string
|
|
12558
|
+
}
|
|
12559
|
+
}
|
|
11982
12560
|
commitId: string
|
|
11983
12561
|
commitOrdinal: number
|
|
11984
12562
|
type: "link.created"
|
|
@@ -12069,10 +12647,6 @@ export type ListEventsResponses = {
|
|
|
12069
12647
|
schemaVersion: 1
|
|
12070
12648
|
projectId: string
|
|
12071
12649
|
occurredAt: string
|
|
12072
|
-
actor?: {
|
|
12073
|
-
type: "user" | "serviceAccount" | "system"
|
|
12074
|
-
id: string
|
|
12075
|
-
}
|
|
12076
12650
|
partitionKey: string
|
|
12077
12651
|
origin:
|
|
12078
12652
|
| {
|
|
@@ -12107,6 +12681,47 @@ export type ListEventsResponses = {
|
|
|
12107
12681
|
batchOrdinal: number
|
|
12108
12682
|
}
|
|
12109
12683
|
}
|
|
12684
|
+
/**
|
|
12685
|
+
* Principal on whose behalf the write ran; absent for automatic or anonymous work.
|
|
12686
|
+
*/
|
|
12687
|
+
requestedBy?: {
|
|
12688
|
+
type: "user" | "serviceAccount"
|
|
12689
|
+
id: string
|
|
12690
|
+
}
|
|
12691
|
+
executor:
|
|
12692
|
+
| {
|
|
12693
|
+
type: "request"
|
|
12694
|
+
requestId: string
|
|
12695
|
+
}
|
|
12696
|
+
| {
|
|
12697
|
+
type: "primitive"
|
|
12698
|
+
kind:
|
|
12699
|
+
| "action"
|
|
12700
|
+
| "pipeline"
|
|
12701
|
+
| "projection"
|
|
12702
|
+
| "rule"
|
|
12703
|
+
| "sync"
|
|
12704
|
+
| "webhook"
|
|
12705
|
+
| "workflow"
|
|
12706
|
+
id: string
|
|
12707
|
+
runId: string
|
|
12708
|
+
}
|
|
12709
|
+
| {
|
|
12710
|
+
type: "agent"
|
|
12711
|
+
runId: string
|
|
12712
|
+
}
|
|
12713
|
+
| {
|
|
12714
|
+
type: "kernel"
|
|
12715
|
+
operation:
|
|
12716
|
+
| {
|
|
12717
|
+
type: "ontology.recover"
|
|
12718
|
+
recoveryId: string
|
|
12719
|
+
}
|
|
12720
|
+
| {
|
|
12721
|
+
type: "ontology.indexVectors"
|
|
12722
|
+
indexingId: string
|
|
12723
|
+
}
|
|
12724
|
+
}
|
|
12110
12725
|
commitId: string
|
|
12111
12726
|
commitOrdinal: number
|
|
12112
12727
|
type: "link.updated"
|
|
@@ -12197,10 +12812,6 @@ export type ListEventsResponses = {
|
|
|
12197
12812
|
schemaVersion: 1
|
|
12198
12813
|
projectId: string
|
|
12199
12814
|
occurredAt: string
|
|
12200
|
-
actor?: {
|
|
12201
|
-
type: "user" | "serviceAccount" | "system"
|
|
12202
|
-
id: string
|
|
12203
|
-
}
|
|
12204
12815
|
partitionKey: string
|
|
12205
12816
|
origin:
|
|
12206
12817
|
| {
|
|
@@ -12235,6 +12846,47 @@ export type ListEventsResponses = {
|
|
|
12235
12846
|
batchOrdinal: number
|
|
12236
12847
|
}
|
|
12237
12848
|
}
|
|
12849
|
+
/**
|
|
12850
|
+
* Principal on whose behalf the write ran; absent for automatic or anonymous work.
|
|
12851
|
+
*/
|
|
12852
|
+
requestedBy?: {
|
|
12853
|
+
type: "user" | "serviceAccount"
|
|
12854
|
+
id: string
|
|
12855
|
+
}
|
|
12856
|
+
executor:
|
|
12857
|
+
| {
|
|
12858
|
+
type: "request"
|
|
12859
|
+
requestId: string
|
|
12860
|
+
}
|
|
12861
|
+
| {
|
|
12862
|
+
type: "primitive"
|
|
12863
|
+
kind:
|
|
12864
|
+
| "action"
|
|
12865
|
+
| "pipeline"
|
|
12866
|
+
| "projection"
|
|
12867
|
+
| "rule"
|
|
12868
|
+
| "sync"
|
|
12869
|
+
| "webhook"
|
|
12870
|
+
| "workflow"
|
|
12871
|
+
id: string
|
|
12872
|
+
runId: string
|
|
12873
|
+
}
|
|
12874
|
+
| {
|
|
12875
|
+
type: "agent"
|
|
12876
|
+
runId: string
|
|
12877
|
+
}
|
|
12878
|
+
| {
|
|
12879
|
+
type: "kernel"
|
|
12880
|
+
operation:
|
|
12881
|
+
| {
|
|
12882
|
+
type: "ontology.recover"
|
|
12883
|
+
recoveryId: string
|
|
12884
|
+
}
|
|
12885
|
+
| {
|
|
12886
|
+
type: "ontology.indexVectors"
|
|
12887
|
+
indexingId: string
|
|
12888
|
+
}
|
|
12889
|
+
}
|
|
12238
12890
|
commitId: string
|
|
12239
12891
|
commitOrdinal: number
|
|
12240
12892
|
type: "link.deleted"
|
|
@@ -12314,10 +12966,6 @@ export type ListEventsResponses = {
|
|
|
12314
12966
|
schemaVersion: 1
|
|
12315
12967
|
projectId: string
|
|
12316
12968
|
occurredAt: string
|
|
12317
|
-
actor?: {
|
|
12318
|
-
type: "user" | "serviceAccount" | "system"
|
|
12319
|
-
id: string
|
|
12320
|
-
}
|
|
12321
12969
|
partitionKey: string
|
|
12322
12970
|
correlationId?: string
|
|
12323
12971
|
causationId?: string
|