@dxos/plugin-thread 0.8.4-main.67995b8 → 0.8.4-main.70d3990

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 (330) hide show
  1. package/dist/lib/browser/ChannelContainer-L7MKV7DS.mjs +17 -0
  2. package/dist/lib/browser/ChatContainer-KPY4BAUE.mjs +16 -0
  3. package/dist/lib/browser/{app-graph-builder-N7BE5TYW.mjs → app-graph-builder-TWJ2UCOZ.mjs} +33 -33
  4. package/dist/lib/browser/app-graph-builder-TWJ2UCOZ.mjs.map +7 -0
  5. package/dist/lib/browser/blueprint-definition-TQ4JFMZZ.mjs +101 -0
  6. package/dist/lib/browser/blueprint-definition-TQ4JFMZZ.mjs.map +7 -0
  7. package/dist/lib/browser/{call-manager-NIPDYUVD.mjs → call-manager-4YFT4XA6.mjs} +8 -7
  8. package/dist/lib/browser/call-manager-4YFT4XA6.mjs.map +7 -0
  9. package/dist/lib/browser/{chunk-KWPRNHTK.mjs → chunk-ALZKJOZK.mjs} +251 -246
  10. package/dist/lib/browser/chunk-ALZKJOZK.mjs.map +7 -0
  11. package/dist/lib/browser/chunk-ANTFU4JB.mjs +25 -0
  12. package/dist/lib/browser/chunk-ANTFU4JB.mjs.map +7 -0
  13. package/dist/lib/browser/chunk-CFC7LEPD.mjs +18 -0
  14. package/dist/lib/browser/chunk-CFC7LEPD.mjs.map +7 -0
  15. package/dist/lib/browser/{chunk-GERVMFQW.mjs → chunk-CP7E2HRE.mjs} +2 -2
  16. package/dist/lib/browser/chunk-CP7E2HRE.mjs.map +7 -0
  17. package/dist/lib/browser/{chunk-6NSMBO3B.mjs → chunk-ISCHODBV.mjs} +55 -5
  18. package/dist/lib/browser/chunk-ISCHODBV.mjs.map +7 -0
  19. package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
  20. package/dist/lib/browser/chunk-JDJPMI7V.mjs +143 -0
  21. package/dist/lib/browser/chunk-JDJPMI7V.mjs.map +7 -0
  22. package/dist/lib/browser/{chunk-ERWASUQK.mjs → chunk-KOBXMDCI.mjs} +74 -41
  23. package/dist/lib/browser/chunk-KOBXMDCI.mjs.map +7 -0
  24. package/dist/lib/browser/chunk-NPT5S6N4.mjs +611 -0
  25. package/dist/lib/browser/chunk-NPT5S6N4.mjs.map +7 -0
  26. package/dist/lib/browser/chunk-QM34EZQK.mjs +20 -0
  27. package/dist/lib/browser/chunk-QM34EZQK.mjs.map +7 -0
  28. package/dist/lib/browser/chunk-TLOOZTRD.mjs +377 -0
  29. package/dist/lib/browser/chunk-TLOOZTRD.mjs.map +7 -0
  30. package/dist/lib/browser/{chunk-ZE7KWN36.mjs → chunk-ZCW3NSDZ.mjs} +310 -186
  31. package/dist/lib/browser/chunk-ZCW3NSDZ.mjs.map +7 -0
  32. package/dist/lib/browser/index.mjs +61 -53
  33. package/dist/lib/browser/index.mjs.map +3 -3
  34. package/dist/lib/browser/{intent-resolver-JFGLZ6VI.mjs → intent-resolver-G33FT3NO.mjs} +41 -55
  35. package/dist/lib/browser/intent-resolver-G33FT3NO.mjs.map +7 -0
  36. package/dist/lib/browser/{markdown-M3FMR7OD.mjs → markdown-WFZFYJBQ.mjs} +30 -27
  37. package/dist/lib/browser/markdown-WFZFYJBQ.mjs.map +7 -0
  38. package/dist/lib/browser/meta.json +1 -1
  39. package/dist/lib/browser/react-root-ED7PHA44.mjs +29 -0
  40. package/dist/lib/browser/react-root-ED7PHA44.mjs.map +7 -0
  41. package/dist/lib/browser/{react-surface-XWS6GIZY.mjs → react-surface-AUQQSQQC.mjs} +38 -36
  42. package/dist/lib/browser/react-surface-AUQQSQQC.mjs.map +7 -0
  43. package/dist/lib/browser/repair-JFJLEM2O.mjs +35 -0
  44. package/dist/lib/browser/repair-JFJLEM2O.mjs.map +7 -0
  45. package/dist/lib/browser/{settings-E32MTL7A.mjs → settings-E6IOLK46.mjs} +6 -5
  46. package/dist/lib/{node-esm/settings-SJ24YG7M.mjs.map → browser/settings-E6IOLK46.mjs.map} +1 -1
  47. package/dist/lib/browser/{state-H6CYONWE.mjs → state-UYPLBGZJ.mjs} +6 -5
  48. package/dist/lib/browser/state-UYPLBGZJ.mjs.map +7 -0
  49. package/dist/lib/browser/types/index.mjs +7 -10
  50. package/dist/lib/node-esm/ChannelContainer-FYONOOZ6.mjs +18 -0
  51. package/dist/lib/node-esm/ChatContainer-TLQG23K7.mjs +17 -0
  52. package/dist/lib/node-esm/ChatContainer-TLQG23K7.mjs.map +7 -0
  53. package/dist/lib/node-esm/{app-graph-builder-VCW76Z6V.mjs → app-graph-builder-VD6I2V5H.mjs} +33 -33
  54. package/dist/lib/node-esm/app-graph-builder-VD6I2V5H.mjs.map +7 -0
  55. package/dist/lib/node-esm/blueprint-definition-TSX5HHW7.mjs +102 -0
  56. package/dist/lib/node-esm/blueprint-definition-TSX5HHW7.mjs.map +7 -0
  57. package/dist/lib/node-esm/{call-manager-D6O5ZJJ4.mjs → call-manager-UMUXEYH5.mjs} +8 -7
  58. package/dist/lib/node-esm/call-manager-UMUXEYH5.mjs.map +7 -0
  59. package/dist/lib/node-esm/chunk-2AEIN5MI.mjs +22 -0
  60. package/dist/lib/node-esm/chunk-2AEIN5MI.mjs.map +7 -0
  61. package/dist/lib/node-esm/{chunk-IHDNQLLR.mjs → chunk-7KZWZS2U.mjs} +310 -186
  62. package/dist/lib/node-esm/chunk-7KZWZS2U.mjs.map +7 -0
  63. package/dist/lib/node-esm/{chunk-C3XFMUAY.mjs → chunk-AB42KYF3.mjs} +251 -246
  64. package/dist/lib/node-esm/chunk-AB42KYF3.mjs.map +7 -0
  65. package/dist/lib/node-esm/{chunk-57XR3LEF.mjs → chunk-ABUFOZVX.mjs} +2 -2
  66. package/dist/lib/node-esm/chunk-ABUFOZVX.mjs.map +7 -0
  67. package/dist/lib/node-esm/chunk-ATNY37UV.mjs +27 -0
  68. package/dist/lib/node-esm/chunk-ATNY37UV.mjs.map +7 -0
  69. package/dist/lib/node-esm/chunk-E5HNHFYH.mjs +378 -0
  70. package/dist/lib/node-esm/chunk-E5HNHFYH.mjs.map +7 -0
  71. package/dist/lib/node-esm/chunk-FF3QVPY4.mjs +612 -0
  72. package/dist/lib/node-esm/chunk-FF3QVPY4.mjs.map +7 -0
  73. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
  74. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +7 -0
  75. package/dist/lib/node-esm/chunk-P2M364TO.mjs +144 -0
  76. package/dist/lib/node-esm/chunk-P2M364TO.mjs.map +7 -0
  77. package/dist/lib/node-esm/{chunk-25ABSYP2.mjs → chunk-PZH2EDU5.mjs} +74 -41
  78. package/dist/lib/node-esm/chunk-PZH2EDU5.mjs.map +7 -0
  79. package/dist/lib/node-esm/chunk-RT6NRL2I.mjs +19 -0
  80. package/dist/lib/node-esm/chunk-RT6NRL2I.mjs.map +7 -0
  81. package/dist/lib/node-esm/{chunk-OU5BYIDO.mjs → chunk-VBI32FGI.mjs} +55 -5
  82. package/dist/lib/node-esm/chunk-VBI32FGI.mjs.map +7 -0
  83. package/dist/lib/node-esm/index.mjs +61 -53
  84. package/dist/lib/node-esm/index.mjs.map +3 -3
  85. package/dist/lib/node-esm/{intent-resolver-OXGNQ44Y.mjs → intent-resolver-4PX3WXQG.mjs} +41 -55
  86. package/dist/lib/node-esm/intent-resolver-4PX3WXQG.mjs.map +7 -0
  87. package/dist/lib/node-esm/{markdown-INKTE4MH.mjs → markdown-CSR5MAPZ.mjs} +30 -27
  88. package/dist/lib/node-esm/markdown-CSR5MAPZ.mjs.map +7 -0
  89. package/dist/lib/node-esm/meta.json +1 -1
  90. package/dist/lib/node-esm/react-root-DZN324JA.mjs +30 -0
  91. package/dist/lib/node-esm/react-root-DZN324JA.mjs.map +7 -0
  92. package/dist/lib/node-esm/{react-surface-MJ33KPYE.mjs → react-surface-AMVESEF4.mjs} +38 -36
  93. package/dist/lib/node-esm/react-surface-AMVESEF4.mjs.map +7 -0
  94. package/dist/lib/node-esm/repair-RMLR24YR.mjs +36 -0
  95. package/dist/lib/node-esm/repair-RMLR24YR.mjs.map +7 -0
  96. package/dist/lib/node-esm/{settings-SJ24YG7M.mjs → settings-RGZHWDSO.mjs} +6 -5
  97. package/dist/lib/{browser/settings-E32MTL7A.mjs.map → node-esm/settings-RGZHWDSO.mjs.map} +1 -1
  98. package/dist/lib/node-esm/{state-D7WNDT3N.mjs → state-XNWOLBNE.mjs} +6 -5
  99. package/dist/lib/node-esm/state-XNWOLBNE.mjs.map +7 -0
  100. package/dist/lib/node-esm/types/index.mjs +7 -10
  101. package/dist/types/src/ThreadPlugin.d.ts +1 -1
  102. package/dist/types/src/ThreadPlugin.d.ts.map +1 -1
  103. package/dist/types/src/calls/call-manager.d.ts.map +1 -1
  104. package/dist/types/src/calls/call-swarm-synchronizer.d.ts.map +1 -1
  105. package/dist/types/src/calls/media-manager.d.ts +1 -1
  106. package/dist/types/src/calls/media-manager.d.ts.map +1 -1
  107. package/dist/types/src/calls/types.d.ts +1 -1
  108. package/dist/types/src/calls/types.d.ts.map +1 -1
  109. package/dist/types/src/calls/util/calls-service.d.ts +4 -2
  110. package/dist/types/src/calls/util/calls-service.d.ts.map +1 -1
  111. package/dist/types/src/calls/util/stub-media-streams.d.ts.map +1 -1
  112. package/dist/types/src/calls-service.stories.d.ts +10 -9
  113. package/dist/types/src/calls-service.stories.d.ts.map +1 -1
  114. package/dist/types/src/capabilities/app-graph-builder.d.ts +1 -1
  115. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  116. package/dist/types/src/capabilities/blueprint-definition.d.ts +5 -0
  117. package/dist/types/src/capabilities/blueprint-definition.d.ts.map +1 -0
  118. package/dist/types/src/capabilities/call-manager.d.ts +1 -1
  119. package/dist/types/src/capabilities/call-manager.d.ts.map +1 -1
  120. package/dist/types/src/capabilities/capabilities.d.ts +3 -3
  121. package/dist/types/src/capabilities/capabilities.d.ts.map +1 -1
  122. package/dist/types/src/capabilities/index.d.ts +12 -10
  123. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  124. package/dist/types/src/capabilities/intent-resolver.d.ts +1 -1
  125. package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -1
  126. package/dist/types/src/capabilities/markdown.d.ts +1 -1
  127. package/dist/types/src/capabilities/markdown.d.ts.map +1 -1
  128. package/dist/types/src/capabilities/react-root.d.ts +2 -2
  129. package/dist/types/src/capabilities/react-surface.d.ts +1 -1
  130. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  131. package/dist/types/src/capabilities/repair.d.ts +4 -0
  132. package/dist/types/src/capabilities/repair.d.ts.map +1 -0
  133. package/dist/types/src/capabilities/settings.d.ts +1 -1
  134. package/dist/types/src/capabilities/state.d.ts +2 -2
  135. package/dist/types/src/capabilities/state.d.ts.map +1 -1
  136. package/dist/types/src/components/Call/Call.d.ts.map +1 -1
  137. package/dist/types/src/components/Call/Toolbar.d.ts +2 -2
  138. package/dist/types/src/components/Call/Toolbar.d.ts.map +1 -1
  139. package/dist/types/src/components/CallDebugPanel.d.ts +7 -0
  140. package/dist/types/src/components/CallDebugPanel.d.ts.map +1 -1
  141. package/dist/types/src/components/CallSidebar.d.ts.map +1 -1
  142. package/dist/types/src/components/ChannelContainer.d.ts +2 -2
  143. package/dist/types/src/components/ChannelContainer.d.ts.map +1 -1
  144. package/dist/types/src/components/ChannelContainer.stories.d.ts +159 -5
  145. package/dist/types/src/components/ChannelContainer.stories.d.ts.map +1 -1
  146. package/dist/types/src/components/Chat.stories.d.ts +162 -5
  147. package/dist/types/src/components/Chat.stories.d.ts.map +1 -1
  148. package/dist/types/src/components/ChatContainer.d.ts +6 -5
  149. package/dist/types/src/components/ChatContainer.d.ts.map +1 -1
  150. package/dist/types/src/components/Comments.stories.d.ts +160 -4
  151. package/dist/types/src/components/Comments.stories.d.ts.map +1 -1
  152. package/dist/types/src/components/CommentsContainer.d.ts +2 -2
  153. package/dist/types/src/components/CommentsContainer.d.ts.map +1 -1
  154. package/dist/types/src/components/CommentsThreadContainer.d.ts +9 -9
  155. package/dist/types/src/components/CommentsThreadContainer.d.ts.map +1 -1
  156. package/dist/types/src/components/Lobby/Lobby.d.ts.map +1 -1
  157. package/dist/types/src/components/Media/VideoObject.d.ts +2 -2
  158. package/dist/types/src/components/Media/VideoObject.d.ts.map +1 -1
  159. package/dist/types/src/components/Media/VideoObject.stories.d.ts +18 -4
  160. package/dist/types/src/components/Media/VideoObject.stories.d.ts.map +1 -1
  161. package/dist/types/src/components/MessageContainer.d.ts +8 -3
  162. package/dist/types/src/components/MessageContainer.d.ts.map +1 -1
  163. package/dist/types/src/components/Participant/Participant.d.ts.map +1 -1
  164. package/dist/types/src/components/Participant/ParticipantGrid.d.ts.map +1 -1
  165. package/dist/types/src/components/ResponsiveGrid/ResponsiveContainer.stories.d.ts +159 -3
  166. package/dist/types/src/components/ResponsiveGrid/ResponsiveContainer.stories.d.ts.map +1 -1
  167. package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.stories.d.ts +161 -4
  168. package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.stories.d.ts.map +1 -1
  169. package/dist/types/src/components/ResponsiveGrid/ResponsiveGridItem.d.ts.map +1 -1
  170. package/dist/types/src/components/ThreadCompanion.d.ts +5 -0
  171. package/dist/types/src/components/ThreadCompanion.d.ts.map +1 -0
  172. package/dist/types/src/components/ThreadSettings.d.ts +1 -1
  173. package/dist/types/src/components/ThreadSettings.d.ts.map +1 -1
  174. package/dist/types/src/components/command-extension.d.ts.map +1 -1
  175. package/dist/types/src/components/index.d.ts +3 -3
  176. package/dist/types/src/components/index.d.ts.map +1 -1
  177. package/dist/types/src/components/testing.d.ts +3 -2
  178. package/dist/types/src/components/testing.d.ts.map +1 -1
  179. package/dist/types/src/extensions/threads.d.ts.map +1 -1
  180. package/dist/types/src/functions/create-proposals.d.ts +6 -0
  181. package/dist/types/src/functions/create-proposals.d.ts.map +1 -0
  182. package/dist/types/src/functions/index.d.ts +2 -0
  183. package/dist/types/src/functions/index.d.ts.map +1 -0
  184. package/dist/types/src/hooks/analytics.d.ts +2 -2
  185. package/dist/types/src/hooks/analytics.d.ts.map +1 -1
  186. package/dist/types/src/hooks/index.d.ts +2 -1
  187. package/dist/types/src/hooks/index.d.ts.map +1 -1
  188. package/dist/types/src/hooks/useBlackCanvasStreamTrack.d.ts +2 -0
  189. package/dist/types/src/hooks/useBlackCanvasStreamTrack.d.ts.map +1 -0
  190. package/dist/types/src/hooks/useVideoStreamTrack.d.ts +1 -1
  191. package/dist/types/src/hooks/useVideoStreamTrack.d.ts.map +1 -1
  192. package/dist/types/src/meta.d.ts +1 -2
  193. package/dist/types/src/meta.d.ts.map +1 -1
  194. package/dist/types/src/testing/stories.d.ts.map +1 -1
  195. package/dist/types/src/translations.d.ts +79 -7
  196. package/dist/types/src/translations.d.ts.map +1 -1
  197. package/dist/types/src/types/Channel.d.ts +16 -0
  198. package/dist/types/src/types/Channel.d.ts.map +1 -0
  199. package/dist/types/src/types/index.d.ts +1 -1
  200. package/dist/types/src/types/index.d.ts.map +1 -1
  201. package/dist/types/src/types/types.d.ts +236 -265
  202. package/dist/types/src/types/types.d.ts.map +1 -1
  203. package/dist/types/tsconfig.tsbuildinfo +1 -1
  204. package/package.json +69 -63
  205. package/src/ThreadPlugin.tsx +137 -129
  206. package/src/calls/call-manager.ts +2 -2
  207. package/src/calls/call-swarm-synchronizer.ts +1 -1
  208. package/src/calls/media-manager.ts +66 -37
  209. package/src/calls/types.ts +8 -4
  210. package/src/calls/util/calls-service.ts +65 -14
  211. package/src/calls/util/stub-media-streams.ts +64 -7
  212. package/src/calls-service.stories.tsx +78 -65
  213. package/src/capabilities/app-graph-builder.ts +47 -33
  214. package/src/capabilities/blueprint-definition.ts +38 -0
  215. package/src/capabilities/call-manager.ts +3 -2
  216. package/src/capabilities/capabilities.ts +8 -8
  217. package/src/capabilities/index.ts +2 -0
  218. package/src/capabilities/intent-resolver.ts +32 -35
  219. package/src/capabilities/markdown.ts +9 -6
  220. package/src/capabilities/react-root.tsx +2 -2
  221. package/src/capabilities/react-surface.tsx +29 -26
  222. package/src/capabilities/repair.ts +40 -0
  223. package/src/capabilities/state.ts +2 -1
  224. package/src/components/Call/Call.tsx +4 -3
  225. package/src/components/Call/Toolbar.tsx +10 -10
  226. package/src/components/CallDebugPanel.tsx +112 -55
  227. package/src/components/CallSidebar.tsx +3 -2
  228. package/src/components/ChannelContainer.stories.tsx +15 -14
  229. package/src/components/ChannelContainer.tsx +25 -20
  230. package/src/components/Chat.stories.tsx +33 -36
  231. package/src/components/ChatContainer.tsx +35 -23
  232. package/src/components/Comments.stories.tsx +39 -41
  233. package/src/components/CommentsContainer.tsx +7 -8
  234. package/src/components/CommentsThreadContainer.tsx +39 -33
  235. package/src/components/Lobby/Lobby.tsx +2 -2
  236. package/src/components/Media/VideoObject.stories.tsx +36 -28
  237. package/src/components/Media/VideoObject.tsx +1 -1
  238. package/src/components/MessageContainer.tsx +53 -17
  239. package/src/components/Participant/Participant.tsx +14 -8
  240. package/src/components/Participant/ParticipantGrid.tsx +2 -1
  241. package/src/components/ResponsiveGrid/ResponsiveContainer.stories.tsx +8 -8
  242. package/src/components/ResponsiveGrid/ResponsiveContainer.tsx +2 -2
  243. package/src/components/ResponsiveGrid/ResponsiveGrid.stories.tsx +45 -43
  244. package/src/components/ResponsiveGrid/ResponsiveGrid.tsx +6 -6
  245. package/src/components/ResponsiveGrid/ResponsiveGridItem.tsx +7 -4
  246. package/src/components/{ThreadComplementary.tsx → ThreadCompanion.tsx} +72 -35
  247. package/src/components/ThreadSettings.tsx +6 -7
  248. package/src/components/command-extension.ts +5 -2
  249. package/src/components/index.ts +4 -4
  250. package/src/components/testing.ts +26 -6
  251. package/src/extensions/threads.ts +31 -21
  252. package/src/functions/create-proposals.ts +56 -0
  253. package/src/functions/index.ts +5 -0
  254. package/src/hooks/analytics.ts +4 -7
  255. package/src/hooks/index.ts +3 -1
  256. package/src/hooks/useBlackCanvasStreamTrack.tsx +27 -0
  257. package/src/hooks/useDebugMode.ts +1 -1
  258. package/src/hooks/useVideoStreamTrack.tsx +6 -3
  259. package/src/meta.ts +9 -5
  260. package/src/testing/stories.ts +5 -8
  261. package/src/translations.ts +9 -4
  262. package/src/types/Channel.ts +26 -0
  263. package/src/types/index.ts +1 -1
  264. package/src/types/types.ts +31 -30
  265. package/src/typings/peermetrics-webrtc-stats.d.ts +17 -1
  266. package/src/typings.d.ts +8 -0
  267. package/src/util.ts +1 -1
  268. package/dist/lib/browser/ChannelContainer-3GIE7ASU.mjs +0 -16
  269. package/dist/lib/browser/ChatContainer-AIGIWAUG.mjs +0 -15
  270. package/dist/lib/browser/app-graph-builder-N7BE5TYW.mjs.map +0 -7
  271. package/dist/lib/browser/call-manager-NIPDYUVD.mjs.map +0 -7
  272. package/dist/lib/browser/chunk-3SGRT4NM.mjs +0 -367
  273. package/dist/lib/browser/chunk-3SGRT4NM.mjs.map +0 -7
  274. package/dist/lib/browser/chunk-6NSMBO3B.mjs.map +0 -7
  275. package/dist/lib/browser/chunk-ERWASUQK.mjs.map +0 -7
  276. package/dist/lib/browser/chunk-EV4JWI7L.mjs +0 -17
  277. package/dist/lib/browser/chunk-EV4JWI7L.mjs.map +0 -7
  278. package/dist/lib/browser/chunk-FR7KJPNY.mjs +0 -21
  279. package/dist/lib/browser/chunk-FR7KJPNY.mjs.map +0 -7
  280. package/dist/lib/browser/chunk-GCLD5ESP.mjs +0 -137
  281. package/dist/lib/browser/chunk-GCLD5ESP.mjs.map +0 -7
  282. package/dist/lib/browser/chunk-GERVMFQW.mjs.map +0 -7
  283. package/dist/lib/browser/chunk-KWPRNHTK.mjs.map +0 -7
  284. package/dist/lib/browser/chunk-LGSDKXPF.mjs +0 -18
  285. package/dist/lib/browser/chunk-LGSDKXPF.mjs.map +0 -7
  286. package/dist/lib/browser/chunk-VUWC4IJM.mjs +0 -479
  287. package/dist/lib/browser/chunk-VUWC4IJM.mjs.map +0 -7
  288. package/dist/lib/browser/chunk-ZE7KWN36.mjs.map +0 -7
  289. package/dist/lib/browser/intent-resolver-JFGLZ6VI.mjs.map +0 -7
  290. package/dist/lib/browser/markdown-M3FMR7OD.mjs.map +0 -7
  291. package/dist/lib/browser/react-root-JEUSQXI6.mjs +0 -28
  292. package/dist/lib/browser/react-root-JEUSQXI6.mjs.map +0 -7
  293. package/dist/lib/browser/react-surface-XWS6GIZY.mjs.map +0 -7
  294. package/dist/lib/browser/state-H6CYONWE.mjs.map +0 -7
  295. package/dist/lib/node-esm/ChannelContainer-7FXCKO7X.mjs +0 -17
  296. package/dist/lib/node-esm/ChatContainer-IQUWU426.mjs +0 -16
  297. package/dist/lib/node-esm/app-graph-builder-VCW76Z6V.mjs.map +0 -7
  298. package/dist/lib/node-esm/call-manager-D6O5ZJJ4.mjs.map +0 -7
  299. package/dist/lib/node-esm/chunk-25ABSYP2.mjs.map +0 -7
  300. package/dist/lib/node-esm/chunk-2CXOK2TD.mjs +0 -23
  301. package/dist/lib/node-esm/chunk-2CXOK2TD.mjs.map +0 -7
  302. package/dist/lib/node-esm/chunk-2MFNK53T.mjs +0 -480
  303. package/dist/lib/node-esm/chunk-2MFNK53T.mjs.map +0 -7
  304. package/dist/lib/node-esm/chunk-57XR3LEF.mjs.map +0 -7
  305. package/dist/lib/node-esm/chunk-75RJ5DJI.mjs +0 -19
  306. package/dist/lib/node-esm/chunk-75RJ5DJI.mjs.map +0 -7
  307. package/dist/lib/node-esm/chunk-C3XFMUAY.mjs.map +0 -7
  308. package/dist/lib/node-esm/chunk-FLBFYGBK.mjs +0 -368
  309. package/dist/lib/node-esm/chunk-FLBFYGBK.mjs.map +0 -7
  310. package/dist/lib/node-esm/chunk-GRLRWTRU.mjs +0 -19
  311. package/dist/lib/node-esm/chunk-GRLRWTRU.mjs.map +0 -7
  312. package/dist/lib/node-esm/chunk-IHDNQLLR.mjs.map +0 -7
  313. package/dist/lib/node-esm/chunk-OU5BYIDO.mjs.map +0 -7
  314. package/dist/lib/node-esm/chunk-TDFHTCZZ.mjs +0 -138
  315. package/dist/lib/node-esm/chunk-TDFHTCZZ.mjs.map +0 -7
  316. package/dist/lib/node-esm/intent-resolver-OXGNQ44Y.mjs.map +0 -7
  317. package/dist/lib/node-esm/markdown-INKTE4MH.mjs.map +0 -7
  318. package/dist/lib/node-esm/react-root-XYYY2JXZ.mjs +0 -29
  319. package/dist/lib/node-esm/react-root-XYYY2JXZ.mjs.map +0 -7
  320. package/dist/lib/node-esm/react-surface-MJ33KPYE.mjs.map +0 -7
  321. package/dist/lib/node-esm/state-D7WNDT3N.mjs.map +0 -7
  322. package/dist/types/src/components/ThreadComplementary.d.ts +0 -5
  323. package/dist/types/src/components/ThreadComplementary.d.ts.map +0 -1
  324. package/dist/types/src/types/schema.d.ts +0 -162
  325. package/dist/types/src/types/schema.d.ts.map +0 -1
  326. package/src/types/schema.ts +0 -33
  327. /package/dist/lib/browser/{ChannelContainer-3GIE7ASU.mjs.map → ChannelContainer-L7MKV7DS.mjs.map} +0 -0
  328. /package/dist/lib/browser/{ChatContainer-AIGIWAUG.mjs.map → ChatContainer-KPY4BAUE.mjs.map} +0 -0
  329. /package/dist/lib/{node-esm/ChannelContainer-7FXCKO7X.mjs.map → browser/chunk-J5LGTIGS.mjs.map} +0 -0
  330. /package/dist/lib/node-esm/{ChatContainer-IQUWU426.mjs.map → ChannelContainer-FYONOOZ6.mjs.map} +0 -0
