@belonguniverseai/react-sdk 0.6.26 → 0.6.28
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 +36 -0
- package/dist/api/account-connectors.d.ts +2 -2
- package/dist/api/account-scope.d.ts +75 -0
- package/dist/api/artifact-actions.d.ts +29 -0
- package/dist/api/client-identity.d.ts +3 -1
- package/dist/api/client.d.ts +1972 -226
- package/dist/api/goals.d.ts +4 -4
- package/dist/api/live-artifacts.d.ts +197 -0
- package/dist/api/my-usage.d.ts +28 -0
- package/dist/api/queries.d.ts +6 -4
- package/dist/api/query-keys.d.ts +44 -3
- package/dist/api/task-schedule-sharing.d.ts +7 -4
- package/dist/api/task-schedules.d.ts +20 -17
- package/dist/app/dock-story-data.d.ts +10 -6
- package/dist/component/BelongWidget.d.ts +4 -1
- package/dist/component/{abnfDiagram-N423BO3Z-DpQ_UaNq.js → abnfDiagram-N423BO3Z-BGC_KU0K.js} +4 -4
- package/dist/component/{arc-BoxI9KQB.js → arc-BpIEtZvJ.js} +2 -2
- package/dist/component/{architectureDiagram-T3A2C74G-C0Pxx-k7.js → architectureDiagram-T3A2C74G-DYlEVfnh.js} +3 -3
- package/dist/component/{blockDiagram-VBNYF7ZC-CPX5VZHq.js → blockDiagram-VBNYF7ZC-BWDnhAW1.js} +4 -4
- package/dist/component/{c4Diagram-5PPSVZJV-6GrzIAcz.js → c4Diagram-5PPSVZJV-VKL0Shn2.js} +3 -3
- package/dist/component/{channel-Dp0k-SEg.js → channel-gGd0pNDR.js} +2 -2
- package/dist/component/{chunk-2GRJ4B5K-CTz4CZNM.js → chunk-2GRJ4B5K-CEt4y1jX.js} +2 -2
- package/dist/component/{chunk-2Q5K7J3B-Bg9gj6WB.js → chunk-2Q5K7J3B-Dj2wrNzr.js} +2 -2
- package/dist/component/{chunk-5RXB4S5H-SJVXjTS4.js → chunk-5RXB4S5H-oJQEn1bH.js} +5 -5
- package/dist/component/{chunk-5VM5RSS4-CCi9rnUJ.js → chunk-5VM5RSS4-DddP8MPP.js} +2 -2
- package/dist/component/{chunk-6Q2QTUOP-DxQKGpDM.js → chunk-6Q2QTUOP-CppUJwrF.js} +2 -2
- package/dist/component/{chunk-GF5L2VYU-C1soxsXo.js → chunk-GF5L2VYU--hyUlO9v.js} +6 -6
- package/dist/component/{chunk-JWPE2WC7-3wshSHI2.js → chunk-JWPE2WC7-CN0Ieqel.js} +2 -2
- package/dist/component/{chunk-KBJHAD2P-DQdZO07y.js → chunk-KBJHAD2P-BWhCQoHz.js} +2 -2
- package/dist/component/{chunk-RYQCIY6F-DUaZ-HUS.js → chunk-RYQCIY6F-BgNewpQe.js} +2 -2
- package/dist/component/{chunk-XXDRQBXY-D3NSjj_n.js → chunk-XXDRQBXY-mNH171OF.js} +2 -2
- package/dist/component/{classDiagram-JCYQIIEL-BVRygNRR.js → classDiagram-JCYQIIEL-UjZbWotD.js} +3 -3
- package/dist/component/{classDiagram-v2-OCEON4UE-BVRygNRR.js → classDiagram-v2-OCEON4UE-UjZbWotD.js} +3 -3
- package/dist/component/{cose-bilkent-JH36ORCC-DLTvBiOo.js → cose-bilkent-JH36ORCC-lsVWGlMj.js} +2 -2
- package/dist/component/{cynefinDiagram-MW4NZA55-xK50k2_4.js → cynefinDiagram-MW4NZA55-B5Ss0zoy.js} +3 -3
- package/dist/component/{dagre-VZM6K2ZE-DMUwiPX1.js → dagre-VZM6K2ZE-DisWRVfU.js} +3 -3
- package/dist/component/{diagram-7IWD3JNH-Cn6oaVgE.js → diagram-7IWD3JNH-B2QrdsOh.js} +4 -4
- package/dist/component/{diagram-B4RE2ZJO-Dc_LVByi.js → diagram-B4RE2ZJO-Bs8l4THz.js} +3 -3
- package/dist/component/{diagram-LBJQPF4R-y80jmIxC.js → diagram-LBJQPF4R-JTadtYMW.js} +3 -3
- package/dist/component/{diagram-Q27KOJAE-Bp6njNLR.js → diagram-Q27KOJAE-BQC33flc.js} +4 -4
- package/dist/component/{diagram-UB23O5K3-D3X1PDYF.js → diagram-UB23O5K3-ujC22dQx.js} +3 -3
- package/dist/component/{ebnfDiagram-BXEA7PRR-9Lw8nzKe.js → ebnfDiagram-BXEA7PRR-0WnF2wzt.js} +4 -4
- package/dist/component/{erDiagram-JOGREHBK-CcG_SaTj.js → erDiagram-JOGREHBK-CqgMsd5R.js} +5 -5
- package/dist/component/{flowDiagram-UKHOOZJN-BiabESAj.js → flowDiagram-UKHOOZJN-BOM0P8Mk.js} +7 -7
- package/dist/component/{ganttDiagram-PKOTCBZU-BAfZiFRN.js → ganttDiagram-PKOTCBZU-WeRFC1th.js} +3 -3
- package/dist/component/{gitGraphDiagram-DS77QQ5N-2_hBA0gy.js → gitGraphDiagram-DS77QQ5N-CS8L-BA8.js} +4 -4
- package/dist/component/{highlighted-body-OFNGDK62-BWKA8a2L.js → highlighted-body-OFNGDK62-CGejnMyq.js} +2 -2
- package/dist/component/index.js +2 -2
- package/dist/component/{infoDiagram-6WML65LV-C-P8lJtc.js → infoDiagram-6WML65LV-CQQhytkd.js} +2 -2
- package/dist/component/{ishikawaDiagram-WSZJBQD7-CkTFVaSp.js → ishikawaDiagram-WSZJBQD7-CjDo3-zt.js} +2 -2
- package/dist/component/{journeyDiagram-NVQOT4AX-CVW--vNB.js → journeyDiagram-NVQOT4AX-BCCoblta.js} +5 -5
- package/dist/component/{kanban-definition-27J2QSJJ-5EmiKkud.js → kanban-definition-27J2QSJJ-DgTIrgvB.js} +3 -3
- package/dist/component/{linear-CSKvOjpb.js → linear-BOaza_dp.js} +2 -2
- package/dist/component/{mermaid-GHXKKRXX-DJmRTUDm.js → mermaid-GHXKKRXX-BAq5-Vj8.js} +54487 -50019
- package/dist/component/{mindmap-definition-FAOFIHXS-D8kuCYBh.js → mindmap-definition-FAOFIHXS-D1oolR3A.js} +4 -4
- package/dist/component/{pegDiagram-VL7TDLO6-BTfnYOZL.js → pegDiagram-VL7TDLO6-C9UxqvBP.js} +4 -4
- package/dist/component/{pieDiagram-7S7Q4E2Y-CzbOJQ6u.js → pieDiagram-7S7Q4E2Y-I5IXzOZM.js} +4 -4
- package/dist/component/{quadrantDiagram-CIZ2JOQS-BCLm-h12.js → quadrantDiagram-CIZ2JOQS-DPDFBhEd.js} +3 -3
- package/dist/component/{railroadDiagram-AXF67PYL-DxjbsMsY.js → railroadDiagram-AXF67PYL-DIAkhVTf.js} +4 -4
- package/dist/component/{requirementDiagram-LRYGKXZP-7CT3WVcX.js → requirementDiagram-LRYGKXZP-DBEmV-Qy.js} +4 -4
- package/dist/component/{sankeyDiagram-W5VNT64P-P0xeL0DB.js → sankeyDiagram-W5VNT64P-BEeDyDj7.js} +2 -2
- package/dist/component/{sequenceDiagram-SI44F4Z6-BZwzqGo7.js → sequenceDiagram-SI44F4Z6-WYcXWUHF.js} +4 -4
- package/dist/component/{sizeCapture-X5ZJPWSS-BmFHn5uM.js → sizeCapture-X5ZJPWSS-BqDBRpiS.js} +2 -2
- package/dist/component/{stateDiagram-OKZ733FA-CVuv1e4U.js → stateDiagram-OKZ733FA-CfYfR0OH.js} +3 -3
- package/dist/component/{stateDiagram-v2-UEYNNEHI-D9ToaXGa.js → stateDiagram-v2-UEYNNEHI-BSa2VwcQ.js} +3 -3
- package/dist/component/{swimlanes-SLNWSIFB-D4imP0Ms.js → swimlanes-SLNWSIFB-C-7mrC4X.js} +4 -4
- package/dist/component/{swimlanesDiagram-ULZ7WXOC-BTQ985v3.js → swimlanesDiagram-ULZ7WXOC-DXcMd7U4.js} +3 -3
- package/dist/component/{timeline-definition-Z64GVDOM-DAHxnCB-.js → timeline-definition-Z64GVDOM-Dp65E80E.js} +3 -3
- package/dist/component/{vennDiagram-T6HMQDX7-K5TNKkRE.js → vennDiagram-T6HMQDX7-CRpZ12TH.js} +2 -2
- package/dist/component/{wardleyDiagram-T6FBY63Y-CYU76C7a.js → wardleyDiagram-T6FBY63Y-BupsM8K3.js} +3 -3
- package/dist/component/{xychartDiagram-ELKLHX3M-CRncQBO_.js → xychartDiagram-ELKLHX3M-CUnr8Qbu.js} +3 -3
- package/dist/components/artifacts/ArtifactDetailSurface.d.ts +37 -0
- package/dist/components/artifacts/ArtifactMeta.d.ts +10 -0
- package/dist/components/artifacts/ArtifactsListSurface.d.ts +11 -0
- package/dist/components/artifacts/BindScheduleDialog.d.ts +39 -0
- package/dist/components/artifacts/ConfirmDeleteArtifactDialog.d.ts +9 -0
- package/dist/components/artifacts/ConfirmReshareDialog.d.ts +24 -0
- package/dist/components/artifacts/artifact-format.d.ts +38 -0
- package/dist/components/artifacts/open-artifact-version.d.ts +16 -0
- package/dist/components/artifacts/use-artifact-actions.d.ts +32 -0
- package/dist/components/embed/ArtifactApprovalDialog.d.ts +8 -0
- package/dist/components/embed/ArtifactOperationNoticeLine.d.ts +5 -0
- package/dist/components/embed/EmbedComposer.d.ts +5 -1
- package/dist/components/embed/EmbedConversation.d.ts +4 -1
- package/dist/components/embed/EmbedRail.d.ts +9 -2
- package/dist/components/embed/MobileNavBar.d.ts +2 -1
- package/dist/components/embed/ResponseModeDial.d.ts +11 -0
- package/dist/components/embed/SessionStatsPanel.d.ts +3 -0
- package/dist/components/embed/UsageSettings.d.ts +11 -0
- package/dist/components/embed/WorkspacePolicySetting.d.ts +1 -0
- package/dist/components/embed/format-compact-number.d.ts +8 -0
- package/dist/components/embed/use-artifact-operation-notices.d.ts +20 -0
- package/dist/components/embed/use-inline-preview-url.d.ts +3 -1
- package/dist/components/scheduled/ScheduledDetailSurface.d.ts +9 -0
- package/dist/embed/artifact-action-bridge.d.ts +70 -0
- package/dist/embed/artifact-operation-notices.d.ts +45 -0
- package/dist/embed/artifact-remint-budget.d.ts +19 -0
- package/dist/embed/artifact-sandbox-hold.d.ts +10 -0
- package/dist/embed/dock-state.d.ts +1 -1
- package/dist/embed/global.d.ts +2 -0
- package/dist/embed/goal-row-model.d.ts +1 -1
- package/dist/embed/presets.d.ts +1 -0
- package/dist/embed/response-mode.d.ts +48 -0
- package/dist/embed/theme.d.ts +5 -0
- package/dist/embed/workspace-policy.d.ts +7 -0
- package/dist/i18n/messages/en.d.ts +161 -8
- package/dist/i18n/messages/surfaces/aiElements.d.ts +4 -0
- package/dist/i18n/messages/surfaces/artifacts.d.ts +304 -0
- package/dist/i18n/messages/surfaces/embedMisc.d.ts +84 -0
- package/dist/i18n/messages/surfaces/header.d.ts +4 -0
- package/dist/i18n/messages/surfaces/myUsage.d.ts +75 -0
- package/dist/i18n/messages/surfaces/scheduled.d.ts +22 -2
- package/dist/i18n/messages/surfaces/settings.d.ts +28 -0
- package/dist/i18n/messages/surfaces/stats.d.ts +4 -12
- package/dist/i18n/messages/surfaces/stream.d.ts +120 -0
- package/dist/i18n/messages/surfaces/usage.d.ts +0 -8
- package/dist/infrastructure/telemetry/first-response-timing.d.ts +51 -0
- package/dist/lib/use-now.d.ts +32 -0
- package/dist/routes/artifact-detail.d.ts +2 -0
- package/dist/routes/artifacts.d.ts +2 -0
- package/dist/routes/chat/transcript-row.d.ts +1 -0
- package/dist/stream/belong-chat-transport.d.ts +39 -7
- package/dist/stream/belong-data-parts.d.ts +10 -0
- package/dist/stream/message-parts.d.ts +3 -1
- package/dist/stream/queued-message-outbox.d.ts +5 -0
- package/dist/stream/select-session-usage.d.ts +9 -0
- package/dist/stream/session-stats-csv.d.ts +7 -9
- package/dist/types/public.d.ts +4 -4
- package/package.json +1 -1
|
@@ -15,6 +15,11 @@ declare const queuedMessageOutboxEntrySchema: z.ZodObject<{
|
|
|
15
15
|
runtime: z.ZodOptional<z.ZodString>;
|
|
16
16
|
llmProvider: z.ZodOptional<z.ZodString>;
|
|
17
17
|
llmModel: z.ZodOptional<z.ZodString>;
|
|
18
|
+
responseMode: z.ZodOptional<z.ZodEnum<{
|
|
19
|
+
balanced: "balanced";
|
|
20
|
+
fast: "fast";
|
|
21
|
+
smart: "smart";
|
|
22
|
+
}>>;
|
|
18
23
|
workspaceExternalId: z.ZodOptional<z.ZodString>;
|
|
19
24
|
}, z.core.$strip>;
|
|
20
25
|
export type QueuedMessageOutboxEntry = Readonly<z.infer<typeof queuedMessageOutboxEntrySchema>>;
|
|
@@ -30,6 +30,13 @@ export type SessionUsageSummary = {
|
|
|
30
30
|
* panel then falls back to the session-usage view.
|
|
31
31
|
*/
|
|
32
32
|
readonly contextWindow: ContextWindowData | null;
|
|
33
|
+
/**
|
|
34
|
+
* Plan 018 — the chat in WEIGHTED tokens, in hundredths: the one figure the
|
|
35
|
+
* panel shows users (round once with `Math.round(x / 100)`). `null` when any
|
|
36
|
+
* turn folded here, or the history baseline, predates the field — an honest
|
|
37
|
+
* "unknown" rather than a total that silently skips turns.
|
|
38
|
+
*/
|
|
39
|
+
readonly totalWeightedHundredths: number | null;
|
|
33
40
|
};
|
|
34
41
|
/** The chat's usage total as of a history read (the ledger's sums). */
|
|
35
42
|
export type SessionUsageBaseline = {
|
|
@@ -39,6 +46,8 @@ export type SessionUsageBaseline = {
|
|
|
39
46
|
readonly totalCacheReadInputTokens: number;
|
|
40
47
|
readonly totalCacheWriteInputTokens: number;
|
|
41
48
|
readonly turns: number;
|
|
49
|
+
/** Plan 018 — absent from a cloud that predates weighted tokens. */
|
|
50
|
+
readonly totalWeightedHundredths?: number | undefined;
|
|
42
51
|
};
|
|
43
52
|
export declare const selectSessionUsage: (messages: readonly BelongUIMessage[],
|
|
44
53
|
/**
|
|
@@ -6,6 +6,10 @@
|
|
|
6
6
|
* DTOs. Kept as an explicit local mirror (not inferred from AppType) so the CSV
|
|
7
7
|
* column contract is readable in one place.
|
|
8
8
|
*
|
|
9
|
+
* Plan 018 — tokens appear in WEIGHTED tokens only, the one unit users see; the
|
|
10
|
+
* raw input / output split is no longer exported. The weighted fields are
|
|
11
|
+
* optional here because an older cloud does not send them (an empty cell).
|
|
12
|
+
*
|
|
9
13
|
* RFC-4180: CRLF line breaks, header first, a field is quoted when it contains
|
|
10
14
|
* `"`, `,`, CR or LF; interior quotes are doubled. CSV-injection guard: a text
|
|
11
15
|
* field starting with = + - @ is prefixed with a single quote before quoting.
|
|
@@ -13,14 +17,10 @@
|
|
|
13
17
|
export type SessionStatsTurn = {
|
|
14
18
|
readonly turn: number;
|
|
15
19
|
readonly at: string;
|
|
16
|
-
readonly
|
|
17
|
-
readonly outputTokens: number;
|
|
18
|
-
readonly totalTokens: number;
|
|
20
|
+
readonly weightedTokens?: number;
|
|
19
21
|
};
|
|
20
22
|
export type SessionStatsDetail = {
|
|
21
|
-
readonly
|
|
22
|
-
readonly totalOutputTokens: number;
|
|
23
|
-
readonly totalTokens: number;
|
|
23
|
+
readonly totalWeightedTokens?: number;
|
|
24
24
|
readonly turns: number;
|
|
25
25
|
readonly runningMs: number;
|
|
26
26
|
readonly toolCalls: number;
|
|
@@ -32,9 +32,7 @@ export type SessionStatsSummaryRow = {
|
|
|
32
32
|
readonly title: string | null;
|
|
33
33
|
readonly createdAt: string;
|
|
34
34
|
readonly updatedAt: string;
|
|
35
|
-
readonly
|
|
36
|
-
readonly totalOutputTokens: number;
|
|
37
|
-
readonly totalTokens: number;
|
|
35
|
+
readonly totalWeightedTokens?: number;
|
|
38
36
|
readonly turns: number;
|
|
39
37
|
readonly runningMs: number;
|
|
40
38
|
readonly toolCalls: number;
|
package/dist/types/public.d.ts
CHANGED
|
@@ -114,17 +114,17 @@ export type PartialBelongTheme = {
|
|
|
114
114
|
/** Per-locale welcome-copy override (BEL-135). */
|
|
115
115
|
readonly copy?: DockCopyOverride;
|
|
116
116
|
};
|
|
117
|
-
/**
|
|
118
|
-
export type PresetName = "belong" | "simetrik" | "custom";
|
|
117
|
+
/** Theme styles. `tenant` restores the latest published tenant default. */
|
|
118
|
+
export type PresetName = "tenant" | "belong" | "simetrik" | "custom";
|
|
119
119
|
/** UI languages the dock ships. `setLocale` / `init({ locale })` accept these. */
|
|
120
120
|
export type BelongLocale = "en" | "es" | "pt" | "it";
|
|
121
121
|
export type BelongInitInput = {
|
|
122
122
|
/** Belong cloud base URL, e.g. `https://api.belong.host` or `http://localhost:8787`. */
|
|
123
123
|
readonly apiBaseUrl: string;
|
|
124
124
|
/**
|
|
125
|
-
* Public tenant slug (
|
|
125
|
+
* Public tenant ID or slug (multi-tenant deployments). Used for
|
|
126
126
|
* boot-time, unauthenticated surfaces only — the theme fetch adds
|
|
127
|
-
* `?tenant=<slug>` and every request carries it as `X-Belong-Tenant`
|
|
127
|
+
* `?tenant=<id-or-slug>` and every request carries it as `X-Belong-Tenant`
|
|
128
128
|
* (observability). Authenticated routes derive the tenant from the JWT;
|
|
129
129
|
* this value can never escalate. Omit on single-tenant deployments.
|
|
130
130
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@belonguniverseai/react-sdk",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.28",
|
|
4
4
|
"description": "Belong — embeddable React AI assistant dock. Mount <BelongWidget> in your app tree with getToken dependency-injection auth.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|