@dxos/plugin-thread 0.8.4-main.c4373fc → 0.8.4-main.c85a9c8dae

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 (453) hide show
  1. package/dist/lib/browser/CallDebugPanel-FGCTY7Q4.mjs +182 -0
  2. package/dist/lib/browser/CallDebugPanel-FGCTY7Q4.mjs.map +7 -0
  3. package/dist/lib/browser/CallSidebar-PJCMNDIF.mjs +33 -0
  4. package/dist/lib/browser/CallSidebar-PJCMNDIF.mjs.map +7 -0
  5. package/dist/lib/browser/ChannelContainer-EPYG4QAC.mjs +15 -0
  6. package/dist/lib/browser/ChatContainer-2243UD2M.mjs +14 -0
  7. package/dist/lib/browser/ThreadCompanion-2CMLJH76.mjs +204 -0
  8. package/dist/lib/browser/ThreadCompanion-2CMLJH76.mjs.map +7 -0
  9. package/dist/lib/browser/ThreadSettings-S55YVOGA.mjs +20 -0
  10. package/dist/lib/browser/ThreadSettings-S55YVOGA.mjs.map +7 -0
  11. package/dist/lib/browser/app-graph-builder-5LCAM746.mjs +191 -0
  12. package/dist/lib/browser/app-graph-builder-5LCAM746.mjs.map +7 -0
  13. package/dist/lib/browser/blueprint-definition-42M2EJ2Y.mjs +17 -0
  14. package/dist/lib/browser/blueprint-definition-42M2EJ2Y.mjs.map +7 -0
  15. package/dist/lib/browser/blueprints/index.mjs +8 -0
  16. package/dist/lib/browser/call-manager-2PRP4QVZ.mjs +27 -0
  17. package/dist/lib/browser/call-manager-2PRP4QVZ.mjs.map +7 -0
  18. package/dist/lib/browser/{chunk-ZCEU5K23.mjs → chunk-ERK254BS.mjs} +207 -287
  19. package/dist/lib/browser/chunk-ERK254BS.mjs.map +7 -0
  20. package/dist/lib/browser/chunk-G6FJBSXX.mjs +1123 -0
  21. package/dist/lib/browser/chunk-G6FJBSXX.mjs.map +7 -0
  22. package/dist/lib/browser/{chunk-HDEQRBOC.mjs → chunk-HDLDMR54.mjs} +79 -76
  23. package/dist/lib/browser/chunk-HDLDMR54.mjs.map +7 -0
  24. package/dist/lib/browser/{chunk-XYUJXHYV.mjs → chunk-ISCHODBV.mjs} +1 -1
  25. package/dist/lib/browser/{chunk-XYUJXHYV.mjs.map → chunk-ISCHODBV.mjs.map} +2 -2
  26. package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
  27. package/dist/lib/browser/chunk-LUK4UNFA.mjs +20 -0
  28. package/dist/lib/browser/chunk-LUK4UNFA.mjs.map +7 -0
  29. package/dist/lib/browser/chunk-PDHCY236.mjs +223 -0
  30. package/dist/lib/browser/chunk-PDHCY236.mjs.map +7 -0
  31. package/dist/lib/browser/chunk-PL5LIVP4.mjs +105 -0
  32. package/dist/lib/browser/chunk-PL5LIVP4.mjs.map +7 -0
  33. package/dist/lib/browser/chunk-U32R23JO.mjs +277 -0
  34. package/dist/lib/browser/chunk-U32R23JO.mjs.map +7 -0
  35. package/dist/lib/browser/chunk-UVUCB7QO.mjs +125 -0
  36. package/dist/lib/browser/chunk-UVUCB7QO.mjs.map +7 -0
  37. package/dist/lib/browser/index.mjs +138 -141
  38. package/dist/lib/browser/index.mjs.map +4 -4
  39. package/dist/lib/browser/markdown-GRRPCZHJ.mjs +210 -0
  40. package/dist/lib/browser/markdown-GRRPCZHJ.mjs.map +7 -0
  41. package/dist/lib/browser/meta.json +1 -1
  42. package/dist/lib/browser/operation-resolver-EP7FAYEB.mjs +442 -0
  43. package/dist/lib/browser/operation-resolver-EP7FAYEB.mjs.map +7 -0
  44. package/dist/lib/browser/react-root-7UFFPPRD.mjs +26 -0
  45. package/dist/lib/browser/react-root-7UFFPPRD.mjs.map +7 -0
  46. package/dist/lib/browser/react-surface-TIHBSZPD.mjs +113 -0
  47. package/dist/lib/browser/react-surface-TIHBSZPD.mjs.map +7 -0
  48. package/dist/lib/browser/repair-TBU45SBG.mjs +40 -0
  49. package/dist/lib/browser/repair-TBU45SBG.mjs.map +7 -0
  50. package/dist/lib/browser/settings-Y75FG6XR.mjs +35 -0
  51. package/dist/lib/browser/settings-Y75FG6XR.mjs.map +7 -0
  52. package/dist/lib/browser/state-OBTMMEUZ.mjs +25 -0
  53. package/dist/lib/browser/state-OBTMMEUZ.mjs.map +7 -0
  54. package/dist/lib/browser/types/index.mjs +11 -12
  55. package/dist/lib/node-esm/CallDebugPanel-CYACANSP.mjs +183 -0
  56. package/dist/lib/node-esm/CallDebugPanel-CYACANSP.mjs.map +7 -0
  57. package/dist/lib/node-esm/CallSidebar-XD7J7EQ6.mjs +34 -0
  58. package/dist/lib/node-esm/CallSidebar-XD7J7EQ6.mjs.map +7 -0
  59. package/dist/lib/node-esm/ChannelContainer-NU4LSLB4.mjs +16 -0
  60. package/dist/lib/node-esm/ChannelContainer-NU4LSLB4.mjs.map +7 -0
  61. package/dist/lib/node-esm/ChatContainer-FPNIG33R.mjs +15 -0
  62. package/dist/lib/node-esm/ChatContainer-FPNIG33R.mjs.map +7 -0
  63. package/dist/lib/node-esm/ThreadCompanion-TLWTONG6.mjs +205 -0
  64. package/dist/lib/node-esm/ThreadCompanion-TLWTONG6.mjs.map +7 -0
  65. package/dist/lib/node-esm/ThreadSettings-EUH4AGYV.mjs +21 -0
  66. package/dist/lib/node-esm/ThreadSettings-EUH4AGYV.mjs.map +7 -0
  67. package/dist/lib/node-esm/app-graph-builder-VBLHLX75.mjs +192 -0
  68. package/dist/lib/node-esm/app-graph-builder-VBLHLX75.mjs.map +7 -0
  69. package/dist/lib/node-esm/blueprint-definition-PEXTS56K.mjs +18 -0
  70. package/dist/lib/node-esm/blueprint-definition-PEXTS56K.mjs.map +7 -0
  71. package/dist/lib/node-esm/blueprints/index.mjs +9 -0
  72. package/dist/lib/node-esm/blueprints/index.mjs.map +7 -0
  73. package/dist/lib/node-esm/call-manager-BLQCEM2F.mjs +28 -0
  74. package/dist/lib/node-esm/call-manager-BLQCEM2F.mjs.map +7 -0
  75. package/dist/lib/node-esm/chunk-6K5ACCGB.mjs +107 -0
  76. package/dist/lib/node-esm/chunk-6K5ACCGB.mjs.map +7 -0
  77. package/dist/lib/node-esm/chunk-7SZBKQUU.mjs +224 -0
  78. package/dist/lib/node-esm/chunk-7SZBKQUU.mjs.map +7 -0
  79. package/dist/lib/node-esm/{chunk-OBVAURUU.mjs → chunk-GPPP2MZ3.mjs} +7 -2
  80. package/dist/lib/node-esm/chunk-GPPP2MZ3.mjs.map +7 -0
  81. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
  82. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +7 -0
  83. package/dist/lib/node-esm/chunk-IQUV7DR6.mjs +1124 -0
  84. package/dist/lib/node-esm/chunk-IQUV7DR6.mjs.map +7 -0
  85. package/dist/lib/node-esm/{chunk-TIPIOH2J.mjs → chunk-QP3KQOPQ.mjs} +207 -287
  86. package/dist/lib/node-esm/chunk-QP3KQOPQ.mjs.map +7 -0
  87. package/dist/lib/node-esm/chunk-QYAVWNVM.mjs +278 -0
  88. package/dist/lib/node-esm/chunk-QYAVWNVM.mjs.map +7 -0
  89. package/dist/lib/node-esm/chunk-V2GXQ2UB.mjs +126 -0
  90. package/dist/lib/node-esm/chunk-V2GXQ2UB.mjs.map +7 -0
  91. package/dist/lib/node-esm/{chunk-2V3WSLUZ.mjs → chunk-VBI32FGI.mjs} +1 -1
  92. package/dist/lib/node-esm/{chunk-2V3WSLUZ.mjs.map → chunk-VBI32FGI.mjs.map} +2 -2
  93. package/dist/lib/node-esm/{chunk-2MMJF7DW.mjs → chunk-YN2Y7GPW.mjs} +79 -76
  94. package/dist/lib/node-esm/chunk-YN2Y7GPW.mjs.map +7 -0
  95. package/dist/lib/node-esm/index.mjs +138 -141
  96. package/dist/lib/node-esm/index.mjs.map +4 -4
  97. package/dist/lib/node-esm/markdown-WHWUESF7.mjs +211 -0
  98. package/dist/lib/node-esm/markdown-WHWUESF7.mjs.map +7 -0
  99. package/dist/lib/node-esm/meta.json +1 -1
  100. package/dist/lib/node-esm/operation-resolver-R7QJW3TW.mjs +443 -0
  101. package/dist/lib/node-esm/operation-resolver-R7QJW3TW.mjs.map +7 -0
  102. package/dist/lib/node-esm/react-root-D7CWS5XP.mjs +27 -0
  103. package/dist/lib/node-esm/react-root-D7CWS5XP.mjs.map +7 -0
  104. package/dist/lib/node-esm/react-surface-WWZFSK5Y.mjs +114 -0
  105. package/dist/lib/node-esm/react-surface-WWZFSK5Y.mjs.map +7 -0
  106. package/dist/lib/node-esm/repair-7JEKRNR3.mjs +41 -0
  107. package/dist/lib/node-esm/repair-7JEKRNR3.mjs.map +7 -0
  108. package/dist/lib/node-esm/settings-W4JN2YKJ.mjs +36 -0
  109. package/dist/lib/node-esm/settings-W4JN2YKJ.mjs.map +7 -0
  110. package/dist/lib/node-esm/state-7UWCSIWQ.mjs +26 -0
  111. package/dist/lib/node-esm/state-7UWCSIWQ.mjs.map +7 -0
  112. package/dist/lib/node-esm/types/index.mjs +11 -12
  113. package/dist/types/src/ThreadPlugin.d.ts +2 -1
  114. package/dist/types/src/ThreadPlugin.d.ts.map +1 -1
  115. package/dist/types/src/blueprints/index.d.ts +2 -0
  116. package/dist/types/src/blueprints/index.d.ts.map +1 -0
  117. package/dist/types/src/blueprints/thread-blueprint.d.ts +4 -0
  118. package/dist/types/src/blueprints/thread-blueprint.d.ts.map +1 -0
  119. package/dist/types/src/calls/call-manager.d.ts +40 -30
  120. package/dist/types/src/calls/call-manager.d.ts.map +1 -1
  121. package/dist/types/src/calls/call-swarm-synchronizer.d.ts +2 -2
  122. package/dist/types/src/calls/call-swarm-synchronizer.d.ts.map +1 -1
  123. package/dist/types/src/calls/media-manager.d.ts +1 -1
  124. package/dist/types/src/calls/media-manager.d.ts.map +1 -1
  125. package/dist/types/src/calls/util/calls-service.d.ts +1 -1
  126. package/dist/types/src/calls/util/calls-service.d.ts.map +1 -1
  127. package/dist/types/src/calls/util/task-scheduling.d.ts +2 -2
  128. package/dist/types/src/calls/util/task-scheduling.d.ts.map +1 -1
  129. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +6 -0
  130. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +1 -0
  131. package/dist/types/src/capabilities/app-graph-builder/index.d.ts +3 -0
  132. package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +1 -0
  133. package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts +6 -0
  134. package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts.map +1 -0
  135. package/dist/types/src/capabilities/blueprint-definition/index.d.ts +3 -0
  136. package/dist/types/src/capabilities/blueprint-definition/index.d.ts.map +1 -0
  137. package/dist/types/src/capabilities/call-manager/call-manager.d.ts +6 -0
  138. package/dist/types/src/capabilities/call-manager/call-manager.d.ts.map +1 -0
  139. package/dist/types/src/capabilities/call-manager/index.d.ts +3 -0
  140. package/dist/types/src/capabilities/call-manager/index.d.ts.map +1 -0
  141. package/dist/types/src/capabilities/index.d.ts +10 -16
  142. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  143. package/dist/types/src/capabilities/markdown/index.d.ts +3 -0
  144. package/dist/types/src/capabilities/markdown/index.d.ts.map +1 -0
  145. package/dist/types/src/capabilities/markdown/markdown.d.ts +5 -0
  146. package/dist/types/src/capabilities/markdown/markdown.d.ts.map +1 -0
  147. package/dist/types/src/capabilities/operation-resolver/index.d.ts +3 -0
  148. package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +1 -0
  149. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +5 -0
  150. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +1 -0
  151. package/dist/types/src/capabilities/react-root/index.d.ts +6 -0
  152. package/dist/types/src/capabilities/react-root/index.d.ts.map +1 -0
  153. package/dist/types/src/capabilities/react-root/react-root.d.ts +9 -0
  154. package/dist/types/src/capabilities/react-root/react-root.d.ts.map +1 -0
  155. package/dist/types/src/capabilities/react-surface/index.d.ts +3 -0
  156. package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
  157. package/dist/types/src/capabilities/react-surface/react-surface.d.ts +5 -0
  158. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
  159. package/dist/types/src/capabilities/repair/index.d.ts +3 -0
  160. package/dist/types/src/capabilities/repair/index.d.ts.map +1 -0
  161. package/dist/types/src/capabilities/repair/repair.d.ts +6 -0
  162. package/dist/types/src/capabilities/repair/repair.d.ts.map +1 -0
  163. package/dist/types/src/capabilities/settings/index.d.ts +3 -0
  164. package/dist/types/src/capabilities/settings/index.d.ts.map +1 -0
  165. package/dist/types/src/capabilities/settings/settings.d.ts +6 -0
  166. package/dist/types/src/capabilities/settings/settings.d.ts.map +1 -0
  167. package/dist/types/src/capabilities/state/index.d.ts +3 -0
  168. package/dist/types/src/capabilities/state/index.d.ts.map +1 -0
  169. package/dist/types/src/capabilities/state/state.d.ts +7 -0
  170. package/dist/types/src/capabilities/state/state.d.ts.map +1 -0
  171. package/dist/types/src/components/Call/Call.d.ts.map +1 -1
  172. package/dist/types/src/components/Call/Toolbar.d.ts +2 -2
  173. package/dist/types/src/components/Call/Toolbar.d.ts.map +1 -1
  174. package/dist/types/src/components/Comments.stories.d.ts +5 -5
  175. package/dist/types/src/components/Comments.stories.d.ts.map +1 -1
  176. package/dist/types/src/components/CommentsContainer.d.ts +2 -2
  177. package/dist/types/src/components/CommentsContainer.d.ts.map +1 -1
  178. package/dist/types/src/components/CommentsThreadContainer.d.ts +8 -8
  179. package/dist/types/src/components/CommentsThreadContainer.d.ts.map +1 -1
  180. package/dist/types/src/components/Lobby/Lobby.d.ts.map +1 -1
  181. package/dist/types/src/components/Media/VideoObject.d.ts +1 -1
  182. package/dist/types/src/components/Media/VideoObject.stories.d.ts +1 -1
  183. package/dist/types/src/components/MessageContainer.d.ts +6 -5
  184. package/dist/types/src/components/MessageContainer.d.ts.map +1 -1
  185. package/dist/types/src/components/Participant/Participant.d.ts.map +1 -1
  186. package/dist/types/src/components/ResponsiveGrid/ResponsiveContainer.stories.d.ts +5 -1
  187. package/dist/types/src/components/ResponsiveGrid/ResponsiveContainer.stories.d.ts.map +1 -1
  188. package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.stories.d.ts +5 -1
  189. package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.stories.d.ts.map +1 -1
  190. package/dist/types/src/components/ResponsiveGrid/ResponsiveGridItem.d.ts.map +1 -1
  191. package/dist/types/src/components/index.d.ts +0 -6
  192. package/dist/types/src/components/index.d.ts.map +1 -1
  193. package/dist/types/src/components/testing.d.ts +3 -3
  194. package/dist/types/src/components/testing.d.ts.map +1 -1
  195. package/dist/types/src/{components → containers/CallDebugPanel}/CallDebugPanel.d.ts +1 -1
  196. package/dist/types/src/containers/CallDebugPanel/CallDebugPanel.d.ts.map +1 -0
  197. package/dist/types/src/containers/CallDebugPanel/index.d.ts +3 -0
  198. package/dist/types/src/containers/CallDebugPanel/index.d.ts.map +1 -0
  199. package/dist/types/src/{components → containers/CallSidebar}/CallSidebar.d.ts +0 -1
  200. package/dist/types/src/containers/CallSidebar/CallSidebar.d.ts.map +1 -0
  201. package/dist/types/src/containers/CallSidebar/index.d.ts +3 -0
  202. package/dist/types/src/containers/CallSidebar/index.d.ts.map +1 -0
  203. package/dist/types/src/containers/ChannelContainer/ChannelContainer.d.ts +12 -0
  204. package/dist/types/src/containers/ChannelContainer/ChannelContainer.d.ts.map +1 -0
  205. package/dist/types/src/{components → containers/ChannelContainer}/ChannelContainer.stories.d.ts +77 -7
  206. package/dist/types/src/containers/ChannelContainer/ChannelContainer.stories.d.ts.map +1 -0
  207. package/dist/types/src/containers/ChannelContainer/index.d.ts +3 -0
  208. package/dist/types/src/containers/ChannelContainer/index.d.ts.map +1 -0
  209. package/dist/types/src/containers/ChatContainer/ChatContainer.d.ts +17 -0
  210. package/dist/types/src/containers/ChatContainer/ChatContainer.d.ts.map +1 -0
  211. package/dist/types/src/{components/Chat.stories.d.ts → containers/ChatContainer/ChatContainer.stories.d.ts} +77 -6
  212. package/dist/types/src/containers/ChatContainer/ChatContainer.stories.d.ts.map +1 -0
  213. package/dist/types/src/containers/ChatContainer/index.d.ts +3 -0
  214. package/dist/types/src/containers/ChatContainer/index.d.ts.map +1 -0
  215. package/dist/types/src/containers/ThreadCompanion/ThreadCompanion.d.ts +5 -0
  216. package/dist/types/src/containers/ThreadCompanion/ThreadCompanion.d.ts.map +1 -0
  217. package/dist/types/src/containers/ThreadCompanion/index.d.ts +3 -0
  218. package/dist/types/src/containers/ThreadCompanion/index.d.ts.map +1 -0
  219. package/dist/types/src/containers/ThreadSettings/ThreadSettings.d.ts +8 -0
  220. package/dist/types/src/containers/ThreadSettings/ThreadSettings.d.ts.map +1 -0
  221. package/dist/types/src/containers/ThreadSettings/index.d.ts +3 -0
  222. package/dist/types/src/containers/ThreadSettings/index.d.ts.map +1 -0
  223. package/dist/types/src/containers/index.d.ts +8 -0
  224. package/dist/types/src/containers/index.d.ts.map +1 -0
  225. package/dist/types/src/extensions/threads.d.ts +7 -2
  226. package/dist/types/src/extensions/threads.d.ts.map +1 -1
  227. package/dist/types/src/functions/create-proposals.d.ts +13 -0
  228. package/dist/types/src/functions/create-proposals.d.ts.map +1 -0
  229. package/dist/types/src/functions/index.d.ts +14 -0
  230. package/dist/types/src/functions/index.d.ts.map +1 -0
  231. package/dist/types/src/hooks/analytics.d.ts +2 -3
  232. package/dist/types/src/hooks/analytics.d.ts.map +1 -1
  233. package/dist/types/src/hooks/index.d.ts +2 -2
  234. package/dist/types/src/hooks/index.d.ts.map +1 -1
  235. package/dist/types/src/index.d.ts +1 -1
  236. package/dist/types/src/index.d.ts.map +1 -1
  237. package/dist/types/src/meta.d.ts +2 -2
  238. package/dist/types/src/meta.d.ts.map +1 -1
  239. package/dist/types/src/testing/stories.d.ts +2 -1
  240. package/dist/types/src/testing/stories.d.ts.map +1 -1
  241. package/dist/types/src/translations.d.ts +76 -6
  242. package/dist/types/src/translations.d.ts.map +1 -1
  243. package/dist/types/src/types/Channel.d.ts +711 -0
  244. package/dist/types/src/types/Channel.d.ts.map +1 -0
  245. package/dist/types/src/types/capabilities.d.ts +23 -0
  246. package/dist/types/src/types/capabilities.d.ts.map +1 -0
  247. package/dist/types/src/types/index.d.ts +2 -1
  248. package/dist/types/src/types/index.d.ts.map +1 -1
  249. package/dist/types/src/types/types.d.ts +3294 -446
  250. package/dist/types/src/types/types.d.ts.map +1 -1
  251. package/dist/types/tsconfig.tsbuildinfo +1 -1
  252. package/package.json +87 -64
  253. package/src/ThreadPlugin.tsx +68 -107
  254. package/src/blueprints/index.ts +5 -0
  255. package/src/blueprints/thread-blueprint.ts +40 -0
  256. package/src/calls/call-manager.ts +76 -52
  257. package/src/calls/call-swarm-synchronizer.ts +2 -2
  258. package/src/calls/media-manager.ts +10 -7
  259. package/src/calls/util/calls-service.ts +1 -1
  260. package/src/calls/util/stub-media-streams.ts +2 -2
  261. package/src/calls/util/task-scheduling.ts +4 -4
  262. package/src/calls-service.stories.tsx +2 -2
  263. package/src/capabilities/app-graph-builder/app-graph-builder.ts +202 -0
  264. package/src/capabilities/app-graph-builder/index.ts +7 -0
  265. package/src/capabilities/blueprint-definition/blueprint-definition.ts +17 -0
  266. package/src/capabilities/blueprint-definition/index.ts +7 -0
  267. package/src/capabilities/call-manager/call-manager.ts +26 -0
  268. package/src/capabilities/call-manager/index.ts +7 -0
  269. package/src/capabilities/index.ts +10 -13
  270. package/src/capabilities/markdown/index.ts +7 -0
  271. package/src/capabilities/markdown/markdown.ts +82 -0
  272. package/src/capabilities/operation-resolver/index.ts +7 -0
  273. package/src/capabilities/operation-resolver/operation-resolver.ts +399 -0
  274. package/src/capabilities/react-root/index.ts +7 -0
  275. package/src/capabilities/react-root/react-root.tsx +20 -0
  276. package/src/capabilities/react-surface/index.ts +7 -0
  277. package/src/capabilities/react-surface/react-surface.tsx +98 -0
  278. package/src/capabilities/repair/index.ts +7 -0
  279. package/src/capabilities/repair/repair.ts +55 -0
  280. package/src/capabilities/settings/index.ts +7 -0
  281. package/src/capabilities/settings/settings.ts +34 -0
  282. package/src/capabilities/state/index.ts +7 -0
  283. package/src/capabilities/state/state.ts +22 -0
  284. package/src/components/Call/Call.tsx +8 -4
  285. package/src/components/Call/Toolbar.tsx +36 -29
  286. package/src/components/Comments.stories.tsx +31 -30
  287. package/src/components/CommentsContainer.tsx +14 -15
  288. package/src/components/CommentsThreadContainer.tsx +42 -39
  289. package/src/components/Lobby/Lobby.tsx +9 -7
  290. package/src/components/Media/AudioStream.tsx +2 -2
  291. package/src/components/Media/VideoObject.stories.tsx +3 -3
  292. package/src/components/Media/VideoObject.tsx +1 -1
  293. package/src/components/MessageContainer.tsx +62 -31
  294. package/src/components/Participant/Participant.tsx +32 -19
  295. package/src/components/ResponsiveGrid/ResponsiveContainer.stories.tsx +3 -3
  296. package/src/components/ResponsiveGrid/ResponsiveContainer.tsx +1 -1
  297. package/src/components/ResponsiveGrid/ResponsiveGrid.stories.tsx +3 -3
  298. package/src/components/ResponsiveGrid/ResponsiveGrid.tsx +1 -1
  299. package/src/components/ResponsiveGrid/ResponsiveGridItem.tsx +7 -4
  300. package/src/components/command-extension.ts +3 -3
  301. package/src/components/index.ts +0 -10
  302. package/src/components/testing.ts +7 -9
  303. package/src/{components → containers/CallDebugPanel}/CallDebugPanel.tsx +13 -15
  304. package/src/containers/CallDebugPanel/index.ts +7 -0
  305. package/src/containers/CallSidebar/CallSidebar.tsx +17 -0
  306. package/src/containers/CallSidebar/index.ts +7 -0
  307. package/src/{components → containers/ChannelContainer}/ChannelContainer.stories.tsx +16 -15
  308. package/src/{components → containers/ChannelContainer}/ChannelContainer.tsx +75 -59
  309. package/src/containers/ChannelContainer/index.ts +7 -0
  310. package/src/{components/Chat.stories.tsx → containers/ChatContainer/ChatContainer.stories.tsx} +23 -26
  311. package/src/{components → containers/ChatContainer}/ChatContainer.tsx +56 -52
  312. package/src/containers/ChatContainer/index.ts +7 -0
  313. package/src/containers/ThreadCompanion/ThreadCompanion.tsx +197 -0
  314. package/src/containers/ThreadCompanion/index.ts +7 -0
  315. package/src/containers/ThreadSettings/ThreadSettings.tsx +22 -0
  316. package/src/containers/ThreadSettings/index.ts +7 -0
  317. package/src/containers/index.ts +12 -0
  318. package/src/extensions/threads.ts +86 -42
  319. package/src/functions/create-proposals.ts +57 -0
  320. package/src/functions/index.ts +9 -0
  321. package/src/hooks/analytics.ts +22 -21
  322. package/src/hooks/index.ts +3 -2
  323. package/src/index.ts +1 -1
  324. package/src/meta.ts +8 -3
  325. package/src/testing/stories.ts +17 -15
  326. package/src/translations.ts +6 -3
  327. package/src/types/Channel.ts +30 -0
  328. package/src/types/capabilities.ts +34 -0
  329. package/src/types/index.ts +2 -1
  330. package/src/types/types.ts +167 -88
  331. package/dist/lib/browser/ChannelContainer-BGDGZHV4.mjs +0 -16
  332. package/dist/lib/browser/ChatContainer-75KJZ4XR.mjs +0 -15
  333. package/dist/lib/browser/app-graph-builder-ODKIAXR7.mjs +0 -171
  334. package/dist/lib/browser/app-graph-builder-ODKIAXR7.mjs.map +0 -7
  335. package/dist/lib/browser/call-manager-BCKLI4QD.mjs +0 -24
  336. package/dist/lib/browser/call-manager-BCKLI4QD.mjs.map +0 -7
  337. package/dist/lib/browser/chunk-2MUYQOQE.mjs +0 -23
  338. package/dist/lib/browser/chunk-2MUYQOQE.mjs.map +0 -7
  339. package/dist/lib/browser/chunk-B7YQ7QR2.mjs +0 -376
  340. package/dist/lib/browser/chunk-B7YQ7QR2.mjs.map +0 -7
  341. package/dist/lib/browser/chunk-CMCVHULC.mjs +0 -986
  342. package/dist/lib/browser/chunk-CMCVHULC.mjs.map +0 -7
  343. package/dist/lib/browser/chunk-HDEQRBOC.mjs.map +0 -7
  344. package/dist/lib/browser/chunk-L326LSNS.mjs +0 -18
  345. package/dist/lib/browser/chunk-L326LSNS.mjs.map +0 -7
  346. package/dist/lib/browser/chunk-T4KJ5JR4.mjs +0 -15
  347. package/dist/lib/browser/chunk-T4KJ5JR4.mjs.map +0 -7
  348. package/dist/lib/browser/chunk-VJMKS4CZ.mjs +0 -619
  349. package/dist/lib/browser/chunk-VJMKS4CZ.mjs.map +0 -7
  350. package/dist/lib/browser/chunk-VTYX3SIM.mjs +0 -147
  351. package/dist/lib/browser/chunk-VTYX3SIM.mjs.map +0 -7
  352. package/dist/lib/browser/chunk-ZCEU5K23.mjs.map +0 -7
  353. package/dist/lib/browser/intent-resolver-VOQD3TQ2.mjs +0 -427
  354. package/dist/lib/browser/intent-resolver-VOQD3TQ2.mjs.map +0 -7
  355. package/dist/lib/browser/markdown-R6MGRIA6.mjs +0 -169
  356. package/dist/lib/browser/markdown-R6MGRIA6.mjs.map +0 -7
  357. package/dist/lib/browser/react-root-UMSBTN6H.mjs +0 -28
  358. package/dist/lib/browser/react-root-UMSBTN6H.mjs.map +0 -7
  359. package/dist/lib/browser/react-surface-SXMQEWKE.mjs +0 -109
  360. package/dist/lib/browser/react-surface-SXMQEWKE.mjs.map +0 -7
  361. package/dist/lib/browser/settings-TCNF54PN.mjs +0 -22
  362. package/dist/lib/browser/settings-TCNF54PN.mjs.map +0 -7
  363. package/dist/lib/browser/state-ZQ4IPOJT.mjs +0 -34
  364. package/dist/lib/browser/state-ZQ4IPOJT.mjs.map +0 -7
  365. package/dist/lib/browser/toolkit-JF4B4QIO.mjs +0 -84
  366. package/dist/lib/browser/toolkit-JF4B4QIO.mjs.map +0 -7
  367. package/dist/lib/node-esm/ChannelContainer-OXC6BTU7.mjs +0 -17
  368. package/dist/lib/node-esm/ChatContainer-SH6LTFQL.mjs +0 -16
  369. package/dist/lib/node-esm/app-graph-builder-DMPT3MY6.mjs +0 -172
  370. package/dist/lib/node-esm/app-graph-builder-DMPT3MY6.mjs.map +0 -7
  371. package/dist/lib/node-esm/call-manager-Q7RY2YP4.mjs +0 -25
  372. package/dist/lib/node-esm/call-manager-Q7RY2YP4.mjs.map +0 -7
  373. package/dist/lib/node-esm/chunk-2KZ4ODHU.mjs +0 -987
  374. package/dist/lib/node-esm/chunk-2KZ4ODHU.mjs.map +0 -7
  375. package/dist/lib/node-esm/chunk-2MMJF7DW.mjs.map +0 -7
  376. package/dist/lib/node-esm/chunk-BAMZXJS4.mjs +0 -148
  377. package/dist/lib/node-esm/chunk-BAMZXJS4.mjs.map +0 -7
  378. package/dist/lib/node-esm/chunk-BTGKI5IK.mjs +0 -377
  379. package/dist/lib/node-esm/chunk-BTGKI5IK.mjs.map +0 -7
  380. package/dist/lib/node-esm/chunk-GZ4WL2IS.mjs +0 -25
  381. package/dist/lib/node-esm/chunk-GZ4WL2IS.mjs.map +0 -7
  382. package/dist/lib/node-esm/chunk-LCHTNRK7.mjs +0 -19
  383. package/dist/lib/node-esm/chunk-LCHTNRK7.mjs.map +0 -7
  384. package/dist/lib/node-esm/chunk-NHSIAEDW.mjs +0 -620
  385. package/dist/lib/node-esm/chunk-NHSIAEDW.mjs.map +0 -7
  386. package/dist/lib/node-esm/chunk-OBVAURUU.mjs.map +0 -7
  387. package/dist/lib/node-esm/chunk-TIPIOH2J.mjs.map +0 -7
  388. package/dist/lib/node-esm/intent-resolver-AKVH66PH.mjs +0 -428
  389. package/dist/lib/node-esm/intent-resolver-AKVH66PH.mjs.map +0 -7
  390. package/dist/lib/node-esm/markdown-MYGTDXT6.mjs +0 -170
  391. package/dist/lib/node-esm/markdown-MYGTDXT6.mjs.map +0 -7
  392. package/dist/lib/node-esm/react-root-W6AVTL5M.mjs +0 -29
  393. package/dist/lib/node-esm/react-root-W6AVTL5M.mjs.map +0 -7
  394. package/dist/lib/node-esm/react-surface-NLSZJGMO.mjs +0 -110
  395. package/dist/lib/node-esm/react-surface-NLSZJGMO.mjs.map +0 -7
  396. package/dist/lib/node-esm/settings-ZQHGVFBY.mjs +0 -23
  397. package/dist/lib/node-esm/settings-ZQHGVFBY.mjs.map +0 -7
  398. package/dist/lib/node-esm/state-FSLLJ5TZ.mjs +0 -35
  399. package/dist/lib/node-esm/state-FSLLJ5TZ.mjs.map +0 -7
  400. package/dist/lib/node-esm/toolkit-DHPKJITO.mjs +0 -85
  401. package/dist/lib/node-esm/toolkit-DHPKJITO.mjs.map +0 -7
  402. package/dist/types/src/capabilities/app-graph-builder.d.ts +0 -4
  403. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +0 -1
  404. package/dist/types/src/capabilities/call-manager.d.ts +0 -5
  405. package/dist/types/src/capabilities/call-manager.d.ts.map +0 -1
  406. package/dist/types/src/capabilities/capabilities.d.ts +0 -27
  407. package/dist/types/src/capabilities/capabilities.d.ts.map +0 -1
  408. package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
  409. package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
  410. package/dist/types/src/capabilities/markdown.d.ts +0 -4
  411. package/dist/types/src/capabilities/markdown.d.ts.map +0 -1
  412. package/dist/types/src/capabilities/react-root.d.ts +0 -7
  413. package/dist/types/src/capabilities/react-root.d.ts.map +0 -1
  414. package/dist/types/src/capabilities/react-surface.d.ts +0 -4
  415. package/dist/types/src/capabilities/react-surface.d.ts.map +0 -1
  416. package/dist/types/src/capabilities/settings.d.ts +0 -4
  417. package/dist/types/src/capabilities/settings.d.ts.map +0 -1
  418. package/dist/types/src/capabilities/state.d.ts +0 -7
  419. package/dist/types/src/capabilities/state.d.ts.map +0 -1
  420. package/dist/types/src/capabilities/toolkit.d.ts +0 -6
  421. package/dist/types/src/capabilities/toolkit.d.ts.map +0 -1
  422. package/dist/types/src/components/CallDebugPanel.d.ts.map +0 -1
  423. package/dist/types/src/components/CallSidebar.d.ts.map +0 -1
  424. package/dist/types/src/components/ChannelContainer.d.ts +0 -14
  425. package/dist/types/src/components/ChannelContainer.d.ts.map +0 -1
  426. package/dist/types/src/components/ChannelContainer.stories.d.ts.map +0 -1
  427. package/dist/types/src/components/Chat.stories.d.ts.map +0 -1
  428. package/dist/types/src/components/ChatContainer.d.ts +0 -17
  429. package/dist/types/src/components/ChatContainer.d.ts.map +0 -1
  430. package/dist/types/src/components/ThreadComplementary.d.ts +0 -5
  431. package/dist/types/src/components/ThreadComplementary.d.ts.map +0 -1
  432. package/dist/types/src/components/ThreadSettings.d.ts +0 -6
  433. package/dist/types/src/components/ThreadSettings.d.ts.map +0 -1
  434. package/dist/types/src/types/schema.d.ts +0 -179
  435. package/dist/types/src/types/schema.d.ts.map +0 -1
  436. package/src/capabilities/app-graph-builder.ts +0 -184
  437. package/src/capabilities/call-manager.ts +0 -20
  438. package/src/capabilities/capabilities.ts +0 -33
  439. package/src/capabilities/intent-resolver.ts +0 -348
  440. package/src/capabilities/markdown.ts +0 -69
  441. package/src/capabilities/react-root.tsx +0 -17
  442. package/src/capabilities/react-surface.tsx +0 -89
  443. package/src/capabilities/settings.ts +0 -19
  444. package/src/capabilities/state.ts +0 -26
  445. package/src/capabilities/toolkit.ts +0 -82
  446. package/src/components/CallSidebar.tsx +0 -18
  447. package/src/components/ThreadComplementary.tsx +0 -181
  448. package/src/components/ThreadSettings.tsx +0 -16
  449. package/src/types/schema.ts +0 -33
  450. /package/dist/lib/browser/{ChannelContainer-BGDGZHV4.mjs.map → ChannelContainer-EPYG4QAC.mjs.map} +0 -0
  451. /package/dist/lib/browser/{ChatContainer-75KJZ4XR.mjs.map → ChatContainer-2243UD2M.mjs.map} +0 -0
  452. /package/dist/lib/{node-esm/ChannelContainer-OXC6BTU7.mjs.map → browser/blueprints/index.mjs.map} +0 -0
  453. /package/dist/lib/{node-esm/ChatContainer-SH6LTFQL.mjs.map → browser/chunk-J5LGTIGS.mjs.map} +0 -0