@@ -1,74 +1,57 @@
1
- import { Schema } from 'effect';
2
- import { Type } from '@dxos/echo';
3
- import { AnchoredTo } from '@dxos/schema';
4
- import { ChannelType, ThreadType } from './schema';
1
+ import * as Schema from 'effect/Schema';
2
+ import { Key } from '@dxos/echo';
3
+ import { AnchoredTo, Thread } from '@dxos/types';
4
+ import * as Channel from './Channel';
5
5
  export declare namespace ThreadAction {
6
- const OnSpaceCreated_base: Schema.TaggedClass<OnSpaceCreated, "dxos.org/plugin/thread/action/on-space-created", {
7
- readonly _tag: Schema.tag<"dxos.org/plugin/thread/action/on-space-created">;
6
+ const OnCreateSpace_base: Schema.TaggedClass<OnCreateSpace, `${string}/action/on-space-created`, {
7
+ readonly _tag: Schema.tag<`${string}/action/on-space-created`>;
8
8
  } & {
9
9
  input: Schema.Struct<{
10
10
  space: Schema.Schema<import("@dxos/client-protocol").Space, import("@dxos/client-protocol").Space, never>;
11
- rootCollection: Type.obj<Schema.Struct<{
12
- name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
13
- objects: import("effect/Schema").mutable<import("effect/Schema").Array$<import("@dxos/echo/Type").ref<import("effect/Schema").Schema<import("@dxos/echo/Type").Expando, {
14
- [x: string]: any;
15
- id: string;
16
- }, never>>>>;
11
+ rootCollection: import("@dxos/echo/Type").obj<Schema.Struct<{
12
+ name: Schema.optional<typeof Schema.String>;
13
+ objects: Schema.mutable<Schema.Array$<import("@dxos/echo/internal").RefSchema<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {}>>>;
17
14
  }>>;
15
+ isDefault: Schema.optional<typeof Schema.Boolean>;
18
16
  }>;
19
17
  output: typeof Schema.Void;
20
18
  }>;
21
- export class OnSpaceCreated extends OnSpaceCreated_base {
19
+ export class OnCreateSpace extends OnCreateSpace_base {
22
20
  }
23
- const CreateChannel_base: Schema.TaggedClass<CreateChannel, "dxos.org/plugin/thread/action/create-channel", {
24
- readonly _tag: Schema.tag<"dxos.org/plugin/thread/action/create-channel">;
21
+ const CreateChannel_base: Schema.TaggedClass<CreateChannel, `${string}/action/create-channel`, {
22
+ readonly _tag: Schema.tag<`${string}/action/create-channel`>;
25
23
  } & {
26
24
  input: Schema.Struct<{
27
- spaceId: Schema.Schema<Type.SpaceId, string, never> & {
25
+ spaceId: Schema.Schema<Key.SpaceId, string, never> & {
28
26
  byteLength: number;
29
- encode: (value: Uint8Array) => Type.SpaceId;
30
- decode: (value: Type.SpaceId) => Uint8Array;
31
- isValid: (value: string) => value is Type.SpaceId;
32
- make: (value: string) => Type.SpaceId;
33
- random: () => Type.SpaceId;
27
+ encode: (value: Uint8Array) => Key.SpaceId;
28
+ decode: (value: Key.SpaceId) => Uint8Array;
29
+ isValid: (value: unknown) => value is Key.SpaceId;
30
+ make: (value: string) => Key.SpaceId;
31
+ random: () => Key.SpaceId;
34
32
  };
35
33
  name: Schema.optional<typeof Schema.String>;
36
34
  }>;
37
35
  output: Schema.Struct<{
38
- object: Type.obj<Schema.Schema<ChannelType, {
39
- id: string;
40
- defaultThread: import("@dxos/echo-protocol").EncodedReference;
41
- threads: import("@dxos/echo-protocol").EncodedReference[];
42
- name?: string | undefined;
43
- }, never>>;
36
+ object: Schema.Schema<Channel.Channel, Channel.ChannelEncoded, never>;
44
37
  }>;
45
38
  }>;
46
39
  export class CreateChannel extends CreateChannel_base {
47
40
  }
48
- const CreateChannelThread_base: Schema.TaggedClass<CreateChannelThread, "dxos.org/plugin/thread/action/create-channel-thread", {
49
- readonly _tag: Schema.tag<"dxos.org/plugin/thread/action/create-channel-thread">;
41
+ const CreateChannelThread_base: Schema.TaggedClass<CreateChannelThread, `${string}/action/create-channel-thread`, {
42
+ readonly _tag: Schema.tag<`${string}/action/create-channel-thread`>;
50
43
  } & {
51
44
  input: Schema.Struct<{
52
- channel: Type.obj<Schema.Schema<ChannelType, {
53
- id: string;
54
- defaultThread: import("@dxos/echo-protocol").EncodedReference;
55
- threads: import("@dxos/echo-protocol").EncodedReference[];
56
- name?: string | undefined;
57
- }, never>>;
45
+ channel: Schema.Schema<Channel.Channel, Channel.ChannelEncoded, never>;
58
46
  }>;
59
47
  output: Schema.Struct<{
60
- object: Type.obj<Schema.Schema<ThreadType, {
61
- id: string;
62
- messages: import("@dxos/echo-protocol").EncodedReference[];
63
- name?: string | undefined;
64
- status?: "staged" | "active" | "resolved" | undefined;
65
- }, never>>;
48
+ object: Schema.Schema<Thread.Thread, Thread.ThreadEncoded, never>;
66
49
  }>;
67
50
  }>;
68
51
  export class CreateChannelThread extends CreateChannelThread_base {
69
52
  }
70
- const Create_base: Schema.TaggedClass<Create, "dxos.org/plugin/thread/action/create", {
71
- readonly _tag: Schema.tag<"dxos.org/plugin/thread/action/create">;
53
+ const Create_base: Schema.TaggedClass<Create, `${string}/action/create`, {
54
+ readonly _tag: Schema.tag<`${string}/action/create`>;
72
55
  } & {
73
56
  input: Schema.Struct<{
74
57
  name: Schema.optional<typeof Schema.String>;
@@ -79,34 +62,23 @@ export declare namespace ThreadAction {
79
62
  }>;
80
63
  export class Create extends Create_base {
81
64
  }
82
- const Delete_base: Schema.TaggedClass<Delete, "dxos.org/plugin/thread/action/delete", {
83
- readonly _tag: Schema.tag<"dxos.org/plugin/thread/action/delete">;
65
+ const Delete_base: Schema.TaggedClass<Delete, `${string}/action/delete`, {
66
+ readonly _tag: Schema.tag<`${string}/action/delete`>;
84
67
  } & {
85
68
  input: Schema.Struct<{
86
- anchor: Type.relation<Schema.Struct<{
69
+ anchor: import("@dxos/echo/Type").relation<Schema.Struct<{
87
70
  id: import("@dxos/keys").ObjectIdClass;
88
71
  anchor: Schema.optional<typeof Schema.String>;
89
- }>, Schema.Schema<Type.Expando, {
90
- [x: string]: any;
91
- id: string;
92
- }, never>, Schema.Schema<Type.Expando, {
93
- [x: string]: any;
94
- id: string;
95
- }, never>>;
72
+ }>, import("@dxos/echo/Type").obj<Schema.Schema<import("@dxos/echo/internal").Expando, import("@dxos/echo/internal").ExpandoEncoded, never>>, import("@dxos/echo/Type").obj<Schema.Schema<import("@dxos/echo/internal").Expando, import("@dxos/echo/internal").ExpandoEncoded, never>>>;
96
73
  subject: Schema.Schema<any, any, never>;
97
- thread: Schema.optional<Type.obj<Schema.Schema<ThreadType, {
98
- id: string;
99
- messages: import("@dxos/echo-protocol").EncodedReference[];
100
- name?: string | undefined;
101
- status?: "staged" | "active" | "resolved" | undefined;
102
- }, never>>>;
74
+ thread: Schema.optional<Schema.Schema<Thread.Thread, Thread.ThreadEncoded, never>>;
103
75
  }>;
104
76
  output: typeof Schema.Void;
105
77
  }>;
106
78
  export class Delete extends Delete_base {
107
79
  }
108
- const Select_base: Schema.TaggedClass<Select, "dxos.org/plugin/thread/action/select", {
109
- readonly _tag: Schema.tag<"dxos.org/plugin/thread/action/select">;
80
+ const Select_base: Schema.TaggedClass<Select, `${string}/action/select`, {
81
+ readonly _tag: Schema.tag<`${string}/action/select`>;
110
82
  } & {
111
83
  input: Schema.Struct<{
112
84
  current: typeof Schema.String;
@@ -115,93 +87,83 @@ export declare namespace ThreadAction {
115
87
  }>;
116
88
  export class Select extends Select_base {
117
89
  }
118
- const ToggleResolved_base: Schema.TaggedClass<ToggleResolved, "dxos.org/plugin/thread/action/toggle-resolved", {
119
- readonly _tag: Schema.tag<"dxos.org/plugin/thread/action/toggle-resolved">;
90
+ const ToggleResolved_base: Schema.TaggedClass<ToggleResolved, `${string}/action/toggle-resolved`, {
91
+ readonly _tag: Schema.tag<`${string}/action/toggle-resolved`>;
120
92
  } & {
121
93
  input: Schema.Struct<{
122
- thread: Type.obj<Schema.Schema<ThreadType, {
123
- id: string;
124
- messages: import("@dxos/echo-protocol").EncodedReference[];
125
- name?: string | undefined;
126
- status?: "staged" | "active" | "resolved" | undefined;
127
- }, never>>;
94
+ thread: Schema.Schema<Thread.Thread, Thread.ThreadEncoded, never>;
128
95
  }>;
129
96
  output: typeof Schema.Void;
130
97
  }>;
131
98
  export class ToggleResolved extends ToggleResolved_base {
132
99
  }
133
- const AddMessage_base: Schema.TaggedClass<AddMessage, "dxos.org/plugin/thread/action/add-message", {
134
- readonly _tag: Schema.tag<"dxos.org/plugin/thread/action/add-message">;
100
+ const AddMessage_base: Schema.TaggedClass<AddMessage, `${string}/action/add-message`, {
101
+ readonly _tag: Schema.tag<`${string}/action/add-message`>;
135
102
  } & {
136
103
  input: Schema.Struct<{
137
104
  subject: Schema.Schema<any, any, never>;
138
- anchor: Type.relation<Schema.Struct<{
105
+ anchor: import("@dxos/echo/Type").relation<Schema.Struct<{
139
106
  id: import("@dxos/keys").ObjectIdClass;
140
107
  anchor: Schema.optional<typeof Schema.String>;
141
- }>, Schema.Schema<Type.Expando, {
142
- [x: string]: any;
143
- id: string;
144
- }, never>, Schema.Schema<Type.Expando, {
145
- [x: string]: any;
146
- id: string;
147
- }, never>>;
108
+ }>, import("@dxos/echo/Type").obj<Schema.Schema<import("@dxos/echo/internal").Expando, import("@dxos/echo/internal").ExpandoEncoded, never>>, import("@dxos/echo/Type").obj<Schema.Schema<import("@dxos/echo/internal").Expando, import("@dxos/echo/internal").ExpandoEncoded, never>>>;
148
109
  sender: Schema.Struct<{
149
- contact: import("effect/Schema").optional<import("@dxos/echo/Type").ref<import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
150
- fullName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
151
- preferredName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
152
- nickname: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
153
- image: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
154
- organization: import("effect/Schema").optional<import("effect/Schema").Schema<import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
155
- id: string;
156
- name?: string | undefined;
110
+ role: Schema.optional<Schema.Literal<["user", "assistant", "tool"]>>;
111
+ contact: Schema.optional<import("@dxos/echo/internal").RefSchema<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
112
+ image?: string | undefined;
113
+ fullName?: string | undefined;
114
+ preferredName?: string | undefined;
115
+ nickname?: string | undefined;
116
+ organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
157
117
  description?: string | undefined;
118
+ name?: string | undefined;
158
119
  status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
159
120
  image?: string | undefined;
160
121
  website?: string | undefined;
161
- }>, import("@dxos/echo-protocol").EncodedReference, never>>;
162
- jobTitle: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
163
- department: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
164
- notes: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
165
- emails: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
166
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
167
- value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
168
- }>>>>;
169
- identities: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
170
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
171
- value: typeof import("effect/Schema").String;
172
- }>>>>;
173
- phoneNumbers: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
174
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
175
- value: typeof import("effect/Schema").String;
176
- }>>>>;
177
- addresses: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
178
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
179
- value: import("effect/Schema").Struct<{
180
- street: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
181
- extended: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
182
- locality: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
183
- region: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
184
- postalCode: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
185
- postOfficeBoxNumber: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
186
- country: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
187
- }>;
188
- }>>>>;
189
- urls: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
190
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
191
- value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
192
- }>>>>;
193
- birthday: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").SchemaClass<string, string, never>>>;
194
- fields: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
195
- category: import("effect/Schema").optional<typeof import("effect/Schema").String>;
196
- label: typeof import("effect/Schema").String;
197
- value: typeof import("effect/Schema").String;
198
- }>>>>;
199
- }>>>>;
200
- identityDid: import("effect/Schema").optional<typeof import("effect/Schema").String>;
201
- identityKey: import("effect/Schema").optional<typeof import("effect/Schema").String>;
202
- email: import("effect/Schema").optional<typeof import("effect/Schema").String>;
203
- name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
204
- role: import("effect/Schema").optional<import("effect/Schema").Literal<["user", "assistant"]>>;
122
+ location?: readonly [number, number, (number | undefined)?] | undefined;
123
+ }> | undefined;
124
+ jobTitle?: string | undefined;
125
+ department?: string | undefined;
126
+ notes?: string | undefined;
127
+ emails?: {
128
+ readonly value: string;
129
+ readonly label?: string | undefined;
130
+ }[] | undefined;
131
+ identities?: {
132
+ readonly value: string;
133
+ readonly label?: string | undefined;
134
+ }[] | undefined;
135
+ phoneNumbers?: {
136
+ readonly value: string;
137
+ readonly label?: string | undefined;
138
+ }[] | undefined;
139
+ fields?: {
140
+ readonly value: string;
141
+ readonly label: string;
142
+ readonly category?: string | undefined;
143
+ }[] | undefined;
144
+ addresses?: {
145
+ readonly value: {
146
+ readonly street?: string | undefined;
147
+ readonly extended?: string | undefined;
148
+ readonly locality?: string | undefined;
149
+ readonly region?: string | undefined;
150
+ readonly postalCode?: string | undefined;
151
+ readonly postOfficeBoxNumber?: string | undefined;
152
+ readonly country?: string | undefined;
153
+ };
154
+ readonly label?: string | undefined;
155
+ }[] | undefined;
156
+ urls?: {
157
+ readonly value: string;
158
+ readonly label?: string | undefined;
159
+ }[] | undefined;
160
+ birthday?: string | undefined;
161
+ location?: readonly [number, number, (number | undefined)?] | undefined;
162
+ }>>;
163
+ identityDid: Schema.optional<typeof Schema.String>;
164
+ identityKey: Schema.optional<typeof Schema.String>;
165
+ email: Schema.optional<typeof Schema.String>;
166
+ name: Schema.optional<typeof Schema.String>;
205
167
  }>;
206
168
  text: typeof Schema.String;
207
169
  }>;
@@ -209,153 +171,162 @@ export declare namespace ThreadAction {
209
171
  }>;
210
172
  export class AddMessage extends AddMessage_base {
211
173
  }
212
- const DeleteMessage_base: Schema.TaggedClass<DeleteMessage, "dxos.org/plugin/thread/action/delete-message", {
213
- readonly _tag: Schema.tag<"dxos.org/plugin/thread/action/delete-message">;
174
+ const DeleteMessage_base: Schema.TaggedClass<DeleteMessage, `${string}/action/delete-message`, {
175
+ readonly _tag: Schema.tag<`${string}/action/delete-message`>;
214
176
  } & {
215
177
  input: Schema.Struct<{
216
- anchor: Type.relation<Schema.Struct<{
178
+ anchor: import("@dxos/echo/Type").relation<Schema.Struct<{
217
179
  id: import("@dxos/keys").ObjectIdClass;
218
180
  anchor: Schema.optional<typeof Schema.String>;
219
- }>, Schema.Schema<Type.Expando, {
220
- [x: string]: any;
221
- id: string;
222
- }, never>, Schema.Schema<Type.Expando, {
223
- [x: string]: any;
224
- id: string;
225
- }, never>>;
181
+ }>, import("@dxos/echo/Type").obj<Schema.Schema<import("@dxos/echo/internal").Expando, import("@dxos/echo/internal").ExpandoEncoded, never>>, import("@dxos/echo/Type").obj<Schema.Schema<import("@dxos/echo/internal").Expando, import("@dxos/echo/internal").ExpandoEncoded, never>>>;
226
182
  subject: Schema.Schema<any, any, never>;
227
183
  messageId: typeof Schema.String;
228
- message: Schema.optional<Type.obj<Schema.Struct<{
184
+ message: Schema.optional<import("@dxos/echo/Type").obj<Schema.Struct<{
229
185
  id: import("@dxos/keys").ObjectIdClass;
230
- created: import("effect/Schema").SchemaClass<string, string, never>;
231
- sender: import("effect/Schema").mutable<import("effect/Schema").Struct<{
232
- contact: import("effect/Schema").optional<import("@dxos/echo/Type").ref<import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
233
- fullName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
234
- preferredName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
235
- nickname: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
236
- image: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
237
- organization: import("effect/Schema").optional<import("effect/Schema").Schema<import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
238
- id: string;
239
- name?: string | undefined;
186
+ parentMessage: Schema.optional<import("@dxos/keys").ObjectIdClass>;
187
+ created: Schema.SchemaClass<string, string, never>;
188
+ sender: Schema.mutable<Schema.Struct<{
189
+ role: Schema.optional<Schema.Literal<["user", "assistant", "tool"]>>;
190
+ contact: Schema.optional<import("@dxos/echo/internal").RefSchema<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
191
+ image?: string | undefined;
192
+ fullName?: string | undefined;
193
+ preferredName?: string | undefined;
194
+ nickname?: string | undefined;
195
+ organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
240
196
  description?: string | undefined;
197
+ name?: string | undefined;
241
198
  status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
242
199
  image?: string | undefined;
243
200
  website?: string | undefined;
244
- }>, import("@dxos/echo-protocol").EncodedReference, never>>;
245
- jobTitle: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
246
- department: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
247
- notes: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
248
- emails: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
249
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
250
- value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
251
- }>>>>;
252
- identities: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
253
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
254
- value: typeof import("effect/Schema").String;
255
- }>>>>;
256
- phoneNumbers: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
257
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
258
- value: typeof import("effect/Schema").String;
259
- }>>>>;
260
- addresses: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
261
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
262
- value: import("effect/Schema").Struct<{
263
- street: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
264
- extended: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
265
- locality: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
266
- region: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
267
- postalCode: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
268
- postOfficeBoxNumber: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
269
- country: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
270
- }>;
271
- }>>>>;
272
- urls: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
273
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
274
- value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
275
- }>>>>;
276
- birthday: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").SchemaClass<string, string, never>>>;
277
- fields: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
278
- category: import("effect/Schema").optional<typeof import("effect/Schema").String>;
279
- label: typeof import("effect/Schema").String;
280
- value: typeof import("effect/Schema").String;
281
- }>>>>;
282
- }>>>>;
283
- identityDid: import("effect/Schema").optional<typeof import("effect/Schema").String>;
284
- identityKey: import("effect/Schema").optional<typeof import("effect/Schema").String>;
285
- email: import("effect/Schema").optional<typeof import("effect/Schema").String>;
286
- name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
287
- role: import("effect/Schema").optional<import("effect/Schema").Literal<["user", "assistant"]>>;
201
+ location?: readonly [number, number, (number | undefined)?] | undefined;
202
+ }> | undefined;
203
+ jobTitle?: string | undefined;
204
+ department?: string | undefined;
205
+ notes?: string | undefined;
206
+ emails?: {
207
+ readonly value: string;
208
+ readonly label?: string | undefined;
209
+ }[] | undefined;
210
+ identities?: {
211
+ readonly value: string;
212
+ readonly label?: string | undefined;
213
+ }[] | undefined;
214
+ phoneNumbers?: {
215
+ readonly value: string;
216
+ readonly label?: string | undefined;
217
+ }[] | undefined;
218
+ fields?: {
219
+ readonly value: string;
220
+ readonly label: string;
221
+ readonly category?: string | undefined;
222
+ }[] | undefined;
223
+ addresses?: {
224
+ readonly value: {
225
+ readonly street?: string | undefined;
226
+ readonly extended?: string | undefined;
227
+ readonly locality?: string | undefined;
228
+ readonly region?: string | undefined;
229
+ readonly postalCode?: string | undefined;
230
+ readonly postOfficeBoxNumber?: string | undefined;
231
+ readonly country?: string | undefined;
232
+ };
233
+ readonly label?: string | undefined;
234
+ }[] | undefined;
235
+ urls?: {
236
+ readonly value: string;
237
+ readonly label?: string | undefined;
238
+ }[] | undefined;
239
+ birthday?: string | undefined;
240
+ location?: readonly [number, number, (number | undefined)?] | undefined;
241
+ }>>;
242
+ identityDid: Schema.optional<typeof Schema.String>;
243
+ identityKey: Schema.optional<typeof Schema.String>;
244
+ email: Schema.optional<typeof Schema.String>;
245
+ name: Schema.optional<typeof Schema.String>;
288
246
  }>>;
289
- blocks: import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"anchor", {
290
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
247
+ blocks: Schema.mutable<Schema.Array$<Schema.Union<[Schema.mutable<Schema.TaggedStruct<"anchor", {
248
+ pending: Schema.optional<typeof Schema.Boolean>;
291
249
  objectId: import("@dxos/keys").ObjectIdClass;
292
- version: typeof import("effect/Schema").Unknown;
293
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"file", {
294
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
295
- url: typeof import("effect/Schema").String;
296
- name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
297
- mediaType: import("effect/Schema").optional<typeof import("effect/Schema").String>;
298
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"image", {
299
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
300
- id: import("effect/Schema").optional<typeof import("effect/Schema").String>;
301
- source: import("effect/Schema").optional<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").Struct<{
302
- type: import("effect/Schema").Literal<["base64"]>;
303
- mediaType: typeof import("effect/Schema").String;
304
- data: typeof import("effect/Schema").String;
305
- }>>, import("effect/Schema").mutable<import("effect/Schema").Struct<{
306
- type: import("effect/Schema").Literal<["http"]>;
307
- url: typeof import("effect/Schema").String;
250
+ version: typeof Schema.Unknown;
251
+ }>>, Schema.mutable<Schema.TaggedStruct<"file", {
252
+ pending: Schema.optional<typeof Schema.Boolean>;
253
+ url: typeof Schema.String;
254
+ name: Schema.optional<typeof Schema.String>;
255
+ mediaType: Schema.optional<typeof Schema.String>;
256
+ }>>, Schema.mutable<Schema.TaggedStruct<"image", {
257
+ pending: Schema.optional<typeof Schema.Boolean>;
258
+ id: Schema.optional<typeof Schema.String>;
259
+ source: Schema.optional<Schema.Union<[Schema.mutable<Schema.Struct<{
260
+ type: Schema.Literal<["base64"]>;
261
+ mediaType: typeof Schema.String;
262
+ data: typeof Schema.String;
263
+ }>>, Schema.mutable<Schema.Struct<{
264
+ type: Schema.Literal<["http"]>;
265
+ url: typeof Schema.String;
308
266
  }>>]>>;
309
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"json", {
310
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
311
- disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
312
- data: typeof import("effect/Schema").String;
313
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"proposal", {
314
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
315
- text: typeof import("effect/Schema").String;
316
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"reasoning", {
317
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
318
- reasoningText: import("effect/Schema").optional<typeof import("effect/Schema").String>;
319
- redactedText: import("effect/Schema").optional<typeof import("effect/Schema").String>;
320
- signature: import("effect/Schema").optional<typeof import("effect/Schema").String>;
321
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"reference", {
322
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
323
- reference: import("@dxos/echo/Type").ref<import("effect/Schema").Schema<import("@dxos/echo/Type").Expando, {
324
- [x: string]: any;
325
- id: string;
326
- }, never>>;
327
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"select", {
328
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
329
- options: import("effect/Schema").Array$<typeof import("effect/Schema").String>;
330
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"status", {
331
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
332
- statusText: typeof import("effect/Schema").String;
333
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"suggest", {
334
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
335
- text: typeof import("effect/Schema").String;
336
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"text", {
337
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
338
- mimeType: import("effect/Schema").optional<typeof import("effect/Schema").String>;
339
- text: typeof import("effect/Schema").String;
340
- disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
341
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"toolCall", {
342
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
343
- toolCallId: typeof import("effect/Schema").String;
344
- name: typeof import("effect/Schema").String;
345
- input: typeof import("effect/Schema").Unknown;
346
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"toolList", {
347
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
348
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"toolResult", {
349
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
350
- toolCallId: typeof import("effect/Schema").String;
351
- name: typeof import("effect/Schema").String;
352
- result: typeof import("effect/Schema").Unknown;
353
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"transcript", {
354
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
355
- started: typeof import("effect/Schema").String;
356
- text: typeof import("effect/Schema").String;
267
+ }>>, Schema.mutable<Schema.TaggedStruct<"json", {
268
+ pending: Schema.optional<typeof Schema.Boolean>;
269
+ disposition: Schema.optional<typeof Schema.String>;
270
+ data: typeof Schema.String;
271
+ }>>, Schema.mutable<Schema.TaggedStruct<"proposal", {
272
+ pending: Schema.optional<typeof Schema.Boolean>;
273
+ text: typeof Schema.String;
274
+ }>>, Schema.mutable<Schema.TaggedStruct<"reasoning", {
275
+ pending: Schema.optional<typeof Schema.Boolean>;
276
+ reasoningText: Schema.optional<typeof Schema.String>;
277
+ redactedText: Schema.optional<typeof Schema.String>;
278
+ signature: Schema.optional<typeof Schema.String>;
279
+ }>>, Schema.mutable<Schema.TaggedStruct<"reference", {
280
+ pending: Schema.optional<typeof Schema.Boolean>;
281
+ reference: import("@dxos/echo/internal").RefSchema<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {}>;
282
+ }>>, Schema.mutable<Schema.TaggedStruct<"select", {
283
+ pending: Schema.optional<typeof Schema.Boolean>;
284
+ options: Schema.Array$<typeof Schema.String>;
285
+ }>>, Schema.mutable<Schema.TaggedStruct<"status", {
286
+ pending: Schema.optional<typeof Schema.Boolean>;
287
+ statusText: typeof Schema.String;
288
+ }>>, Schema.mutable<Schema.TaggedStruct<"suggestion", {
289
+ pending: Schema.optional<typeof Schema.Boolean>;
290
+ text: typeof Schema.String;
291
+ }>>, Schema.mutable<Schema.TaggedStruct<"summary", {
292
+ pending: Schema.optional<typeof Schema.Boolean>;
293
+ mimeType: Schema.optional<typeof Schema.String>;
294
+ message: Schema.optional<typeof Schema.String>;
295
+ model: Schema.optional<typeof Schema.String>;
296
+ usage: Schema.optional<Schema.Struct<{
297
+ inputTokens: Schema.optional<typeof Schema.Number>;
298
+ outputTokens: Schema.optional<typeof Schema.Number>;
299
+ totalTokens: Schema.optional<typeof Schema.Number>;
300
+ }>>;
301
+ toolCalls: Schema.optional<typeof Schema.Number>;
302
+ errors: Schema.optional<typeof Schema.Number>;
303
+ duration: Schema.optional<typeof Schema.Number>;
304
+ }>>, Schema.mutable<Schema.TaggedStruct<"text", {
305
+ pending: Schema.optional<typeof Schema.Boolean>;
306
+ mimeType: Schema.optional<typeof Schema.String>;
307
+ text: typeof Schema.String;
308
+ disposition: Schema.optional<typeof Schema.String>;
309
+ }>>, Schema.mutable<Schema.TaggedStruct<"toolkit", {
310
+ pending: Schema.optional<typeof Schema.Boolean>;
311
+ }>>, Schema.mutable<Schema.TaggedStruct<"toolCall", {
312
+ pending: Schema.optional<typeof Schema.Boolean>;
313
+ toolCallId: typeof Schema.String;
314
+ name: typeof Schema.String;
315
+ input: typeof Schema.String;
316
+ providerExecuted: typeof Schema.Boolean;
317
+ }>>, Schema.mutable<Schema.TaggedStruct<"toolResult", {
318
+ pending: Schema.optional<typeof Schema.Boolean>;
319
+ toolCallId: typeof Schema.String;
320
+ name: typeof Schema.String;
321
+ result: Schema.optional<typeof Schema.String>;
322
+ error: Schema.optional<typeof Schema.String>;
323
+ providerExecuted: typeof Schema.Boolean;
324
+ }>>, Schema.mutable<Schema.TaggedStruct<"transcript", {
325
+ pending: Schema.optional<typeof Schema.Boolean>;
326
+ started: typeof Schema.String;
327
+ text: typeof Schema.String;
357
328
  }>>]>>>;
358
- properties: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Any>>>;
329
+ properties: Schema.optional<Schema.mutable<Schema.Record$<typeof Schema.String, typeof Schema.Any>>>;
359
330
  }>>>;
360
331
  messageIndex: Schema.optional<typeof Schema.Number>;
361
332
  }>;
@@ -368,7 +339,7 @@ export declare namespace ThreadAction {
368
339
  export declare const ThreadSettingsSchema: Schema.mutable<Schema.Struct<{}>>;
369
340
  export type ThreadSettingsProps = Schema.Schema.Type<typeof ThreadSettingsSchema>;
370
341
  export interface ThreadModel {
371
- root: ThreadType;
342
+ root: Thread.Thread;
372
343
  }
373
344
  type SubjectId = string;
374
345
  export type ViewState = {
@@ -379,7 +350,7 @@ export type ThreadState = {
379
350
  /** Object toolbar state. */
380
351
  toolbar: Record<string, boolean>;
381
352
  /** In-memory draft threads. */
382
- drafts: Record<string, AnchoredTo[]>;
353
+ drafts: Record<string, AnchoredTo.AnchoredTo[]>;
383
354
  current?: string | undefined;
384
355
  };
385
356
  export {};