@belonguniverseai/react-sdk 0.6.34 → 0.6.36

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.
Files changed (117) hide show
  1. package/dist/api/account-connectors.d.ts +1 -1
  2. package/dist/api/agent-computer.d.ts +9 -0
  3. package/dist/api/client.d.ts +450 -85
  4. package/dist/api/connectors.d.ts +11 -0
  5. package/dist/api/goals.d.ts +4 -4
  6. package/dist/api/guide.d.ts +11 -4
  7. package/dist/api/proactive.d.ts +23 -0
  8. package/dist/api/query-keys.d.ts +19 -1
  9. package/dist/api/questions.d.ts +1 -1
  10. package/dist/api/quota-refusal.d.ts +1 -1
  11. package/dist/api/task-schedule-folders.d.ts +4 -4
  12. package/dist/api/task-schedule-projects.d.ts +7 -7
  13. package/dist/api/task-schedules.d.ts +101 -17
  14. package/dist/app/dock-story-data.d.ts +5 -5
  15. package/dist/component/{abnfDiagram-N423BO3Z-K52-wOfg.js → abnfDiagram-N423BO3Z-MW1sjWF3.js} +4 -4
  16. package/dist/component/{architectureDiagram-T3A2C74G-B64SrMLF.js → architectureDiagram-T3A2C74G-D4zEznoY.js} +6 -6
  17. package/dist/component/{blockDiagram-VBNYF7ZC-B7Di5R1s.js → blockDiagram-VBNYF7ZC-D2DFmlFt.js} +8 -8
  18. package/dist/component/{c4Diagram-5PPSVZJV-ClDtA2m4.js → c4Diagram-5PPSVZJV-DoWWto3C.js} +4 -4
  19. package/dist/component/{channel-C6_lLEWW.js → channel-CIsNkq5U.js} +2 -2
  20. package/dist/component/{chunk-2GRJ4B5K-B07moQal.js → chunk-2GRJ4B5K-CnMQg92_.js} +2 -2
  21. package/dist/component/{chunk-3NCLNEKW-TUF1Wrf6.js → chunk-3NCLNEKW-XZE2nq5d.js} +2 -2
  22. package/dist/component/{chunk-4I5QYGJK-qY-_sgVE.js → chunk-4I5QYGJK-C29IIa92.js} +2 -2
  23. package/dist/component/{chunk-5RXB4S5H-BU0H_zl3.js → chunk-5RXB4S5H-D8CsdioM.js} +6 -6
  24. package/dist/component/{chunk-6Q2QTUOP-nIHNEMhm.js → chunk-6Q2QTUOP-DC00GcIz.js} +3 -3
  25. package/dist/component/{chunk-7Z6QIM7H-D7mHGFzt.js → chunk-7Z6QIM7H-CZdOhSC_.js} +8 -8
  26. package/dist/component/{chunk-GF5L2VYU-uM1RliIa.js → chunk-GF5L2VYU-C0kC9EFc.js} +6 -6
  27. package/dist/component/{chunk-I66GZJ75-oDyTlx3R.js → chunk-I66GZJ75-CSlLT2qZ.js} +2 -2
  28. package/dist/component/{chunk-J7OUQ5F2-c7iD4Gpa.js → chunk-J7OUQ5F2-CvsOm6iD.js} +7 -7
  29. package/dist/component/{chunk-JQJVKLGR-JeqFPv2A.js → chunk-JQJVKLGR-BQqtcBTx.js} +8 -8
  30. package/dist/component/{chunk-KBJHAD2P-DjQd-FIs.js → chunk-KBJHAD2P-BhdypO-1.js} +2 -2
  31. package/dist/component/{chunk-NSK5VX7P-Bq0sOWgd.js → chunk-NSK5VX7P-B-NXFyTF.js} +2 -2
  32. package/dist/component/{chunk-QR6OTTB3-DctDLVWm.js → chunk-QR6OTTB3-CdOd5La0.js} +7 -7
  33. package/dist/component/{chunk-UBXNYLIW-Ka1R3omP.js → chunk-UBXNYLIW-C93te6n-.js} +3 -3
  34. package/dist/component/{chunk-W5SLKNZC-CI_OqVnD.js → chunk-W5SLKNZC-CeanpCwB.js} +2 -2
  35. package/dist/component/{chunk-WRU74C26-BMkh1mHN.js → chunk-WRU74C26-KDh3Ch4s.js} +4 -4
  36. package/dist/component/{classDiagram-JCYQIIEL-C1E0BQye.js → classDiagram-JCYQIIEL-CW1C-vZp.js} +13 -13
  37. package/dist/component/{classDiagram-v2-OCEON4UE-hQKKIbDF.js → classDiagram-v2-OCEON4UE-BsHRjtZz.js} +13 -13
  38. package/dist/component/{component-B44aZ-1Z.js → component-kD4tjup5.js} +20809 -18705
  39. package/dist/component/{cynefinDiagram-MW4NZA55-0yefvDKM.js → cynefinDiagram-MW4NZA55-CKE4kPxj.js} +4 -4
  40. package/dist/component/{dagre-VZM6K2ZE-CBlt7UUF.js → dagre-VZM6K2ZE-CxrlpA3T.js} +9 -9
  41. package/dist/component/{diagram-7IWD3JNH-D0zEzayZ.js → diagram-7IWD3JNH-BdXx0oAi.js} +5 -5
  42. package/dist/component/{diagram-B4RE2ZJO-Dm2FX5kh.js → diagram-B4RE2ZJO-N1vzbmbv.js} +3 -3
  43. package/dist/component/{diagram-LBJQPF4R-nQGWQGIp.js → diagram-LBJQPF4R-BdNgG1dp.js} +4 -4
  44. package/dist/component/{diagram-Q27KOJAE-Co-Dq4kd.js → diagram-Q27KOJAE-fEVWom6c.js} +6 -6
  45. package/dist/component/{diagram-UB23O5K3-ClWS8vTp.js → diagram-UB23O5K3-D3ddRmV-.js} +4 -4
  46. package/dist/component/{ebnfDiagram-BXEA7PRR-Cq6K_q0O.js → ebnfDiagram-BXEA7PRR-BIkX9XAm.js} +4 -4
  47. package/dist/component/{erDiagram-JOGREHBK-DvPI-BqP.js → erDiagram-JOGREHBK-G5VfRzQe.js} +12 -12
  48. package/dist/component/flowDiagram-UKHOOZJN-Dg8Abi8D.js +19 -0
  49. package/dist/component/{ganttDiagram-PKOTCBZU-DXzfT7Q5.js → ganttDiagram-PKOTCBZU-DFVPgVsX.js} +3 -3
  50. package/dist/component/{gitGraphDiagram-DS77QQ5N-CMKpJJJ_.js → gitGraphDiagram-DS77QQ5N-GPr8zrQa.js} +3 -3
  51. package/dist/component/index.js +2 -2
  52. package/dist/component/{infoDiagram-6WML65LV-Ck5rB_GF.js → infoDiagram-6WML65LV-C7cW9Pmn.js} +3 -3
  53. package/dist/component/{ishikawaDiagram-WSZJBQD7-CHQxwGjK.js → ishikawaDiagram-WSZJBQD7-C97lV7eR.js} +4 -4
  54. package/dist/component/{journeyDiagram-NVQOT4AX-CnPVgyHk.js → journeyDiagram-NVQOT4AX-DXvUjmFx.js} +3 -3
  55. package/dist/component/{kanban-definition-27J2QSJJ-CC8oOHrI.js → kanban-definition-27J2QSJJ-BilK0rhq.js} +9 -9
  56. package/dist/component/{line-AtEledwJ.js → line-DEbULRtQ.js} +2 -2
  57. package/dist/component/{mindmap-definition-FAOFIHXS-WWI6yyUJ.js → mindmap-definition-FAOFIHXS-DNrFtLr_.js} +11 -11
  58. package/dist/component/{pegDiagram-VL7TDLO6-D5NeC_IJ.js → pegDiagram-VL7TDLO6-jB_WWZvp.js} +4 -4
  59. package/dist/component/{pieDiagram-7S7Q4E2Y-M4MUAitH.js → pieDiagram-7S7Q4E2Y-DmztszhT.js} +4 -4
  60. package/dist/component/{quadrantDiagram-CIZ2JOQS-viErJFsV.js → quadrantDiagram-CIZ2JOQS-DHHhsaLJ.js} +2 -2
  61. package/dist/component/{railroadDiagram-AXF67PYL-C8IhZ-59.js → railroadDiagram-AXF67PYL-BiovbKaT.js} +4 -4
  62. package/dist/component/{requirementDiagram-LRYGKXZP-D1vdZzCs.js → requirementDiagram-LRYGKXZP-6xc4arWd.js} +11 -11
  63. package/dist/component/{sankeyDiagram-W5VNT64P-Bl52MqzW.js → sankeyDiagram-W5VNT64P-BEybtkf5.js} +2 -2
  64. package/dist/component/{sequenceDiagram-SI44F4Z6-Cx-Aio7P.js → sequenceDiagram-SI44F4Z6-DqDJ9hHB.js} +4 -4
  65. package/dist/component/{stateDiagram-OKZ733FA-CHqMp3xm.js → stateDiagram-OKZ733FA-BA3wN58t.js} +14 -14
  66. package/dist/component/{stateDiagram-v2-UEYNNEHI-DqTLHDUB.js → stateDiagram-v2-UEYNNEHI-B83V6gam.js} +13 -13
  67. package/dist/component/{swimlanes-SLNWSIFB-BkaXpBe5.js → swimlanes-SLNWSIFB-BbF2sVb0.js} +9 -9
  68. package/dist/component/{swimlanesDiagram-ULZ7WXOC-DyMFUKdr.js → swimlanesDiagram-ULZ7WXOC-C00S5fih.js} +13 -13
  69. package/dist/component/{timeline-definition-Z64GVDOM-Ba3A3s-L.js → timeline-definition-Z64GVDOM-GRQm4yUr.js} +4 -4
  70. package/dist/component/{vennDiagram-T6HMQDX7-4W_JJhIz.js → vennDiagram-T6HMQDX7-D824lwM6.js} +4 -4
  71. package/dist/component/{wardleyDiagram-T6FBY63Y-CllyyQYm.js → wardleyDiagram-T6FBY63Y-CXnuXYy5.js} +4 -4
  72. package/dist/component/{xychartDiagram-ELKLHX3M-DS3MPPul.js → xychartDiagram-ELKLHX3M-B_Y0TM5t.js} +7 -7
  73. package/dist/components/ai-elements/chat-link.d.ts +15 -0
  74. package/dist/components/connectors/ConnectorBrandLogo.d.ts +4 -0
  75. package/dist/components/embed/EmbedConversation.d.ts +4 -1
  76. package/dist/components/embed/EmbedSessions.d.ts +7 -0
  77. package/dist/components/embed/ProactiveChecksSetting.d.ts +2 -1
  78. package/dist/components/embed/QuestionCard.d.ts +5 -5
  79. package/dist/components/pinned/AgentComputerSheet.d.ts +5 -0
  80. package/dist/components/pinned/AgentMessageNote.d.ts +12 -0
  81. package/dist/components/pinned/PinnedChatHeader.d.ts +8 -2
  82. package/dist/components/pinned/SentByAgentTag.d.ts +1 -0
  83. package/dist/components/pinned/agent-computer-open-state.d.ts +9 -0
  84. package/dist/components/pinned/character/AgentCharacter.d.ts +8 -0
  85. package/dist/components/pinned/character/agent-character-art.d.ts +12 -0
  86. package/dist/components/pinned/personal-agent.d.ts +43 -0
  87. package/dist/components/pinned/profile/AgentProfileSheet.d.ts +14 -0
  88. package/dist/components/pinned/profile/ProfileAboutTab.d.ts +4 -0
  89. package/dist/components/pinned/profile/ProfileActivityTab.d.ts +11 -0
  90. package/dist/components/pinned/profile/ProfileSourcesTab.d.ts +16 -0
  91. package/dist/components/pinned/profile/profile-activity.d.ts +52 -0
  92. package/dist/components/scheduled/ScheduleFolderDialogs.d.ts +14 -0
  93. package/dist/components/scheduled/ScheduleFolderTree.d.ts +2 -1
  94. package/dist/components/scheduled/ScheduledListSurface.d.ts +7 -0
  95. package/dist/components/ui/dialog.d.ts +2 -1
  96. package/dist/embed/issue-report-bus.d.ts +2 -0
  97. package/dist/embed/pinned-chat.d.ts +19 -1
  98. package/dist/embed/screen-capture.d.ts +1 -2
  99. package/dist/i18n/messages/en.d.ts +104 -2
  100. package/dist/i18n/messages/surfaces/connectors.d.ts +8 -0
  101. package/dist/i18n/messages/surfaces/embedMisc.d.ts +4 -0
  102. package/dist/i18n/messages/surfaces/feedback.d.ts +12 -0
  103. package/dist/i18n/messages/surfaces/pinned.d.ts +292 -4
  104. package/dist/i18n/messages/surfaces/scheduled.d.ts +76 -0
  105. package/dist/i18n/messages/surfaces/sessions.d.ts +4 -0
  106. package/dist/i18n/messages/surfaces/settings.d.ts +16 -0
  107. package/dist/i18n/messages/surfaces/stream.d.ts +1 -1
  108. package/dist/routes/chat/question-parts.d.ts +9 -12
  109. package/dist/routes/chat/queued-messages.d.ts +1 -0
  110. package/dist/routes/chat/session-api.d.ts +1 -1
  111. package/dist/routes/chat/use-next-step-suggestion.d.ts +4 -0
  112. package/dist/stream/belong-chat-transport.d.ts +14 -13
  113. package/dist/stream/belong-data-parts.d.ts +5 -0
  114. package/dist/stream/message-metadata.d.ts +57 -0
  115. package/dist/stream/pending-question-store.d.ts +7 -3
  116. package/package.json +1 -1
  117. package/dist/component/flowDiagram-UKHOOZJN-2MBQiA4G.js +0 -19
