@dxos/plugin-thread 0.8.4-main.f5c0578 → 0.8.4-main.fcfe5033a5

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 (472) hide show
  1. package/dist/lib/browser/add-message-VPPFFLFL.mjs +97 -0
  2. package/dist/lib/browser/add-message-VPPFFLFL.mjs.map +7 -0
  3. package/dist/lib/browser/blueprints/index.mjs +37 -0
  4. package/dist/lib/browser/blueprints/index.mjs.map +7 -0
  5. package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
  6. package/dist/lib/browser/chunk-MESW3R4Q.mjs +61 -0
  7. package/dist/lib/browser/chunk-MESW3R4Q.mjs.map +7 -0
  8. package/dist/lib/browser/chunk-VPM44Z35.mjs +259 -0
  9. package/dist/lib/browser/chunk-VPM44Z35.mjs.map +7 -0
  10. package/dist/lib/browser/create-OQKG4S47.mjs +55 -0
  11. package/dist/lib/browser/create-OQKG4S47.mjs.map +7 -0
  12. package/dist/lib/browser/create-channel-EF67LCS6.mjs +21 -0
  13. package/dist/lib/browser/create-channel-EF67LCS6.mjs.map +7 -0
  14. package/dist/lib/browser/create-channel-thread-CCZTSWQ6.mjs +28 -0
  15. package/dist/lib/browser/create-channel-thread-CCZTSWQ6.mjs.map +7 -0
  16. package/dist/lib/browser/create-proposals-CMK7S7VS.mjs +57 -0
  17. package/dist/lib/browser/create-proposals-CMK7S7VS.mjs.map +7 -0
  18. package/dist/lib/browser/delete-FSFVU6ZA.mjs +59 -0
  19. package/dist/lib/browser/delete-FSFVU6ZA.mjs.map +7 -0
  20. package/dist/lib/browser/delete-message-XL5M5J33.mjs +64 -0
  21. package/dist/lib/browser/delete-message-XL5M5J33.mjs.map +7 -0
  22. package/dist/lib/browser/index.mjs +2253 -221
  23. package/dist/lib/browser/index.mjs.map +4 -4
  24. package/dist/lib/browser/meta.json +1 -1
  25. package/dist/lib/browser/on-create-space-VYS2JGVT.mjs +25 -0
  26. package/dist/lib/browser/on-create-space-VYS2JGVT.mjs.map +7 -0
  27. package/dist/lib/browser/operations/index.mjs +14 -0
  28. package/dist/lib/browser/operations/index.mjs.map +7 -0
  29. package/dist/lib/browser/restore-2ZGMKUSD.mjs +33 -0
  30. package/dist/lib/browser/restore-2ZGMKUSD.mjs.map +7 -0
  31. package/dist/lib/browser/restore-message-OYEGWPII.mjs +42 -0
  32. package/dist/lib/browser/restore-message-OYEGWPII.mjs.map +7 -0
  33. package/dist/lib/browser/select-VG2XLULE.mjs +26 -0
  34. package/dist/lib/browser/select-VG2XLULE.mjs.map +7 -0
  35. package/dist/lib/browser/toggle-resolved-MM6YC5BU.mjs +45 -0
  36. package/dist/lib/browser/toggle-resolved-MM6YC5BU.mjs.map +7 -0
  37. package/dist/lib/browser/types/index.mjs +8 -12
  38. package/dist/lib/node-esm/add-message-XWKHLNS6.mjs +98 -0
  39. package/dist/lib/node-esm/add-message-XWKHLNS6.mjs.map +7 -0
  40. package/dist/lib/node-esm/blueprints/index.mjs +38 -0
  41. package/dist/lib/node-esm/blueprints/index.mjs.map +7 -0
  42. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
  43. package/dist/lib/node-esm/chunk-JTHXNWKJ.mjs +260 -0
  44. package/dist/lib/node-esm/chunk-JTHXNWKJ.mjs.map +7 -0
  45. package/dist/lib/node-esm/chunk-SDRAQNSQ.mjs +62 -0
  46. package/dist/lib/node-esm/chunk-SDRAQNSQ.mjs.map +7 -0
  47. package/dist/lib/node-esm/create-6ZOFMMYA.mjs +56 -0
  48. package/dist/lib/node-esm/create-6ZOFMMYA.mjs.map +7 -0
  49. package/dist/lib/node-esm/create-channel-UYWUNB3L.mjs +22 -0
  50. package/dist/lib/node-esm/create-channel-UYWUNB3L.mjs.map +7 -0
  51. package/dist/lib/node-esm/create-channel-thread-UQF2SBHS.mjs +29 -0
  52. package/dist/lib/node-esm/create-channel-thread-UQF2SBHS.mjs.map +7 -0
  53. package/dist/lib/node-esm/create-proposals-5FJNURKH.mjs +58 -0
  54. package/dist/lib/node-esm/create-proposals-5FJNURKH.mjs.map +7 -0
  55. package/dist/lib/node-esm/delete-WRODXR3E.mjs +60 -0
  56. package/dist/lib/node-esm/delete-WRODXR3E.mjs.map +7 -0
  57. package/dist/lib/node-esm/delete-message-TAHCYTW2.mjs +65 -0
  58. package/dist/lib/node-esm/delete-message-TAHCYTW2.mjs.map +7 -0
  59. package/dist/lib/node-esm/index.mjs +2253 -221
  60. package/dist/lib/node-esm/index.mjs.map +4 -4
  61. package/dist/lib/node-esm/meta.json +1 -1
  62. package/dist/lib/node-esm/on-create-space-XDY2YXPV.mjs +26 -0
  63. package/dist/lib/node-esm/on-create-space-XDY2YXPV.mjs.map +7 -0
  64. package/dist/lib/node-esm/operations/index.mjs +15 -0
  65. package/dist/lib/node-esm/operations/index.mjs.map +7 -0
  66. package/dist/lib/node-esm/restore-T3QA7TSL.mjs +34 -0
  67. package/dist/lib/node-esm/restore-T3QA7TSL.mjs.map +7 -0
  68. package/dist/lib/node-esm/restore-message-WFTEVBEV.mjs +43 -0
  69. package/dist/lib/node-esm/restore-message-WFTEVBEV.mjs.map +7 -0
  70. package/dist/lib/node-esm/select-Q4UDWJJF.mjs +27 -0
  71. package/dist/lib/node-esm/select-Q4UDWJJF.mjs.map +7 -0
  72. package/dist/lib/node-esm/toggle-resolved-33XTAK2H.mjs +46 -0
  73. package/dist/lib/node-esm/toggle-resolved-33XTAK2H.mjs.map +7 -0
  74. package/dist/lib/node-esm/types/index.mjs +8 -12
  75. package/dist/types/src/ThreadPlugin.d.ts +2 -1
  76. package/dist/types/src/ThreadPlugin.d.ts.map +1 -1
  77. package/dist/types/src/blueprints/index.d.ts +2 -0
  78. package/dist/types/src/blueprints/index.d.ts.map +1 -0
  79. package/dist/types/src/blueprints/thread-blueprint.d.ts +4 -0
  80. package/dist/types/src/blueprints/thread-blueprint.d.ts.map +1 -0
  81. package/dist/types/src/calls/call-manager.d.ts +40 -30
  82. package/dist/types/src/calls/call-manager.d.ts.map +1 -1
  83. package/dist/types/src/calls/call-swarm-synchronizer.d.ts +2 -2
  84. package/dist/types/src/calls/call-swarm-synchronizer.d.ts.map +1 -1
  85. package/dist/types/src/calls/media-manager.d.ts +2 -2
  86. package/dist/types/src/calls/media-manager.d.ts.map +1 -1
  87. package/dist/types/src/calls/types.d.ts.map +1 -1
  88. package/dist/types/src/calls/util/calls-service.d.ts +4 -2
  89. package/dist/types/src/calls/util/calls-service.d.ts.map +1 -1
  90. package/dist/types/src/calls/util/stub-media-streams.d.ts.map +1 -1
  91. package/dist/types/src/calls/util/task-scheduling.d.ts +2 -2
  92. package/dist/types/src/calls/util/task-scheduling.d.ts.map +1 -1
  93. package/dist/types/src/calls-service.stories.d.ts +10 -9
  94. package/dist/types/src/calls-service.stories.d.ts.map +1 -1
  95. package/dist/types/src/capabilities/app-graph-builder.d.ts +4 -2
  96. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  97. package/dist/types/src/capabilities/blueprint-definition.d.ts +6 -0
  98. package/dist/types/src/capabilities/blueprint-definition.d.ts.map +1 -0
  99. package/dist/types/src/capabilities/call-manager.d.ts +3 -2
  100. package/dist/types/src/capabilities/call-manager.d.ts.map +1 -1
  101. package/dist/types/src/capabilities/index.d.ts +13 -13
  102. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  103. package/dist/types/src/capabilities/markdown.d.ts +3 -2
  104. package/dist/types/src/capabilities/markdown.d.ts.map +1 -1
  105. package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
  106. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
  107. package/dist/types/src/capabilities/react-root.d.ts +4 -2
  108. package/dist/types/src/capabilities/react-root.d.ts.map +1 -1
  109. package/dist/types/src/capabilities/react-surface.d.ts +3 -2
  110. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  111. package/dist/types/src/capabilities/settings.d.ts +5 -2
  112. package/dist/types/src/capabilities/settings.d.ts.map +1 -1
  113. package/dist/types/src/capabilities/state.d.ts +5 -5
  114. package/dist/types/src/capabilities/state.d.ts.map +1 -1
  115. package/dist/types/src/capabilities/undo-mappings.d.ts +5 -0
  116. package/dist/types/src/capabilities/undo-mappings.d.ts.map +1 -0
  117. package/dist/types/src/components/Call/Call.d.ts.map +1 -1
  118. package/dist/types/src/components/Call/Toolbar.d.ts +2 -2
  119. package/dist/types/src/components/Call/Toolbar.d.ts.map +1 -1
  120. package/dist/types/src/components/CommentsPanel/CommentsPanel.d.ts +13 -0
  121. package/dist/types/src/components/CommentsPanel/CommentsPanel.d.ts.map +1 -0
  122. package/dist/types/src/components/CommentsPanel/CommentsPanel.stories.d.ts +160 -0
  123. package/dist/types/src/components/CommentsPanel/CommentsPanel.stories.d.ts.map +1 -0
  124. package/dist/types/src/components/CommentsPanel/CommentsThread.d.ts +14 -0
  125. package/dist/types/src/components/CommentsPanel/CommentsThread.d.ts.map +1 -0
  126. package/dist/types/src/components/CommentsPanel/index.d.ts +3 -0
  127. package/dist/types/src/components/CommentsPanel/index.d.ts.map +1 -0
  128. package/dist/types/src/components/Lobby/Lobby.d.ts.map +1 -1
  129. package/dist/types/src/components/Media/VideoObject.d.ts +3 -3
  130. package/dist/types/src/components/Media/VideoObject.d.ts.map +1 -1
  131. package/dist/types/src/components/Media/VideoObject.stories.d.ts +18 -4
  132. package/dist/types/src/components/Media/VideoObject.stories.d.ts.map +1 -1
  133. package/dist/types/src/components/MessagePanel/MessagePanel.d.ts +15 -0
  134. package/dist/types/src/components/MessagePanel/MessagePanel.d.ts.map +1 -0
  135. package/dist/types/src/components/MessagePanel/index.d.ts +2 -0
  136. package/dist/types/src/components/MessagePanel/index.d.ts.map +1 -0
  137. package/dist/types/src/components/Participant/Participant.d.ts.map +1 -1
  138. package/dist/types/src/components/Participant/ParticipantGrid.d.ts.map +1 -1
  139. package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.d.ts.map +1 -1
  140. package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.stories.d.ts +160 -5
  141. package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.stories.d.ts.map +1 -1
  142. package/dist/types/src/components/ResponsiveGrid/ResponsiveGridItem.d.ts.map +1 -1
  143. package/dist/types/src/components/ResponsiveGrid/{ResponsiveContainer.d.ts → ResponsivePanel.d.ts} +4 -4
  144. package/dist/types/src/components/ResponsiveGrid/ResponsivePanel.d.ts.map +1 -0
  145. package/dist/types/src/components/ResponsiveGrid/ResponsivePanel.stories.d.ts +164 -0
  146. package/dist/types/src/components/ResponsiveGrid/ResponsivePanel.stories.d.ts.map +1 -0
  147. package/dist/types/src/components/ResponsiveGrid/index.d.ts +1 -1
  148. package/dist/types/src/components/ResponsiveGrid/index.d.ts.map +1 -1
  149. package/dist/types/src/components/ThreadSettings/ThreadSettings.d.ts +6 -0
  150. package/dist/types/src/components/ThreadSettings/ThreadSettings.d.ts.map +1 -0
  151. package/dist/types/src/components/ThreadSettings/ThreadSettings.stories.d.ts +161 -0
  152. package/dist/types/src/components/ThreadSettings/ThreadSettings.stories.d.ts.map +1 -0
  153. package/dist/types/src/components/ThreadSettings/index.d.ts +2 -0
  154. package/dist/types/src/components/ThreadSettings/index.d.ts.map +1 -0
  155. package/dist/types/src/components/index.d.ts +4 -9
  156. package/dist/types/src/components/index.d.ts.map +1 -1
  157. package/dist/types/src/containers/CallDebugPanel/CallDebugPanel.d.ts +15 -0
  158. package/dist/types/src/containers/CallDebugPanel/CallDebugPanel.d.ts.map +1 -0
  159. package/dist/types/src/containers/CallDebugPanel/index.d.ts +2 -0
  160. package/dist/types/src/containers/CallDebugPanel/index.d.ts.map +1 -0
  161. package/dist/types/src/{components → containers/CallSidebar}/CallSidebar.d.ts +0 -1
  162. package/dist/types/src/containers/CallSidebar/CallSidebar.d.ts.map +1 -0
  163. package/dist/types/src/containers/CallSidebar/index.d.ts +2 -0
  164. package/dist/types/src/containers/CallSidebar/index.d.ts.map +1 -0
  165. package/dist/types/src/containers/ChannelContainer/ChannelContainer.d.ts +12 -0
  166. package/dist/types/src/containers/ChannelContainer/ChannelContainer.d.ts.map +1 -0
  167. package/dist/types/src/containers/ChannelContainer/ChannelContainer.stories.d.ts +162 -0
  168. package/dist/types/src/containers/ChannelContainer/ChannelContainer.stories.d.ts.map +1 -0
  169. package/dist/types/src/containers/ChannelContainer/index.d.ts +2 -0
  170. package/dist/types/src/containers/ChannelContainer/index.d.ts.map +1 -0
  171. package/dist/types/src/containers/ChatContainer/ChatContainer.d.ts +16 -0
  172. package/dist/types/src/containers/ChatContainer/ChatContainer.d.ts.map +1 -0
  173. package/dist/types/src/containers/ChatContainer/ChatContainer.stories.d.ts +162 -0
  174. package/dist/types/src/containers/ChatContainer/ChatContainer.stories.d.ts.map +1 -0
  175. package/dist/types/src/containers/ChatContainer/index.d.ts +4 -0
  176. package/dist/types/src/containers/ChatContainer/index.d.ts.map +1 -0
  177. package/dist/types/src/containers/ThreadCompanion/ThreadCompanion.d.ts +8 -0
  178. package/dist/types/src/containers/ThreadCompanion/ThreadCompanion.d.ts.map +1 -0
  179. package/dist/types/src/containers/ThreadCompanion/index.d.ts +2 -0
  180. package/dist/types/src/containers/ThreadCompanion/index.d.ts.map +1 -0
  181. package/dist/types/src/containers/index.d.ts +7 -0
  182. package/dist/types/src/containers/index.d.ts.map +1 -0
  183. package/dist/types/src/{components/command-extension.d.ts → extensions/command.d.ts} +1 -1
  184. package/dist/types/src/extensions/command.d.ts.map +1 -0
  185. package/dist/types/src/extensions/index.d.ts +1 -0
  186. package/dist/types/src/extensions/index.d.ts.map +1 -1
  187. package/dist/types/src/extensions/threads.d.ts +8 -3
  188. package/dist/types/src/extensions/threads.d.ts.map +1 -1
  189. package/dist/types/src/hooks/analytics.d.ts +2 -3
  190. package/dist/types/src/hooks/analytics.d.ts.map +1 -1
  191. package/dist/types/src/hooks/index.d.ts +2 -1
  192. package/dist/types/src/hooks/index.d.ts.map +1 -1
  193. package/dist/types/src/hooks/useBlackCanvasStreamTrack.d.ts +2 -0
  194. package/dist/types/src/hooks/useBlackCanvasStreamTrack.d.ts.map +1 -0
  195. package/dist/types/src/hooks/useVideoStreamTrack.d.ts +1 -1
  196. package/dist/types/src/hooks/useVideoStreamTrack.d.ts.map +1 -1
  197. package/dist/types/src/index.d.ts +1 -1
  198. package/dist/types/src/index.d.ts.map +1 -1
  199. package/dist/types/src/meta.d.ts +3 -4
  200. package/dist/types/src/meta.d.ts.map +1 -1
  201. package/dist/types/src/operations/add-message.d.ts +5 -0
  202. package/dist/types/src/operations/add-message.d.ts.map +1 -0
  203. package/dist/types/src/operations/create-channel-thread.d.ts +5 -0
  204. package/dist/types/src/operations/create-channel-thread.d.ts.map +1 -0
  205. package/dist/types/src/operations/create-channel.d.ts +5 -0
  206. package/dist/types/src/operations/create-channel.d.ts.map +1 -0
  207. package/dist/types/src/operations/create-proposals.d.ts +5 -0
  208. package/dist/types/src/operations/create-proposals.d.ts.map +1 -0
  209. package/dist/types/src/operations/create.d.ts +5 -0
  210. package/dist/types/src/operations/create.d.ts.map +1 -0
  211. package/dist/types/src/operations/definitions.d.ts +2804 -0
  212. package/dist/types/src/operations/definitions.d.ts.map +1 -0
  213. package/dist/types/src/operations/delete-message.d.ts +5 -0
  214. package/dist/types/src/operations/delete-message.d.ts.map +1 -0
  215. package/dist/types/src/operations/delete.d.ts +5 -0
  216. package/dist/types/src/operations/delete.d.ts.map +1 -0
  217. package/dist/types/src/operations/index.d.ts +4 -0
  218. package/dist/types/src/operations/index.d.ts.map +1 -0
  219. package/dist/types/src/operations/on-create-space.d.ts +5 -0
  220. package/dist/types/src/operations/on-create-space.d.ts.map +1 -0
  221. package/dist/types/src/operations/restore-message.d.ts +5 -0
  222. package/dist/types/src/operations/restore-message.d.ts.map +1 -0
  223. package/dist/types/src/operations/restore.d.ts +5 -0
  224. package/dist/types/src/operations/restore.d.ts.map +1 -0
  225. package/dist/types/src/operations/select.d.ts +5 -0
  226. package/dist/types/src/operations/select.d.ts.map +1 -0
  227. package/dist/types/src/operations/toggle-resolved.d.ts +5 -0
  228. package/dist/types/src/operations/toggle-resolved.d.ts.map +1 -0
  229. package/dist/types/src/testing/data.d.ts +5 -0
  230. package/dist/types/src/testing/data.d.ts.map +1 -0
  231. package/dist/types/src/testing/stories.d.ts +2 -1
  232. package/dist/types/src/testing/stories.d.ts.map +1 -1
  233. package/dist/types/src/translations.d.ts +142 -72
  234. package/dist/types/src/translations.d.ts.map +1 -1
  235. package/dist/types/src/types/Channel.d.ts +715 -0
  236. package/dist/types/src/types/Channel.d.ts.map +1 -0
  237. package/dist/types/src/types/Settings.d.ts +5 -0
  238. package/dist/types/src/types/Settings.d.ts.map +1 -0
  239. package/dist/types/src/types/capabilities.d.ts +24 -0
  240. package/dist/types/src/types/capabilities.d.ts.map +1 -0
  241. package/dist/types/src/types/index.d.ts +2 -1
  242. package/dist/types/src/types/index.d.ts.map +1 -1
  243. package/dist/types/src/types/types.d.ts +4 -374
  244. package/dist/types/src/types/types.d.ts.map +1 -1
  245. package/dist/types/src/util.d.ts.map +1 -1
  246. package/dist/types/tsconfig.tsbuildinfo +1 -1
  247. package/package.json +112 -67
  248. package/src/ThreadPlugin.tsx +108 -132
  249. package/src/blueprints/index.ts +5 -0
  250. package/src/blueprints/thread-blueprint.ts +37 -0
  251. package/src/calls/call-manager.ts +77 -53
  252. package/src/calls/call-swarm-synchronizer.ts +2 -2
  253. package/src/calls/media-manager.ts +65 -36
  254. package/src/calls/types.ts +7 -3
  255. package/src/calls/util/calls-service.ts +62 -13
  256. package/src/calls/util/stub-media-streams.ts +62 -5
  257. package/src/calls/util/task-scheduling.ts +4 -4
  258. package/src/calls-service.stories.tsx +79 -65
  259. package/src/capabilities/app-graph-builder.ts +175 -163
  260. package/src/capabilities/blueprint-definition.ts +17 -0
  261. package/src/capabilities/call-manager.ts +19 -12
  262. package/src/capabilities/index.ts +15 -11
  263. package/src/capabilities/markdown.ts +50 -37
  264. package/src/capabilities/operation-handler.ts +16 -0
  265. package/src/capabilities/react-root.tsx +12 -9
  266. package/src/capabilities/react-surface.tsx +80 -78
  267. package/src/capabilities/settings.ts +28 -12
  268. package/src/capabilities/state.ts +14 -18
  269. package/src/capabilities/undo-mappings.ts +46 -0
  270. package/src/components/Call/Call.tsx +11 -7
  271. package/src/components/Call/Toolbar.tsx +61 -44
  272. package/src/components/CommentsPanel/CommentsPanel.stories.tsx +93 -0
  273. package/src/components/CommentsPanel/CommentsPanel.tsx +71 -0
  274. package/src/components/{CommentsThreadContainer.tsx → CommentsPanel/CommentsThread.tsx} +66 -62
  275. package/src/components/CommentsPanel/index.ts +6 -0
  276. package/src/components/Lobby/Lobby.tsx +15 -12
  277. package/src/components/Media/AudioStream.tsx +2 -2
  278. package/src/components/Media/VideoObject.stories.tsx +37 -31
  279. package/src/components/Media/VideoObject.tsx +1 -1
  280. package/src/components/MessagePanel/MessagePanel.tsx +222 -0
  281. package/src/components/MessagePanel/index.ts +5 -0
  282. package/src/components/Participant/Participant.tsx +35 -15
  283. package/src/components/Participant/ParticipantGrid.tsx +0 -1
  284. package/src/components/ResponsiveGrid/ResponsiveGrid.stories.tsx +48 -48
  285. package/src/components/ResponsiveGrid/ResponsiveGrid.tsx +5 -5
  286. package/src/components/ResponsiveGrid/ResponsiveGridItem.tsx +12 -9
  287. package/src/components/ResponsiveGrid/{ResponsiveContainer.stories.tsx → ResponsivePanel.stories.tsx} +9 -11
  288. package/src/components/ResponsiveGrid/{ResponsiveContainer.tsx → ResponsivePanel.tsx} +5 -5
  289. package/src/components/ResponsiveGrid/index.ts +1 -1
  290. package/src/components/ThreadSettings/ThreadSettings.stories.tsx +31 -0
  291. package/src/components/ThreadSettings/ThreadSettings.tsx +20 -0
  292. package/src/components/ThreadSettings/index.ts +5 -0
  293. package/src/components/index.ts +5 -12
  294. package/src/containers/CallDebugPanel/CallDebugPanel.tsx +173 -0
  295. package/src/containers/CallDebugPanel/index.ts +5 -0
  296. package/src/containers/CallSidebar/CallSidebar.tsx +18 -0
  297. package/src/containers/CallSidebar/index.ts +5 -0
  298. package/src/containers/ChannelContainer/ChannelContainer.stories.tsx +61 -0
  299. package/src/{components → containers/ChannelContainer}/ChannelContainer.tsx +93 -71
  300. package/src/containers/ChannelContainer/index.ts +5 -0
  301. package/src/containers/ChatContainer/ChatContainer.stories.tsx +87 -0
  302. package/src/containers/ChatContainer/ChatContainer.tsx +131 -0
  303. package/src/containers/ChatContainer/index.ts +8 -0
  304. package/src/containers/ThreadCompanion/ThreadCompanion.tsx +217 -0
  305. package/src/containers/ThreadCompanion/index.ts +5 -0
  306. package/src/containers/index.ts +11 -0
  307. package/src/{components/command-extension.ts → extensions/command.ts} +6 -3
  308. package/src/extensions/index.ts +1 -0
  309. package/src/extensions/threads.ts +87 -42
  310. package/src/hooks/analytics.ts +22 -21
  311. package/src/hooks/index.ts +3 -1
  312. package/src/hooks/useBlackCanvasStreamTrack.tsx +27 -0
  313. package/src/hooks/useVideoStreamTrack.tsx +6 -3
  314. package/src/index.ts +1 -1
  315. package/src/meta.ts +11 -7
  316. package/src/operations/add-message.ts +81 -0
  317. package/src/operations/create-channel-thread.ts +26 -0
  318. package/src/operations/create-channel.ts +20 -0
  319. package/src/operations/create-proposals.ts +49 -0
  320. package/src/operations/create.ts +48 -0
  321. package/src/operations/definitions.ts +177 -0
  322. package/src/operations/delete-message.ts +53 -0
  323. package/src/operations/delete.ts +63 -0
  324. package/src/operations/index.ts +22 -0
  325. package/src/operations/on-create-space.ts +27 -0
  326. package/src/operations/restore-message.ts +38 -0
  327. package/src/operations/restore.ts +38 -0
  328. package/src/operations/select.ts +24 -0
  329. package/src/operations/toggle-resolved.ts +41 -0
  330. package/src/testing/data.ts +49 -0
  331. package/src/testing/stories.ts +18 -21
  332. package/src/translations.ts +74 -73
  333. package/src/types/Channel.ts +37 -0
  334. package/src/types/Settings.ts +10 -0
  335. package/src/types/capabilities.ts +36 -0
  336. package/src/types/index.ts +2 -1
  337. package/src/types/types.ts +5 -100
  338. package/src/typings/peermetrics-webrtc-stats.d.ts +17 -1
  339. package/src/util.ts +2 -2
  340. package/dist/lib/browser/ChannelContainer-O2SFQJU7.mjs +0 -16
  341. package/dist/lib/browser/ChatContainer-PVT3DUZJ.mjs +0 -15
  342. package/dist/lib/browser/app-graph-builder-AF3M7UWN.mjs +0 -171
  343. package/dist/lib/browser/app-graph-builder-AF3M7UWN.mjs.map +0 -7
  344. package/dist/lib/browser/call-manager-XRRCAVLI.mjs +0 -24
  345. package/dist/lib/browser/call-manager-XRRCAVLI.mjs.map +0 -7
  346. package/dist/lib/browser/chunk-2CWJBXBH.mjs +0 -21
  347. package/dist/lib/browser/chunk-2CWJBXBH.mjs.map +0 -7
  348. package/dist/lib/browser/chunk-4APCDRSH.mjs +0 -18
  349. package/dist/lib/browser/chunk-4APCDRSH.mjs.map +0 -7
  350. package/dist/lib/browser/chunk-DW7JD64V.mjs +0 -137
  351. package/dist/lib/browser/chunk-DW7JD64V.mjs.map +0 -7
  352. package/dist/lib/browser/chunk-EV4JWI7L.mjs +0 -17
  353. package/dist/lib/browser/chunk-EV4JWI7L.mjs.map +0 -7
  354. package/dist/lib/browser/chunk-FY4ZRD5X.mjs +0 -367
  355. package/dist/lib/browser/chunk-FY4ZRD5X.mjs.map +0 -7
  356. package/dist/lib/browser/chunk-GERVMFQW.mjs +0 -31
  357. package/dist/lib/browser/chunk-GERVMFQW.mjs.map +0 -7
  358. package/dist/lib/browser/chunk-J3JO5NWO.mjs +0 -477
  359. package/dist/lib/browser/chunk-J3JO5NWO.mjs.map +0 -7
  360. package/dist/lib/browser/chunk-JGKMMI65.mjs +0 -56
  361. package/dist/lib/browser/chunk-JGKMMI65.mjs.map +0 -7
  362. package/dist/lib/browser/chunk-TUFWPOVS.mjs +0 -1698
  363. package/dist/lib/browser/chunk-TUFWPOVS.mjs.map +0 -7
  364. package/dist/lib/browser/chunk-X5PIP5YR.mjs +0 -149
  365. package/dist/lib/browser/chunk-X5PIP5YR.mjs.map +0 -7
  366. package/dist/lib/browser/chunk-ZJ7QBXK6.mjs +0 -984
  367. package/dist/lib/browser/chunk-ZJ7QBXK6.mjs.map +0 -7
  368. package/dist/lib/browser/intent-resolver-DCY4P4OX.mjs +0 -369
  369. package/dist/lib/browser/intent-resolver-DCY4P4OX.mjs.map +0 -7
  370. package/dist/lib/browser/markdown-WZSXCEZJ.mjs +0 -169
  371. package/dist/lib/browser/markdown-WZSXCEZJ.mjs.map +0 -7
  372. package/dist/lib/browser/react-root-QXPALOUQ.mjs +0 -28
  373. package/dist/lib/browser/react-root-QXPALOUQ.mjs.map +0 -7
  374. package/dist/lib/browser/react-surface-PYAMIADB.mjs +0 -109
  375. package/dist/lib/browser/react-surface-PYAMIADB.mjs.map +0 -7
  376. package/dist/lib/browser/settings-AC6YSASL.mjs +0 -22
  377. package/dist/lib/browser/settings-AC6YSASL.mjs.map +0 -7
  378. package/dist/lib/browser/state-2T4KDWBX.mjs +0 -34
  379. package/dist/lib/browser/state-2T4KDWBX.mjs.map +0 -7
  380. package/dist/lib/node-esm/ChannelContainer-B2ZGAE4P.mjs +0 -17
  381. package/dist/lib/node-esm/ChannelContainer-B2ZGAE4P.mjs.map +0 -7
  382. package/dist/lib/node-esm/ChatContainer-2CT4PJ7I.mjs +0 -16
  383. package/dist/lib/node-esm/ChatContainer-2CT4PJ7I.mjs.map +0 -7
  384. package/dist/lib/node-esm/app-graph-builder-OLSJVCWY.mjs +0 -172
  385. package/dist/lib/node-esm/app-graph-builder-OLSJVCWY.mjs.map +0 -7
  386. package/dist/lib/node-esm/call-manager-EI7FXRAU.mjs +0 -25
  387. package/dist/lib/node-esm/call-manager-EI7FXRAU.mjs.map +0 -7
  388. package/dist/lib/node-esm/chunk-4TME3BR4.mjs +0 -1699
  389. package/dist/lib/node-esm/chunk-4TME3BR4.mjs.map +0 -7
  390. package/dist/lib/node-esm/chunk-57XR3LEF.mjs +0 -33
  391. package/dist/lib/node-esm/chunk-57XR3LEF.mjs.map +0 -7
  392. package/dist/lib/node-esm/chunk-6CRHHOST.mjs +0 -23
  393. package/dist/lib/node-esm/chunk-6CRHHOST.mjs.map +0 -7
  394. package/dist/lib/node-esm/chunk-BF4UKS55.mjs +0 -368
  395. package/dist/lib/node-esm/chunk-BF4UKS55.mjs.map +0 -7
  396. package/dist/lib/node-esm/chunk-GRLRWTRU.mjs +0 -19
  397. package/dist/lib/node-esm/chunk-GRLRWTRU.mjs.map +0 -7
  398. package/dist/lib/node-esm/chunk-PYTVBN5J.mjs +0 -19
  399. package/dist/lib/node-esm/chunk-PYTVBN5J.mjs.map +0 -7
  400. package/dist/lib/node-esm/chunk-QBHKLWGR.mjs +0 -58
  401. package/dist/lib/node-esm/chunk-QBHKLWGR.mjs.map +0 -7
  402. package/dist/lib/node-esm/chunk-SED3O2XO.mjs +0 -150
  403. package/dist/lib/node-esm/chunk-SED3O2XO.mjs.map +0 -7
  404. package/dist/lib/node-esm/chunk-VNG6M2IY.mjs +0 -478
  405. package/dist/lib/node-esm/chunk-VNG6M2IY.mjs.map +0 -7
  406. package/dist/lib/node-esm/chunk-XVKWHTH4.mjs +0 -138
  407. package/dist/lib/node-esm/chunk-XVKWHTH4.mjs.map +0 -7
  408. package/dist/lib/node-esm/chunk-YIDU3DXK.mjs +0 -985
  409. package/dist/lib/node-esm/chunk-YIDU3DXK.mjs.map +0 -7
  410. package/dist/lib/node-esm/intent-resolver-QGTPU6QB.mjs +0 -370
  411. package/dist/lib/node-esm/intent-resolver-QGTPU6QB.mjs.map +0 -7
  412. package/dist/lib/node-esm/markdown-3MZXUGUA.mjs +0 -170
  413. package/dist/lib/node-esm/markdown-3MZXUGUA.mjs.map +0 -7
  414. package/dist/lib/node-esm/react-root-7ZFJYVUZ.mjs +0 -29
  415. package/dist/lib/node-esm/react-root-7ZFJYVUZ.mjs.map +0 -7
  416. package/dist/lib/node-esm/react-surface-UJFCSFNO.mjs +0 -110
  417. package/dist/lib/node-esm/react-surface-UJFCSFNO.mjs.map +0 -7
  418. package/dist/lib/node-esm/settings-N52O7MLS.mjs +0 -23
  419. package/dist/lib/node-esm/settings-N52O7MLS.mjs.map +0 -7
  420. package/dist/lib/node-esm/state-62TQKQVB.mjs +0 -35
  421. package/dist/lib/node-esm/state-62TQKQVB.mjs.map +0 -7
  422. package/dist/types/src/capabilities/capabilities.d.ts +0 -27
  423. package/dist/types/src/capabilities/capabilities.d.ts.map +0 -1
  424. package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
  425. package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
  426. package/dist/types/src/components/CallDebugPanel.d.ts +0 -8
  427. package/dist/types/src/components/CallDebugPanel.d.ts.map +0 -1
  428. package/dist/types/src/components/CallSidebar.d.ts.map +0 -1
  429. package/dist/types/src/components/ChannelContainer.d.ts +0 -14
  430. package/dist/types/src/components/ChannelContainer.d.ts.map +0 -1
  431. package/dist/types/src/components/ChannelContainer.stories.d.ts +0 -10
  432. package/dist/types/src/components/ChannelContainer.stories.d.ts.map +0 -1
  433. package/dist/types/src/components/Chat.stories.d.ts +0 -7
  434. package/dist/types/src/components/Chat.stories.d.ts.map +0 -1
  435. package/dist/types/src/components/ChatContainer.d.ts +0 -17
  436. package/dist/types/src/components/ChatContainer.d.ts.map +0 -1
  437. package/dist/types/src/components/Comments.stories.d.ts +0 -6
  438. package/dist/types/src/components/Comments.stories.d.ts.map +0 -1
  439. package/dist/types/src/components/CommentsContainer.d.ts +0 -13
  440. package/dist/types/src/components/CommentsContainer.d.ts.map +0 -1
  441. package/dist/types/src/components/CommentsThreadContainer.d.ts +0 -14
  442. package/dist/types/src/components/CommentsThreadContainer.d.ts.map +0 -1
  443. package/dist/types/src/components/MessageContainer.d.ts +0 -11
  444. package/dist/types/src/components/MessageContainer.d.ts.map +0 -1
  445. package/dist/types/src/components/ResponsiveGrid/ResponsiveContainer.d.ts.map +0 -1
  446. package/dist/types/src/components/ResponsiveGrid/ResponsiveContainer.stories.d.ts +0 -10
  447. package/dist/types/src/components/ResponsiveGrid/ResponsiveContainer.stories.d.ts.map +0 -1
  448. package/dist/types/src/components/ThreadComplementary.d.ts +0 -5
  449. package/dist/types/src/components/ThreadComplementary.d.ts.map +0 -1
  450. package/dist/types/src/components/ThreadSettings.d.ts +0 -6
  451. package/dist/types/src/components/ThreadSettings.d.ts.map +0 -1
  452. package/dist/types/src/components/command-extension.d.ts.map +0 -1
  453. package/dist/types/src/components/testing.d.ts +0 -4
  454. package/dist/types/src/components/testing.d.ts.map +0 -1
  455. package/dist/types/src/types/schema.d.ts +0 -164
  456. package/dist/types/src/types/schema.d.ts.map +0 -1
  457. package/src/capabilities/capabilities.ts +0 -33
  458. package/src/capabilities/intent-resolver.ts +0 -315
  459. package/src/components/CallDebugPanel.tsx +0 -115
  460. package/src/components/CallSidebar.tsx +0 -18
  461. package/src/components/ChannelContainer.stories.tsx +0 -59
  462. package/src/components/Chat.stories.tsx +0 -89
  463. package/src/components/ChatContainer.tsx +0 -142
  464. package/src/components/Comments.stories.tsx +0 -93
  465. package/src/components/CommentsContainer.tsx +0 -72
  466. package/src/components/MessageContainer.tsx +0 -152
  467. package/src/components/ThreadComplementary.tsx +0 -151
  468. package/src/components/ThreadSettings.tsx +0 -17
  469. package/src/components/testing.ts +0 -29
  470. package/src/types/schema.ts +0 -33
  471. /package/dist/lib/browser/{ChannelContainer-O2SFQJU7.mjs.map → chunk-J5LGTIGS.mjs.map} +0 -0
  472. /package/dist/lib/{browser/ChatContainer-PVT3DUZJ.mjs.map → node-esm/chunk-HSLMI22Q.mjs.map} +0 -0
