@sixb/client 0.1.19 → 0.1.20
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 +5 -8
- package/dist/browser.d.ts +1 -4
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.js +2 -4
- package/dist/browser.js.map +3 -3
- package/dist/{chunk-j512cs3e.js → chunk-g05ar78c.js} +2 -3
- package/dist/{chunk-j512cs3e.js.map → chunk-g05ar78c.js.map} +4 -4
- package/dist/{chunk-jh4ts8mt.js → chunk-m2rmbshc.js} +3 -2
- package/dist/{chunk-jh4ts8mt.js.map → chunk-m2rmbshc.js.map} +3 -3
- package/dist/connectors/queries.d.ts.map +1 -1
- package/dist/file.d.ts +1 -3
- package/dist/file.d.ts.map +1 -1
- package/dist/generated/@tanstack/react-query.gen.d.ts +81 -93
- package/dist/generated/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/generated/types.gen.d.ts +6 -51
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/hooks.js +2 -2
- package/dist/index.js +2 -2
- package/dist/models.d.ts.map +1 -1
- package/dist/models.js +1 -1
- package/package.json +2 -2
- package/src/agent-streams.ts +1 -1
- package/src/browser.ts +1 -6
- package/src/file.ts +1 -4
- package/src/generated/types.gen.ts +6 -51
- package/src/models.ts +5 -3
package/dist/hooks.js
CHANGED
|
@@ -143,7 +143,7 @@ import {
|
|
|
143
143
|
toObjectSummary2,
|
|
144
144
|
toObjectDetail2,
|
|
145
145
|
toTelemetryHistoryWithRange2
|
|
146
|
-
} from "./chunk-
|
|
146
|
+
} from "./chunk-m2rmbshc.js";
|
|
147
147
|
import"./chunk-j9t5h44d.js";
|
|
148
148
|
import {
|
|
149
149
|
createSixbAgentsWebSocketUrl2,
|
|
@@ -164,7 +164,7 @@ import {
|
|
|
164
164
|
ActionRunFailedError2,
|
|
165
165
|
isFailedActionRun,
|
|
166
166
|
uploadFile2
|
|
167
|
-
} from "./chunk-
|
|
167
|
+
} from "./chunk-g05ar78c.js";
|
|
168
168
|
import {
|
|
169
169
|
isSixbApiError2
|
|
170
170
|
} from "./chunk-awbb496e.js";
|
package/dist/index.js
CHANGED
|
@@ -169,7 +169,7 @@ import {
|
|
|
169
169
|
objectFileContentUrl2,
|
|
170
170
|
SixbFileUploadError2,
|
|
171
171
|
uploadFile2
|
|
172
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-g05ar78c.js";
|
|
173
173
|
import {
|
|
174
174
|
SIXB_CSRF_HEADER_NAME2,
|
|
175
175
|
SIXB_CSRF_TOKEN_RESPONSE_HEADER_NAME2,
|
|
@@ -187,7 +187,7 @@ import {
|
|
|
187
187
|
toObjectSummary2,
|
|
188
188
|
toObjectDetail2,
|
|
189
189
|
toTelemetryHistoryWithRange2
|
|
190
|
-
} from "./chunk-
|
|
190
|
+
} from "./chunk-m2rmbshc.js";
|
|
191
191
|
import {
|
|
192
192
|
createLogSocket2,
|
|
193
193
|
createSixbLogsWebSocketUrl2,
|
package/dist/models.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../src/models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAC7C,OAAO,KAAK,EACV,sBAAsB,EACtB,2BAA2B,EAC3B,mBAAmB,EACnB,uBAAuB,EACxB,MAAM,uBAAuB,CAAA;AAE9B,cAAc,aAAa,CAAA;AAC3B,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAE/C,KAAK,oBAAoB,GAAG,uBAAuB,SAAS,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAA;AACtF,KAAK,cAAc,GAAG,mBAAmB,SAAS;IAChD,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,CAAA;CACxB,GACG,CAAC,GACD,KAAK,CAAA;AAET,MAAM,WAAW,gBAAgB;IAC/B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AM,CAAA;CAClB,GAAG,IAAI,CAkBP;AAoID,wBAAgB,aAAa,CAAC,OAAO,EAAE,sBAAsB,GAAG,WAAW,CAI1E;AAED,wBAAgB,eAAe,CAC7B,MAAM,EAAE,cAAc,EACtB,UAAU,EAAE,oBAAoB,GAAG,SAAS,GAC3C,aAAa,CAwBf;AAED,wBAAgB,cAAc,CAC5B,MAAM,EAAE,cAAc,EACtB,UAAU,EAAE,oBAAoB,GAAG,SAAS,GAC3C,YAAY,CAEd;AAED,wBAAgB,2BAA2B,CAAC,KAAK,EAAE;IACjD,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,2BAA2B,CAAA;IACpC,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;CACjB,GAAG,gBAAgB,CAkBnB"}
|
package/dist/models.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sixb/client",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.20",
|
|
4
4
|
"description": "Type-safe SDK for Sixb API with TanStack Query hooks",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sixb",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"prepack": "bun run build"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@sixb/core": "^0.1.
|
|
70
|
+
"@sixb/core": "^0.1.20"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
73
|
"@tanstack/react-query": "^5.0.0",
|
package/src/agent-streams.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AgentRunActivityEvent, AgentRunStreamEvent } from "@sixb/core/agents/streams"
|
|
2
2
|
// Import the wire validator from the browser-safe streams subpath: the `@sixb/core` root pulls in
|
|
3
|
-
// node-only runtime (e.g. `node:crypto`), which breaks
|
|
3
|
+
// node-only runtime (e.g. `node:crypto`), which breaks browser bundles.
|
|
4
4
|
import { isAgentRunActivityEvent, isAgentRunStreamEvent } from "@sixb/core/agents/streams"
|
|
5
5
|
import type { BrokerRecord } from "@sixb/core/broker"
|
|
6
6
|
import type { Client } from "./generated/client"
|
package/src/browser.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { AuthSessionAudience } from "@sixb/core"
|
|
2
1
|
import {
|
|
3
2
|
configureSixbClient as configureGeneratedSixbClient,
|
|
4
3
|
normalizeSixbApiBaseUrl,
|
|
@@ -37,14 +36,12 @@ export interface SixbBrowserRuntimeConfig {
|
|
|
37
36
|
readonly baseUrl: string
|
|
38
37
|
}
|
|
39
38
|
readonly auth: {
|
|
40
|
-
readonly audience: AuthSessionAudience
|
|
41
39
|
readonly enabled: boolean
|
|
42
40
|
}
|
|
43
41
|
}
|
|
44
42
|
|
|
45
43
|
export interface SixbBrowserRuntimeDefaults {
|
|
46
44
|
readonly apiBaseUrl?: string
|
|
47
|
-
readonly audience: AuthSessionAudience
|
|
48
45
|
readonly authEnabled?: boolean
|
|
49
46
|
}
|
|
50
47
|
|
|
@@ -90,7 +87,7 @@ export function renderSixbBrowserRuntimeScript(config: SixbBrowserRuntimeConfig)
|
|
|
90
87
|
}
|
|
91
88
|
|
|
92
89
|
export function readSixbBrowserRuntimeConfig(
|
|
93
|
-
defaults: SixbBrowserRuntimeDefaults
|
|
90
|
+
defaults: SixbBrowserRuntimeDefaults = {}
|
|
94
91
|
): SixbBrowserRuntimeConfig {
|
|
95
92
|
const runtime = window.__SIXB_RUNTIME__
|
|
96
93
|
const runtimeAuthEnabled = runtime?.auth?.enabled
|
|
@@ -101,7 +98,6 @@ export function readSixbBrowserRuntimeConfig(
|
|
|
101
98
|
),
|
|
102
99
|
},
|
|
103
100
|
auth: {
|
|
104
|
-
audience: runtime?.auth?.audience ?? defaults.audience,
|
|
105
101
|
enabled:
|
|
106
102
|
typeof runtimeAuthEnabled === "boolean"
|
|
107
103
|
? runtimeAuthEnabled
|
|
@@ -479,7 +475,6 @@ export async function requireSixbBrowserAuthSession(
|
|
|
479
475
|
|
|
480
476
|
export function createSixbSignInUrl(config: SixbBrowserRuntimeConfig, returnTo: string): string {
|
|
481
477
|
const url = new URL("/auth/sign-in", normalizeSixbApiBaseUrl(config.api.baseUrl))
|
|
482
|
-
url.searchParams.set("audience", config.auth.audience)
|
|
483
478
|
url.searchParams.set("returnTo", returnTo)
|
|
484
479
|
return url.toString()
|
|
485
480
|
}
|
package/src/file.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { FileRef } from "@sixb/core"
|
|
2
2
|
import { DEFAULT_SIMPLE_FILE_UPLOAD_BYTES } from "@sixb/core/blob-storage"
|
|
3
3
|
import { isSixbApiError, type SixbClient } from "./api"
|
|
4
4
|
import { getClientSharedGrantId } from "./client-authority"
|
|
@@ -19,8 +19,6 @@ export interface ObjectFileContentUrlInput {
|
|
|
19
19
|
/** Property path segments, without the leading `properties` segment. */
|
|
20
20
|
readonly pathSegments: readonly string[]
|
|
21
21
|
readonly fileRef: FileRef
|
|
22
|
-
/** Session audience for browser file navigation, e.g. "app" in split-domain deployments. */
|
|
23
|
-
readonly audience?: AuthSessionAudience
|
|
24
22
|
readonly disposition?: "inline" | "attachment"
|
|
25
23
|
readonly client?: SixbClient
|
|
26
24
|
}
|
|
@@ -47,7 +45,6 @@ export function objectFileContentUrl(input: ObjectFileContentUrlInput): string {
|
|
|
47
45
|
.map((segment) => segment.replaceAll("~", "~0").replaceAll("/", "~1"))
|
|
48
46
|
.join("/")}`,
|
|
49
47
|
disposition: input.disposition,
|
|
50
|
-
audience: input.audience,
|
|
51
48
|
shareGrant: getClientSharedGrantId(client) ?? undefined,
|
|
52
49
|
// Opaque cache key, not a historical-file selector. Include per-reference metadata.
|
|
53
50
|
// Encode each field so Elysia won't interpret commas in filenames as an array.
|
|
@@ -430,10 +430,6 @@ export type GetAuthSessionResponses = {
|
|
|
430
430
|
| {
|
|
431
431
|
authenticated: true
|
|
432
432
|
csrfToken?: string
|
|
433
|
-
applicationAccess: {
|
|
434
|
-
allowed: boolean
|
|
435
|
-
audience: "atlas" | "app"
|
|
436
|
-
}
|
|
437
433
|
user: {
|
|
438
434
|
id: string
|
|
439
435
|
email: string
|
|
@@ -504,7 +500,6 @@ export type ListAuthSessionsResponses = {
|
|
|
504
500
|
200: {
|
|
505
501
|
sessions: Array<{
|
|
506
502
|
id: string
|
|
507
|
-
audience?: "atlas" | "app"
|
|
508
503
|
current: boolean
|
|
509
504
|
createdAt: string
|
|
510
505
|
expiresAt: string
|
|
@@ -1294,7 +1289,6 @@ export type CreateAuthInvitationData = {
|
|
|
1294
1289
|
body: {
|
|
1295
1290
|
email: string
|
|
1296
1291
|
groupIds?: Array<string>
|
|
1297
|
-
destinationId?: "atlas" | "app"
|
|
1298
1292
|
expiresAt?: string
|
|
1299
1293
|
returnTo?: string
|
|
1300
1294
|
revealLink?: boolean
|
|
@@ -1409,11 +1403,6 @@ export type GetAuthInvitationOptionsResponses = {
|
|
|
1409
1403
|
label?: string
|
|
1410
1404
|
description?: string
|
|
1411
1405
|
}>
|
|
1412
|
-
destinations: Array<{
|
|
1413
|
-
id: "atlas" | "app"
|
|
1414
|
-
label: string
|
|
1415
|
-
}>
|
|
1416
|
-
defaultDestinationId?: "atlas" | "app"
|
|
1417
1406
|
canInviteWithoutGroups: boolean
|
|
1418
1407
|
capabilities: {
|
|
1419
1408
|
createInvitation:
|
|
@@ -1532,10 +1521,16 @@ export type GetAuthMembershipOptionsResponses = {
|
|
|
1532
1521
|
label?: string
|
|
1533
1522
|
description?: string
|
|
1534
1523
|
}>
|
|
1524
|
+
serviceAccountGroups: Array<{
|
|
1525
|
+
id: string
|
|
1526
|
+
label?: string
|
|
1527
|
+
description?: string
|
|
1528
|
+
}>
|
|
1535
1529
|
capabilities: {
|
|
1536
1530
|
invite: boolean
|
|
1537
1531
|
assignGroups: boolean
|
|
1538
1532
|
suspend: boolean
|
|
1533
|
+
serviceAccounts: boolean
|
|
1539
1534
|
}
|
|
1540
1535
|
}
|
|
1541
1536
|
}
|
|
@@ -7409,10 +7404,6 @@ export type GetWorkflowRunFileContentData = {
|
|
|
7409
7404
|
runId: string
|
|
7410
7405
|
}
|
|
7411
7406
|
query: {
|
|
7412
|
-
/**
|
|
7413
|
-
* Session audience for file navigation without Origin; must match Origin when present
|
|
7414
|
-
*/
|
|
7415
|
-
audience?: "atlas" | "app"
|
|
7416
7407
|
path: string
|
|
7417
7408
|
disposition?: "inline" | "attachment"
|
|
7418
7409
|
/**
|
|
@@ -7465,10 +7456,6 @@ export type HeadWorkflowRunFileContentData = {
|
|
|
7465
7456
|
runId: string
|
|
7466
7457
|
}
|
|
7467
7458
|
query: {
|
|
7468
|
-
/**
|
|
7469
|
-
* Session audience for file navigation without Origin; must match Origin when present
|
|
7470
|
-
*/
|
|
7471
|
-
audience?: "atlas" | "app"
|
|
7472
7459
|
path: string
|
|
7473
7460
|
disposition?: "inline" | "attachment"
|
|
7474
7461
|
/**
|
|
@@ -7519,10 +7506,6 @@ export type GetWorkflowNodeRunFileContentData = {
|
|
|
7519
7506
|
nodeKey: string
|
|
7520
7507
|
}
|
|
7521
7508
|
query: {
|
|
7522
|
-
/**
|
|
7523
|
-
* Session audience for file navigation without Origin; must match Origin when present
|
|
7524
|
-
*/
|
|
7525
|
-
audience?: "atlas" | "app"
|
|
7526
7509
|
path: string
|
|
7527
7510
|
disposition?: "inline" | "attachment"
|
|
7528
7511
|
/**
|
|
@@ -7576,10 +7559,6 @@ export type HeadWorkflowNodeRunFileContentData = {
|
|
|
7576
7559
|
nodeKey: string
|
|
7577
7560
|
}
|
|
7578
7561
|
query: {
|
|
7579
|
-
/**
|
|
7580
|
-
* Session audience for file navigation without Origin; must match Origin when present
|
|
7581
|
-
*/
|
|
7582
|
-
audience?: "atlas" | "app"
|
|
7583
7562
|
path: string
|
|
7584
7563
|
disposition?: "inline" | "attachment"
|
|
7585
7564
|
/**
|
|
@@ -8931,10 +8910,6 @@ export type GetObjectFileContentData = {
|
|
|
8931
8910
|
objectId: string
|
|
8932
8911
|
}
|
|
8933
8912
|
query: {
|
|
8934
|
-
/**
|
|
8935
|
-
* Session audience for file navigation without Origin; must match Origin when present
|
|
8936
|
-
*/
|
|
8937
|
-
audience?: "atlas" | "app"
|
|
8938
8913
|
path: string
|
|
8939
8914
|
disposition?: "inline" | "attachment"
|
|
8940
8915
|
/**
|
|
@@ -8987,10 +8962,6 @@ export type HeadObjectFileContentData = {
|
|
|
8987
8962
|
objectId: string
|
|
8988
8963
|
}
|
|
8989
8964
|
query: {
|
|
8990
|
-
/**
|
|
8991
|
-
* Session audience for file navigation without Origin; must match Origin when present
|
|
8992
|
-
*/
|
|
8993
|
-
audience?: "atlas" | "app"
|
|
8994
8965
|
path: string
|
|
8995
8966
|
disposition?: "inline" | "attachment"
|
|
8996
8967
|
/**
|
|
@@ -10050,10 +10021,6 @@ export type GetActionRunFileContentData = {
|
|
|
10050
10021
|
runId: string
|
|
10051
10022
|
}
|
|
10052
10023
|
query: {
|
|
10053
|
-
/**
|
|
10054
|
-
* Session audience for file navigation without Origin; must match Origin when present
|
|
10055
|
-
*/
|
|
10056
|
-
audience?: "atlas" | "app"
|
|
10057
10024
|
path: string
|
|
10058
10025
|
disposition?: "inline" | "attachment"
|
|
10059
10026
|
/**
|
|
@@ -10106,10 +10073,6 @@ export type HeadActionRunFileContentData = {
|
|
|
10106
10073
|
runId: string
|
|
10107
10074
|
}
|
|
10108
10075
|
query: {
|
|
10109
|
-
/**
|
|
10110
|
-
* Session audience for file navigation without Origin; must match Origin when present
|
|
10111
|
-
*/
|
|
10112
|
-
audience?: "atlas" | "app"
|
|
10113
10076
|
path: string
|
|
10114
10077
|
disposition?: "inline" | "attachment"
|
|
10115
10078
|
/**
|
|
@@ -11038,10 +11001,6 @@ export type GetAgentMessageFileContentData = {
|
|
|
11038
11001
|
messageId: string
|
|
11039
11002
|
}
|
|
11040
11003
|
query: {
|
|
11041
|
-
/**
|
|
11042
|
-
* Session audience for file navigation without Origin; must match Origin when present
|
|
11043
|
-
*/
|
|
11044
|
-
audience?: "atlas" | "app"
|
|
11045
11004
|
path: string
|
|
11046
11005
|
disposition?: "inline" | "attachment"
|
|
11047
11006
|
/**
|
|
@@ -11095,10 +11054,6 @@ export type HeadAgentMessageFileContentData = {
|
|
|
11095
11054
|
messageId: string
|
|
11096
11055
|
}
|
|
11097
11056
|
query: {
|
|
11098
|
-
/**
|
|
11099
|
-
* Session audience for file navigation without Origin; must match Origin when present
|
|
11100
|
-
*/
|
|
11101
|
-
audience?: "atlas" | "app"
|
|
11102
11057
|
path: string
|
|
11103
11058
|
disposition?: "inline" | "attachment"
|
|
11104
11059
|
/**
|
package/src/models.ts
CHANGED
|
@@ -263,10 +263,12 @@ export function toObjectSummary(
|
|
|
263
263
|
objectType: ObjectTypeDefinition | undefined
|
|
264
264
|
): ObjectSummary {
|
|
265
265
|
const properties = (object.properties ?? {}) as Record<string, unknown>
|
|
266
|
+
// What people call it: the property the type declares as its title, then `name`, then its id.
|
|
267
|
+
const titleProperty = objectType?.search?.title
|
|
266
268
|
const name =
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
269
|
+
[titleProperty ? properties[titleProperty] : undefined, properties.name].find(
|
|
270
|
+
(candidate): candidate is string => typeof candidate === "string" && candidate.length > 0
|
|
271
|
+
) ?? object.primaryId
|
|
270
272
|
const telemetry = mapTelemetryProperties(objectType, properties)
|
|
271
273
|
|
|
272
274
|
return {
|