@@ -14,6 +14,10 @@ export type UseNextStepSuggestionInput = {
14
14
  readonly draftEmpty: boolean;
15
15
  /** False when this tab cannot act on the session (follower tab, read-only run). */
16
16
  readonly enabled: boolean;
17
+ /** The last turn, if the agent started it and the cloud says so. */
18
+ readonly agentTurnId?: string | null;
19
+ /** The last turn isn't an answer to the user, whether or not it has an id yet. */
20
+ readonly agentWroteLast?: boolean;
17
21
  };
18
22
  export type UseNextStepSuggestion = {
19
23
  readonly suggestion: NextStepSuggestion | null;
@@ -23,8 +23,8 @@ export declare const choiceAnswerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
23
23
  kind: z.ZodLiteral<"skipped">;
24
24
  }, z.core.$strip>], "kind">;
25
25
  export declare const choiceStateSchema: z.ZodEnum<{
26
- cancelled: "cancelled";
27
26
  pending: "pending";
27
+ cancelled: "cancelled";
28
28
  dismissed: "dismissed";
29
29
  answered: "answered";
30
30
  detached: "detached";
@@ -65,9 +65,9 @@ export declare const wireStreamPartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
65
65
  title: z.ZodString;
66
66
  kind: z.ZodString;
67
67
  status: z.ZodOptional<z.ZodEnum<{
68
- failed: "failed";
69
- completed: "completed";
70
68
  pending: "pending";
69
+ completed: "completed";
70
+ failed: "failed";
71
71
  in_progress: "in_progress";
72
72
  }>>;
73
73
  }, z.core.$strip>>;