@@ -0,0 +1,715 @@
1
+ import * as Schema from 'effect/Schema';
2
+ import { Obj, Type } from '@dxos/echo';
3
+ export declare const Channel: Type.Obj<{
4
+ readonly name?: string | undefined;
5
+ readonly defaultThread: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
6
+ readonly name?: string | undefined;
7
+ readonly status?: "active" | "staged" | "resolved" | undefined;
8
+ readonly messages: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
9
+ readonly id: string;
10
+ readonly parentMessage?: string | undefined;
11
+ readonly threadId?: string | undefined;
12
+ readonly created: string;
13
+ readonly sender: {
14
+ readonly name?: string | undefined;
15
+ readonly role?: "user" | "assistant" | "tool" | undefined;
16
+ readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
17
+ readonly image?: string | undefined;
18
+ readonly fullName?: string | undefined;
19
+ readonly preferredName?: string | undefined;
20
+ readonly nickname?: string | undefined;
21
+ readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
22
+ readonly description?: string | undefined;
23
+ readonly name?: string | undefined;
24
+ readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
25
+ readonly image?: string | undefined;
26
+ readonly website?: string | undefined;
27
+ } & {
28
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
29
+ }> | undefined;
30
+ readonly jobTitle?: string | undefined;
31
+ readonly department?: string | undefined;
32
+ readonly notes?: string | undefined;
33
+ readonly emails?: readonly {
34
+ readonly value: string;
35
+ readonly label?: string | undefined;
36
+ }[] | undefined;
37
+ readonly identities?: readonly {
38
+ readonly value: string;
39
+ readonly label?: string | undefined;
40
+ }[] | undefined;
41
+ readonly phoneNumbers?: readonly {
42
+ readonly value: string;
43
+ readonly label?: string | undefined;
44
+ }[] | undefined;
45
+ readonly fields?: readonly {
46
+ readonly value: string;
47
+ readonly label: string;
48
+ readonly category?: string | undefined;
49
+ }[] | undefined;
50
+ readonly addresses?: readonly {
51
+ readonly value: {
52
+ readonly street?: string | undefined;
53
+ readonly extended?: string | undefined;
54
+ readonly locality?: string | undefined;
55
+ readonly region?: string | undefined;
56
+ readonly postalCode?: string | undefined;
57
+ readonly postOfficeBoxNumber?: string | undefined;
58
+ readonly country?: string | undefined;
59
+ };
60
+ readonly label?: string | undefined;
61
+ }[] | undefined;
62
+ readonly urls?: readonly {
63
+ readonly value: string;
64
+ readonly label?: string | undefined;
65
+ }[] | undefined;
66
+ readonly birthday?: string | undefined;
67
+ } & {
68
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
69
+ }> | undefined;
70
+ readonly identityDid?: string | undefined;
71
+ readonly identityKey?: string | undefined;
72
+ readonly email?: string | undefined;
73
+ };
74
+ readonly blocks: readonly ({
75
+ readonly pending?: boolean | undefined;
76
+ readonly text: string;
77
+ readonly mimeType?: string | undefined;
78
+ readonly disposition?: string | undefined;
79
+ readonly _tag: "text";
80
+ } | {
81
+ readonly pending?: boolean | undefined;
82
+ readonly _tag: "reasoning";
83
+ readonly reasoningText?: string | undefined;
84
+ readonly redactedText?: string | undefined;
85
+ readonly signature?: string | undefined;
86
+ } | {
87
+ readonly name: string;
88
+ readonly pending?: boolean | undefined;
89
+ readonly _tag: "toolCall";
90
+ readonly toolCallId: string;
91
+ readonly input: string;
92
+ readonly providerExecuted: boolean;
93
+ } | {
94
+ readonly name: string;
95
+ readonly pending?: boolean | undefined;
96
+ readonly _tag: "toolResult";
97
+ readonly toolCallId: string;
98
+ readonly providerExecuted: boolean;
99
+ readonly result?: string | undefined;
100
+ readonly error?: string | undefined;
101
+ } | {
102
+ readonly pending?: boolean | undefined;
103
+ readonly mimeType?: string | undefined;
104
+ readonly _tag: "stats";
105
+ readonly message?: string | undefined;
106
+ readonly model?: string | undefined;
107
+ readonly usage?: {
108
+ readonly inputTokens?: number | undefined;
109
+ readonly outputTokens?: number | undefined;
110
+ readonly totalTokens?: number | undefined;
111
+ } | undefined;
112
+ readonly toolCalls?: number | undefined;
113
+ readonly errors?: number | undefined;
114
+ readonly duration?: number | undefined;
115
+ } | {
116
+ readonly source?: {
117
+ readonly type: "base64";
118
+ readonly mediaType: string;
119
+ readonly data: string;
120
+ } | {
121
+ readonly type: "http";
122
+ readonly url: string;
123
+ } | undefined;
124
+ readonly id?: string | undefined;
125
+ readonly pending?: boolean | undefined;
126
+ readonly _tag: "image";
127
+ } | {
128
+ readonly name?: string | undefined;
129
+ readonly pending?: boolean | undefined;
130
+ readonly _tag: "file";
131
+ readonly mediaType?: string | undefined;
132
+ readonly url: string;
133
+ } | {
134
+ readonly pending?: boolean | undefined;
135
+ readonly _tag: "reference";
136
+ readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
137
+ } | {
138
+ readonly pending?: boolean | undefined;
139
+ readonly text: string;
140
+ readonly _tag: "transcript";
141
+ readonly started: string;
142
+ } | {
143
+ readonly pending?: boolean | undefined;
144
+ readonly _tag: "status";
145
+ readonly statusText: string;
146
+ } | {
147
+ readonly pending?: boolean | undefined;
148
+ readonly text: string;
149
+ readonly _tag: "suggestion";
150
+ } | {
151
+ readonly pending?: boolean | undefined;
152
+ readonly _tag: "select";
153
+ readonly options: string[];
154
+ } | {
155
+ readonly version: unknown;
156
+ readonly pending?: boolean | undefined;
157
+ readonly _tag: "anchor";
158
+ readonly objectId: string;
159
+ } | {
160
+ readonly pending?: boolean | undefined;
161
+ readonly text: string;
162
+ readonly _tag: "proposal";
163
+ } | {
164
+ readonly pending?: boolean | undefined;
165
+ readonly _tag: "summary";
166
+ readonly content: string;
167
+ } | {
168
+ readonly pending?: boolean | undefined;
169
+ readonly _tag: "toolkit";
170
+ } | {
171
+ readonly pending?: boolean | undefined;
172
+ readonly disposition?: string | undefined;
173
+ readonly _tag: "json";
174
+ readonly data: string;
175
+ })[];
176
+ readonly properties?: {
177
+ readonly [x: string]: any;
178
+ } | undefined;
179
+ }>[];
180
+ }>;
181
+ readonly threads: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
182
+ readonly name?: string | undefined;
183
+ readonly status?: "active" | "staged" | "resolved" | undefined;
184
+ readonly messages: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
185
+ readonly id: string;
186
+ readonly parentMessage?: string | undefined;
187
+ readonly threadId?: string | undefined;
188
+ readonly created: string;
189
+ readonly sender: {
190
+ readonly name?: string | undefined;
191
+ readonly role?: "user" | "assistant" | "tool" | undefined;
192
+ readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
193
+ readonly image?: string | undefined;
194
+ readonly fullName?: string | undefined;
195
+ readonly preferredName?: string | undefined;
196
+ readonly nickname?: string | undefined;
197
+ readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
198
+ readonly description?: string | undefined;
199
+ readonly name?: string | undefined;
200
+ readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
201
+ readonly image?: string | undefined;
202
+ readonly website?: string | undefined;
203
+ } & {
204
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
205
+ }> | undefined;
206
+ readonly jobTitle?: string | undefined;
207
+ readonly department?: string | undefined;
208
+ readonly notes?: string | undefined;
209
+ readonly emails?: readonly {
210
+ readonly value: string;
211
+ readonly label?: string | undefined;
212
+ }[] | undefined;
213
+ readonly identities?: readonly {
214
+ readonly value: string;
215
+ readonly label?: string | undefined;
216
+ }[] | undefined;
217
+ readonly phoneNumbers?: readonly {
218
+ readonly value: string;
219
+ readonly label?: string | undefined;
220
+ }[] | undefined;
221
+ readonly fields?: readonly {
222
+ readonly value: string;
223
+ readonly label: string;
224
+ readonly category?: string | undefined;
225
+ }[] | undefined;
226
+ readonly addresses?: readonly {
227
+ readonly value: {
228
+ readonly street?: string | undefined;
229
+ readonly extended?: string | undefined;
230
+ readonly locality?: string | undefined;
231
+ readonly region?: string | undefined;
232
+ readonly postalCode?: string | undefined;
233
+ readonly postOfficeBoxNumber?: string | undefined;
234
+ readonly country?: string | undefined;
235
+ };
236
+ readonly label?: string | undefined;
237
+ }[] | undefined;
238
+ readonly urls?: readonly {
239
+ readonly value: string;
240
+ readonly label?: string | undefined;
241
+ }[] | undefined;
242
+ readonly birthday?: string | undefined;
243
+ } & {
244
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
245
+ }> | undefined;
246
+ readonly identityDid?: string | undefined;
247
+ readonly identityKey?: string | undefined;
248
+ readonly email?: string | undefined;
249
+ };
250
+ readonly blocks: readonly ({
251
+ readonly pending?: boolean | undefined;
252
+ readonly text: string;
253
+ readonly mimeType?: string | undefined;
254
+ readonly disposition?: string | undefined;
255
+ readonly _tag: "text";
256
+ } | {
257
+ readonly pending?: boolean | undefined;
258
+ readonly _tag: "reasoning";
259
+ readonly reasoningText?: string | undefined;
260
+ readonly redactedText?: string | undefined;
261
+ readonly signature?: string | undefined;
262
+ } | {
263
+ readonly name: string;
264
+ readonly pending?: boolean | undefined;
265
+ readonly _tag: "toolCall";
266
+ readonly toolCallId: string;
267
+ readonly input: string;
268
+ readonly providerExecuted: boolean;
269
+ } | {
270
+ readonly name: string;
271
+ readonly pending?: boolean | undefined;
272
+ readonly _tag: "toolResult";
273
+ readonly toolCallId: string;
274
+ readonly providerExecuted: boolean;
275
+ readonly result?: string | undefined;
276
+ readonly error?: string | undefined;
277
+ } | {
278
+ readonly pending?: boolean | undefined;
279
+ readonly mimeType?: string | undefined;
280
+ readonly _tag: "stats";
281
+ readonly message?: string | undefined;
282
+ readonly model?: string | undefined;
283
+ readonly usage?: {
284
+ readonly inputTokens?: number | undefined;
285
+ readonly outputTokens?: number | undefined;
286
+ readonly totalTokens?: number | undefined;
287
+ } | undefined;
288
+ readonly toolCalls?: number | undefined;
289
+ readonly errors?: number | undefined;
290
+ readonly duration?: number | undefined;
291
+ } | {
292
+ readonly source?: {
293
+ readonly type: "base64";
294
+ readonly mediaType: string;
295
+ readonly data: string;
296
+ } | {
297
+ readonly type: "http";
298
+ readonly url: string;
299
+ } | undefined;
300
+ readonly id?: string | undefined;
301
+ readonly pending?: boolean | undefined;
302
+ readonly _tag: "image";
303
+ } | {
304
+ readonly name?: string | undefined;
305
+ readonly pending?: boolean | undefined;
306
+ readonly _tag: "file";
307
+ readonly mediaType?: string | undefined;
308
+ readonly url: string;
309
+ } | {
310
+ readonly pending?: boolean | undefined;
311
+ readonly _tag: "reference";
312
+ readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
313
+ } | {
314
+ readonly pending?: boolean | undefined;
315
+ readonly text: string;
316
+ readonly _tag: "transcript";
317
+ readonly started: string;
318
+ } | {
319
+ readonly pending?: boolean | undefined;
320
+ readonly _tag: "status";
321
+ readonly statusText: string;
322
+ } | {
323
+ readonly pending?: boolean | undefined;
324
+ readonly text: string;
325
+ readonly _tag: "suggestion";
326
+ } | {
327
+ readonly pending?: boolean | undefined;
328
+ readonly _tag: "select";
329
+ readonly options: string[];
330
+ } | {
331
+ readonly version: unknown;
332
+ readonly pending?: boolean | undefined;
333
+ readonly _tag: "anchor";
334
+ readonly objectId: string;
335
+ } | {
336
+ readonly pending?: boolean | undefined;
337
+ readonly text: string;
338
+ readonly _tag: "proposal";
339
+ } | {
340
+ readonly pending?: boolean | undefined;
341
+ readonly _tag: "summary";
342
+ readonly content: string;
343
+ } | {
344
+ readonly pending?: boolean | undefined;
345
+ readonly _tag: "toolkit";
346
+ } | {
347
+ readonly pending?: boolean | undefined;
348
+ readonly disposition?: string | undefined;
349
+ readonly _tag: "json";
350
+ readonly data: string;
351
+ })[];
352
+ readonly properties?: {
353
+ readonly [x: string]: any;
354
+ } | undefined;
355
+ }>[];
356
+ }>[];
357
+ }, Schema.Struct.Fields>;
358
+ export interface Channel extends Schema.Schema.Type<typeof Channel> {
359
+ }
360
+ export declare const make: (props?: Pick<Obj.MakeProps<typeof Channel>, "name">) => Obj.OfShape<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
361
+ readonly name?: string | undefined;
362
+ readonly defaultThread: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
363
+ readonly name?: string | undefined;
364
+ readonly status?: "active" | "staged" | "resolved" | undefined;
365
+ readonly messages: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
366
+ readonly id: string;
367
+ readonly parentMessage?: string | undefined;
368
+ readonly threadId?: string | undefined;
369
+ readonly created: string;
370
+ readonly sender: {
371
+ readonly name?: string | undefined;
372
+ readonly role?: "user" | "assistant" | "tool" | undefined;
373
+ readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
374
+ readonly image?: string | undefined;
375
+ readonly fullName?: string | undefined;
376
+ readonly preferredName?: string | undefined;
377
+ readonly nickname?: string | undefined;
378
+ readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
379
+ readonly description?: string | undefined;
380
+ readonly name?: string | undefined;
381
+ readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
382
+ readonly image?: string | undefined;
383
+ readonly website?: string | undefined;
384
+ } & {
385
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
386
+ }> | undefined;
387
+ readonly jobTitle?: string | undefined;
388
+ readonly department?: string | undefined;
389
+ readonly notes?: string | undefined;
390
+ readonly emails?: readonly {
391
+ readonly value: string;
392
+ readonly label?: string | undefined;
393
+ }[] | undefined;
394
+ readonly identities?: readonly {
395
+ readonly value: string;
396
+ readonly label?: string | undefined;
397
+ }[] | undefined;
398
+ readonly phoneNumbers?: readonly {
399
+ readonly value: string;
400
+ readonly label?: string | undefined;
401
+ }[] | undefined;
402
+ readonly fields?: readonly {
403
+ readonly value: string;
404
+ readonly label: string;
405
+ readonly category?: string | undefined;
406
+ }[] | undefined;
407
+ readonly addresses?: readonly {
408
+ readonly value: {
409
+ readonly street?: string | undefined;
410
+ readonly extended?: string | undefined;
411
+ readonly locality?: string | undefined;
412
+ readonly region?: string | undefined;
413
+ readonly postalCode?: string | undefined;
414
+ readonly postOfficeBoxNumber?: string | undefined;
415
+ readonly country?: string | undefined;
416
+ };
417
+ readonly label?: string | undefined;
418
+ }[] | undefined;
419
+ readonly urls?: readonly {
420
+ readonly value: string;
421
+ readonly label?: string | undefined;
422
+ }[] | undefined;
423
+ readonly birthday?: string | undefined;
424
+ } & {
425
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
426
+ }> | undefined;
427
+ readonly identityDid?: string | undefined;
428
+ readonly identityKey?: string | undefined;
429
+ readonly email?: string | undefined;
430
+ };
431
+ readonly blocks: readonly ({
432
+ readonly pending?: boolean | undefined;
433
+ readonly text: string;
434
+ readonly mimeType?: string | undefined;
435
+ readonly disposition?: string | undefined;
436
+ readonly _tag: "text";
437
+ } | {
438
+ readonly pending?: boolean | undefined;
439
+ readonly _tag: "reasoning";
440
+ readonly reasoningText?: string | undefined;
441
+ readonly redactedText?: string | undefined;
442
+ readonly signature?: string | undefined;
443
+ } | {
444
+ readonly name: string;
445
+ readonly pending?: boolean | undefined;
446
+ readonly _tag: "toolCall";
447
+ readonly toolCallId: string;
448
+ readonly input: string;
449
+ readonly providerExecuted: boolean;
450
+ } | {
451
+ readonly name: string;
452
+ readonly pending?: boolean | undefined;
453
+ readonly _tag: "toolResult";
454
+ readonly toolCallId: string;
455
+ readonly providerExecuted: boolean;
456
+ readonly result?: string | undefined;
457
+ readonly error?: string | undefined;
458
+ } | {
459
+ readonly pending?: boolean | undefined;
460
+ readonly mimeType?: string | undefined;
461
+ readonly _tag: "stats";
462
+ readonly message?: string | undefined;
463
+ readonly model?: string | undefined;
464
+ readonly usage?: {
465
+ readonly inputTokens?: number | undefined;
466
+ readonly outputTokens?: number | undefined;
467
+ readonly totalTokens?: number | undefined;
468
+ } | undefined;
469
+ readonly toolCalls?: number | undefined;
470
+ readonly errors?: number | undefined;
471
+ readonly duration?: number | undefined;
472
+ } | {
473
+ readonly source?: {
474
+ readonly type: "base64";
475
+ readonly mediaType: string;
476
+ readonly data: string;
477
+ } | {
478
+ readonly type: "http";
479
+ readonly url: string;
480
+ } | undefined;
481
+ readonly id?: string | undefined;
482
+ readonly pending?: boolean | undefined;
483
+ readonly _tag: "image";
484
+ } | {
485
+ readonly name?: string | undefined;
486
+ readonly pending?: boolean | undefined;
487
+ readonly _tag: "file";
488
+ readonly mediaType?: string | undefined;
489
+ readonly url: string;
490
+ } | {
491
+ readonly pending?: boolean | undefined;
492
+ readonly _tag: "reference";
493
+ readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
494
+ } | {
495
+ readonly pending?: boolean | undefined;
496
+ readonly text: string;
497
+ readonly _tag: "transcript";
498
+ readonly started: string;
499
+ } | {
500
+ readonly pending?: boolean | undefined;
501
+ readonly _tag: "status";
502
+ readonly statusText: string;
503
+ } | {
504
+ readonly pending?: boolean | undefined;
505
+ readonly text: string;
506
+ readonly _tag: "suggestion";
507
+ } | {
508
+ readonly pending?: boolean | undefined;
509
+ readonly _tag: "select";
510
+ readonly options: string[];
511
+ } | {
512
+ readonly version: unknown;
513
+ readonly pending?: boolean | undefined;
514
+ readonly _tag: "anchor";
515
+ readonly objectId: string;
516
+ } | {
517
+ readonly pending?: boolean | undefined;
518
+ readonly text: string;
519
+ readonly _tag: "proposal";
520
+ } | {
521
+ readonly pending?: boolean | undefined;
522
+ readonly _tag: "summary";
523
+ readonly content: string;
524
+ } | {
525
+ readonly pending?: boolean | undefined;
526
+ readonly _tag: "toolkit";
527
+ } | {
528
+ readonly pending?: boolean | undefined;
529
+ readonly disposition?: string | undefined;
530
+ readonly _tag: "json";
531
+ readonly data: string;
532
+ })[];
533
+ readonly properties?: {
534
+ readonly [x: string]: any;
535
+ } | undefined;
536
+ }>[];
537
+ }>;
538
+ readonly threads: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
539
+ readonly name?: string | undefined;
540
+ readonly status?: "active" | "staged" | "resolved" | undefined;
541
+ readonly messages: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
542
+ readonly id: string;
543
+ readonly parentMessage?: string | undefined;
544
+ readonly threadId?: string | undefined;
545
+ readonly created: string;
546
+ readonly sender: {
547
+ readonly name?: string | undefined;
548
+ readonly role?: "user" | "assistant" | "tool" | undefined;
549
+ readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
550
+ readonly image?: string | undefined;
551
+ readonly fullName?: string | undefined;
552
+ readonly preferredName?: string | undefined;
553
+ readonly nickname?: string | undefined;
554
+ readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
555
+ readonly description?: string | undefined;
556
+ readonly name?: string | undefined;
557
+ readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
558
+ readonly image?: string | undefined;
559
+ readonly website?: string | undefined;
560
+ } & {
561
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
562
+ }> | undefined;
563
+ readonly jobTitle?: string | undefined;
564
+ readonly department?: string | undefined;
565
+ readonly notes?: string | undefined;
566
+ readonly emails?: readonly {
567
+ readonly value: string;
568
+ readonly label?: string | undefined;
569
+ }[] | undefined;
570
+ readonly identities?: readonly {
571
+ readonly value: string;
572
+ readonly label?: string | undefined;
573
+ }[] | undefined;
574
+ readonly phoneNumbers?: readonly {
575
+ readonly value: string;
576
+ readonly label?: string | undefined;
577
+ }[] | undefined;
578
+ readonly fields?: readonly {
579
+ readonly value: string;
580
+ readonly label: string;
581
+ readonly category?: string | undefined;
582
+ }[] | undefined;
583
+ readonly addresses?: readonly {
584
+ readonly value: {
585
+ readonly street?: string | undefined;
586
+ readonly extended?: string | undefined;
587
+ readonly locality?: string | undefined;
588
+ readonly region?: string | undefined;
589
+ readonly postalCode?: string | undefined;
590
+ readonly postOfficeBoxNumber?: string | undefined;
591
+ readonly country?: string | undefined;
592
+ };
593
+ readonly label?: string | undefined;
594
+ }[] | undefined;
595
+ readonly urls?: readonly {
596
+ readonly value: string;
597
+ readonly label?: string | undefined;
598
+ }[] | undefined;
599
+ readonly birthday?: string | undefined;
600
+ } & {
601
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
602
+ }> | undefined;
603
+ readonly identityDid?: string | undefined;
604
+ readonly identityKey?: string | undefined;
605
+ readonly email?: string | undefined;
606
+ };
607
+ readonly blocks: readonly ({
608
+ readonly pending?: boolean | undefined;
609
+ readonly text: string;
610
+ readonly mimeType?: string | undefined;
611
+ readonly disposition?: string | undefined;
612
+ readonly _tag: "text";
613
+ } | {
614
+ readonly pending?: boolean | undefined;
615
+ readonly _tag: "reasoning";
616
+ readonly reasoningText?: string | undefined;
617
+ readonly redactedText?: string | undefined;
618
+ readonly signature?: string | undefined;
619
+ } | {
620
+ readonly name: string;
621
+ readonly pending?: boolean | undefined;
622
+ readonly _tag: "toolCall";
623
+ readonly toolCallId: string;
624
+ readonly input: string;
625
+ readonly providerExecuted: boolean;
626
+ } | {
627
+ readonly name: string;
628
+ readonly pending?: boolean | undefined;
629
+ readonly _tag: "toolResult";
630
+ readonly toolCallId: string;
631
+ readonly providerExecuted: boolean;
632
+ readonly result?: string | undefined;
633
+ readonly error?: string | undefined;
634
+ } | {
635
+ readonly pending?: boolean | undefined;
636
+ readonly mimeType?: string | undefined;
637
+ readonly _tag: "stats";
638
+ readonly message?: string | undefined;
639
+ readonly model?: string | undefined;
640
+ readonly usage?: {
641
+ readonly inputTokens?: number | undefined;
642
+ readonly outputTokens?: number | undefined;
643
+ readonly totalTokens?: number | undefined;
644
+ } | undefined;
645
+ readonly toolCalls?: number | undefined;
646
+ readonly errors?: number | undefined;
647
+ readonly duration?: number | undefined;
648
+ } | {
649
+ readonly source?: {
650
+ readonly type: "base64";
651
+ readonly mediaType: string;
652
+ readonly data: string;
653
+ } | {
654
+ readonly type: "http";
655
+ readonly url: string;
656
+ } | undefined;
657
+ readonly id?: string | undefined;
658
+ readonly pending?: boolean | undefined;
659
+ readonly _tag: "image";
660
+ } | {
661
+ readonly name?: string | undefined;
662
+ readonly pending?: boolean | undefined;
663
+ readonly _tag: "file";
664
+ readonly mediaType?: string | undefined;
665
+ readonly url: string;
666
+ } | {
667
+ readonly pending?: boolean | undefined;
668
+ readonly _tag: "reference";
669
+ readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
670
+ } | {
671
+ readonly pending?: boolean | undefined;
672
+ readonly text: string;
673
+ readonly _tag: "transcript";
674
+ readonly started: string;
675
+ } | {
676
+ readonly pending?: boolean | undefined;
677
+ readonly _tag: "status";
678
+ readonly statusText: string;
679
+ } | {
680
+ readonly pending?: boolean | undefined;
681
+ readonly text: string;
682
+ readonly _tag: "suggestion";
683
+ } | {
684
+ readonly pending?: boolean | undefined;
685
+ readonly _tag: "select";
686
+ readonly options: string[];
687
+ } | {
688
+ readonly version: unknown;
689
+ readonly pending?: boolean | undefined;
690
+ readonly _tag: "anchor";
691
+ readonly objectId: string;
692
+ } | {
693
+ readonly pending?: boolean | undefined;
694
+ readonly text: string;
695
+ readonly _tag: "proposal";
696
+ } | {
697
+ readonly pending?: boolean | undefined;
698
+ readonly _tag: "summary";
699
+ readonly content: string;
700
+ } | {
701
+ readonly pending?: boolean | undefined;
702
+ readonly _tag: "toolkit";
703
+ } | {
704
+ readonly pending?: boolean | undefined;
705
+ readonly disposition?: string | undefined;
706
+ readonly _tag: "json";
707
+ readonly data: string;
708
+ })[];
709
+ readonly properties?: {
710
+ readonly [x: string]: any;
711
+ } | undefined;
712
+ }>[];
713
+ }>[];
714
+ }>;
715
+ //# sourceMappingURL=Channel.d.ts.map