@dxos/plugin-thread 0.8.4-main.406dc2a → 0.8.4-main.422d1c7879

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 (463) 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-UGT7V733.mjs +55 -0
  11. package/dist/lib/browser/create-UGT7V733.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 +2251 -228
  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-XAYNDVU2.mjs +56 -0
  48. package/dist/lib/node-esm/create-XAYNDVU2.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 +2251 -228
  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 +1 -1
  86. package/dist/types/src/calls/media-manager.d.ts.map +1 -1
  87. package/dist/types/src/calls/util/calls-service.d.ts +1 -1
  88. package/dist/types/src/calls/util/calls-service.d.ts.map +1 -1
  89. package/dist/types/src/calls/util/task-scheduling.d.ts +2 -2
  90. package/dist/types/src/calls/util/task-scheduling.d.ts.map +1 -1
  91. package/dist/types/src/calls-service.stories.d.ts +2 -2
  92. package/dist/types/src/calls-service.stories.d.ts.map +1 -1
  93. package/dist/types/src/capabilities/app-graph-builder.d.ts +4 -2
  94. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  95. package/dist/types/src/capabilities/blueprint-definition.d.ts +6 -0
  96. package/dist/types/src/capabilities/blueprint-definition.d.ts.map +1 -0
  97. package/dist/types/src/capabilities/call-manager.d.ts +3 -2
  98. package/dist/types/src/capabilities/call-manager.d.ts.map +1 -1
  99. package/dist/types/src/capabilities/index.d.ts +13 -14
  100. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  101. package/dist/types/src/capabilities/markdown.d.ts +3 -2
  102. package/dist/types/src/capabilities/markdown.d.ts.map +1 -1
  103. package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
  104. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
  105. package/dist/types/src/capabilities/react-root.d.ts +4 -2
  106. package/dist/types/src/capabilities/react-root.d.ts.map +1 -1
  107. package/dist/types/src/capabilities/react-surface.d.ts +3 -2
  108. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  109. package/dist/types/src/capabilities/settings.d.ts +5 -2
  110. package/dist/types/src/capabilities/settings.d.ts.map +1 -1
  111. package/dist/types/src/capabilities/state.d.ts +5 -5
  112. package/dist/types/src/capabilities/state.d.ts.map +1 -1
  113. package/dist/types/src/capabilities/undo-mappings.d.ts +5 -0
  114. package/dist/types/src/capabilities/undo-mappings.d.ts.map +1 -0
  115. package/dist/types/src/components/Call/Call.d.ts.map +1 -1
  116. package/dist/types/src/components/Call/Toolbar.d.ts +2 -2
  117. package/dist/types/src/components/Call/Toolbar.d.ts.map +1 -1
  118. package/dist/types/src/components/CommentsPanel/CommentsPanel.d.ts +13 -0
  119. package/dist/types/src/components/CommentsPanel/CommentsPanel.d.ts.map +1 -0
  120. package/dist/types/src/components/CommentsPanel/CommentsPanel.stories.d.ts +160 -0
  121. package/dist/types/src/components/CommentsPanel/CommentsPanel.stories.d.ts.map +1 -0
  122. package/dist/types/src/components/CommentsPanel/CommentsThread.d.ts +14 -0
  123. package/dist/types/src/components/CommentsPanel/CommentsThread.d.ts.map +1 -0
  124. package/dist/types/src/components/CommentsPanel/index.d.ts +3 -0
  125. package/dist/types/src/components/CommentsPanel/index.d.ts.map +1 -0
  126. package/dist/types/src/components/Lobby/Lobby.d.ts.map +1 -1
  127. package/dist/types/src/components/Media/VideoObject.d.ts +1 -1
  128. package/dist/types/src/components/Media/VideoObject.stories.d.ts +1 -1
  129. package/dist/types/src/components/Media/VideoObject.stories.d.ts.map +1 -1
  130. package/dist/types/src/components/MessagePanel/MessagePanel.d.ts +15 -0
  131. package/dist/types/src/components/MessagePanel/MessagePanel.d.ts.map +1 -0
  132. package/dist/types/src/components/MessagePanel/index.d.ts +2 -0
  133. package/dist/types/src/components/MessagePanel/index.d.ts.map +1 -0
  134. package/dist/types/src/components/Participant/Participant.d.ts.map +1 -1
  135. package/dist/types/src/components/Participant/ParticipantGrid.d.ts.map +1 -1
  136. package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.d.ts.map +1 -1
  137. package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.stories.d.ts +142 -140
  138. package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.stories.d.ts.map +1 -1
  139. package/dist/types/src/components/ResponsiveGrid/ResponsiveGridItem.d.ts.map +1 -1
  140. package/dist/types/src/components/ResponsiveGrid/{ResponsiveContainer.d.ts → ResponsivePanel.d.ts} +4 -4
  141. package/dist/types/src/components/ResponsiveGrid/ResponsivePanel.d.ts.map +1 -0
  142. package/dist/types/src/components/ResponsiveGrid/ResponsivePanel.stories.d.ts +164 -0
  143. package/dist/types/src/components/ResponsiveGrid/ResponsivePanel.stories.d.ts.map +1 -0
  144. package/dist/types/src/components/ResponsiveGrid/index.d.ts +1 -1
  145. package/dist/types/src/components/ResponsiveGrid/index.d.ts.map +1 -1
  146. package/dist/types/src/components/ThreadSettings/ThreadSettings.d.ts +6 -0
  147. package/dist/types/src/components/ThreadSettings/ThreadSettings.d.ts.map +1 -0
  148. package/dist/types/src/components/ThreadSettings/ThreadSettings.stories.d.ts +161 -0
  149. package/dist/types/src/components/ThreadSettings/ThreadSettings.stories.d.ts.map +1 -0
  150. package/dist/types/src/components/ThreadSettings/index.d.ts +2 -0
  151. package/dist/types/src/components/ThreadSettings/index.d.ts.map +1 -0
  152. package/dist/types/src/components/index.d.ts +4 -9
  153. package/dist/types/src/components/index.d.ts.map +1 -1
  154. package/dist/types/src/{components → containers/CallDebugPanel}/CallDebugPanel.d.ts +1 -1
  155. package/dist/types/src/containers/CallDebugPanel/CallDebugPanel.d.ts.map +1 -0
  156. package/dist/types/src/containers/CallDebugPanel/index.d.ts +2 -0
  157. package/dist/types/src/containers/CallDebugPanel/index.d.ts.map +1 -0
  158. package/dist/types/src/{components → containers/CallSidebar}/CallSidebar.d.ts +0 -1
  159. package/dist/types/src/containers/CallSidebar/CallSidebar.d.ts.map +1 -0
  160. package/dist/types/src/containers/CallSidebar/index.d.ts +2 -0
  161. package/dist/types/src/containers/CallSidebar/index.d.ts.map +1 -0
  162. package/dist/types/src/containers/ChannelContainer/ChannelContainer.d.ts +12 -0
  163. package/dist/types/src/containers/ChannelContainer/ChannelContainer.d.ts.map +1 -0
  164. package/dist/types/src/containers/ChannelContainer/ChannelContainer.stories.d.ts +162 -0
  165. package/dist/types/src/containers/ChannelContainer/ChannelContainer.stories.d.ts.map +1 -0
  166. package/dist/types/src/containers/ChannelContainer/index.d.ts +2 -0
  167. package/dist/types/src/containers/ChannelContainer/index.d.ts.map +1 -0
  168. package/dist/types/src/containers/ChatContainer/ChatContainer.d.ts +16 -0
  169. package/dist/types/src/containers/ChatContainer/ChatContainer.d.ts.map +1 -0
  170. package/dist/types/src/containers/ChatContainer/ChatContainer.stories.d.ts +162 -0
  171. package/dist/types/src/containers/ChatContainer/ChatContainer.stories.d.ts.map +1 -0
  172. package/dist/types/src/containers/ChatContainer/index.d.ts +4 -0
  173. package/dist/types/src/containers/ChatContainer/index.d.ts.map +1 -0
  174. package/dist/types/src/containers/ThreadCompanion/ThreadCompanion.d.ts +8 -0
  175. package/dist/types/src/containers/ThreadCompanion/ThreadCompanion.d.ts.map +1 -0
  176. package/dist/types/src/containers/ThreadCompanion/index.d.ts +2 -0
  177. package/dist/types/src/containers/ThreadCompanion/index.d.ts.map +1 -0
  178. package/dist/types/src/containers/index.d.ts +7 -0
  179. package/dist/types/src/containers/index.d.ts.map +1 -0
  180. package/dist/types/src/{components/command-extension.d.ts → extensions/command.d.ts} +1 -1
  181. package/dist/types/src/extensions/command.d.ts.map +1 -0
  182. package/dist/types/src/extensions/index.d.ts +1 -0
  183. package/dist/types/src/extensions/index.d.ts.map +1 -1
  184. package/dist/types/src/extensions/threads.d.ts +8 -3
  185. package/dist/types/src/extensions/threads.d.ts.map +1 -1
  186. package/dist/types/src/hooks/analytics.d.ts +2 -3
  187. package/dist/types/src/hooks/analytics.d.ts.map +1 -1
  188. package/dist/types/src/hooks/index.d.ts +2 -2
  189. package/dist/types/src/hooks/index.d.ts.map +1 -1
  190. package/dist/types/src/index.d.ts +1 -1
  191. package/dist/types/src/index.d.ts.map +1 -1
  192. package/dist/types/src/meta.d.ts +2 -2
  193. package/dist/types/src/meta.d.ts.map +1 -1
  194. package/dist/types/src/operations/add-message.d.ts +5 -0
  195. package/dist/types/src/operations/add-message.d.ts.map +1 -0
  196. package/dist/types/src/operations/create-channel-thread.d.ts +5 -0
  197. package/dist/types/src/operations/create-channel-thread.d.ts.map +1 -0
  198. package/dist/types/src/operations/create-channel.d.ts +5 -0
  199. package/dist/types/src/operations/create-channel.d.ts.map +1 -0
  200. package/dist/types/src/operations/create-proposals.d.ts +5 -0
  201. package/dist/types/src/operations/create-proposals.d.ts.map +1 -0
  202. package/dist/types/src/operations/create.d.ts +5 -0
  203. package/dist/types/src/operations/create.d.ts.map +1 -0
  204. package/dist/types/src/operations/definitions.d.ts +2804 -0
  205. package/dist/types/src/operations/definitions.d.ts.map +1 -0
  206. package/dist/types/src/operations/delete-message.d.ts +5 -0
  207. package/dist/types/src/operations/delete-message.d.ts.map +1 -0
  208. package/dist/types/src/operations/delete.d.ts +5 -0
  209. package/dist/types/src/operations/delete.d.ts.map +1 -0
  210. package/dist/types/src/operations/index.d.ts +4 -0
  211. package/dist/types/src/operations/index.d.ts.map +1 -0
  212. package/dist/types/src/operations/on-create-space.d.ts +5 -0
  213. package/dist/types/src/operations/on-create-space.d.ts.map +1 -0
  214. package/dist/types/src/operations/restore-message.d.ts +5 -0
  215. package/dist/types/src/operations/restore-message.d.ts.map +1 -0
  216. package/dist/types/src/operations/restore.d.ts +5 -0
  217. package/dist/types/src/operations/restore.d.ts.map +1 -0
  218. package/dist/types/src/operations/select.d.ts +5 -0
  219. package/dist/types/src/operations/select.d.ts.map +1 -0
  220. package/dist/types/src/operations/toggle-resolved.d.ts +5 -0
  221. package/dist/types/src/operations/toggle-resolved.d.ts.map +1 -0
  222. package/dist/types/src/{components/testing.d.ts → testing/data.d.ts} +4 -4
  223. package/dist/types/src/testing/data.d.ts.map +1 -0
  224. package/dist/types/src/testing/stories.d.ts +2 -1
  225. package/dist/types/src/testing/stories.d.ts.map +1 -1
  226. package/dist/types/src/translations.d.ts +142 -74
  227. package/dist/types/src/translations.d.ts.map +1 -1
  228. package/dist/types/src/types/Channel.d.ts +715 -0
  229. package/dist/types/src/types/Channel.d.ts.map +1 -0
  230. package/dist/types/src/types/Settings.d.ts +5 -0
  231. package/dist/types/src/types/Settings.d.ts.map +1 -0
  232. package/dist/types/src/types/capabilities.d.ts +24 -0
  233. package/dist/types/src/types/capabilities.d.ts.map +1 -0
  234. package/dist/types/src/types/index.d.ts +2 -1
  235. package/dist/types/src/types/index.d.ts.map +1 -1
  236. package/dist/types/src/types/types.d.ts +4 -459
  237. package/dist/types/src/types/types.d.ts.map +1 -1
  238. package/dist/types/src/util.d.ts.map +1 -1
  239. package/dist/types/tsconfig.tsbuildinfo +1 -1
  240. package/package.json +102 -72
  241. package/src/ThreadPlugin.tsx +81 -111
  242. package/src/blueprints/index.ts +5 -0
  243. package/src/blueprints/thread-blueprint.ts +37 -0
  244. package/src/calls/call-manager.ts +76 -52
  245. package/src/calls/call-swarm-synchronizer.ts +2 -2
  246. package/src/calls/media-manager.ts +10 -7
  247. package/src/calls/util/calls-service.ts +1 -2
  248. package/src/calls/util/stub-media-streams.ts +2 -2
  249. package/src/calls/util/task-scheduling.ts +4 -4
  250. package/src/calls-service.stories.tsx +10 -9
  251. package/src/capabilities/app-graph-builder.ts +172 -163
  252. package/src/capabilities/blueprint-definition.ts +17 -0
  253. package/src/capabilities/call-manager.ts +19 -12
  254. package/src/capabilities/index.ts +15 -12
  255. package/src/capabilities/markdown.ts +50 -37
  256. package/src/capabilities/operation-handler.ts +16 -0
  257. package/src/capabilities/react-root.tsx +12 -9
  258. package/src/capabilities/react-surface.tsx +80 -78
  259. package/src/capabilities/settings.ts +28 -12
  260. package/src/capabilities/state.ts +14 -18
  261. package/src/capabilities/undo-mappings.ts +46 -0
  262. package/src/components/Call/Call.tsx +11 -7
  263. package/src/components/Call/Toolbar.tsx +58 -41
  264. package/src/components/CommentsPanel/CommentsPanel.stories.tsx +93 -0
  265. package/src/components/CommentsPanel/CommentsPanel.tsx +71 -0
  266. package/src/components/{CommentsThreadContainer.tsx → CommentsPanel/CommentsThread.tsx} +60 -57
  267. package/src/components/CommentsPanel/index.ts +6 -0
  268. package/src/components/Lobby/Lobby.tsx +15 -12
  269. package/src/components/Media/AudioStream.tsx +2 -2
  270. package/src/components/Media/VideoObject.stories.tsx +6 -7
  271. package/src/components/Media/VideoObject.tsx +1 -1
  272. package/src/components/{MessageContainer.tsx → MessagePanel/MessagePanel.tsx} +77 -40
  273. package/src/components/MessagePanel/index.ts +5 -0
  274. package/src/components/Participant/Participant.tsx +33 -19
  275. package/src/components/Participant/ParticipantGrid.tsx +0 -1
  276. package/src/components/ResponsiveGrid/ResponsiveGrid.stories.tsx +9 -10
  277. package/src/components/ResponsiveGrid/ResponsiveGrid.tsx +5 -5
  278. package/src/components/ResponsiveGrid/ResponsiveGridItem.tsx +12 -9
  279. package/src/components/ResponsiveGrid/{ResponsiveContainer.stories.tsx → ResponsivePanel.stories.tsx} +7 -8
  280. package/src/components/ResponsiveGrid/{ResponsiveContainer.tsx → ResponsivePanel.tsx} +5 -5
  281. package/src/components/ResponsiveGrid/index.ts +1 -1
  282. package/src/components/ThreadSettings/ThreadSettings.stories.tsx +31 -0
  283. package/src/components/ThreadSettings/ThreadSettings.tsx +20 -0
  284. package/src/components/ThreadSettings/index.ts +5 -0
  285. package/src/components/index.ts +5 -12
  286. package/src/{components → containers/CallDebugPanel}/CallDebugPanel.tsx +15 -16
  287. package/src/containers/CallDebugPanel/index.ts +5 -0
  288. package/src/containers/CallSidebar/CallSidebar.tsx +18 -0
  289. package/src/containers/CallSidebar/index.ts +5 -0
  290. package/src/containers/ChannelContainer/ChannelContainer.stories.tsx +61 -0
  291. package/src/{components → containers/ChannelContainer}/ChannelContainer.tsx +93 -71
  292. package/src/containers/ChannelContainer/index.ts +5 -0
  293. package/src/{components/Chat.stories.tsx → containers/ChatContainer/ChatContainer.stories.tsx} +27 -31
  294. package/src/containers/ChatContainer/ChatContainer.tsx +131 -0
  295. package/src/containers/ChatContainer/index.ts +8 -0
  296. package/src/containers/ThreadCompanion/ThreadCompanion.tsx +217 -0
  297. package/src/containers/ThreadCompanion/index.ts +5 -0
  298. package/src/containers/index.ts +11 -0
  299. package/src/{components/command-extension.ts → extensions/command.ts} +3 -3
  300. package/src/extensions/index.ts +1 -0
  301. package/src/extensions/threads.ts +87 -42
  302. package/src/hooks/analytics.ts +22 -21
  303. package/src/hooks/index.ts +3 -2
  304. package/src/index.ts +1 -1
  305. package/src/meta.ts +10 -5
  306. package/src/operations/add-message.ts +81 -0
  307. package/src/operations/create-channel-thread.ts +26 -0
  308. package/src/operations/create-channel.ts +20 -0
  309. package/src/operations/create-proposals.ts +49 -0
  310. package/src/operations/create.ts +48 -0
  311. package/src/operations/definitions.ts +177 -0
  312. package/src/operations/delete-message.ts +53 -0
  313. package/src/operations/delete.ts +63 -0
  314. package/src/operations/index.ts +22 -0
  315. package/src/operations/on-create-space.ts +27 -0
  316. package/src/operations/restore-message.ts +38 -0
  317. package/src/operations/restore.ts +38 -0
  318. package/src/operations/select.ts +24 -0
  319. package/src/operations/toggle-resolved.ts +41 -0
  320. package/src/testing/data.ts +49 -0
  321. package/src/testing/stories.ts +17 -20
  322. package/src/translations.ts +74 -75
  323. package/src/types/Channel.ts +37 -0
  324. package/src/types/Settings.ts +10 -0
  325. package/src/types/capabilities.ts +36 -0
  326. package/src/types/index.ts +2 -1
  327. package/src/types/types.ts +5 -108
  328. package/src/util.ts +1 -1
  329. package/dist/lib/browser/ChannelContainer-BGDGZHV4.mjs +0 -16
  330. package/dist/lib/browser/ChatContainer-75KJZ4XR.mjs +0 -15
  331. package/dist/lib/browser/app-graph-builder-ODKIAXR7.mjs +0 -171
  332. package/dist/lib/browser/app-graph-builder-ODKIAXR7.mjs.map +0 -7
  333. package/dist/lib/browser/call-manager-BCKLI4QD.mjs +0 -24
  334. package/dist/lib/browser/call-manager-BCKLI4QD.mjs.map +0 -7
  335. package/dist/lib/browser/chunk-2MUYQOQE.mjs +0 -23
  336. package/dist/lib/browser/chunk-2MUYQOQE.mjs.map +0 -7
  337. package/dist/lib/browser/chunk-B7YQ7QR2.mjs +0 -376
  338. package/dist/lib/browser/chunk-B7YQ7QR2.mjs.map +0 -7
  339. package/dist/lib/browser/chunk-CMCVHULC.mjs +0 -986
  340. package/dist/lib/browser/chunk-CMCVHULC.mjs.map +0 -7
  341. package/dist/lib/browser/chunk-CP7E2HRE.mjs +0 -31
  342. package/dist/lib/browser/chunk-CP7E2HRE.mjs.map +0 -7
  343. package/dist/lib/browser/chunk-HDEQRBOC.mjs +0 -181
  344. package/dist/lib/browser/chunk-HDEQRBOC.mjs.map +0 -7
  345. package/dist/lib/browser/chunk-L326LSNS.mjs +0 -18
  346. package/dist/lib/browser/chunk-L326LSNS.mjs.map +0 -7
  347. package/dist/lib/browser/chunk-T4KJ5JR4.mjs +0 -15
  348. package/dist/lib/browser/chunk-T4KJ5JR4.mjs.map +0 -7
  349. package/dist/lib/browser/chunk-VJMKS4CZ.mjs +0 -619
  350. package/dist/lib/browser/chunk-VJMKS4CZ.mjs.map +0 -7
  351. package/dist/lib/browser/chunk-VTYX3SIM.mjs +0 -147
  352. package/dist/lib/browser/chunk-VTYX3SIM.mjs.map +0 -7
  353. package/dist/lib/browser/chunk-XYUJXHYV.mjs +0 -106
  354. package/dist/lib/browser/chunk-XYUJXHYV.mjs.map +0 -7
  355. package/dist/lib/browser/chunk-ZCEU5K23.mjs +0 -1890
  356. package/dist/lib/browser/chunk-ZCEU5K23.mjs.map +0 -7
  357. package/dist/lib/browser/intent-resolver-VOQD3TQ2.mjs +0 -427
  358. package/dist/lib/browser/intent-resolver-VOQD3TQ2.mjs.map +0 -7
  359. package/dist/lib/browser/markdown-R6MGRIA6.mjs +0 -169
  360. package/dist/lib/browser/markdown-R6MGRIA6.mjs.map +0 -7
  361. package/dist/lib/browser/react-root-UMSBTN6H.mjs +0 -28
  362. package/dist/lib/browser/react-root-UMSBTN6H.mjs.map +0 -7
  363. package/dist/lib/browser/react-surface-SXMQEWKE.mjs +0 -109
  364. package/dist/lib/browser/react-surface-SXMQEWKE.mjs.map +0 -7
  365. package/dist/lib/browser/settings-TCNF54PN.mjs +0 -22
  366. package/dist/lib/browser/settings-TCNF54PN.mjs.map +0 -7
  367. package/dist/lib/browser/state-ZQ4IPOJT.mjs +0 -34
  368. package/dist/lib/browser/state-ZQ4IPOJT.mjs.map +0 -7
  369. package/dist/lib/browser/toolkit-JF4B4QIO.mjs +0 -84
  370. package/dist/lib/browser/toolkit-JF4B4QIO.mjs.map +0 -7
  371. package/dist/lib/node-esm/ChannelContainer-OXC6BTU7.mjs +0 -17
  372. package/dist/lib/node-esm/ChannelContainer-OXC6BTU7.mjs.map +0 -7
  373. package/dist/lib/node-esm/ChatContainer-SH6LTFQL.mjs +0 -16
  374. package/dist/lib/node-esm/ChatContainer-SH6LTFQL.mjs.map +0 -7
  375. package/dist/lib/node-esm/app-graph-builder-DMPT3MY6.mjs +0 -172
  376. package/dist/lib/node-esm/app-graph-builder-DMPT3MY6.mjs.map +0 -7
  377. package/dist/lib/node-esm/call-manager-Q7RY2YP4.mjs +0 -25
  378. package/dist/lib/node-esm/call-manager-Q7RY2YP4.mjs.map +0 -7
  379. package/dist/lib/node-esm/chunk-2KZ4ODHU.mjs +0 -987
  380. package/dist/lib/node-esm/chunk-2KZ4ODHU.mjs.map +0 -7
  381. package/dist/lib/node-esm/chunk-2MMJF7DW.mjs +0 -182
  382. package/dist/lib/node-esm/chunk-2MMJF7DW.mjs.map +0 -7
  383. package/dist/lib/node-esm/chunk-2V3WSLUZ.mjs +0 -108
  384. package/dist/lib/node-esm/chunk-2V3WSLUZ.mjs.map +0 -7
  385. package/dist/lib/node-esm/chunk-ABUFOZVX.mjs +0 -33
  386. package/dist/lib/node-esm/chunk-ABUFOZVX.mjs.map +0 -7
  387. package/dist/lib/node-esm/chunk-BAMZXJS4.mjs +0 -148
  388. package/dist/lib/node-esm/chunk-BAMZXJS4.mjs.map +0 -7
  389. package/dist/lib/node-esm/chunk-BTGKI5IK.mjs +0 -377
  390. package/dist/lib/node-esm/chunk-BTGKI5IK.mjs.map +0 -7
  391. package/dist/lib/node-esm/chunk-GZ4WL2IS.mjs +0 -25
  392. package/dist/lib/node-esm/chunk-GZ4WL2IS.mjs.map +0 -7
  393. package/dist/lib/node-esm/chunk-LCHTNRK7.mjs +0 -19
  394. package/dist/lib/node-esm/chunk-LCHTNRK7.mjs.map +0 -7
  395. package/dist/lib/node-esm/chunk-NHSIAEDW.mjs +0 -620
  396. package/dist/lib/node-esm/chunk-NHSIAEDW.mjs.map +0 -7
  397. package/dist/lib/node-esm/chunk-OBVAURUU.mjs +0 -17
  398. package/dist/lib/node-esm/chunk-OBVAURUU.mjs.map +0 -7
  399. package/dist/lib/node-esm/chunk-TIPIOH2J.mjs +0 -1891
  400. package/dist/lib/node-esm/chunk-TIPIOH2J.mjs.map +0 -7
  401. package/dist/lib/node-esm/intent-resolver-AKVH66PH.mjs +0 -428
  402. package/dist/lib/node-esm/intent-resolver-AKVH66PH.mjs.map +0 -7
  403. package/dist/lib/node-esm/markdown-MYGTDXT6.mjs +0 -170
  404. package/dist/lib/node-esm/markdown-MYGTDXT6.mjs.map +0 -7
  405. package/dist/lib/node-esm/react-root-W6AVTL5M.mjs +0 -29
  406. package/dist/lib/node-esm/react-root-W6AVTL5M.mjs.map +0 -7
  407. package/dist/lib/node-esm/react-surface-NLSZJGMO.mjs +0 -110
  408. package/dist/lib/node-esm/react-surface-NLSZJGMO.mjs.map +0 -7
  409. package/dist/lib/node-esm/settings-ZQHGVFBY.mjs +0 -23
  410. package/dist/lib/node-esm/settings-ZQHGVFBY.mjs.map +0 -7
  411. package/dist/lib/node-esm/state-FSLLJ5TZ.mjs +0 -35
  412. package/dist/lib/node-esm/state-FSLLJ5TZ.mjs.map +0 -7
  413. package/dist/lib/node-esm/toolkit-DHPKJITO.mjs +0 -85
  414. package/dist/lib/node-esm/toolkit-DHPKJITO.mjs.map +0 -7
  415. package/dist/types/src/capabilities/capabilities.d.ts +0 -27
  416. package/dist/types/src/capabilities/capabilities.d.ts.map +0 -1
  417. package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
  418. package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
  419. package/dist/types/src/capabilities/toolkit.d.ts +0 -6
  420. package/dist/types/src/capabilities/toolkit.d.ts.map +0 -1
  421. package/dist/types/src/components/CallDebugPanel.d.ts.map +0 -1
  422. package/dist/types/src/components/CallSidebar.d.ts.map +0 -1
  423. package/dist/types/src/components/ChannelContainer.d.ts +0 -14
  424. package/dist/types/src/components/ChannelContainer.d.ts.map +0 -1
  425. package/dist/types/src/components/ChannelContainer.stories.d.ts +0 -94
  426. package/dist/types/src/components/ChannelContainer.stories.d.ts.map +0 -1
  427. package/dist/types/src/components/Chat.stories.d.ts +0 -93
  428. package/dist/types/src/components/Chat.stories.d.ts.map +0 -1
  429. package/dist/types/src/components/ChatContainer.d.ts +0 -17
  430. package/dist/types/src/components/ChatContainer.d.ts.map +0 -1
  431. package/dist/types/src/components/Comments.stories.d.ts +0 -158
  432. package/dist/types/src/components/Comments.stories.d.ts.map +0 -1
  433. package/dist/types/src/components/CommentsContainer.d.ts +0 -13
  434. package/dist/types/src/components/CommentsContainer.d.ts.map +0 -1
  435. package/dist/types/src/components/CommentsThreadContainer.d.ts +0 -14
  436. package/dist/types/src/components/CommentsThreadContainer.d.ts.map +0 -1
  437. package/dist/types/src/components/MessageContainer.d.ts +0 -14
  438. package/dist/types/src/components/MessageContainer.d.ts.map +0 -1
  439. package/dist/types/src/components/ResponsiveGrid/ResponsiveContainer.d.ts.map +0 -1
  440. package/dist/types/src/components/ResponsiveGrid/ResponsiveContainer.stories.d.ts +0 -162
  441. package/dist/types/src/components/ResponsiveGrid/ResponsiveContainer.stories.d.ts.map +0 -1
  442. package/dist/types/src/components/ThreadComplementary.d.ts +0 -5
  443. package/dist/types/src/components/ThreadComplementary.d.ts.map +0 -1
  444. package/dist/types/src/components/ThreadSettings.d.ts +0 -6
  445. package/dist/types/src/components/ThreadSettings.d.ts.map +0 -1
  446. package/dist/types/src/components/command-extension.d.ts.map +0 -1
  447. package/dist/types/src/components/testing.d.ts.map +0 -1
  448. package/dist/types/src/types/schema.d.ts +0 -179
  449. package/dist/types/src/types/schema.d.ts.map +0 -1
  450. package/src/capabilities/capabilities.ts +0 -33
  451. package/src/capabilities/intent-resolver.ts +0 -348
  452. package/src/capabilities/toolkit.ts +0 -82
  453. package/src/components/CallSidebar.tsx +0 -18
  454. package/src/components/ChannelContainer.stories.tsx +0 -59
  455. package/src/components/ChatContainer.tsx +0 -145
  456. package/src/components/Comments.stories.tsx +0 -91
  457. package/src/components/CommentsContainer.tsx +0 -72
  458. package/src/components/ThreadComplementary.tsx +0 -181
  459. package/src/components/ThreadSettings.tsx +0 -16
  460. package/src/components/testing.ts +0 -51
  461. package/src/types/schema.ts +0 -33
  462. /package/dist/lib/browser/{ChannelContainer-BGDGZHV4.mjs.map → chunk-J5LGTIGS.mjs.map} +0 -0
  463. /package/dist/lib/{browser/ChatContainer-75KJZ4XR.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?: "user" | "synthetic" | "cot" | "version-pin" | 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?: "user" | "synthetic" | "cot" | "version-pin" | 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?: "user" | "synthetic" | "cot" | "version-pin" | 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?: "user" | "synthetic" | "cot" | "version-pin" | 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?: "user" | "synthetic" | "cot" | "version-pin" | 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?: "user" | "synthetic" | "cot" | "version-pin" | 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?: "user" | "synthetic" | "cot" | "version-pin" | 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?: "user" | "synthetic" | "cot" | "version-pin" | 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