@belonguniverseai/react-sdk 0.6.1 → 0.6.2
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/api/client.d.ts +58 -26
- package/dist/api/task-schedules.d.ts +138 -255
- package/dist/component/{arc-BziuP1aB.js → arc-TLcl3N8_.js} +2 -2
- package/dist/component/{architectureDiagram-3BPJPVTR-BVwa4QrX.js → architectureDiagram-3BPJPVTR-DYcaPx2M.js} +3 -3
- package/dist/component/{blockDiagram-GPEHLZMM-CKNImKL2.js → blockDiagram-GPEHLZMM-BdjruLO5.js} +4 -4
- package/dist/component/{c4Diagram-AAUBKEIU-BcbjcMPA.js → c4Diagram-AAUBKEIU-Bd2ebSgB.js} +3 -3
- package/dist/component/{channel-vtwXLQ1f.js → channel-CYFijF_t.js} +2 -2
- package/dist/component/{chunk-2J33WTMH-C6wmoOIl.js → chunk-2J33WTMH-B06Y_xVy.js} +2 -2
- package/dist/component/{chunk-4BX2VUAB-DySNI9mv.js → chunk-4BX2VUAB-DVpS0I_p.js} +2 -2
- package/dist/component/{chunk-55IACEB6-C4M2cG_c.js → chunk-55IACEB6-DmZctFkK.js} +2 -2
- package/dist/component/{chunk-727SXJPM-BTqmmKKN.js → chunk-727SXJPM-A5r5oL1_.js} +6 -6
- package/dist/component/{chunk-AQP2D5EJ-DiS4043D.js → chunk-AQP2D5EJ-D4G4syYu.js} +4 -4
- package/dist/component/{chunk-FMBD7UC4-Bu05DXe4.js → chunk-FMBD7UC4-CbRxWx_A.js} +2 -2
- package/dist/component/{chunk-ND2GUHAM-DfbE4oOG.js → chunk-ND2GUHAM-OX1-DIU1.js} +2 -2
- package/dist/component/{chunk-QZHKN3VN-Y8mfHGtB.js → chunk-QZHKN3VN-DLQ8oUCc.js} +2 -2
- package/dist/component/{classDiagram-4FO5ZUOK-ChO_m1Vd.js → classDiagram-4FO5ZUOK-4S9mdFC1.js} +3 -3
- package/dist/component/{classDiagram-v2-Q7XG4LA2-ChO_m1Vd.js → classDiagram-v2-Q7XG4LA2-4S9mdFC1.js} +3 -3
- package/dist/component/{cose-bilkent-S5V4N54A-B1DDE26M.js → cose-bilkent-S5V4N54A-BIrVaakt.js} +2 -2
- package/dist/component/{dagre-BM42HDAG-BmujNepD.js → dagre-BM42HDAG-BoPUzTvD.js} +2 -2
- package/dist/component/{diagram-2AECGRRQ-Cbck9DRQ.js → diagram-2AECGRRQ-PIXCGxIt.js} +3 -3
- package/dist/component/{diagram-5GNKFQAL-csRK5clZ.js → diagram-5GNKFQAL-CbJxbGBh.js} +4 -4
- package/dist/component/{diagram-KO2AKTUF-DD3KqnFb.js → diagram-KO2AKTUF-Da1E68Eo.js} +3 -3
- package/dist/component/{diagram-LMA3HP47-D6-oakzD.js → diagram-LMA3HP47-dRbk5sBa.js} +3 -3
- package/dist/component/{diagram-OG6HWLK6-DfxY1IE7.js → diagram-OG6HWLK6-CcKT8mhn.js} +4 -4
- package/dist/component/{erDiagram-TEJ5UH35-BDV1C23R.js → erDiagram-TEJ5UH35-3ATYT9J-.js} +5 -5
- package/dist/component/{flowDiagram-I6XJVG4X-mEwMtE2U.js → flowDiagram-I6XJVG4X-D9PLm9Od.js} +7 -7
- package/dist/component/{ganttDiagram-6RSMTGT7-C_dcTMQX.js → ganttDiagram-6RSMTGT7-F_XUzD1p.js} +3 -3
- package/dist/component/{gitGraphDiagram-PVQCEYII-CIKPPQiC.js → gitGraphDiagram-PVQCEYII-13gVhAGc.js} +4 -4
- package/dist/component/{highlighted-body-OFNGDK62-DpP1DD9S.js → highlighted-body-OFNGDK62-DCxRI4UV.js} +2 -2
- package/dist/component/index.js +2 -2
- package/dist/component/{infoDiagram-5YYISTIA-DKTrvjCm.js → infoDiagram-5YYISTIA-DymxA7AN.js} +2 -2
- package/dist/component/{ishikawaDiagram-YF4QCWOH-BcuncMnU.js → ishikawaDiagram-YF4QCWOH-C3sTn76C.js} +2 -2
- package/dist/component/{journeyDiagram-JHISSGLW-BTTgY3Of.js → journeyDiagram-JHISSGLW-Cq0hOAfJ.js} +5 -5
- package/dist/component/{kanban-definition-UN3LZRKU-D9K5810E.js → kanban-definition-UN3LZRKU-5tBWjkp7.js} +3 -3
- package/dist/component/{linear-DondfmT2.js → linear-BT4blD8s.js} +2 -2
- package/dist/component/{mermaid-GHXKKRXX-j_0KsvYs.js → mermaid-GHXKKRXX-DXPXjnb7.js} +33550 -35146
- package/dist/component/{mindmap-definition-RKZ34NQL-DMC3vCUq.js → mindmap-definition-RKZ34NQL-DO-OuAQQ.js} +4 -4
- package/dist/component/{pieDiagram-4H26LBE5-DmYi_D3l.js → pieDiagram-4H26LBE5-BkEktPwZ.js} +4 -4
- package/dist/component/{quadrantDiagram-W4KKPZXB-DMos-d69.js → quadrantDiagram-W4KKPZXB-CaJWg9ep.js} +3 -3
- package/dist/component/{requirementDiagram-4Y6WPE33-BpgIfnhZ.js → requirementDiagram-4Y6WPE33-CmZrtZqe.js} +4 -4
- package/dist/component/{sankeyDiagram-5OEKKPKP-xbJGp8Ms.js → sankeyDiagram-5OEKKPKP-Cp95M1aj.js} +2 -2
- package/dist/component/{sequenceDiagram-3UESZ5HK-Bnlm4mVO.js → sequenceDiagram-3UESZ5HK-C0x0WvhR.js} +4 -4
- package/dist/component/{stateDiagram-AJRCARHV-BIooqMYf.js → stateDiagram-AJRCARHV-H10vaGL3.js} +3 -3
- package/dist/component/{stateDiagram-v2-BHNVJYJU-C6WAOCCe.js → stateDiagram-v2-BHNVJYJU-rj7ljkc-.js} +3 -3
- package/dist/component/{timeline-definition-PNZ67QCA-lTe5jbcD.js → timeline-definition-PNZ67QCA-Cil1QaqZ.js} +3 -3
- package/dist/component/{vennDiagram-CIIHVFJN-5RYbksB1.js → vennDiagram-CIIHVFJN-Dk8PKmfb.js} +2 -2
- package/dist/component/{wardleyDiagram-YWT4CUSO-BSz_UDND.js → wardleyDiagram-YWT4CUSO-Xq5Hnmio.js} +3 -3
- package/dist/component/{xychartDiagram-2RQKCTM6-BmzhiB0a.js → xychartDiagram-2RQKCTM6-dinwR4Zm.js} +3 -3
- package/dist/components/embed/BetaBadge.d.ts +12 -0
- package/dist/components/embed/DisclaimerGate.d.ts +16 -0
- package/dist/components/embed/LegalShortDisclaimer.d.ts +11 -0
- package/dist/components/embed/LocalePills.d.ts +18 -0
- package/dist/components/embed/WelcomeIntro.d.ts +3 -1
- package/dist/embed/brand-marks.d.ts +5 -5
- package/dist/embed/copy.d.ts +13 -0
- package/dist/embed/legal-disclaimer.d.ts +23 -0
- package/dist/embed/presets.d.ts +5 -1
- package/dist/embed/task-schedule-store.d.ts +3 -13
- package/dist/embed/voice/call-active-marker.d.ts +1 -20
- package/dist/embed/voice/voice-token.d.ts +2 -12
- package/dist/stream/belong-chat-transport.d.ts +101 -587
- package/dist/stream/message-metadata.d.ts +6 -36
- package/dist/stream/stream-state-store.d.ts +1 -25
- package/package.json +1 -1
|
@@ -1,45 +1,15 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const belongMessageMetadataSchema: z.ZodObject<{
|
|
3
|
-
/** Producing task of an assistant turn — the reload-stable feedback key. */
|
|
4
3
|
taskId: z.ZodOptional<z.ZodString>;
|
|
5
|
-
/** The user's current 👍/👎 on that turn; `.nullish()` because the live
|
|
6
|
-
* `start` chunk stamps no vote yet while history returns `null` for
|
|
7
|
-
* "no vote" (requiring it would hide the thumbs on a fresh turn). */
|
|
8
4
|
feedback: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
9
|
-
sentiment: z.ZodEnum<
|
|
5
|
+
sentiment: z.ZodEnum<{
|
|
6
|
+
up: "up";
|
|
7
|
+
down: "down";
|
|
8
|
+
}>;
|
|
10
9
|
reason: z.ZodNullable<z.ZodString>;
|
|
11
|
-
},
|
|
12
|
-
reason: string | null;
|
|
13
|
-
sentiment: "up" | "down";
|
|
14
|
-
}, {
|
|
15
|
-
reason: string | null;
|
|
16
|
-
sentiment: "up" | "down";
|
|
17
|
-
}>>>;
|
|
18
|
-
/** Server row creation time (ISO) — per-bubble clock, history only (§41). */
|
|
10
|
+
}, z.core.$strip>>>;
|
|
19
11
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
20
|
-
/** Skill picked for this user message — renders the bubble's skill chip. */
|
|
21
12
|
skill: z.ZodOptional<z.ZodString>;
|
|
22
|
-
/** Set by `loadSessionHistory` on every restored message. Gates the
|
|
23
|
-
* dispatch renderers' auto-fire: absent (live/replayed turn) → fire once;
|
|
24
|
-
* true (restored history) → render settled, never re-dispatch. */
|
|
25
13
|
fromHistory: z.ZodOptional<z.ZodBoolean>;
|
|
26
|
-
},
|
|
27
|
-
createdAt?: string | undefined;
|
|
28
|
-
taskId?: string | undefined;
|
|
29
|
-
skill?: string | undefined;
|
|
30
|
-
feedback?: {
|
|
31
|
-
reason: string | null;
|
|
32
|
-
sentiment: "up" | "down";
|
|
33
|
-
} | null | undefined;
|
|
34
|
-
fromHistory?: boolean | undefined;
|
|
35
|
-
}, {
|
|
36
|
-
createdAt?: string | undefined;
|
|
37
|
-
taskId?: string | undefined;
|
|
38
|
-
skill?: string | undefined;
|
|
39
|
-
feedback?: {
|
|
40
|
-
reason: string | null;
|
|
41
|
-
sentiment: "up" | "down";
|
|
42
|
-
} | null | undefined;
|
|
43
|
-
fromHistory?: boolean | undefined;
|
|
44
|
-
}>;
|
|
14
|
+
}, z.core.$strip>;
|
|
45
15
|
export type BelongMessageMetadata = z.infer<typeof belongMessageMetadataSchema>;
|
|
@@ -1,34 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
declare const streamStateSchema: z.ZodObject<{
|
|
3
3
|
sessionId: z.ZodString;
|
|
4
|
-
/**
|
|
5
|
-
* Active run id, or null once the run reached a terminal state. The session
|
|
6
|
-
* pointer outlives the run: it survives on terminal so a reload can still
|
|
7
|
-
* restore this conversation's history — only the run cursor is dropped so we
|
|
8
|
-
* never reconnect to a finished run.
|
|
9
|
-
*/
|
|
10
4
|
runId: z.ZodNullable<z.ZodString>;
|
|
11
|
-
/** `<seq>-0` SSE cursor, or null when no event has been seen yet. */
|
|
12
5
|
lastEventId: z.ZodNullable<z.ZodString>;
|
|
13
|
-
/**
|
|
14
|
-
* Epoch ms of the last cursor write. Resume is only attempted for
|
|
15
|
-
* recently-touched runs (see {@link readResumableStreamState}). State
|
|
16
|
-
* written by an older SDK build has no `updatedAt`, fails this schema, and
|
|
17
|
-
* is treated as absent — which is exactly the "start fresh" behavior we
|
|
18
|
-
* want for stale leftovers from a previous visit.
|
|
19
|
-
*/
|
|
20
6
|
updatedAt: z.ZodNumber;
|
|
21
|
-
},
|
|
22
|
-
updatedAt: number;
|
|
23
|
-
sessionId: string;
|
|
24
|
-
runId: string | null;
|
|
25
|
-
lastEventId: string | null;
|
|
26
|
-
}, {
|
|
27
|
-
updatedAt: number;
|
|
28
|
-
sessionId: string;
|
|
29
|
-
runId: string | null;
|
|
30
|
-
lastEventId: string | null;
|
|
31
|
-
}>;
|
|
7
|
+
}, z.core.$strip>;
|
|
32
8
|
export type PersistedStreamState = z.infer<typeof streamStateSchema>;
|
|
33
9
|
/** Bump the foreground-mount generation. Call exactly once per ChatRoute
|
|
34
10
|
* remount (BelongDock's `chatMount.key` writers), synchronously alongside
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@belonguniverseai/react-sdk",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
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",
|