@@ -92,8 +92,8 @@ export declare const wireStreamPartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
92
92
  label: z.ZodString;
93
93
  value: z.ZodString;
94
94
  emphasis: z.ZodOptional<z.ZodEnum<{
95
- normal: "normal";
96
95
  warning: "warning";
96
+ normal: "normal";
97
97
  }>>;
98
98
  }, z.core.$strip>>;
99
99
  body: z.ZodNullable<z.ZodObject<{
@@ -110,8 +110,8 @@ export declare const wireStreamPartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
110
110
  data: z.ZodObject<{
111
111
  toolName: z.ZodString;
112
112
  state: z.ZodEnum<{
113
- failed: "failed";
114
113
  completed: "completed";
114
+ failed: "failed";
115
115
  started: "started";
116
116
  }>;
117
117
  input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -134,8 +134,8 @@ export declare const wireStreamPartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
134
134
  name: z.ZodString;
135
135
  description: z.ZodString;
136
136
  state: z.ZodEnum<{
137
- failed: "failed";
138
137
  running: "running";
138
+ failed: "failed";
139
139
  finished: "finished";
140
140
  }>;
141
141
  stepsUsed: z.ZodOptional<z.ZodNumber>;
@@ -164,8 +164,8 @@ export declare const wireStreamPartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
164
164
  data: z.ZodObject<{
165
165
  state: z.ZodEnum<{
166
166
  output: "output";
167
- failed: "failed";
168
167
  completed: "completed";
168
+ failed: "failed";
169
169
  started: "started";
170
170
  }>;
171
171
  stream: z.ZodOptional<z.ZodEnum<{
@@ -185,8 +185,8 @@ export declare const wireStreamPartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
185
185
  uiActionRequestId: z.ZodString;
186
186
  actionName: z.ZodString;
187
187
  state: z.ZodEnum<{
188
- failed: "failed";
189
188
  completed: "completed";
189
+ failed: "failed";
190
190
  requested: "requested";
191
191
  }>;
192
192
  args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -230,8 +230,8 @@ export declare const wireStreamPartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
230
230
  id: z.ZodString;
231
231
  data: z.ZodObject<{
232
232
  status: z.ZodEnum<{
233
- failed: "failed";
234
233
  completed: "completed";
234
+ failed: "failed";
235
235
  cancelled: "cancelled";
236
236
  continuing: "continuing";
237
237
  throttled: "throttled";
@@ -273,8 +273,8 @@ export declare const wireStreamPartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
273
273
  data: z.ZodObject<{
274
274
  questionRequestId: z.ZodString;
275
275
  state: z.ZodEnum<{
276
- cancelled: "cancelled";
277
276
  pending: "pending";
277
+ cancelled: "cancelled";
278
278
  dismissed: "dismissed";
279
279
  answered: "answered";
280
280
  detached: "detached";
@@ -301,6 +301,7 @@ export declare const wireStreamPartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
301
301
  kind: z.ZodLiteral<"skipped">;
302
302
  }, z.core.$strip>], "kind">>>;
303
303
  reply: z.ZodOptional<z.ZodString>;
304
+ answerMessageId: z.ZodOptional<z.ZodString>;
304
305
  }, z.core.$strip>;
305
306
  }, z.core.$strip>, z.ZodObject<{
306
307
  type: z.ZodLiteral<"data-goal">;
@@ -308,10 +309,10 @@ export declare const wireStreamPartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
308
309
  data: z.ZodObject<{
309
310
  goalId: z.ZodString;
310
311
  status: z.ZodEnum<{
311
- waiting_for_approval: "waiting_for_approval";
312
312
  active: "active";
313
313
  paused: "paused";
314
314
  blocked: "blocked";
315
+ waiting_for_approval: "waiting_for_approval";
315
316
  clarifying: "clarifying";
316
317
  completion_claimed: "completion_claimed";
317
318
  deferred: "deferred";
@@ -353,10 +354,10 @@ export declare const wireStreamPartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
353
354
  kind: z.ZodString;
354
355
  actor: z.ZodString;
355
356
  toStatus: z.ZodNullable<z.ZodEnum<{
356
- waiting_for_approval: "waiting_for_approval";
357
357
  active: "active";
358
358
  paused: "paused";
359
359
  blocked: "blocked";
360
+ waiting_for_approval: "waiting_for_approval";
360
361
  clarifying: "clarifying";
361
362
  completion_claimed: "completion_claimed";
362
363
  deferred: "deferred";
@@ -394,8 +395,8 @@ export declare const wireStreamPartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
394
395
  data: z.ZodObject<{
395
396
  kind: z.ZodLiteral<"quota_exceeded">;
396
397
  reason: z.ZodCatch<z.ZodOptional<z.ZodEnum<{
397
- exhausted: "exhausted";
398
398
  blocked: "blocked";
399
+ exhausted: "exhausted";
399
400
  }>>>;
400
401
  productName: z.ZodCatch<z.ZodOptional<z.ZodString>>;
401
402
  resetsAt: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -116,6 +116,11 @@ export type ChoiceRequestData = {
116
116
  readonly answers?: Readonly<Record<string, ChoiceAnswer>> | undefined;
117
117
  /** The composer text when the user replied in chat instead of choosing. */
118
118
  readonly reply?: string | undefined;
119
+ /**
120
+ * The message the answer travelled as, when the running turn read it at its
121
+ * next step (steering). Its "Queued" chip goes: the card shows the answer.
122
+ */
123
+ readonly answerMessageId?: string | undefined;
119
124
  };
120
125
  /**
121
126
  * Optional fields declared with explicit `| undefined` so Zod's
@@ -1,4 +1,33 @@
1
1
  import { z } from 'zod';
2
+ /** Mirrors belong-cloud's `ProactiveTurnNote` (`proactive-turn-note.ts`). */
3
+ declare const proactiveTurnNoteSchema: z.ZodObject<{
4
+ tag: z.ZodEnum<{
5
+ needs_you: "needs_you";
6
+ heads_up: "heads_up";
7
+ done_on_my_own: "done_on_my_own";
8
+ }>;
9
+ source: z.ZodNullable<z.ZodObject<{
10
+ origin: z.ZodDiscriminatedUnion<[z.ZodObject<{
11
+ kind: z.ZodLiteral<"scheduled_task">;
12
+ }, z.core.$strip>, z.ZodObject<{
13
+ kind: z.ZodLiteral<"simetrik">;
14
+ }, z.core.$strip>, z.ZodObject<{
15
+ kind: z.ZodLiteral<"app">;
16
+ app: z.ZodEnum<{
17
+ gmail: "gmail";
18
+ slack: "slack";
19
+ calendar: "calendar";
20
+ }>;
21
+ place: z.ZodNullable<z.ZodString>;
22
+ }, z.core.$strip>, z.ZodObject<{
23
+ kind: z.ZodLiteral<"connector">;
24
+ name: z.ZodString;
25
+ }, z.core.$strip>], "kind">;
26
+ moreCount: z.ZodNumber;
27
+ }, z.core.$strip>>;
28
+ }, z.core.$strip>;
29
+ export type ProactiveTurnNote = z.infer<typeof proactiveTurnNoteSchema>;
30
+ export type ProactiveTurnSource = NonNullable<ProactiveTurnNote["source"]>;
2
31
  export declare const belongMessageMetadataSchema: z.ZodObject<{
3
32
  taskId: z.ZodOptional<z.ZodString>;
4
33
  feedback: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -12,5 +41,33 @@ export declare const belongMessageMetadataSchema: z.ZodObject<{
12
41
  skill: z.ZodOptional<z.ZodString>;
13
42
  fromHistory: z.ZodOptional<z.ZodBoolean>;
14
43
  clientMessageId: z.ZodOptional<z.ZodString>;
44
+ proactive: z.ZodCatch<z.ZodOptional<z.ZodObject<{
45
+ tag: z.ZodEnum<{
46
+ needs_you: "needs_you";
47
+ heads_up: "heads_up";
48
+ done_on_my_own: "done_on_my_own";
49
+ }>;
50
+ source: z.ZodNullable<z.ZodObject<{
51
+ origin: z.ZodDiscriminatedUnion<[z.ZodObject<{
52
+ kind: z.ZodLiteral<"scheduled_task">;
53
+ }, z.core.$strip>, z.ZodObject<{
54
+ kind: z.ZodLiteral<"simetrik">;
55
+ }, z.core.$strip>, z.ZodObject<{
56
+ kind: z.ZodLiteral<"app">;
57
+ app: z.ZodEnum<{
58
+ gmail: "gmail";
59
+ slack: "slack";
60
+ calendar: "calendar";
61
+ }>;
62
+ place: z.ZodNullable<z.ZodString>;
63
+ }, z.core.$strip>, z.ZodObject<{
64
+ kind: z.ZodLiteral<"connector">;
65
+ name: z.ZodString;
66
+ }, z.core.$strip>], "kind">;
67
+ moreCount: z.ZodNumber;
68
+ }, z.core.$strip>>;
69
+ }, z.core.$strip>>>;
70
+ sentBy: z.ZodOptional<z.ZodLiteral<"personal_agent">>;
15
71
  }, z.core.$strip>;
16
72
  export type BelongMessageMetadata = z.infer<typeof belongMessageMetadataSchema>;
73
+ export {};
@@ -1,7 +1,11 @@
1
1
  import { BelongUIMessage, ChoiceRequestData } from './belong-data-parts.ts';
2
2
  /** Snapshot — identity is stable until the set changes (useSyncExternalStore). */
3
3
  export declare const peekHiddenQuestions: () => ReadonlySet<string>;
4
- export declare const subscribeHiddenQuestions: (listener: () => void) => (() => void);
4
+ /** Snapshot — identity is stable until an answer settles a card. */
5
+ export declare const peekSettledQuestions: () => ReadonlyMap<string, ChoiceRequestData>;
6
+ /** The card as the server says it now reads: this tab's answer, or the 409's row of record. */
7
+ export declare const settleQuestion: (resolved: ChoiceRequestData) => void;
8
+ export declare const subscribeQuestionCards: (listener: () => void) => (() => void);
5
9
  export declare const isQuestionHidden: (questionRequestId: string) => boolean;
6
10
  export declare const hideQuestion: (questionRequestId: string) => void;
7
11
  export declare const unhideQuestion: (questionRequestId: string) => void;
@@ -17,6 +21,6 @@ export declare const __resetPendingQuestionStoreForTest: () => void;
17
21
  * The LAST occurrence of each question id wins before "newest" is decided: a
18
22
  * restored history part and a resumed stream's re-emit of the same question
19
23
  * (§40 re-attach) can sit in different messages, and only the later one
20
- * carries the current state.
24
+ * carries the current state, unless this tab has settled it since.
21
25
  */
22
- export declare const selectActiveQuestion: (messages: readonly BelongUIMessage[], hiddenIds: ReadonlySet<string>) => ChoiceRequestData | null;
26
+ export declare const selectActiveQuestion: (messages: readonly BelongUIMessage[], hiddenIds: ReadonlySet<string>, settledById?: ReadonlyMap<string, ChoiceRequestData>) => ChoiceRequestData | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@belonguniverseai/react-sdk",
3
- "version": "0.6.34",
3
+ "version": "0.6.36",
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",
@@ -1,19 +0,0 @@
1
- globalThis.process = globalThis.process || { env: {} }, globalThis.global = globalThis.global || globalThis;
2
- import "./chunk-Y2CYZVJY-CiUSrfaV.js";
3
- import "./src-CKo8cHWB.js";
4
- import "./chunk-I66GZJ75-oDyTlx3R.js";
5
- import "./chunk-NSK5VX7P-Bq0sOWgd.js";
6
- import "./chunk-ZIRB5QZD-DmX0SXRC.js";
7
- import "./chunk-W5SLKNZC-CI_OqVnD.js";
8
- import "./chunk-UBXNYLIW-Ka1R3omP.js";
9
- import "./chunk-4I5QYGJK-qY-_sgVE.js";
10
- import "./chunk-WRU74C26-BMkh1mHN.js";
11
- import "./chunk-QR6OTTB3-DctDLVWm.js";
12
- import "./chunk-7BUUIJ7U-DJJ8ycYS.js";
13
- import "./chunk-7Z6QIM7H-D7mHGFzt.js";
14
- import "./chunk-J7OUQ5F2-c7iD4Gpa.js";
15
- import "./chunk-5VM5RSS4-BuOiQaWo.js";
16
- import "./chunk-2GRJ4B5K-B07moQal.js";
17
- import "./chunk-XXDRQBXY-BP7ld7ls.js";
18
- import "./chunk-KBJHAD2P-DjQd-FIs.js";
19
- export { n as diagram } from "./chunk-JQJVKLGR-JeqFPv2A.js";