@sixb/client 0.1.16 → 0.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.js +12 -7
- package/dist/browser.js.map +3 -3
- package/dist/{chunk-tgyh8wz9.js → chunk-12s8gbwj.js} +3 -3
- package/dist/{chunk-nkx0fxxn.js → chunk-3aa3m9z6.js} +10 -7
- package/dist/{chunk-nkx0fxxn.js.map → chunk-3aa3m9z6.js.map} +3 -3
- package/dist/{chunk-1d0xnr6p.js → chunk-95bnb04n.js} +2 -2
- package/dist/{chunk-50rkzhcy.js → chunk-awbb496e.js} +8 -5
- package/dist/chunk-awbb496e.js.map +10 -0
- package/dist/{chunk-ys86w6hc.js → chunk-j9t5h44d.js} +9 -6
- package/dist/{chunk-ys86w6hc.js.map → chunk-j9t5h44d.js.map} +3 -3
- package/dist/{chunk-6k1hzwk1.js → chunk-pvmd5f18.js} +8 -6
- package/dist/chunk-pvmd5f18.js.map +17 -0
- package/dist/{chunk-hdgztpzs.js → chunk-tkjkrcdt.js} +1 -3
- package/dist/{chunk-hdgztpzs.js.map → chunk-tkjkrcdt.js.map} +3 -3
- package/dist/client-authority.d.ts +3 -1
- 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/file.d.ts +7 -1
- package/dist/file.d.ts.map +1 -1
- package/dist/generated/@tanstack/react-query.gen.d.ts +469 -137
- package/dist/generated/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/generated/index.d.ts +1 -1
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/sdk.gen.d.ts +1 -1
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/types.gen.d.ts +174 -30
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/hooks.js +6 -6
- package/dist/hooks.js.map +3 -3
- package/dist/index.js +6 -6
- package/dist/logs.js +4 -4
- package/dist/models.js +1 -1
- package/dist/query-hooks.d.ts +6 -6
- package/dist/query-hooks.d.ts.map +1 -1
- package/dist/query.d.ts.map +1 -1
- package/dist/query.js +4 -4
- package/package.json +2 -2
- package/src/api.ts +6 -2
- package/src/browser.ts +11 -2
- package/src/client-authority.ts +9 -4
- package/src/events-builder.ts +2 -2
- package/src/file.ts +9 -1
- package/src/generated/@tanstack/react-query.gen.ts +1 -1
- package/src/generated/index.ts +1 -0
- package/src/generated/sdk.gen.ts +1 -3
- package/src/generated/types.gen.ts +193 -13
- package/src/query-hooks.ts +3 -3
- package/src/query.ts +7 -4
- package/dist/chunk-50rkzhcy.js.map +0 -10
- package/dist/chunk-6k1hzwk1.js.map +0 -17
- /package/dist/{chunk-tgyh8wz9.js.map → chunk-12s8gbwj.js.map} +0 -0
- /package/dist/{chunk-1d0xnr6p.js.map → chunk-95bnb04n.js.map} +0 -0
|
@@ -8,6 +8,12 @@ export type ErrorResponse = {
|
|
|
8
8
|
error: string
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
+
export type Redactions = {
|
|
12
|
+
[key: string]: {
|
|
13
|
+
reason: "missing_clearance"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
11
17
|
export type ObjectQueryObject = {
|
|
12
18
|
score?: number
|
|
13
19
|
primaryId: string
|
|
@@ -15,6 +21,7 @@ export type ObjectQueryObject = {
|
|
|
15
21
|
properties: {
|
|
16
22
|
[key: string]: unknown
|
|
17
23
|
}
|
|
24
|
+
redactions?: Redactions
|
|
18
25
|
createdAt: string
|
|
19
26
|
updatedAt: string
|
|
20
27
|
links?: {
|
|
@@ -34,7 +41,7 @@ export type ObjectQueryIssue = {
|
|
|
34
41
|
}
|
|
35
42
|
|
|
36
43
|
export type ObjectQueryPlanSummary = {
|
|
37
|
-
mode: "pushdown" | "fallback" | "rejected"
|
|
44
|
+
mode: "pushdown" | "fallback" | "pipeline" | "rejected"
|
|
38
45
|
providerIssues: Array<ObjectQueryIssue>
|
|
39
46
|
fallbackIssues: Array<ObjectQueryIssue>
|
|
40
47
|
issues: Array<ObjectQueryIssue>
|
|
@@ -73,6 +80,7 @@ export type ObjectQueryFacetResult = {
|
|
|
73
80
|
}
|
|
74
81
|
|
|
75
82
|
export type ObjectQueryFacetsResponse = {
|
|
83
|
+
total: number
|
|
76
84
|
facets: Array<ObjectQueryFacetResult>
|
|
77
85
|
plan: ObjectQueryPlanSummary
|
|
78
86
|
}
|
|
@@ -200,6 +208,14 @@ export type ObjectQuery =
|
|
|
200
208
|
profile: string
|
|
201
209
|
k: number
|
|
202
210
|
}
|
|
211
|
+
| {
|
|
212
|
+
kind: "rerank"
|
|
213
|
+
input: ObjectQuery
|
|
214
|
+
model: {
|
|
215
|
+
provider: string
|
|
216
|
+
modelId: string
|
|
217
|
+
}
|
|
218
|
+
}
|
|
203
219
|
| {
|
|
204
220
|
kind: "traverse"
|
|
205
221
|
input: ObjectQuery
|
|
@@ -409,6 +425,7 @@ export type GetAuthSessionResponses = {
|
|
|
409
425
|
200:
|
|
410
426
|
| {
|
|
411
427
|
authenticated: false
|
|
428
|
+
authEnabled: boolean
|
|
412
429
|
}
|
|
413
430
|
| {
|
|
414
431
|
authenticated: true
|
|
@@ -1845,6 +1862,10 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
1845
1862
|
cacheWriteInputTokens?: number
|
|
1846
1863
|
textOutputTokens?: number
|
|
1847
1864
|
reasoningOutputTokens?: number
|
|
1865
|
+
/**
|
|
1866
|
+
* Audio content duration in milliseconds; not billed duration.
|
|
1867
|
+
*/
|
|
1868
|
+
audioDurationMs?: number
|
|
1848
1869
|
reportingStatus: "complete" | "partial" | "unavailable"
|
|
1849
1870
|
}
|
|
1850
1871
|
usageCoverage: {
|
|
@@ -1860,6 +1881,7 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
1860
1881
|
cacheWriteInputTokens: number
|
|
1861
1882
|
textOutputTokens: number
|
|
1862
1883
|
reasoningOutputTokens: number
|
|
1884
|
+
audioDurationMs: number
|
|
1863
1885
|
}
|
|
1864
1886
|
}
|
|
1865
1887
|
costs: {
|
|
@@ -1886,6 +1908,10 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
1886
1908
|
cacheWriteInputTokens?: number
|
|
1887
1909
|
textOutputTokens?: number
|
|
1888
1910
|
reasoningOutputTokens?: number
|
|
1911
|
+
/**
|
|
1912
|
+
* Audio content duration in milliseconds; not billed duration.
|
|
1913
|
+
*/
|
|
1914
|
+
audioDurationMs?: number
|
|
1889
1915
|
reportingStatus: "complete" | "partial" | "unavailable"
|
|
1890
1916
|
}
|
|
1891
1917
|
usageCoverage: {
|
|
@@ -1901,6 +1927,7 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
1901
1927
|
cacheWriteInputTokens: number
|
|
1902
1928
|
textOutputTokens: number
|
|
1903
1929
|
reasoningOutputTokens: number
|
|
1930
|
+
audioDurationMs: number
|
|
1904
1931
|
}
|
|
1905
1932
|
}
|
|
1906
1933
|
costs: {
|
|
@@ -1929,6 +1956,10 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
1929
1956
|
cacheWriteInputTokens?: number
|
|
1930
1957
|
textOutputTokens?: number
|
|
1931
1958
|
reasoningOutputTokens?: number
|
|
1959
|
+
/**
|
|
1960
|
+
* Audio content duration in milliseconds; not billed duration.
|
|
1961
|
+
*/
|
|
1962
|
+
audioDurationMs?: number
|
|
1932
1963
|
reportingStatus: "complete" | "partial" | "unavailable"
|
|
1933
1964
|
}
|
|
1934
1965
|
usageCoverage: {
|
|
@@ -1944,6 +1975,7 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
1944
1975
|
cacheWriteInputTokens: number
|
|
1945
1976
|
textOutputTokens: number
|
|
1946
1977
|
reasoningOutputTokens: number
|
|
1978
|
+
audioDurationMs: number
|
|
1947
1979
|
}
|
|
1948
1980
|
}
|
|
1949
1981
|
costs: {
|
|
@@ -1973,6 +2005,10 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
1973
2005
|
cacheWriteInputTokens?: number
|
|
1974
2006
|
textOutputTokens?: number
|
|
1975
2007
|
reasoningOutputTokens?: number
|
|
2008
|
+
/**
|
|
2009
|
+
* Audio content duration in milliseconds; not billed duration.
|
|
2010
|
+
*/
|
|
2011
|
+
audioDurationMs?: number
|
|
1976
2012
|
reportingStatus: "complete" | "partial" | "unavailable"
|
|
1977
2013
|
}
|
|
1978
2014
|
usageCoverage: {
|
|
@@ -1988,6 +2024,7 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
1988
2024
|
cacheWriteInputTokens: number
|
|
1989
2025
|
textOutputTokens: number
|
|
1990
2026
|
reasoningOutputTokens: number
|
|
2027
|
+
audioDurationMs: number
|
|
1991
2028
|
}
|
|
1992
2029
|
}
|
|
1993
2030
|
costs: {
|
|
@@ -2015,6 +2052,10 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
2015
2052
|
cacheWriteInputTokens?: number
|
|
2016
2053
|
textOutputTokens?: number
|
|
2017
2054
|
reasoningOutputTokens?: number
|
|
2055
|
+
/**
|
|
2056
|
+
* Audio content duration in milliseconds; not billed duration.
|
|
2057
|
+
*/
|
|
2058
|
+
audioDurationMs?: number
|
|
2018
2059
|
reportingStatus: "complete" | "partial" | "unavailable"
|
|
2019
2060
|
}
|
|
2020
2061
|
usageCoverage: {
|
|
@@ -2030,6 +2071,7 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
2030
2071
|
cacheWriteInputTokens: number
|
|
2031
2072
|
textOutputTokens: number
|
|
2032
2073
|
reasoningOutputTokens: number
|
|
2074
|
+
audioDurationMs: number
|
|
2033
2075
|
}
|
|
2034
2076
|
}
|
|
2035
2077
|
costs: {
|
|
@@ -2060,6 +2102,10 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
2060
2102
|
cacheWriteInputTokens?: number
|
|
2061
2103
|
textOutputTokens?: number
|
|
2062
2104
|
reasoningOutputTokens?: number
|
|
2105
|
+
/**
|
|
2106
|
+
* Audio content duration in milliseconds; not billed duration.
|
|
2107
|
+
*/
|
|
2108
|
+
audioDurationMs?: number
|
|
2063
2109
|
reportingStatus: "complete" | "partial" | "unavailable"
|
|
2064
2110
|
}
|
|
2065
2111
|
usageCoverage: {
|
|
@@ -2075,6 +2121,7 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
2075
2121
|
cacheWriteInputTokens: number
|
|
2076
2122
|
textOutputTokens: number
|
|
2077
2123
|
reasoningOutputTokens: number
|
|
2124
|
+
audioDurationMs: number
|
|
2078
2125
|
}
|
|
2079
2126
|
}
|
|
2080
2127
|
costs: {
|
|
@@ -2146,6 +2193,14 @@ export type ListAiModelCallsResponses = {
|
|
|
2146
2193
|
callId: string
|
|
2147
2194
|
providerId: string
|
|
2148
2195
|
requestedModelId: string
|
|
2196
|
+
modelKind?:
|
|
2197
|
+
| "language"
|
|
2198
|
+
| "image"
|
|
2199
|
+
| "video"
|
|
2200
|
+
| "embedding"
|
|
2201
|
+
| "decision"
|
|
2202
|
+
| "transcription"
|
|
2203
|
+
| "reranking"
|
|
2149
2204
|
requestedReasoning?:
|
|
2150
2205
|
| "provider-default"
|
|
2151
2206
|
| "none"
|
|
@@ -2174,6 +2229,10 @@ export type ListAiModelCallsResponses = {
|
|
|
2174
2229
|
cacheWriteInputTokens?: number
|
|
2175
2230
|
textOutputTokens?: number
|
|
2176
2231
|
reasoningOutputTokens?: number
|
|
2232
|
+
/**
|
|
2233
|
+
* Audio content duration in milliseconds; not billed duration.
|
|
2234
|
+
*/
|
|
2235
|
+
audioDurationMs?: number
|
|
2177
2236
|
reportingStatus: "complete" | "partial" | "unavailable"
|
|
2178
2237
|
}
|
|
2179
2238
|
occurredAt: string
|
|
@@ -2233,6 +2292,7 @@ export type ListAiModelCallsResponses = {
|
|
|
2233
2292
|
| "tokens.output.total"
|
|
2234
2293
|
| "tokens.output.text"
|
|
2235
2294
|
| "tokens.output.reasoning"
|
|
2295
|
+
| "audio.input.milliseconds"
|
|
2236
2296
|
quantity: string
|
|
2237
2297
|
rateAmountNanosPerMillion: string
|
|
2238
2298
|
chargeAmountNanos: string
|
|
@@ -2256,6 +2316,7 @@ export type ListAiModelCallsResponses = {
|
|
|
2256
2316
|
| "tokens.output.total"
|
|
2257
2317
|
| "tokens.output.text"
|
|
2258
2318
|
| "tokens.output.reasoning"
|
|
2319
|
+
| "audio.input.milliseconds"
|
|
2259
2320
|
>
|
|
2260
2321
|
}
|
|
2261
2322
|
billingIdentity: {
|
|
@@ -2296,6 +2357,7 @@ export type ListAiModelCallsResponses = {
|
|
|
2296
2357
|
| "tokens.output.total"
|
|
2297
2358
|
| "tokens.output.text"
|
|
2298
2359
|
| "tokens.output.reasoning"
|
|
2360
|
+
| "audio.input.milliseconds"
|
|
2299
2361
|
quantity: string
|
|
2300
2362
|
rateAmountNanosPerMillion: string
|
|
2301
2363
|
chargeAmountNanos: string
|
|
@@ -2323,6 +2385,7 @@ export type ListAiModelCallsResponses = {
|
|
|
2323
2385
|
| "tokens.output.total"
|
|
2324
2386
|
| "tokens.output.text"
|
|
2325
2387
|
| "tokens.output.reasoning"
|
|
2388
|
+
| "audio.input.milliseconds"
|
|
2326
2389
|
quantity: string
|
|
2327
2390
|
rateAmountNanosPerMillion: string
|
|
2328
2391
|
chargeAmountNanos: string
|
|
@@ -2346,6 +2409,7 @@ export type ListAiModelCallsResponses = {
|
|
|
2346
2409
|
| "tokens.output.total"
|
|
2347
2410
|
| "tokens.output.text"
|
|
2348
2411
|
| "tokens.output.reasoning"
|
|
2412
|
+
| "audio.input.milliseconds"
|
|
2349
2413
|
>
|
|
2350
2414
|
}
|
|
2351
2415
|
billingIdentity?: {
|
|
@@ -2387,6 +2451,7 @@ export type ListAiModelCallsResponses = {
|
|
|
2387
2451
|
| "tokens.output.total"
|
|
2388
2452
|
| "tokens.output.text"
|
|
2389
2453
|
| "tokens.output.reasoning"
|
|
2454
|
+
| "audio.input.milliseconds"
|
|
2390
2455
|
>
|
|
2391
2456
|
ratedAt: string
|
|
2392
2457
|
}
|
|
@@ -3098,6 +3163,8 @@ export type GetProjectInfoResponses = {
|
|
|
3098
3163
|
*/
|
|
3099
3164
|
200: {
|
|
3100
3165
|
id: string
|
|
3166
|
+
locale: string
|
|
3167
|
+
timeZone: string
|
|
3101
3168
|
}
|
|
3102
3169
|
}
|
|
3103
3170
|
|
|
@@ -3131,10 +3198,6 @@ export type GetStatusResponses = {
|
|
|
3131
3198
|
retryingCount: number
|
|
3132
3199
|
maxAttempts: number
|
|
3133
3200
|
} | null
|
|
3134
|
-
terminalSources: {
|
|
3135
|
-
count: number
|
|
3136
|
-
oldestTerminalAt: string | null
|
|
3137
|
-
} | null
|
|
3138
3201
|
cleanup: {
|
|
3139
3202
|
publishedOutboxRowsDeleted: number
|
|
3140
3203
|
terminalSourceRowsDeleted: number
|
|
@@ -4819,7 +4882,7 @@ export type ListDatasetRowsData = {
|
|
|
4819
4882
|
}
|
|
4820
4883
|
query?: {
|
|
4821
4884
|
versionId?: string
|
|
4822
|
-
columns?: string
|
|
4885
|
+
columns?: Array<string>
|
|
4823
4886
|
limit?: string
|
|
4824
4887
|
offset?: string
|
|
4825
4888
|
}
|
|
@@ -4889,6 +4952,11 @@ export type ListDatasetRowsResponses = {
|
|
|
4889
4952
|
sizeBytes?: number
|
|
4890
4953
|
}
|
|
4891
4954
|
columns: Array<string>
|
|
4955
|
+
redactions?: {
|
|
4956
|
+
[key: string]: {
|
|
4957
|
+
reason: "missing_clearance"
|
|
4958
|
+
}
|
|
4959
|
+
}
|
|
4892
4960
|
rows: Array<{
|
|
4893
4961
|
[key: string]: unknown
|
|
4894
4962
|
}>
|
|
@@ -6808,6 +6876,10 @@ export type GetWorkflowRunResponses = {
|
|
|
6808
6876
|
cacheWriteInputTokens?: number
|
|
6809
6877
|
textOutputTokens?: number
|
|
6810
6878
|
reasoningOutputTokens?: number
|
|
6879
|
+
/**
|
|
6880
|
+
* Audio content duration in milliseconds; not billed duration.
|
|
6881
|
+
*/
|
|
6882
|
+
audioDurationMs?: number
|
|
6811
6883
|
reportingStatus: "complete" | "partial" | "unavailable"
|
|
6812
6884
|
}
|
|
6813
6885
|
cost?: {
|
|
@@ -6880,6 +6952,10 @@ export type GetWorkflowAgentNodeExecutionResponses = {
|
|
|
6880
6952
|
cacheWriteInputTokens?: number
|
|
6881
6953
|
textOutputTokens?: number
|
|
6882
6954
|
reasoningOutputTokens?: number
|
|
6955
|
+
/**
|
|
6956
|
+
* Audio content duration in milliseconds; not billed duration.
|
|
6957
|
+
*/
|
|
6958
|
+
audioDurationMs?: number
|
|
6883
6959
|
reportingStatus: "complete" | "partial" | "unavailable"
|
|
6884
6960
|
}
|
|
6885
6961
|
cost?: {
|
|
@@ -6912,6 +6988,9 @@ export type GetWorkflowAgentNodeExecutionResponses = {
|
|
|
6912
6988
|
}
|
|
6913
6989
|
| null
|
|
6914
6990
|
}
|
|
6991
|
+
| {
|
|
6992
|
+
type: "continuation"
|
|
6993
|
+
}
|
|
6915
6994
|
| {
|
|
6916
6995
|
type: "reasoning"
|
|
6917
6996
|
text: string
|
|
@@ -6978,6 +7057,10 @@ export type GetWorkflowAgentNodeExecutionResponses = {
|
|
|
6978
7057
|
objectTypeId: string
|
|
6979
7058
|
primaryId: string
|
|
6980
7059
|
}
|
|
7060
|
+
/**
|
|
7061
|
+
* Shown in the chat instead of the object's title. Never sent to the model.
|
|
7062
|
+
*/
|
|
7063
|
+
label?: string
|
|
6981
7064
|
}
|
|
6982
7065
|
| {
|
|
6983
7066
|
kind: "app-state"
|
|
@@ -7296,6 +7379,10 @@ export type CancelWorkflowRunResponses = {
|
|
|
7296
7379
|
cacheWriteInputTokens?: number
|
|
7297
7380
|
textOutputTokens?: number
|
|
7298
7381
|
reasoningOutputTokens?: number
|
|
7382
|
+
/**
|
|
7383
|
+
* Audio content duration in milliseconds; not billed duration.
|
|
7384
|
+
*/
|
|
7385
|
+
audioDurationMs?: number
|
|
7299
7386
|
reportingStatus: "complete" | "partial" | "unavailable"
|
|
7300
7387
|
}
|
|
7301
7388
|
cost?: {
|
|
@@ -8645,6 +8732,11 @@ export type ListObjectsResponses = {
|
|
|
8645
8732
|
properties: {
|
|
8646
8733
|
[key: string]: unknown
|
|
8647
8734
|
}
|
|
8735
|
+
redactions?: {
|
|
8736
|
+
[key: string]: {
|
|
8737
|
+
reason: "missing_clearance"
|
|
8738
|
+
}
|
|
8739
|
+
}
|
|
8648
8740
|
createdAt: string
|
|
8649
8741
|
updatedAt: string
|
|
8650
8742
|
}>
|
|
@@ -8849,6 +8941,10 @@ export type GetObjectFileContentData = {
|
|
|
8849
8941
|
* Client cache key; the route still resolves the current file
|
|
8850
8942
|
*/
|
|
8851
8943
|
v?: string
|
|
8944
|
+
/**
|
|
8945
|
+
* Share grant selector for elements that cannot send the x-sixb-share-grant header
|
|
8946
|
+
*/
|
|
8947
|
+
shareGrant?: string
|
|
8852
8948
|
}
|
|
8853
8949
|
url: "/api/objects/{objectTypeId}/{objectId}/files/content"
|
|
8854
8950
|
}
|
|
@@ -8901,6 +8997,10 @@ export type HeadObjectFileContentData = {
|
|
|
8901
8997
|
* Client cache key; the route still resolves the current file
|
|
8902
8998
|
*/
|
|
8903
8999
|
v?: string
|
|
9000
|
+
/**
|
|
9001
|
+
* Share grant selector for elements that cannot send the x-sixb-share-grant header
|
|
9002
|
+
*/
|
|
9003
|
+
shareGrant?: string
|
|
8904
9004
|
}
|
|
8905
9005
|
url: "/api/objects/{objectTypeId}/{objectId}/files/content"
|
|
8906
9006
|
}
|
|
@@ -8966,6 +9066,11 @@ export type GetObjectResponses = {
|
|
|
8966
9066
|
properties: {
|
|
8967
9067
|
[key: string]: unknown
|
|
8968
9068
|
}
|
|
9069
|
+
redactions?: {
|
|
9070
|
+
[key: string]: {
|
|
9071
|
+
reason: "missing_clearance"
|
|
9072
|
+
}
|
|
9073
|
+
}
|
|
8969
9074
|
createdAt: string
|
|
8970
9075
|
updatedAt: string
|
|
8971
9076
|
}
|
|
@@ -9021,6 +9126,11 @@ export type UpsertObjectResponses = {
|
|
|
9021
9126
|
properties: {
|
|
9022
9127
|
[key: string]: unknown
|
|
9023
9128
|
}
|
|
9129
|
+
redactions?: {
|
|
9130
|
+
[key: string]: {
|
|
9131
|
+
reason: "missing_clearance"
|
|
9132
|
+
}
|
|
9133
|
+
}
|
|
9024
9134
|
createdAt: string
|
|
9025
9135
|
updatedAt: string
|
|
9026
9136
|
}
|
|
@@ -10310,6 +10420,9 @@ export type ListAgentThreadMessagesResponses = {
|
|
|
10310
10420
|
}
|
|
10311
10421
|
| null
|
|
10312
10422
|
}
|
|
10423
|
+
| {
|
|
10424
|
+
type: "continuation"
|
|
10425
|
+
}
|
|
10313
10426
|
| {
|
|
10314
10427
|
type: "reasoning"
|
|
10315
10428
|
text: string
|
|
@@ -10376,6 +10489,10 @@ export type ListAgentThreadMessagesResponses = {
|
|
|
10376
10489
|
objectTypeId: string
|
|
10377
10490
|
primaryId: string
|
|
10378
10491
|
}
|
|
10492
|
+
/**
|
|
10493
|
+
* Shown in the chat instead of the object's title. Never sent to the model.
|
|
10494
|
+
*/
|
|
10495
|
+
label?: string
|
|
10379
10496
|
}
|
|
10380
10497
|
| {
|
|
10381
10498
|
kind: "app-state"
|
|
@@ -10484,8 +10601,9 @@ export type ListAgentThreadMessagesResponses = {
|
|
|
10484
10601
|
| "output_collection_failed"
|
|
10485
10602
|
| "output_file_changed"
|
|
10486
10603
|
| "output_storage_failed"
|
|
10604
|
+
| "step_limit_reached"
|
|
10487
10605
|
severity: "warning" | "error"
|
|
10488
|
-
scope: "output"
|
|
10606
|
+
scope: "output" | "run"
|
|
10489
10607
|
path?: string
|
|
10490
10608
|
message: string
|
|
10491
10609
|
}>
|
|
@@ -10520,7 +10638,8 @@ export type ListAgentThreadMessagesResponse =
|
|
|
10520
10638
|
|
|
10521
10639
|
export type PostAgentThreadMessageData = {
|
|
10522
10640
|
body: {
|
|
10523
|
-
text
|
|
10641
|
+
text?: string
|
|
10642
|
+
continue?: true
|
|
10524
10643
|
model?: {
|
|
10525
10644
|
provider: string
|
|
10526
10645
|
modelId: string
|
|
@@ -10537,6 +10656,8 @@ export type PostAgentThreadMessageData = {
|
|
|
10537
10656
|
| {
|
|
10538
10657
|
budgetTokens: number
|
|
10539
10658
|
}
|
|
10659
|
+
timeZone?: string
|
|
10660
|
+
locale?: string
|
|
10540
10661
|
attachments?: Array<{
|
|
10541
10662
|
blobId: string
|
|
10542
10663
|
digest: string
|
|
@@ -10553,6 +10674,10 @@ export type PostAgentThreadMessageData = {
|
|
|
10553
10674
|
objectTypeId: string
|
|
10554
10675
|
primaryId: string
|
|
10555
10676
|
}
|
|
10677
|
+
/**
|
|
10678
|
+
* Shown in the chat instead of the object's title. Never sent to the model.
|
|
10679
|
+
*/
|
|
10680
|
+
label?: string
|
|
10556
10681
|
}
|
|
10557
10682
|
| {
|
|
10558
10683
|
kind: "app-state"
|
|
@@ -10589,6 +10714,7 @@ export type PostAgentThreadMessageErrors = {
|
|
|
10589
10714
|
*/
|
|
10590
10715
|
400: {
|
|
10591
10716
|
error: string
|
|
10717
|
+
code?: string
|
|
10592
10718
|
}
|
|
10593
10719
|
/**
|
|
10594
10720
|
* Response for status 403
|
|
@@ -10679,6 +10805,7 @@ export type PostAgentThreadMessageResponses = {
|
|
|
10679
10805
|
| "content-filter"
|
|
10680
10806
|
| "tool-calls"
|
|
10681
10807
|
| "timeout"
|
|
10808
|
+
| "interrupted"
|
|
10682
10809
|
| "error"
|
|
10683
10810
|
| "other"
|
|
10684
10811
|
| "unknown"
|
|
@@ -10691,6 +10818,10 @@ export type PostAgentThreadMessageResponses = {
|
|
|
10691
10818
|
cacheWriteInputTokens?: number
|
|
10692
10819
|
textOutputTokens?: number
|
|
10693
10820
|
reasoningOutputTokens?: number
|
|
10821
|
+
/**
|
|
10822
|
+
* Audio content duration in milliseconds; not billed duration.
|
|
10823
|
+
*/
|
|
10824
|
+
audioDurationMs?: number
|
|
10694
10825
|
reportingStatus: "complete" | "partial" | "unavailable"
|
|
10695
10826
|
}
|
|
10696
10827
|
cost?: {
|
|
@@ -10710,8 +10841,9 @@ export type PostAgentThreadMessageResponses = {
|
|
|
10710
10841
|
| "output_collection_failed"
|
|
10711
10842
|
| "output_file_changed"
|
|
10712
10843
|
| "output_storage_failed"
|
|
10844
|
+
| "step_limit_reached"
|
|
10713
10845
|
severity: "warning" | "error"
|
|
10714
|
-
scope: "output"
|
|
10846
|
+
scope: "output" | "run"
|
|
10715
10847
|
path?: string
|
|
10716
10848
|
message: string
|
|
10717
10849
|
}>
|
|
@@ -10942,6 +11074,7 @@ export type CancelAgentRunResponses = {
|
|
|
10942
11074
|
| "content-filter"
|
|
10943
11075
|
| "tool-calls"
|
|
10944
11076
|
| "timeout"
|
|
11077
|
+
| "interrupted"
|
|
10945
11078
|
| "error"
|
|
10946
11079
|
| "other"
|
|
10947
11080
|
| "unknown"
|
|
@@ -10954,6 +11087,10 @@ export type CancelAgentRunResponses = {
|
|
|
10954
11087
|
cacheWriteInputTokens?: number
|
|
10955
11088
|
textOutputTokens?: number
|
|
10956
11089
|
reasoningOutputTokens?: number
|
|
11090
|
+
/**
|
|
11091
|
+
* Audio content duration in milliseconds; not billed duration.
|
|
11092
|
+
*/
|
|
11093
|
+
audioDurationMs?: number
|
|
10957
11094
|
reportingStatus: "complete" | "partial" | "unavailable"
|
|
10958
11095
|
}
|
|
10959
11096
|
cost?: {
|
|
@@ -10973,8 +11110,9 @@ export type CancelAgentRunResponses = {
|
|
|
10973
11110
|
| "output_collection_failed"
|
|
10974
11111
|
| "output_file_changed"
|
|
10975
11112
|
| "output_storage_failed"
|
|
11113
|
+
| "step_limit_reached"
|
|
10976
11114
|
severity: "warning" | "error"
|
|
10977
|
-
scope: "output"
|
|
11115
|
+
scope: "output" | "run"
|
|
10978
11116
|
path?: string
|
|
10979
11117
|
message: string
|
|
10980
11118
|
}>
|
|
@@ -11114,6 +11252,7 @@ export type RetryAgentRunResponses = {
|
|
|
11114
11252
|
| "content-filter"
|
|
11115
11253
|
| "tool-calls"
|
|
11116
11254
|
| "timeout"
|
|
11255
|
+
| "interrupted"
|
|
11117
11256
|
| "error"
|
|
11118
11257
|
| "other"
|
|
11119
11258
|
| "unknown"
|
|
@@ -11126,6 +11265,10 @@ export type RetryAgentRunResponses = {
|
|
|
11126
11265
|
cacheWriteInputTokens?: number
|
|
11127
11266
|
textOutputTokens?: number
|
|
11128
11267
|
reasoningOutputTokens?: number
|
|
11268
|
+
/**
|
|
11269
|
+
* Audio content duration in milliseconds; not billed duration.
|
|
11270
|
+
*/
|
|
11271
|
+
audioDurationMs?: number
|
|
11129
11272
|
reportingStatus: "complete" | "partial" | "unavailable"
|
|
11130
11273
|
}
|
|
11131
11274
|
cost?: {
|
|
@@ -11145,8 +11288,9 @@ export type RetryAgentRunResponses = {
|
|
|
11145
11288
|
| "output_collection_failed"
|
|
11146
11289
|
| "output_file_changed"
|
|
11147
11290
|
| "output_storage_failed"
|
|
11291
|
+
| "step_limit_reached"
|
|
11148
11292
|
severity: "warning" | "error"
|
|
11149
|
-
scope: "output"
|
|
11293
|
+
scope: "output" | "run"
|
|
11150
11294
|
path?: string
|
|
11151
11295
|
message: string
|
|
11152
11296
|
}>
|
|
@@ -11262,6 +11406,7 @@ export type ListAgentThreadRunsResponses = {
|
|
|
11262
11406
|
| "content-filter"
|
|
11263
11407
|
| "tool-calls"
|
|
11264
11408
|
| "timeout"
|
|
11409
|
+
| "interrupted"
|
|
11265
11410
|
| "error"
|
|
11266
11411
|
| "other"
|
|
11267
11412
|
| "unknown"
|
|
@@ -11274,6 +11419,10 @@ export type ListAgentThreadRunsResponses = {
|
|
|
11274
11419
|
cacheWriteInputTokens?: number
|
|
11275
11420
|
textOutputTokens?: number
|
|
11276
11421
|
reasoningOutputTokens?: number
|
|
11422
|
+
/**
|
|
11423
|
+
* Audio content duration in milliseconds; not billed duration.
|
|
11424
|
+
*/
|
|
11425
|
+
audioDurationMs?: number
|
|
11277
11426
|
reportingStatus: "complete" | "partial" | "unavailable"
|
|
11278
11427
|
}
|
|
11279
11428
|
cost?: {
|
|
@@ -11293,8 +11442,9 @@ export type ListAgentThreadRunsResponses = {
|
|
|
11293
11442
|
| "output_collection_failed"
|
|
11294
11443
|
| "output_file_changed"
|
|
11295
11444
|
| "output_storage_failed"
|
|
11445
|
+
| "step_limit_reached"
|
|
11296
11446
|
severity: "warning" | "error"
|
|
11297
|
-
scope: "output"
|
|
11447
|
+
scope: "output" | "run"
|
|
11298
11448
|
path?: string
|
|
11299
11449
|
message: string
|
|
11300
11450
|
}>
|
|
@@ -11407,6 +11557,7 @@ export type GetAgentRunResponses = {
|
|
|
11407
11557
|
| "content-filter"
|
|
11408
11558
|
| "tool-calls"
|
|
11409
11559
|
| "timeout"
|
|
11560
|
+
| "interrupted"
|
|
11410
11561
|
| "error"
|
|
11411
11562
|
| "other"
|
|
11412
11563
|
| "unknown"
|
|
@@ -11419,6 +11570,10 @@ export type GetAgentRunResponses = {
|
|
|
11419
11570
|
cacheWriteInputTokens?: number
|
|
11420
11571
|
textOutputTokens?: number
|
|
11421
11572
|
reasoningOutputTokens?: number
|
|
11573
|
+
/**
|
|
11574
|
+
* Audio content duration in milliseconds; not billed duration.
|
|
11575
|
+
*/
|
|
11576
|
+
audioDurationMs?: number
|
|
11422
11577
|
reportingStatus: "complete" | "partial" | "unavailable"
|
|
11423
11578
|
}
|
|
11424
11579
|
cost?: {
|
|
@@ -11438,8 +11593,9 @@ export type GetAgentRunResponses = {
|
|
|
11438
11593
|
| "output_collection_failed"
|
|
11439
11594
|
| "output_file_changed"
|
|
11440
11595
|
| "output_storage_failed"
|
|
11596
|
+
| "step_limit_reached"
|
|
11441
11597
|
severity: "warning" | "error"
|
|
11442
|
-
scope: "output"
|
|
11598
|
+
scope: "output" | "run"
|
|
11443
11599
|
path?: string
|
|
11444
11600
|
message: string
|
|
11445
11601
|
}>
|
|
@@ -11514,6 +11670,15 @@ export type ListModelsResponses = {
|
|
|
11514
11670
|
reasoningLevels: Array<
|
|
11515
11671
|
"provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max"
|
|
11516
11672
|
>
|
|
11673
|
+
defaultReasoning?:
|
|
11674
|
+
| "provider-default"
|
|
11675
|
+
| "none"
|
|
11676
|
+
| "minimal"
|
|
11677
|
+
| "low"
|
|
11678
|
+
| "medium"
|
|
11679
|
+
| "high"
|
|
11680
|
+
| "xhigh"
|
|
11681
|
+
| "max"
|
|
11517
11682
|
}>
|
|
11518
11683
|
}
|
|
11519
11684
|
}
|
|
@@ -12062,6 +12227,11 @@ export type ListEventsResponses = {
|
|
|
12062
12227
|
after: null
|
|
12063
12228
|
}
|
|
12064
12229
|
}
|
|
12230
|
+
redactions?: {
|
|
12231
|
+
[key: string]: {
|
|
12232
|
+
reason: "missing_clearance"
|
|
12233
|
+
}
|
|
12234
|
+
}
|
|
12065
12235
|
}
|
|
12066
12236
|
}
|
|
12067
12237
|
| {
|
|
@@ -12224,6 +12394,11 @@ export type ListEventsResponses = {
|
|
|
12224
12394
|
after: null
|
|
12225
12395
|
}
|
|
12226
12396
|
}
|
|
12397
|
+
redactions?: {
|
|
12398
|
+
[key: string]: {
|
|
12399
|
+
reason: "missing_clearance"
|
|
12400
|
+
}
|
|
12401
|
+
}
|
|
12227
12402
|
}
|
|
12228
12403
|
}
|
|
12229
12404
|
| {
|
|
@@ -12375,6 +12550,11 @@ export type ListEventsResponses = {
|
|
|
12375
12550
|
after: null
|
|
12376
12551
|
}
|
|
12377
12552
|
}
|
|
12553
|
+
redactions?: {
|
|
12554
|
+
[key: string]: {
|
|
12555
|
+
reason: "missing_clearance"
|
|
12556
|
+
}
|
|
12557
|
+
}
|
|
12378
12558
|
}
|
|
12379
12559
|
}
|
|
12380
12560
|
| {
|
package/src/query-hooks.ts
CHANGED
|
@@ -13,7 +13,7 @@ import type {
|
|
|
13
13
|
ObjectQuery,
|
|
14
14
|
ObjectQueryExecutor,
|
|
15
15
|
ObjectQueryExecutorFacetRequest,
|
|
16
|
-
|
|
16
|
+
ObjectQueryFacetsResult,
|
|
17
17
|
ObjectQueryListOptions,
|
|
18
18
|
ObjectTypeWithPropertyTokens,
|
|
19
19
|
} from "@sixb/core/query"
|
|
@@ -250,7 +250,7 @@ export function objectQueryExistsOptions(query: {
|
|
|
250
250
|
export function objectQueryFacetsOptions<TFacetInput>(
|
|
251
251
|
query: {
|
|
252
252
|
readonly ir: ObjectQuery
|
|
253
|
-
facets(input: readonly TFacetInput[]): Promise<
|
|
253
|
+
facets(input: readonly TFacetInput[]): Promise<ObjectQueryFacetsResult>
|
|
254
254
|
},
|
|
255
255
|
facets: readonly TFacetInput[]
|
|
256
256
|
) {
|
|
@@ -953,7 +953,7 @@ export function useObjectsFacets(
|
|
|
953
953
|
// server-side anyway.
|
|
954
954
|
facets: readonly { property: { id: string }; limit: number }[],
|
|
955
955
|
options?: QueryHookExtras
|
|
956
|
-
): UseQueryResult<
|
|
956
|
+
): UseQueryResult<ObjectQueryFacetsResult, Error> {
|
|
957
957
|
const executor = useClientQueryExecutor()
|
|
958
958
|
const ir = query.ir
|
|
959
959
|
const facetRequests = facets.map((facet) => ({
|
package/src/query.ts
CHANGED
|
@@ -109,10 +109,13 @@ export function createHttpQueryExecutor(client?: Client): ObjectQueryExecutor {
|
|
|
109
109
|
body: { query: toWireQuery(query), facets: [...facets] },
|
|
110
110
|
})
|
|
111
111
|
if (error || !data) throw toSixbQueryError(error)
|
|
112
|
-
return
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
112
|
+
return {
|
|
113
|
+
total: data.total,
|
|
114
|
+
facets: data.facets.map((facet) => ({
|
|
115
|
+
propertyId: facet.propertyId,
|
|
116
|
+
buckets: [...facet.buckets],
|
|
117
|
+
})),
|
|
118
|
+
}
|
|
116
119
|
},
|
|
117
120
|
}
|
|
118
121
|
}
|