@dxos/plugin-thread 0.8.4-main.67995b8 → 0.8.4-main.6fa680abb7

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 (513) hide show
  1. package/dist/lib/browser/CallDebugPanel-BO3SLD4E.mjs +182 -0
  2. package/dist/lib/browser/CallDebugPanel-BO3SLD4E.mjs.map +7 -0
  3. package/dist/lib/browser/CallSidebar-WGAPDBFY.mjs +36 -0
  4. package/dist/lib/browser/CallSidebar-WGAPDBFY.mjs.map +7 -0
  5. package/dist/lib/browser/ChannelContainer-M7YGXCQ3.mjs +17 -0
  6. package/dist/lib/browser/ChatContainer-DZ2JIT7Y.mjs +18 -0
  7. package/dist/lib/browser/ThreadCompanion-UUOD5N66.mjs +207 -0
  8. package/dist/lib/browser/ThreadCompanion-UUOD5N66.mjs.map +7 -0
  9. package/dist/lib/browser/ThreadSettings-VL3HBE62.mjs +20 -0
  10. package/dist/lib/browser/ThreadSettings-VL3HBE62.mjs.map +7 -0
  11. package/dist/lib/browser/app-graph-builder-MOGFPE3O.mjs +189 -0
  12. package/dist/lib/browser/app-graph-builder-MOGFPE3O.mjs.map +7 -0
  13. package/dist/lib/browser/blueprint-definition-UJ4QH3LV.mjs +17 -0
  14. package/dist/lib/browser/blueprint-definition-UJ4QH3LV.mjs.map +7 -0
  15. package/dist/lib/browser/blueprints/index.mjs +8 -0
  16. package/dist/lib/browser/call-manager-SBJYUKXN.mjs +27 -0
  17. package/dist/lib/browser/call-manager-SBJYUKXN.mjs.map +7 -0
  18. package/dist/lib/browser/chunk-2M2HV5K4.mjs +35 -0
  19. package/dist/lib/browser/chunk-2M2HV5K4.mjs.map +7 -0
  20. package/dist/lib/browser/chunk-A4VH2D5C.mjs +277 -0
  21. package/dist/lib/browser/chunk-A4VH2D5C.mjs.map +7 -0
  22. package/dist/lib/browser/chunk-BWXT2OVT.mjs +1094 -0
  23. package/dist/lib/browser/chunk-BWXT2OVT.mjs.map +7 -0
  24. package/dist/lib/browser/{chunk-GERVMFQW.mjs → chunk-CP7E2HRE.mjs} +2 -2
  25. package/dist/lib/browser/chunk-CP7E2HRE.mjs.map +7 -0
  26. package/dist/lib/browser/{chunk-ZE7KWN36.mjs → chunk-ERK254BS.mjs} +381 -240
  27. package/dist/lib/browser/chunk-ERK254BS.mjs.map +7 -0
  28. package/dist/lib/browser/{chunk-ERWASUQK.mjs → chunk-HDLDMR54.mjs} +85 -50
  29. package/dist/lib/browser/chunk-HDLDMR54.mjs.map +7 -0
  30. package/dist/lib/browser/{chunk-6NSMBO3B.mjs → chunk-ISCHODBV.mjs} +55 -5
  31. package/dist/lib/browser/chunk-ISCHODBV.mjs.map +7 -0
  32. package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
  33. package/dist/lib/browser/chunk-J75MXJZN.mjs +105 -0
  34. package/dist/lib/browser/chunk-J75MXJZN.mjs.map +7 -0
  35. package/dist/lib/browser/chunk-MJXZ26FR.mjs +135 -0
  36. package/dist/lib/browser/chunk-MJXZ26FR.mjs.map +7 -0
  37. package/dist/lib/browser/chunk-MQJNILMF.mjs +127 -0
  38. package/dist/lib/browser/chunk-MQJNILMF.mjs.map +7 -0
  39. package/dist/lib/browser/chunk-QVJO3VJ4.mjs +20 -0
  40. package/dist/lib/browser/chunk-QVJO3VJ4.mjs.map +7 -0
  41. package/dist/lib/browser/chunk-SRVNHDO7.mjs +221 -0
  42. package/dist/lib/browser/chunk-SRVNHDO7.mjs.map +7 -0
  43. package/dist/lib/browser/index.mjs +135 -137
  44. package/dist/lib/browser/index.mjs.map +4 -4
  45. package/dist/lib/browser/markdown-EG46BLO3.mjs +83 -0
  46. package/dist/lib/browser/markdown-EG46BLO3.mjs.map +7 -0
  47. package/dist/lib/browser/meta.json +1 -1
  48. package/dist/lib/browser/operation-resolver-ZZAG4PJ2.mjs +434 -0
  49. package/dist/lib/browser/operation-resolver-ZZAG4PJ2.mjs.map +7 -0
  50. package/dist/lib/browser/react-root-5MXZ6Y3J.mjs +27 -0
  51. package/dist/lib/browser/react-root-5MXZ6Y3J.mjs.map +7 -0
  52. package/dist/lib/browser/react-surface-J4X3HUUD.mjs +115 -0
  53. package/dist/lib/browser/react-surface-J4X3HUUD.mjs.map +7 -0
  54. package/dist/lib/browser/settings-E6YJEDEZ.mjs +35 -0
  55. package/dist/lib/browser/settings-E6YJEDEZ.mjs.map +7 -0
  56. package/dist/lib/browser/state-G35LOVYP.mjs +25 -0
  57. package/dist/lib/browser/state-G35LOVYP.mjs.map +7 -0
  58. package/dist/lib/browser/types/index.mjs +11 -12
  59. package/dist/lib/node-esm/CallDebugPanel-7OIL5FVT.mjs +183 -0
  60. package/dist/lib/node-esm/CallDebugPanel-7OIL5FVT.mjs.map +7 -0
  61. package/dist/lib/node-esm/CallSidebar-QDM234XX.mjs +37 -0
  62. package/dist/lib/node-esm/CallSidebar-QDM234XX.mjs.map +7 -0
  63. package/dist/lib/node-esm/ChannelContainer-AFBKQJZU.mjs +18 -0
  64. package/dist/lib/node-esm/ChannelContainer-AFBKQJZU.mjs.map +7 -0
  65. package/dist/lib/node-esm/ChatContainer-ZQF6LTM6.mjs +19 -0
  66. package/dist/lib/node-esm/ChatContainer-ZQF6LTM6.mjs.map +7 -0
  67. package/dist/lib/node-esm/ThreadCompanion-SNRNEPWT.mjs +208 -0
  68. package/dist/lib/node-esm/ThreadCompanion-SNRNEPWT.mjs.map +7 -0
  69. package/dist/lib/node-esm/ThreadSettings-TCZMYH3J.mjs +21 -0
  70. package/dist/lib/node-esm/ThreadSettings-TCZMYH3J.mjs.map +7 -0
  71. package/dist/lib/node-esm/app-graph-builder-BIAIWS2E.mjs +190 -0
  72. package/dist/lib/node-esm/app-graph-builder-BIAIWS2E.mjs.map +7 -0
  73. package/dist/lib/node-esm/blueprint-definition-SABUBK23.mjs +18 -0
  74. package/dist/lib/node-esm/blueprint-definition-SABUBK23.mjs.map +7 -0
  75. package/dist/lib/node-esm/blueprints/index.mjs +9 -0
  76. package/dist/lib/node-esm/blueprints/index.mjs.map +7 -0
  77. package/dist/lib/node-esm/call-manager-5JYDNYEA.mjs +28 -0
  78. package/dist/lib/node-esm/call-manager-5JYDNYEA.mjs.map +7 -0
  79. package/dist/lib/node-esm/chunk-4H4UJROP.mjs +128 -0
  80. package/dist/lib/node-esm/chunk-4H4UJROP.mjs.map +7 -0
  81. package/dist/lib/node-esm/chunk-7CNPVAGT.mjs +222 -0
  82. package/dist/lib/node-esm/chunk-7CNPVAGT.mjs.map +7 -0
  83. package/dist/lib/node-esm/chunk-A3SWGVF3.mjs +37 -0
  84. package/dist/lib/node-esm/chunk-A3SWGVF3.mjs.map +7 -0
  85. package/dist/lib/node-esm/{chunk-57XR3LEF.mjs → chunk-ABUFOZVX.mjs} +2 -2
  86. package/dist/lib/node-esm/chunk-ABUFOZVX.mjs.map +7 -0
  87. package/dist/lib/node-esm/chunk-DFXKA3BF.mjs +1095 -0
  88. package/dist/lib/node-esm/chunk-DFXKA3BF.mjs.map +7 -0
  89. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
  90. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +7 -0
  91. package/dist/lib/node-esm/chunk-HT4D266X.mjs +278 -0
  92. package/dist/lib/node-esm/chunk-HT4D266X.mjs.map +7 -0
  93. package/dist/lib/node-esm/chunk-N2T5KLKB.mjs +22 -0
  94. package/dist/lib/node-esm/chunk-N2T5KLKB.mjs.map +7 -0
  95. package/dist/lib/node-esm/chunk-NDSI2G7B.mjs +107 -0
  96. package/dist/lib/node-esm/chunk-NDSI2G7B.mjs.map +7 -0
  97. package/dist/lib/node-esm/{chunk-IHDNQLLR.mjs → chunk-QP3KQOPQ.mjs} +381 -240
  98. package/dist/lib/node-esm/chunk-QP3KQOPQ.mjs.map +7 -0
  99. package/dist/lib/node-esm/chunk-SV74KS5H.mjs +136 -0
  100. package/dist/lib/node-esm/chunk-SV74KS5H.mjs.map +7 -0
  101. package/dist/lib/node-esm/{chunk-OU5BYIDO.mjs → chunk-VBI32FGI.mjs} +55 -5
  102. package/dist/lib/node-esm/chunk-VBI32FGI.mjs.map +7 -0
  103. package/dist/lib/node-esm/{chunk-25ABSYP2.mjs → chunk-YN2Y7GPW.mjs} +85 -50
  104. package/dist/lib/node-esm/chunk-YN2Y7GPW.mjs.map +7 -0
  105. package/dist/lib/node-esm/index.mjs +135 -137
  106. package/dist/lib/node-esm/index.mjs.map +4 -4
  107. package/dist/lib/node-esm/markdown-YUI4GVUF.mjs +84 -0
  108. package/dist/lib/node-esm/markdown-YUI4GVUF.mjs.map +7 -0
  109. package/dist/lib/node-esm/meta.json +1 -1
  110. package/dist/lib/node-esm/operation-resolver-YJMVCJEM.mjs +435 -0
  111. package/dist/lib/node-esm/operation-resolver-YJMVCJEM.mjs.map +7 -0
  112. package/dist/lib/node-esm/react-root-I3D36WIQ.mjs +28 -0
  113. package/dist/lib/node-esm/react-root-I3D36WIQ.mjs.map +7 -0
  114. package/dist/lib/node-esm/react-surface-3OCF55AK.mjs +116 -0
  115. package/dist/lib/node-esm/react-surface-3OCF55AK.mjs.map +7 -0
  116. package/dist/lib/node-esm/settings-2FQ6CDHD.mjs +36 -0
  117. package/dist/lib/node-esm/settings-2FQ6CDHD.mjs.map +7 -0
  118. package/dist/lib/node-esm/state-ZQ2Y3R2X.mjs +26 -0
  119. package/dist/lib/node-esm/state-ZQ2Y3R2X.mjs.map +7 -0
  120. package/dist/lib/node-esm/types/index.mjs +11 -12
  121. package/dist/types/src/ThreadPlugin.d.ts +2 -1
  122. package/dist/types/src/ThreadPlugin.d.ts.map +1 -1
  123. package/dist/types/src/blueprints/index.d.ts +2 -0
  124. package/dist/types/src/blueprints/index.d.ts.map +1 -0
  125. package/dist/types/src/blueprints/thread-blueprint.d.ts +4 -0
  126. package/dist/types/src/blueprints/thread-blueprint.d.ts.map +1 -0
  127. package/dist/types/src/calls/call-manager.d.ts +40 -30
  128. package/dist/types/src/calls/call-manager.d.ts.map +1 -1
  129. package/dist/types/src/calls/call-swarm-synchronizer.d.ts +2 -2
  130. package/dist/types/src/calls/call-swarm-synchronizer.d.ts.map +1 -1
  131. package/dist/types/src/calls/media-manager.d.ts +2 -2
  132. package/dist/types/src/calls/media-manager.d.ts.map +1 -1
  133. package/dist/types/src/calls/types.d.ts +1 -1
  134. package/dist/types/src/calls/types.d.ts.map +1 -1
  135. package/dist/types/src/calls/util/calls-service.d.ts +5 -3
  136. package/dist/types/src/calls/util/calls-service.d.ts.map +1 -1
  137. package/dist/types/src/calls/util/stub-media-streams.d.ts.map +1 -1
  138. package/dist/types/src/calls/util/task-scheduling.d.ts +2 -2
  139. package/dist/types/src/calls/util/task-scheduling.d.ts.map +1 -1
  140. package/dist/types/src/calls-service.stories.d.ts +10 -9
  141. package/dist/types/src/calls-service.stories.d.ts.map +1 -1
  142. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +6 -0
  143. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +1 -0
  144. package/dist/types/src/capabilities/app-graph-builder/index.d.ts +3 -0
  145. package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +1 -0
  146. package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts +6 -0
  147. package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts.map +1 -0
  148. package/dist/types/src/capabilities/blueprint-definition/index.d.ts +3 -0
  149. package/dist/types/src/capabilities/blueprint-definition/index.d.ts.map +1 -0
  150. package/dist/types/src/capabilities/call-manager/call-manager.d.ts +6 -0
  151. package/dist/types/src/capabilities/call-manager/call-manager.d.ts.map +1 -0
  152. package/dist/types/src/capabilities/call-manager/index.d.ts +3 -0
  153. package/dist/types/src/capabilities/call-manager/index.d.ts.map +1 -0
  154. package/dist/types/src/capabilities/index.d.ts +9 -15
  155. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  156. package/dist/types/src/capabilities/markdown/index.d.ts +3 -0
  157. package/dist/types/src/capabilities/markdown/index.d.ts.map +1 -0
  158. package/dist/types/src/capabilities/markdown/markdown.d.ts +5 -0
  159. package/dist/types/src/capabilities/markdown/markdown.d.ts.map +1 -0
  160. package/dist/types/src/capabilities/operation-resolver/index.d.ts +3 -0
  161. package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +1 -0
  162. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +5 -0
  163. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +1 -0
  164. package/dist/types/src/capabilities/react-root/index.d.ts +6 -0
  165. package/dist/types/src/capabilities/react-root/index.d.ts.map +1 -0
  166. package/dist/types/src/capabilities/react-root/react-root.d.ts +9 -0
  167. package/dist/types/src/capabilities/react-root/react-root.d.ts.map +1 -0
  168. package/dist/types/src/capabilities/react-surface/index.d.ts +3 -0
  169. package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
  170. package/dist/types/src/capabilities/react-surface/react-surface.d.ts +5 -0
  171. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
  172. package/dist/types/src/capabilities/settings/index.d.ts +3 -0
  173. package/dist/types/src/capabilities/settings/index.d.ts.map +1 -0
  174. package/dist/types/src/capabilities/settings/settings.d.ts +6 -0
  175. package/dist/types/src/capabilities/settings/settings.d.ts.map +1 -0
  176. package/dist/types/src/capabilities/state/index.d.ts +3 -0
  177. package/dist/types/src/capabilities/state/index.d.ts.map +1 -0
  178. package/dist/types/src/capabilities/state/state.d.ts +7 -0
  179. package/dist/types/src/capabilities/state/state.d.ts.map +1 -0
  180. package/dist/types/src/components/Call/Call.d.ts.map +1 -1
  181. package/dist/types/src/components/Call/Toolbar.d.ts +2 -2
  182. package/dist/types/src/components/Call/Toolbar.d.ts.map +1 -1
  183. package/dist/types/src/components/CommentsPanel/CommentsPanel.d.ts +13 -0
  184. package/dist/types/src/components/CommentsPanel/CommentsPanel.d.ts.map +1 -0
  185. package/dist/types/src/components/CommentsPanel/CommentsPanel.stories.d.ts +164 -0
  186. package/dist/types/src/components/CommentsPanel/CommentsPanel.stories.d.ts.map +1 -0
  187. package/dist/types/src/components/CommentsPanel/CommentsThread.d.ts +14 -0
  188. package/dist/types/src/components/CommentsPanel/CommentsThread.d.ts.map +1 -0
  189. package/dist/types/src/components/CommentsPanel/index.d.ts +3 -0
  190. package/dist/types/src/components/CommentsPanel/index.d.ts.map +1 -0
  191. package/dist/types/src/components/Lobby/Lobby.d.ts.map +1 -1
  192. package/dist/types/src/components/Media/VideoObject.d.ts +3 -3
  193. package/dist/types/src/components/Media/VideoObject.d.ts.map +1 -1
  194. package/dist/types/src/components/Media/VideoObject.stories.d.ts +18 -4
  195. package/dist/types/src/components/Media/VideoObject.stories.d.ts.map +1 -1
  196. package/dist/types/src/components/MessagePanel/MessagePanel.d.ts +15 -0
  197. package/dist/types/src/components/MessagePanel/MessagePanel.d.ts.map +1 -0
  198. package/dist/types/src/components/MessagePanel/index.d.ts +2 -0
  199. package/dist/types/src/components/MessagePanel/index.d.ts.map +1 -0
  200. package/dist/types/src/components/Participant/Participant.d.ts.map +1 -1
  201. package/dist/types/src/components/Participant/ParticipantGrid.d.ts.map +1 -1
  202. package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.stories.d.ts +163 -4
  203. package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.stories.d.ts.map +1 -1
  204. package/dist/types/src/components/ResponsiveGrid/ResponsiveGridItem.d.ts.map +1 -1
  205. package/dist/types/src/components/ResponsiveGrid/{ResponsiveContainer.d.ts → ResponsivePanel.d.ts} +4 -4
  206. package/dist/types/src/components/ResponsiveGrid/ResponsivePanel.d.ts.map +1 -0
  207. package/dist/types/src/components/ResponsiveGrid/ResponsivePanel.stories.d.ts +168 -0
  208. package/dist/types/src/components/ResponsiveGrid/ResponsivePanel.stories.d.ts.map +1 -0
  209. package/dist/types/src/components/ResponsiveGrid/index.d.ts +1 -1
  210. package/dist/types/src/components/ResponsiveGrid/index.d.ts.map +1 -1
  211. package/dist/types/src/components/index.d.ts +2 -9
  212. package/dist/types/src/components/index.d.ts.map +1 -1
  213. package/dist/types/src/containers/CallDebugPanel/CallDebugPanel.d.ts +15 -0
  214. package/dist/types/src/containers/CallDebugPanel/CallDebugPanel.d.ts.map +1 -0
  215. package/dist/types/src/containers/CallDebugPanel/index.d.ts +3 -0
  216. package/dist/types/src/containers/CallDebugPanel/index.d.ts.map +1 -0
  217. package/dist/types/src/{components → containers/CallSidebar}/CallSidebar.d.ts +0 -1
  218. package/dist/types/src/containers/CallSidebar/CallSidebar.d.ts.map +1 -0
  219. package/dist/types/src/containers/CallSidebar/index.d.ts +3 -0
  220. package/dist/types/src/containers/CallSidebar/index.d.ts.map +1 -0
  221. package/dist/types/src/containers/ChannelContainer/ChannelContainer.d.ts +12 -0
  222. package/dist/types/src/containers/ChannelContainer/ChannelContainer.d.ts.map +1 -0
  223. package/dist/types/src/containers/ChannelContainer/ChannelContainer.stories.d.ts +166 -0
  224. package/dist/types/src/containers/ChannelContainer/ChannelContainer.stories.d.ts.map +1 -0
  225. package/dist/types/src/containers/ChannelContainer/index.d.ts +3 -0
  226. package/dist/types/src/containers/ChannelContainer/index.d.ts.map +1 -0
  227. package/dist/types/src/containers/ChatContainer/ChatContainer.d.ts +17 -0
  228. package/dist/types/src/containers/ChatContainer/ChatContainer.d.ts.map +1 -0
  229. package/dist/types/src/containers/ChatContainer/ChatContainer.stories.d.ts +166 -0
  230. package/dist/types/src/containers/ChatContainer/ChatContainer.stories.d.ts.map +1 -0
  231. package/dist/types/src/containers/ChatContainer/index.d.ts +4 -0
  232. package/dist/types/src/containers/ChatContainer/index.d.ts.map +1 -0
  233. package/dist/types/src/containers/ThreadCompanion/ThreadCompanion.d.ts +6 -0
  234. package/dist/types/src/containers/ThreadCompanion/ThreadCompanion.d.ts.map +1 -0
  235. package/dist/types/src/containers/ThreadCompanion/index.d.ts +3 -0
  236. package/dist/types/src/containers/ThreadCompanion/index.d.ts.map +1 -0
  237. package/dist/types/src/containers/ThreadSettings/ThreadSettings.d.ts +8 -0
  238. package/dist/types/src/containers/ThreadSettings/ThreadSettings.d.ts.map +1 -0
  239. package/dist/types/src/containers/ThreadSettings/index.d.ts +3 -0
  240. package/dist/types/src/containers/ThreadSettings/index.d.ts.map +1 -0
  241. package/dist/types/src/containers/index.d.ts +8 -0
  242. package/dist/types/src/containers/index.d.ts.map +1 -0
  243. package/dist/types/src/{components/command-extension.d.ts → extensions/command.d.ts} +1 -1
  244. package/dist/types/src/extensions/command.d.ts.map +1 -0
  245. package/dist/types/src/extensions/index.d.ts +1 -0
  246. package/dist/types/src/extensions/index.d.ts.map +1 -1
  247. package/dist/types/src/extensions/threads.d.ts +7 -2
  248. package/dist/types/src/extensions/threads.d.ts.map +1 -1
  249. package/dist/types/src/functions/create-proposals.d.ts +13 -0
  250. package/dist/types/src/functions/create-proposals.d.ts.map +1 -0
  251. package/dist/types/src/functions/index.d.ts +14 -0
  252. package/dist/types/src/functions/index.d.ts.map +1 -0
  253. package/dist/types/src/hooks/analytics.d.ts +2 -3
  254. package/dist/types/src/hooks/analytics.d.ts.map +1 -1
  255. package/dist/types/src/hooks/index.d.ts +2 -1
  256. package/dist/types/src/hooks/index.d.ts.map +1 -1
  257. package/dist/types/src/hooks/useBlackCanvasStreamTrack.d.ts +2 -0
  258. package/dist/types/src/hooks/useBlackCanvasStreamTrack.d.ts.map +1 -0
  259. package/dist/types/src/hooks/useVideoStreamTrack.d.ts +1 -1
  260. package/dist/types/src/hooks/useVideoStreamTrack.d.ts.map +1 -1
  261. package/dist/types/src/index.d.ts +1 -1
  262. package/dist/types/src/index.d.ts.map +1 -1
  263. package/dist/types/src/meta.d.ts +3 -4
  264. package/dist/types/src/meta.d.ts.map +1 -1
  265. package/dist/types/src/testing/data.d.ts +5 -0
  266. package/dist/types/src/testing/data.d.ts.map +1 -0
  267. package/dist/types/src/testing/stories.d.ts +2 -1
  268. package/dist/types/src/testing/stories.d.ts.map +1 -1
  269. package/dist/types/src/translations.d.ts +81 -7
  270. package/dist/types/src/translations.d.ts.map +1 -1
  271. package/dist/types/src/types/Channel.d.ts +711 -0
  272. package/dist/types/src/types/Channel.d.ts.map +1 -0
  273. package/dist/types/src/types/capabilities.d.ts +23 -0
  274. package/dist/types/src/types/capabilities.d.ts.map +1 -0
  275. package/dist/types/src/types/index.d.ts +2 -1
  276. package/dist/types/src/types/index.d.ts.map +1 -1
  277. package/dist/types/src/types/types.d.ts +3300 -365
  278. package/dist/types/src/types/types.d.ts.map +1 -1
  279. package/dist/types/tsconfig.tsbuildinfo +1 -1
  280. package/package.json +91 -66
  281. package/src/ThreadPlugin.tsx +91 -130
  282. package/src/blueprints/index.ts +5 -0
  283. package/src/blueprints/thread-blueprint.ts +40 -0
  284. package/src/calls/call-manager.ts +78 -54
  285. package/src/calls/call-swarm-synchronizer.ts +3 -3
  286. package/src/calls/media-manager.ts +67 -38
  287. package/src/calls/types.ts +8 -4
  288. package/src/calls/util/calls-service.ts +66 -15
  289. package/src/calls/util/stub-media-streams.ts +64 -7
  290. package/src/calls/util/task-scheduling.ts +4 -4
  291. package/src/calls-service.stories.tsx +79 -66
  292. package/src/capabilities/app-graph-builder/app-graph-builder.ts +203 -0
  293. package/src/capabilities/app-graph-builder/index.ts +7 -0
  294. package/src/capabilities/blueprint-definition/blueprint-definition.ts +17 -0
  295. package/src/capabilities/blueprint-definition/index.ts +7 -0
  296. package/src/capabilities/call-manager/call-manager.ts +26 -0
  297. package/src/capabilities/call-manager/index.ts +7 -0
  298. package/src/capabilities/index.ts +9 -12
  299. package/src/capabilities/markdown/index.ts +7 -0
  300. package/src/capabilities/markdown/markdown.ts +81 -0
  301. package/src/capabilities/operation-resolver/index.ts +7 -0
  302. package/src/capabilities/operation-resolver/operation-resolver.ts +392 -0
  303. package/src/capabilities/react-root/index.ts +7 -0
  304. package/src/capabilities/react-root/react-root.tsx +20 -0
  305. package/src/capabilities/react-surface/index.ts +7 -0
  306. package/src/capabilities/react-surface/react-surface.tsx +101 -0
  307. package/src/capabilities/settings/index.ts +7 -0
  308. package/src/capabilities/settings/settings.ts +34 -0
  309. package/src/capabilities/state/index.ts +7 -0
  310. package/src/capabilities/state/state.ts +22 -0
  311. package/src/components/Call/Call.tsx +11 -6
  312. package/src/components/Call/Toolbar.tsx +40 -33
  313. package/src/components/CommentsPanel/CommentsPanel.stories.tsx +93 -0
  314. package/src/components/CommentsPanel/CommentsPanel.tsx +71 -0
  315. package/src/components/{CommentsThreadContainer.tsx → CommentsPanel/CommentsThread.tsx} +60 -55
  316. package/src/components/CommentsPanel/index.ts +6 -0
  317. package/src/components/Lobby/Lobby.tsx +13 -11
  318. package/src/components/Media/AudioStream.tsx +2 -2
  319. package/src/components/Media/VideoObject.stories.tsx +37 -29
  320. package/src/components/Media/VideoObject.tsx +1 -1
  321. package/src/components/MessagePanel/MessagePanel.tsx +216 -0
  322. package/src/components/MessagePanel/index.ts +5 -0
  323. package/src/components/Participant/Participant.tsx +34 -15
  324. package/src/components/Participant/ParticipantGrid.tsx +2 -1
  325. package/src/components/ResponsiveGrid/ResponsiveGrid.stories.tsx +45 -43
  326. package/src/components/ResponsiveGrid/ResponsiveGrid.tsx +5 -5
  327. package/src/components/ResponsiveGrid/ResponsiveGridItem.tsx +9 -6
  328. package/src/components/ResponsiveGrid/{ResponsiveContainer.stories.tsx → ResponsivePanel.stories.tsx} +11 -11
  329. package/src/components/ResponsiveGrid/{ResponsiveContainer.tsx → ResponsivePanel.tsx} +4 -4
  330. package/src/components/ResponsiveGrid/index.ts +1 -1
  331. package/src/components/index.ts +2 -13
  332. package/src/containers/CallDebugPanel/CallDebugPanel.tsx +172 -0
  333. package/src/containers/CallDebugPanel/index.ts +7 -0
  334. package/src/containers/CallSidebar/CallSidebar.tsx +17 -0
  335. package/src/containers/CallSidebar/index.ts +7 -0
  336. package/src/containers/ChannelContainer/ChannelContainer.stories.tsx +59 -0
  337. package/src/{components → containers/ChannelContainer}/ChannelContainer.tsx +81 -59
  338. package/src/containers/ChannelContainer/index.ts +7 -0
  339. package/src/containers/ChatContainer/ChatContainer.stories.tsx +87 -0
  340. package/src/{components → containers/ChatContainer}/ChatContainer.tsx +67 -63
  341. package/src/containers/ChatContainer/index.ts +8 -0
  342. package/src/containers/ThreadCompanion/ThreadCompanion.tsx +199 -0
  343. package/src/containers/ThreadCompanion/index.ts +7 -0
  344. package/src/containers/ThreadSettings/ThreadSettings.tsx +22 -0
  345. package/src/containers/ThreadSettings/index.ts +7 -0
  346. package/src/containers/index.ts +12 -0
  347. package/src/{components/command-extension.ts → extensions/command.ts} +7 -4
  348. package/src/extensions/index.ts +1 -0
  349. package/src/extensions/threads.ts +86 -42
  350. package/src/functions/create-proposals.ts +57 -0
  351. package/src/functions/index.ts +9 -0
  352. package/src/hooks/analytics.ts +22 -21
  353. package/src/hooks/index.ts +3 -1
  354. package/src/hooks/useBlackCanvasStreamTrack.tsx +27 -0
  355. package/src/hooks/useDebugMode.ts +1 -1
  356. package/src/hooks/useVideoStreamTrack.tsx +6 -3
  357. package/src/index.ts +1 -1
  358. package/src/meta.ts +11 -7
  359. package/src/testing/data.ts +49 -0
  360. package/src/testing/stories.ts +18 -16
  361. package/src/translations.ts +10 -4
  362. package/src/types/Channel.ts +32 -0
  363. package/src/types/capabilities.ts +34 -0
  364. package/src/types/index.ts +2 -1
  365. package/src/types/types.ts +170 -82
  366. package/src/typings/peermetrics-webrtc-stats.d.ts +17 -1
  367. package/src/typings.d.ts +8 -0
  368. package/src/util.ts +1 -1
  369. package/dist/lib/browser/ChannelContainer-3GIE7ASU.mjs +0 -16
  370. package/dist/lib/browser/ChatContainer-AIGIWAUG.mjs +0 -15
  371. package/dist/lib/browser/app-graph-builder-N7BE5TYW.mjs +0 -171
  372. package/dist/lib/browser/app-graph-builder-N7BE5TYW.mjs.map +0 -7
  373. package/dist/lib/browser/call-manager-NIPDYUVD.mjs +0 -24
  374. package/dist/lib/browser/call-manager-NIPDYUVD.mjs.map +0 -7
  375. package/dist/lib/browser/chunk-3SGRT4NM.mjs +0 -367
  376. package/dist/lib/browser/chunk-3SGRT4NM.mjs.map +0 -7
  377. package/dist/lib/browser/chunk-6NSMBO3B.mjs.map +0 -7
  378. package/dist/lib/browser/chunk-ERWASUQK.mjs.map +0 -7
  379. package/dist/lib/browser/chunk-EV4JWI7L.mjs +0 -17
  380. package/dist/lib/browser/chunk-EV4JWI7L.mjs.map +0 -7
  381. package/dist/lib/browser/chunk-FR7KJPNY.mjs +0 -21
  382. package/dist/lib/browser/chunk-FR7KJPNY.mjs.map +0 -7
  383. package/dist/lib/browser/chunk-GCLD5ESP.mjs +0 -137
  384. package/dist/lib/browser/chunk-GCLD5ESP.mjs.map +0 -7
  385. package/dist/lib/browser/chunk-GERVMFQW.mjs.map +0 -7
  386. package/dist/lib/browser/chunk-KWPRNHTK.mjs +0 -984
  387. package/dist/lib/browser/chunk-KWPRNHTK.mjs.map +0 -7
  388. package/dist/lib/browser/chunk-LGSDKXPF.mjs +0 -18
  389. package/dist/lib/browser/chunk-LGSDKXPF.mjs.map +0 -7
  390. package/dist/lib/browser/chunk-VUWC4IJM.mjs +0 -479
  391. package/dist/lib/browser/chunk-VUWC4IJM.mjs.map +0 -7
  392. package/dist/lib/browser/chunk-ZE7KWN36.mjs.map +0 -7
  393. package/dist/lib/browser/intent-resolver-JFGLZ6VI.mjs +0 -369
  394. package/dist/lib/browser/intent-resolver-JFGLZ6VI.mjs.map +0 -7
  395. package/dist/lib/browser/markdown-M3FMR7OD.mjs +0 -169
  396. package/dist/lib/browser/markdown-M3FMR7OD.mjs.map +0 -7
  397. package/dist/lib/browser/react-root-JEUSQXI6.mjs +0 -28
  398. package/dist/lib/browser/react-root-JEUSQXI6.mjs.map +0 -7
  399. package/dist/lib/browser/react-surface-XWS6GIZY.mjs +0 -109
  400. package/dist/lib/browser/react-surface-XWS6GIZY.mjs.map +0 -7
  401. package/dist/lib/browser/settings-E32MTL7A.mjs +0 -22
  402. package/dist/lib/browser/settings-E32MTL7A.mjs.map +0 -7
  403. package/dist/lib/browser/state-H6CYONWE.mjs +0 -34
  404. package/dist/lib/browser/state-H6CYONWE.mjs.map +0 -7
  405. package/dist/lib/node-esm/ChannelContainer-7FXCKO7X.mjs +0 -17
  406. package/dist/lib/node-esm/ChatContainer-IQUWU426.mjs +0 -16
  407. package/dist/lib/node-esm/app-graph-builder-VCW76Z6V.mjs +0 -172
  408. package/dist/lib/node-esm/app-graph-builder-VCW76Z6V.mjs.map +0 -7
  409. package/dist/lib/node-esm/call-manager-D6O5ZJJ4.mjs +0 -25
  410. package/dist/lib/node-esm/call-manager-D6O5ZJJ4.mjs.map +0 -7
  411. package/dist/lib/node-esm/chunk-25ABSYP2.mjs.map +0 -7
  412. package/dist/lib/node-esm/chunk-2CXOK2TD.mjs +0 -23
  413. package/dist/lib/node-esm/chunk-2CXOK2TD.mjs.map +0 -7
  414. package/dist/lib/node-esm/chunk-2MFNK53T.mjs +0 -480
  415. package/dist/lib/node-esm/chunk-2MFNK53T.mjs.map +0 -7
  416. package/dist/lib/node-esm/chunk-57XR3LEF.mjs.map +0 -7
  417. package/dist/lib/node-esm/chunk-75RJ5DJI.mjs +0 -19
  418. package/dist/lib/node-esm/chunk-75RJ5DJI.mjs.map +0 -7
  419. package/dist/lib/node-esm/chunk-C3XFMUAY.mjs +0 -985
  420. package/dist/lib/node-esm/chunk-C3XFMUAY.mjs.map +0 -7
  421. package/dist/lib/node-esm/chunk-FLBFYGBK.mjs +0 -368
  422. package/dist/lib/node-esm/chunk-FLBFYGBK.mjs.map +0 -7
  423. package/dist/lib/node-esm/chunk-GRLRWTRU.mjs +0 -19
  424. package/dist/lib/node-esm/chunk-GRLRWTRU.mjs.map +0 -7
  425. package/dist/lib/node-esm/chunk-IHDNQLLR.mjs.map +0 -7
  426. package/dist/lib/node-esm/chunk-OU5BYIDO.mjs.map +0 -7
  427. package/dist/lib/node-esm/chunk-TDFHTCZZ.mjs +0 -138
  428. package/dist/lib/node-esm/chunk-TDFHTCZZ.mjs.map +0 -7
  429. package/dist/lib/node-esm/intent-resolver-OXGNQ44Y.mjs +0 -370
  430. package/dist/lib/node-esm/intent-resolver-OXGNQ44Y.mjs.map +0 -7
  431. package/dist/lib/node-esm/markdown-INKTE4MH.mjs +0 -170
  432. package/dist/lib/node-esm/markdown-INKTE4MH.mjs.map +0 -7
  433. package/dist/lib/node-esm/react-root-XYYY2JXZ.mjs +0 -29
  434. package/dist/lib/node-esm/react-root-XYYY2JXZ.mjs.map +0 -7
  435. package/dist/lib/node-esm/react-surface-MJ33KPYE.mjs +0 -110
  436. package/dist/lib/node-esm/react-surface-MJ33KPYE.mjs.map +0 -7
  437. package/dist/lib/node-esm/settings-SJ24YG7M.mjs +0 -23
  438. package/dist/lib/node-esm/settings-SJ24YG7M.mjs.map +0 -7
  439. package/dist/lib/node-esm/state-D7WNDT3N.mjs +0 -35
  440. package/dist/lib/node-esm/state-D7WNDT3N.mjs.map +0 -7
  441. package/dist/types/src/capabilities/app-graph-builder.d.ts +0 -4
  442. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +0 -1
  443. package/dist/types/src/capabilities/call-manager.d.ts +0 -5
  444. package/dist/types/src/capabilities/call-manager.d.ts.map +0 -1
  445. package/dist/types/src/capabilities/capabilities.d.ts +0 -27
  446. package/dist/types/src/capabilities/capabilities.d.ts.map +0 -1
  447. package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
  448. package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
  449. package/dist/types/src/capabilities/markdown.d.ts +0 -4
  450. package/dist/types/src/capabilities/markdown.d.ts.map +0 -1
  451. package/dist/types/src/capabilities/react-root.d.ts +0 -7
  452. package/dist/types/src/capabilities/react-root.d.ts.map +0 -1
  453. package/dist/types/src/capabilities/react-surface.d.ts +0 -4
  454. package/dist/types/src/capabilities/react-surface.d.ts.map +0 -1
  455. package/dist/types/src/capabilities/settings.d.ts +0 -4
  456. package/dist/types/src/capabilities/settings.d.ts.map +0 -1
  457. package/dist/types/src/capabilities/state.d.ts +0 -7
  458. package/dist/types/src/capabilities/state.d.ts.map +0 -1
  459. package/dist/types/src/components/CallDebugPanel.d.ts +0 -8
  460. package/dist/types/src/components/CallDebugPanel.d.ts.map +0 -1
  461. package/dist/types/src/components/CallSidebar.d.ts.map +0 -1
  462. package/dist/types/src/components/ChannelContainer.d.ts +0 -14
  463. package/dist/types/src/components/ChannelContainer.d.ts.map +0 -1
  464. package/dist/types/src/components/ChannelContainer.stories.d.ts +0 -10
  465. package/dist/types/src/components/ChannelContainer.stories.d.ts.map +0 -1
  466. package/dist/types/src/components/Chat.stories.d.ts +0 -7
  467. package/dist/types/src/components/Chat.stories.d.ts.map +0 -1
  468. package/dist/types/src/components/ChatContainer.d.ts +0 -17
  469. package/dist/types/src/components/ChatContainer.d.ts.map +0 -1
  470. package/dist/types/src/components/Comments.stories.d.ts +0 -6
  471. package/dist/types/src/components/Comments.stories.d.ts.map +0 -1
  472. package/dist/types/src/components/CommentsContainer.d.ts +0 -13
  473. package/dist/types/src/components/CommentsContainer.d.ts.map +0 -1
  474. package/dist/types/src/components/CommentsThreadContainer.d.ts +0 -14
  475. package/dist/types/src/components/CommentsThreadContainer.d.ts.map +0 -1
  476. package/dist/types/src/components/MessageContainer.d.ts +0 -11
  477. package/dist/types/src/components/MessageContainer.d.ts.map +0 -1
  478. package/dist/types/src/components/ResponsiveGrid/ResponsiveContainer.d.ts.map +0 -1
  479. package/dist/types/src/components/ResponsiveGrid/ResponsiveContainer.stories.d.ts +0 -10
  480. package/dist/types/src/components/ResponsiveGrid/ResponsiveContainer.stories.d.ts.map +0 -1
  481. package/dist/types/src/components/ThreadComplementary.d.ts +0 -5
  482. package/dist/types/src/components/ThreadComplementary.d.ts.map +0 -1
  483. package/dist/types/src/components/ThreadSettings.d.ts +0 -6
  484. package/dist/types/src/components/ThreadSettings.d.ts.map +0 -1
  485. package/dist/types/src/components/command-extension.d.ts.map +0 -1
  486. package/dist/types/src/components/testing.d.ts +0 -4
  487. package/dist/types/src/components/testing.d.ts.map +0 -1
  488. package/dist/types/src/types/schema.d.ts +0 -162
  489. package/dist/types/src/types/schema.d.ts.map +0 -1
  490. package/src/capabilities/app-graph-builder.ts +0 -180
  491. package/src/capabilities/call-manager.ts +0 -19
  492. package/src/capabilities/capabilities.ts +0 -33
  493. package/src/capabilities/intent-resolver.ts +0 -314
  494. package/src/capabilities/markdown.ts +0 -68
  495. package/src/capabilities/react-root.tsx +0 -17
  496. package/src/capabilities/react-surface.tsx +0 -88
  497. package/src/capabilities/settings.ts +0 -19
  498. package/src/capabilities/state.ts +0 -25
  499. package/src/components/CallDebugPanel.tsx +0 -115
  500. package/src/components/CallSidebar.tsx +0 -17
  501. package/src/components/ChannelContainer.stories.tsx +0 -58
  502. package/src/components/Chat.stories.tsx +0 -88
  503. package/src/components/Comments.stories.tsx +0 -92
  504. package/src/components/CommentsContainer.tsx +0 -71
  505. package/src/components/MessageContainer.tsx +0 -151
  506. package/src/components/ThreadComplementary.tsx +0 -151
  507. package/src/components/ThreadSettings.tsx +0 -17
  508. package/src/components/testing.ts +0 -29
  509. package/src/types/schema.ts +0 -33
  510. /package/dist/lib/browser/{ChannelContainer-3GIE7ASU.mjs.map → ChannelContainer-M7YGXCQ3.mjs.map} +0 -0
  511. /package/dist/lib/browser/{ChatContainer-AIGIWAUG.mjs.map → ChatContainer-DZ2JIT7Y.mjs.map} +0 -0
  512. /package/dist/lib/{node-esm/ChannelContainer-7FXCKO7X.mjs.map → browser/blueprints/index.mjs.map} +0 -0
  513. /package/dist/lib/{node-esm/ChatContainer-IQUWU426.mjs.map → browser/chunk-J5LGTIGS.mjs.map} +0 -0
