@dxos/plugin-thread 0.8.4-main.72ec0f3 → 0.8.4-main.937b3ca

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