@iota-uz/sdk 0.19.0 → 0.21.0

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 (347) hide show
  1. package/dist/chat-ui/PHOSPHOR-LICENSE +21 -0
  2. package/dist/chat-ui/animations/index.d.ts +4 -0
  3. package/dist/chat-ui/animations/variants.d.ts +322 -0
  4. package/dist/chat-ui/api/csrf.d.ts +20 -0
  5. package/dist/chat-ui/components/ActivityTrace.d.ts +12 -0
  6. package/dist/chat-ui/components/Alert.d.ts +13 -0
  7. package/dist/chat-ui/components/AllChatsList.d.ts +9 -0
  8. package/dist/chat-ui/components/ArchiveBanner.d.ts +9 -0
  9. package/dist/chat-ui/components/ArchivedChatList.d.ts +12 -0
  10. package/dist/chat-ui/components/AssistantMessage.d.ts +149 -0
  11. package/dist/chat-ui/components/AssistantTurnView.d.ts +25 -0
  12. package/dist/chat-ui/components/AttachmentGrid.d.ts +19 -0
  13. package/dist/chat-ui/components/AttachmentPreview.d.ts +14 -0
  14. package/dist/chat-ui/components/AttachmentUpload.d.ts +14 -0
  15. package/dist/chat-ui/components/AvatarStack.d.ts +21 -0
  16. package/dist/chat-ui/components/BiChatLayout.d.ts +19 -0
  17. package/dist/chat-ui/components/ChartCard.d.ts +17 -0
  18. package/dist/chat-ui/components/ChatHeader.d.ts +31 -0
  19. package/dist/chat-ui/components/ChatSession.d.ts +51 -0
  20. package/dist/chat-ui/components/CodeBlock.d.ts +26 -0
  21. package/dist/chat-ui/components/CodeOutputsPanel.d.ts +8 -0
  22. package/dist/chat-ui/components/CompactionDoodle.d.ts +7 -0
  23. package/dist/chat-ui/components/ConfirmModal.d.ts +23 -0
  24. package/dist/chat-ui/components/ConfirmationStep.d.ts +13 -0
  25. package/dist/chat-ui/components/DataTableCell.d.ts +11 -0
  26. package/dist/chat-ui/components/DataTableFooter.d.ts +9 -0
  27. package/dist/chat-ui/components/DataTableHeader.d.ts +15 -0
  28. package/dist/chat-ui/components/DataTableToolbar.d.ts +17 -0
  29. package/dist/chat-ui/components/DateGroupHeader.d.ts +11 -0
  30. package/dist/chat-ui/components/DateSeparator.d.ts +6 -0
  31. package/dist/chat-ui/components/DebugPanel.d.ts +7 -0
  32. package/dist/chat-ui/components/DownloadCard.d.ts +7 -0
  33. package/dist/chat-ui/components/EditableText.d.ts +30 -0
  34. package/dist/chat-ui/components/EmptyState.d.ts +19 -0
  35. package/dist/chat-ui/components/ErrorBoundary.d.ts +23 -0
  36. package/dist/chat-ui/components/FullscreenOverlay.d.ts +9 -0
  37. package/dist/chat-ui/components/ImageModal.d.ts +13 -0
  38. package/dist/chat-ui/components/InlineDialog.d.ts +16 -0
  39. package/dist/chat-ui/components/InlineQuestionForm.d.ts +7 -0
  40. package/dist/chat-ui/components/InteractiveTableCard.d.ts +18 -0
  41. package/dist/chat-ui/components/LoadingSpinner.d.ts +11 -0
  42. package/dist/chat-ui/components/MarkdownRenderer.d.ts +13 -0
  43. package/dist/chat-ui/components/Menu.d.ts +29 -0
  44. package/dist/chat-ui/components/MessageActions.d.ts +17 -0
  45. package/dist/chat-ui/components/MessageInput.d.ts +39 -0
  46. package/dist/chat-ui/components/MessageList.d.ts +12 -0
  47. package/dist/chat-ui/components/MessageQueueList.d.ts +9 -0
  48. package/dist/chat-ui/components/ModelSelector.d.ts +2 -0
  49. package/dist/chat-ui/components/PermissionGuard.d.ts +47 -0
  50. package/dist/chat-ui/components/QuestionForm.d.ts +10 -0
  51. package/dist/chat-ui/components/QuestionStep.d.ts +15 -0
  52. package/dist/chat-ui/components/RetryActionArea.d.ts +7 -0
  53. package/dist/chat-ui/components/ScreenReaderAnnouncer.d.ts +22 -0
  54. package/dist/chat-ui/components/ScrollToBottomButton.d.ts +12 -0
  55. package/dist/chat-ui/components/SearchInput.d.ts +27 -0
  56. package/dist/chat-ui/components/SessionArtifactList.d.ts +9 -0
  57. package/dist/chat-ui/components/SessionArtifactPreview.d.ts +7 -0
  58. package/dist/chat-ui/components/SessionArtifactPreviewModal.d.ts +13 -0
  59. package/dist/chat-ui/components/SessionArtifactsPanel.d.ts +13 -0
  60. package/dist/chat-ui/components/SessionItem.d.ts +18 -0
  61. package/dist/chat-ui/components/SessionMembersModal.d.ts +10 -0
  62. package/dist/chat-ui/components/SessionSkeleton.d.ts +6 -0
  63. package/dist/chat-ui/components/Sidebar.d.ts +22 -0
  64. package/dist/chat-ui/components/Skeleton.d.ts +63 -0
  65. package/dist/chat-ui/components/SkipLink.d.ts +2 -0
  66. package/dist/chat-ui/components/SourcesPanel.d.ts +7 -0
  67. package/dist/chat-ui/components/StreamError.d.ts +15 -0
  68. package/dist/chat-ui/components/StreamingCursor.d.ts +4 -0
  69. package/dist/chat-ui/components/SystemMessage.d.ts +10 -0
  70. package/dist/chat-ui/components/TabBar.d.ts +15 -0
  71. package/dist/chat-ui/components/TabbedChartGroup.d.ts +6 -0
  72. package/dist/chat-ui/components/TabbedTableGroup.d.ts +8 -0
  73. package/dist/chat-ui/components/TableExportButton.d.ts +13 -0
  74. package/dist/chat-ui/components/TableWithExport.d.ts +15 -0
  75. package/dist/chat-ui/components/Toast.d.ts +15 -0
  76. package/dist/chat-ui/components/ToastContainer.d.ts +10 -0
  77. package/dist/chat-ui/components/TouchContextMenu.d.ts +18 -0
  78. package/dist/chat-ui/components/Transition.d.ts +11 -0
  79. package/dist/chat-ui/components/TurnBubble.d.ts +51 -0
  80. package/dist/chat-ui/components/TypingIndicator.d.ts +13 -0
  81. package/dist/chat-ui/components/UserAvatar.d.ts +21 -0
  82. package/dist/chat-ui/components/UserFilter.d.ts +12 -0
  83. package/dist/chat-ui/components/UserMessage.d.ts +86 -0
  84. package/dist/chat-ui/components/UserTurnView.d.ts +25 -0
  85. package/dist/chat-ui/components/WelcomeContent.d.ts +17 -0
  86. package/dist/chat-ui/config/ConfigContext.d.ts +61 -0
  87. package/dist/chat-ui/context/ChatContext.d.ts +42 -0
  88. package/dist/chat-ui/context/IotaContext.d.ts +21 -0
  89. package/dist/chat-ui/context/chatHelpers.d.ts +18 -0
  90. package/dist/chat-ui/context/externalSnapshot.d.ts +4 -0
  91. package/dist/chat-ui/data/ArtifactManager.d.ts +23 -0
  92. package/dist/chat-ui/data/AttachmentUploader.d.ts +25 -0
  93. package/dist/chat-ui/data/HttpDataSource.d.ts +109 -0
  94. package/dist/chat-ui/data/ManagedHttpDataSource.d.ts +26 -0
  95. package/dist/chat-ui/data/MessageTransport.d.ts +88 -0
  96. package/dist/chat-ui/data/SessionManager.d.ts +52 -0
  97. package/dist/chat-ui/data/applet-rpc.d.ts +29 -0
  98. package/dist/chat-ui/data/mappers.d.ts +33 -0
  99. package/dist/chat-ui/data/openManagedEventSource.d.ts +54 -0
  100. package/dist/chat-ui/data/rpc.generated.d.ts +421 -0
  101. package/dist/chat-ui/hooks/createHorizontalSwipe.d.ts +27 -0
  102. package/dist/chat-ui/hooks/createReducedMotion.d.ts +1 -0
  103. package/dist/chat-ui/hooks/useActiveRuns.d.ts +47 -0
  104. package/dist/chat-ui/hooks/useAttachments.d.ts +80 -0
  105. package/dist/chat-ui/hooks/useAutoScroll.d.ts +51 -0
  106. package/dist/chat-ui/hooks/useBichatRouter.d.ts +40 -0
  107. package/dist/chat-ui/hooks/useBranding.d.ts +16 -0
  108. package/dist/chat-ui/hooks/useDataTable.d.ts +54 -0
  109. package/dist/chat-ui/hooks/useFocusTrap.d.ts +17 -0
  110. package/dist/chat-ui/hooks/useHttpDataSourceConfigFromApplet.d.ts +19 -0
  111. package/dist/chat-ui/hooks/useImageGallery.d.ts +67 -0
  112. package/dist/chat-ui/hooks/useKeyboardShortcuts.d.ts +23 -0
  113. package/dist/chat-ui/hooks/useLongPress.d.ts +22 -0
  114. package/dist/chat-ui/hooks/useMarkdownCopy.d.ts +46 -0
  115. package/dist/chat-ui/hooks/useMessageActions.d.ts +53 -0
  116. package/dist/chat-ui/hooks/useMessageListScroll.d.ts +22 -0
  117. package/dist/chat-ui/hooks/useModalLock.d.ts +1 -0
  118. package/dist/chat-ui/hooks/useScrollToBottom.d.ts +22 -0
  119. package/dist/chat-ui/hooks/useSidebarState.d.ts +8 -0
  120. package/dist/chat-ui/hooks/useToast.d.ts +43 -0
  121. package/dist/chat-ui/hooks/useTranslation.d.ts +4 -0
  122. package/dist/chat-ui/icons/index.d.ts +93 -0
  123. package/dist/chat-ui/icons.js +975 -0
  124. package/dist/chat-ui/index.d.ts +122 -0
  125. package/dist/chat-ui/index.js +51821 -0
  126. package/dist/chat-ui/machine/ChatMachine.d.ts +191 -0
  127. package/dist/chat-ui/machine/hitlLifecycle.d.ts +7 -0
  128. package/dist/chat-ui/machine/index.d.ts +2 -0
  129. package/dist/chat-ui/machine/selectors.d.ts +5 -0
  130. package/dist/chat-ui/machine/types.d.ts +127 -0
  131. package/dist/chat-ui/styles.css +1 -0
  132. package/dist/chat-ui/theme/themes.d.ts +6 -0
  133. package/dist/chat-ui/theme/types.d.ts +38 -0
  134. package/dist/chat-ui/types/applet/index.d.ts +82 -0
  135. package/dist/chat-ui/types/data-source.d.ts +81 -0
  136. package/dist/chat-ui/types/index.d.ts +719 -0
  137. package/dist/chat-ui/types/iota.d.ts +76 -0
  138. package/dist/chat-ui/utils/RateLimiter.d.ts +28 -0
  139. package/dist/chat-ui/utils/activitySteps.d.ts +15 -0
  140. package/dist/chat-ui/utils/artifactHelpers.d.ts +7 -0
  141. package/dist/chat-ui/utils/assistantTurnState.d.ts +4 -0
  142. package/dist/chat-ui/utils/chartSpec.d.ts +15 -0
  143. package/dist/chat-ui/utils/citationProcessor.d.ts +38 -0
  144. package/dist/chat-ui/utils/columnTypes.d.ts +9 -0
  145. package/dist/chat-ui/utils/cssLength.d.ts +1 -0
  146. package/dist/chat-ui/utils/dateFormatting.d.ts +13 -0
  147. package/dist/chat-ui/utils/debugMetrics.d.ts +5 -0
  148. package/dist/chat-ui/utils/debugModeStorage.d.ts +2 -0
  149. package/dist/chat-ui/utils/debugTrace.d.ts +4 -0
  150. package/dist/chat-ui/utils/errorDisplay.d.ts +23 -0
  151. package/dist/chat-ui/utils/eventNames.d.ts +27 -0
  152. package/dist/chat-ui/utils/fileUtils.d.ts +48 -0
  153. package/dist/chat-ui/utils/markdownMath.d.ts +9 -0
  154. package/dist/chat-ui/utils/markdownStream.d.ts +8 -0
  155. package/dist/chat-ui/utils/questionFormUtils.d.ts +18 -0
  156. package/dist/chat-ui/utils/queueStorage.d.ts +4 -0
  157. package/dist/chat-ui/utils/reasoningEffortStorage.d.ts +3 -0
  158. package/dist/chat-ui/utils/sessionGrouping.d.ts +7 -0
  159. package/dist/chat-ui/utils/sseParser.d.ts +34 -0
  160. package/dist/chat-ui/utils/tableSpec.d.ts +6 -0
  161. package/dist/chat-ui/utils/textBlocks.d.ts +43 -0
  162. package/dist/chat-ui/utils/toolLabels.d.ts +17 -0
  163. package/dist/client-host/{applet.d.ts → bichat-config.d.ts} +2 -16
  164. package/dist/client-host/bichat-config.d.ts.map +1 -0
  165. package/dist/client-host/{applet.js → bichat-config.js} +0 -8
  166. package/dist/client-host/identity.d.ts +4 -4
  167. package/dist/client-host/identity.js +2 -2
  168. package/dist/client-host/index.d.ts +7 -4
  169. package/dist/client-host/index.d.ts.map +1 -1
  170. package/dist/client-host/index.js +7 -4
  171. package/dist/client-host/solid-index.d.ts +1 -0
  172. package/dist/client-host/solid-index.d.ts.map +1 -1
  173. package/dist/client-host/solid-index.js +1 -0
  174. package/dist/client-host/solid-streaming.d.ts.map +1 -1
  175. package/dist/lens/CascadePanel-BXaSLD9I.js +700 -0
  176. package/dist/lens/ChartDataEquivalent-Uo4RCCqz.js +92 -0
  177. package/dist/lens/ChartPanel-BYIblvtO.js +981 -0
  178. package/dist/lens/CoveragePanel-CBxW7l_N.js +195 -0
  179. package/dist/lens/DashboardPanels.d.ts +4 -1
  180. package/dist/lens/DashboardPanels.d.ts.map +1 -1
  181. package/dist/lens/GaugePanel-Gm3y4QBi.js +39 -0
  182. package/dist/lens/LensDashboard.d.ts +7 -2
  183. package/dist/lens/LensDashboard.d.ts.map +1 -1
  184. package/dist/lens/MapPanel-Fr67rBRo.js +256 -0
  185. package/dist/lens/MetricFlowPanel-DFGBh3hI.js +135 -0
  186. package/dist/lens/MetricHierarchyPanel-DKiQ8e3m.js +121 -0
  187. package/dist/lens/MetricRelationshipPanel-YC3Cg9Id.js +120 -0
  188. package/dist/lens/PrintReport-BPI_jNyw.js +1876 -0
  189. package/dist/lens/TablePanel-Bh8dWK4d.js +946 -0
  190. package/dist/lens/{adapter-BwEwcw2W.js → adapter-DIzUDxuh.js} +384 -384
  191. package/dist/lens/contract/schemas.d.ts.map +1 -1
  192. package/dist/lens/contract/types.d.ts +1 -1
  193. package/dist/lens/contract/types.d.ts.map +1 -1
  194. package/dist/lens/controls/Calendar.d.ts +1 -1
  195. package/dist/lens/controls/Calendar.d.ts.map +1 -1
  196. package/dist/lens/controls/CompareFilterControl.d.ts +2 -2
  197. package/dist/lens/controls/CompareFilterControl.d.ts.map +1 -1
  198. package/dist/lens/controls/FacetFilterMenu.d.ts +2 -2
  199. package/dist/lens/controls/FacetFilterMenu.d.ts.map +1 -1
  200. package/dist/lens/controls/FilterBar.d.ts +3 -3
  201. package/dist/lens/controls/FilterBar.d.ts.map +1 -1
  202. package/dist/lens/controls/PeriodFilterControl.d.ts +2 -1
  203. package/dist/lens/controls/PeriodFilterControl.d.ts.map +1 -1
  204. package/dist/lens/controls/SegmentedFilterControl.d.ts +2 -2
  205. package/dist/lens/controls/SegmentedFilterControl.d.ts.map +1 -1
  206. package/dist/lens/controls/facetOptions.d.ts +5 -5
  207. package/dist/lens/controls/facetOptions.d.ts.map +1 -1
  208. package/dist/lens/element.d.ts +1 -1
  209. package/dist/lens/element.d.ts.map +1 -1
  210. package/dist/lens/explore/ContextMiniChart.d.ts +2 -1
  211. package/dist/lens/explore/ContextMiniChart.d.ts.map +1 -1
  212. package/dist/lens/explore/DrillOverlay.d.ts +2 -1
  213. package/dist/lens/explore/DrillOverlay.d.ts.map +1 -1
  214. package/dist/lens/explore/ExplorePanel.d.ts +2 -1
  215. package/dist/lens/explore/ExplorePanel.d.ts.map +1 -1
  216. package/dist/lens/explore/FocusContextHeader.d.ts +2 -1
  217. package/dist/lens/explore/FocusContextHeader.d.ts.map +1 -1
  218. package/dist/lens/explore/LensSelector.d.ts +2 -1
  219. package/dist/lens/explore/LensSelector.d.ts.map +1 -1
  220. package/dist/lens/explore/SourceDataDisclosure.d.ts +3 -3
  221. package/dist/lens/explore/SourceDataDisclosure.d.ts.map +1 -1
  222. package/dist/lens/icons.d.ts +36 -35
  223. package/dist/lens/icons.d.ts.map +1 -1
  224. package/dist/lens/{index-B6anZ5Pr.js → index-2qUA4koZ.js} +1 -1
  225. package/dist/lens/index-DW4iQi93.js +13171 -0
  226. package/dist/lens/index.d.ts +3 -1
  227. package/dist/lens/index.d.ts.map +1 -1
  228. package/dist/lens/index.js +14 -9
  229. package/dist/lens/{install-D5OiGDnd.js → install-C-b2Bm4Y.js} +1 -1
  230. package/dist/lens/{install-CsNOaFxV.js → install-C7rGzRvO.js} +1 -1
  231. package/dist/lens/{install-CumkiUJn.js → install-Ce8R_Bl2.js} +1 -1
  232. package/dist/lens/{install-VEXJv-Wi.js → install-Czhlaw4u.js} +1 -1
  233. package/dist/lens/keys-BC7G1vyT.js +91 -0
  234. package/dist/lens/metricViews-DSoDe0GU.js +210 -0
  235. package/dist/lens/panels/CascadePanel.d.ts +1 -1
  236. package/dist/lens/panels/CascadePanel.d.ts.map +1 -1
  237. package/dist/lens/panels/ChartDataEquivalent.d.ts +1 -1
  238. package/dist/lens/panels/ChartDataEquivalent.d.ts.map +1 -1
  239. package/dist/lens/panels/ChartHost.d.ts +1 -1
  240. package/dist/lens/panels/ChartHost.d.ts.map +1 -1
  241. package/dist/lens/panels/ChartPanel.d.ts +2 -1
  242. package/dist/lens/panels/ChartPanel.d.ts.map +1 -1
  243. package/dist/lens/panels/CopyValueButton.d.ts +1 -1
  244. package/dist/lens/panels/CopyValueButton.d.ts.map +1 -1
  245. package/dist/lens/panels/CoveragePanel.d.ts +1 -1
  246. package/dist/lens/panels/CoveragePanel.d.ts.map +1 -1
  247. package/dist/lens/panels/ExportMenu.d.ts +1 -1
  248. package/dist/lens/panels/ExportMenu.d.ts.map +1 -1
  249. package/dist/lens/panels/GaugePanel.d.ts +1 -1
  250. package/dist/lens/panels/GaugePanel.d.ts.map +1 -1
  251. package/dist/lens/panels/InfoTip.d.ts +2 -1
  252. package/dist/lens/panels/InfoTip.d.ts.map +1 -1
  253. package/dist/lens/panels/MapPanel.d.ts +1 -1
  254. package/dist/lens/panels/MapPanel.d.ts.map +1 -1
  255. package/dist/lens/panels/MetricFlowPanel.d.ts +1 -1
  256. package/dist/lens/panels/MetricFlowPanel.d.ts.map +1 -1
  257. package/dist/lens/panels/MetricHierarchyPanel.d.ts +2 -1
  258. package/dist/lens/panels/MetricHierarchyPanel.d.ts.map +1 -1
  259. package/dist/lens/panels/MetricRelationshipPanel.d.ts +1 -1
  260. package/dist/lens/panels/MetricRelationshipPanel.d.ts.map +1 -1
  261. package/dist/lens/panels/PanelExportMenu.d.ts +2 -2
  262. package/dist/lens/panels/PanelExportMenu.d.ts.map +1 -1
  263. package/dist/lens/panels/PanelFrame.d.ts +6 -6
  264. package/dist/lens/panels/PanelFrame.d.ts.map +1 -1
  265. package/dist/lens/panels/PanelOverlay.d.ts +4 -4
  266. package/dist/lens/panels/PanelOverlay.d.ts.map +1 -1
  267. package/dist/lens/panels/QualityChip.d.ts +8 -4
  268. package/dist/lens/panels/QualityChip.d.ts.map +1 -1
  269. package/dist/lens/panels/ShareSliceButton.d.ts +1 -1
  270. package/dist/lens/panels/ShareSliceButton.d.ts.map +1 -1
  271. package/dist/lens/panels/Skeleton.d.ts +13 -13
  272. package/dist/lens/panels/Skeleton.d.ts.map +1 -1
  273. package/dist/lens/panels/StatPanel.d.ts +11 -11
  274. package/dist/lens/panels/StatPanel.d.ts.map +1 -1
  275. package/dist/lens/panels/StatValueTicker.d.ts +2 -2
  276. package/dist/lens/panels/StatValueTicker.d.ts.map +1 -1
  277. package/dist/lens/panels/TablePanel.d.ts +2 -1
  278. package/dist/lens/panels/TablePanel.d.ts.map +1 -1
  279. package/dist/lens/panels/WaterfallPlot.d.ts +3 -3
  280. package/dist/lens/panels/WaterfallPlot.d.ts.map +1 -1
  281. package/dist/lens/panels/actions.d.ts +16 -13
  282. package/dist/lens/panels/actions.d.ts.map +1 -1
  283. package/dist/lens/panels/context.d.ts +5 -5
  284. package/dist/lens/panels/context.d.ts.map +1 -1
  285. package/dist/lens/panels/focusTrap.d.ts +4 -0
  286. package/dist/lens/panels/focusTrap.d.ts.map +1 -0
  287. package/dist/lens/panels/overlayContainer.d.ts +18 -0
  288. package/dist/lens/panels/overlayContainer.d.ts.map +1 -0
  289. package/dist/lens/panels/registry.d.ts +23 -23
  290. package/dist/lens/panels/registry.d.ts.map +1 -1
  291. package/dist/lens/panels/useIsClamped.d.ts +2 -2
  292. package/dist/lens/panels/useIsClamped.d.ts.map +1 -1
  293. package/dist/lens/panels/useMenuButton.d.ts +21 -14
  294. package/dist/lens/panels/useMenuButton.d.ts.map +1 -1
  295. package/dist/lens/{prefetch-C_qYKOTU.js → prefetch-Caqfl7sC.js} +2 -2
  296. package/dist/lens/{prefetchPanels-CD4C-A5q.js → prefetchPanels-B-09akeK.js} +1 -1
  297. package/dist/lens/print/PrintReport.d.ts +4 -3
  298. package/dist/lens/print/PrintReport.d.ts.map +1 -1
  299. package/dist/lens/print/formula.d.ts +3 -2
  300. package/dist/lens/print/formula.d.ts.map +1 -1
  301. package/dist/lens/print/quality.d.ts +3 -2
  302. package/dist/lens/print/quality.d.ts.map +1 -1
  303. package/dist/lens/{print-Iu804kRb.js → print-CcDZyjFC.js} +1 -1
  304. package/dist/lens/reports/contract/schemas.d.ts +17 -0
  305. package/dist/lens/reports/contract/schemas.d.ts.map +1 -0
  306. package/dist/lens/reports/contract/types.d.ts +42 -0
  307. package/dist/lens/reports/contract/types.d.ts.map +1 -0
  308. package/dist/lens/reports/draft.d.ts +28 -0
  309. package/dist/lens/reports/draft.d.ts.map +1 -0
  310. package/dist/lens/runtime/drawer.d.ts +3 -3
  311. package/dist/lens/runtime/drawer.d.ts.map +1 -1
  312. package/dist/lens/runtime/overlayContainer.d.ts +2 -2
  313. package/dist/lens/runtime/overlayContainer.d.ts.map +1 -1
  314. package/dist/lens/runtime/provider.d.ts +23 -23
  315. package/dist/lens/runtime/provider.d.ts.map +1 -1
  316. package/dist/lens/{scales-CWTA0tSQ.js → scales-DOCY7Afr.js} +1 -1
  317. package/dist/lens/style.css +1 -1
  318. package/dist/sdk-identity.cjs +3 -3
  319. package/dist/sdk-identity.js +3 -3
  320. package/dist/sdk-identity.json +2 -2
  321. package/package.json +11 -10
  322. package/dist/client-host/applet.d.ts.map +0 -1
  323. package/dist/client-host/portals.d.ts +0 -30
  324. package/dist/client-host/portals.d.ts.map +0 -1
  325. package/dist/client-host/portals.js +0 -84
  326. package/dist/client-host/route.d.ts +0 -17
  327. package/dist/client-host/route.d.ts.map +0 -1
  328. package/dist/client-host/route.js +0 -19
  329. package/dist/client-host/rpc.d.ts +0 -15
  330. package/dist/client-host/rpc.d.ts.map +0 -1
  331. package/dist/client-host/rpc.js +0 -28
  332. package/dist/lens/CascadePanel-Sd2OKQx-.js +0 -574
  333. package/dist/lens/ChartDataEquivalent-DgCAb4Ov.js +0 -53
  334. package/dist/lens/ChartPanel-CiAahY9O.js +0 -709
  335. package/dist/lens/CoveragePanel-DeeKg8gF.js +0 -131
  336. package/dist/lens/GaugePanel-8rsf_XHS.js +0 -43
  337. package/dist/lens/MapPanel-Bq0mfVCB.js +0 -179
  338. package/dist/lens/MetricFlowPanel-ZBJqPFpc.js +0 -70
  339. package/dist/lens/MetricHierarchyPanel-DStGwvVU.js +0 -72
  340. package/dist/lens/MetricRelationshipPanel-D6ItmGCS.js +0 -54
  341. package/dist/lens/PrintReport-Dr-6xXVr.js +0 -1367
  342. package/dist/lens/TablePanel-CzLP8gG0.js +0 -619
  343. package/dist/lens/index-R9mnOHaj.js +0 -11000
  344. package/dist/lens/keys-6_gqLhcv.js +0 -78
  345. package/dist/lens/metricViews-De-9pff-.js +0 -170
  346. package/dist/lens/runtime/focusTrap.d.ts +0 -4
  347. package/dist/lens/runtime/focusTrap.d.ts.map +0 -1