@@ -1,374 +1,3309 @@
1
- import { Schema } from 'effect';
2
- import { Type } from '@dxos/echo';
3
- import { AnchoredTo } from '@dxos/schema';
4
- import { ChannelType, ThreadType } from './schema';
5
- export declare namespace ThreadAction {
6
- const OnSpaceCreated_base: Schema.TaggedClass<OnSpaceCreated, "dxos.org/plugin/thread/action/on-space-created", {
7
- readonly _tag: Schema.tag<"dxos.org/plugin/thread/action/on-space-created">;
8
- } & {
9
- input: Schema.Struct<{
10
- space: Schema.Schema<import("@dxos/client-protocol").Space, import("@dxos/client-protocol").Space, never>;
11
- rootCollection: Type.obj<Schema.Struct<{
12
- name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
13
- objects: import("effect/Schema").mutable<import("effect/Schema").Array$<import("@dxos/echo/Type").ref<import("effect/Schema").Schema<import("@dxos/echo/Type").Expando, {
14
- [x: string]: any;
1
+ import * as Schema from 'effect/Schema';
2
+ import { Capability } from '@dxos/app-framework';
3
+ import { Key, Obj } from '@dxos/echo';
4
+ import { AnchoredTo, Thread } from '@dxos/types';
5
+ /**
6
+ * Operations for the Thread plugin.
7
+ * Note: Complex ECHO types are typed as Schema.Any to avoid serialization issues.
8
+ */
9
+ export declare namespace ThreadOperation {
10
+ const OnCreateSpace: Omit<{
11
+ readonly meta: {
12
+ readonly key: `${string}.on-create-space`;
13
+ readonly name: "On Create Space";
14
+ };
15
+ readonly services: readonly [typeof Capability.Service];
16
+ readonly schema: {
17
+ readonly input: Schema.Struct<{
18
+ space: Schema.Schema<import("@dxos/client-protocol").Space, import("@dxos/client-protocol").Space, never>;
19
+ rootCollection: import("@dxos/echo/Type").Obj<{
20
+ readonly name?: string | undefined;
21
+ readonly objects: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>[];
22
+ }, Schema.Struct.Fields>;
23
+ isDefault: Schema.optional<typeof Schema.Boolean>;
24
+ }>;
25
+ readonly output: typeof Schema.Void;
26
+ };
27
+ }, "executionMode"> & import("effect/Pipeable").Pipeable & {
28
+ readonly executionMode: "sync" | "async";
29
+ };
30
+ const CreateChannel: Omit<{
31
+ readonly meta: {
32
+ readonly key: `${string}.create-channel`;
33
+ readonly name: "Create Channel";
34
+ };
35
+ readonly services: readonly [typeof Capability.Service];
36
+ readonly schema: {
37
+ readonly input: Schema.Struct<{
38
+ spaceId: Schema.Schema<Key.SpaceId, string, never> & {
39
+ byteLength: number;
40
+ encode: (value: Uint8Array) => Key.SpaceId;
41
+ decode: (value: Key.SpaceId) => Uint8Array;
42
+ isValid: (value: unknown) => value is Key.SpaceId;
43
+ make: (value: string) => Key.SpaceId;
44
+ random: () => Key.SpaceId;
45
+ };
46
+ name: Schema.optional<typeof Schema.String>;
47
+ }>;
48
+ readonly output: Schema.Struct<{
49
+ object: import("@dxos/echo/Type").Obj<{
50
+ readonly name?: string | undefined;
51
+ readonly defaultThread: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
52
+ readonly name?: string | undefined;
53
+ readonly status?: "active" | "staged" | "resolved" | undefined;
54
+ readonly messages: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
55
+ readonly id: string;
56
+ readonly parentMessage?: string | undefined;
57
+ readonly created: string;
58
+ readonly sender: {
59
+ readonly name?: string | undefined;
60
+ readonly role?: "user" | "assistant" | "tool" | undefined;
61
+ readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
62
+ readonly image?: string | undefined;
63
+ readonly fullName?: string | undefined;
64
+ readonly preferredName?: string | undefined;
65
+ readonly nickname?: string | undefined;
66
+ readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
67
+ readonly description?: string | undefined;
68
+ readonly name?: string | undefined;
69
+ readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
70
+ readonly image?: string | undefined;
71
+ readonly website?: string | undefined;
72
+ } & {
73
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
74
+ }> | undefined;
75
+ readonly jobTitle?: string | undefined;
76
+ readonly department?: string | undefined;
77
+ readonly notes?: string | undefined;
78
+ readonly emails?: readonly {
79
+ readonly value: string;
80
+ readonly label?: string | undefined;
81
+ }[] | undefined;
82
+ readonly identities?: readonly {
83
+ readonly value: string;
84
+ readonly label?: string | undefined;
85
+ }[] | undefined;
86
+ readonly phoneNumbers?: readonly {
87
+ readonly value: string;
88
+ readonly label?: string | undefined;
89
+ }[] | undefined;
90
+ readonly fields?: readonly {
91
+ readonly value: string;
92
+ readonly label: string;
93
+ readonly category?: string | undefined;
94
+ }[] | undefined;
95
+ readonly addresses?: readonly {
96
+ readonly value: {
97
+ readonly street?: string | undefined;
98
+ readonly extended?: string | undefined;
99
+ readonly locality?: string | undefined;
100
+ readonly region?: string | undefined;
101
+ readonly postalCode?: string | undefined;
102
+ readonly postOfficeBoxNumber?: string | undefined;
103
+ readonly country?: string | undefined;
104
+ };
105
+ readonly label?: string | undefined;
106
+ }[] | undefined;
107
+ readonly urls?: readonly {
108
+ readonly value: string;
109
+ readonly label?: string | undefined;
110
+ }[] | undefined;
111
+ readonly birthday?: string | undefined;
112
+ } & {
113
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
114
+ }> | undefined;
115
+ readonly identityDid?: string | undefined;
116
+ readonly identityKey?: string | undefined;
117
+ readonly email?: string | undefined;
118
+ };
119
+ readonly blocks: readonly ({
120
+ readonly pending?: boolean | undefined;
121
+ readonly text: string;
122
+ readonly mimeType?: string | undefined;
123
+ readonly disposition?: string | undefined;
124
+ readonly _tag: "text";
125
+ } | {
126
+ readonly pending?: boolean | undefined;
127
+ readonly _tag: "reasoning";
128
+ readonly reasoningText?: string | undefined;
129
+ readonly redactedText?: string | undefined;
130
+ readonly signature?: string | undefined;
131
+ } | {
132
+ readonly name: string;
133
+ readonly pending?: boolean | undefined;
134
+ readonly _tag: "toolCall";
135
+ readonly toolCallId: string;
136
+ readonly input: string;
137
+ readonly providerExecuted: boolean;
138
+ } | {
139
+ readonly name: string;
140
+ readonly pending?: boolean | undefined;
141
+ readonly _tag: "toolResult";
142
+ readonly toolCallId: string;
143
+ readonly providerExecuted: boolean;
144
+ readonly result?: string | undefined;
145
+ readonly error?: string | undefined;
146
+ } | {
147
+ readonly pending?: boolean | undefined;
148
+ readonly mimeType?: string | undefined;
149
+ readonly _tag: "stats";
150
+ readonly message?: string | undefined;
151
+ readonly model?: string | undefined;
152
+ readonly usage?: {
153
+ readonly inputTokens?: number | undefined;
154
+ readonly outputTokens?: number | undefined;
155
+ readonly totalTokens?: number | undefined;
156
+ } | undefined;
157
+ readonly toolCalls?: number | undefined;
158
+ readonly errors?: number | undefined;
159
+ readonly duration?: number | undefined;
160
+ } | {
161
+ readonly source?: {
162
+ readonly type: "base64";
163
+ readonly mediaType: string;
164
+ readonly data: string;
165
+ } | {
166
+ readonly type: "http";
167
+ readonly url: string;
168
+ } | undefined;
169
+ readonly id?: string | undefined;
170
+ readonly pending?: boolean | undefined;
171
+ readonly _tag: "image";
172
+ } | {
173
+ readonly name?: string | undefined;
174
+ readonly pending?: boolean | undefined;
175
+ readonly _tag: "file";
176
+ readonly mediaType?: string | undefined;
177
+ readonly url: string;
178
+ } | {
179
+ readonly pending?: boolean | undefined;
180
+ readonly _tag: "reference";
181
+ readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
182
+ } | {
183
+ readonly pending?: boolean | undefined;
184
+ readonly text: string;
185
+ readonly _tag: "transcript";
186
+ readonly started: string;
187
+ } | {
188
+ readonly pending?: boolean | undefined;
189
+ readonly _tag: "status";
190
+ readonly statusText: string;
191
+ } | {
192
+ readonly pending?: boolean | undefined;
193
+ readonly text: string;
194
+ readonly _tag: "suggestion";
195
+ } | {
196
+ readonly pending?: boolean | undefined;
197
+ readonly _tag: "select";
198
+ readonly options: string[];
199
+ } | {
200
+ readonly version: unknown;
201
+ readonly pending?: boolean | undefined;
202
+ readonly _tag: "anchor";
203
+ readonly objectId: string;
204
+ } | {
205
+ readonly pending?: boolean | undefined;
206
+ readonly text: string;
207
+ readonly _tag: "proposal";
208
+ } | {
209
+ readonly pending?: boolean | undefined;
210
+ readonly _tag: "summary";
211
+ readonly content: string;
212
+ } | {
213
+ readonly pending?: boolean | undefined;
214
+ readonly _tag: "toolkit";
215
+ } | {
216
+ readonly pending?: boolean | undefined;
217
+ readonly disposition?: string | undefined;
218
+ readonly _tag: "json";
219
+ readonly data: string;
220
+ })[];
221
+ readonly properties?: {
222
+ readonly [x: string]: any;
223
+ } | undefined;
224
+ }>[];
225
+ }>;
226
+ readonly threads: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
227
+ readonly name?: string | undefined;
228
+ readonly status?: "active" | "staged" | "resolved" | undefined;
229
+ readonly messages: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
230
+ readonly id: string;
231
+ readonly parentMessage?: string | undefined;
232
+ readonly created: string;
233
+ readonly sender: {
234
+ readonly name?: string | undefined;
235
+ readonly role?: "user" | "assistant" | "tool" | undefined;
236
+ readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
237
+ readonly image?: string | undefined;
238
+ readonly fullName?: string | undefined;
239
+ readonly preferredName?: string | undefined;
240
+ readonly nickname?: string | undefined;
241
+ readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
242
+ readonly description?: string | undefined;
243
+ readonly name?: string | undefined;
244
+ readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
245
+ readonly image?: string | undefined;
246
+ readonly website?: string | undefined;
247
+ } & {
248
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
249
+ }> | undefined;
250
+ readonly jobTitle?: string | undefined;
251
+ readonly department?: string | undefined;
252
+ readonly notes?: string | undefined;
253
+ readonly emails?: readonly {
254
+ readonly value: string;
255
+ readonly label?: string | undefined;
256
+ }[] | undefined;
257
+ readonly identities?: readonly {
258
+ readonly value: string;
259
+ readonly label?: string | undefined;
260
+ }[] | undefined;
261
+ readonly phoneNumbers?: readonly {
262
+ readonly value: string;
263
+ readonly label?: string | undefined;
264
+ }[] | undefined;
265
+ readonly fields?: readonly {
266
+ readonly value: string;
267
+ readonly label: string;
268
+ readonly category?: string | undefined;
269
+ }[] | undefined;
270
+ readonly addresses?: readonly {
271
+ readonly value: {
272
+ readonly street?: string | undefined;
273
+ readonly extended?: string | undefined;
274
+ readonly locality?: string | undefined;
275
+ readonly region?: string | undefined;
276
+ readonly postalCode?: string | undefined;
277
+ readonly postOfficeBoxNumber?: string | undefined;
278
+ readonly country?: string | undefined;
279
+ };
280
+ readonly label?: string | undefined;
281
+ }[] | undefined;
282
+ readonly urls?: readonly {
283
+ readonly value: string;
284
+ readonly label?: string | undefined;
285
+ }[] | undefined;
286
+ readonly birthday?: string | undefined;
287
+ } & {
288
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
289
+ }> | undefined;
290
+ readonly identityDid?: string | undefined;
291
+ readonly identityKey?: string | undefined;
292
+ readonly email?: string | undefined;
293
+ };
294
+ readonly blocks: readonly ({
295
+ readonly pending?: boolean | undefined;
296
+ readonly text: string;
297
+ readonly mimeType?: string | undefined;
298
+ readonly disposition?: string | undefined;
299
+ readonly _tag: "text";
300
+ } | {
301
+ readonly pending?: boolean | undefined;
302
+ readonly _tag: "reasoning";
303
+ readonly reasoningText?: string | undefined;
304
+ readonly redactedText?: string | undefined;
305
+ readonly signature?: string | undefined;
306
+ } | {
307
+ readonly name: string;
308
+ readonly pending?: boolean | undefined;
309
+ readonly _tag: "toolCall";
310
+ readonly toolCallId: string;
311
+ readonly input: string;
312
+ readonly providerExecuted: boolean;
313
+ } | {
314
+ readonly name: string;
315
+ readonly pending?: boolean | undefined;
316
+ readonly _tag: "toolResult";
317
+ readonly toolCallId: string;
318
+ readonly providerExecuted: boolean;
319
+ readonly result?: string | undefined;
320
+ readonly error?: string | undefined;
321
+ } | {
322
+ readonly pending?: boolean | undefined;
323
+ readonly mimeType?: string | undefined;
324
+ readonly _tag: "stats";
325
+ readonly message?: string | undefined;
326
+ readonly model?: string | undefined;
327
+ readonly usage?: {
328
+ readonly inputTokens?: number | undefined;
329
+ readonly outputTokens?: number | undefined;
330
+ readonly totalTokens?: number | undefined;
331
+ } | undefined;
332
+ readonly toolCalls?: number | undefined;
333
+ readonly errors?: number | undefined;
334
+ readonly duration?: number | undefined;
335
+ } | {
336
+ readonly source?: {
337
+ readonly type: "base64";
338
+ readonly mediaType: string;
339
+ readonly data: string;
340
+ } | {
341
+ readonly type: "http";
342
+ readonly url: string;
343
+ } | undefined;
344
+ readonly id?: string | undefined;
345
+ readonly pending?: boolean | undefined;
346
+ readonly _tag: "image";
347
+ } | {
348
+ readonly name?: string | undefined;
349
+ readonly pending?: boolean | undefined;
350
+ readonly _tag: "file";
351
+ readonly mediaType?: string | undefined;
352
+ readonly url: string;
353
+ } | {
354
+ readonly pending?: boolean | undefined;
355
+ readonly _tag: "reference";
356
+ readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
357
+ } | {
358
+ readonly pending?: boolean | undefined;
359
+ readonly text: string;
360
+ readonly _tag: "transcript";
361
+ readonly started: string;
362
+ } | {
363
+ readonly pending?: boolean | undefined;
364
+ readonly _tag: "status";
365
+ readonly statusText: string;
366
+ } | {
367
+ readonly pending?: boolean | undefined;
368
+ readonly text: string;
369
+ readonly _tag: "suggestion";
370
+ } | {
371
+ readonly pending?: boolean | undefined;
372
+ readonly _tag: "select";
373
+ readonly options: string[];
374
+ } | {
375
+ readonly version: unknown;
376
+ readonly pending?: boolean | undefined;
377
+ readonly _tag: "anchor";
378
+ readonly objectId: string;
379
+ } | {
380
+ readonly pending?: boolean | undefined;
381
+ readonly text: string;
382
+ readonly _tag: "proposal";
383
+ } | {
384
+ readonly pending?: boolean | undefined;
385
+ readonly _tag: "summary";
386
+ readonly content: string;
387
+ } | {
388
+ readonly pending?: boolean | undefined;
389
+ readonly _tag: "toolkit";
390
+ } | {
391
+ readonly pending?: boolean | undefined;
392
+ readonly disposition?: string | undefined;
393
+ readonly _tag: "json";
394
+ readonly data: string;
395
+ })[];
396
+ readonly properties?: {
397
+ readonly [x: string]: any;
398
+ } | undefined;
399
+ }>[];
400
+ }>[];
401
+ }, Schema.Struct.Fields>;
402
+ }>;
403
+ };
404
+ }, "executionMode"> & import("effect/Pipeable").Pipeable & {
405
+ readonly executionMode: "sync" | "async";
406
+ };
407
+ const CreateChannelThread: Omit<{
408
+ readonly meta: {
409
+ readonly key: `${string}.create-channel-thread`;
410
+ readonly name: "Create Channel Thread";
411
+ };
412
+ readonly services: readonly [typeof Capability.Service];
413
+ readonly schema: {
414
+ readonly input: Schema.Struct<{
415
+ channel: import("@dxos/echo/Type").Obj<{
416
+ readonly name?: string | undefined;
417
+ readonly defaultThread: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
418
+ readonly name?: string | undefined;
419
+ readonly status?: "active" | "staged" | "resolved" | undefined;
420
+ readonly messages: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
421
+ readonly id: string;
422
+ readonly parentMessage?: string | undefined;
423
+ readonly created: string;
424
+ readonly sender: {
425
+ readonly name?: string | undefined;
426
+ readonly role?: "user" | "assistant" | "tool" | undefined;
427
+ readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
428
+ readonly image?: string | undefined;
429
+ readonly fullName?: string | undefined;
430
+ readonly preferredName?: string | undefined;
431
+ readonly nickname?: string | undefined;
432
+ readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
433
+ readonly description?: string | undefined;
434
+ readonly name?: string | undefined;
435
+ readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
436
+ readonly image?: string | undefined;
437
+ readonly website?: string | undefined;
438
+ } & {
439
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
440
+ }> | undefined;
441
+ readonly jobTitle?: string | undefined;
442
+ readonly department?: string | undefined;
443
+ readonly notes?: string | undefined;
444
+ readonly emails?: readonly {
445
+ readonly value: string;
446
+ readonly label?: string | undefined;
447
+ }[] | undefined;
448
+ readonly identities?: readonly {
449
+ readonly value: string;
450
+ readonly label?: string | undefined;
451
+ }[] | undefined;
452
+ readonly phoneNumbers?: readonly {
453
+ readonly value: string;
454
+ readonly label?: string | undefined;
455
+ }[] | undefined;
456
+ readonly fields?: readonly {
457
+ readonly value: string;
458
+ readonly label: string;
459
+ readonly category?: string | undefined;
460
+ }[] | undefined;
461
+ readonly addresses?: readonly {
462
+ readonly value: {
463
+ readonly street?: string | undefined;
464
+ readonly extended?: string | undefined;
465
+ readonly locality?: string | undefined;
466
+ readonly region?: string | undefined;
467
+ readonly postalCode?: string | undefined;
468
+ readonly postOfficeBoxNumber?: string | undefined;
469
+ readonly country?: string | undefined;
470
+ };
471
+ readonly label?: string | undefined;
472
+ }[] | undefined;
473
+ readonly urls?: readonly {
474
+ readonly value: string;
475
+ readonly label?: string | undefined;
476
+ }[] | undefined;
477
+ readonly birthday?: string | undefined;
478
+ } & {
479
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
480
+ }> | undefined;
481
+ readonly identityDid?: string | undefined;
482
+ readonly identityKey?: string | undefined;
483
+ readonly email?: string | undefined;
484
+ };
485
+ readonly blocks: readonly ({
486
+ readonly pending?: boolean | undefined;
487
+ readonly text: string;
488
+ readonly mimeType?: string | undefined;
489
+ readonly disposition?: string | undefined;
490
+ readonly _tag: "text";
491
+ } | {
492
+ readonly pending?: boolean | undefined;
493
+ readonly _tag: "reasoning";
494
+ readonly reasoningText?: string | undefined;
495
+ readonly redactedText?: string | undefined;
496
+ readonly signature?: string | undefined;
497
+ } | {
498
+ readonly name: string;
499
+ readonly pending?: boolean | undefined;
500
+ readonly _tag: "toolCall";
501
+ readonly toolCallId: string;
502
+ readonly input: string;
503
+ readonly providerExecuted: boolean;
504
+ } | {
505
+ readonly name: string;
506
+ readonly pending?: boolean | undefined;
507
+ readonly _tag: "toolResult";
508
+ readonly toolCallId: string;
509
+ readonly providerExecuted: boolean;
510
+ readonly result?: string | undefined;
511
+ readonly error?: string | undefined;
512
+ } | {
513
+ readonly pending?: boolean | undefined;
514
+ readonly mimeType?: string | undefined;
515
+ readonly _tag: "stats";
516
+ readonly message?: string | undefined;
517
+ readonly model?: string | undefined;
518
+ readonly usage?: {
519
+ readonly inputTokens?: number | undefined;
520
+ readonly outputTokens?: number | undefined;
521
+ readonly totalTokens?: number | undefined;
522
+ } | undefined;
523
+ readonly toolCalls?: number | undefined;
524
+ readonly errors?: number | undefined;
525
+ readonly duration?: number | undefined;
526
+ } | {
527
+ readonly source?: {
528
+ readonly type: "base64";
529
+ readonly mediaType: string;
530
+ readonly data: string;
531
+ } | {
532
+ readonly type: "http";
533
+ readonly url: string;
534
+ } | undefined;
535
+ readonly id?: string | undefined;
536
+ readonly pending?: boolean | undefined;
537
+ readonly _tag: "image";
538
+ } | {
539
+ readonly name?: string | undefined;
540
+ readonly pending?: boolean | undefined;
541
+ readonly _tag: "file";
542
+ readonly mediaType?: string | undefined;
543
+ readonly url: string;
544
+ } | {
545
+ readonly pending?: boolean | undefined;
546
+ readonly _tag: "reference";
547
+ readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
548
+ } | {
549
+ readonly pending?: boolean | undefined;
550
+ readonly text: string;
551
+ readonly _tag: "transcript";
552
+ readonly started: string;
553
+ } | {
554
+ readonly pending?: boolean | undefined;
555
+ readonly _tag: "status";
556
+ readonly statusText: string;
557
+ } | {
558
+ readonly pending?: boolean | undefined;
559
+ readonly text: string;
560
+ readonly _tag: "suggestion";
561
+ } | {
562
+ readonly pending?: boolean | undefined;
563
+ readonly _tag: "select";
564
+ readonly options: string[];
565
+ } | {
566
+ readonly version: unknown;
567
+ readonly pending?: boolean | undefined;
568
+ readonly _tag: "anchor";
569
+ readonly objectId: string;
570
+ } | {
571
+ readonly pending?: boolean | undefined;
572
+ readonly text: string;
573
+ readonly _tag: "proposal";
574
+ } | {
575
+ readonly pending?: boolean | undefined;
576
+ readonly _tag: "summary";
577
+ readonly content: string;
578
+ } | {
579
+ readonly pending?: boolean | undefined;
580
+ readonly _tag: "toolkit";
581
+ } | {
582
+ readonly pending?: boolean | undefined;
583
+ readonly disposition?: string | undefined;
584
+ readonly _tag: "json";
585
+ readonly data: string;
586
+ })[];
587
+ readonly properties?: {
588
+ readonly [x: string]: any;
589
+ } | undefined;
590
+ }>[];
591
+ }>;
592
+ readonly threads: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
593
+ readonly name?: string | undefined;
594
+ readonly status?: "active" | "staged" | "resolved" | undefined;
595
+ readonly messages: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
596
+ readonly id: string;
597
+ readonly parentMessage?: string | undefined;
598
+ readonly created: string;
599
+ readonly sender: {
600
+ readonly name?: string | undefined;
601
+ readonly role?: "user" | "assistant" | "tool" | undefined;
602
+ readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
603
+ readonly image?: string | undefined;
604
+ readonly fullName?: string | undefined;
605
+ readonly preferredName?: string | undefined;
606
+ readonly nickname?: string | undefined;
607
+ readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
608
+ readonly description?: string | undefined;
609
+ readonly name?: string | undefined;
610
+ readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
611
+ readonly image?: string | undefined;
612
+ readonly website?: string | undefined;
613
+ } & {
614
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
615
+ }> | undefined;
616
+ readonly jobTitle?: string | undefined;
617
+ readonly department?: string | undefined;
618
+ readonly notes?: string | undefined;
619
+ readonly emails?: readonly {
620
+ readonly value: string;
621
+ readonly label?: string | undefined;
622
+ }[] | undefined;
623
+ readonly identities?: readonly {
624
+ readonly value: string;
625
+ readonly label?: string | undefined;
626
+ }[] | undefined;
627
+ readonly phoneNumbers?: readonly {
628
+ readonly value: string;
629
+ readonly label?: string | undefined;
630
+ }[] | undefined;
631
+ readonly fields?: readonly {
632
+ readonly value: string;
633
+ readonly label: string;
634
+ readonly category?: string | undefined;
635
+ }[] | undefined;
636
+ readonly addresses?: readonly {
637
+ readonly value: {
638
+ readonly street?: string | undefined;
639
+ readonly extended?: string | undefined;
640
+ readonly locality?: string | undefined;
641
+ readonly region?: string | undefined;
642
+ readonly postalCode?: string | undefined;
643
+ readonly postOfficeBoxNumber?: string | undefined;
644
+ readonly country?: string | undefined;
645
+ };
646
+ readonly label?: string | undefined;
647
+ }[] | undefined;
648
+ readonly urls?: readonly {
649
+ readonly value: string;
650
+ readonly label?: string | undefined;
651
+ }[] | undefined;
652
+ readonly birthday?: string | undefined;
653
+ } & {
654
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
655
+ }> | undefined;
656
+ readonly identityDid?: string | undefined;
657
+ readonly identityKey?: string | undefined;
658
+ readonly email?: string | undefined;
659
+ };
660
+ readonly blocks: readonly ({
661
+ readonly pending?: boolean | undefined;
662
+ readonly text: string;
663
+ readonly mimeType?: string | undefined;
664
+ readonly disposition?: string | undefined;
665
+ readonly _tag: "text";
666
+ } | {
667
+ readonly pending?: boolean | undefined;
668
+ readonly _tag: "reasoning";
669
+ readonly reasoningText?: string | undefined;
670
+ readonly redactedText?: string | undefined;
671
+ readonly signature?: string | undefined;
672
+ } | {
673
+ readonly name: string;
674
+ readonly pending?: boolean | undefined;
675
+ readonly _tag: "toolCall";
676
+ readonly toolCallId: string;
677
+ readonly input: string;
678
+ readonly providerExecuted: boolean;
679
+ } | {
680
+ readonly name: string;
681
+ readonly pending?: boolean | undefined;
682
+ readonly _tag: "toolResult";
683
+ readonly toolCallId: string;
684
+ readonly providerExecuted: boolean;
685
+ readonly result?: string | undefined;
686
+ readonly error?: string | undefined;
687
+ } | {
688
+ readonly pending?: boolean | undefined;
689
+ readonly mimeType?: string | undefined;
690
+ readonly _tag: "stats";
691
+ readonly message?: string | undefined;
692
+ readonly model?: string | undefined;
693
+ readonly usage?: {
694
+ readonly inputTokens?: number | undefined;
695
+ readonly outputTokens?: number | undefined;
696
+ readonly totalTokens?: number | undefined;
697
+ } | undefined;
698
+ readonly toolCalls?: number | undefined;
699
+ readonly errors?: number | undefined;
700
+ readonly duration?: number | undefined;
701
+ } | {
702
+ readonly source?: {
703
+ readonly type: "base64";
704
+ readonly mediaType: string;
705
+ readonly data: string;
706
+ } | {
707
+ readonly type: "http";
708
+ readonly url: string;
709
+ } | undefined;
710
+ readonly id?: string | undefined;
711
+ readonly pending?: boolean | undefined;
712
+ readonly _tag: "image";
713
+ } | {
714
+ readonly name?: string | undefined;
715
+ readonly pending?: boolean | undefined;
716
+ readonly _tag: "file";
717
+ readonly mediaType?: string | undefined;
718
+ readonly url: string;
719
+ } | {
720
+ readonly pending?: boolean | undefined;
721
+ readonly _tag: "reference";
722
+ readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
723
+ } | {
724
+ readonly pending?: boolean | undefined;
725
+ readonly text: string;
726
+ readonly _tag: "transcript";
727
+ readonly started: string;
728
+ } | {
729
+ readonly pending?: boolean | undefined;
730
+ readonly _tag: "status";
731
+ readonly statusText: string;
732
+ } | {
733
+ readonly pending?: boolean | undefined;
734
+ readonly text: string;
735
+ readonly _tag: "suggestion";
736
+ } | {
737
+ readonly pending?: boolean | undefined;
738
+ readonly _tag: "select";
739
+ readonly options: string[];
740
+ } | {
741
+ readonly version: unknown;
742
+ readonly pending?: boolean | undefined;
743
+ readonly _tag: "anchor";
744
+ readonly objectId: string;
745
+ } | {
746
+ readonly pending?: boolean | undefined;
747
+ readonly text: string;
748
+ readonly _tag: "proposal";
749
+ } | {
750
+ readonly pending?: boolean | undefined;
751
+ readonly _tag: "summary";
752
+ readonly content: string;
753
+ } | {
754
+ readonly pending?: boolean | undefined;
755
+ readonly _tag: "toolkit";
756
+ } | {
757
+ readonly pending?: boolean | undefined;
758
+ readonly disposition?: string | undefined;
759
+ readonly _tag: "json";
760
+ readonly data: string;
761
+ })[];
762
+ readonly properties?: {
763
+ readonly [x: string]: any;
764
+ } | undefined;
765
+ }>[];
766
+ }>[];
767
+ }, Schema.Struct.Fields>;
768
+ }>;
769
+ readonly output: Schema.Struct<{
770
+ object: import("@dxos/echo/Type").Obj<{
771
+ readonly name?: string | undefined;
772
+ readonly status?: "active" | "staged" | "resolved" | undefined;
773
+ readonly messages: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
774
+ readonly id: string;
775
+ readonly parentMessage?: string | undefined;
776
+ readonly created: string;
777
+ readonly sender: {
778
+ readonly name?: string | undefined;
779
+ readonly role?: "user" | "assistant" | "tool" | undefined;
780
+ readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
781
+ readonly image?: string | undefined;
782
+ readonly fullName?: string | undefined;
783
+ readonly preferredName?: string | undefined;
784
+ readonly nickname?: string | undefined;
785
+ readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
786
+ readonly description?: string | undefined;
787
+ readonly name?: string | undefined;
788
+ readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
789
+ readonly image?: string | undefined;
790
+ readonly website?: string | undefined;
791
+ } & {
792
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
793
+ }> | undefined;
794
+ readonly jobTitle?: string | undefined;
795
+ readonly department?: string | undefined;
796
+ readonly notes?: string | undefined;
797
+ readonly emails?: readonly {
798
+ readonly value: string;
799
+ readonly label?: string | undefined;
800
+ }[] | undefined;
801
+ readonly identities?: readonly {
802
+ readonly value: string;
803
+ readonly label?: string | undefined;
804
+ }[] | undefined;
805
+ readonly phoneNumbers?: readonly {
806
+ readonly value: string;
807
+ readonly label?: string | undefined;
808
+ }[] | undefined;
809
+ readonly fields?: readonly {
810
+ readonly value: string;
811
+ readonly label: string;
812
+ readonly category?: string | undefined;
813
+ }[] | undefined;
814
+ readonly addresses?: readonly {
815
+ readonly value: {
816
+ readonly street?: string | undefined;
817
+ readonly extended?: string | undefined;
818
+ readonly locality?: string | undefined;
819
+ readonly region?: string | undefined;
820
+ readonly postalCode?: string | undefined;
821
+ readonly postOfficeBoxNumber?: string | undefined;
822
+ readonly country?: string | undefined;
823
+ };
824
+ readonly label?: string | undefined;
825
+ }[] | undefined;
826
+ readonly urls?: readonly {
827
+ readonly value: string;
828
+ readonly label?: string | undefined;
829
+ }[] | undefined;
830
+ readonly birthday?: string | undefined;
831
+ } & {
832
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
833
+ }> | undefined;
834
+ readonly identityDid?: string | undefined;
835
+ readonly identityKey?: string | undefined;
836
+ readonly email?: string | undefined;
837
+ };
838
+ readonly blocks: readonly ({
839
+ readonly pending?: boolean | undefined;
840
+ readonly text: string;
841
+ readonly mimeType?: string | undefined;
842
+ readonly disposition?: string | undefined;
843
+ readonly _tag: "text";
844
+ } | {
845
+ readonly pending?: boolean | undefined;
846
+ readonly _tag: "reasoning";
847
+ readonly reasoningText?: string | undefined;
848
+ readonly redactedText?: string | undefined;
849
+ readonly signature?: string | undefined;
850
+ } | {
851
+ readonly name: string;
852
+ readonly pending?: boolean | undefined;
853
+ readonly _tag: "toolCall";
854
+ readonly toolCallId: string;
855
+ readonly input: string;
856
+ readonly providerExecuted: boolean;
857
+ } | {
858
+ readonly name: string;
859
+ readonly pending?: boolean | undefined;
860
+ readonly _tag: "toolResult";
861
+ readonly toolCallId: string;
862
+ readonly providerExecuted: boolean;
863
+ readonly result?: string | undefined;
864
+ readonly error?: string | undefined;
865
+ } | {
866
+ readonly pending?: boolean | undefined;
867
+ readonly mimeType?: string | undefined;
868
+ readonly _tag: "stats";
869
+ readonly message?: string | undefined;
870
+ readonly model?: string | undefined;
871
+ readonly usage?: {
872
+ readonly inputTokens?: number | undefined;
873
+ readonly outputTokens?: number | undefined;
874
+ readonly totalTokens?: number | undefined;
875
+ } | undefined;
876
+ readonly toolCalls?: number | undefined;
877
+ readonly errors?: number | undefined;
878
+ readonly duration?: number | undefined;
879
+ } | {
880
+ readonly source?: {
881
+ readonly type: "base64";
882
+ readonly mediaType: string;
883
+ readonly data: string;
884
+ } | {
885
+ readonly type: "http";
886
+ readonly url: string;
887
+ } | undefined;
888
+ readonly id?: string | undefined;
889
+ readonly pending?: boolean | undefined;
890
+ readonly _tag: "image";
891
+ } | {
892
+ readonly name?: string | undefined;
893
+ readonly pending?: boolean | undefined;
894
+ readonly _tag: "file";
895
+ readonly mediaType?: string | undefined;
896
+ readonly url: string;
897
+ } | {
898
+ readonly pending?: boolean | undefined;
899
+ readonly _tag: "reference";
900
+ readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
901
+ } | {
902
+ readonly pending?: boolean | undefined;
903
+ readonly text: string;
904
+ readonly _tag: "transcript";
905
+ readonly started: string;
906
+ } | {
907
+ readonly pending?: boolean | undefined;
908
+ readonly _tag: "status";
909
+ readonly statusText: string;
910
+ } | {
911
+ readonly pending?: boolean | undefined;
912
+ readonly text: string;
913
+ readonly _tag: "suggestion";
914
+ } | {
915
+ readonly pending?: boolean | undefined;
916
+ readonly _tag: "select";
917
+ readonly options: string[];
918
+ } | {
919
+ readonly version: unknown;
920
+ readonly pending?: boolean | undefined;
921
+ readonly _tag: "anchor";
922
+ readonly objectId: string;
923
+ } | {
924
+ readonly pending?: boolean | undefined;
925
+ readonly text: string;
926
+ readonly _tag: "proposal";
927
+ } | {
928
+ readonly pending?: boolean | undefined;
929
+ readonly _tag: "summary";
930
+ readonly content: string;
931
+ } | {
932
+ readonly pending?: boolean | undefined;
933
+ readonly _tag: "toolkit";
934
+ } | {
935
+ readonly pending?: boolean | undefined;
936
+ readonly disposition?: string | undefined;
937
+ readonly _tag: "json";
938
+ readonly data: string;
939
+ })[];
940
+ readonly properties?: {
941
+ readonly [x: string]: any;
942
+ } | undefined;
943
+ }>[];
944
+ }, Schema.Struct.Fields>;
945
+ }>;
946
+ };
947
+ }, "executionMode"> & import("effect/Pipeable").Pipeable & {
948
+ readonly executionMode: "sync" | "async";
949
+ };
950
+ const Create: Omit<{
951
+ readonly meta: {
952
+ readonly key: `${string}.create`;
953
+ readonly name: "Create Thread";
954
+ };
955
+ readonly services: readonly [typeof Capability.Service];
956
+ readonly schema: {
957
+ readonly input: Schema.Struct<{
958
+ name: Schema.optional<typeof Schema.String>;
959
+ anchor: Schema.optional<typeof Schema.String>;
960
+ subject: import("@dxos/echo/Type").Obj<Obj.Unknown, Schema.Struct.Fields>;
961
+ }>;
962
+ readonly output: typeof Schema.Void;
963
+ };
964
+ }, "executionMode"> & import("effect/Pipeable").Pipeable & {
965
+ readonly executionMode: "sync" | "async";
966
+ };
967
+ const DeleteOutput: Schema.SchemaClass<{
968
+ readonly anchor?: (import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Relation> & import("@dxos/echo/Relation").Endpoints<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown, import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> & {
969
+ readonly id: string;
970
+ readonly anchor?: string | undefined;
971
+ }) | undefined;
972
+ readonly thread?: (import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
973
+ readonly name?: string | undefined;
974
+ readonly status?: "active" | "staged" | "resolved" | undefined;
975
+ readonly messages: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
976
+ readonly id: string;
977
+ readonly parentMessage?: string | undefined;
978
+ readonly created: string;
979
+ readonly sender: {
980
+ readonly name?: string | undefined;
981
+ readonly role?: "user" | "assistant" | "tool" | undefined;
982
+ readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
983
+ readonly image?: string | undefined;
984
+ readonly fullName?: string | undefined;
985
+ readonly preferredName?: string | undefined;
986
+ readonly nickname?: string | undefined;
987
+ readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
988
+ readonly description?: string | undefined;
989
+ readonly name?: string | undefined;
990
+ readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
991
+ readonly image?: string | undefined;
992
+ readonly website?: string | undefined;
993
+ } & {
994
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
995
+ }> | undefined;
996
+ readonly jobTitle?: string | undefined;
997
+ readonly department?: string | undefined;
998
+ readonly notes?: string | undefined;
999
+ readonly emails?: readonly {
1000
+ readonly value: string;
1001
+ readonly label?: string | undefined;
1002
+ }[] | undefined;
1003
+ readonly identities?: readonly {
1004
+ readonly value: string;
1005
+ readonly label?: string | undefined;
1006
+ }[] | undefined;
1007
+ readonly phoneNumbers?: readonly {
1008
+ readonly value: string;
1009
+ readonly label?: string | undefined;
1010
+ }[] | undefined;
1011
+ readonly fields?: readonly {
1012
+ readonly value: string;
1013
+ readonly label: string;
1014
+ readonly category?: string | undefined;
1015
+ }[] | undefined;
1016
+ readonly addresses?: readonly {
1017
+ readonly value: {
1018
+ readonly street?: string | undefined;
1019
+ readonly extended?: string | undefined;
1020
+ readonly locality?: string | undefined;
1021
+ readonly region?: string | undefined;
1022
+ readonly postalCode?: string | undefined;
1023
+ readonly postOfficeBoxNumber?: string | undefined;
1024
+ readonly country?: string | undefined;
1025
+ };
1026
+ readonly label?: string | undefined;
1027
+ }[] | undefined;
1028
+ readonly urls?: readonly {
1029
+ readonly value: string;
1030
+ readonly label?: string | undefined;
1031
+ }[] | undefined;
1032
+ readonly birthday?: string | undefined;
1033
+ } & {
1034
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
1035
+ }> | undefined;
1036
+ readonly identityDid?: string | undefined;
1037
+ readonly identityKey?: string | undefined;
1038
+ readonly email?: string | undefined;
1039
+ };
1040
+ readonly blocks: readonly ({
1041
+ readonly pending?: boolean | undefined;
1042
+ readonly text: string;
1043
+ readonly mimeType?: string | undefined;
1044
+ readonly disposition?: string | undefined;
1045
+ readonly _tag: "text";
1046
+ } | {
1047
+ readonly pending?: boolean | undefined;
1048
+ readonly _tag: "reasoning";
1049
+ readonly reasoningText?: string | undefined;
1050
+ readonly redactedText?: string | undefined;
1051
+ readonly signature?: string | undefined;
1052
+ } | {
1053
+ readonly name: string;
1054
+ readonly pending?: boolean | undefined;
1055
+ readonly _tag: "toolCall";
1056
+ readonly toolCallId: string;
1057
+ readonly input: string;
1058
+ readonly providerExecuted: boolean;
1059
+ } | {
1060
+ readonly name: string;
1061
+ readonly pending?: boolean | undefined;
1062
+ readonly _tag: "toolResult";
1063
+ readonly toolCallId: string;
1064
+ readonly providerExecuted: boolean;
1065
+ readonly result?: string | undefined;
1066
+ readonly error?: string | undefined;
1067
+ } | {
1068
+ readonly pending?: boolean | undefined;
1069
+ readonly mimeType?: string | undefined;
1070
+ readonly _tag: "stats";
1071
+ readonly message?: string | undefined;
1072
+ readonly model?: string | undefined;
1073
+ readonly usage?: {
1074
+ readonly inputTokens?: number | undefined;
1075
+ readonly outputTokens?: number | undefined;
1076
+ readonly totalTokens?: number | undefined;
1077
+ } | undefined;
1078
+ readonly toolCalls?: number | undefined;
1079
+ readonly errors?: number | undefined;
1080
+ readonly duration?: number | undefined;
1081
+ } | {
1082
+ readonly source?: {
1083
+ readonly type: "base64";
1084
+ readonly mediaType: string;
1085
+ readonly data: string;
1086
+ } | {
1087
+ readonly type: "http";
1088
+ readonly url: string;
1089
+ } | undefined;
1090
+ readonly id?: string | undefined;
1091
+ readonly pending?: boolean | undefined;
1092
+ readonly _tag: "image";
1093
+ } | {
1094
+ readonly name?: string | undefined;
1095
+ readonly pending?: boolean | undefined;
1096
+ readonly _tag: "file";
1097
+ readonly mediaType?: string | undefined;
1098
+ readonly url: string;
1099
+ } | {
1100
+ readonly pending?: boolean | undefined;
1101
+ readonly _tag: "reference";
1102
+ readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
1103
+ } | {
1104
+ readonly pending?: boolean | undefined;
1105
+ readonly text: string;
1106
+ readonly _tag: "transcript";
1107
+ readonly started: string;
1108
+ } | {
1109
+ readonly pending?: boolean | undefined;
1110
+ readonly _tag: "status";
1111
+ readonly statusText: string;
1112
+ } | {
1113
+ readonly pending?: boolean | undefined;
1114
+ readonly text: string;
1115
+ readonly _tag: "suggestion";
1116
+ } | {
1117
+ readonly pending?: boolean | undefined;
1118
+ readonly _tag: "select";
1119
+ readonly options: string[];
1120
+ } | {
1121
+ readonly version: unknown;
1122
+ readonly pending?: boolean | undefined;
1123
+ readonly _tag: "anchor";
1124
+ readonly objectId: string;
1125
+ } | {
1126
+ readonly pending?: boolean | undefined;
1127
+ readonly text: string;
1128
+ readonly _tag: "proposal";
1129
+ } | {
1130
+ readonly pending?: boolean | undefined;
1131
+ readonly _tag: "summary";
1132
+ readonly content: string;
1133
+ } | {
1134
+ readonly pending?: boolean | undefined;
1135
+ readonly _tag: "toolkit";
1136
+ } | {
1137
+ readonly pending?: boolean | undefined;
1138
+ readonly disposition?: string | undefined;
1139
+ readonly _tag: "json";
1140
+ readonly data: string;
1141
+ })[];
1142
+ readonly properties?: {
1143
+ readonly [x: string]: any;
1144
+ } | undefined;
1145
+ }>[];
1146
+ }) | undefined;
1147
+ }, {
1148
+ readonly anchor?: {
1149
+ id: string;
1150
+ "@relationSource": string;
1151
+ "@relationTarget": string;
1152
+ anchor?: string | undefined | undefined;
1153
+ } | undefined;
1154
+ readonly thread?: {
1155
+ id: string;
1156
+ name?: string | undefined | undefined;
1157
+ status?: "active" | "staged" | "resolved" | undefined | undefined;
1158
+ messages: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
1159
+ readonly id: string;
1160
+ readonly parentMessage?: string | undefined;
1161
+ readonly created: string;
1162
+ readonly sender: {
1163
+ readonly name?: string | undefined;
1164
+ readonly role?: "user" | "assistant" | "tool" | undefined;
1165
+ readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
1166
+ readonly image?: string | undefined;
1167
+ readonly fullName?: string | undefined;
1168
+ readonly preferredName?: string | undefined;
1169
+ readonly nickname?: string | undefined;
1170
+ readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
1171
+ readonly description?: string | undefined;
1172
+ readonly name?: string | undefined;
1173
+ readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
1174
+ readonly image?: string | undefined;
1175
+ readonly website?: string | undefined;
1176
+ } & {
1177
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
1178
+ }> | undefined;
1179
+ readonly jobTitle?: string | undefined;
1180
+ readonly department?: string | undefined;
1181
+ readonly notes?: string | undefined;
1182
+ readonly emails?: readonly {
1183
+ readonly value: string;
1184
+ readonly label?: string | undefined;
1185
+ }[] | undefined;
1186
+ readonly identities?: readonly {
1187
+ readonly value: string;
1188
+ readonly label?: string | undefined;
1189
+ }[] | undefined;
1190
+ readonly phoneNumbers?: readonly {
1191
+ readonly value: string;
1192
+ readonly label?: string | undefined;
1193
+ }[] | undefined;
1194
+ readonly fields?: readonly {
1195
+ readonly value: string;
1196
+ readonly label: string;
1197
+ readonly category?: string | undefined;
1198
+ }[] | undefined;
1199
+ readonly addresses?: readonly {
1200
+ readonly value: {
1201
+ readonly street?: string | undefined;
1202
+ readonly extended?: string | undefined;
1203
+ readonly locality?: string | undefined;
1204
+ readonly region?: string | undefined;
1205
+ readonly postalCode?: string | undefined;
1206
+ readonly postOfficeBoxNumber?: string | undefined;
1207
+ readonly country?: string | undefined;
1208
+ };
1209
+ readonly label?: string | undefined;
1210
+ }[] | undefined;
1211
+ readonly urls?: readonly {
1212
+ readonly value: string;
1213
+ readonly label?: string | undefined;
1214
+ }[] | undefined;
1215
+ readonly birthday?: string | undefined;
1216
+ } & {
1217
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
1218
+ }> | undefined;
1219
+ readonly identityDid?: string | undefined;
1220
+ readonly identityKey?: string | undefined;
1221
+ readonly email?: string | undefined;
1222
+ };
1223
+ readonly blocks: readonly ({
1224
+ readonly pending?: boolean | undefined;
1225
+ readonly text: string;
1226
+ readonly mimeType?: string | undefined;
1227
+ readonly disposition?: string | undefined;
1228
+ readonly _tag: "text";
1229
+ } | {
1230
+ readonly pending?: boolean | undefined;
1231
+ readonly _tag: "reasoning";
1232
+ readonly reasoningText?: string | undefined;
1233
+ readonly redactedText?: string | undefined;
1234
+ readonly signature?: string | undefined;
1235
+ } | {
1236
+ readonly name: string;
1237
+ readonly pending?: boolean | undefined;
1238
+ readonly _tag: "toolCall";
1239
+ readonly toolCallId: string;
1240
+ readonly input: string;
1241
+ readonly providerExecuted: boolean;
1242
+ } | {
1243
+ readonly name: string;
1244
+ readonly pending?: boolean | undefined;
1245
+ readonly _tag: "toolResult";
1246
+ readonly toolCallId: string;
1247
+ readonly providerExecuted: boolean;
1248
+ readonly result?: string | undefined;
1249
+ readonly error?: string | undefined;
1250
+ } | {
1251
+ readonly pending?: boolean | undefined;
1252
+ readonly mimeType?: string | undefined;
1253
+ readonly _tag: "stats";
1254
+ readonly message?: string | undefined;
1255
+ readonly model?: string | undefined;
1256
+ readonly usage?: {
1257
+ readonly inputTokens?: number | undefined;
1258
+ readonly outputTokens?: number | undefined;
1259
+ readonly totalTokens?: number | undefined;
1260
+ } | undefined;
1261
+ readonly toolCalls?: number | undefined;
1262
+ readonly errors?: number | undefined;
1263
+ readonly duration?: number | undefined;
1264
+ } | {
1265
+ readonly source?: {
1266
+ readonly type: "base64";
1267
+ readonly mediaType: string;
1268
+ readonly data: string;
1269
+ } | {
1270
+ readonly type: "http";
1271
+ readonly url: string;
1272
+ } | undefined;
1273
+ readonly id?: string | undefined;
1274
+ readonly pending?: boolean | undefined;
1275
+ readonly _tag: "image";
1276
+ } | {
1277
+ readonly name?: string | undefined;
1278
+ readonly pending?: boolean | undefined;
1279
+ readonly _tag: "file";
1280
+ readonly mediaType?: string | undefined;
1281
+ readonly url: string;
1282
+ } | {
1283
+ readonly pending?: boolean | undefined;
1284
+ readonly _tag: "reference";
1285
+ readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
1286
+ } | {
1287
+ readonly pending?: boolean | undefined;
1288
+ readonly text: string;
1289
+ readonly _tag: "transcript";
1290
+ readonly started: string;
1291
+ } | {
1292
+ readonly pending?: boolean | undefined;
1293
+ readonly _tag: "status";
1294
+ readonly statusText: string;
1295
+ } | {
1296
+ readonly pending?: boolean | undefined;
1297
+ readonly text: string;
1298
+ readonly _tag: "suggestion";
1299
+ } | {
1300
+ readonly pending?: boolean | undefined;
1301
+ readonly _tag: "select";
1302
+ readonly options: string[];
1303
+ } | {
1304
+ readonly version: unknown;
1305
+ readonly pending?: boolean | undefined;
1306
+ readonly _tag: "anchor";
1307
+ readonly objectId: string;
1308
+ } | {
1309
+ readonly pending?: boolean | undefined;
1310
+ readonly text: string;
1311
+ readonly _tag: "proposal";
1312
+ } | {
1313
+ readonly pending?: boolean | undefined;
1314
+ readonly _tag: "summary";
1315
+ readonly content: string;
1316
+ } | {
1317
+ readonly pending?: boolean | undefined;
1318
+ readonly _tag: "toolkit";
1319
+ } | {
1320
+ readonly pending?: boolean | undefined;
1321
+ readonly disposition?: string | undefined;
1322
+ readonly _tag: "json";
1323
+ readonly data: string;
1324
+ })[];
1325
+ readonly properties?: {
1326
+ readonly [x: string]: any;
1327
+ } | undefined;
1328
+ }>[];
1329
+ } | undefined;
1330
+ }, never>;
1331
+ type DeleteOutput = Schema.Schema.Type<typeof DeleteOutput>;
1332
+ const Delete: Omit<{
1333
+ readonly meta: {
1334
+ readonly key: `${string}.delete`;
1335
+ readonly name: "Delete Thread";
1336
+ };
1337
+ readonly services: readonly [typeof Capability.Service];
1338
+ readonly schema: {
1339
+ readonly input: Schema.Struct<{
1340
+ anchor: import("@dxos/echo/Type").Relation<{
1341
+ readonly id: string;
1342
+ readonly anchor?: string | undefined;
1343
+ }, import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown, import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown, Schema.Struct.Fields>;
1344
+ subject: import("@dxos/echo/Type").Obj<Obj.Unknown, Schema.Struct.Fields>;
1345
+ thread: Schema.optional<import("@dxos/echo/Type").Obj<{
1346
+ readonly name?: string | undefined;
1347
+ readonly status?: "active" | "staged" | "resolved" | undefined;
1348
+ readonly messages: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
1349
+ readonly id: string;
1350
+ readonly parentMessage?: string | undefined;
1351
+ readonly created: string;
1352
+ readonly sender: {
1353
+ readonly name?: string | undefined;
1354
+ readonly role?: "user" | "assistant" | "tool" | undefined;
1355
+ readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
1356
+ readonly image?: string | undefined;
1357
+ readonly fullName?: string | undefined;
1358
+ readonly preferredName?: string | undefined;
1359
+ readonly nickname?: string | undefined;
1360
+ readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
1361
+ readonly description?: string | undefined;
1362
+ readonly name?: string | undefined;
1363
+ readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
1364
+ readonly image?: string | undefined;
1365
+ readonly website?: string | undefined;
1366
+ } & {
1367
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
1368
+ }> | undefined;
1369
+ readonly jobTitle?: string | undefined;
1370
+ readonly department?: string | undefined;
1371
+ readonly notes?: string | undefined;
1372
+ readonly emails?: readonly {
1373
+ readonly value: string;
1374
+ readonly label?: string | undefined;
1375
+ }[] | undefined;
1376
+ readonly identities?: readonly {
1377
+ readonly value: string;
1378
+ readonly label?: string | undefined;
1379
+ }[] | undefined;
1380
+ readonly phoneNumbers?: readonly {
1381
+ readonly value: string;
1382
+ readonly label?: string | undefined;
1383
+ }[] | undefined;
1384
+ readonly fields?: readonly {
1385
+ readonly value: string;
1386
+ readonly label: string;
1387
+ readonly category?: string | undefined;
1388
+ }[] | undefined;
1389
+ readonly addresses?: readonly {
1390
+ readonly value: {
1391
+ readonly street?: string | undefined;
1392
+ readonly extended?: string | undefined;
1393
+ readonly locality?: string | undefined;
1394
+ readonly region?: string | undefined;
1395
+ readonly postalCode?: string | undefined;
1396
+ readonly postOfficeBoxNumber?: string | undefined;
1397
+ readonly country?: string | undefined;
1398
+ };
1399
+ readonly label?: string | undefined;
1400
+ }[] | undefined;
1401
+ readonly urls?: readonly {
1402
+ readonly value: string;
1403
+ readonly label?: string | undefined;
1404
+ }[] | undefined;
1405
+ readonly birthday?: string | undefined;
1406
+ } & {
1407
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
1408
+ }> | undefined;
1409
+ readonly identityDid?: string | undefined;
1410
+ readonly identityKey?: string | undefined;
1411
+ readonly email?: string | undefined;
1412
+ };
1413
+ readonly blocks: readonly ({
1414
+ readonly pending?: boolean | undefined;
1415
+ readonly text: string;
1416
+ readonly mimeType?: string | undefined;
1417
+ readonly disposition?: string | undefined;
1418
+ readonly _tag: "text";
1419
+ } | {
1420
+ readonly pending?: boolean | undefined;
1421
+ readonly _tag: "reasoning";
1422
+ readonly reasoningText?: string | undefined;
1423
+ readonly redactedText?: string | undefined;
1424
+ readonly signature?: string | undefined;
1425
+ } | {
1426
+ readonly name: string;
1427
+ readonly pending?: boolean | undefined;
1428
+ readonly _tag: "toolCall";
1429
+ readonly toolCallId: string;
1430
+ readonly input: string;
1431
+ readonly providerExecuted: boolean;
1432
+ } | {
1433
+ readonly name: string;
1434
+ readonly pending?: boolean | undefined;
1435
+ readonly _tag: "toolResult";
1436
+ readonly toolCallId: string;
1437
+ readonly providerExecuted: boolean;
1438
+ readonly result?: string | undefined;
1439
+ readonly error?: string | undefined;
1440
+ } | {
1441
+ readonly pending?: boolean | undefined;
1442
+ readonly mimeType?: string | undefined;
1443
+ readonly _tag: "stats";
1444
+ readonly message?: string | undefined;
1445
+ readonly model?: string | undefined;
1446
+ readonly usage?: {
1447
+ readonly inputTokens?: number | undefined;
1448
+ readonly outputTokens?: number | undefined;
1449
+ readonly totalTokens?: number | undefined;
1450
+ } | undefined;
1451
+ readonly toolCalls?: number | undefined;
1452
+ readonly errors?: number | undefined;
1453
+ readonly duration?: number | undefined;
1454
+ } | {
1455
+ readonly source?: {
1456
+ readonly type: "base64";
1457
+ readonly mediaType: string;
1458
+ readonly data: string;
1459
+ } | {
1460
+ readonly type: "http";
1461
+ readonly url: string;
1462
+ } | undefined;
1463
+ readonly id?: string | undefined;
1464
+ readonly pending?: boolean | undefined;
1465
+ readonly _tag: "image";
1466
+ } | {
1467
+ readonly name?: string | undefined;
1468
+ readonly pending?: boolean | undefined;
1469
+ readonly _tag: "file";
1470
+ readonly mediaType?: string | undefined;
1471
+ readonly url: string;
1472
+ } | {
1473
+ readonly pending?: boolean | undefined;
1474
+ readonly _tag: "reference";
1475
+ readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
1476
+ } | {
1477
+ readonly pending?: boolean | undefined;
1478
+ readonly text: string;
1479
+ readonly _tag: "transcript";
1480
+ readonly started: string;
1481
+ } | {
1482
+ readonly pending?: boolean | undefined;
1483
+ readonly _tag: "status";
1484
+ readonly statusText: string;
1485
+ } | {
1486
+ readonly pending?: boolean | undefined;
1487
+ readonly text: string;
1488
+ readonly _tag: "suggestion";
1489
+ } | {
1490
+ readonly pending?: boolean | undefined;
1491
+ readonly _tag: "select";
1492
+ readonly options: string[];
1493
+ } | {
1494
+ readonly version: unknown;
1495
+ readonly pending?: boolean | undefined;
1496
+ readonly _tag: "anchor";
1497
+ readonly objectId: string;
1498
+ } | {
1499
+ readonly pending?: boolean | undefined;
1500
+ readonly text: string;
1501
+ readonly _tag: "proposal";
1502
+ } | {
1503
+ readonly pending?: boolean | undefined;
1504
+ readonly _tag: "summary";
1505
+ readonly content: string;
1506
+ } | {
1507
+ readonly pending?: boolean | undefined;
1508
+ readonly _tag: "toolkit";
1509
+ } | {
1510
+ readonly pending?: boolean | undefined;
1511
+ readonly disposition?: string | undefined;
1512
+ readonly _tag: "json";
1513
+ readonly data: string;
1514
+ })[];
1515
+ readonly properties?: {
1516
+ readonly [x: string]: any;
1517
+ } | undefined;
1518
+ }>[];
1519
+ }, Schema.Struct.Fields>>;
1520
+ }>;
1521
+ readonly output: Schema.SchemaClass<{
1522
+ readonly anchor?: (import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Relation> & import("@dxos/echo/Relation").Endpoints<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown, import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> & {
1523
+ readonly id: string;
1524
+ readonly anchor?: string | undefined;
1525
+ }) | undefined;
1526
+ readonly thread?: (import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
1527
+ readonly name?: string | undefined;
1528
+ readonly status?: "active" | "staged" | "resolved" | undefined;
1529
+ readonly messages: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
1530
+ readonly id: string;
1531
+ readonly parentMessage?: string | undefined;
1532
+ readonly created: string;
1533
+ readonly sender: {
1534
+ readonly name?: string | undefined;
1535
+ readonly role?: "user" | "assistant" | "tool" | undefined;
1536
+ readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
1537
+ readonly image?: string | undefined;
1538
+ readonly fullName?: string | undefined;
1539
+ readonly preferredName?: string | undefined;
1540
+ readonly nickname?: string | undefined;
1541
+ readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
1542
+ readonly description?: string | undefined;
1543
+ readonly name?: string | undefined;
1544
+ readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
1545
+ readonly image?: string | undefined;
1546
+ readonly website?: string | undefined;
1547
+ } & {
1548
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
1549
+ }> | undefined;
1550
+ readonly jobTitle?: string | undefined;
1551
+ readonly department?: string | undefined;
1552
+ readonly notes?: string | undefined;
1553
+ readonly emails?: readonly {
1554
+ readonly value: string;
1555
+ readonly label?: string | undefined;
1556
+ }[] | undefined;
1557
+ readonly identities?: readonly {
1558
+ readonly value: string;
1559
+ readonly label?: string | undefined;
1560
+ }[] | undefined;
1561
+ readonly phoneNumbers?: readonly {
1562
+ readonly value: string;
1563
+ readonly label?: string | undefined;
1564
+ }[] | undefined;
1565
+ readonly fields?: readonly {
1566
+ readonly value: string;
1567
+ readonly label: string;
1568
+ readonly category?: string | undefined;
1569
+ }[] | undefined;
1570
+ readonly addresses?: readonly {
1571
+ readonly value: {
1572
+ readonly street?: string | undefined;
1573
+ readonly extended?: string | undefined;
1574
+ readonly locality?: string | undefined;
1575
+ readonly region?: string | undefined;
1576
+ readonly postalCode?: string | undefined;
1577
+ readonly postOfficeBoxNumber?: string | undefined;
1578
+ readonly country?: string | undefined;
1579
+ };
1580
+ readonly label?: string | undefined;
1581
+ }[] | undefined;
1582
+ readonly urls?: readonly {
1583
+ readonly value: string;
1584
+ readonly label?: string | undefined;
1585
+ }[] | undefined;
1586
+ readonly birthday?: string | undefined;
1587
+ } & {
1588
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
1589
+ }> | undefined;
1590
+ readonly identityDid?: string | undefined;
1591
+ readonly identityKey?: string | undefined;
1592
+ readonly email?: string | undefined;
1593
+ };
1594
+ readonly blocks: readonly ({
1595
+ readonly pending?: boolean | undefined;
1596
+ readonly text: string;
1597
+ readonly mimeType?: string | undefined;
1598
+ readonly disposition?: string | undefined;
1599
+ readonly _tag: "text";
1600
+ } | {
1601
+ readonly pending?: boolean | undefined;
1602
+ readonly _tag: "reasoning";
1603
+ readonly reasoningText?: string | undefined;
1604
+ readonly redactedText?: string | undefined;
1605
+ readonly signature?: string | undefined;
1606
+ } | {
1607
+ readonly name: string;
1608
+ readonly pending?: boolean | undefined;
1609
+ readonly _tag: "toolCall";
1610
+ readonly toolCallId: string;
1611
+ readonly input: string;
1612
+ readonly providerExecuted: boolean;
1613
+ } | {
1614
+ readonly name: string;
1615
+ readonly pending?: boolean | undefined;
1616
+ readonly _tag: "toolResult";
1617
+ readonly toolCallId: string;
1618
+ readonly providerExecuted: boolean;
1619
+ readonly result?: string | undefined;
1620
+ readonly error?: string | undefined;
1621
+ } | {
1622
+ readonly pending?: boolean | undefined;
1623
+ readonly mimeType?: string | undefined;
1624
+ readonly _tag: "stats";
1625
+ readonly message?: string | undefined;
1626
+ readonly model?: string | undefined;
1627
+ readonly usage?: {
1628
+ readonly inputTokens?: number | undefined;
1629
+ readonly outputTokens?: number | undefined;
1630
+ readonly totalTokens?: number | undefined;
1631
+ } | undefined;
1632
+ readonly toolCalls?: number | undefined;
1633
+ readonly errors?: number | undefined;
1634
+ readonly duration?: number | undefined;
1635
+ } | {
1636
+ readonly source?: {
1637
+ readonly type: "base64";
1638
+ readonly mediaType: string;
1639
+ readonly data: string;
1640
+ } | {
1641
+ readonly type: "http";
1642
+ readonly url: string;
1643
+ } | undefined;
1644
+ readonly id?: string | undefined;
1645
+ readonly pending?: boolean | undefined;
1646
+ readonly _tag: "image";
1647
+ } | {
1648
+ readonly name?: string | undefined;
1649
+ readonly pending?: boolean | undefined;
1650
+ readonly _tag: "file";
1651
+ readonly mediaType?: string | undefined;
1652
+ readonly url: string;
1653
+ } | {
1654
+ readonly pending?: boolean | undefined;
1655
+ readonly _tag: "reference";
1656
+ readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
1657
+ } | {
1658
+ readonly pending?: boolean | undefined;
1659
+ readonly text: string;
1660
+ readonly _tag: "transcript";
1661
+ readonly started: string;
1662
+ } | {
1663
+ readonly pending?: boolean | undefined;
1664
+ readonly _tag: "status";
1665
+ readonly statusText: string;
1666
+ } | {
1667
+ readonly pending?: boolean | undefined;
1668
+ readonly text: string;
1669
+ readonly _tag: "suggestion";
1670
+ } | {
1671
+ readonly pending?: boolean | undefined;
1672
+ readonly _tag: "select";
1673
+ readonly options: string[];
1674
+ } | {
1675
+ readonly version: unknown;
1676
+ readonly pending?: boolean | undefined;
1677
+ readonly _tag: "anchor";
1678
+ readonly objectId: string;
1679
+ } | {
1680
+ readonly pending?: boolean | undefined;
1681
+ readonly text: string;
1682
+ readonly _tag: "proposal";
1683
+ } | {
1684
+ readonly pending?: boolean | undefined;
1685
+ readonly _tag: "summary";
1686
+ readonly content: string;
1687
+ } | {
1688
+ readonly pending?: boolean | undefined;
1689
+ readonly _tag: "toolkit";
1690
+ } | {
1691
+ readonly pending?: boolean | undefined;
1692
+ readonly disposition?: string | undefined;
1693
+ readonly _tag: "json";
1694
+ readonly data: string;
1695
+ })[];
1696
+ readonly properties?: {
1697
+ readonly [x: string]: any;
1698
+ } | undefined;
1699
+ }>[];
1700
+ }) | undefined;
1701
+ }, {
1702
+ readonly anchor?: {
15
1703
  id: string;
16
- }, never>>>>;
17
- }>>;
18
- }>;
19
- output: typeof Schema.Void;
20
- }>;
21
- export class OnSpaceCreated extends OnSpaceCreated_base {
22
- }
23
- const CreateChannel_base: Schema.TaggedClass<CreateChannel, "dxos.org/plugin/thread/action/create-channel", {
24
- readonly _tag: Schema.tag<"dxos.org/plugin/thread/action/create-channel">;
25
- } & {
26
- input: Schema.Struct<{
27
- spaceId: Schema.Schema<Type.SpaceId, string, never> & {
28
- byteLength: number;
29
- encode: (value: Uint8Array) => Type.SpaceId;
30
- decode: (value: Type.SpaceId) => Uint8Array;
31
- isValid: (value: string) => value is Type.SpaceId;
32
- make: (value: string) => Type.SpaceId;
33
- random: () => Type.SpaceId;
1704
+ "@relationSource": string;
1705
+ "@relationTarget": string;
1706
+ anchor?: string | undefined | undefined;
1707
+ } | undefined;
1708
+ readonly thread?: {
1709
+ id: string;
1710
+ name?: string | undefined | undefined;
1711
+ status?: "active" | "staged" | "resolved" | undefined | undefined;
1712
+ messages: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
1713
+ readonly id: string;
1714
+ readonly parentMessage?: string | undefined;
1715
+ readonly created: string;
1716
+ readonly sender: {
1717
+ readonly name?: string | undefined;
1718
+ readonly role?: "user" | "assistant" | "tool" | undefined;
1719
+ readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
1720
+ readonly image?: string | undefined;
1721
+ readonly fullName?: string | undefined;
1722
+ readonly preferredName?: string | undefined;
1723
+ readonly nickname?: string | undefined;
1724
+ readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
1725
+ readonly description?: string | undefined;
1726
+ readonly name?: string | undefined;
1727
+ readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
1728
+ readonly image?: string | undefined;
1729
+ readonly website?: string | undefined;
1730
+ } & {
1731
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
1732
+ }> | undefined;
1733
+ readonly jobTitle?: string | undefined;
1734
+ readonly department?: string | undefined;
1735
+ readonly notes?: string | undefined;
1736
+ readonly emails?: readonly {
1737
+ readonly value: string;
1738
+ readonly label?: string | undefined;
1739
+ }[] | undefined;
1740
+ readonly identities?: readonly {
1741
+ readonly value: string;
1742
+ readonly label?: string | undefined;
1743
+ }[] | undefined;
1744
+ readonly phoneNumbers?: readonly {
1745
+ readonly value: string;
1746
+ readonly label?: string | undefined;
1747
+ }[] | undefined;
1748
+ readonly fields?: readonly {
1749
+ readonly value: string;
1750
+ readonly label: string;
1751
+ readonly category?: string | undefined;
1752
+ }[] | undefined;
1753
+ readonly addresses?: readonly {
1754
+ readonly value: {
1755
+ readonly street?: string | undefined;
1756
+ readonly extended?: string | undefined;
1757
+ readonly locality?: string | undefined;
1758
+ readonly region?: string | undefined;
1759
+ readonly postalCode?: string | undefined;
1760
+ readonly postOfficeBoxNumber?: string | undefined;
1761
+ readonly country?: string | undefined;
1762
+ };
1763
+ readonly label?: string | undefined;
1764
+ }[] | undefined;
1765
+ readonly urls?: readonly {
1766
+ readonly value: string;
1767
+ readonly label?: string | undefined;
1768
+ }[] | undefined;
1769
+ readonly birthday?: string | undefined;
1770
+ } & {
1771
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
1772
+ }> | undefined;
1773
+ readonly identityDid?: string | undefined;
1774
+ readonly identityKey?: string | undefined;
1775
+ readonly email?: string | undefined;
1776
+ };
1777
+ readonly blocks: readonly ({
1778
+ readonly pending?: boolean | undefined;
1779
+ readonly text: string;
1780
+ readonly mimeType?: string | undefined;
1781
+ readonly disposition?: string | undefined;
1782
+ readonly _tag: "text";
1783
+ } | {
1784
+ readonly pending?: boolean | undefined;
1785
+ readonly _tag: "reasoning";
1786
+ readonly reasoningText?: string | undefined;
1787
+ readonly redactedText?: string | undefined;
1788
+ readonly signature?: string | undefined;
1789
+ } | {
1790
+ readonly name: string;
1791
+ readonly pending?: boolean | undefined;
1792
+ readonly _tag: "toolCall";
1793
+ readonly toolCallId: string;
1794
+ readonly input: string;
1795
+ readonly providerExecuted: boolean;
1796
+ } | {
1797
+ readonly name: string;
1798
+ readonly pending?: boolean | undefined;
1799
+ readonly _tag: "toolResult";
1800
+ readonly toolCallId: string;
1801
+ readonly providerExecuted: boolean;
1802
+ readonly result?: string | undefined;
1803
+ readonly error?: string | undefined;
1804
+ } | {
1805
+ readonly pending?: boolean | undefined;
1806
+ readonly mimeType?: string | undefined;
1807
+ readonly _tag: "stats";
1808
+ readonly message?: string | undefined;
1809
+ readonly model?: string | undefined;
1810
+ readonly usage?: {
1811
+ readonly inputTokens?: number | undefined;
1812
+ readonly outputTokens?: number | undefined;
1813
+ readonly totalTokens?: number | undefined;
1814
+ } | undefined;
1815
+ readonly toolCalls?: number | undefined;
1816
+ readonly errors?: number | undefined;
1817
+ readonly duration?: number | undefined;
1818
+ } | {
1819
+ readonly source?: {
1820
+ readonly type: "base64";
1821
+ readonly mediaType: string;
1822
+ readonly data: string;
1823
+ } | {
1824
+ readonly type: "http";
1825
+ readonly url: string;
1826
+ } | undefined;
1827
+ readonly id?: string | undefined;
1828
+ readonly pending?: boolean | undefined;
1829
+ readonly _tag: "image";
1830
+ } | {
1831
+ readonly name?: string | undefined;
1832
+ readonly pending?: boolean | undefined;
1833
+ readonly _tag: "file";
1834
+ readonly mediaType?: string | undefined;
1835
+ readonly url: string;
1836
+ } | {
1837
+ readonly pending?: boolean | undefined;
1838
+ readonly _tag: "reference";
1839
+ readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
1840
+ } | {
1841
+ readonly pending?: boolean | undefined;
1842
+ readonly text: string;
1843
+ readonly _tag: "transcript";
1844
+ readonly started: string;
1845
+ } | {
1846
+ readonly pending?: boolean | undefined;
1847
+ readonly _tag: "status";
1848
+ readonly statusText: string;
1849
+ } | {
1850
+ readonly pending?: boolean | undefined;
1851
+ readonly text: string;
1852
+ readonly _tag: "suggestion";
1853
+ } | {
1854
+ readonly pending?: boolean | undefined;
1855
+ readonly _tag: "select";
1856
+ readonly options: string[];
1857
+ } | {
1858
+ readonly version: unknown;
1859
+ readonly pending?: boolean | undefined;
1860
+ readonly _tag: "anchor";
1861
+ readonly objectId: string;
1862
+ } | {
1863
+ readonly pending?: boolean | undefined;
1864
+ readonly text: string;
1865
+ readonly _tag: "proposal";
1866
+ } | {
1867
+ readonly pending?: boolean | undefined;
1868
+ readonly _tag: "summary";
1869
+ readonly content: string;
1870
+ } | {
1871
+ readonly pending?: boolean | undefined;
1872
+ readonly _tag: "toolkit";
1873
+ } | {
1874
+ readonly pending?: boolean | undefined;
1875
+ readonly disposition?: string | undefined;
1876
+ readonly _tag: "json";
1877
+ readonly data: string;
1878
+ })[];
1879
+ readonly properties?: {
1880
+ readonly [x: string]: any;
1881
+ } | undefined;
1882
+ }>[];
1883
+ } | undefined;
1884
+ }, never>;
1885
+ };
1886
+ }, "executionMode"> & import("effect/Pipeable").Pipeable & {
1887
+ readonly executionMode: "sync" | "async";
1888
+ };
1889
+ const Select: Omit<{
1890
+ readonly meta: {
1891
+ readonly key: `${string}.select`;
1892
+ readonly name: "Select Thread";
1893
+ };
1894
+ readonly services: readonly [typeof Capability.Service];
1895
+ readonly schema: {
1896
+ readonly input: Schema.Struct<{
1897
+ current: typeof Schema.String;
1898
+ }>;
1899
+ readonly output: typeof Schema.Void;
1900
+ };
1901
+ }, "executionMode"> & import("effect/Pipeable").Pipeable & {
1902
+ readonly executionMode: "sync" | "async";
1903
+ };
1904
+ const ToggleResolved: Omit<{
1905
+ readonly meta: {
1906
+ readonly key: `${string}.toggle-resolved`;
1907
+ readonly name: "Toggle Resolved";
1908
+ };
1909
+ readonly services: readonly [typeof Capability.Service];
1910
+ readonly schema: {
1911
+ readonly input: Schema.Struct<{
1912
+ thread: import("@dxos/echo/Type").Obj<{
1913
+ readonly name?: string | undefined;
1914
+ readonly status?: "active" | "staged" | "resolved" | undefined;
1915
+ readonly messages: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
1916
+ readonly id: string;
1917
+ readonly parentMessage?: string | undefined;
1918
+ readonly created: string;
1919
+ readonly sender: {
1920
+ readonly name?: string | undefined;
1921
+ readonly role?: "user" | "assistant" | "tool" | undefined;
1922
+ readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
1923
+ readonly image?: string | undefined;
1924
+ readonly fullName?: string | undefined;
1925
+ readonly preferredName?: string | undefined;
1926
+ readonly nickname?: string | undefined;
1927
+ readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
1928
+ readonly description?: string | undefined;
1929
+ readonly name?: string | undefined;
1930
+ readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
1931
+ readonly image?: string | undefined;
1932
+ readonly website?: string | undefined;
1933
+ } & {
1934
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
1935
+ }> | undefined;
1936
+ readonly jobTitle?: string | undefined;
1937
+ readonly department?: string | undefined;
1938
+ readonly notes?: string | undefined;
1939
+ readonly emails?: readonly {
1940
+ readonly value: string;
1941
+ readonly label?: string | undefined;
1942
+ }[] | undefined;
1943
+ readonly identities?: readonly {
1944
+ readonly value: string;
1945
+ readonly label?: string | undefined;
1946
+ }[] | undefined;
1947
+ readonly phoneNumbers?: readonly {
1948
+ readonly value: string;
1949
+ readonly label?: string | undefined;
1950
+ }[] | undefined;
1951
+ readonly fields?: readonly {
1952
+ readonly value: string;
1953
+ readonly label: string;
1954
+ readonly category?: string | undefined;
1955
+ }[] | undefined;
1956
+ readonly addresses?: readonly {
1957
+ readonly value: {
1958
+ readonly street?: string | undefined;
1959
+ readonly extended?: string | undefined;
1960
+ readonly locality?: string | undefined;
1961
+ readonly region?: string | undefined;
1962
+ readonly postalCode?: string | undefined;
1963
+ readonly postOfficeBoxNumber?: string | undefined;
1964
+ readonly country?: string | undefined;
1965
+ };
1966
+ readonly label?: string | undefined;
1967
+ }[] | undefined;
1968
+ readonly urls?: readonly {
1969
+ readonly value: string;
1970
+ readonly label?: string | undefined;
1971
+ }[] | undefined;
1972
+ readonly birthday?: string | undefined;
1973
+ } & {
1974
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
1975
+ }> | undefined;
1976
+ readonly identityDid?: string | undefined;
1977
+ readonly identityKey?: string | undefined;
1978
+ readonly email?: string | undefined;
1979
+ };
1980
+ readonly blocks: readonly ({
1981
+ readonly pending?: boolean | undefined;
1982
+ readonly text: string;
1983
+ readonly mimeType?: string | undefined;
1984
+ readonly disposition?: string | undefined;
1985
+ readonly _tag: "text";
1986
+ } | {
1987
+ readonly pending?: boolean | undefined;
1988
+ readonly _tag: "reasoning";
1989
+ readonly reasoningText?: string | undefined;
1990
+ readonly redactedText?: string | undefined;
1991
+ readonly signature?: string | undefined;
1992
+ } | {
1993
+ readonly name: string;
1994
+ readonly pending?: boolean | undefined;
1995
+ readonly _tag: "toolCall";
1996
+ readonly toolCallId: string;
1997
+ readonly input: string;
1998
+ readonly providerExecuted: boolean;
1999
+ } | {
2000
+ readonly name: string;
2001
+ readonly pending?: boolean | undefined;
2002
+ readonly _tag: "toolResult";
2003
+ readonly toolCallId: string;
2004
+ readonly providerExecuted: boolean;
2005
+ readonly result?: string | undefined;
2006
+ readonly error?: string | undefined;
2007
+ } | {
2008
+ readonly pending?: boolean | undefined;
2009
+ readonly mimeType?: string | undefined;
2010
+ readonly _tag: "stats";
2011
+ readonly message?: string | undefined;
2012
+ readonly model?: string | undefined;
2013
+ readonly usage?: {
2014
+ readonly inputTokens?: number | undefined;
2015
+ readonly outputTokens?: number | undefined;
2016
+ readonly totalTokens?: number | undefined;
2017
+ } | undefined;
2018
+ readonly toolCalls?: number | undefined;
2019
+ readonly errors?: number | undefined;
2020
+ readonly duration?: number | undefined;
2021
+ } | {
2022
+ readonly source?: {
2023
+ readonly type: "base64";
2024
+ readonly mediaType: string;
2025
+ readonly data: string;
2026
+ } | {
2027
+ readonly type: "http";
2028
+ readonly url: string;
2029
+ } | undefined;
2030
+ readonly id?: string | undefined;
2031
+ readonly pending?: boolean | undefined;
2032
+ readonly _tag: "image";
2033
+ } | {
2034
+ readonly name?: string | undefined;
2035
+ readonly pending?: boolean | undefined;
2036
+ readonly _tag: "file";
2037
+ readonly mediaType?: string | undefined;
2038
+ readonly url: string;
2039
+ } | {
2040
+ readonly pending?: boolean | undefined;
2041
+ readonly _tag: "reference";
2042
+ readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
2043
+ } | {
2044
+ readonly pending?: boolean | undefined;
2045
+ readonly text: string;
2046
+ readonly _tag: "transcript";
2047
+ readonly started: string;
2048
+ } | {
2049
+ readonly pending?: boolean | undefined;
2050
+ readonly _tag: "status";
2051
+ readonly statusText: string;
2052
+ } | {
2053
+ readonly pending?: boolean | undefined;
2054
+ readonly text: string;
2055
+ readonly _tag: "suggestion";
2056
+ } | {
2057
+ readonly pending?: boolean | undefined;
2058
+ readonly _tag: "select";
2059
+ readonly options: string[];
2060
+ } | {
2061
+ readonly version: unknown;
2062
+ readonly pending?: boolean | undefined;
2063
+ readonly _tag: "anchor";
2064
+ readonly objectId: string;
2065
+ } | {
2066
+ readonly pending?: boolean | undefined;
2067
+ readonly text: string;
2068
+ readonly _tag: "proposal";
2069
+ } | {
2070
+ readonly pending?: boolean | undefined;
2071
+ readonly _tag: "summary";
2072
+ readonly content: string;
2073
+ } | {
2074
+ readonly pending?: boolean | undefined;
2075
+ readonly _tag: "toolkit";
2076
+ } | {
2077
+ readonly pending?: boolean | undefined;
2078
+ readonly disposition?: string | undefined;
2079
+ readonly _tag: "json";
2080
+ readonly data: string;
2081
+ })[];
2082
+ readonly properties?: {
2083
+ readonly [x: string]: any;
2084
+ } | undefined;
2085
+ }>[];
2086
+ }, Schema.Struct.Fields>;
2087
+ }>;
2088
+ readonly output: typeof Schema.Void;
2089
+ };
2090
+ }, "executionMode"> & import("effect/Pipeable").Pipeable & {
2091
+ readonly executionMode: "sync" | "async";
2092
+ };
2093
+ const AddMessage: Omit<{
2094
+ readonly meta: {
2095
+ readonly key: `${string}.add-message`;
2096
+ readonly name: "Add Message";
2097
+ };
2098
+ readonly services: readonly [typeof Capability.Service];
2099
+ readonly schema: {
2100
+ readonly input: Schema.Struct<{
2101
+ subject: import("@dxos/echo/Type").Obj<Obj.Unknown, Schema.Struct.Fields>;
2102
+ anchor: import("@dxos/echo/Type").Relation<{
2103
+ readonly id: string;
2104
+ readonly anchor?: string | undefined;
2105
+ }, import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown, import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown, Schema.Struct.Fields>;
2106
+ sender: Schema.Struct<{
2107
+ role: Schema.optional<Schema.Literal<["user", "assistant", "tool"]>>;
2108
+ contact: Schema.optional<import("@dxos/echo/Ref").RefSchema<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
2109
+ readonly image?: string | undefined;
2110
+ readonly fullName?: string | undefined;
2111
+ readonly preferredName?: string | undefined;
2112
+ readonly nickname?: string | undefined;
2113
+ readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
2114
+ readonly description?: string | undefined;
2115
+ readonly name?: string | undefined;
2116
+ readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
2117
+ readonly image?: string | undefined;
2118
+ readonly website?: string | undefined;
2119
+ } & {
2120
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
2121
+ }> | undefined;
2122
+ readonly jobTitle?: string | undefined;
2123
+ readonly department?: string | undefined;
2124
+ readonly notes?: string | undefined;
2125
+ readonly emails?: readonly {
2126
+ readonly value: string;
2127
+ readonly label?: string | undefined;
2128
+ }[] | undefined;
2129
+ readonly identities?: readonly {
2130
+ readonly value: string;
2131
+ readonly label?: string | undefined;
2132
+ }[] | undefined;
2133
+ readonly phoneNumbers?: readonly {
2134
+ readonly value: string;
2135
+ readonly label?: string | undefined;
2136
+ }[] | undefined;
2137
+ readonly fields?: readonly {
2138
+ readonly value: string;
2139
+ readonly label: string;
2140
+ readonly category?: string | undefined;
2141
+ }[] | undefined;
2142
+ readonly addresses?: readonly {
2143
+ readonly value: {
2144
+ readonly street?: string | undefined;
2145
+ readonly extended?: string | undefined;
2146
+ readonly locality?: string | undefined;
2147
+ readonly region?: string | undefined;
2148
+ readonly postalCode?: string | undefined;
2149
+ readonly postOfficeBoxNumber?: string | undefined;
2150
+ readonly country?: string | undefined;
2151
+ };
2152
+ readonly label?: string | undefined;
2153
+ }[] | undefined;
2154
+ readonly urls?: readonly {
2155
+ readonly value: string;
2156
+ readonly label?: string | undefined;
2157
+ }[] | undefined;
2158
+ readonly birthday?: string | undefined;
2159
+ } & {
2160
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
2161
+ }>>;
2162
+ identityDid: Schema.optional<typeof Schema.String>;
2163
+ identityKey: Schema.optional<typeof Schema.String>;
2164
+ email: Schema.optional<typeof Schema.String>;
2165
+ name: Schema.optional<typeof Schema.String>;
2166
+ }>;
2167
+ text: typeof Schema.String;
2168
+ }>;
2169
+ readonly output: typeof Schema.Void;
2170
+ };
2171
+ }, "executionMode"> & import("effect/Pipeable").Pipeable & {
2172
+ readonly executionMode: "sync" | "async";
2173
+ };
2174
+ const DeleteMessageOutput: Schema.SchemaClass<{
2175
+ readonly message?: (import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
2176
+ readonly id: string;
2177
+ readonly parentMessage?: string | undefined;
2178
+ readonly created: string;
2179
+ readonly sender: {
2180
+ readonly name?: string | undefined;
2181
+ readonly role?: "user" | "assistant" | "tool" | undefined;
2182
+ readonly contact
2183
+ /**
2184
+ * Operations for the Thread plugin.
2185
+ * Note: Complex ECHO types are typed as Schema.Any to avoid serialization issues.
2186
+ */
2187
+ ?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
2188
+ readonly image?: string | undefined;
2189
+ readonly fullName?: string | undefined;
2190
+ readonly preferredName?: string | undefined;
2191
+ readonly nickname?: string | undefined;
2192
+ readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
2193
+ readonly description?: string | undefined;
2194
+ readonly name?: string | undefined;
2195
+ readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
2196
+ readonly image?: string | undefined;
2197
+ readonly website?: string | undefined;
2198
+ } & {
2199
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
2200
+ }> | undefined;
2201
+ readonly jobTitle?: string | undefined;
2202
+ readonly department?: string | undefined;
2203
+ readonly notes?: string | undefined;
2204
+ readonly emails?: readonly {
2205
+ readonly value: string;
2206
+ readonly label?: string | undefined;
2207
+ }[] | undefined;
2208
+ readonly identities?: readonly {
2209
+ readonly value: string;
2210
+ readonly label?: string | undefined;
2211
+ }[] | undefined;
2212
+ readonly phoneNumbers?: readonly {
2213
+ readonly value: string;
2214
+ readonly label?: string | undefined;
2215
+ }[] | undefined;
2216
+ readonly fields?: readonly {
2217
+ readonly value: string;
2218
+ readonly label: string;
2219
+ readonly category?: string | undefined;
2220
+ }[] | undefined;
2221
+ readonly addresses?: readonly {
2222
+ readonly value: {
2223
+ readonly street?: string | undefined;
2224
+ readonly extended?: string | undefined;
2225
+ readonly locality?: string | undefined;
2226
+ readonly region?: string | undefined;
2227
+ readonly postalCode?: string | undefined;
2228
+ readonly postOfficeBoxNumber?: string | undefined;
2229
+ readonly country?: string | undefined;
2230
+ };
2231
+ readonly label?: string | undefined;
2232
+ }[] | undefined;
2233
+ readonly urls?: readonly {
2234
+ readonly value: string;
2235
+ readonly label?: string | undefined;
2236
+ }[] | undefined;
2237
+ readonly birthday?: string | undefined;
2238
+ } & {
2239
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
2240
+ }> | undefined;
2241
+ readonly identityDid?: string | undefined;
2242
+ readonly identityKey?: string | undefined;
2243
+ readonly email?: string | undefined;
34
2244
  };