@@ -1,461 +1,3309 @@
1
1
  import * as Schema from 'effect/Schema';
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 onCreateSpace_base: Schema.TaggedClass<onCreateSpace, `${string}/action/on-space-created`, {
7
- readonly _tag: Schema.tag<`${string}/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: Schema.optional<typeof Schema.String>;
13
- objects: Schema.mutable<Schema.Array$<Type.ref<Schema.Schema<Type.Expando, {
14
- [x: string]: any;
15
- id: string;
16
- }, never>>>>;
17
- }>>;
18
- }>;
19
- output: typeof Schema.Void;
20
- }>;
21
- export class onCreateSpace extends onCreateSpace_base {
22
- }
23
- const CreateChannel_base: Schema.TaggedClass<CreateChannel, `${string}/action/create-channel`, {
24
- readonly _tag: Schema.tag<`${string}/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;
34
- };
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, `${string}/action/create-channel-thread`, {
49
- readonly _tag: Schema.tag<`${string}/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, `${string}/action/create`, {
71
- readonly _tag: Schema.tag<`${string}/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, `${string}/action/delete`, {
83
- readonly _tag: Schema.tag<`${string}/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, `${string}/action/select`, {
109
- readonly _tag: Schema.tag<`${string}/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, `${string}/action/toggle-resolved`, {
119
- readonly _tag: Schema.tag<`${string}/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 AddProposal_base: Schema.TaggedClass<AddProposal, `${string}/action/add-proposal`, {
134
- readonly _tag: Schema.tag<`${string}/action/add-proposal`>;
135
- } & {
136
- input: Schema.Struct<{
137
- text: typeof Schema.String;
138
- anchor: typeof Schema.String;
139
- sender: Schema.Struct<{
140
- contact: Schema.optional<Type.ref<Type.obj<Schema.Struct<{
141
- fullName: Schema.optional<Schema.SchemaClass<string, string, never>>;
142
- preferredName: Schema.optional<Schema.SchemaClass<string, string, never>>;
143
- nickname: Schema.optional<Schema.SchemaClass<string, string, never>>;
144
- image: Schema.optional<Schema.SchemaClass<string, string, never>>;
145
- organization: Schema.optional<Schema.Schema<import("@dxos/echo/internal").Ref<Type.OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
146
- id: string;
147
- description?: string | undefined;
148
- name?: string | undefined;
149
- status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
150
- image?: string | undefined;
151
- website?: string | undefined;
152
- }>, import("@dxos/echo-protocol").EncodedReference, never>>;
153
- jobTitle: Schema.optional<Schema.SchemaClass<string, string, never>>;
154
- department: Schema.optional<Schema.SchemaClass<string, string, never>>;
155
- notes: Schema.optional<Schema.SchemaClass<string, string, never>>;
156
- emails: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
157
- label: Schema.optional<typeof Schema.String>;
158
- value: Schema.refine<string, typeof Schema.String>;
159
- }>>>>;
160
- identities: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
161
- label: Schema.optional<typeof Schema.String>;
162
- value: typeof Schema.String;
163
- }>>>>;
164
- phoneNumbers: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
165
- label: Schema.optional<typeof Schema.String>;
166
- value: typeof Schema.String;
167
- }>>>>;
168
- addresses: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
169
- label: Schema.optional<typeof Schema.String>;
170
- value: Schema.Struct<{
171
- street: Schema.optional<Schema.SchemaClass<string, string, never>>;
172
- extended: Schema.optional<Schema.SchemaClass<string, string, never>>;
173
- locality: Schema.optional<Schema.SchemaClass<string, string, never>>;
174
- region: Schema.optional<Schema.SchemaClass<string, string, never>>;
175
- postalCode: Schema.optional<Schema.SchemaClass<string, string, never>>;
176
- postOfficeBoxNumber: Schema.optional<Schema.SchemaClass<string, string, never>>;
177
- country: Schema.optional<Schema.SchemaClass<string, string, never>>;
178
- }>;
179
- }>>>>;
180
- urls: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
181
- label: Schema.optional<typeof Schema.String>;
182
- value: Schema.refine<string, typeof Schema.String>;
183
- }>>>>;
184
- birthday: Schema.optional<Schema.SchemaClass<string, string, never>>;
185
- fields: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
186
- category: Schema.optional<typeof Schema.String>;
187
- label: typeof Schema.String;
188
- value: typeof Schema.String;
189
- }>>>>;
190
- }>>>>;
191
- identityDid: Schema.optional<typeof Schema.String>;
192
- identityKey: Schema.optional<typeof Schema.String>;
193
- email: Schema.optional<typeof Schema.String>;
194
- name: Schema.optional<typeof Schema.String>;
195
- role: Schema.optional<Schema.Literal<["user", "assistant", "tool"]>>;
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>;
196
24
  }>;
197
- subject: Schema.Schema<any, any, never>;
198
- }>;
199
- output: typeof Schema.Void;
200
- }>;
201
- export class AddProposal extends AddProposal_base {
202
- }
203
- const AddMessage_base: Schema.TaggedClass<AddMessage, `${string}/action/add-message`, {
204
- readonly _tag: Schema.tag<`${string}/action/add-message`>;
205
- } & {
206
- input: Schema.Struct<{
207
- subject: Schema.Schema<any, any, never>;
208
- anchor: Type.relation<Schema.Struct<{
209
- id: import("@dxos/keys").ObjectIdClass;
210
- anchor: Schema.optional<typeof Schema.String>;
211
- }>, Schema.Schema<Type.Expando, {
212
- [x: string]: any;
213
- id: string;
214
- }, never>, Schema.Schema<Type.Expando, {
215
- [x: string]: any;
216
- id: string;
217
- }, never>>;
218
- sender: Schema.Struct<{
219
- contact: Schema.optional<Type.ref<Type.obj<Schema.Struct<{
220
- fullName: Schema.optional<Schema.SchemaClass<string, string, never>>;
221
- preferredName: Schema.optional<Schema.SchemaClass<string, string, never>>;
222
- nickname: Schema.optional<Schema.SchemaClass<string, string, never>>;
223
- image: Schema.optional<Schema.SchemaClass<string, string, never>>;
224
- organization: Schema.optional<Schema.Schema<import("@dxos/echo/internal").Ref<Type.OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
225
- id: string;
226
- description?: string | undefined;
227
- name?: string | undefined;
228
- status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
229
- image?: string | undefined;
230
- website?: string | undefined;
231
- }>, import("@dxos/echo-protocol").EncodedReference, never>>;
232
- jobTitle: Schema.optional<Schema.SchemaClass<string, string, never>>;
233
- department: Schema.optional<Schema.SchemaClass<string, string, never>>;
234
- notes: Schema.optional<Schema.SchemaClass<string, string, never>>;
235
- emails: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
236
- label: Schema.optional<typeof Schema.String>;
237
- value: Schema.refine<string, typeof Schema.String>;
238
- }>>>>;
239
- identities: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
240
- label: Schema.optional<typeof Schema.String>;
241
- value: typeof Schema.String;
242
- }>>>>;
243
- phoneNumbers: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
244
- label: Schema.optional<typeof Schema.String>;
245
- value: typeof Schema.String;
246
- }>>>>;
247
- addresses: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
248
- label: Schema.optional<typeof Schema.String>;
249
- value: Schema.Struct<{
250
- street: Schema.optional<Schema.SchemaClass<string, string, never>>;
251
- extended: Schema.optional<Schema.SchemaClass<string, string, never>>;
252
- locality: Schema.optional<Schema.SchemaClass<string, string, never>>;
253
- region: Schema.optional<Schema.SchemaClass<string, string, never>>;
254
- postalCode: Schema.optional<Schema.SchemaClass<string, string, never>>;
255
- postOfficeBoxNumber: Schema.optional<Schema.SchemaClass<string, string, never>>;
256
- country: Schema.optional<Schema.SchemaClass<string, string, never>>;
257
- }>;
258
- }>>>>;
259
- urls: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
260
- label: Schema.optional<typeof Schema.String>;
261
- value: Schema.refine<string, typeof Schema.String>;
262
- }>>>>;
263
- birthday: Schema.optional<Schema.SchemaClass<string, string, never>>;
264
- fields: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
265
- category: Schema.optional<typeof Schema.String>;
266
- label: typeof Schema.String;
267
- value: typeof Schema.String;
268
- }>>>>;
269
- }>>>>;
270
- identityDid: Schema.optional<typeof Schema.String>;
271
- identityKey: Schema.optional<typeof Schema.String>;
272
- email: Schema.optional<typeof Schema.String>;
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
+ };
273
46
  name: Schema.optional<typeof Schema.String>;
274
- role: Schema.optional<Schema.Literal<["user", "assistant", "tool"]>>;
275
47
  }>;
276
- text: typeof Schema.String;
277
- }>;
278
- output: typeof Schema.Void;
279
- }>;
280
- export class AddMessage extends AddMessage_base {
281
- }
282
- const DeleteMessage_base: Schema.TaggedClass<DeleteMessage, `${string}/action/delete-message`, {
283
- readonly _tag: Schema.tag<`${string}/action/delete-message`>;
284
- } & {
285
- input: Schema.Struct<{
286
- anchor: Type.relation<Schema.Struct<{
287
- id: import("@dxos/keys").ObjectIdClass;
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>;
288
959
  anchor: Schema.optional<typeof Schema.String>;
289
- }>, Schema.Schema<Type.Expando, {
290
- [x: string]: any;
291
- id: string;
292
- }, never>, Schema.Schema<Type.Expando, {
293
- [x: string]: any;
294
- id: string;
295
- }, never>>;
296
- subject: Schema.Schema<any, any, never>;
297
- messageId: typeof Schema.String;
298
- message: Schema.optional<Type.obj<Schema.Struct<{
299
- id: import("@dxos/keys").ObjectIdClass;
300
- parentMessage: Schema.optional<import("@dxos/keys").ObjectIdClass>;
301
- created: Schema.SchemaClass<string, string, never>;
302
- sender: Schema.mutable<Schema.Struct<{
303
- contact: Schema.optional<Type.ref<Type.obj<Schema.Struct<{
304
- fullName: Schema.optional<Schema.SchemaClass<string, string, never>>;
305
- preferredName: Schema.optional<Schema.SchemaClass<string, string, never>>;
306
- nickname: Schema.optional<Schema.SchemaClass<string, string, never>>;
307
- image: Schema.optional<Schema.SchemaClass<string, string, never>>;
308
- organization: Schema.optional<Schema.Schema<import("@dxos/echo/internal").Ref<Type.OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
309
- id: string;
310
- description?: string | undefined;
311
- name?: string | undefined;
312
- status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
313
- image?: string | undefined;
314
- website?: string | undefined;
315
- }>, import("@dxos/echo-protocol").EncodedReference, never>>;
316
- jobTitle: Schema.optional<Schema.SchemaClass<string, string, never>>;
317
- department: Schema.optional<Schema.SchemaClass<string, string, never>>;
318
- notes: Schema.optional<Schema.SchemaClass<string, string, never>>;
319
- emails: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
320
- label: Schema.optional<typeof Schema.String>;
321
- value: Schema.refine<string, typeof Schema.String>;
322
- }>>>>;
323
- identities: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
324
- label: Schema.optional<typeof Schema.String>;
325
- value: typeof Schema.String;
326
- }>>>>;
327
- phoneNumbers: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
328
- label: Schema.optional<typeof Schema.String>;
329
- value: typeof Schema.String;
330
- }>>>>;
331
- addresses: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
332
- label: Schema.optional<typeof Schema.String>;
333
- value: Schema.Struct<{
334
- street: Schema.optional<Schema.SchemaClass<string, string, never>>;
335
- extended: Schema.optional<Schema.SchemaClass<string, string, never>>;
336
- locality: Schema.optional<Schema.SchemaClass<string, string, never>>;
337
- region: Schema.optional<Schema.SchemaClass<string, string, never>>;
338
- postalCode: Schema.optional<Schema.SchemaClass<string, string, never>>;
339
- postOfficeBoxNumber: Schema.optional<Schema.SchemaClass<string, string, never>>;
340
- country: Schema.optional<Schema.SchemaClass<string, string, never>>;
341
- }>;
342
- }>>>>;
343
- urls: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
344
- label: Schema.optional<typeof Schema.String>;
345
- value: Schema.refine<string, typeof Schema.String>;
346
- }>>>>;
347
- birthday: Schema.optional<Schema.SchemaClass<string, string, never>>;
348
- fields: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
349
- category: Schema.optional<typeof Schema.String>;
350
- label: typeof Schema.String;
351
- value: typeof Schema.String;
352
- }>>>>;
353
- }>>>>;
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?: {
1703
+ id: string;
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
+ }>>;
354
2162
  identityDid: Schema.optional<typeof Schema.String>;
355
2163
  identityKey: Schema.optional<typeof Schema.String>;
356
2164
  email: Schema.optional<typeof Schema.String>;
357
2165
  name: Schema.optional<typeof Schema.String>;
358
- role: Schema.optional<Schema.Literal<["user", "assistant", "tool"]>>;
359
- }>>;
360
- blocks: Schema.mutable<Schema.Array$<Schema.Union<[Schema.mutable<Schema.TaggedStruct<"anchor", {
361
- pending: Schema.optional<typeof Schema.Boolean>;
362
- objectId: import("@dxos/keys").ObjectIdClass;
363
- version: typeof Schema.Unknown;
364
- }>>, Schema.mutable<Schema.TaggedStruct<"file", {
365
- pending: Schema.optional<typeof Schema.Boolean>;
366
- url: typeof Schema.String;
367
- name: Schema.optional<typeof Schema.String>;
368
- mediaType: Schema.optional<typeof Schema.String>;
369
- }>>, Schema.mutable<Schema.TaggedStruct<"image", {
370
- pending: Schema.optional<typeof Schema.Boolean>;
371
- id: Schema.optional<typeof Schema.String>;
372
- source: Schema.optional<Schema.Union<[Schema.mutable<Schema.Struct<{
373
- type: Schema.Literal<["base64"]>;
374
- mediaType: typeof Schema.String;
375
- data: typeof Schema.String;
376
- }>>, Schema.mutable<Schema.Struct<{
377
- type: Schema.Literal<["http"]>;
378
- url: typeof Schema.String;
379
- }>>]>>;
380
- }>>, Schema.mutable<Schema.TaggedStruct<"json", {
381
- pending: Schema.optional<typeof Schema.Boolean>;
382
- disposition: Schema.optional<typeof Schema.String>;
383
- data: typeof Schema.String;
384
- }>>, Schema.mutable<Schema.TaggedStruct<"proposal", {
385
- pending: Schema.optional<typeof Schema.Boolean>;
386
- text: typeof Schema.String;
387
- }>>, Schema.mutable<Schema.TaggedStruct<"reasoning", {
388
- pending: Schema.optional<typeof Schema.Boolean>;
389
- reasoningText: Schema.optional<typeof Schema.String>;
390
- redactedText: Schema.optional<typeof Schema.String>;
391
- signature: Schema.optional<typeof Schema.String>;
392
- }>>, Schema.mutable<Schema.TaggedStruct<"reference", {
393
- pending: Schema.optional<typeof Schema.Boolean>;
394
- reference: Type.ref<Schema.Schema<Type.Expando, {
395
- [x: string]: any;
396
- id: string;
397
- }, never>>;
398
- }>>, Schema.mutable<Schema.TaggedStruct<"select", {
399
- pending: Schema.optional<typeof Schema.Boolean>;
400
- options: Schema.Array$<typeof Schema.String>;
401
- }>>, Schema.mutable<Schema.TaggedStruct<"status", {
402
- pending: Schema.optional<typeof Schema.Boolean>;
403
- statusText: typeof Schema.String;
404
- }>>, Schema.mutable<Schema.TaggedStruct<"suggestion", {
405
- pending: Schema.optional<typeof Schema.Boolean>;
406
- text: typeof Schema.String;
407
- }>>, Schema.mutable<Schema.TaggedStruct<"summary", {
408
- pending: Schema.optional<typeof Schema.Boolean>;
409
- mimeType: Schema.optional<typeof Schema.String>;
410
- message: Schema.optional<typeof Schema.String>;
411
- model: Schema.optional<typeof Schema.String>;
412
- usage: Schema.optional<Schema.Struct<{
413
- inputTokens: Schema.optional<typeof Schema.Number>;
414
- outputTokens: Schema.optional<typeof Schema.Number>;
415
- totalTokens: Schema.optional<typeof Schema.Number>;
416
- }>>;
417
- toolCalls: Schema.optional<typeof Schema.Number>;
418
- errors: Schema.optional<typeof Schema.Number>;
419
- duration: Schema.optional<typeof Schema.Number>;
420
- }>>, Schema.mutable<Schema.TaggedStruct<"text", {
421
- pending: Schema.optional<typeof Schema.Boolean>;
422
- mimeType: Schema.optional<typeof Schema.String>;
423
- text: typeof Schema.String;
424
- disposition: Schema.optional<typeof Schema.String>;
425
- }>>, Schema.mutable<Schema.TaggedStruct<"toolkit", {
426
- pending: Schema.optional<typeof Schema.Boolean>;
427
- }>>, Schema.mutable<Schema.TaggedStruct<"toolCall", {
428
- pending: Schema.optional<typeof Schema.Boolean>;
429
- toolCallId: typeof Schema.String;
430
- name: typeof Schema.String;
431
- input: typeof Schema.String;
432
- providerExecuted: typeof Schema.Boolean;
433
- }>>, Schema.mutable<Schema.TaggedStruct<"toolResult", {
434
- pending: Schema.optional<typeof Schema.Boolean>;
435
- toolCallId: typeof Schema.String;
436
- name: typeof Schema.String;
437
- result: Schema.optional<typeof Schema.String>;
438
- error: Schema.optional<typeof Schema.String>;
439
- providerExecuted: typeof Schema.Boolean;
440
- }>>, Schema.mutable<Schema.TaggedStruct<"transcript", {
441
- pending: Schema.optional<typeof Schema.Boolean>;
442
- started: typeof Schema.String;
443
- text: typeof Schema.String;
444
- }>>]>>>;
445
- properties: Schema.optional<Schema.mutable<Schema.Record$<typeof Schema.String, typeof Schema.Any>>>;
446
- }>>>;
447
- messageIndex: Schema.optional<typeof Schema.Number>;
448
- }>;
449
- output: typeof Schema.Void;
450
- }>;
451
- export class DeleteMessage extends DeleteMessage_base {
452
- }
453
- export {};
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;
2244
+ };
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;
2546
+ }>;
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
+ };
454
3302
  }
455
3303
  export declare const ThreadSettingsSchema: Schema.mutable<Schema.Struct<{}>>;
456
3304
  export type ThreadSettingsProps = Schema.Schema.Type<typeof ThreadSettingsSchema>;
457
3305
  export interface ThreadModel {
458
- root: ThreadType;
3306
+ root: Thread.Thread;
459
3307
  }
460
3308
  type SubjectId = string;
461
3309
  export type ViewState = {
@@ -466,7 +3314,7 @@ export type ThreadState = {
466
3314
  /** Object toolbar state. */
467
3315
  toolbar: Record<string, boolean>;
468
3316
  /** In-memory draft threads. */
469
- drafts: Record<string, AnchoredTo[]>;
3317
+ drafts: Record<string, AnchoredTo.AnchoredTo[]>;
470
3318
  current?: string | undefined;
471
3319
  };
472
3320
  export {};