@@ -0,0 +1,421 @@
1
+ export type BichatRPC = {
2
+ "bichat.artifact.delete": {
3
+ params: ArtifactIDParams;
4
+ result: OkResult;
5
+ };
6
+ "bichat.artifact.update": {
7
+ params: ArtifactUpdateParams;
8
+ result: ArtifactResult;
9
+ };
10
+ "bichat.ping": {
11
+ params: PingParams;
12
+ result: PingResult;
13
+ };
14
+ "bichat.question.reject": {
15
+ params: QuestionCancelParams;
16
+ result: AsyncRunAcceptedResult;
17
+ };
18
+ "bichat.question.submit": {
19
+ params: QuestionSubmitParams;
20
+ result: AsyncRunAcceptedResult;
21
+ };
22
+ "bichat.session.archive": {
23
+ params: SessionIDParams;
24
+ result: SessionCreateResult;
25
+ };
26
+ "bichat.session.artifacts": {
27
+ params: SessionArtifactsParams;
28
+ result: SessionArtifactsResult;
29
+ };
30
+ "bichat.session.clear": {
31
+ params: SessionIDParams;
32
+ result: SessionClearResult;
33
+ };
34
+ "bichat.session.compact": {
35
+ params: SessionIDParams;
36
+ result: AsyncRunAcceptedResult;
37
+ };
38
+ "bichat.session.create": {
39
+ params: SessionCreateParams;
40
+ result: SessionCreateResult;
41
+ };
42
+ "bichat.session.delete": {
43
+ params: SessionIDParams;
44
+ result: OkResult;
45
+ };
46
+ "bichat.session.get": {
47
+ params: SessionGetParams;
48
+ result: SessionGetResult;
49
+ };
50
+ "bichat.session.list": {
51
+ params: SessionListParams;
52
+ result: SessionListResult;
53
+ };
54
+ "bichat.session.listAll": {
55
+ params: SessionListAllParams;
56
+ result: SessionListAllResult;
57
+ };
58
+ "bichat.session.members.add": {
59
+ params: SessionMembersUpsertParams;
60
+ result: OkResult;
61
+ };
62
+ "bichat.session.members.list": {
63
+ params: SessionMembersListParams;
64
+ result: SessionMembersListResult;
65
+ };
66
+ "bichat.session.members.remove": {
67
+ params: SessionMembersRemoveParams;
68
+ result: OkResult;
69
+ };
70
+ "bichat.session.members.updateRole": {
71
+ params: SessionMembersUpsertParams;
72
+ result: OkResult;
73
+ };
74
+ "bichat.session.pin": {
75
+ params: SessionIDParams;
76
+ result: SessionCreateResult;
77
+ };
78
+ "bichat.session.regenerateTitle": {
79
+ params: SessionIDParams;
80
+ result: SessionCreateResult;
81
+ };
82
+ "bichat.session.unarchive": {
83
+ params: SessionIDParams;
84
+ result: SessionCreateResult;
85
+ };
86
+ "bichat.session.unpin": {
87
+ params: SessionIDParams;
88
+ result: SessionCreateResult;
89
+ };
90
+ "bichat.session.updateTitle": {
91
+ params: SessionUpdateTitleParams;
92
+ result: SessionCreateResult;
93
+ };
94
+ "bichat.session.uploadArtifacts": {
95
+ params: SessionUploadArtifactsParams;
96
+ result: SessionUploadArtifactsResult;
97
+ };
98
+ "bichat.user.list": {
99
+ params: UserListParams;
100
+ result: UserListResult;
101
+ };
102
+ };
103
+ export interface Artifact {
104
+ id: string;
105
+ sessionId: string;
106
+ messageId?: string;
107
+ uploadId?: number | null;
108
+ type: string;
109
+ name: string;
110
+ description?: string;
111
+ mimeType?: string;
112
+ url?: string;
113
+ sizeBytes: number;
114
+ metadata?: Record<string, unknown>;
115
+ createdAt: string;
116
+ }
117
+ export interface ArtifactIDParams {
118
+ id: string;
119
+ }
120
+ export interface ArtifactResult {
121
+ artifact: Artifact;
122
+ }
123
+ export interface ArtifactUpdateParams {
124
+ id: string;
125
+ name: string;
126
+ description?: string;
127
+ }
128
+ export interface AssistantTurn {
129
+ id: string;
130
+ role?: string;
131
+ content: string;
132
+ explanation?: string;
133
+ citations: Citation[];
134
+ toolCalls?: ToolCall[];
135
+ debug?: DebugTrace | null;
136
+ artifacts: unknown[];
137
+ codeOutputs: CodeOutput[];
138
+ createdAt: string;
139
+ }
140
+ export interface AsyncRunAcceptedResult {
141
+ accepted: boolean;
142
+ operation: string;
143
+ sessionId: string;
144
+ runId: string;
145
+ startedAt: number;
146
+ }
147
+ export interface Attachment {
148
+ id: string;
149
+ uploadId?: number | null;
150
+ filename: string;
151
+ mimeType: string;
152
+ sizeBytes: number;
153
+ url?: string;
154
+ }
155
+ export interface Citation {
156
+ id: string;
157
+ type: string;
158
+ title: string;
159
+ url: string;
160
+ startIndex: number;
161
+ endIndex: number;
162
+ excerpt?: string;
163
+ source?: string;
164
+ }
165
+ export interface CodeOutput {
166
+ type: string;
167
+ content: string;
168
+ filename?: string;
169
+ mimeType?: string;
170
+ sizeBytes?: number;
171
+ }
172
+ export interface ConversationTurn {
173
+ id: string;
174
+ sessionId: string;
175
+ userTurn: UserTurn;
176
+ assistantTurn?: AssistantTurn | null;
177
+ createdAt: string;
178
+ }
179
+ export interface DebugEvent {
180
+ id?: string;
181
+ name?: string;
182
+ type?: string;
183
+ level?: string;
184
+ message?: string;
185
+ reason?: string;
186
+ spanId?: string;
187
+ generationId?: string;
188
+ timestamp?: string;
189
+ attributes?: Record<string, unknown>;
190
+ }
191
+ export interface DebugGeneration {
192
+ id?: string;
193
+ requestId?: string;
194
+ model?: string;
195
+ provider?: string;
196
+ finishReason?: string;
197
+ promptTokens?: number;
198
+ completionTokens?: number;
199
+ totalTokens?: number;
200
+ cachedTokens?: number;
201
+ cost?: number;
202
+ latencyMs?: number;
203
+ input?: string;
204
+ output?: string;
205
+ thinking?: string;
206
+ observationReason?: string;
207
+ startedAt?: string;
208
+ completedAt?: string;
209
+ toolCalls?: DebugToolCall[];
210
+ }
211
+ export interface DebugSpan {
212
+ id?: string;
213
+ parentId?: string;
214
+ generationId?: string;
215
+ name?: string;
216
+ type?: string;
217
+ status?: string;
218
+ level?: string;
219
+ callId?: string;
220
+ toolName?: string;
221
+ input?: string;
222
+ output?: string;
223
+ error?: string;
224
+ durationMs?: number;
225
+ startedAt?: string;
226
+ completedAt?: string;
227
+ attributes?: Record<string, unknown>;
228
+ }
229
+ export interface DebugToolCall {
230
+ callId?: string;
231
+ name?: string;
232
+ arguments?: string;
233
+ result?: string;
234
+ error?: string;
235
+ durationMs?: number;
236
+ }
237
+ export interface DebugTrace {
238
+ schemaVersion?: string;
239
+ startedAt?: string;
240
+ completedAt?: string;
241
+ usage?: DebugUsage | null;
242
+ generationMs?: number;
243
+ tools?: DebugToolCall[];
244
+ attempts?: DebugGeneration[];
245
+ spans?: DebugSpan[];
246
+ events?: DebugEvent[];
247
+ traceId?: string;
248
+ traceUrl?: string;
249
+ sessionId?: string;
250
+ thinking?: string;
251
+ observationReason?: string;
252
+ }
253
+ export interface DebugUsage {
254
+ promptTokens: number;
255
+ completionTokens: number;
256
+ totalTokens: number;
257
+ cachedTokens: number;
258
+ cost: number;
259
+ }
260
+ export interface OkResult {
261
+ ok: boolean;
262
+ }
263
+ export interface PendingQuestion {
264
+ checkpointId: string;
265
+ agentName?: string;
266
+ turnId: string;
267
+ questions: PendingQuestionItem[];
268
+ status: string;
269
+ }
270
+ export interface PendingQuestionItem {
271
+ id: string;
272
+ text: string;
273
+ type: string;
274
+ options: PendingQuestionOption[];
275
+ }
276
+ export interface PendingQuestionOption {
277
+ id: string;
278
+ label: string;
279
+ }
280
+ export type PingParams = Record<string, never>;
281
+ export interface PingResult {
282
+ ok: boolean;
283
+ tenantId: string;
284
+ }
285
+ export interface QuestionCancelParams {
286
+ sessionId: string;
287
+ }
288
+ export interface QuestionSubmitParams {
289
+ sessionId: string;
290
+ checkpointId: string;
291
+ answers: Record<string, string>;
292
+ }
293
+ export interface Session {
294
+ id: string;
295
+ title: string;
296
+ status: string;
297
+ pinned: boolean;
298
+ createdAt: string;
299
+ updatedAt: string;
300
+ owner?: SessionUser | null;
301
+ isGroup?: boolean;
302
+ memberCount?: number;
303
+ access?: SessionAccess | null;
304
+ }
305
+ export interface SessionAccess {
306
+ role: string;
307
+ source: string;
308
+ canRead: boolean;
309
+ canWrite: boolean;
310
+ canManageMembers: boolean;
311
+ }
312
+ export interface SessionArtifactsParams {
313
+ sessionId: string;
314
+ limit: number;
315
+ offset: number;
316
+ }
317
+ export interface SessionArtifactsResult {
318
+ artifacts: Artifact[];
319
+ hasMore: boolean;
320
+ nextOffset: number;
321
+ }
322
+ export interface SessionClearResult {
323
+ success: boolean;
324
+ deletedMessages: number;
325
+ deletedArtifacts: number;
326
+ }
327
+ export interface SessionCreateParams {
328
+ title: string;
329
+ }
330
+ export interface SessionCreateResult {
331
+ session: Session;
332
+ }
333
+ export interface SessionGetParams {
334
+ id: string;
335
+ }
336
+ export interface SessionGetResult {
337
+ session: Session;
338
+ turns: ConversationTurn[];
339
+ pendingQuestion?: PendingQuestion | null;
340
+ }
341
+ export interface SessionIDParams {
342
+ id: string;
343
+ }
344
+ export interface SessionListAllParams {
345
+ limit: number;
346
+ offset: number;
347
+ includeArchived: boolean;
348
+ userId?: string | null;
349
+ }
350
+ export interface SessionListAllResult {
351
+ sessions: Session[];
352
+ total?: number;
353
+ hasMore: boolean;
354
+ }
355
+ export interface SessionListParams {
356
+ limit: number;
357
+ offset: number;
358
+ includeArchived: boolean;
359
+ }
360
+ export interface SessionListResult {
361
+ sessions: Session[];
362
+ total?: number;
363
+ hasMore: boolean;
364
+ }
365
+ export interface SessionMember {
366
+ user: SessionUser;
367
+ role: string;
368
+ createdAt: string;
369
+ updatedAt: string;
370
+ }
371
+ export interface SessionMembersListParams {
372
+ sessionId: string;
373
+ }
374
+ export interface SessionMembersListResult {
375
+ members: SessionMember[];
376
+ }
377
+ export interface SessionMembersRemoveParams {
378
+ sessionId: string;
379
+ userId: string;
380
+ }
381
+ export interface SessionMembersUpsertParams {
382
+ sessionId: string;
383
+ userId: string;
384
+ role: string;
385
+ }
386
+ export interface SessionUpdateTitleParams {
387
+ id: string;
388
+ title: string;
389
+ }
390
+ export interface SessionUploadArtifactsParams {
391
+ sessionId: string;
392
+ attachments: Attachment[];
393
+ }
394
+ export interface SessionUploadArtifactsResult {
395
+ artifacts: Artifact[];
396
+ }
397
+ export interface SessionUser {
398
+ id: string;
399
+ firstName: string;
400
+ lastName: string;
401
+ initials: string;
402
+ }
403
+ export interface ToolCall {
404
+ id: string;
405
+ name: string;
406
+ arguments: string;
407
+ result?: string;
408
+ error?: string;
409
+ durationMs?: number;
410
+ }
411
+ export type UserListParams = Record<string, never>;
412
+ export interface UserListResult {
413
+ users: SessionUser[];
414
+ }
415
+ export interface UserTurn {
416
+ id: string;
417
+ content: string;
418
+ attachments: Attachment[];
419
+ author?: SessionUser | null;
420
+ createdAt: string;
421
+ }
@@ -0,0 +1,27 @@
1
+ export interface SwipeInfo {
2
+ offset: {
3
+ x: number;
4
+ y: number;
5
+ };
6
+ velocity: {
7
+ x: number;
8
+ y: number;
9
+ };
10
+ }
11
+ export declare function createHorizontalSwipe(options: {
12
+ enabled?: () => boolean;
13
+ left?: number;
14
+ right?: number;
15
+ onStart?: () => void;
16
+ onEnd?: (event: PointerEvent, info: SwipeInfo) => void;
17
+ }): {
18
+ offset: import("solid-js").Accessor<number>;
19
+ handlers: {
20
+ onPointerDown(event: PointerEvent & {
21
+ currentTarget: HTMLElement;
22
+ }): void;
23
+ onPointerMove(event: PointerEvent): void;
24
+ onPointerUp(event: PointerEvent): void;
25
+ onPointerCancel(event: PointerEvent): void;
26
+ };
27
+ };
@@ -0,0 +1 @@
1
+ export declare function createReducedMotion(): import("solid-js").Accessor<boolean>;
@@ -0,0 +1,47 @@
1
+ /**
2
+ * useActiveRuns — live map of per-session generation status.
3
+ *
4
+ * Subscribes to the data source's `subscribeActiveRuns` channel
5
+ * (`GET /bi-chat/stream/active-runs`) and maintains a
6
+ * sessionId → status dictionary so the sidebar can render a status
7
+ * dot next to each session card without polling /stream/status per
8
+ * session.
9
+ *
10
+ * The hook is a no-op when:
11
+ * - the data source does not implement subscribeActiveRuns (older
12
+ * backends without the active-run index);
13
+ * - `enabled` is false (e.g. the user is offline).
14
+ */
15
+ import type { ActiveRunDelivery, ChatDataSource } from '../types';
16
+ export interface ActiveRunSnapshot {
17
+ runId: string;
18
+ status: ActiveRunDelivery['status'];
19
+ updatedAt: number;
20
+ }
21
+ export interface UseActiveRunsOptions {
22
+ enabled?: boolean;
23
+ /** Optional hook for raw SSE errors. */
24
+ onError?: (event: Event) => void;
25
+ /**
26
+ * Keep terminal-status entries in the map for this many milliseconds
27
+ * before pruning them. Default 0 preserves the previous behaviour
28
+ * (synchronous delete). Useful when consumers want to render a
29
+ * "completed" pulse animation before the dot disappears.
30
+ */
31
+ retainTerminalMs?: number;
32
+ /**
33
+ * How long to wait for an initial snapshot batch before declaring
34
+ * the hook `ready` when the server has zero active runs.
35
+ * Default 250ms.
36
+ */
37
+ emptyStateTimeoutMs?: number;
38
+ }
39
+ export interface UseActiveRunsResult {
40
+ /** sessionId → current live status. Terminal statuses are emitted then the entry is removed. */
41
+ runs: Record<string, ActiveRunSnapshot>;
42
+ /** True once the initial HGETALL snapshot is delivered. */
43
+ ready: boolean;
44
+ /** Convenience: undefined when not active. */
45
+ status: (sessionId: string) => ActiveRunDelivery['status'] | undefined;
46
+ }
47
+ export declare function useActiveRuns(source: Pick<ChatDataSource, 'subscribeActiveRuns'> | (() => Pick<ChatDataSource, 'subscribeActiveRuns'>), options?: UseActiveRunsOptions): UseActiveRunsResult;
@@ -0,0 +1,80 @@
1
+ /**
2
+ * useAttachments Hook
3
+ * Manages file upload state, validation, and preview
4
+ */
5
+ import type { Attachment } from '../types';
6
+ export interface FileValidationError {
7
+ file: File;
8
+ reason: 'size' | 'type' | 'count' | 'custom';
9
+ message: string;
10
+ }
11
+ export interface UseAttachmentsOptions {
12
+ /** Maximum number of files (default: 10) */
13
+ maxFiles?: number;
14
+ /** Maximum file size in bytes (default: 20MB) */
15
+ maxFileSize?: number;
16
+ /** Allowed MIME types (default: attachment allowlist) */
17
+ allowedTypes?: string[];
18
+ /** Custom validation function */
19
+ validate?: (file: File) => string | null;
20
+ /** Callback when files are added */
21
+ onAdd?: (files: Attachment[]) => void;
22
+ /** Callback when a file is removed */
23
+ onRemove?: (file: Attachment) => void;
24
+ /** Callback when validation fails */
25
+ onError?: (errors: FileValidationError[]) => void;
26
+ }
27
+ export interface UseAttachmentsReturn {
28
+ /** Current attachments */
29
+ files: Attachment[];
30
+ /** Validation errors from last operation */
31
+ errors: FileValidationError[];
32
+ /** Whether files are being processed */
33
+ isProcessing: boolean;
34
+ /** Whether max file limit is reached */
35
+ isMaxReached: boolean;
36
+ /** Number of remaining slots */
37
+ remainingSlots: number;
38
+ /** Add files (validates and processes) */
39
+ add: (files: FileList | File[]) => Promise<void>;
40
+ /** Remove a specific file */
41
+ remove: (fileOrId: Attachment | string) => void;
42
+ /** Clear all files */
43
+ clear: () => void;
44
+ /** Clear errors */
45
+ clearErrors: () => void;
46
+ /** Set files directly (for controlled mode) */
47
+ setFiles: (files: Attachment[]) => void;
48
+ }
49
+ /**
50
+ * Hook for managing file attachments
51
+ *
52
+ * @example
53
+ * ```tsx
54
+ * const attachments = useAttachments({
55
+ * maxFiles: 5,
56
+ * maxFileSize: 5 * 1024 * 1024, // 5MB
57
+ * onError: (errors) => errors.forEach(e => toast.error(e.message)),
58
+ * })
59
+ *
60
+ * <input
61
+ * type="file"
62
+ * multiple
63
+ * accept="image/*"
64
+ * onChange={(e) => attachments.add(e.target.files)}
65
+ * />
66
+ *
67
+ * {attachments.files.map(file => (
68
+ * <AttachmentPreview
69
+ * key={file.id}
70
+ * attachment={file}
71
+ * onRemove={() => attachments.remove(file)}
72
+ * />
73
+ * ))}
74
+ *
75
+ * {attachments.errors.length > 0 && (
76
+ * <ErrorList errors={attachments.errors} />
77
+ * )}
78
+ * ```
79
+ */
80
+ export declare function useAttachments(options?: UseAttachmentsOptions): UseAttachmentsReturn;
@@ -0,0 +1,51 @@
1
+ /**
2
+ * useAutoScroll Hook
3
+ * Manages auto-scroll behavior for chat containers
4
+ */
5
+ export interface UseAutoScrollOptions {
6
+ /** Threshold in pixels from bottom to consider "at bottom" (default: 100) */
7
+ threshold?: number;
8
+ /** Smooth scroll behavior (default: true) */
9
+ smooth?: boolean;
10
+ /** Callback when scroll position changes */
11
+ onScroll?: (isAtBottom: boolean) => void;
12
+ }
13
+ export interface UseAutoScrollReturn {
14
+ /** Ref to attach to the scrollable container */
15
+ containerRef: {
16
+ current: HTMLDivElement | null;
17
+ };
18
+ /** Whether the container is scrolled to the bottom */
19
+ isAtBottom: boolean;
20
+ /** Whether auto-scroll should be active */
21
+ shouldAutoScroll: boolean;
22
+ /** Manually scroll to bottom */
23
+ scrollToBottom: (smooth?: boolean) => void;
24
+ /** Enable/disable auto-scroll */
25
+ setAutoScroll: (enabled: boolean) => void;
26
+ /** Handle scroll event (attach to container if not using ref) */
27
+ handleScroll: (e: UIEvent & {
28
+ currentTarget: HTMLDivElement;
29
+ }) => void;
30
+ }
31
+ /**
32
+ * Hook for managing auto-scroll behavior in chat containers
33
+ *
34
+ * @example
35
+ * ```tsx
36
+ * const scroll = useAutoScroll({ threshold: 50 })
37
+ *
38
+ * // Attach to container
39
+ * <div ref={scroll.containerRef} onScroll={scroll.handleScroll}>
40
+ * {messages.map(msg => <Message key={msg.id} />)}
41
+ * </div>
42
+ *
43
+ * // Scroll button
44
+ * {!scroll.isAtBottom && (
45
+ * <button onClick={() => scroll.scrollToBottom()}>
46
+ * Scroll to bottom
47
+ * </button>
48
+ * )}
49
+ * ```
50
+ */
51
+ export declare function useAutoScroll(options?: UseAutoScrollOptions): UseAutoScrollReturn;
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Router adapter for BiChat sidebar and archived list.
3
+ * Consumes a navigate function and location (pathname) and returns
4
+ * activeSessionId plus callbacks for use with SDK Sidebar and ArchivedChatList.
5
+ *
6
+ * Router-agnostic: pass useNavigate()/useLocation() from react-router-dom
7
+ * or equivalent from your router.
8
+ */
9
+ export interface UseBichatRouterParams {
10
+ /** Navigate to a path (e.g. from useNavigate()) */
11
+ navigate: (path: string) => void;
12
+ /** Current pathname (e.g. location.pathname from useLocation()) */
13
+ pathname: string;
14
+ /** Optional: close mobile sidebar after navigation (e.g. closeMobile from useSidebarState) */
15
+ onNavigate?: () => void;
16
+ }
17
+ export interface UseBichatRouterReturn {
18
+ /** Session ID extracted from pathname (e.g. /session/:id -> id) */
19
+ activeSessionId: string | undefined;
20
+ /** Navigate to session or home when sessionId is empty */
21
+ onSessionSelect: (sessionId: string) => void;
22
+ /** Navigate to new chat (home) */
23
+ onNewChat: () => void;
24
+ /** Navigate to archived list */
25
+ onArchivedView: () => void;
26
+ /** Navigate back (e.g. to home) */
27
+ onBack: () => void;
28
+ /** Navigate to all-chats view */
29
+ onAllChatsView: () => void;
30
+ /** Current sidebar tab derived from URL */
31
+ sidebarTab: 'my-chats' | 'all-chats';
32
+ /** Handler to change sidebar tab (navigates to appropriate URL) */
33
+ onSidebarTabChange: (tab: 'my-chats' | 'all-chats') => void;
34
+ }
35
+ /**
36
+ * Derives BiChat navigation callbacks and activeSessionId from router state.
37
+ * Use with SDK Sidebar (onSessionSelect, onNewChat, onArchivedView, activeSessionId)
38
+ * and ArchivedChatList (onBack, onSessionSelect).
39
+ */
40
+ export declare function useBichatRouter(solidProps1: UseBichatRouterParams): UseBichatRouterReturn;
@@ -0,0 +1,16 @@
1
+ import type { BrandingConfig } from '../types';
2
+ /**
3
+ * Hook to access branding configuration.
4
+ *
5
+ * Returns merged branding with fallbacks to defaults and translations.
6
+ */
7
+ export declare function useBranding(): BrandingConfig;
8
+ /**
9
+ * Hook to access feature flags.
10
+ */
11
+ export declare function useFeatureFlags(): {
12
+ vision: boolean;
13
+ webSearch: boolean;
14
+ codeInterpreter: boolean;
15
+ multiAgent: boolean;
16
+ };