35
- name: Schema.optional<typeof Schema.String>;
36
- }>;
37
- output: Schema.Struct<{
38
- object: Type.obj<Schema.Schema<ChannelType, {
39
- id: string;
40
- defaultThread: import("@dxos/echo-protocol").EncodedReference;
41
- threads: import("@dxos/echo-protocol").EncodedReference[];
42
- name?: string | undefined;
43
- }, never>>;
44
- }>;
45
- }>;
46
- export class CreateChannel extends CreateChannel_base {
47
- }
48
- const CreateChannelThread_base: Schema.TaggedClass<CreateChannelThread, "dxos.org/plugin/thread/action/create-channel-thread", {
49
- readonly _tag: Schema.tag<"dxos.org/plugin/thread/action/create-channel-thread">;
50
- } & {
51
- input: Schema.Struct<{
52
- channel: Type.obj<Schema.Schema<ChannelType, {
53
- id: string;
54
- defaultThread: import("@dxos/echo-protocol").EncodedReference;
55
- threads: import("@dxos/echo-protocol").EncodedReference[];
56
- name?: string | undefined;
57
- }, never>>;
58
- }>;
59
- output: Schema.Struct<{
60
- object: Type.obj<Schema.Schema<ThreadType, {
61
- id: string;
62
- messages: import("@dxos/echo-protocol").EncodedReference[];
63
- name?: string | undefined;
64
- status?: "staged" | "active" | "resolved" | undefined;
65
- }, never>>;
66
- }>;
67
- }>;
68
- export class CreateChannelThread extends CreateChannelThread_base {
69
- }
70
- const Create_base: Schema.TaggedClass<Create, "dxos.org/plugin/thread/action/create", {
71
- readonly _tag: Schema.tag<"dxos.org/plugin/thread/action/create">;
72
- } & {
73
- input: Schema.Struct<{
74
- name: Schema.optional<typeof Schema.String>;
75
- anchor: Schema.optional<typeof Schema.String>;
76
- subject: Schema.Schema<any, any, never>;
77
- }>;
78
- output: typeof Schema.Void;
79
- }>;
80
- export class Create extends Create_base {
81
- }
82
- const Delete_base: Schema.TaggedClass<Delete, "dxos.org/plugin/thread/action/delete", {
83
- readonly _tag: Schema.tag<"dxos.org/plugin/thread/action/delete">;
84
- } & {
85
- input: Schema.Struct<{
86
- anchor: Type.relation<Schema.Struct<{
87
- id: import("@dxos/keys").ObjectIdClass;
88
- anchor: Schema.optional<typeof Schema.String>;
89
- }>, Schema.Schema<Type.Expando, {
90
- [x: string]: any;
91
- id: string;
92
- }, never>, Schema.Schema<Type.Expando, {
93
- [x: string]: any;
94
- id: string;
95
- }, never>>;
96
- subject: Schema.Schema<any, any, never>;
97
- thread: Schema.optional<Type.obj<Schema.Schema<ThreadType, {
98
- id: string;
99
- messages: import("@dxos/echo-protocol").EncodedReference[];
100
- name?: string | undefined;
101
- status?: "staged" | "active" | "resolved" | undefined;
102
- }, never>>>;
103
- }>;
104
- output: typeof Schema.Void;
105
- }>;
106
- export class Delete extends Delete_base {
107
- }
108
- const Select_base: Schema.TaggedClass<Select, "dxos.org/plugin/thread/action/select", {
109
- readonly _tag: Schema.tag<"dxos.org/plugin/thread/action/select">;
110
- } & {
111
- input: Schema.Struct<{
112
- current: typeof Schema.String;
113
- }>;
114
- output: typeof Schema.Void;
115
- }>;
116
- export class Select extends Select_base {
117
- }
118
- const ToggleResolved_base: Schema.TaggedClass<ToggleResolved, "dxos.org/plugin/thread/action/toggle-resolved", {
119
- readonly _tag: Schema.tag<"dxos.org/plugin/thread/action/toggle-resolved">;
120
- } & {
121
- input: Schema.Struct<{
122
- thread: Type.obj<Schema.Schema<ThreadType, {
123
- id: string;
124
- messages: import("@dxos/echo-protocol").EncodedReference[];
125
- name?: string | undefined;
126
- status?: "staged" | "active" | "resolved" | undefined;
127
- }, never>>;
128
- }>;
129
- output: typeof Schema.Void;
130
- }>;
131
- export class ToggleResolved extends ToggleResolved_base {
132
- }
133
- const AddMessage_base: Schema.TaggedClass<AddMessage, "dxos.org/plugin/thread/action/add-message", {
134
- readonly _tag: Schema.tag<"dxos.org/plugin/thread/action/add-message">;
135
- } & {
136
- input: Schema.Struct<{
137
- subject: Schema.Schema<any, any, never>;
138
- anchor: Type.relation<Schema.Struct<{
139
- id: import("@dxos/keys").ObjectIdClass;
140
- anchor: Schema.optional<typeof Schema.String>;
141
- }>, Schema.Schema<Type.Expando, {
142
- [x: string]: any;
143
- id: string;
144
- }, never>, Schema.Schema<Type.Expando, {
145
- [x: string]: any;
146
- id: string;
147
- }, never>>;
148
- sender: Schema.Struct<{
149
- contact: import("effect/Schema").optional<import("@dxos/echo/Type").ref<import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
150
- fullName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
151
- preferredName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
152
- nickname: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
153
- image: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
154
- organization: import("effect/Schema").optional<import("effect/Schema").Schema<import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
155
- id: string;
156
- name?: string | undefined;
157
- description?: string | undefined;
158
- status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
159
- image?: string | undefined;
160
- website?: string | undefined;
161
- }>, import("@dxos/echo-protocol").EncodedReference, never>>;
162
- jobTitle: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
163
- department: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
164
- notes: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
165
- emails: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
166
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
167
- value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
168
- }>>>>;
169
- identities: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
170
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
171
- value: typeof import("effect/Schema").String;
172
- }>>>>;
173
- phoneNumbers: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
174
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
175
- value: typeof import("effect/Schema").String;
176
- }>>>>;
177
- addresses: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
178
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
179
- value: import("effect/Schema").Struct<{
180
- street: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
181
- extended: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
182
- locality: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
183
- region: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
184
- postalCode: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
185
- postOfficeBoxNumber: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
186
- country: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
187
- }>;
188
- }>>>>;
189
- urls: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
190
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
191
- value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
192
- }>>>>;
193
- birthday: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").SchemaClass<string, string, never>>>;
194
- fields: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
195
- category: import("effect/Schema").optional<typeof import("effect/Schema").String>;
196
- label: typeof import("effect/Schema").String;
197
- value: typeof import("effect/Schema").String;
198
- }>>>>;
199
- }>>>>;
200
- identityDid: import("effect/Schema").optional<typeof import("effect/Schema").String>;
201
- identityKey: import("effect/Schema").optional<typeof import("effect/Schema").String>;
202
- email: import("effect/Schema").optional<typeof import("effect/Schema").String>;
203
- name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
204
- role: import("effect/Schema").optional<import("effect/Schema").Literal<["user", "assistant"]>>;
2245
+ readonly blocks: readonly ({
2246
+ readonly pending?: boolean | undefined;
2247
+ readonly text: string;
2248
+ readonly mimeType?: string | undefined;
2249
+ readonly disposition?: string | undefined;
2250
+ readonly _tag: "text";
2251
+ } | {
2252
+ readonly pending?: boolean | undefined;
2253
+ readonly _tag: "reasoning";
2254
+ readonly reasoningText?: string | undefined;
2255
+ readonly redactedText?: string | undefined;
2256
+ readonly signature?: string | undefined;
2257
+ } | {
2258
+ readonly name: string;
2259
+ readonly pending?: boolean | undefined;
2260
+ readonly _tag: "toolCall";
2261
+ readonly toolCallId: string;
2262
+ readonly input: string;
2263
+ readonly providerExecuted: boolean;
2264
+ } | {
2265
+ readonly name: string;
2266
+ readonly pending?: boolean | undefined;
2267
+ readonly _tag: "toolResult";
2268
+ readonly toolCallId: string;
2269
+ readonly providerExecuted: boolean;
2270
+ readonly result?: string | undefined;
2271
+ readonly error?: string | undefined;
2272
+ } | {
2273
+ readonly pending?: boolean | undefined;
2274
+ readonly mimeType?: string | undefined;
2275
+ readonly _tag: "stats";
2276
+ readonly message?: string | undefined;
2277
+ readonly model?: string | undefined;
2278
+ readonly usage?: {
2279
+ readonly inputTokens?: number | undefined;
2280
+ readonly outputTokens?: number | undefined;
2281
+ readonly totalTokens?: number | undefined;
2282
+ } | undefined;
2283
+ readonly toolCalls?: number | undefined;
2284
+ readonly errors?: number | undefined;
2285
+ readonly duration?: number | undefined;
2286
+ } | {
2287
+ readonly source?: {
2288
+ readonly type: "base64";
2289
+ readonly mediaType: string;
2290
+ readonly data: string;
2291
+ } | {
2292
+ readonly type: "http";
2293
+ readonly url: string;
2294
+ } | undefined;
2295
+ readonly id?: string | undefined;
2296
+ readonly pending?: boolean | undefined;
2297
+ readonly _tag: "image";
2298
+ } | {
2299
+ readonly name?: string | undefined;
2300
+ readonly pending?: boolean | undefined;
2301
+ readonly _tag: "file";
2302
+ readonly mediaType?: string | undefined;
2303
+ readonly url: string;
2304
+ } | {
2305
+ readonly pending?: boolean | undefined;
2306
+ readonly _tag: "reference";
2307
+ readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
2308
+ } | {
2309
+ readonly pending?: boolean | undefined;
2310
+ readonly text: string;
2311
+ readonly _tag: "transcript";
2312
+ readonly started: string;
2313
+ } | {
2314
+ readonly pending?: boolean | undefined;
2315
+ readonly _tag: "status";
2316
+ readonly statusText: string;
2317
+ } | {
2318
+ readonly pending?: boolean | undefined;
2319
+ readonly text: string;
2320
+ readonly _tag: "suggestion";
2321
+ } | {
2322
+ readonly pending?: boolean | undefined;
2323
+ readonly _tag: "select";
2324
+ readonly options: string[];
2325
+ } | {
2326
+ readonly version: unknown;
2327
+ readonly pending?: boolean | undefined;
2328
+ readonly _tag: "anchor";
2329
+ readonly objectId: string;
2330
+ } | {
2331
+ readonly pending?: boolean | undefined;
2332
+ readonly text: string;
2333
+ readonly _tag: "proposal";
2334
+ } | {
2335
+ readonly pending?: boolean | undefined;
2336
+ readonly _tag: "summary";
2337
+ readonly content: string;
2338
+ } | {
2339
+ readonly pending?: boolean | undefined;
2340
+ readonly _tag: "toolkit";
2341
+ } | {
2342
+ readonly pending?: boolean | undefined;
2343
+ readonly disposition?: string | undefined;
2344
+ readonly _tag: "json";
2345
+ readonly data: string;
2346
+ })[];
2347
+ readonly properties?: {
2348
+ readonly [x: string]: any;
2349
+ } | undefined;
2350
+ }) | undefined;
2351
+ readonly messageIndex?: number | undefined;
2352
+ }, {
2353
+ readonly message?: {
2354
+ id: string;
2355
+ parentMessage?: string | undefined | undefined;
2356
+ created: string;
2357
+ sender: {
2358
+ readonly name?: string | undefined;
2359
+ readonly role?: "user" | "assistant" | "tool" | undefined;
2360
+ readonly contact
2361
+ /**
2362
+ * Operations for the Thread plugin.
2363
+ * Note: Complex ECHO types are typed as Schema.Any to avoid serialization issues.
2364
+ */
2365
+ ?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
2366
+ readonly image?: string | undefined;
2367
+ readonly fullName?: string | undefined;
2368
+ readonly preferredName?: string | undefined;
2369
+ readonly nickname?: string | undefined;
2370
+ readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
2371
+ readonly description?: string | undefined;
2372
+ readonly name?: string | undefined;
2373
+ readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
2374
+ readonly image?: string | undefined;
2375
+ readonly website?: string | undefined;
2376
+ } & {
2377
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
2378
+ }> | undefined;
2379
+ readonly jobTitle?: string | undefined;
2380
+ readonly department?: string | undefined;
2381
+ readonly notes?: string | undefined;
2382
+ readonly emails?: readonly {
2383
+ readonly value: string;
2384
+ readonly label?: string | undefined;
2385
+ }[] | undefined;
2386
+ readonly identities?: readonly {
2387
+ readonly value: string;
2388
+ readonly label?: string | undefined;
2389
+ }[] | undefined;
2390
+ readonly phoneNumbers?: readonly {
2391
+ readonly value: string;
2392
+ readonly label?: string | undefined;
2393
+ }[] | undefined;
2394
+ readonly fields?: readonly {
2395
+ readonly value: string;
2396
+ readonly label: string;
2397
+ readonly category?: string | undefined;
2398
+ }[] | undefined;
2399
+ readonly addresses?: readonly {
2400
+ readonly value: {
2401
+ readonly street?: string | undefined;
2402
+ readonly extended?: string | undefined;
2403
+ readonly locality?: string | undefined;
2404
+ readonly region?: string | undefined;
2405
+ readonly postalCode?: string | undefined;
2406
+ readonly postOfficeBoxNumber?: string | undefined;
2407
+ readonly country?: string | undefined;
2408
+ };
2409
+ readonly label?: string | undefined;
2410
+ }[] | undefined;
2411
+ readonly urls?: readonly {
2412
+ readonly value: string;
2413
+ readonly label?: string | undefined;
2414
+ }[] | undefined;
2415
+ readonly birthday?: string | undefined;
2416
+ } & {
2417
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
2418
+ }> | undefined;
2419
+ readonly identityDid?: string | undefined;
2420
+ readonly identityKey?: string | undefined;
2421
+ readonly email?: string | undefined;
2422
+ };
2423
+ blocks: ({
2424
+ readonly pending?: boolean | undefined;
2425
+ readonly text: string;
2426
+ readonly mimeType?: string | undefined;
2427
+ readonly disposition?: string | undefined;
2428
+ readonly _tag: "text";
2429
+ } | {
2430
+ readonly pending?: boolean | undefined;
2431
+ readonly _tag: "reasoning";
2432
+ readonly reasoningText?: string | undefined;
2433
+ readonly redactedText?: string | undefined;
2434
+ readonly signature?: string | undefined;
2435
+ } | {
2436
+ readonly name: string;
2437
+ readonly pending?: boolean | undefined;
2438
+ readonly _tag: "toolCall";
2439
+ readonly toolCallId: string;
2440
+ readonly input: string;
2441
+ readonly providerExecuted: boolean;
2442
+ } | {
2443
+ readonly name: string;
2444
+ readonly pending?: boolean | undefined;
2445
+ readonly _tag: "toolResult";
2446
+ readonly toolCallId: string;
2447
+ readonly providerExecuted: boolean;
2448
+ readonly result?: string | undefined;
2449
+ readonly error?: string | undefined;
2450
+ } | {
2451
+ readonly pending?: boolean | undefined;
2452
+ readonly mimeType?: string | undefined;
2453
+ readonly _tag: "stats";
2454
+ readonly message?: string | undefined;
2455
+ readonly model?: string | undefined;
2456
+ readonly usage?: {
2457
+ readonly inputTokens?: number | undefined;
2458
+ readonly outputTokens?: number | undefined;
2459
+ readonly totalTokens?: number | undefined;
2460
+ } | undefined;
2461
+ readonly toolCalls?: number | undefined;
2462
+ readonly errors?: number | undefined;
2463
+ readonly duration?: number | undefined;
2464
+ } | {
2465
+ readonly source?: {
2466
+ readonly type: "base64";
2467
+ readonly mediaType: string;
2468
+ readonly data: string;
2469
+ } | {
2470
+ readonly type: "http";
2471
+ readonly url: string;
2472
+ } | undefined;
2473
+ readonly id?: string | undefined;
2474
+ readonly pending?: boolean | undefined;
2475
+ readonly _tag: "image";
2476
+ } | {
2477
+ readonly name?: string | undefined;
2478
+ readonly pending?: boolean | undefined;
2479
+ readonly _tag: "file";
2480
+ readonly mediaType?: string | undefined;
2481
+ readonly url: string;
2482
+ } | {
2483
+ readonly pending?: boolean | undefined;
2484
+ readonly _tag: "reference";
2485
+ readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
2486
+ } | {
2487
+ readonly pending?: boolean | undefined;
2488
+ readonly text: string;
2489
+ readonly _tag: "transcript";
2490
+ readonly started: string;
2491
+ } | {
2492
+ readonly pending?: boolean | undefined;
2493
+ readonly _tag: "status";
2494
+ readonly statusText: string;
2495
+ } | {
2496
+ readonly pending?: boolean | undefined;
2497
+ readonly text: string;
2498
+ readonly _tag: "suggestion";
2499
+ } | {
2500
+ readonly pending?: boolean | undefined;
2501
+ readonly _tag: "select";
2502
+ readonly options: string[];
2503
+ } | {
2504
+ readonly version: unknown;
2505
+ readonly pending?: boolean | undefined;
2506
+ readonly _tag: "anchor";
2507
+ readonly objectId: string;
2508
+ } | {
2509
+ readonly pending?: boolean | undefined;
2510
+ readonly text: string;
2511
+ readonly _tag: "proposal";
2512
+ } | {
2513
+ readonly pending?: boolean | undefined;
2514
+ readonly _tag: "summary";
2515
+ readonly content: string;
2516
+ } | {
2517
+ readonly pending?: boolean | undefined;
2518
+ readonly _tag: "toolkit";
2519
+ } | {
2520
+ readonly pending?: boolean | undefined;
2521
+ readonly disposition?: string | undefined;
2522
+ readonly _tag: "json";
2523
+ readonly data: string;
2524
+ })[];
2525
+ properties?: {
2526
+ readonly [x: string]: any;
2527
+ } | undefined | undefined;
2528
+ } | undefined;
2529
+ readonly messageIndex?: number | undefined;
2530
+ }, never>;
2531
+ type DeleteMessageOutput = Schema.Schema.Type<typeof DeleteMessageOutput>;
2532
+ const DeleteMessage: Omit<{
2533
+ readonly meta: {
2534
+ readonly key: `${string}.delete-message`;
2535
+ readonly name: "Delete Message";
2536
+ };
2537
+ readonly services: readonly [typeof Capability.Service];
2538
+ readonly schema: {
2539
+ readonly input: Schema.Struct<{
2540
+ anchor: import("@dxos/echo/Type").Relation<{
2541
+ readonly id: string;
2542
+ readonly anchor?: string | undefined;
2543
+ }, import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown, import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown, Schema.Struct.Fields>;
2544
+ subject: import("@dxos/echo/Type").Obj<Obj.Unknown, Schema.Struct.Fields>;
2545
+ messageId: typeof Schema.String;
205
2546
  }>;
206
- text: typeof Schema.String;
207
- }>;
208
- output: typeof Schema.Void;
209
- }>;
210
- export class AddMessage extends AddMessage_base {
211
- }
212
- const DeleteMessage_base: Schema.TaggedClass<DeleteMessage, "dxos.org/plugin/thread/action/delete-message", {
213
- readonly _tag: Schema.tag<"dxos.org/plugin/thread/action/delete-message">;
214
- } & {
215
- input: Schema.Struct<{
216
- anchor: Type.relation<Schema.Struct<{
217
- id: import("@dxos/keys").ObjectIdClass;
218
- anchor: Schema.optional<typeof Schema.String>;
219
- }>, Schema.Schema<Type.Expando, {
220
- [x: string]: any;
221
- id: string;
222
- }, never>, Schema.Schema<Type.Expando, {
223
- [x: string]: any;
224
- id: string;
225
- }, never>>;
226
- subject: Schema.Schema<any, any, never>;
227
- messageId: typeof Schema.String;
228
- message: Schema.optional<Type.obj<Schema.Struct<{
229
- id: import("@dxos/keys").ObjectIdClass;
230
- created: import("effect/Schema").SchemaClass<string, string, never>;
231
- sender: import("effect/Schema").mutable<import("effect/Schema").Struct<{
232
- contact: import("effect/Schema").optional<import("@dxos/echo/Type").ref<import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
233
- fullName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
234
- preferredName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
235
- nickname: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
236
- image: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
237
- organization: import("effect/Schema").optional<import("effect/Schema").Schema<import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
238
- id: string;
239
- name?: string | undefined;
240
- description?: string | undefined;
241
- status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
242
- image?: string | undefined;
243
- website?: string | undefined;
244
- }>, import("@dxos/echo-protocol").EncodedReference, never>>;
245
- jobTitle: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
246
- department: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
247
- notes: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
248
- emails: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
249
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
250
- value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
251
- }>>>>;
252
- identities: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
253
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
254
- value: typeof import("effect/Schema").String;
255
- }>>>>;
256
- phoneNumbers: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
257
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
258
- value: typeof import("effect/Schema").String;
259
- }>>>>;
260
- addresses: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
261
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
262
- value: import("effect/Schema").Struct<{
263
- street: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
264
- extended: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
265
- locality: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
266
- region: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
267
- postalCode: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
268
- postOfficeBoxNumber: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
269
- country: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
270
- }>;
271
- }>>>>;
272
- urls: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
273
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
274
- value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
275
- }>>>>;
276
- birthday: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").SchemaClass<string, string, never>>>;
277
- fields: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
278
- category: import("effect/Schema").optional<typeof import("effect/Schema").String>;
279
- label: typeof import("effect/Schema").String;
280
- value: typeof import("effect/Schema").String;
281
- }>>>>;
282
- }>>>>;
283
- identityDid: import("effect/Schema").optional<typeof import("effect/Schema").String>;
284
- identityKey: import("effect/Schema").optional<typeof import("effect/Schema").String>;
285
- email: import("effect/Schema").optional<typeof import("effect/Schema").String>;
286
- name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
287
- role: import("effect/Schema").optional<import("effect/Schema").Literal<["user", "assistant"]>>;
288
- }>>;
289
- blocks: import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"anchor", {
290
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
291
- objectId: import("@dxos/keys").ObjectIdClass;
292
- version: typeof import("effect/Schema").Unknown;
293
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"file", {
294
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
295
- url: typeof import("effect/Schema").String;
296
- name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
297
- mediaType: import("effect/Schema").optional<typeof import("effect/Schema").String>;
298
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"image", {
299
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
300
- id: import("effect/Schema").optional<typeof import("effect/Schema").String>;
301
- source: import("effect/Schema").optional<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").Struct<{
302
- type: import("effect/Schema").Literal<["base64"]>;
303
- mediaType: typeof import("effect/Schema").String;
304
- data: typeof import("effect/Schema").String;
305
- }>>, import("effect/Schema").mutable<import("effect/Schema").Struct<{
306
- type: import("effect/Schema").Literal<["http"]>;
307
- url: typeof import("effect/Schema").String;
308
- }>>]>>;
309
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"json", {
310
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
311
- disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
312
- data: typeof import("effect/Schema").String;
313
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"proposal", {
314
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
315
- text: typeof import("effect/Schema").String;
316
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"reasoning", {
317
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
318
- reasoningText: import("effect/Schema").optional<typeof import("effect/Schema").String>;
319
- redactedText: import("effect/Schema").optional<typeof import("effect/Schema").String>;
320
- signature: import("effect/Schema").optional<typeof import("effect/Schema").String>;
321
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"reference", {
322
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
323
- reference: import("@dxos/echo/Type").ref<import("effect/Schema").Schema<import("@dxos/echo/Type").Expando, {
324
- [x: string]: any;
325
- id: string;
326
- }, never>>;
327
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"select", {
328
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
329
- options: import("effect/Schema").Array$<typeof import("effect/Schema").String>;
330
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"status", {
331
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
332
- statusText: typeof import("effect/Schema").String;
333
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"suggest", {
334
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
335
- text: typeof import("effect/Schema").String;
336
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"text", {
337
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
338
- mimeType: import("effect/Schema").optional<typeof import("effect/Schema").String>;
339
- text: typeof import("effect/Schema").String;
340
- disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
341
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"toolCall", {
342
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
343
- toolCallId: typeof import("effect/Schema").String;
344
- name: typeof import("effect/Schema").String;
345
- input: typeof import("effect/Schema").Unknown;
346
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"toolList", {
347
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
348
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"toolResult", {
349
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
350
- toolCallId: typeof import("effect/Schema").String;
351
- name: typeof import("effect/Schema").String;
352
- result: typeof import("effect/Schema").Unknown;
353
- }>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"transcript", {
354
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
355
- started: typeof import("effect/Schema").String;
356
- text: typeof import("effect/Schema").String;
357
- }>>]>>>;
358
- properties: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Any>>>;
359
- }>>>;
360
- messageIndex: Schema.optional<typeof Schema.Number>;
361
- }>;
362
- output: typeof Schema.Void;
363
- }>;
364
- export class DeleteMessage extends DeleteMessage_base {
365
- }
366
- export {};
2547
+ readonly output: Schema.SchemaClass<{
2548
+ readonly message?: (import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
2549
+ readonly id: string;
2550
+ readonly parentMessage?: string | undefined;
2551
+ readonly created: string;
2552
+ readonly sender: {
2553
+ readonly name?: string | undefined;
2554
+ readonly role?: "user" | "assistant" | "tool" | undefined;
2555
+ readonly contact
2556
+ /**
2557
+ * Operations for the Thread plugin.
2558
+ * Note: Complex ECHO types are typed as Schema.Any to avoid serialization issues.
2559
+ */
2560
+ ?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
2561
+ readonly image?: string | undefined;
2562
+ readonly fullName?: string | undefined;
2563
+ readonly preferredName?: string | undefined;
2564
+ readonly nickname?: string | undefined;
2565
+ readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
2566
+ readonly description?: string | undefined;
2567
+ readonly name?: string | undefined;
2568
+ readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
2569
+ readonly image?: string | undefined;
2570
+ readonly website?: string | undefined;
2571
+ } & {
2572
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
2573
+ }> | undefined;
2574
+ readonly jobTitle?: string | undefined;
2575
+ readonly department?: string | undefined;
2576
+ readonly notes?: string | undefined;
2577
+ readonly emails?: readonly {
2578
+ readonly value: string;
2579
+ readonly label?: string | undefined;
2580
+ }[] | undefined;
2581
+ readonly identities?: readonly {
2582
+ readonly value: string;
2583
+ readonly label?: string | undefined;
2584
+ }[] | undefined;
2585
+ readonly phoneNumbers?: readonly {
2586
+ readonly value: string;
2587
+ readonly label?: string | undefined;
2588
+ }[] | undefined;
2589
+ readonly fields?: readonly {
2590
+ readonly value: string;
2591
+ readonly label: string;
2592
+ readonly category?: string | undefined;
2593
+ }[] | undefined;
2594
+ readonly addresses?: readonly {
2595
+ readonly value: {
2596
+ readonly street?: string | undefined;
2597
+ readonly extended?: string | undefined;
2598
+ readonly locality?: string | undefined;
2599
+ readonly region?: string | undefined;
2600
+ readonly postalCode?: string | undefined;
2601
+ readonly postOfficeBoxNumber?: string | undefined;
2602
+ readonly country?: string | undefined;
2603
+ };
2604
+ readonly label?: string | undefined;
2605
+ }[] | undefined;
2606
+ readonly urls?: readonly {
2607
+ readonly value: string;
2608
+ readonly label?: string | undefined;
2609
+ }[] | undefined;
2610
+ readonly birthday?: string | undefined;
2611
+ } & {
2612
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
2613
+ }> | undefined;
2614
+ readonly identityDid?: string | undefined;
2615
+ readonly identityKey?: string | undefined;
2616
+ readonly email?: string | undefined;
2617
+ };
2618
+ readonly blocks: readonly ({
2619
+ readonly pending?: boolean | undefined;
2620
+ readonly text: string;
2621
+ readonly mimeType?: string | undefined;
2622
+ readonly disposition?: string | undefined;
2623
+ readonly _tag: "text";
2624
+ } | {
2625
+ readonly pending?: boolean | undefined;
2626
+ readonly _tag: "reasoning";
2627
+ readonly reasoningText?: string | undefined;
2628
+ readonly redactedText?: string | undefined;
2629
+ readonly signature?: string | undefined;
2630
+ } | {
2631
+ readonly name: string;
2632
+ readonly pending?: boolean | undefined;
2633
+ readonly _tag: "toolCall";
2634
+ readonly toolCallId: string;
2635
+ readonly input: string;
2636
+ readonly providerExecuted: boolean;
2637
+ } | {
2638
+ readonly name: string;
2639
+ readonly pending?: boolean | undefined;
2640
+ readonly _tag: "toolResult";
2641
+ readonly toolCallId: string;
2642
+ readonly providerExecuted: boolean;
2643
+ readonly result?: string | undefined;
2644
+ readonly error?: string | undefined;
2645
+ } | {
2646
+ readonly pending?: boolean | undefined;
2647
+ readonly mimeType?: string | undefined;
2648
+ readonly _tag: "stats";
2649
+ readonly message?: string | undefined;
2650
+ readonly model?: string | undefined;
2651
+ readonly usage?: {
2652
+ readonly inputTokens?: number | undefined;
2653
+ readonly outputTokens?: number | undefined;
2654
+ readonly totalTokens?: number | undefined;
2655
+ } | undefined;
2656
+ readonly toolCalls?: number | undefined;
2657
+ readonly errors?: number | undefined;
2658
+ readonly duration?: number | undefined;
2659
+ } | {
2660
+ readonly source?: {
2661
+ readonly type: "base64";
2662
+ readonly mediaType: string;
2663
+ readonly data: string;
2664
+ } | {
2665
+ readonly type: "http";
2666
+ readonly url: string;
2667
+ } | undefined;
2668
+ readonly id?: string | undefined;
2669
+ readonly pending?: boolean | undefined;
2670
+ readonly _tag: "image";
2671
+ } | {
2672
+ readonly name?: string | undefined;
2673
+ readonly pending?: boolean | undefined;
2674
+ readonly _tag: "file";
2675
+ readonly mediaType?: string | undefined;
2676
+ readonly url: string;
2677
+ } | {
2678
+ readonly pending?: boolean | undefined;
2679
+ readonly _tag: "reference";
2680
+ readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
2681
+ } | {
2682
+ readonly pending?: boolean | undefined;
2683
+ readonly text: string;
2684
+ readonly _tag: "transcript";
2685
+ readonly started: string;
2686
+ } | {
2687
+ readonly pending?: boolean | undefined;
2688
+ readonly _tag: "status";
2689
+ readonly statusText: string;
2690
+ } | {
2691
+ readonly pending?: boolean | undefined;
2692
+ readonly text: string;
2693
+ readonly _tag: "suggestion";
2694
+ } | {
2695
+ readonly pending?: boolean | undefined;
2696
+ readonly _tag: "select";
2697
+ readonly options: string[];
2698
+ } | {
2699
+ readonly version: unknown;
2700
+ readonly pending?: boolean | undefined;
2701
+ readonly _tag: "anchor";
2702
+ readonly objectId: string;
2703
+ } | {
2704
+ readonly pending?: boolean | undefined;
2705
+ readonly text: string;
2706
+ readonly _tag: "proposal";
2707
+ } | {
2708
+ readonly pending?: boolean | undefined;
2709
+ readonly _tag: "summary";
2710
+ readonly content: string;
2711
+ } | {
2712
+ readonly pending?: boolean | undefined;
2713
+ readonly _tag: "toolkit";
2714
+ } | {
2715
+ readonly pending?: boolean | undefined;
2716
+ readonly disposition?: string | undefined;
2717
+ readonly _tag: "json";
2718
+ readonly data: string;
2719
+ })[];
2720
+ readonly properties?: {
2721
+ readonly [x: string]: any;
2722
+ } | undefined;
2723
+ }) | undefined;
2724
+ readonly messageIndex?: number | undefined;
2725
+ }, {
2726
+ readonly message?: {
2727
+ id: string;
2728
+ parentMessage?: string | undefined | undefined;
2729
+ created: string;
2730
+ sender: {
2731
+ readonly name?: string | undefined;
2732
+ readonly role?: "user" | "assistant" | "tool" | undefined;
2733
+ readonly contact
2734
+ /**
2735
+ * Operations for the Thread plugin.
2736
+ * Note: Complex ECHO types are typed as Schema.Any to avoid serialization issues.
2737
+ */
2738
+ ?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
2739
+ readonly image?: string | undefined;
2740
+ readonly fullName?: string | undefined;
2741
+ readonly preferredName?: string | undefined;
2742
+ readonly nickname?: string | undefined;
2743
+ readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
2744
+ readonly description?: string | undefined;
2745
+ readonly name?: string | undefined;
2746
+ readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
2747
+ readonly image?: string | undefined;
2748
+ readonly website?: string | undefined;
2749
+ } & {
2750
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
2751
+ }> | undefined;
2752
+ readonly jobTitle?: string | undefined;
2753
+ readonly department?: string | undefined;
2754
+ readonly notes?: string | undefined;
2755
+ readonly emails?: readonly {
2756
+ readonly value: string;
2757
+ readonly label?: string | undefined;
2758
+ }[] | undefined;
2759
+ readonly identities?: readonly {
2760
+ readonly value: string;
2761
+ readonly label?: string | undefined;
2762
+ }[] | undefined;
2763
+ readonly phoneNumbers?: readonly {
2764
+ readonly value: string;
2765
+ readonly label?: string | undefined;
2766
+ }[] | undefined;
2767
+ readonly fields?: readonly {
2768
+ readonly value: string;
2769
+ readonly label: string;
2770
+ readonly category?: string | undefined;
2771
+ }[] | undefined;
2772
+ readonly addresses?: readonly {
2773
+ readonly value: {
2774
+ readonly street?: string | undefined;
2775
+ readonly extended?: string | undefined;
2776
+ readonly locality?: string | undefined;
2777
+ readonly region?: string | undefined;
2778
+ readonly postalCode?: string | undefined;
2779
+ readonly postOfficeBoxNumber?: string | undefined;
2780
+ readonly country?: string | undefined;
2781
+ };
2782
+ readonly label?: string | undefined;
2783
+ }[] | undefined;
2784
+ readonly urls?: readonly {
2785
+ readonly value: string;
2786
+ readonly label?: string | undefined;
2787
+ }[] | undefined;
2788
+ readonly birthday?: string | undefined;
2789
+ } & {
2790
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
2791
+ }> | undefined;
2792
+ readonly identityDid?: string | undefined;
2793
+ readonly identityKey?: string | undefined;
2794
+ readonly email?: string | undefined;
2795
+ };
2796
+ blocks: ({
2797
+ readonly pending?: boolean | undefined;
2798
+ readonly text: string;
2799
+ readonly mimeType?: string | undefined;
2800
+ readonly disposition?: string | undefined;
2801
+ readonly _tag: "text";
2802
+ } | {
2803
+ readonly pending?: boolean | undefined;
2804
+ readonly _tag: "reasoning";
2805
+ readonly reasoningText?: string | undefined;
2806
+ readonly redactedText?: string | undefined;
2807
+ readonly signature?: string | undefined;
2808
+ } | {
2809
+ readonly name: string;
2810
+ readonly pending?: boolean | undefined;
2811
+ readonly _tag: "toolCall";
2812
+ readonly toolCallId: string;
2813
+ readonly input: string;
2814
+ readonly providerExecuted: boolean;
2815
+ } | {
2816
+ readonly name: string;
2817
+ readonly pending?: boolean | undefined;
2818
+ readonly _tag: "toolResult";
2819
+ readonly toolCallId: string;
2820
+ readonly providerExecuted: boolean;
2821
+ readonly result?: string | undefined;
2822
+ readonly error?: string | undefined;
2823
+ } | {
2824
+ readonly pending?: boolean | undefined;
2825
+ readonly mimeType?: string | undefined;
2826
+ readonly _tag: "stats";
2827
+ readonly message?: string | undefined;
2828
+ readonly model?: string | undefined;
2829
+ readonly usage?: {
2830
+ readonly inputTokens?: number | undefined;
2831
+ readonly outputTokens?: number | undefined;
2832
+ readonly totalTokens?: number | undefined;
2833
+ } | undefined;
2834
+ readonly toolCalls?: number | undefined;
2835
+ readonly errors?: number | undefined;
2836
+ readonly duration?: number | undefined;
2837
+ } | {
2838
+ readonly source?: {
2839
+ readonly type: "base64";
2840
+ readonly mediaType: string;
2841
+ readonly data: string;
2842
+ } | {
2843
+ readonly type: "http";
2844
+ readonly url: string;
2845
+ } | undefined;
2846
+ readonly id?: string | undefined;
2847
+ readonly pending?: boolean | undefined;
2848
+ readonly _tag: "image";
2849
+ } | {
2850
+ readonly name?: string | undefined;
2851
+ readonly pending?: boolean | undefined;
2852
+ readonly _tag: "file";
2853
+ readonly mediaType?: string | undefined;
2854
+ readonly url: string;
2855
+ } | {
2856
+ readonly pending?: boolean | undefined;
2857
+ readonly _tag: "reference";
2858
+ readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
2859
+ } | {
2860
+ readonly pending?: boolean | undefined;
2861
+ readonly text: string;
2862
+ readonly _tag: "transcript";
2863
+ readonly started: string;
2864
+ } | {
2865
+ readonly pending?: boolean | undefined;
2866
+ readonly _tag: "status";
2867
+ readonly statusText: string;
2868
+ } | {
2869
+ readonly pending?: boolean | undefined;
2870
+ readonly text: string;
2871
+ readonly _tag: "suggestion";
2872
+ } | {
2873
+ readonly pending?: boolean | undefined;
2874
+ readonly _tag: "select";
2875
+ readonly options: string[];
2876
+ } | {
2877
+ readonly version: unknown;
2878
+ readonly pending?: boolean | undefined;
2879
+ readonly _tag: "anchor";
2880
+ readonly objectId: string;
2881
+ } | {
2882
+ readonly pending?: boolean | undefined;
2883
+ readonly text: string;
2884
+ readonly _tag: "proposal";
2885
+ } | {
2886
+ readonly pending?: boolean | undefined;
2887
+ readonly _tag: "summary";
2888
+ readonly content: string;
2889
+ } | {
2890
+ readonly pending?: boolean | undefined;
2891
+ readonly _tag: "toolkit";
2892
+ } | {
2893
+ readonly pending?: boolean | undefined;
2894
+ readonly disposition?: string | undefined;
2895
+ readonly _tag: "json";
2896
+ readonly data: string;
2897
+ })[];
2898
+ properties?: {
2899
+ readonly [x: string]: any;
2900
+ } | undefined | undefined;
2901
+ } | undefined;
2902
+ readonly messageIndex?: number | undefined;
2903
+ }, never>;
2904
+ };
2905
+ }, "executionMode"> & import("effect/Pipeable").Pipeable & {
2906
+ readonly executionMode: "sync" | "async";
2907
+ };
2908
+ /**
2909
+ * Restore a deleted thread (inverse of Delete).
2910
+ */
2911
+ const Restore: Omit<{
2912
+ readonly meta: {
2913
+ readonly key: `${string}.restore`;
2914
+ readonly name: "Restore Thread";
2915
+ };
2916
+ readonly services: readonly [typeof Capability.Service];
2917
+ readonly schema: {
2918
+ readonly input: Schema.Struct<{
2919
+ thread: import("@dxos/echo/Type").Obj<{
2920
+ readonly name?: string | undefined;
2921
+ readonly status?: "active" | "staged" | "resolved" | undefined;
2922
+ readonly messages: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
2923
+ readonly id: string;
2924
+ readonly parentMessage?: string | undefined;
2925
+ readonly created: string;
2926
+ readonly sender: {
2927
+ readonly name?: string | undefined;
2928
+ readonly role?: "user" | "assistant" | "tool" | undefined;
2929
+ readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
2930
+ readonly image?: string | undefined;
2931
+ readonly fullName?: string | undefined;
2932
+ readonly preferredName?: string | undefined;
2933
+ readonly nickname?: string | undefined;
2934
+ readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
2935
+ readonly description?: string | undefined;
2936
+ readonly name?: string | undefined;
2937
+ readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
2938
+ readonly image?: string | undefined;
2939
+ readonly website?: string | undefined;
2940
+ } & {
2941
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
2942
+ }> | undefined;
2943
+ readonly jobTitle?: string | undefined;
2944
+ readonly department?: string | undefined;
2945
+ readonly notes?: string | undefined;
2946
+ readonly emails?: readonly {
2947
+ readonly value: string;
2948
+ readonly label?: string | undefined;
2949
+ }[] | undefined;
2950
+ readonly identities?: readonly {
2951
+ readonly value: string;
2952
+ readonly label?: string | undefined;
2953
+ }[] | undefined;
2954
+ readonly phoneNumbers?: readonly {
2955
+ readonly value: string;
2956
+ readonly label?: string | undefined;
2957
+ }[] | undefined;
2958
+ readonly fields?: readonly {
2959
+ readonly value: string;
2960
+ readonly label: string;
2961
+ readonly category?: string | undefined;
2962
+ }[] | undefined;
2963
+ readonly addresses?: readonly {
2964
+ readonly value: {
2965
+ readonly street?: string | undefined;
2966
+ readonly extended?: string | undefined;
2967
+ readonly locality?: string | undefined;
2968
+ readonly region?: string | undefined;
2969
+ readonly postalCode?: string | undefined;
2970
+ readonly postOfficeBoxNumber?: string | undefined;
2971
+ readonly country?: string | undefined;
2972
+ };
2973
+ readonly label?: string | undefined;
2974
+ }[] | undefined;
2975
+ readonly urls?: readonly {
2976
+ readonly value: string;
2977
+ readonly label?: string | undefined;
2978
+ }[] | undefined;
2979
+ readonly birthday?: string | undefined;
2980
+ } & {
2981
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
2982
+ }> | undefined;
2983
+ readonly identityDid?: string | undefined;
2984
+ readonly identityKey?: string | undefined;
2985
+ readonly email?: string | undefined;
2986
+ };
2987
+ readonly blocks: readonly ({
2988
+ readonly pending?: boolean | undefined;
2989
+ readonly text: string;
2990
+ readonly mimeType?: string | undefined;
2991
+ readonly disposition?: string | undefined;
2992
+ readonly _tag: "text";
2993
+ } | {
2994
+ readonly pending?: boolean | undefined;
2995
+ readonly _tag: "reasoning";
2996
+ readonly reasoningText?: string | undefined;
2997
+ readonly redactedText?: string | undefined;
2998
+ readonly signature?: string | undefined;
2999
+ } | {
3000
+ readonly name: string;
3001
+ readonly pending?: boolean | undefined;
3002
+ readonly _tag: "toolCall";
3003
+ readonly toolCallId: string;
3004
+ readonly input: string;
3005
+ readonly providerExecuted: boolean;
3006
+ } | {
3007
+ readonly name: string;
3008
+ readonly pending?: boolean | undefined;
3009
+ readonly _tag: "toolResult";
3010
+ readonly toolCallId: string;
3011
+ readonly providerExecuted: boolean;
3012
+ readonly result?: string | undefined;
3013
+ readonly error?: string | undefined;
3014
+ } | {
3015
+ readonly pending?: boolean | undefined;
3016
+ readonly mimeType?: string | undefined;
3017
+ readonly _tag: "stats";
3018
+ readonly message?: string | undefined;
3019
+ readonly model?: string | undefined;
3020
+ readonly usage?: {
3021
+ readonly inputTokens?: number | undefined;
3022
+ readonly outputTokens?: number | undefined;
3023
+ readonly totalTokens?: number | undefined;
3024
+ } | undefined;
3025
+ readonly toolCalls?: number | undefined;
3026
+ readonly errors?: number | undefined;
3027
+ readonly duration?: number | undefined;
3028
+ } | {
3029
+ readonly source?: {
3030
+ readonly type: "base64";
3031
+ readonly mediaType: string;
3032
+ readonly data: string;
3033
+ } | {
3034
+ readonly type: "http";
3035
+ readonly url: string;
3036
+ } | undefined;
3037
+ readonly id?: string | undefined;
3038
+ readonly pending?: boolean | undefined;
3039
+ readonly _tag: "image";
3040
+ } | {
3041
+ readonly name?: string | undefined;
3042
+ readonly pending?: boolean | undefined;
3043
+ readonly _tag: "file";
3044
+ readonly mediaType?: string | undefined;
3045
+ readonly url: string;
3046
+ } | {
3047
+ readonly pending?: boolean | undefined;
3048
+ readonly _tag: "reference";
3049
+ readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
3050
+ } | {
3051
+ readonly pending?: boolean | undefined;
3052
+ readonly text: string;
3053
+ readonly _tag: "transcript";
3054
+ readonly started: string;
3055
+ } | {
3056
+ readonly pending?: boolean | undefined;
3057
+ readonly _tag: "status";
3058
+ readonly statusText: string;
3059
+ } | {
3060
+ readonly pending?: boolean | undefined;
3061
+ readonly text: string;
3062
+ readonly _tag: "suggestion";
3063
+ } | {
3064
+ readonly pending?: boolean | undefined;
3065
+ readonly _tag: "select";
3066
+ readonly options: string[];
3067
+ } | {
3068
+ readonly version: unknown;
3069
+ readonly pending?: boolean | undefined;
3070
+ readonly _tag: "anchor";
3071
+ readonly objectId: string;
3072
+ } | {
3073
+ readonly pending?: boolean | undefined;
3074
+ readonly text: string;
3075
+ readonly _tag: "proposal";
3076
+ } | {
3077
+ readonly pending?: boolean | undefined;
3078
+ readonly _tag: "summary";
3079
+ readonly content: string;
3080
+ } | {
3081
+ readonly pending?: boolean | undefined;
3082
+ readonly _tag: "toolkit";
3083
+ } | {
3084
+ readonly pending?: boolean | undefined;
3085
+ readonly disposition?: string | undefined;
3086
+ readonly _tag: "json";
3087
+ readonly data: string;
3088
+ })[];
3089
+ readonly properties?: {
3090
+ readonly [x: string]: any;
3091
+ } | undefined;
3092
+ }>[];
3093
+ }, Schema.Struct.Fields>;
3094
+ anchor: import("@dxos/echo/Type").Relation<{
3095
+ readonly id: string;
3096
+ readonly anchor?: string | undefined;
3097
+ }, import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown, import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown, Schema.Struct.Fields>;
3098
+ }>;
3099
+ readonly output: typeof Schema.Void;
3100
+ };
3101
+ }, "executionMode"> & import("effect/Pipeable").Pipeable & {
3102
+ readonly executionMode: "sync" | "async";
3103
+ };
3104
+ /**
3105
+ * Restore a deleted message (inverse of DeleteMessage).
3106
+ */
3107
+ const RestoreMessage: Omit<{
3108
+ readonly meta: {
3109
+ readonly key: `${string}.restore-message`;
3110
+ readonly name: "Restore Message";
3111
+ };
3112
+ readonly services: readonly [typeof Capability.Service];
3113
+ readonly schema: {
3114
+ readonly input: Schema.Struct<{
3115
+ anchor: import("@dxos/echo/Type").Relation<{
3116
+ readonly id: string;
3117
+ readonly anchor?: string | undefined;
3118
+ }, import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown, import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown, Schema.Struct.Fields>;
3119
+ message: import("@dxos/echo/Type").Obj<{
3120
+ readonly id: string;
3121
+ readonly parentMessage?: string | undefined;
3122
+ readonly created: string;
3123
+ readonly sender: {
3124
+ readonly name?: string | undefined;
3125
+ readonly role?: "user" | "assistant" | "tool" | undefined;
3126
+ readonly contact
3127
+ /**
3128
+ * Operations for the Thread plugin.
3129
+ * Note: Complex ECHO types are typed as Schema.Any to avoid serialization issues.
3130
+ */
3131
+ ?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
3132
+ readonly image?: string | undefined;
3133
+ readonly fullName?: string | undefined;
3134
+ readonly preferredName?: string | undefined;
3135
+ readonly nickname?: string | undefined;
3136
+ readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
3137
+ readonly description?: string | undefined;
3138
+ readonly name?: string | undefined;
3139
+ readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
3140
+ readonly image?: string | undefined;
3141
+ readonly website?: string | undefined;
3142
+ } & {
3143
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
3144
+ }> | undefined;
3145
+ readonly jobTitle?: string | undefined;
3146
+ readonly department?: string | undefined;
3147
+ readonly notes?: string | undefined;
3148
+ readonly emails?: readonly {
3149
+ readonly value: string;
3150
+ readonly label?: string | undefined;
3151
+ }[] | undefined;
3152
+ readonly identities?: readonly {
3153
+ readonly value: string;
3154
+ readonly label?: string | undefined;
3155
+ }[] | undefined;
3156
+ readonly phoneNumbers?: readonly {
3157
+ readonly value: string;
3158
+ readonly label?: string | undefined;
3159
+ }[] | undefined;
3160
+ readonly fields?: readonly {
3161
+ readonly value: string;
3162
+ readonly label: string;
3163
+ readonly category?: string | undefined;
3164
+ }[] | undefined;
3165
+ readonly addresses?: readonly {
3166
+ readonly value: {
3167
+ readonly street?: string | undefined;
3168
+ readonly extended?: string | undefined;
3169
+ readonly locality?: string | undefined;
3170
+ readonly region?: string | undefined;
3171
+ readonly postalCode?: string | undefined;
3172
+ readonly postOfficeBoxNumber?: string | undefined;
3173
+ readonly country?: string | undefined;
3174
+ };
3175
+ readonly label?: string | undefined;
3176
+ }[] | undefined;
3177
+ readonly urls?: readonly {
3178
+ readonly value: string;
3179
+ readonly label?: string | undefined;
3180
+ }[] | undefined;
3181
+ readonly birthday?: string | undefined;
3182
+ } & {
3183
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
3184
+ }> | undefined;
3185
+ readonly identityDid?: string | undefined;
3186
+ readonly identityKey?: string | undefined;
3187
+ readonly email?: string | undefined;
3188
+ };
3189
+ readonly blocks: readonly ({
3190
+ readonly pending?: boolean | undefined;
3191
+ readonly text: string;
3192
+ readonly mimeType?: string | undefined;
3193
+ readonly disposition?: string | undefined;
3194
+ readonly _tag: "text";
3195
+ } | {
3196
+ readonly pending?: boolean | undefined;
3197
+ readonly _tag: "reasoning";
3198
+ readonly reasoningText?: string | undefined;
3199
+ readonly redactedText?: string | undefined;
3200
+ readonly signature?: string | undefined;
3201
+ } | {
3202
+ readonly name: string;
3203
+ readonly pending?: boolean | undefined;
3204
+ readonly _tag: "toolCall";
3205
+ readonly toolCallId: string;
3206
+ readonly input: string;
3207
+ readonly providerExecuted: boolean;
3208
+ } | {
3209
+ readonly name: string;
3210
+ readonly pending?: boolean | undefined;
3211
+ readonly _tag: "toolResult";
3212
+ readonly toolCallId: string;
3213
+ readonly providerExecuted: boolean;
3214
+ readonly result?: string | undefined;
3215
+ readonly error?: string | undefined;
3216
+ } | {
3217
+ readonly pending?: boolean | undefined;
3218
+ readonly mimeType?: string | undefined;
3219
+ readonly _tag: "stats";
3220
+ readonly message?: string | undefined;
3221
+ readonly model?: string | undefined;
3222
+ readonly usage?: {
3223
+ readonly inputTokens?: number | undefined;
3224
+ readonly outputTokens?: number | undefined;
3225
+ readonly totalTokens?: number | undefined;
3226
+ } | undefined;
3227
+ readonly toolCalls?: number | undefined;
3228
+ readonly errors?: number | undefined;
3229
+ readonly duration?: number | undefined;
3230
+ } | {
3231
+ readonly source?: {
3232
+ readonly type: "base64";
3233
+ readonly mediaType: string;
3234
+ readonly data: string;
3235
+ } | {
3236
+ readonly type: "http";
3237
+ readonly url: string;
3238
+ } | undefined;
3239
+ readonly id?: string | undefined;
3240
+ readonly pending?: boolean | undefined;
3241
+ readonly _tag: "image";
3242
+ } | {
3243
+ readonly name?: string | undefined;
3244
+ readonly pending?: boolean | undefined;
3245
+ readonly _tag: "file";
3246
+ readonly mediaType?: string | undefined;
3247
+ readonly url: string;
3248
+ } | {
3249
+ readonly pending?: boolean | undefined;
3250
+ readonly _tag: "reference";
3251
+ readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
3252
+ } | {
3253
+ readonly pending?: boolean | undefined;
3254
+ readonly text: string;
3255
+ readonly _tag: "transcript";
3256
+ readonly started: string;
3257
+ } | {
3258
+ readonly pending?: boolean | undefined;
3259
+ readonly _tag: "status";
3260
+ readonly statusText: string;
3261
+ } | {
3262
+ readonly pending?: boolean | undefined;
3263
+ readonly text: string;
3264
+ readonly _tag: "suggestion";
3265
+ } | {
3266
+ readonly pending?: boolean | undefined;
3267
+ readonly _tag: "select";
3268
+ readonly options: string[];
3269
+ } | {
3270
+ readonly version: unknown;
3271
+ readonly pending?: boolean | undefined;
3272
+ readonly _tag: "anchor";
3273
+ readonly objectId: string;
3274
+ } | {
3275
+ readonly pending?: boolean | undefined;
3276
+ readonly text: string;
3277
+ readonly _tag: "proposal";
3278
+ } | {
3279
+ readonly pending?: boolean | undefined;
3280
+ readonly _tag: "summary";
3281
+ readonly content: string;
3282
+ } | {
3283
+ readonly pending?: boolean | undefined;
3284
+ readonly _tag: "toolkit";
3285
+ } | {
3286
+ readonly pending?: boolean | undefined;
3287
+ readonly disposition?: string | undefined;
3288
+ readonly _tag: "json";
3289
+ readonly data: string;
3290
+ })[];
3291
+ readonly properties?: {
3292
+ readonly [x: string]: any;
3293
+ } | undefined;
3294
+ }, Schema.Struct.Fields>;
3295
+ messageIndex: Schema.SchemaClass<number, number, never>;
3296
+ }>;
3297
+ readonly output: typeof Schema.Void;
3298
+ };
3299
+ }, "executionMode"> & import("effect/Pipeable").Pipeable & {
3300
+ readonly executionMode: "sync" | "async";
3301
+ };
367
3302
  }
368
3303
  export declare const ThreadSettingsSchema: Schema.mutable<Schema.Struct<{}>>;
369
3304
  export type ThreadSettingsProps = Schema.Schema.Type<typeof ThreadSettingsSchema>;
370
3305
  export interface ThreadModel {
371
- root: ThreadType;
3306
+ root: Thread.Thread;
372
3307
  }
373
3308
  type SubjectId = string;
374
3309
  export type ViewState = {
@@ -379,7 +3314,7 @@ export type ThreadState = {
379
3314
  /** Object toolbar state. */
380
3315
  toolbar: Record<string, boolean>;
381
3316
  /** In-memory draft threads. */
382
- drafts: Record<string, AnchoredTo[]>;
3317
+ drafts: Record<string, AnchoredTo.AnchoredTo[]>;
383
3318
  current?: string | undefined;
384
3319
  };
385
3320
  export {};