@dxos/plugin-thread 0.8.4-main.406dc2a → 0.8.4-main.52d7546f51

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 (383) hide show
  1. package/dist/lib/browser/app-graph-builder-XFGLMIGK.mjs +189 -0
  2. package/dist/lib/browser/app-graph-builder-XFGLMIGK.mjs.map +7 -0
  3. package/dist/lib/browser/blueprint-definition-ACPH22F7.mjs +18 -0
  4. package/dist/lib/browser/blueprint-definition-ACPH22F7.mjs.map +7 -0
  5. package/dist/lib/browser/blueprints/index.mjs +8 -0
  6. package/dist/lib/browser/call-manager-GDGIKJKN.mjs +26 -0
  7. package/dist/lib/browser/call-manager-GDGIKJKN.mjs.map +7 -0
  8. package/dist/lib/browser/chunk-2FIHSX35.mjs +293 -0
  9. package/dist/lib/browser/chunk-2FIHSX35.mjs.map +7 -0
  10. package/dist/lib/browser/chunk-4EUEMHNI.mjs +1817 -0
  11. package/dist/lib/browser/chunk-4EUEMHNI.mjs.map +7 -0
  12. package/dist/lib/browser/{chunk-ZCEU5K23.mjs → chunk-ERK254BS.mjs} +207 -287
  13. package/dist/lib/browser/chunk-ERK254BS.mjs.map +7 -0
  14. package/dist/lib/browser/{chunk-XYUJXHYV.mjs → chunk-ISCHODBV.mjs} +1 -1
  15. package/dist/lib/browser/{chunk-XYUJXHYV.mjs.map → chunk-ISCHODBV.mjs.map} +2 -2
  16. package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
  17. package/dist/lib/browser/{chunk-HDEQRBOC.mjs → chunk-JBB73URQ.mjs} +79 -76
  18. package/dist/lib/browser/chunk-JBB73URQ.mjs.map +7 -0
  19. package/dist/lib/browser/chunk-RH7XTXSR.mjs +106 -0
  20. package/dist/lib/browser/chunk-RH7XTXSR.mjs.map +7 -0
  21. package/dist/lib/browser/index.mjs +147 -137
  22. package/dist/lib/browser/index.mjs.map +4 -4
  23. package/dist/lib/browser/markdown-YJCSOWXX.mjs +210 -0
  24. package/dist/lib/browser/markdown-YJCSOWXX.mjs.map +7 -0
  25. package/dist/lib/browser/meta.json +1 -1
  26. package/dist/lib/browser/operation-resolver-PROCP5L4.mjs +441 -0
  27. package/dist/lib/browser/operation-resolver-PROCP5L4.mjs.map +7 -0
  28. package/dist/lib/browser/react-root-FHK2SVPU.mjs +25 -0
  29. package/dist/lib/browser/react-root-FHK2SVPU.mjs.map +7 -0
  30. package/dist/lib/browser/react-surface-7MQA6VSH.mjs +111 -0
  31. package/dist/lib/browser/react-surface-7MQA6VSH.mjs.map +7 -0
  32. package/dist/lib/browser/repair-6OZ75AUU.mjs +38 -0
  33. package/dist/lib/browser/repair-6OZ75AUU.mjs.map +7 -0
  34. package/dist/lib/browser/settings-TWKOTGSU.mjs +33 -0
  35. package/dist/lib/browser/settings-TWKOTGSU.mjs.map +7 -0
  36. package/dist/lib/browser/state-SJR2GL5G.mjs +24 -0
  37. package/dist/lib/browser/state-SJR2GL5G.mjs.map +7 -0
  38. package/dist/lib/browser/types/index.mjs +10 -12
  39. package/dist/lib/node-esm/app-graph-builder-IN6VLJBO.mjs +190 -0
  40. package/dist/lib/node-esm/app-graph-builder-IN6VLJBO.mjs.map +7 -0
  41. package/dist/lib/node-esm/blueprint-definition-SXVKFUNV.mjs +19 -0
  42. package/dist/lib/node-esm/blueprint-definition-SXVKFUNV.mjs.map +7 -0
  43. package/dist/lib/node-esm/blueprints/index.mjs +9 -0
  44. package/dist/lib/node-esm/call-manager-36UAAQCJ.mjs +27 -0
  45. package/dist/lib/node-esm/call-manager-36UAAQCJ.mjs.map +7 -0
  46. package/dist/lib/node-esm/{chunk-2MMJF7DW.mjs → chunk-G7PZNN3Z.mjs} +79 -76
  47. package/dist/lib/node-esm/chunk-G7PZNN3Z.mjs.map +7 -0
  48. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
  49. package/dist/lib/node-esm/chunk-OKVE6CLS.mjs +107 -0
  50. package/dist/lib/node-esm/chunk-OKVE6CLS.mjs.map +7 -0
  51. package/dist/lib/node-esm/{chunk-TIPIOH2J.mjs → chunk-QP3KQOPQ.mjs} +207 -287
  52. package/dist/lib/node-esm/chunk-QP3KQOPQ.mjs.map +7 -0
  53. package/dist/lib/node-esm/chunk-RBRWHRHE.mjs +1818 -0
  54. package/dist/lib/node-esm/chunk-RBRWHRHE.mjs.map +7 -0
  55. package/dist/lib/node-esm/{chunk-2V3WSLUZ.mjs → chunk-VBI32FGI.mjs} +1 -1
  56. package/dist/lib/node-esm/{chunk-2V3WSLUZ.mjs.map → chunk-VBI32FGI.mjs.map} +2 -2
  57. package/dist/lib/node-esm/chunk-WMWUXWAS.mjs +294 -0
  58. package/dist/lib/node-esm/chunk-WMWUXWAS.mjs.map +7 -0
  59. package/dist/lib/node-esm/index.mjs +147 -137
  60. package/dist/lib/node-esm/index.mjs.map +4 -4
  61. package/dist/lib/node-esm/markdown-6LRP3PAP.mjs +211 -0
  62. package/dist/lib/node-esm/markdown-6LRP3PAP.mjs.map +7 -0
  63. package/dist/lib/node-esm/meta.json +1 -1
  64. package/dist/lib/node-esm/operation-resolver-LPEPV5BF.mjs +442 -0
  65. package/dist/lib/node-esm/operation-resolver-LPEPV5BF.mjs.map +7 -0
  66. package/dist/lib/node-esm/react-root-P5P4VGQJ.mjs +26 -0
  67. package/dist/lib/node-esm/react-root-P5P4VGQJ.mjs.map +7 -0
  68. package/dist/lib/node-esm/react-surface-M7VI5XG2.mjs +112 -0
  69. package/dist/lib/node-esm/react-surface-M7VI5XG2.mjs.map +7 -0
  70. package/dist/lib/node-esm/repair-6777EPOM.mjs +39 -0
  71. package/dist/lib/node-esm/repair-6777EPOM.mjs.map +7 -0
  72. package/dist/lib/node-esm/settings-5O254B3Z.mjs +34 -0
  73. package/dist/lib/node-esm/settings-5O254B3Z.mjs.map +7 -0
  74. package/dist/lib/node-esm/state-5R3TZJQE.mjs +25 -0
  75. package/dist/lib/node-esm/state-5R3TZJQE.mjs.map +7 -0
  76. package/dist/lib/node-esm/types/index.mjs +10 -12
  77. package/dist/types/src/ThreadPlugin.d.ts +2 -1
  78. package/dist/types/src/ThreadPlugin.d.ts.map +1 -1
  79. package/dist/types/src/blueprints/index.d.ts +2 -0
  80. package/dist/types/src/blueprints/index.d.ts.map +1 -0
  81. package/dist/types/src/blueprints/thread-blueprint.d.ts +21 -0
  82. package/dist/types/src/blueprints/thread-blueprint.d.ts.map +1 -0
  83. package/dist/types/src/calls/call-manager.d.ts +40 -30
  84. package/dist/types/src/calls/call-manager.d.ts.map +1 -1
  85. package/dist/types/src/calls/call-swarm-synchronizer.d.ts +2 -2
  86. package/dist/types/src/calls/call-swarm-synchronizer.d.ts.map +1 -1
  87. package/dist/types/src/calls/media-manager.d.ts +1 -1
  88. package/dist/types/src/calls/media-manager.d.ts.map +1 -1
  89. package/dist/types/src/calls/util/calls-service.d.ts +1 -1
  90. package/dist/types/src/calls/util/calls-service.d.ts.map +1 -1
  91. package/dist/types/src/calls/util/task-scheduling.d.ts +2 -2
  92. package/dist/types/src/calls/util/task-scheduling.d.ts.map +1 -1
  93. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +6 -0
  94. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +1 -0
  95. package/dist/types/src/capabilities/app-graph-builder/index.d.ts +3 -0
  96. package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +1 -0
  97. package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts +10 -0
  98. package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts.map +1 -0
  99. package/dist/types/src/capabilities/blueprint-definition/index.d.ts +3 -0
  100. package/dist/types/src/capabilities/blueprint-definition/index.d.ts.map +1 -0
  101. package/dist/types/src/capabilities/call-manager/call-manager.d.ts +6 -0
  102. package/dist/types/src/capabilities/call-manager/call-manager.d.ts.map +1 -0
  103. package/dist/types/src/capabilities/call-manager/index.d.ts +3 -0
  104. package/dist/types/src/capabilities/call-manager/index.d.ts.map +1 -0
  105. package/dist/types/src/capabilities/index.d.ts +10 -16
  106. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  107. package/dist/types/src/capabilities/markdown/index.d.ts +3 -0
  108. package/dist/types/src/capabilities/markdown/index.d.ts.map +1 -0
  109. package/dist/types/src/capabilities/markdown/markdown.d.ts +5 -0
  110. package/dist/types/src/capabilities/markdown/markdown.d.ts.map +1 -0
  111. package/dist/types/src/capabilities/operation-resolver/index.d.ts +3 -0
  112. package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +1 -0
  113. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +5 -0
  114. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +1 -0
  115. package/dist/types/src/capabilities/react-root/index.d.ts +6 -0
  116. package/dist/types/src/capabilities/react-root/index.d.ts.map +1 -0
  117. package/dist/types/src/capabilities/react-root/react-root.d.ts +9 -0
  118. package/dist/types/src/capabilities/react-root/react-root.d.ts.map +1 -0
  119. package/dist/types/src/capabilities/react-surface/index.d.ts +3 -0
  120. package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
  121. package/dist/types/src/capabilities/react-surface/react-surface.d.ts +5 -0
  122. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
  123. package/dist/types/src/capabilities/repair/index.d.ts +3 -0
  124. package/dist/types/src/capabilities/repair/index.d.ts.map +1 -0
  125. package/dist/types/src/capabilities/repair/repair.d.ts +6 -0
  126. package/dist/types/src/capabilities/repair/repair.d.ts.map +1 -0
  127. package/dist/types/src/capabilities/settings/index.d.ts +3 -0
  128. package/dist/types/src/capabilities/settings/index.d.ts.map +1 -0
  129. package/dist/types/src/capabilities/settings/settings.d.ts +6 -0
  130. package/dist/types/src/capabilities/settings/settings.d.ts.map +1 -0
  131. package/dist/types/src/capabilities/state/index.d.ts +3 -0
  132. package/dist/types/src/capabilities/state/index.d.ts.map +1 -0
  133. package/dist/types/src/capabilities/state/state.d.ts +7 -0
  134. package/dist/types/src/capabilities/state/state.d.ts.map +1 -0
  135. package/dist/types/src/components/Call/Call.d.ts.map +1 -1
  136. package/dist/types/src/components/Call/Toolbar.d.ts +2 -2
  137. package/dist/types/src/components/Call/Toolbar.d.ts.map +1 -1
  138. package/dist/types/src/components/CallDebugPanel.d.ts.map +1 -1
  139. package/dist/types/src/components/CallSidebar.d.ts.map +1 -1
  140. package/dist/types/src/components/ChannelContainer.d.ts +5 -6
  141. package/dist/types/src/components/ChannelContainer.d.ts.map +1 -1
  142. package/dist/types/src/components/ChannelContainer.stories.d.ts +77 -7
  143. package/dist/types/src/components/ChannelContainer.stories.d.ts.map +1 -1
  144. package/dist/types/src/components/Chat.stories.d.ts +76 -5
  145. package/dist/types/src/components/Chat.stories.d.ts.map +1 -1
  146. package/dist/types/src/components/ChatContainer.d.ts +7 -6
  147. package/dist/types/src/components/ChatContainer.d.ts.map +1 -1
  148. package/dist/types/src/components/Comments.stories.d.ts +5 -1
  149. package/dist/types/src/components/Comments.stories.d.ts.map +1 -1
  150. package/dist/types/src/components/CommentsContainer.d.ts +2 -2
  151. package/dist/types/src/components/CommentsContainer.d.ts.map +1 -1
  152. package/dist/types/src/components/CommentsThreadContainer.d.ts +8 -8
  153. package/dist/types/src/components/CommentsThreadContainer.d.ts.map +1 -1
  154. package/dist/types/src/components/Lobby/Lobby.d.ts.map +1 -1
  155. package/dist/types/src/components/Media/VideoObject.d.ts +1 -1
  156. package/dist/types/src/components/Media/VideoObject.stories.d.ts +1 -1
  157. package/dist/types/src/components/MessageContainer.d.ts +4 -3
  158. package/dist/types/src/components/MessageContainer.d.ts.map +1 -1
  159. package/dist/types/src/components/Participant/Participant.d.ts.map +1 -1
  160. package/dist/types/src/components/ResponsiveGrid/ResponsiveContainer.stories.d.ts +5 -1
  161. package/dist/types/src/components/ResponsiveGrid/ResponsiveContainer.stories.d.ts.map +1 -1
  162. package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.stories.d.ts +5 -1
  163. package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.stories.d.ts.map +1 -1
  164. package/dist/types/src/components/ResponsiveGrid/ResponsiveGridItem.d.ts.map +1 -1
  165. package/dist/types/src/components/ThreadCompanion.d.ts +5 -0
  166. package/dist/types/src/components/ThreadCompanion.d.ts.map +1 -0
  167. package/dist/types/src/components/ThreadSettings.d.ts +4 -2
  168. package/dist/types/src/components/ThreadSettings.d.ts.map +1 -1
  169. package/dist/types/src/components/index.d.ts +3 -3
  170. package/dist/types/src/components/index.d.ts.map +1 -1
  171. package/dist/types/src/components/testing.d.ts +3 -3
  172. package/dist/types/src/components/testing.d.ts.map +1 -1
  173. package/dist/types/src/extensions/threads.d.ts +7 -2
  174. package/dist/types/src/extensions/threads.d.ts.map +1 -1
  175. package/dist/types/src/functions/create-proposals.d.ts +13 -0
  176. package/dist/types/src/functions/create-proposals.d.ts.map +1 -0
  177. package/dist/types/src/functions/index.d.ts +2 -0
  178. package/dist/types/src/functions/index.d.ts.map +1 -0
  179. package/dist/types/src/hooks/analytics.d.ts +2 -3
  180. package/dist/types/src/hooks/analytics.d.ts.map +1 -1
  181. package/dist/types/src/hooks/index.d.ts +2 -2
  182. package/dist/types/src/hooks/index.d.ts.map +1 -1
  183. package/dist/types/src/index.d.ts +1 -1
  184. package/dist/types/src/index.d.ts.map +1 -1
  185. package/dist/types/src/meta.d.ts +2 -2
  186. package/dist/types/src/meta.d.ts.map +1 -1
  187. package/dist/types/src/testing/stories.d.ts +2 -1
  188. package/dist/types/src/testing/stories.d.ts.map +1 -1
  189. package/dist/types/src/translations.d.ts +76 -6
  190. package/dist/types/src/translations.d.ts.map +1 -1
  191. package/dist/types/src/types/Channel.d.ts +695 -0
  192. package/dist/types/src/types/Channel.d.ts.map +1 -0
  193. package/dist/types/src/types/capabilities.d.ts +23 -0
  194. package/dist/types/src/types/capabilities.d.ts.map +1 -0
  195. package/dist/types/src/types/index.d.ts +2 -1
  196. package/dist/types/src/types/index.d.ts.map +1 -1
  197. package/dist/types/src/types/types.d.ts +3217 -446
  198. package/dist/types/src/types/types.d.ts.map +1 -1
  199. package/dist/types/tsconfig.tsbuildinfo +1 -1
  200. package/package.json +88 -65
  201. package/src/ThreadPlugin.tsx +75 -102
  202. package/src/blueprints/index.ts +5 -0
  203. package/src/blueprints/thread-blueprint.ts +32 -0
  204. package/src/calls/call-manager.ts +76 -52
  205. package/src/calls/call-swarm-synchronizer.ts +2 -2
  206. package/src/calls/media-manager.ts +10 -7
  207. package/src/calls/util/calls-service.ts +1 -1
  208. package/src/calls/util/stub-media-streams.ts +2 -2
  209. package/src/calls/util/task-scheduling.ts +4 -4
  210. package/src/calls-service.stories.tsx +1 -1
  211. package/src/capabilities/app-graph-builder/app-graph-builder.ts +202 -0
  212. package/src/capabilities/app-graph-builder/index.ts +7 -0
  213. package/src/capabilities/blueprint-definition/blueprint-definition.ts +24 -0
  214. package/src/capabilities/blueprint-definition/index.ts +7 -0
  215. package/src/capabilities/call-manager/call-manager.ts +26 -0
  216. package/src/capabilities/call-manager/index.ts +7 -0
  217. package/src/capabilities/index.ts +10 -13
  218. package/src/capabilities/markdown/index.ts +7 -0
  219. package/src/capabilities/markdown/markdown.ts +83 -0
  220. package/src/capabilities/operation-resolver/index.ts +7 -0
  221. package/src/capabilities/operation-resolver/operation-resolver.ts +400 -0
  222. package/src/capabilities/react-root/index.ts +7 -0
  223. package/src/capabilities/react-root/react-root.tsx +20 -0
  224. package/src/capabilities/react-surface/index.ts +7 -0
  225. package/src/capabilities/react-surface/react-surface.tsx +98 -0
  226. package/src/capabilities/repair/index.ts +7 -0
  227. package/src/capabilities/repair/repair.ts +51 -0
  228. package/src/capabilities/settings/index.ts +7 -0
  229. package/src/capabilities/settings/settings.ts +34 -0
  230. package/src/capabilities/state/index.ts +7 -0
  231. package/src/capabilities/state/state.ts +22 -0
  232. package/src/components/Call/Call.tsx +8 -4
  233. package/src/components/Call/Toolbar.tsx +34 -25
  234. package/src/components/CallDebugPanel.tsx +12 -14
  235. package/src/components/CallSidebar.tsx +5 -3
  236. package/src/components/ChannelContainer.stories.tsx +13 -12
  237. package/src/components/ChannelContainer.tsx +38 -31
  238. package/src/components/Chat.stories.tsx +14 -19
  239. package/src/components/ChatContainer.tsx +46 -39
  240. package/src/components/Comments.stories.tsx +26 -24
  241. package/src/components/CommentsContainer.tsx +5 -7
  242. package/src/components/CommentsThreadContainer.tsx +39 -35
  243. package/src/components/Lobby/Lobby.tsx +9 -7
  244. package/src/components/Media/AudioStream.tsx +2 -2
  245. package/src/components/Media/VideoObject.stories.tsx +1 -1
  246. package/src/components/Media/VideoObject.tsx +2 -2
  247. package/src/components/MessageContainer.tsx +59 -28
  248. package/src/components/Participant/Participant.tsx +32 -19
  249. package/src/components/ResponsiveGrid/ResponsiveContainer.stories.tsx +1 -1
  250. package/src/components/ResponsiveGrid/ResponsiveContainer.tsx +3 -3
  251. package/src/components/ResponsiveGrid/ResponsiveGrid.stories.tsx +2 -2
  252. package/src/components/ResponsiveGrid/ResponsiveGrid.tsx +6 -6
  253. package/src/components/ResponsiveGrid/ResponsiveGridItem.tsx +6 -3
  254. package/src/components/ThreadCompanion.tsx +194 -0
  255. package/src/components/ThreadSettings.tsx +9 -3
  256. package/src/components/command-extension.ts +2 -2
  257. package/src/components/index.ts +4 -7
  258. package/src/components/testing.ts +7 -9
  259. package/src/extensions/threads.ts +86 -42
  260. package/src/functions/create-proposals.ts +57 -0
  261. package/src/functions/index.ts +5 -0
  262. package/src/hooks/analytics.ts +21 -21
  263. package/src/hooks/index.ts +3 -2
  264. package/src/index.ts +1 -1
  265. package/src/meta.ts +8 -3
  266. package/src/testing/stories.ts +17 -15
  267. package/src/translations.ts +6 -3
  268. package/src/types/Channel.ts +30 -0
  269. package/src/types/capabilities.ts +34 -0
  270. package/src/types/index.ts +2 -1
  271. package/src/types/types.ts +167 -88
  272. package/dist/lib/browser/ChannelContainer-BGDGZHV4.mjs +0 -16
  273. package/dist/lib/browser/ChatContainer-75KJZ4XR.mjs +0 -15
  274. package/dist/lib/browser/app-graph-builder-ODKIAXR7.mjs +0 -171
  275. package/dist/lib/browser/app-graph-builder-ODKIAXR7.mjs.map +0 -7
  276. package/dist/lib/browser/call-manager-BCKLI4QD.mjs +0 -24
  277. package/dist/lib/browser/call-manager-BCKLI4QD.mjs.map +0 -7
  278. package/dist/lib/browser/chunk-2MUYQOQE.mjs +0 -23
  279. package/dist/lib/browser/chunk-2MUYQOQE.mjs.map +0 -7
  280. package/dist/lib/browser/chunk-B7YQ7QR2.mjs +0 -376
  281. package/dist/lib/browser/chunk-B7YQ7QR2.mjs.map +0 -7
  282. package/dist/lib/browser/chunk-CMCVHULC.mjs +0 -986
  283. package/dist/lib/browser/chunk-CMCVHULC.mjs.map +0 -7
  284. package/dist/lib/browser/chunk-HDEQRBOC.mjs.map +0 -7
  285. package/dist/lib/browser/chunk-L326LSNS.mjs +0 -18
  286. package/dist/lib/browser/chunk-L326LSNS.mjs.map +0 -7
  287. package/dist/lib/browser/chunk-T4KJ5JR4.mjs +0 -15
  288. package/dist/lib/browser/chunk-T4KJ5JR4.mjs.map +0 -7
  289. package/dist/lib/browser/chunk-VJMKS4CZ.mjs +0 -619
  290. package/dist/lib/browser/chunk-VJMKS4CZ.mjs.map +0 -7
  291. package/dist/lib/browser/chunk-VTYX3SIM.mjs +0 -147
  292. package/dist/lib/browser/chunk-VTYX3SIM.mjs.map +0 -7
  293. package/dist/lib/browser/chunk-ZCEU5K23.mjs.map +0 -7
  294. package/dist/lib/browser/intent-resolver-VOQD3TQ2.mjs +0 -427
  295. package/dist/lib/browser/intent-resolver-VOQD3TQ2.mjs.map +0 -7
  296. package/dist/lib/browser/markdown-R6MGRIA6.mjs +0 -169
  297. package/dist/lib/browser/markdown-R6MGRIA6.mjs.map +0 -7
  298. package/dist/lib/browser/react-root-UMSBTN6H.mjs +0 -28
  299. package/dist/lib/browser/react-root-UMSBTN6H.mjs.map +0 -7
  300. package/dist/lib/browser/react-surface-SXMQEWKE.mjs +0 -109
  301. package/dist/lib/browser/react-surface-SXMQEWKE.mjs.map +0 -7
  302. package/dist/lib/browser/settings-TCNF54PN.mjs +0 -22
  303. package/dist/lib/browser/settings-TCNF54PN.mjs.map +0 -7
  304. package/dist/lib/browser/state-ZQ4IPOJT.mjs +0 -34
  305. package/dist/lib/browser/state-ZQ4IPOJT.mjs.map +0 -7
  306. package/dist/lib/browser/toolkit-JF4B4QIO.mjs +0 -84
  307. package/dist/lib/browser/toolkit-JF4B4QIO.mjs.map +0 -7
  308. package/dist/lib/node-esm/ChannelContainer-OXC6BTU7.mjs +0 -17
  309. package/dist/lib/node-esm/ChatContainer-SH6LTFQL.mjs +0 -16
  310. package/dist/lib/node-esm/app-graph-builder-DMPT3MY6.mjs +0 -172
  311. package/dist/lib/node-esm/app-graph-builder-DMPT3MY6.mjs.map +0 -7
  312. package/dist/lib/node-esm/call-manager-Q7RY2YP4.mjs +0 -25
  313. package/dist/lib/node-esm/call-manager-Q7RY2YP4.mjs.map +0 -7
  314. package/dist/lib/node-esm/chunk-2KZ4ODHU.mjs +0 -987
  315. package/dist/lib/node-esm/chunk-2KZ4ODHU.mjs.map +0 -7
  316. package/dist/lib/node-esm/chunk-2MMJF7DW.mjs.map +0 -7
  317. package/dist/lib/node-esm/chunk-BAMZXJS4.mjs +0 -148
  318. package/dist/lib/node-esm/chunk-BAMZXJS4.mjs.map +0 -7
  319. package/dist/lib/node-esm/chunk-BTGKI5IK.mjs +0 -377
  320. package/dist/lib/node-esm/chunk-BTGKI5IK.mjs.map +0 -7
  321. package/dist/lib/node-esm/chunk-GZ4WL2IS.mjs +0 -25
  322. package/dist/lib/node-esm/chunk-GZ4WL2IS.mjs.map +0 -7
  323. package/dist/lib/node-esm/chunk-LCHTNRK7.mjs +0 -19
  324. package/dist/lib/node-esm/chunk-LCHTNRK7.mjs.map +0 -7
  325. package/dist/lib/node-esm/chunk-NHSIAEDW.mjs +0 -620
  326. package/dist/lib/node-esm/chunk-NHSIAEDW.mjs.map +0 -7
  327. package/dist/lib/node-esm/chunk-OBVAURUU.mjs +0 -17
  328. package/dist/lib/node-esm/chunk-OBVAURUU.mjs.map +0 -7
  329. package/dist/lib/node-esm/chunk-TIPIOH2J.mjs.map +0 -7
  330. package/dist/lib/node-esm/intent-resolver-AKVH66PH.mjs +0 -428
  331. package/dist/lib/node-esm/intent-resolver-AKVH66PH.mjs.map +0 -7
  332. package/dist/lib/node-esm/markdown-MYGTDXT6.mjs +0 -170
  333. package/dist/lib/node-esm/markdown-MYGTDXT6.mjs.map +0 -7
  334. package/dist/lib/node-esm/react-root-W6AVTL5M.mjs +0 -29
  335. package/dist/lib/node-esm/react-root-W6AVTL5M.mjs.map +0 -7
  336. package/dist/lib/node-esm/react-surface-NLSZJGMO.mjs +0 -110
  337. package/dist/lib/node-esm/react-surface-NLSZJGMO.mjs.map +0 -7
  338. package/dist/lib/node-esm/settings-ZQHGVFBY.mjs +0 -23
  339. package/dist/lib/node-esm/settings-ZQHGVFBY.mjs.map +0 -7
  340. package/dist/lib/node-esm/state-FSLLJ5TZ.mjs +0 -35
  341. package/dist/lib/node-esm/state-FSLLJ5TZ.mjs.map +0 -7
  342. package/dist/lib/node-esm/toolkit-DHPKJITO.mjs +0 -85
  343. package/dist/lib/node-esm/toolkit-DHPKJITO.mjs.map +0 -7
  344. package/dist/types/src/capabilities/app-graph-builder.d.ts +0 -4
  345. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +0 -1
  346. package/dist/types/src/capabilities/call-manager.d.ts +0 -5
  347. package/dist/types/src/capabilities/call-manager.d.ts.map +0 -1
  348. package/dist/types/src/capabilities/capabilities.d.ts +0 -27
  349. package/dist/types/src/capabilities/capabilities.d.ts.map +0 -1
  350. package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
  351. package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
  352. package/dist/types/src/capabilities/markdown.d.ts +0 -4
  353. package/dist/types/src/capabilities/markdown.d.ts.map +0 -1
  354. package/dist/types/src/capabilities/react-root.d.ts +0 -7
  355. package/dist/types/src/capabilities/react-root.d.ts.map +0 -1
  356. package/dist/types/src/capabilities/react-surface.d.ts +0 -4
  357. package/dist/types/src/capabilities/react-surface.d.ts.map +0 -1
  358. package/dist/types/src/capabilities/settings.d.ts +0 -4
  359. package/dist/types/src/capabilities/settings.d.ts.map +0 -1
  360. package/dist/types/src/capabilities/state.d.ts +0 -7
  361. package/dist/types/src/capabilities/state.d.ts.map +0 -1
  362. package/dist/types/src/capabilities/toolkit.d.ts +0 -6
  363. package/dist/types/src/capabilities/toolkit.d.ts.map +0 -1
  364. package/dist/types/src/components/ThreadComplementary.d.ts +0 -5
  365. package/dist/types/src/components/ThreadComplementary.d.ts.map +0 -1
  366. package/dist/types/src/types/schema.d.ts +0 -179
  367. package/dist/types/src/types/schema.d.ts.map +0 -1
  368. package/src/capabilities/app-graph-builder.ts +0 -184
  369. package/src/capabilities/call-manager.ts +0 -20
  370. package/src/capabilities/capabilities.ts +0 -33
  371. package/src/capabilities/intent-resolver.ts +0 -348
  372. package/src/capabilities/markdown.ts +0 -69
  373. package/src/capabilities/react-root.tsx +0 -17
  374. package/src/capabilities/react-surface.tsx +0 -89
  375. package/src/capabilities/settings.ts +0 -19
  376. package/src/capabilities/state.ts +0 -26
  377. package/src/capabilities/toolkit.ts +0 -82
  378. package/src/components/ThreadComplementary.tsx +0 -181
  379. package/src/types/schema.ts +0 -33
  380. /package/dist/lib/browser/{ChannelContainer-BGDGZHV4.mjs.map → blueprints/index.mjs.map} +0 -0
  381. /package/dist/lib/browser/{ChatContainer-75KJZ4XR.mjs.map → chunk-J5LGTIGS.mjs.map} +0 -0
  382. /package/dist/lib/node-esm/{ChannelContainer-OXC6BTU7.mjs.map → blueprints/index.mjs.map} +0 -0
  383. /package/dist/lib/node-esm/{ChatContainer-SH6LTFQL.mjs.map → chunk-HSLMI22Q.mjs.map} +0 -0
@@ -1,461 +1,3232 @@
1
1
  import * as Schema from 'effect/Schema';
2
- import { Type } from '@dxos/echo';
3
- import { AnchoredTo } from '@dxos/schema';
4
- import { ChannelType, ThreadType } from './schema';
5
- export declare namespace ThreadAction {
6
- const onCreateSpace_base: Schema.TaggedClass<onCreateSpace, `${string}/action/on-space-created`, {
7
- readonly _tag: Schema.tag<`${string}/action/on-space-created`>;
8
- } & {
9
- input: Schema.Struct<{
10
- space: Schema.Schema<import("@dxos/client-protocol").Space, import("@dxos/client-protocol").Space, never>;
11
- rootCollection: Type.obj<Schema.Struct<{
12
- name: Schema.optional<typeof Schema.String>;
13
- objects: Schema.mutable<Schema.Array$<Type.ref<Schema.Schema<Type.Expando, {
14
- [x: string]: any;
15
- id: string;
16
- }, never>>>>;
17
- }>>;
18
- }>;
19
- output: typeof Schema.Void;
20
- }>;
21
- export class onCreateSpace extends onCreateSpace_base {
22
- }
23
- const CreateChannel_base: Schema.TaggedClass<CreateChannel, `${string}/action/create-channel`, {
24
- readonly _tag: Schema.tag<`${string}/action/create-channel`>;
25
- } & {
26
- input: Schema.Struct<{
27
- spaceId: Schema.Schema<Type.SpaceId, string, never> & {
28
- byteLength: number;
29
- encode: (value: Uint8Array) => Type.SpaceId;
30
- decode: (value: Type.SpaceId) => Uint8Array;
31
- isValid: (value: string) => value is Type.SpaceId;
32
- make: (value: string) => Type.SpaceId;
33
- random: () => Type.SpaceId;
34
- };
35
- name: Schema.optional<typeof Schema.String>;
36
- }>;
37
- output: Schema.Struct<{
38
- object: Type.obj<Schema.Schema<ChannelType, {
39
- id: string;
40
- defaultThread: import("@dxos/echo-protocol").EncodedReference;
41
- threads: import("@dxos/echo-protocol").EncodedReference[];
42
- name?: string | undefined;
43
- }, never>>;
44
- }>;
45
- }>;
46
- export class CreateChannel extends CreateChannel_base {
47
- }
48
- const CreateChannelThread_base: Schema.TaggedClass<CreateChannelThread, `${string}/action/create-channel-thread`, {
49
- readonly _tag: Schema.tag<`${string}/action/create-channel-thread`>;
50
- } & {
51
- input: Schema.Struct<{
52
- channel: Type.obj<Schema.Schema<ChannelType, {
53
- id: string;
54
- defaultThread: import("@dxos/echo-protocol").EncodedReference;
55
- threads: import("@dxos/echo-protocol").EncodedReference[];
56
- name?: string | undefined;
57
- }, never>>;
58
- }>;
59
- output: Schema.Struct<{
60
- object: Type.obj<Schema.Schema<ThreadType, {
61
- id: string;
62
- messages: import("@dxos/echo-protocol").EncodedReference[];
63
- name?: string | undefined;
64
- status?: "staged" | "active" | "resolved" | undefined;
65
- }, never>>;
66
- }>;
67
- }>;
68
- export class CreateChannelThread extends CreateChannelThread_base {
69
- }
70
- const Create_base: Schema.TaggedClass<Create, `${string}/action/create`, {
71
- readonly _tag: Schema.tag<`${string}/action/create`>;
72
- } & {
73
- input: Schema.Struct<{
74
- name: Schema.optional<typeof Schema.String>;
75
- anchor: Schema.optional<typeof Schema.String>;
76
- subject: Schema.Schema<any, any, never>;
77
- }>;
78
- output: typeof Schema.Void;
79
- }>;
80
- export class Create extends Create_base {
81
- }
82
- const Delete_base: Schema.TaggedClass<Delete, `${string}/action/delete`, {
83
- readonly _tag: Schema.tag<`${string}/action/delete`>;
84
- } & {
85
- input: Schema.Struct<{
86
- anchor: Type.relation<Schema.Struct<{
87
- id: import("@dxos/keys").ObjectIdClass;
88
- anchor: Schema.optional<typeof Schema.String>;
89
- }>, Schema.Schema<Type.Expando, {
90
- [x: string]: any;
91
- id: string;
92
- }, never>, Schema.Schema<Type.Expando, {
93
- [x: string]: any;
94
- id: string;
95
- }, never>>;
96
- subject: Schema.Schema<any, any, never>;
97
- thread: Schema.optional<Type.obj<Schema.Schema<ThreadType, {
98
- id: string;
99
- messages: import("@dxos/echo-protocol").EncodedReference[];
100
- name?: string | undefined;
101
- status?: "staged" | "active" | "resolved" | undefined;
102
- }, never>>>;
103
- }>;
104
- output: typeof Schema.Void;
105
- }>;
106
- export class Delete extends Delete_base {
107
- }
108
- const Select_base: Schema.TaggedClass<Select, `${string}/action/select`, {
109
- readonly _tag: Schema.tag<`${string}/action/select`>;
110
- } & {
111
- input: Schema.Struct<{
112
- current: typeof Schema.String;
113
- }>;
114
- output: typeof Schema.Void;
115
- }>;
116
- export class Select extends Select_base {
117
- }
118
- const ToggleResolved_base: Schema.TaggedClass<ToggleResolved, `${string}/action/toggle-resolved`, {
119
- readonly _tag: Schema.tag<`${string}/action/toggle-resolved`>;
120
- } & {
121
- input: Schema.Struct<{
122
- thread: Type.obj<Schema.Schema<ThreadType, {
123
- id: string;
124
- messages: import("@dxos/echo-protocol").EncodedReference[];
125
- name?: string | undefined;
126
- status?: "staged" | "active" | "resolved" | undefined;
127
- }, never>>;
128
- }>;
129
- output: typeof Schema.Void;
130
- }>;
131
- export class ToggleResolved extends ToggleResolved_base {
132
- }
133
- const AddProposal_base: Schema.TaggedClass<AddProposal, `${string}/action/add-proposal`, {
134
- readonly _tag: Schema.tag<`${string}/action/add-proposal`>;
135
- } & {
136
- input: Schema.Struct<{
137
- text: typeof Schema.String;
138
- anchor: typeof Schema.String;
139
- sender: Schema.Struct<{
140
- contact: Schema.optional<Type.ref<Type.obj<Schema.Struct<{
141
- fullName: Schema.optional<Schema.SchemaClass<string, string, never>>;
142
- preferredName: Schema.optional<Schema.SchemaClass<string, string, never>>;
143
- nickname: Schema.optional<Schema.SchemaClass<string, string, never>>;
144
- image: Schema.optional<Schema.SchemaClass<string, string, never>>;
145
- organization: Schema.optional<Schema.Schema<import("@dxos/echo/internal").Ref<Type.OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
146
- id: string;
147
- description?: string | undefined;
148
- name?: string | undefined;
149
- status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
150
- image?: string | undefined;
151
- website?: string | undefined;
152
- }>, import("@dxos/echo-protocol").EncodedReference, never>>;
153
- jobTitle: Schema.optional<Schema.SchemaClass<string, string, never>>;
154
- department: Schema.optional<Schema.SchemaClass<string, string, never>>;
155
- notes: Schema.optional<Schema.SchemaClass<string, string, never>>;
156
- emails: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
157
- label: Schema.optional<typeof Schema.String>;
158
- value: Schema.refine<string, typeof Schema.String>;
159
- }>>>>;
160
- identities: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
161
- label: Schema.optional<typeof Schema.String>;
162
- value: typeof Schema.String;
163
- }>>>>;
164
- phoneNumbers: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
165
- label: Schema.optional<typeof Schema.String>;
166
- value: typeof Schema.String;
167
- }>>>>;
168
- addresses: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
169
- label: Schema.optional<typeof Schema.String>;
170
- value: Schema.Struct<{
171
- street: Schema.optional<Schema.SchemaClass<string, string, never>>;
172
- extended: Schema.optional<Schema.SchemaClass<string, string, never>>;
173
- locality: Schema.optional<Schema.SchemaClass<string, string, never>>;
174
- region: Schema.optional<Schema.SchemaClass<string, string, never>>;
175
- postalCode: Schema.optional<Schema.SchemaClass<string, string, never>>;
176
- postOfficeBoxNumber: Schema.optional<Schema.SchemaClass<string, string, never>>;
177
- country: Schema.optional<Schema.SchemaClass<string, string, never>>;
178
- }>;
179
- }>>>>;
180
- urls: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
181
- label: Schema.optional<typeof Schema.String>;
182
- value: Schema.refine<string, typeof Schema.String>;
183
- }>>>>;
184
- birthday: Schema.optional<Schema.SchemaClass<string, string, never>>;
185
- fields: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
186
- category: Schema.optional<typeof Schema.String>;
187
- label: typeof Schema.String;
188
- value: typeof Schema.String;
189
- }>>>>;
190
- }>>>>;
191
- identityDid: Schema.optional<typeof Schema.String>;
192
- identityKey: Schema.optional<typeof Schema.String>;
193
- email: Schema.optional<typeof Schema.String>;
194
- name: Schema.optional<typeof Schema.String>;
195
- role: Schema.optional<Schema.Literal<["user", "assistant", "tool"]>>;
2
+ import { Capability } from '@dxos/app-framework';
3
+ import { Key, 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: readonly import("@dxos/echo/internal").Ref<any>[];
22
+ }, Schema.Struct.Fields>;
23
+ isDefault: Schema.optional<typeof Schema.Boolean>;
196
24
  }>;
197
- subject: Schema.Schema<any, any, never>;
198
- }>;
199
- output: typeof Schema.Void;
200
- }>;
201
- export class AddProposal extends AddProposal_base {
202
- }
203
- const AddMessage_base: Schema.TaggedClass<AddMessage, `${string}/action/add-message`, {
204
- readonly _tag: Schema.tag<`${string}/action/add-message`>;
205
- } & {
206
- input: Schema.Struct<{
207
- subject: Schema.Schema<any, any, never>;
208
- anchor: Type.relation<Schema.Struct<{
209
- id: import("@dxos/keys").ObjectIdClass;
210
- anchor: Schema.optional<typeof Schema.String>;
211
- }>, Schema.Schema<Type.Expando, {
212
- [x: string]: any;
213
- id: string;
214
- }, never>, Schema.Schema<Type.Expando, {
215
- [x: string]: any;
216
- id: string;
217
- }, never>>;
218
- sender: Schema.Struct<{
219
- contact: Schema.optional<Type.ref<Type.obj<Schema.Struct<{
220
- fullName: Schema.optional<Schema.SchemaClass<string, string, never>>;
221
- preferredName: Schema.optional<Schema.SchemaClass<string, string, never>>;
222
- nickname: Schema.optional<Schema.SchemaClass<string, string, never>>;
223
- image: Schema.optional<Schema.SchemaClass<string, string, never>>;
224
- organization: Schema.optional<Schema.Schema<import("@dxos/echo/internal").Ref<Type.OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
225
- id: string;
226
- description?: string | undefined;
227
- name?: string | undefined;
228
- status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
229
- image?: string | undefined;
230
- website?: string | undefined;
231
- }>, import("@dxos/echo-protocol").EncodedReference, never>>;
232
- jobTitle: Schema.optional<Schema.SchemaClass<string, string, never>>;
233
- department: Schema.optional<Schema.SchemaClass<string, string, never>>;
234
- notes: Schema.optional<Schema.SchemaClass<string, string, never>>;
235
- emails: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
236
- label: Schema.optional<typeof Schema.String>;
237
- value: Schema.refine<string, typeof Schema.String>;
238
- }>>>>;
239
- identities: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
240
- label: Schema.optional<typeof Schema.String>;
241
- value: typeof Schema.String;
242
- }>>>>;
243
- phoneNumbers: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
244
- label: Schema.optional<typeof Schema.String>;
245
- value: typeof Schema.String;
246
- }>>>>;
247
- addresses: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
248
- label: Schema.optional<typeof Schema.String>;
249
- value: Schema.Struct<{
250
- street: Schema.optional<Schema.SchemaClass<string, string, never>>;
251
- extended: Schema.optional<Schema.SchemaClass<string, string, never>>;
252
- locality: Schema.optional<Schema.SchemaClass<string, string, never>>;
253
- region: Schema.optional<Schema.SchemaClass<string, string, never>>;
254
- postalCode: Schema.optional<Schema.SchemaClass<string, string, never>>;
255
- postOfficeBoxNumber: Schema.optional<Schema.SchemaClass<string, string, never>>;
256
- country: Schema.optional<Schema.SchemaClass<string, string, never>>;
257
- }>;
258
- }>>>>;
259
- urls: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
260
- label: Schema.optional<typeof Schema.String>;
261
- value: Schema.refine<string, typeof Schema.String>;
262
- }>>>>;
263
- birthday: Schema.optional<Schema.SchemaClass<string, string, never>>;
264
- fields: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
265
- category: Schema.optional<typeof Schema.String>;
266
- label: typeof Schema.String;
267
- value: typeof Schema.String;
268
- }>>>>;
269
- }>>>>;
270
- identityDid: Schema.optional<typeof Schema.String>;
271
- identityKey: Schema.optional<typeof Schema.String>;
272
- email: Schema.optional<typeof Schema.String>;
25
+ readonly output: typeof Schema.Void;
26
+ };
27
+ }, "executionMode"> & import("effect/Pipeable").Pipeable & {
28
+ readonly executionMode: "sync" | "async";
29
+ };
30
+ const CreateChannel: Omit<{
31
+ readonly meta: {
32
+ readonly key: `${string}/create-channel`;
33
+ readonly name: "Create Channel";
34
+ };
35
+ readonly services: readonly [typeof Capability.Service];
36
+ readonly schema: {
37
+ readonly input: Schema.Struct<{
38
+ spaceId: Schema.Schema<Key.SpaceId, string, never> & {
39
+ byteLength: number;
40
+ encode: (value: Uint8Array) => Key.SpaceId;
41
+ decode: (value: Key.SpaceId) => Uint8Array;
42
+ isValid: (value: unknown) => value is Key.SpaceId;
43
+ make: (value: string) => Key.SpaceId;
44
+ random: () => Key.SpaceId;
45
+ };
273
46
  name: Schema.optional<typeof Schema.String>;
274
- role: Schema.optional<Schema.Literal<["user", "assistant", "tool"]>>;
275
47
  }>;
276
- text: typeof Schema.String;
277
- }>;
278
- output: typeof Schema.Void;
279
- }>;
280
- export class AddMessage extends AddMessage_base {
281
- }
282
- const DeleteMessage_base: Schema.TaggedClass<DeleteMessage, `${string}/action/delete-message`, {
283
- readonly _tag: Schema.tag<`${string}/action/delete-message`>;
284
- } & {
285
- input: Schema.Struct<{
286
- anchor: Type.relation<Schema.Struct<{
287
- id: import("@dxos/keys").ObjectIdClass;
48
+ readonly output: Schema.Struct<{
49
+ object: Type.Obj<{
50
+ readonly name?: string | undefined;
51
+ readonly defaultThread: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
52
+ readonly name?: string | undefined;
53
+ readonly status?: "active" | "staged" | "resolved" | undefined;
54
+ readonly messages: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
55
+ readonly id: string;
56
+ readonly parentMessage?: string | undefined;
57
+ readonly created: string;
58
+ readonly sender: {
59
+ readonly name?: string | undefined;
60
+ readonly role?: "user" | "assistant" | "tool" | undefined;
61
+ readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
62
+ readonly image?: string | undefined;
63
+ readonly fullName?: string | undefined;
64
+ readonly preferredName?: string | undefined;
65
+ readonly nickname?: string | undefined;
66
+ readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
67
+ readonly description?: string | undefined;
68
+ readonly name?: string | undefined;
69
+ readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
70
+ readonly image?: string | undefined;
71
+ readonly website?: string | undefined;
72
+ } & {
73
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
74
+ }> | undefined;
75
+ readonly jobTitle?: string | undefined;
76
+ readonly department?: string | undefined;
77
+ readonly notes?: string | undefined;
78
+ readonly emails?: readonly {
79
+ readonly value: string;
80
+ readonly label?: string | undefined;
81
+ }[] | undefined;
82
+ readonly identities?: readonly {
83
+ readonly value: string;
84
+ readonly label?: string | undefined;
85
+ }[] | undefined;
86
+ readonly phoneNumbers?: readonly {
87
+ readonly value: string;
88
+ readonly label?: string | undefined;
89
+ }[] | undefined;
90
+ readonly fields?: readonly {
91
+ readonly value: string;
92
+ readonly label: string;
93
+ readonly category?: string | undefined;
94
+ }[] | undefined;
95
+ readonly addresses?: readonly {
96
+ readonly value: {
97
+ readonly street?: string | undefined;
98
+ readonly extended?: string | undefined;
99
+ readonly locality?: string | undefined;
100
+ readonly region?: string | undefined;
101
+ readonly postalCode?: string | undefined;
102
+ readonly postOfficeBoxNumber?: string | undefined;
103
+ readonly country?: string | undefined;
104
+ };
105
+ readonly label?: string | undefined;
106
+ }[] | undefined;
107
+ readonly urls?: readonly {
108
+ readonly value: string;
109
+ readonly label?: string | undefined;
110
+ }[] | undefined;
111
+ readonly birthday?: string | undefined;
112
+ } & {
113
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
114
+ }> | undefined;
115
+ readonly identityDid?: string | undefined;
116
+ readonly identityKey?: string | undefined;
117
+ readonly email?: string | undefined;
118
+ };
119
+ readonly blocks: readonly ({
120
+ readonly pending?: boolean | undefined;
121
+ readonly text: string;
122
+ readonly mimeType?: string | undefined;
123
+ readonly disposition?: string | undefined;
124
+ readonly _tag: "text";
125
+ } | {
126
+ readonly pending?: boolean | undefined;
127
+ readonly _tag: "reasoning";
128
+ readonly reasoningText?: string | undefined;
129
+ readonly redactedText?: string | undefined;
130
+ readonly signature?: string | undefined;
131
+ } | {
132
+ readonly name: string;
133
+ readonly pending?: boolean | undefined;
134
+ readonly _tag: "toolCall";
135
+ readonly toolCallId: string;
136
+ readonly input: string;
137
+ readonly providerExecuted: boolean;
138
+ } | {
139
+ readonly name: string;
140
+ readonly pending?: boolean | undefined;
141
+ readonly _tag: "toolResult";
142
+ readonly toolCallId: string;
143
+ readonly providerExecuted: boolean;
144
+ readonly result?: string | undefined;
145
+ readonly error?: string | undefined;
146
+ } | {
147
+ readonly pending?: boolean | undefined;
148
+ readonly mimeType?: string | undefined;
149
+ readonly _tag: "summary";
150
+ readonly message?: string | undefined;
151
+ readonly model?: string | undefined;
152
+ readonly usage?: {
153
+ readonly inputTokens?: number | undefined;
154
+ readonly outputTokens?: number | undefined;
155
+ readonly totalTokens?: number | undefined;
156
+ } | undefined;
157
+ readonly toolCalls?: number | undefined;
158
+ readonly errors?: number | undefined;
159
+ readonly duration?: number | undefined;
160
+ } | {
161
+ readonly source?: {
162
+ readonly type: "base64";
163
+ readonly mediaType: string;
164
+ readonly data: string;
165
+ } | {
166
+ readonly type: "http";
167
+ readonly url: string;
168
+ } | undefined;
169
+ readonly id? /** In-memory draft threads. */: string | undefined;
170
+ readonly pending?: boolean | undefined;
171
+ readonly _tag: "image";
172
+ } | {
173
+ readonly name?: string | undefined;
174
+ readonly pending?: boolean | undefined;
175
+ readonly _tag: "file";
176
+ readonly mediaType?: string | undefined;
177
+ readonly url: string;
178
+ } | {
179
+ readonly pending?: boolean | undefined;
180
+ readonly _tag: "reference";
181
+ readonly reference: import("@dxos/echo/internal").Ref<any>;
182
+ } | {
183
+ readonly pending?: boolean | undefined;
184
+ readonly text: string;
185
+ readonly _tag: "transcript";
186
+ readonly started: string;
187
+ } | {
188
+ readonly pending?: boolean | undefined;
189
+ readonly _tag: "status";
190
+ readonly statusText: string;
191
+ } | {
192
+ readonly pending?: boolean | undefined;
193
+ readonly text: string;
194
+ readonly _tag: "suggestion";
195
+ } | {
196
+ readonly pending?: boolean | undefined;
197
+ readonly _tag: "select";
198
+ readonly options: string[];
199
+ } | {
200
+ readonly version: unknown;
201
+ readonly pending?: boolean | undefined;
202
+ readonly _tag: "anchor";
203
+ readonly objectId: string;
204
+ } | {
205
+ readonly pending?: boolean | undefined;
206
+ readonly text: string;
207
+ readonly _tag: "proposal";
208
+ } | {
209
+ readonly pending?: boolean | undefined;
210
+ readonly _tag: "toolkit";
211
+ } | {
212
+ readonly pending?: boolean | undefined;
213
+ readonly disposition?: string | undefined;
214
+ readonly _tag: "json";
215
+ readonly data: string;
216
+ })[];
217
+ readonly properties?: {
218
+ readonly [x: string]: any;
219
+ } | undefined;
220
+ }>[];
221
+ }>;
222
+ readonly threads: readonly 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: readonly 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
+ readonly name?: string | undefined;
231
+ readonly role?: "user" | "assistant" | "tool" | undefined;
232
+ readonly 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?: readonly {
250
+ readonly value: string;
251
+ readonly label?: string | undefined;
252
+ }[] | undefined;
253
+ readonly identities?: readonly {
254
+ readonly value: string;
255
+ readonly label?: string | undefined;
256
+ }[] | undefined;
257
+ readonly phoneNumbers?: readonly {
258
+ readonly value: string;
259
+ readonly label?: string | undefined;
260
+ }[] | undefined;
261
+ readonly fields?: readonly {
262
+ readonly value: string;
263
+ readonly label: string;
264
+ readonly category?: string | undefined;
265
+ }[] | undefined;
266
+ readonly addresses?: readonly {
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?: readonly {
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
+ readonly identityDid?: string | undefined;
287
+ readonly identityKey?: string | undefined;
288
+ readonly email?: string | undefined;
289
+ };
290
+ readonly blocks: readonly ({
291
+ readonly pending?: boolean | undefined;
292
+ readonly text: string;
293
+ readonly mimeType?: string | undefined;
294
+ readonly disposition?: string | undefined;
295
+ readonly _tag: "text";
296
+ } | {
297
+ readonly pending?: boolean | undefined;
298
+ readonly _tag: "reasoning";
299
+ readonly reasoningText?: string | undefined;
300
+ readonly redactedText?: string | undefined;
301
+ readonly signature?: string | undefined;
302
+ } | {
303
+ readonly name: string;
304
+ readonly pending?: boolean | undefined;
305
+ readonly _tag: "toolCall";
306
+ readonly toolCallId: string;
307
+ readonly input: string;
308
+ readonly providerExecuted: boolean;
309
+ } | {
310
+ readonly name: string;
311
+ readonly pending?: boolean | undefined;
312
+ readonly _tag: "toolResult";
313
+ readonly toolCallId: string;
314
+ readonly providerExecuted: boolean;
315
+ readonly result?: string | undefined;
316
+ readonly error?: string | undefined;
317
+ } | {
318
+ readonly pending?: boolean | undefined;
319
+ readonly mimeType?: string | undefined;
320
+ readonly _tag: "summary";
321
+ readonly message?: string | undefined;
322
+ readonly model?: string | undefined;
323
+ readonly usage?: {
324
+ readonly inputTokens?: number | undefined;
325
+ readonly outputTokens?: number | undefined;
326
+ readonly totalTokens?: number | undefined;
327
+ } | undefined;
328
+ readonly toolCalls?: number | undefined;
329
+ readonly errors?: number | undefined;
330
+ readonly duration?: number | undefined;
331
+ } | {
332
+ readonly source?: {
333
+ readonly type: "base64";
334
+ readonly mediaType: string;
335
+ readonly data: string;
336
+ } | {
337
+ readonly type: "http";
338
+ readonly url: string;
339
+ } | undefined;
340
+ readonly id? /** In-memory draft threads. */: string | undefined;
341
+ readonly pending?: boolean | undefined;
342
+ readonly _tag: "image";
343
+ } | {
344
+ readonly name?: string | undefined;
345
+ readonly pending?: boolean | undefined;
346
+ readonly _tag: "file";
347
+ readonly mediaType?: string | undefined;
348
+ readonly url: string;
349
+ } | {
350
+ readonly pending?: boolean | undefined;
351
+ readonly _tag: "reference";
352
+ readonly reference: import("@dxos/echo/internal").Ref<any>;
353
+ } | {
354
+ readonly pending?: boolean | undefined;
355
+ readonly text: string;
356
+ readonly _tag: "transcript";
357
+ readonly started: string;
358
+ } | {
359
+ readonly pending?: boolean | undefined;
360
+ readonly _tag: "status";
361
+ readonly statusText: string;
362
+ } | {
363
+ readonly pending?: boolean | undefined;
364
+ readonly text: string;
365
+ readonly _tag: "suggestion";
366
+ } | {
367
+ readonly pending?: boolean | undefined;
368
+ readonly _tag: "select";
369
+ readonly options: string[];
370
+ } | {
371
+ readonly version: unknown;
372
+ readonly pending?: boolean | undefined;
373
+ readonly _tag: "anchor";
374
+ readonly objectId: string;
375
+ } | {
376
+ readonly pending?: boolean | undefined;
377
+ readonly text: string;
378
+ readonly _tag: "proposal";
379
+ } | {
380
+ readonly pending?: boolean | undefined;
381
+ readonly _tag: "toolkit";
382
+ } | {
383
+ readonly pending?: boolean | undefined;
384
+ readonly disposition?: string | undefined;
385
+ readonly _tag: "json";
386
+ readonly data: string;
387
+ })[];
388
+ readonly properties?: {
389
+ readonly [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: readonly 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
+ readonly name?: string | undefined;
418
+ readonly role?: "user" | "assistant" | "tool" | undefined;
419
+ readonly 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?: readonly {
437
+ readonly value: string;
438
+ readonly label?: string | undefined;
439
+ }[] | undefined;
440
+ readonly identities?: readonly {
441
+ readonly value: string;
442
+ readonly label?: string | undefined;
443
+ }[] | undefined;
444
+ readonly phoneNumbers?: readonly {
445
+ readonly value: string;
446
+ readonly label?: string | undefined;
447
+ }[] | undefined;
448
+ readonly fields?: readonly {
449
+ readonly value: string;
450
+ readonly label: string;
451
+ readonly category?: string | undefined;
452
+ }[] | undefined;
453
+ readonly addresses?: readonly {
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?: readonly {
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
+ readonly identityDid?: string | undefined;
474
+ readonly identityKey?: string | undefined;
475
+ readonly email?: string | undefined;
476
+ };
477
+ readonly blocks: readonly ({
478
+ readonly pending?: boolean | undefined;
479
+ readonly text: string;
480
+ readonly mimeType?: string | undefined;
481
+ readonly disposition?: string | undefined;
482
+ readonly _tag: "text";
483
+ } | {
484
+ readonly pending?: boolean | undefined;
485
+ readonly _tag: "reasoning";
486
+ readonly reasoningText?: string | undefined;
487
+ readonly redactedText?: string | undefined;
488
+ readonly signature?: string | undefined;
489
+ } | {
490
+ readonly name: string;
491
+ readonly pending?: boolean | undefined;
492
+ readonly _tag: "toolCall";
493
+ readonly toolCallId: string;
494
+ readonly input: string;
495
+ readonly providerExecuted: boolean;
496
+ } | {
497
+ readonly name: string;
498
+ readonly pending?: boolean | undefined;
499
+ readonly _tag: "toolResult";
500
+ readonly toolCallId: string;
501
+ readonly providerExecuted: boolean;
502
+ readonly result?: string | undefined;
503
+ readonly error?: string | undefined;
504
+ } | {
505
+ readonly pending?: boolean | undefined;
506
+ readonly mimeType?: string | undefined;
507
+ readonly _tag: "summary";
508
+ readonly message?: string | undefined;
509
+ readonly model?: string | undefined;
510
+ readonly usage?: {
511
+ readonly inputTokens?: number | undefined;
512
+ readonly outputTokens?: number | undefined;
513
+ readonly totalTokens?: number | undefined;
514
+ } | undefined;
515
+ readonly toolCalls?: number | undefined;
516
+ readonly errors?: number | undefined;
517
+ readonly duration?: number | undefined;
518
+ } | {
519
+ readonly source?: {
520
+ readonly type: "base64";
521
+ readonly mediaType: string;
522
+ readonly data: string;
523
+ } | {
524
+ readonly type: "http";
525
+ readonly url: string;
526
+ } | undefined;
527
+ readonly id? /** In-memory draft threads. */: string | undefined;
528
+ readonly pending?: boolean | undefined;
529
+ readonly _tag: "image";
530
+ } | {
531
+ readonly name?: string | undefined;
532
+ readonly pending?: boolean | undefined;
533
+ readonly _tag: "file";
534
+ readonly mediaType?: string | undefined;
535
+ readonly url: string;
536
+ } | {
537
+ readonly pending?: boolean | undefined;
538
+ readonly _tag: "reference";
539
+ readonly reference: import("@dxos/echo/internal").Ref<any>;
540
+ } | {
541
+ readonly pending?: boolean | undefined;
542
+ readonly text: string;
543
+ readonly _tag: "transcript";
544
+ readonly started: string;
545
+ } | {
546
+ readonly pending?: boolean | undefined;
547
+ readonly _tag: "status";
548
+ readonly statusText: string;
549
+ } | {
550
+ readonly pending?: boolean | undefined;
551
+ readonly text: string;
552
+ readonly _tag: "suggestion";
553
+ } | {
554
+ readonly pending?: boolean | undefined;
555
+ readonly _tag: "select";
556
+ readonly options: string[];
557
+ } | {
558
+ readonly version: unknown;
559
+ readonly pending?: boolean | undefined;
560
+ readonly _tag: "anchor";
561
+ readonly objectId: string;
562
+ } | {
563
+ readonly pending?: boolean | undefined;
564
+ readonly text: string;
565
+ readonly _tag: "proposal";
566
+ } | {
567
+ readonly pending?: boolean | undefined;
568
+ readonly _tag: "toolkit";
569
+ } | {
570
+ readonly pending?: boolean | undefined;
571
+ readonly disposition?: string | undefined;
572
+ readonly _tag: "json";
573
+ readonly data: string;
574
+ })[];
575
+ readonly properties?: {
576
+ readonly [x: string]: any;
577
+ } | undefined;
578
+ }>[];
579
+ }>;
580
+ readonly threads: readonly 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: readonly 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
+ readonly name?: string | undefined;
589
+ readonly role?: "user" | "assistant" | "tool" | undefined;
590
+ readonly 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?: readonly {
608
+ readonly value: string;
609
+ readonly label?: string | undefined;
610
+ }[] | undefined;
611
+ readonly identities?: readonly {
612
+ readonly value: string;
613
+ readonly label?: string | undefined;
614
+ }[] | undefined;
615
+ readonly phoneNumbers?: readonly {
616
+ readonly value: string;
617
+ readonly label?: string | undefined;
618
+ }[] | undefined;
619
+ readonly fields?: readonly {
620
+ readonly value: string;
621
+ readonly label: string;
622
+ readonly category?: string | undefined;
623
+ }[] | undefined;
624
+ readonly addresses?: readonly {
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?: readonly {
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
+ readonly identityDid?: string | undefined;
645
+ readonly identityKey?: string | undefined;
646
+ readonly email?: string | undefined;
647
+ };
648
+ readonly blocks: readonly ({
649
+ readonly pending?: boolean | undefined;
650
+ readonly text: string;
651
+ readonly mimeType?: string | undefined;
652
+ readonly disposition?: string | undefined;
653
+ readonly _tag: "text";
654
+ } | {
655
+ readonly pending?: boolean | undefined;
656
+ readonly _tag: "reasoning";
657
+ readonly reasoningText?: string | undefined;
658
+ readonly redactedText?: string | undefined;
659
+ readonly signature?: string | undefined;
660
+ } | {
661
+ readonly name: string;
662
+ readonly pending?: boolean | undefined;
663
+ readonly _tag: "toolCall";
664
+ readonly toolCallId: string;
665
+ readonly input: string;
666
+ readonly providerExecuted: boolean;
667
+ } | {
668
+ readonly name: string;
669
+ readonly pending?: boolean | undefined;
670
+ readonly _tag: "toolResult";
671
+ readonly toolCallId: string;
672
+ readonly providerExecuted: boolean;
673
+ readonly result?: string | undefined;
674
+ readonly error?: string | undefined;
675
+ } | {
676
+ readonly pending?: boolean | undefined;
677
+ readonly mimeType?: string | undefined;
678
+ readonly _tag: "summary";
679
+ readonly message?: string | undefined;
680
+ readonly model?: string | undefined;
681
+ readonly usage?: {
682
+ readonly inputTokens?: number | undefined;
683
+ readonly outputTokens?: number | undefined;
684
+ readonly totalTokens?: number | undefined;
685
+ } | undefined;
686
+ readonly toolCalls?: number | undefined;
687
+ readonly errors?: number | undefined;
688
+ readonly duration?: number | undefined;
689
+ } | {
690
+ readonly source?: {
691
+ readonly type: "base64";
692
+ readonly mediaType: string;
693
+ readonly data: string;
694
+ } | {
695
+ readonly type: "http";
696
+ readonly url: string;
697
+ } | undefined;
698
+ readonly id? /** In-memory draft threads. */: string | undefined;
699
+ readonly pending?: boolean | undefined;
700
+ readonly _tag: "image";
701
+ } | {
702
+ readonly name?: string | undefined;
703
+ readonly pending?: boolean | undefined;
704
+ readonly _tag: "file";
705
+ readonly mediaType?: string | undefined;
706
+ readonly url: string;
707
+ } | {
708
+ readonly pending?: boolean | undefined;
709
+ readonly _tag: "reference";
710
+ readonly reference: import("@dxos/echo/internal").Ref<any>;
711
+ } | {
712
+ readonly pending?: boolean | undefined;
713
+ readonly text: string;
714
+ readonly _tag: "transcript";
715
+ readonly started: string;
716
+ } | {
717
+ readonly pending?: boolean | undefined;
718
+ readonly _tag: "status";
719
+ readonly statusText: string;
720
+ } | {
721
+ readonly pending?: boolean | undefined;
722
+ readonly text: string;
723
+ readonly _tag: "suggestion";
724
+ } | {
725
+ readonly pending?: boolean | undefined;
726
+ readonly _tag: "select";
727
+ readonly options: string[];
728
+ } | {
729
+ readonly version: unknown;
730
+ readonly pending?: boolean | undefined;
731
+ readonly _tag: "anchor";
732
+ readonly objectId: string;
733
+ } | {
734
+ readonly pending?: boolean | undefined;
735
+ readonly text: string;
736
+ readonly _tag: "proposal";
737
+ } | {
738
+ readonly pending?: boolean | undefined;
739
+ readonly _tag: "toolkit";
740
+ } | {
741
+ readonly pending?: boolean | undefined;
742
+ readonly disposition?: string | undefined;
743
+ readonly _tag: "json";
744
+ readonly data: string;
745
+ })[];
746
+ readonly properties?: {
747
+ readonly [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: readonly 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
+ readonly name?: string | undefined;
763
+ readonly role?: "user" | "assistant" | "tool" | undefined;
764
+ readonly 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?: readonly {
782
+ readonly value: string;
783
+ readonly label?: string | undefined;
784
+ }[] | undefined;
785
+ readonly identities?: readonly {
786
+ readonly value: string;
787
+ readonly label?: string | undefined;
788
+ }[] | undefined;
789
+ readonly phoneNumbers?: readonly {
790
+ readonly value: string;
791
+ readonly label?: string | undefined;
792
+ }[] | undefined;
793
+ readonly fields?: readonly {
794
+ readonly value: string;
795
+ readonly label: string;
796
+ readonly category?: string | undefined;
797
+ }[] | undefined;
798
+ readonly addresses?: readonly {
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?: readonly {
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
+ readonly identityDid?: string | undefined;
819
+ readonly identityKey?: string | undefined;
820
+ readonly email?: string | undefined;
821
+ };
822
+ readonly blocks: readonly ({
823
+ readonly pending?: boolean | undefined;
824
+ readonly text: string;
825
+ readonly mimeType?: string | undefined;
826
+ readonly disposition?: string | undefined;
827
+ readonly _tag: "text";
828
+ } | {
829
+ readonly pending?: boolean | undefined;
830
+ readonly _tag: "reasoning";
831
+ readonly reasoningText?: string | undefined;
832
+ readonly redactedText?: string | undefined;
833
+ readonly signature?: string | undefined;
834
+ } | {
835
+ readonly name: string;
836
+ readonly pending?: boolean | undefined;
837
+ readonly _tag: "toolCall";
838
+ readonly toolCallId: string;
839
+ readonly input: string;
840
+ readonly providerExecuted: boolean;
841
+ } | {
842
+ readonly name: string;
843
+ readonly pending?: boolean | undefined;
844
+ readonly _tag: "toolResult";
845
+ readonly toolCallId: string;
846
+ readonly providerExecuted: boolean;
847
+ readonly result?: string | undefined;
848
+ readonly error?: string | undefined;
849
+ } | {
850
+ readonly pending?: boolean | undefined;
851
+ readonly mimeType?: string | undefined;
852
+ readonly _tag: "summary";
853
+ readonly message?: string | undefined;
854
+ readonly model?: string | undefined;
855
+ readonly usage?: {
856
+ readonly inputTokens?: number | undefined;
857
+ readonly outputTokens?: number | undefined;
858
+ readonly totalTokens?: number | undefined;
859
+ } | undefined;
860
+ readonly toolCalls?: number | undefined;
861
+ readonly errors?: number | undefined;
862
+ readonly duration?: number | undefined;
863
+ } | {
864
+ readonly source?: {
865
+ readonly type: "base64";
866
+ readonly mediaType: string;
867
+ readonly data: string;
868
+ } | {
869
+ readonly type: "http";
870
+ readonly url: string;
871
+ } | undefined;
872
+ readonly id? /** In-memory draft threads. */: string | undefined;
873
+ readonly pending?: boolean | undefined;
874
+ readonly _tag: "image";
875
+ } | {
876
+ readonly name?: string | undefined;
877
+ readonly pending?: boolean | undefined;
878
+ readonly _tag: "file";
879
+ readonly mediaType?: string | undefined;
880
+ readonly url: string;
881
+ } | {
882
+ readonly pending?: boolean | undefined;
883
+ readonly _tag: "reference";
884
+ readonly reference: import("@dxos/echo/internal").Ref<any>;
885
+ } | {
886
+ readonly pending?: boolean | undefined;
887
+ readonly text: string;
888
+ readonly _tag: "transcript";
889
+ readonly started: string;
890
+ } | {
891
+ readonly pending?: boolean | undefined;
892
+ readonly _tag: "status";
893
+ readonly statusText: string;
894
+ } | {
895
+ readonly pending?: boolean | undefined;
896
+ readonly text: string;
897
+ readonly _tag: "suggestion";
898
+ } | {
899
+ readonly pending?: boolean | undefined;
900
+ readonly _tag: "select";
901
+ readonly options: string[];
902
+ } | {
903
+ readonly version: unknown;
904
+ readonly pending?: boolean | undefined;
905
+ readonly _tag: "anchor";
906
+ readonly objectId: string;
907
+ } | {
908
+ readonly pending?: boolean | undefined;
909
+ readonly text: string;
910
+ readonly _tag: "proposal";
911
+ } | {
912
+ readonly pending?: boolean | undefined;
913
+ readonly _tag: "toolkit";
914
+ } | {
915
+ readonly pending?: boolean | undefined;
916
+ readonly disposition?: string | undefined;
917
+ readonly _tag: "json";
918
+ readonly data: string;
919
+ })[];
920
+ readonly properties?: {
921
+ readonly [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<{
938
+ name: Schema.optional<typeof Schema.String>;
288
939
  anchor: Schema.optional<typeof Schema.String>;
289
- }>, Schema.Schema<Type.Expando, {
290
- [x: string]: any;
291
- id: string;
292
- }, never>, Schema.Schema<Type.Expando, {
293
- [x: string]: any;
294
- id: string;
295
- }, never>>;
296
- subject: Schema.Schema<any, any, never>;
297
- messageId: typeof Schema.String;
298
- message: Schema.optional<Type.obj<Schema.Struct<{
299
- id: import("@dxos/keys").ObjectIdClass;
300
- parentMessage: Schema.optional<import("@dxos/keys").ObjectIdClass>;
301
- created: Schema.SchemaClass<string, string, never>;
302
- sender: Schema.mutable<Schema.Struct<{
303
- contact: Schema.optional<Type.ref<Type.obj<Schema.Struct<{
304
- fullName: Schema.optional<Schema.SchemaClass<string, string, never>>;
305
- preferredName: Schema.optional<Schema.SchemaClass<string, string, never>>;
306
- nickname: Schema.optional<Schema.SchemaClass<string, string, never>>;
307
- image: Schema.optional<Schema.SchemaClass<string, string, never>>;
308
- organization: Schema.optional<Schema.Schema<import("@dxos/echo/internal").Ref<Type.OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
309
- id: string;
310
- description?: string | undefined;
311
- name?: string | undefined;
312
- status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
313
- image?: string | undefined;
314
- website?: string | undefined;
315
- }>, import("@dxos/echo-protocol").EncodedReference, never>>;
316
- jobTitle: Schema.optional<Schema.SchemaClass<string, string, never>>;
317
- department: Schema.optional<Schema.SchemaClass<string, string, never>>;
318
- notes: Schema.optional<Schema.SchemaClass<string, string, never>>;
319
- emails: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
320
- label: Schema.optional<typeof Schema.String>;
321
- value: Schema.refine<string, typeof Schema.String>;
322
- }>>>>;
323
- identities: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
324
- label: Schema.optional<typeof Schema.String>;
325
- value: typeof Schema.String;
326
- }>>>>;
327
- phoneNumbers: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
328
- label: Schema.optional<typeof Schema.String>;
329
- value: typeof Schema.String;
330
- }>>>>;
331
- addresses: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
332
- label: Schema.optional<typeof Schema.String>;
333
- value: Schema.Struct<{
334
- street: Schema.optional<Schema.SchemaClass<string, string, never>>;
335
- extended: Schema.optional<Schema.SchemaClass<string, string, never>>;
336
- locality: Schema.optional<Schema.SchemaClass<string, string, never>>;
337
- region: Schema.optional<Schema.SchemaClass<string, string, never>>;
338
- postalCode: Schema.optional<Schema.SchemaClass<string, string, never>>;
339
- postOfficeBoxNumber: Schema.optional<Schema.SchemaClass<string, string, never>>;
340
- country: Schema.optional<Schema.SchemaClass<string, string, never>>;
341
- }>;
342
- }>>>>;
343
- urls: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
344
- label: Schema.optional<typeof Schema.String>;
345
- value: Schema.refine<string, typeof Schema.String>;
346
- }>>>>;
347
- birthday: Schema.optional<Schema.SchemaClass<string, string, never>>;
348
- fields: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
349
- category: Schema.optional<typeof Schema.String>;
350
- label: typeof Schema.String;
351
- value: typeof Schema.String;
352
- }>>>>;
353
- }>>>>;
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: readonly 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
+ readonly name?: string | undefined;
965
+ readonly role?: "user" | "assistant" | "tool" | undefined;
966
+ readonly 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?: readonly {
984
+ readonly value: string;
985
+ readonly label?: string | undefined;
986
+ }[] | undefined;
987
+ readonly identities?: readonly {
988
+ readonly value: string;
989
+ readonly label?: string | undefined;
990
+ }[] | undefined;
991
+ readonly phoneNumbers?: readonly {
992
+ readonly value: string;
993
+ readonly label?: string | undefined;
994
+ }[] | undefined;
995
+ readonly fields?: readonly {
996
+ readonly value: string;
997
+ readonly label: string;
998
+ readonly category?: string | undefined;
999
+ }[] | undefined;
1000
+ readonly addresses?: readonly {
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?: readonly {
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
+ readonly identityDid?: string | undefined;
1021
+ readonly identityKey?: string | undefined;
1022
+ readonly email?: string | undefined;
1023
+ };
1024
+ readonly blocks: readonly ({
1025
+ readonly pending?: boolean | undefined;
1026
+ readonly text: string;
1027
+ readonly mimeType?: string | undefined;
1028
+ readonly disposition?: string | undefined;
1029
+ readonly _tag: "text";
1030
+ } | {
1031
+ readonly pending?: boolean | undefined;
1032
+ readonly _tag: "reasoning";
1033
+ readonly reasoningText?: string | undefined;
1034
+ readonly redactedText?: string | undefined;
1035
+ readonly signature?: string | undefined;
1036
+ } | {
1037
+ readonly name: string;
1038
+ readonly pending?: boolean | undefined;
1039
+ readonly _tag: "toolCall";
1040
+ readonly toolCallId: string;
1041
+ readonly input: string;
1042
+ readonly providerExecuted: boolean;
1043
+ } | {
1044
+ readonly name: string;
1045
+ readonly pending?: boolean | undefined;
1046
+ readonly _tag: "toolResult";
1047
+ readonly toolCallId: string;
1048
+ readonly providerExecuted: boolean;
1049
+ readonly result?: string | undefined;
1050
+ readonly error?: string | undefined;
1051
+ } | {
1052
+ readonly pending?: boolean | undefined;
1053
+ readonly mimeType?: string | undefined;
1054
+ readonly _tag: "summary";
1055
+ readonly message?: string | undefined;
1056
+ readonly model?: string | undefined;
1057
+ readonly usage?: {
1058
+ readonly inputTokens?: number | undefined;
1059
+ readonly outputTokens?: number | undefined;
1060
+ readonly totalTokens?: number | undefined;
1061
+ } | undefined;
1062
+ readonly toolCalls?: number | undefined;
1063
+ readonly errors?: number | undefined;
1064
+ readonly duration?: number | undefined;
1065
+ } | {
1066
+ readonly source?: {
1067
+ readonly type: "base64";
1068
+ readonly mediaType: string;
1069
+ readonly data: string;
1070
+ } | {
1071
+ readonly type: "http";
1072
+ readonly url: string;
1073
+ } | undefined;
1074
+ readonly id? /** In-memory draft threads. */: string | undefined;
1075
+ readonly pending?: boolean | undefined;
1076
+ readonly _tag: "image";
1077
+ } | {
1078
+ readonly name?: string | undefined;
1079
+ readonly pending?: boolean | undefined;
1080
+ readonly _tag: "file";
1081
+ readonly mediaType?: string | undefined;
1082
+ readonly url: string;
1083
+ } | {
1084
+ readonly pending?: boolean | undefined;
1085
+ readonly _tag: "reference";
1086
+ readonly reference: import("@dxos/echo/internal").Ref<any>;
1087
+ } | {
1088
+ readonly pending?: boolean | undefined;
1089
+ readonly text: string;
1090
+ readonly _tag: "transcript";
1091
+ readonly started: string;
1092
+ } | {
1093
+ readonly pending?: boolean | undefined;
1094
+ readonly _tag: "status";
1095
+ readonly statusText: string;
1096
+ } | {
1097
+ readonly pending?: boolean | undefined;
1098
+ readonly text: string;
1099
+ readonly _tag: "suggestion";
1100
+ } | {
1101
+ readonly pending?: boolean | undefined;
1102
+ readonly _tag: "select";
1103
+ readonly options: string[];
1104
+ } | {
1105
+ readonly version: unknown;
1106
+ readonly pending?: boolean | undefined;
1107
+ readonly _tag: "anchor";
1108
+ readonly objectId: string;
1109
+ } | {
1110
+ readonly pending?: boolean | undefined;
1111
+ readonly text: string;
1112
+ readonly _tag: "proposal";
1113
+ } | {
1114
+ readonly pending?: boolean | undefined;
1115
+ readonly _tag: "toolkit";
1116
+ } | {
1117
+ readonly pending?: boolean | undefined;
1118
+ readonly disposition?: string | undefined;
1119
+ readonly _tag: "json";
1120
+ readonly data: string;
1121
+ })[];
1122
+ readonly properties?: {
1123
+ readonly [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
+ readonly name?: string | undefined;
1144
+ readonly role?: "user" | "assistant" | "tool" | undefined;
1145
+ readonly 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?: readonly {
1163
+ readonly value: string;
1164
+ readonly label?: string | undefined;
1165
+ }[] | undefined;
1166
+ readonly identities?: readonly {
1167
+ readonly value: string;
1168
+ readonly label?: string | undefined;
1169
+ }[] | undefined;
1170
+ readonly phoneNumbers?: readonly {
1171
+ readonly value: string;
1172
+ readonly label?: string | undefined;
1173
+ }[] | undefined;
1174
+ readonly fields?: readonly {
1175
+ readonly value: string;
1176
+ readonly label: string;
1177
+ readonly category?: string | undefined;
1178
+ }[] | undefined;
1179
+ readonly addresses?: readonly {
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?: readonly {
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
+ readonly identityDid?: string | undefined;
1200
+ readonly identityKey?: string | undefined;
1201
+ readonly email?: string | undefined;
1202
+ };
1203
+ readonly blocks: readonly ({
1204
+ readonly pending?: boolean | undefined;
1205
+ readonly text: string;
1206
+ readonly mimeType?: string | undefined;
1207
+ readonly disposition?: string | undefined;
1208
+ readonly _tag: "text";
1209
+ } | {
1210
+ readonly pending?: boolean | undefined;
1211
+ readonly _tag: "reasoning";
1212
+ readonly reasoningText?: string | undefined;
1213
+ readonly redactedText?: string | undefined;
1214
+ readonly signature?: string | undefined;
1215
+ } | {
1216
+ readonly name: string;
1217
+ readonly pending?: boolean | undefined;
1218
+ readonly _tag: "toolCall";
1219
+ readonly toolCallId: string;
1220
+ readonly input: string;
1221
+ readonly providerExecuted: boolean;
1222
+ } | {
1223
+ readonly name: string;
1224
+ readonly pending?: boolean | undefined;
1225
+ readonly _tag: "toolResult";
1226
+ readonly toolCallId: string;
1227
+ readonly providerExecuted: boolean;
1228
+ readonly result?: string | undefined;
1229
+ readonly error?: string | undefined;
1230
+ } | {
1231
+ readonly pending?: boolean | undefined;
1232
+ readonly mimeType?: string | undefined;
1233
+ readonly _tag: "summary";
1234
+ readonly message?: string | undefined;
1235
+ readonly model?: string | undefined;
1236
+ readonly usage?: {
1237
+ readonly inputTokens?: number | undefined;
1238
+ readonly outputTokens?: number | undefined;
1239
+ readonly totalTokens?: number | undefined;
1240
+ } | undefined;
1241
+ readonly toolCalls?: number | undefined;
1242
+ readonly errors?: number | undefined;
1243
+ readonly duration?: number | undefined;
1244
+ } | {
1245
+ readonly source?: {
1246
+ readonly type: "base64";
1247
+ readonly mediaType: string;
1248
+ readonly data: string;
1249
+ } | {
1250
+ readonly type: "http";
1251
+ readonly url: string;
1252
+ } | undefined;
1253
+ readonly id? /** In-memory draft threads. */: string | undefined;
1254
+ readonly pending?: boolean | undefined;
1255
+ readonly _tag: "image";
1256
+ } | {
1257
+ readonly name?: string | undefined;
1258
+ readonly pending?: boolean | undefined;
1259
+ readonly _tag: "file";
1260
+ readonly mediaType?: string | undefined;
1261
+ readonly url: string;
1262
+ } | {
1263
+ readonly pending?: boolean | undefined;
1264
+ readonly _tag: "reference";
1265
+ readonly reference: import("@dxos/echo/internal").Ref<any>;
1266
+ } | {
1267
+ readonly pending?: boolean | undefined;
1268
+ readonly text: string;
1269
+ readonly _tag: "transcript";
1270
+ readonly started: string;
1271
+ } | {
1272
+ readonly pending?: boolean | undefined;
1273
+ readonly _tag: "status";
1274
+ readonly statusText: string;
1275
+ } | {
1276
+ readonly pending?: boolean | undefined;
1277
+ readonly text: string;
1278
+ readonly _tag: "suggestion";
1279
+ } | {
1280
+ readonly pending?: boolean | undefined;
1281
+ readonly _tag: "select";
1282
+ readonly options: string[];
1283
+ } | {
1284
+ readonly version: unknown;
1285
+ readonly pending?: boolean | undefined;
1286
+ readonly _tag: "anchor";
1287
+ readonly objectId: string;
1288
+ } | {
1289
+ readonly pending?: boolean | undefined;
1290
+ readonly text: string;
1291
+ readonly _tag: "proposal";
1292
+ } | {
1293
+ readonly pending?: boolean | undefined;
1294
+ readonly _tag: "toolkit";
1295
+ } | {
1296
+ readonly pending?: boolean | undefined;
1297
+ readonly disposition?: string | undefined;
1298
+ readonly _tag: "json";
1299
+ readonly data: string;
1300
+ })[];
1301
+ readonly properties?: {
1302
+ readonly [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, {
1321
+ id: string;
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: readonly 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
+ readonly name?: string | undefined;
1334
+ readonly role?: "user" | "assistant" | "tool" | undefined;
1335
+ readonly 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?: readonly {
1353
+ readonly value: string;
1354
+ readonly label?: string | undefined;
1355
+ }[] | undefined;
1356
+ readonly identities?: readonly {
1357
+ readonly value: string;
1358
+ readonly label?: string | undefined;
1359
+ }[] | undefined;
1360
+ readonly phoneNumbers?: readonly {
1361
+ readonly value: string;
1362
+ readonly label?: string | undefined;
1363
+ }[] | undefined;
1364
+ readonly fields?: readonly {
1365
+ readonly value: string;
1366
+ readonly label: string;
1367
+ readonly category?: string | undefined;
1368
+ }[] | undefined;
1369
+ readonly addresses?: readonly {
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?: readonly {
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
+ readonly identityDid?: string | undefined;
1390
+ readonly identityKey?: string | undefined;
1391
+ readonly email?: string | undefined;
1392
+ };
1393
+ readonly blocks: readonly ({
1394
+ readonly pending?: boolean | undefined;
1395
+ readonly text: string;
1396
+ readonly mimeType?: string | undefined;
1397
+ readonly disposition?: string | undefined;
1398
+ readonly _tag: "text";
1399
+ } | {
1400
+ readonly pending?: boolean | undefined;
1401
+ readonly _tag: "reasoning";
1402
+ readonly reasoningText?: string | undefined;
1403
+ readonly redactedText?: string | undefined;
1404
+ readonly signature?: string | undefined;
1405
+ } | {
1406
+ readonly name: string;
1407
+ readonly pending?: boolean | undefined;
1408
+ readonly _tag: "toolCall";
1409
+ readonly toolCallId: string;
1410
+ readonly input: string;
1411
+ readonly providerExecuted: boolean;
1412
+ } | {
1413
+ readonly name: string;
1414
+ readonly pending?: boolean | undefined;
1415
+ readonly _tag: "toolResult";
1416
+ readonly toolCallId: string;
1417
+ readonly providerExecuted: boolean;
1418
+ readonly result?: string | undefined;
1419
+ readonly error?: string | undefined;
1420
+ } | {
1421
+ readonly pending?: boolean | undefined;
1422
+ readonly mimeType?: string | undefined;
1423
+ readonly _tag: "summary";
1424
+ readonly message?: string | undefined;
1425
+ readonly model?: string | undefined;
1426
+ readonly usage?: {
1427
+ readonly inputTokens?: number | undefined;
1428
+ readonly outputTokens?: number | undefined;
1429
+ readonly totalTokens?: number | undefined;
1430
+ } | undefined;
1431
+ readonly toolCalls?: number | undefined;
1432
+ readonly errors?: number | undefined;
1433
+ readonly duration?: number | undefined;
1434
+ } | {
1435
+ readonly source?: {
1436
+ readonly type: "base64";
1437
+ readonly mediaType: string;
1438
+ readonly data: string;
1439
+ } | {
1440
+ readonly type: "http";
1441
+ readonly url: string;
1442
+ } | undefined;
1443
+ readonly id? /** In-memory draft threads. */: string | undefined;
1444
+ readonly pending?: boolean | undefined;
1445
+ readonly _tag: "image";
1446
+ } | {
1447
+ readonly name?: string | undefined;
1448
+ readonly pending?: boolean | undefined;
1449
+ readonly _tag: "file";
1450
+ readonly mediaType?: string | undefined;
1451
+ readonly url: string;
1452
+ } | {
1453
+ readonly pending?: boolean | undefined;
1454
+ readonly _tag: "reference";
1455
+ readonly reference: import("@dxos/echo/internal").Ref<any>;
1456
+ } | {
1457
+ readonly pending?: boolean | undefined;
1458
+ readonly text: string;
1459
+ readonly _tag: "transcript";
1460
+ readonly started: string;
1461
+ } | {
1462
+ readonly pending?: boolean | undefined;
1463
+ readonly _tag: "status";
1464
+ readonly statusText: string;
1465
+ } | {
1466
+ readonly pending?: boolean | undefined;
1467
+ readonly text: string;
1468
+ readonly _tag: "suggestion";
1469
+ } | {
1470
+ readonly pending?: boolean | undefined;
1471
+ readonly _tag: "select";
1472
+ readonly options: string[];
1473
+ } | {
1474
+ readonly version: unknown;
1475
+ readonly pending?: boolean | undefined;
1476
+ readonly _tag: "anchor";
1477
+ readonly objectId: string;
1478
+ } | {
1479
+ readonly pending?: boolean | undefined;
1480
+ readonly text: string;
1481
+ readonly _tag: "proposal";
1482
+ } | {
1483
+ readonly pending?: boolean | undefined;
1484
+ readonly _tag: "toolkit";
1485
+ } | {
1486
+ readonly pending?: boolean | undefined;
1487
+ readonly disposition?: string | undefined;
1488
+ readonly _tag: "json";
1489
+ readonly data: string;
1490
+ })[];
1491
+ readonly properties?: {
1492
+ readonly [x: string]: any;
1493
+ } | undefined;
1494
+ }>[];
1495
+ }, Schema.Struct.Fields>>;
1496
+ }>;
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: readonly 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
+ readonly name?: string | undefined;
1511
+ readonly role?: "user" | "assistant" | "tool" | undefined;
1512
+ readonly 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?: readonly {
1530
+ readonly value: string;
1531
+ readonly label?: string | undefined;
1532
+ }[] | undefined;
1533
+ readonly identities?: readonly {
1534
+ readonly value: string;
1535
+ readonly label?: string | undefined;
1536
+ }[] | undefined;
1537
+ readonly phoneNumbers?: readonly {
1538
+ readonly value: string;
1539
+ readonly label?: string | undefined;
1540
+ }[] | undefined;
1541
+ readonly fields?: readonly {
1542
+ readonly value: string;
1543
+ readonly label: string;
1544
+ readonly category?: string | undefined;
1545
+ }[] | undefined;
1546
+ readonly addresses?: readonly {
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?: readonly {
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
+ readonly identityDid?: string | undefined;
1567
+ readonly identityKey?: string | undefined;
1568
+ readonly email?: string | undefined;
1569
+ };
1570
+ readonly blocks: readonly ({
1571
+ readonly pending?: boolean | undefined;
1572
+ readonly text: string;
1573
+ readonly mimeType?: string | undefined;
1574
+ readonly disposition?: string | undefined;
1575
+ readonly _tag: "text";
1576
+ } | {
1577
+ readonly pending?: boolean | undefined;
1578
+ readonly _tag: "reasoning";
1579
+ readonly reasoningText?: string | undefined;
1580
+ readonly redactedText?: string | undefined;
1581
+ readonly signature?: string | undefined;
1582
+ } | {
1583
+ readonly name: string;
1584
+ readonly pending?: boolean | undefined;
1585
+ readonly _tag: "toolCall";
1586
+ readonly toolCallId: string;
1587
+ readonly input: string;
1588
+ readonly providerExecuted: boolean;
1589
+ } | {
1590
+ readonly name: string;
1591
+ readonly pending?: boolean | undefined;
1592
+ readonly _tag: "toolResult";
1593
+ readonly toolCallId: string;
1594
+ readonly providerExecuted: boolean;
1595
+ readonly result?: string | undefined;
1596
+ readonly error?: string | undefined;
1597
+ } | {
1598
+ readonly pending?: boolean | undefined;
1599
+ readonly mimeType?: string | undefined;
1600
+ readonly _tag: "summary";
1601
+ readonly message?: string | undefined;
1602
+ readonly model?: string | undefined;
1603
+ readonly usage?: {
1604
+ readonly inputTokens?: number | undefined;
1605
+ readonly outputTokens?: number | undefined;
1606
+ readonly totalTokens?: number | undefined;
1607
+ } | undefined;
1608
+ readonly toolCalls?: number | undefined;
1609
+ readonly errors?: number | undefined;
1610
+ readonly duration?: number | undefined;
1611
+ } | {
1612
+ readonly source?: {
1613
+ readonly type: "base64";
1614
+ readonly mediaType: string;
1615
+ readonly data: string;
1616
+ } | {
1617
+ readonly type: "http";
1618
+ readonly url: string;
1619
+ } | undefined;
1620
+ readonly id? /** In-memory draft threads. */: string | undefined;
1621
+ readonly pending?: boolean | undefined;
1622
+ readonly _tag: "image";
1623
+ } | {
1624
+ readonly name?: string | undefined;
1625
+ readonly pending?: boolean | undefined;
1626
+ readonly _tag: "file";
1627
+ readonly mediaType?: string | undefined;
1628
+ readonly url: string;
1629
+ } | {
1630
+ readonly pending?: boolean | undefined;
1631
+ readonly _tag: "reference";
1632
+ readonly reference: import("@dxos/echo/internal").Ref<any>;
1633
+ } | {
1634
+ readonly pending?: boolean | undefined;
1635
+ readonly text: string;
1636
+ readonly _tag: "transcript";
1637
+ readonly started: string;
1638
+ } | {
1639
+ readonly pending?: boolean | undefined;
1640
+ readonly _tag: "status";
1641
+ readonly statusText: string;
1642
+ } | {
1643
+ readonly pending?: boolean | undefined;
1644
+ readonly text: string;
1645
+ readonly _tag: "suggestion";
1646
+ } | {
1647
+ readonly pending?: boolean | undefined;
1648
+ readonly _tag: "select";
1649
+ readonly options: string[];
1650
+ } | {
1651
+ readonly version: unknown;
1652
+ readonly pending?: boolean | undefined;
1653
+ readonly _tag: "anchor";
1654
+ readonly objectId: string;
1655
+ } | {
1656
+ readonly pending?: boolean | undefined;
1657
+ readonly text: string;
1658
+ readonly _tag: "proposal";
1659
+ } | {
1660
+ readonly pending?: boolean | undefined;
1661
+ readonly _tag: "toolkit";
1662
+ } | {
1663
+ readonly pending?: boolean | undefined;
1664
+ readonly disposition?: string | undefined;
1665
+ readonly _tag: "json";
1666
+ readonly data: string;
1667
+ })[];
1668
+ readonly properties?: {
1669
+ readonly [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
+ readonly name?: string | undefined;
1690
+ readonly role?: "user" | "assistant" | "tool" | undefined;
1691
+ readonly 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?: readonly {
1709
+ readonly value: string;
1710
+ readonly label?: string | undefined;
1711
+ }[] | undefined;
1712
+ readonly identities?: readonly {
1713
+ readonly value: string;
1714
+ readonly label?: string | undefined;
1715
+ }[] | undefined;
1716
+ readonly phoneNumbers?: readonly {
1717
+ readonly value: string;
1718
+ readonly label?: string | undefined;
1719
+ }[] | undefined;
1720
+ readonly fields?: readonly {
1721
+ readonly value: string;
1722
+ readonly label: string;
1723
+ readonly category?: string | undefined;
1724
+ }[] | undefined;
1725
+ readonly addresses?: readonly {
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?: readonly {
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
+ readonly identityDid?: string | undefined;
1746
+ readonly identityKey?: string | undefined;
1747
+ readonly email?: string | undefined;
1748
+ };
1749
+ readonly blocks: readonly ({
1750
+ readonly pending?: boolean | undefined;
1751
+ readonly text: string;
1752
+ readonly mimeType?: string | undefined;
1753
+ readonly disposition?: string | undefined;
1754
+ readonly _tag: "text";
1755
+ } | {
1756
+ readonly pending?: boolean | undefined;
1757
+ readonly _tag: "reasoning";
1758
+ readonly reasoningText?: string | undefined;
1759
+ readonly redactedText?: string | undefined;
1760
+ readonly signature?: string | undefined;
1761
+ } | {
1762
+ readonly name: string;
1763
+ readonly pending?: boolean | undefined;
1764
+ readonly _tag: "toolCall";
1765
+ readonly toolCallId: string;
1766
+ readonly input: string;
1767
+ readonly providerExecuted: boolean;
1768
+ } | {
1769
+ readonly name: string;
1770
+ readonly pending?: boolean | undefined;
1771
+ readonly _tag: "toolResult";
1772
+ readonly toolCallId: string;
1773
+ readonly providerExecuted: boolean;
1774
+ readonly result?: string | undefined;
1775
+ readonly error?: string | undefined;
1776
+ } | {
1777
+ readonly pending?: boolean | undefined;
1778
+ readonly mimeType?: string | undefined;
1779
+ readonly _tag: "summary";
1780
+ readonly message?: string | undefined;
1781
+ readonly model?: string | undefined;
1782
+ readonly usage?: {
1783
+ readonly inputTokens?: number | undefined;
1784
+ readonly outputTokens?: number | undefined;
1785
+ readonly totalTokens?: number | undefined;
1786
+ } | undefined;
1787
+ readonly toolCalls?: number | undefined;
1788
+ readonly errors?: number | undefined;
1789
+ readonly duration?: number | undefined;
1790
+ } | {
1791
+ readonly source?: {
1792
+ readonly type: "base64";
1793
+ readonly mediaType: string;
1794
+ readonly data: string;
1795
+ } | {
1796
+ readonly type: "http";
1797
+ readonly url: string;
1798
+ } | undefined;
1799
+ readonly id? /** In-memory draft threads. */: string | undefined;
1800
+ readonly pending?: boolean | undefined;
1801
+ readonly _tag: "image";
1802
+ } | {
1803
+ readonly name?: string | undefined;
1804
+ readonly pending?: boolean | undefined;
1805
+ readonly _tag: "file";
1806
+ readonly mediaType?: string | undefined;
1807
+ readonly url: string;
1808
+ } | {
1809
+ readonly pending?: boolean | undefined;
1810
+ readonly _tag: "reference";
1811
+ readonly reference: import("@dxos/echo/internal").Ref<any>;
1812
+ } | {
1813
+ readonly pending?: boolean | undefined;
1814
+ readonly text: string;
1815
+ readonly _tag: "transcript";
1816
+ readonly started: string;
1817
+ } | {
1818
+ readonly pending?: boolean | undefined;
1819
+ readonly _tag: "status";
1820
+ readonly statusText: string;
1821
+ } | {
1822
+ readonly pending?: boolean | undefined;
1823
+ readonly text: string;
1824
+ readonly _tag: "suggestion";
1825
+ } | {
1826
+ readonly pending?: boolean | undefined;
1827
+ readonly _tag: "select";
1828
+ readonly options: string[];
1829
+ } | {
1830
+ readonly version: unknown;
1831
+ readonly pending?: boolean | undefined;
1832
+ readonly _tag: "anchor";
1833
+ readonly objectId: string;
1834
+ } | {
1835
+ readonly pending?: boolean | undefined;
1836
+ readonly text: string;
1837
+ readonly _tag: "proposal";
1838
+ } | {
1839
+ readonly pending?: boolean | undefined;
1840
+ readonly _tag: "toolkit";
1841
+ } | {
1842
+ readonly pending?: boolean | undefined;
1843
+ readonly disposition?: string | undefined;
1844
+ readonly _tag: "json";
1845
+ readonly data: string;
1846
+ })[];
1847
+ readonly properties?: {
1848
+ readonly [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: readonly 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
+ readonly name?: string | undefined;
1889
+ readonly role?: "user" | "assistant" | "tool" | undefined;
1890
+ readonly 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?: readonly {
1908
+ readonly value: string;
1909
+ readonly label?: string | undefined;
1910
+ }[] | undefined;
1911
+ readonly identities?: readonly {
1912
+ readonly value: string;
1913
+ readonly label?: string | undefined;
1914
+ }[] | undefined;
1915
+ readonly phoneNumbers?: readonly {
1916
+ readonly value: string;
1917
+ readonly label?: string | undefined;
1918
+ }[] | undefined;
1919
+ readonly fields?: readonly {
1920
+ readonly value: string;
1921
+ readonly label: string;
1922
+ readonly category?: string | undefined;
1923
+ }[] | undefined;
1924
+ readonly addresses?: readonly {
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?: readonly {
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
+ readonly identityDid?: string | undefined;
1945
+ readonly identityKey?: string | undefined;
1946
+ readonly email?: string | undefined;
1947
+ };
1948
+ readonly blocks: readonly ({
1949
+ readonly pending?: boolean | undefined;
1950
+ readonly text: string;
1951
+ readonly mimeType?: string | undefined;
1952
+ readonly disposition?: string | undefined;
1953
+ readonly _tag: "text";
1954
+ } | {
1955
+ readonly pending?: boolean | undefined;
1956
+ readonly _tag: "reasoning";
1957
+ readonly reasoningText?: string | undefined;
1958
+ readonly redactedText?: string | undefined;
1959
+ readonly signature?: string | undefined;
1960
+ } | {
1961
+ readonly name: string;
1962
+ readonly pending?: boolean | undefined;
1963
+ readonly _tag: "toolCall";
1964
+ readonly toolCallId: string;
1965
+ readonly input: string;
1966
+ readonly providerExecuted: boolean;
1967
+ } | {
1968
+ readonly name: string;
1969
+ readonly pending?: boolean | undefined;
1970
+ readonly _tag: "toolResult";
1971
+ readonly toolCallId: string;
1972
+ readonly providerExecuted: boolean;
1973
+ readonly result?: string | undefined;
1974
+ readonly error?: string | undefined;
1975
+ } | {
1976
+ readonly pending?: boolean | undefined;
1977
+ readonly mimeType?: string | undefined;
1978
+ readonly _tag: "summary";
1979
+ readonly message?: string | undefined;
1980
+ readonly model?: string | undefined;
1981
+ readonly usage?: {
1982
+ readonly inputTokens?: number | undefined;
1983
+ readonly outputTokens?: number | undefined;
1984
+ readonly totalTokens?: number | undefined;
1985
+ } | undefined;
1986
+ readonly toolCalls?: number | undefined;
1987
+ readonly errors?: number | undefined;
1988
+ readonly duration?: number | undefined;
1989
+ } | {
1990
+ readonly source?: {
1991
+ readonly type: "base64";
1992
+ readonly mediaType: string;
1993
+ readonly data: string;
1994
+ } | {
1995
+ readonly type: "http";
1996
+ readonly url: string;
1997
+ } | undefined;
1998
+ readonly id? /** In-memory draft threads. */: string | undefined;
1999
+ readonly pending?: boolean | undefined;
2000
+ readonly _tag: "image";
2001
+ } | {
2002
+ readonly name?: string | undefined;
2003
+ readonly pending?: boolean | undefined;
2004
+ readonly _tag: "file";
2005
+ readonly mediaType?: string | undefined;
2006
+ readonly url: string;
2007
+ } | {
2008
+ readonly pending?: boolean | undefined;
2009
+ readonly _tag: "reference";
2010
+ readonly reference: import("@dxos/echo/internal").Ref<any>;
2011
+ } | {
2012
+ readonly pending?: boolean | undefined;
2013
+ readonly text: string;
2014
+ readonly _tag: "transcript";
2015
+ readonly started: string;
2016
+ } | {
2017
+ readonly pending?: boolean | undefined;
2018
+ readonly _tag: "status";
2019
+ readonly statusText: string;
2020
+ } | {
2021
+ readonly pending?: boolean | undefined;
2022
+ readonly text: string;
2023
+ readonly _tag: "suggestion";
2024
+ } | {
2025
+ readonly pending?: boolean | undefined;
2026
+ readonly _tag: "select";
2027
+ readonly options: string[];
2028
+ } | {
2029
+ readonly version: unknown;
2030
+ readonly pending?: boolean | undefined;
2031
+ readonly _tag: "anchor";
2032
+ readonly objectId: string;
2033
+ } | {
2034
+ readonly pending?: boolean | undefined;
2035
+ readonly text: string;
2036
+ readonly _tag: "proposal";
2037
+ } | {
2038
+ readonly pending?: boolean | undefined;
2039
+ readonly _tag: "toolkit";
2040
+ } | {
2041
+ readonly pending?: boolean | undefined;
2042
+ readonly disposition?: string | undefined;
2043
+ readonly _tag: "json";
2044
+ readonly data: string;
2045
+ })[];
2046
+ readonly properties?: {
2047
+ readonly [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?: readonly {
2094
+ readonly value: string;
2095
+ readonly label?: string | undefined;
2096
+ }[] | undefined;
2097
+ readonly identities?: readonly {
2098
+ readonly value: string;
2099
+ readonly label?: string | undefined;
2100
+ }[] | undefined;
2101
+ readonly phoneNumbers?: readonly {
2102
+ readonly value: string;
2103
+ readonly label?: string | undefined;
2104
+ }[] | undefined;
2105
+ readonly fields?: readonly {
2106
+ readonly value: string;
2107
+ readonly label: string;
2108
+ readonly category?: string | undefined;
2109
+ }[] | undefined;
2110
+ readonly addresses?: readonly {
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?: readonly {
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
+ }>>;
354
2130
  identityDid: Schema.optional<typeof Schema.String>;
355
2131
  identityKey: Schema.optional<typeof Schema.String>;
356
2132
  email: Schema.optional<typeof Schema.String>;
357
2133
  name: Schema.optional<typeof Schema.String>;
358
- role: Schema.optional<Schema.Literal<["user", "assistant", "tool"]>>;
359
- }>>;
360
- blocks: Schema.mutable<Schema.Array$<Schema.Union<[Schema.mutable<Schema.TaggedStruct<"anchor", {
361
- pending: Schema.optional<typeof Schema.Boolean>;
362
- objectId: import("@dxos/keys").ObjectIdClass;
363
- version: typeof Schema.Unknown;
364
- }>>, Schema.mutable<Schema.TaggedStruct<"file", {
365
- pending: Schema.optional<typeof Schema.Boolean>;
366
- url: typeof Schema.String;
367
- name: Schema.optional<typeof Schema.String>;
368
- mediaType: Schema.optional<typeof Schema.String>;
369
- }>>, Schema.mutable<Schema.TaggedStruct<"image", {
370
- pending: Schema.optional<typeof Schema.Boolean>;
371
- id: Schema.optional<typeof Schema.String>;
372
- source: Schema.optional<Schema.Union<[Schema.mutable<Schema.Struct<{
373
- type: Schema.Literal<["base64"]>;
374
- mediaType: typeof Schema.String;
375
- data: typeof Schema.String;
376
- }>>, Schema.mutable<Schema.Struct<{
377
- type: Schema.Literal<["http"]>;
378
- url: typeof Schema.String;
379
- }>>]>>;
380
- }>>, Schema.mutable<Schema.TaggedStruct<"json", {
381
- pending: Schema.optional<typeof Schema.Boolean>;
382
- disposition: Schema.optional<typeof Schema.String>;
383
- data: typeof Schema.String;
384
- }>>, Schema.mutable<Schema.TaggedStruct<"proposal", {
385
- pending: Schema.optional<typeof Schema.Boolean>;
386
- text: typeof Schema.String;
387
- }>>, Schema.mutable<Schema.TaggedStruct<"reasoning", {
388
- pending: Schema.optional<typeof Schema.Boolean>;
389
- reasoningText: Schema.optional<typeof Schema.String>;
390
- redactedText: Schema.optional<typeof Schema.String>;
391
- signature: Schema.optional<typeof Schema.String>;
392
- }>>, Schema.mutable<Schema.TaggedStruct<"reference", {
393
- pending: Schema.optional<typeof Schema.Boolean>;
394
- reference: Type.ref<Schema.Schema<Type.Expando, {
395
- [x: string]: any;
396
- id: string;
397
- }, never>>;
398
- }>>, Schema.mutable<Schema.TaggedStruct<"select", {
399
- pending: Schema.optional<typeof Schema.Boolean>;
400
- options: Schema.Array$<typeof Schema.String>;
401
- }>>, Schema.mutable<Schema.TaggedStruct<"status", {
402
- pending: Schema.optional<typeof Schema.Boolean>;
403
- statusText: typeof Schema.String;
404
- }>>, Schema.mutable<Schema.TaggedStruct<"suggestion", {
405
- pending: Schema.optional<typeof Schema.Boolean>;
406
- text: typeof Schema.String;
407
- }>>, Schema.mutable<Schema.TaggedStruct<"summary", {
408
- pending: Schema.optional<typeof Schema.Boolean>;
409
- mimeType: Schema.optional<typeof Schema.String>;
410
- message: Schema.optional<typeof Schema.String>;
411
- model: Schema.optional<typeof Schema.String>;
412
- usage: Schema.optional<Schema.Struct<{
413
- inputTokens: Schema.optional<typeof Schema.Number>;
414
- outputTokens: Schema.optional<typeof Schema.Number>;
415
- totalTokens: Schema.optional<typeof Schema.Number>;
416
- }>>;
417
- toolCalls: Schema.optional<typeof Schema.Number>;
418
- errors: Schema.optional<typeof Schema.Number>;
419
- duration: Schema.optional<typeof Schema.Number>;
420
- }>>, Schema.mutable<Schema.TaggedStruct<"text", {
421
- pending: Schema.optional<typeof Schema.Boolean>;
422
- mimeType: Schema.optional<typeof Schema.String>;
423
- text: typeof Schema.String;
424
- disposition: Schema.optional<typeof Schema.String>;
425
- }>>, Schema.mutable<Schema.TaggedStruct<"toolkit", {
426
- pending: Schema.optional<typeof Schema.Boolean>;
427
- }>>, Schema.mutable<Schema.TaggedStruct<"toolCall", {
428
- pending: Schema.optional<typeof Schema.Boolean>;
429
- toolCallId: typeof Schema.String;
430
- name: typeof Schema.String;
431
- input: typeof Schema.String;
432
- providerExecuted: typeof Schema.Boolean;
433
- }>>, Schema.mutable<Schema.TaggedStruct<"toolResult", {
434
- pending: Schema.optional<typeof Schema.Boolean>;
435
- toolCallId: typeof Schema.String;
436
- name: typeof Schema.String;
437
- result: Schema.optional<typeof Schema.String>;
438
- error: Schema.optional<typeof Schema.String>;
439
- providerExecuted: typeof Schema.Boolean;
440
- }>>, Schema.mutable<Schema.TaggedStruct<"transcript", {
441
- pending: Schema.optional<typeof Schema.Boolean>;
442
- started: typeof Schema.String;
443
- text: typeof Schema.String;
444
- }>>]>>>;
445
- properties: Schema.optional<Schema.mutable<Schema.Record$<typeof Schema.String, typeof Schema.Any>>>;
446
- }>>>;
447
- messageIndex: Schema.optional<typeof Schema.Number>;
448
- }>;
449
- output: typeof Schema.Void;
450
- }>;
451
- export class DeleteMessage extends DeleteMessage_base {
452
- }
453
- export {};
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
+ readonly name?: string | undefined;
2149
+ readonly role?: "user" | "assistant" | "tool" | undefined;
2150
+ readonly 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?: readonly {
2168
+ readonly value: string;
2169
+ readonly label?: string | undefined;
2170
+ }[] | undefined;
2171
+ readonly identities?: readonly {
2172
+ readonly value: string;
2173
+ readonly label?: string | undefined;
2174
+ }[] | undefined;
2175
+ readonly phoneNumbers?: readonly {
2176
+ readonly value: string;
2177
+ readonly label?: string | undefined;
2178
+ }[] | undefined;
2179
+ readonly fields?: readonly {
2180
+ readonly value: string;
2181
+ readonly label: string;
2182
+ readonly category?: string | undefined;
2183
+ }[] | undefined;
2184
+ readonly addresses?: readonly {
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?: readonly {
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
+ readonly identityDid?: string | undefined;
2205
+ readonly identityKey?: string | undefined;
2206
+ readonly email?: string | undefined;
2207
+ };
2208
+ readonly blocks: readonly ({
2209
+ readonly pending?: boolean | undefined;
2210
+ readonly text: string;
2211
+ readonly mimeType?: string | undefined;
2212
+ readonly disposition?: string | undefined;
2213
+ readonly _tag: "text";
2214
+ } | {
2215
+ readonly pending?: boolean | undefined;
2216
+ readonly _tag: "reasoning";
2217
+ readonly reasoningText?: string | undefined;
2218
+ readonly redactedText?: string | undefined;
2219
+ readonly signature?: string | undefined;
2220
+ } | {
2221
+ readonly name: string;
2222
+ readonly pending?: boolean | undefined;
2223
+ readonly _tag: "toolCall";
2224
+ readonly toolCallId: string;
2225
+ readonly input: string;
2226
+ readonly providerExecuted: boolean;
2227
+ } | {
2228
+ readonly name: string;
2229
+ readonly pending?: boolean | undefined;
2230
+ readonly _tag: "toolResult";
2231
+ readonly toolCallId: string;
2232
+ readonly providerExecuted: boolean;
2233
+ readonly result?: string | undefined;
2234
+ readonly error?: string | undefined;
2235
+ } | {
2236
+ readonly pending?: boolean | undefined;
2237
+ readonly mimeType?: string | undefined;
2238
+ readonly _tag: "summary";
2239
+ readonly message?: string | undefined;
2240
+ readonly model?: string | undefined;
2241
+ readonly usage?: {
2242
+ readonly inputTokens?: number | undefined;
2243
+ readonly outputTokens?: number | undefined;
2244
+ readonly totalTokens?: number | undefined;
2245
+ } | undefined;
2246
+ readonly toolCalls?: number | undefined;
2247
+ readonly errors?: number | undefined;
2248
+ readonly duration?: number | undefined;
2249
+ } | {
2250
+ readonly source?: {
2251
+ readonly type: "base64";
2252
+ readonly mediaType: string;
2253
+ readonly data: string;
2254
+ } | {
2255
+ readonly type: "http";
2256
+ readonly url: string;
2257
+ } | undefined;
2258
+ readonly id?: string | undefined;
2259
+ readonly pending?: boolean | undefined;
2260
+ readonly _tag: "image";
2261
+ } | {
2262
+ readonly name?: string | undefined;
2263
+ readonly pending?: boolean | undefined;
2264
+ readonly _tag: "file";
2265
+ readonly mediaType?: string | undefined;
2266
+ readonly url: string;
2267
+ } | {
2268
+ readonly pending?: boolean | undefined;
2269
+ readonly _tag: "reference";
2270
+ readonly reference: import("@dxos/echo/internal").Ref<any>;
2271
+ } | {
2272
+ readonly pending?: boolean | undefined;
2273
+ readonly text: string;
2274
+ readonly _tag: "transcript";
2275
+ readonly started: string;
2276
+ } | {
2277
+ readonly pending?: boolean | undefined;
2278
+ readonly _tag: "status";
2279
+ readonly statusText: string;
2280
+ } | {
2281
+ readonly pending?: boolean | undefined;
2282
+ readonly text: string;
2283
+ readonly _tag: "suggestion";
2284
+ } | {
2285
+ readonly pending?: boolean | undefined;
2286
+ readonly _tag: "select";
2287
+ readonly options: string[];
2288
+ } | {
2289
+ readonly version: unknown;
2290
+ readonly pending?: boolean | undefined;
2291
+ readonly _tag: "anchor";
2292
+ readonly objectId: string;
2293
+ } | {
2294
+ readonly pending?: boolean | undefined;
2295
+ readonly text: string;
2296
+ readonly _tag: "proposal";
2297
+ } | {
2298
+ readonly pending?: boolean | undefined;
2299
+ readonly _tag: "toolkit";
2300
+ } | {
2301
+ readonly pending?: boolean | undefined;
2302
+ readonly disposition?: string | undefined;
2303
+ readonly _tag: "json";
2304
+ readonly data: string;
2305
+ })[];
2306
+ readonly properties?: {
2307
+ readonly [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
+ readonly name?: string | undefined;
2318
+ readonly role?: "user" | "assistant" | "tool" | undefined;
2319
+ readonly 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?: readonly {
2337
+ readonly value: string;
2338
+ readonly label?: string | undefined;
2339
+ }[] | undefined;
2340
+ readonly identities?: readonly {
2341
+ readonly value: string;
2342
+ readonly label?: string | undefined;
2343
+ }[] | undefined;
2344
+ readonly phoneNumbers?: readonly {
2345
+ readonly value: string;
2346
+ readonly label?: string | undefined;
2347
+ }[] | undefined;
2348
+ readonly fields?: readonly {
2349
+ readonly value: string;
2350
+ readonly label: string;
2351
+ readonly category?: string | undefined;
2352
+ }[] | undefined;
2353
+ readonly addresses?: readonly {
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?: readonly {
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
+ readonly identityDid?: string | undefined;
2374
+ readonly identityKey?: string | undefined;
2375
+ readonly email?: string | undefined;
2376
+ };
2377
+ blocks: ({
2378
+ readonly pending?: boolean | undefined;
2379
+ readonly text: string;
2380
+ readonly mimeType?: string | undefined;
2381
+ readonly disposition?: string | undefined;
2382
+ readonly _tag: "text";
2383
+ } | {
2384
+ readonly pending?: boolean | undefined;
2385
+ readonly _tag: "reasoning";
2386
+ readonly reasoningText?: string | undefined;
2387
+ readonly redactedText?: string | undefined;
2388
+ readonly signature?: string | undefined;
2389
+ } | {
2390
+ readonly name: string;
2391
+ readonly pending?: boolean | undefined;
2392
+ readonly _tag: "toolCall";
2393
+ readonly toolCallId: string;
2394
+ readonly input: string;
2395
+ readonly providerExecuted: boolean;
2396
+ } | {
2397
+ readonly name: string;
2398
+ readonly pending?: boolean | undefined;
2399
+ readonly _tag: "toolResult";
2400
+ readonly toolCallId: string;
2401
+ readonly providerExecuted: boolean;
2402
+ readonly result?: string | undefined;
2403
+ readonly error?: string | undefined;
2404
+ } | {
2405
+ readonly pending?: boolean | undefined;
2406
+ readonly mimeType?: string | undefined;
2407
+ readonly _tag: "summary";
2408
+ readonly message?: string | undefined;
2409
+ readonly model?: string | undefined;
2410
+ readonly usage?: {
2411
+ readonly inputTokens?: number | undefined;
2412
+ readonly outputTokens?: number | undefined;
2413
+ readonly totalTokens?: number | undefined;
2414
+ } | undefined;
2415
+ readonly toolCalls?: number | undefined;
2416
+ readonly errors?: number | undefined;
2417
+ readonly duration?: number | undefined;
2418
+ } | {
2419
+ readonly source?: {
2420
+ readonly type: "base64";
2421
+ readonly mediaType: string;
2422
+ readonly data: string;
2423
+ } | {
2424
+ readonly type: "http";
2425
+ readonly url: string;
2426
+ } | undefined;
2427
+ readonly id?: string | undefined;
2428
+ readonly pending?: boolean | undefined;
2429
+ readonly _tag: "image";
2430
+ } | {
2431
+ readonly name?: string | undefined;
2432
+ readonly pending?: boolean | undefined;
2433
+ readonly _tag: "file";
2434
+ readonly mediaType?: string | undefined;
2435
+ readonly url: string;
2436
+ } | {
2437
+ readonly pending?: boolean | undefined;
2438
+ readonly _tag: "reference";
2439
+ readonly reference: import("@dxos/echo/internal").Ref<any>;
2440
+ } | {
2441
+ readonly pending?: boolean | undefined;
2442
+ readonly text: string;
2443
+ readonly _tag: "transcript";
2444
+ readonly started: string;
2445
+ } | {
2446
+ readonly pending?: boolean | undefined;
2447
+ readonly _tag: "status";
2448
+ readonly statusText: string;
2449
+ } | {
2450
+ readonly pending?: boolean | undefined;
2451
+ readonly text: string;
2452
+ readonly _tag: "suggestion";
2453
+ } | {
2454
+ readonly pending?: boolean | undefined;
2455
+ readonly _tag: "select";
2456
+ readonly options: string[];
2457
+ } | {
2458
+ readonly version: unknown;
2459
+ readonly pending?: boolean | undefined;
2460
+ readonly _tag: "anchor";
2461
+ readonly objectId: string;
2462
+ } | {
2463
+ readonly pending?: boolean | undefined;
2464
+ readonly text: string;
2465
+ readonly _tag: "proposal";
2466
+ } | {
2467
+ readonly pending?: boolean | undefined;
2468
+ readonly _tag: "toolkit";
2469
+ } | {
2470
+ readonly pending?: boolean | undefined;
2471
+ readonly disposition?: string | undefined;
2472
+ readonly _tag: "json";
2473
+ readonly data: string;
2474
+ })[];
2475
+ properties?: {
2476
+ readonly [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
+ readonly name?: string | undefined;
2508
+ readonly role?: "user" | "assistant" | "tool" | undefined;
2509
+ readonly 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?: readonly {
2527
+ readonly value: string;
2528
+ readonly label?: string | undefined;
2529
+ }[] | undefined;
2530
+ readonly identities?: readonly {
2531
+ readonly value: string;
2532
+ readonly label?: string | undefined;
2533
+ }[] | undefined;
2534
+ readonly phoneNumbers?: readonly {
2535
+ readonly value: string;
2536
+ readonly label?: string | undefined;
2537
+ }[] | undefined;
2538
+ readonly fields?: readonly {
2539
+ readonly value: string;
2540
+ readonly label: string;
2541
+ readonly category?: string | undefined;
2542
+ }[] | undefined;
2543
+ readonly addresses?: readonly {
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?: readonly {
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
+ readonly identityDid?: string | undefined;
2564
+ readonly identityKey?: string | undefined;
2565
+ readonly email?: string | undefined;
2566
+ };
2567
+ readonly blocks: readonly ({
2568
+ readonly pending?: boolean | undefined;
2569
+ readonly text: string;
2570
+ readonly mimeType?: string | undefined;
2571
+ readonly disposition?: string | undefined;
2572
+ readonly _tag: "text";
2573
+ } | {
2574
+ readonly pending?: boolean | undefined;
2575
+ readonly _tag: "reasoning";
2576
+ readonly reasoningText?: string | undefined;
2577
+ readonly redactedText?: string | undefined;
2578
+ readonly signature?: string | undefined;
2579
+ } | {
2580
+ readonly name: string;
2581
+ readonly pending?: boolean | undefined;
2582
+ readonly _tag: "toolCall";
2583
+ readonly toolCallId: string;
2584
+ readonly input: string;
2585
+ readonly providerExecuted: boolean;
2586
+ } | {
2587
+ readonly name: string;
2588
+ readonly pending?: boolean | undefined;
2589
+ readonly _tag: "toolResult";
2590
+ readonly toolCallId: string;
2591
+ readonly providerExecuted: boolean;
2592
+ readonly result?: string | undefined;
2593
+ readonly error?: string | undefined;
2594
+ } | {
2595
+ readonly pending?: boolean | undefined;
2596
+ readonly mimeType?: string | undefined;
2597
+ readonly _tag: "summary";
2598
+ readonly message?: string | undefined;
2599
+ readonly model?: string | undefined;
2600
+ readonly usage?: {
2601
+ readonly inputTokens?: number | undefined;
2602
+ readonly outputTokens?: number | undefined;
2603
+ readonly totalTokens?: number | undefined;
2604
+ } | undefined;
2605
+ readonly toolCalls?: number | undefined;
2606
+ readonly errors?: number | undefined;
2607
+ readonly duration?: number | undefined;
2608
+ } | {
2609
+ readonly source?: {
2610
+ readonly type: "base64";
2611
+ readonly mediaType: string;
2612
+ readonly data: string;
2613
+ } | {
2614
+ readonly type: "http";
2615
+ readonly url: string;
2616
+ } | undefined;
2617
+ readonly id?: string | undefined;
2618
+ readonly pending?: boolean | undefined;
2619
+ readonly _tag: "image";
2620
+ } | {
2621
+ readonly name?: string | undefined;
2622
+ readonly pending?: boolean | undefined;
2623
+ readonly _tag: "file";
2624
+ readonly mediaType?: string | undefined;
2625
+ readonly url: string;
2626
+ } | {
2627
+ readonly pending?: boolean | undefined;
2628
+ readonly _tag: "reference";
2629
+ readonly reference: import("@dxos/echo/internal").Ref<any>;
2630
+ } | {
2631
+ readonly pending?: boolean | undefined;
2632
+ readonly text: string;
2633
+ readonly _tag: "transcript";
2634
+ readonly started: string;
2635
+ } | {
2636
+ readonly pending?: boolean | undefined;
2637
+ readonly _tag: "status";
2638
+ readonly statusText: string;
2639
+ } | {
2640
+ readonly pending?: boolean | undefined;
2641
+ readonly text: string;
2642
+ readonly _tag: "suggestion";
2643
+ } | {
2644
+ readonly pending?: boolean | undefined;
2645
+ readonly _tag: "select";
2646
+ readonly options: string[];
2647
+ } | {
2648
+ readonly version: unknown;
2649
+ readonly pending?: boolean | undefined;
2650
+ readonly _tag: "anchor";
2651
+ readonly objectId: string;
2652
+ } | {
2653
+ readonly pending?: boolean | undefined;
2654
+ readonly text: string;
2655
+ readonly _tag: "proposal";
2656
+ } | {
2657
+ readonly pending?: boolean | undefined;
2658
+ readonly _tag: "toolkit";
2659
+ } | {
2660
+ readonly pending?: boolean | undefined;
2661
+ readonly disposition?: string | undefined;
2662
+ readonly _tag: "json";
2663
+ readonly data: string;
2664
+ })[];
2665
+ readonly properties?: {
2666
+ readonly [x: string]: any;
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
+ readonly name?: string | undefined;
2677
+ readonly role?: "user" | "assistant" | "tool" | undefined;
2678
+ readonly 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?: readonly {
2696
+ readonly value: string;
2697
+ readonly label?: string | undefined;
2698
+ }[] | undefined;
2699
+ readonly identities?: readonly {
2700
+ readonly value: string;
2701
+ readonly label?: string | undefined;
2702
+ }[] | undefined;
2703
+ readonly phoneNumbers?: readonly {
2704
+ readonly value: string;
2705
+ readonly label?: string | undefined;
2706
+ }[] | undefined;
2707
+ readonly fields?: readonly {
2708
+ readonly value: string;
2709
+ readonly label: string;
2710
+ readonly category?: string | undefined;
2711
+ }[] | undefined;
2712
+ readonly addresses?: readonly {
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?: readonly {
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
+ readonly identityDid?: string | undefined;
2733
+ readonly identityKey?: string | undefined;
2734
+ readonly email?: string | undefined;
2735
+ };
2736
+ blocks: ({
2737
+ readonly pending?: boolean | undefined;
2738
+ readonly text: string;
2739
+ readonly mimeType?: string | undefined;
2740
+ readonly disposition?: string | undefined;
2741
+ readonly _tag: "text";
2742
+ } | {
2743
+ readonly pending?: boolean | undefined;
2744
+ readonly _tag: "reasoning";
2745
+ readonly reasoningText?: string | undefined;
2746
+ readonly redactedText?: string | undefined;
2747
+ readonly signature?: string | undefined;
2748
+ } | {
2749
+ readonly name: string;
2750
+ readonly pending?: boolean | undefined;
2751
+ readonly _tag: "toolCall";
2752
+ readonly toolCallId: string;
2753
+ readonly input: string;
2754
+ readonly providerExecuted: boolean;
2755
+ } | {
2756
+ readonly name: string;
2757
+ readonly pending?: boolean | undefined;
2758
+ readonly _tag: "toolResult";
2759
+ readonly toolCallId: string;
2760
+ readonly providerExecuted: boolean;
2761
+ readonly result?: string | undefined;
2762
+ readonly error?: string | undefined;
2763
+ } | {
2764
+ readonly pending?: boolean | undefined;
2765
+ readonly mimeType?: string | undefined;
2766
+ readonly _tag: "summary";
2767
+ readonly message?: string | undefined;
2768
+ readonly model?: string | undefined;
2769
+ readonly usage?: {
2770
+ readonly inputTokens?: number | undefined;
2771
+ readonly outputTokens?: number | undefined;
2772
+ readonly totalTokens?: number | undefined;
2773
+ } | undefined;
2774
+ readonly toolCalls?: number | undefined;
2775
+ readonly errors?: number | undefined;
2776
+ readonly duration?: number | undefined;
2777
+ } | {
2778
+ readonly source?: {
2779
+ readonly type: "base64";
2780
+ readonly mediaType: string;
2781
+ readonly data: string;
2782
+ } | {
2783
+ readonly type: "http";
2784
+ readonly url: string;
2785
+ } | undefined;
2786
+ readonly id?: string | undefined;
2787
+ readonly pending?: boolean | undefined;
2788
+ readonly _tag: "image";
2789
+ } | {
2790
+ readonly name?: string | undefined;
2791
+ readonly pending?: boolean | undefined;
2792
+ readonly _tag: "file";
2793
+ readonly mediaType?: string | undefined;
2794
+ readonly url: string;
2795
+ } | {
2796
+ readonly pending?: boolean | undefined;
2797
+ readonly _tag: "reference";
2798
+ readonly reference: import("@dxos/echo/internal").Ref<any>;
2799
+ } | {
2800
+ readonly pending?: boolean | undefined;
2801
+ readonly text: string;
2802
+ readonly _tag: "transcript";
2803
+ readonly started: string;
2804
+ } | {
2805
+ readonly pending?: boolean | undefined;
2806
+ readonly _tag: "status";
2807
+ readonly statusText: string;
2808
+ } | {
2809
+ readonly pending?: boolean | undefined;
2810
+ readonly text: string;
2811
+ readonly _tag: "suggestion";
2812
+ } | {
2813
+ readonly pending?: boolean | undefined;
2814
+ readonly _tag: "select";
2815
+ readonly options: string[];
2816
+ } | {
2817
+ readonly version: unknown;
2818
+ readonly pending?: boolean | undefined;
2819
+ readonly _tag: "anchor";
2820
+ readonly objectId: string;
2821
+ } | {
2822
+ readonly pending?: boolean | undefined;
2823
+ readonly text: string;
2824
+ readonly _tag: "proposal";
2825
+ } | {
2826
+ readonly pending?: boolean | undefined;
2827
+ readonly _tag: "toolkit";
2828
+ } | {
2829
+ readonly pending?: boolean | undefined;
2830
+ readonly disposition?: string | undefined;
2831
+ readonly _tag: "json";
2832
+ readonly data: string;
2833
+ })[];
2834
+ properties?: {
2835
+ readonly [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: readonly 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
+ readonly name?: string | undefined;
2864
+ readonly role?: "user" | "assistant" | "tool" | undefined;
2865
+ readonly 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?: readonly {
2883
+ readonly value: string;
2884
+ readonly label?: string | undefined;
2885
+ }[] | undefined;
2886
+ readonly identities?: readonly {
2887
+ readonly value: string;
2888
+ readonly label?: string | undefined;
2889
+ }[] | undefined;
2890
+ readonly phoneNumbers?: readonly {
2891
+ readonly value: string;
2892
+ readonly label?: string | undefined;
2893
+ }[] | undefined;
2894
+ readonly fields?: readonly {
2895
+ readonly value: string;
2896
+ readonly label: string;
2897
+ readonly category?: string | undefined;
2898
+ }[] | undefined;
2899
+ readonly addresses?: readonly {
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?: readonly {
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
+ readonly identityDid?: string | undefined;
2920
+ readonly identityKey?: string | undefined;
2921
+ readonly email?: string | undefined;
2922
+ };
2923
+ readonly blocks: readonly ({
2924
+ readonly pending?: boolean | undefined;
2925
+ readonly text: string;
2926
+ readonly mimeType?: string | undefined;
2927
+ readonly disposition?: string | undefined;
2928
+ readonly _tag: "text";
2929
+ } | {
2930
+ readonly pending?: boolean | undefined;
2931
+ readonly _tag: "reasoning";
2932
+ readonly reasoningText?: string | undefined;
2933
+ readonly redactedText?: string | undefined;
2934
+ readonly signature?: string | undefined;
2935
+ } | {
2936
+ readonly name: string;
2937
+ readonly pending?: boolean | undefined;
2938
+ readonly _tag: "toolCall";
2939
+ readonly toolCallId: string;
2940
+ readonly input: string;
2941
+ readonly providerExecuted: boolean;
2942
+ } | {
2943
+ readonly name: string;
2944
+ readonly pending?: boolean | undefined;
2945
+ readonly _tag: "toolResult";
2946
+ readonly toolCallId: string;
2947
+ readonly providerExecuted: boolean;
2948
+ readonly result?: string | undefined;
2949
+ readonly error?: string | undefined;
2950
+ } | {
2951
+ readonly pending?: boolean | undefined;
2952
+ readonly mimeType?: string | undefined;
2953
+ readonly _tag: "summary";
2954
+ readonly message?: string | undefined;
2955
+ readonly model?: string | undefined;
2956
+ readonly usage?: {
2957
+ readonly inputTokens?: number | undefined;
2958
+ readonly outputTokens?: number | undefined;
2959
+ readonly totalTokens?: number | undefined;
2960
+ } | undefined;
2961
+ readonly toolCalls?: number | undefined;
2962
+ readonly errors?: number | undefined;
2963
+ readonly duration?: number | undefined;
2964
+ } | {
2965
+ readonly source?: {
2966
+ readonly type: "base64";
2967
+ readonly mediaType: string;
2968
+ readonly data: string;
2969
+ } | {
2970
+ readonly type: "http";
2971
+ readonly url: string;
2972
+ } | undefined;
2973
+ readonly id? /** In-memory draft threads. */: string | undefined;
2974
+ readonly pending?: boolean | undefined;
2975
+ readonly _tag: "image";
2976
+ } | {
2977
+ readonly name?: string | undefined;
2978
+ readonly pending?: boolean | undefined;
2979
+ readonly _tag: "file";
2980
+ readonly mediaType?: string | undefined;
2981
+ readonly url: string;
2982
+ } | {
2983
+ readonly pending?: boolean | undefined;
2984
+ readonly _tag: "reference";
2985
+ readonly reference: import("@dxos/echo/internal").Ref<any>;
2986
+ } | {
2987
+ readonly pending?: boolean | undefined;
2988
+ readonly text: string;
2989
+ readonly _tag: "transcript";
2990
+ readonly started: string;
2991
+ } | {
2992
+ readonly pending?: boolean | undefined;
2993
+ readonly _tag: "status";
2994
+ readonly statusText: string;
2995
+ } | {
2996
+ readonly pending?: boolean | undefined;
2997
+ readonly text: string;
2998
+ readonly _tag: "suggestion";
2999
+ } | {
3000
+ readonly pending?: boolean | undefined;
3001
+ readonly _tag: "select";
3002
+ readonly options: string[];
3003
+ } | {
3004
+ readonly version: unknown;
3005
+ readonly pending?: boolean | undefined;
3006
+ readonly _tag: "anchor";
3007
+ readonly objectId: string;
3008
+ } | {
3009
+ readonly pending?: boolean | undefined;
3010
+ readonly text: string;
3011
+ readonly _tag: "proposal";
3012
+ } | {
3013
+ readonly pending?: boolean | undefined;
3014
+ readonly _tag: "toolkit";
3015
+ } | {
3016
+ readonly pending?: boolean | undefined;
3017
+ readonly disposition?: string | undefined;
3018
+ readonly _tag: "json";
3019
+ readonly data: string;
3020
+ })[];
3021
+ readonly properties?: {
3022
+ readonly [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
+ readonly name?: string | undefined;
3057
+ readonly role?: "user" | "assistant" | "tool" | undefined;
3058
+ readonly 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?: readonly {
3076
+ readonly value: string;
3077
+ readonly label?: string | undefined;
3078
+ }[] | undefined;
3079
+ readonly identities?: readonly {
3080
+ readonly value: string;
3081
+ readonly label?: string | undefined;
3082
+ }[] | undefined;
3083
+ readonly phoneNumbers?: readonly {
3084
+ readonly value: string;
3085
+ readonly label?: string | undefined;
3086
+ }[] | undefined;
3087
+ readonly fields?: readonly {
3088
+ readonly value: string;
3089
+ readonly label: string;
3090
+ readonly category?: string | undefined;
3091
+ }[] | undefined;
3092
+ readonly addresses?: readonly {
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?: readonly {
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
+ readonly identityDid?: string | undefined;
3113
+ readonly identityKey?: string | undefined;
3114
+ readonly email?: string | undefined;
3115
+ };
3116
+ readonly blocks: readonly ({
3117
+ readonly pending?: boolean | undefined;
3118
+ readonly text: string;
3119
+ readonly mimeType?: string | undefined;
3120
+ readonly disposition?: string | undefined;
3121
+ readonly _tag: "text";
3122
+ } | {
3123
+ readonly pending?: boolean | undefined;
3124
+ readonly _tag: "reasoning";
3125
+ readonly reasoningText?: string | undefined;
3126
+ readonly redactedText?: string | undefined;
3127
+ readonly signature?: string | undefined;
3128
+ } | {
3129
+ readonly name: string;
3130
+ readonly pending?: boolean | undefined;
3131
+ readonly _tag: "toolCall";
3132
+ readonly toolCallId: string;
3133
+ readonly input: string;
3134
+ readonly providerExecuted: boolean;
3135
+ } | {
3136
+ readonly name: string;
3137
+ readonly pending?: boolean | undefined;
3138
+ readonly _tag: "toolResult";
3139
+ readonly toolCallId: string;
3140
+ readonly providerExecuted: boolean;
3141
+ readonly result?: string | undefined;
3142
+ readonly error?: string | undefined;
3143
+ } | {
3144
+ readonly pending?: boolean | undefined;
3145
+ readonly mimeType?: string | undefined;
3146
+ readonly _tag: "summary";
3147
+ readonly message?: string | undefined;
3148
+ readonly model?: string | undefined;
3149
+ readonly usage?: {
3150
+ readonly inputTokens?: number | undefined;
3151
+ readonly outputTokens?: number | undefined;
3152
+ readonly totalTokens?: number | undefined;
3153
+ } | undefined;
3154
+ readonly toolCalls?: number | undefined;
3155
+ readonly errors?: number | undefined;
3156
+ readonly duration?: number | undefined;
3157
+ } | {
3158
+ readonly source?: {
3159
+ readonly type: "base64";
3160
+ readonly mediaType: string;
3161
+ readonly data: string;
3162
+ } | {
3163
+ readonly type: "http";
3164
+ readonly url: string;
3165
+ } | undefined;
3166
+ readonly id?: string | undefined;
3167
+ readonly pending?: boolean | undefined;
3168
+ readonly _tag: "image";
3169
+ } | {
3170
+ readonly name?: string | undefined;
3171
+ readonly pending?: boolean | undefined;
3172
+ readonly _tag: "file";
3173
+ readonly mediaType?: string | undefined;
3174
+ readonly url: string;
3175
+ } | {
3176
+ readonly pending?: boolean | undefined;
3177
+ readonly _tag: "reference";
3178
+ readonly reference: import("@dxos/echo/internal").Ref<any>;
3179
+ } | {
3180
+ readonly pending?: boolean | undefined;
3181
+ readonly text: string;
3182
+ readonly _tag: "transcript";
3183
+ readonly started: string;
3184
+ } | {
3185
+ readonly pending?: boolean | undefined;
3186
+ readonly _tag: "status";
3187
+ readonly statusText: string;
3188
+ } | {
3189
+ readonly pending?: boolean | undefined;
3190
+ readonly text: string;
3191
+ readonly _tag: "suggestion";
3192
+ } | {
3193
+ readonly pending?: boolean | undefined;
3194
+ readonly _tag: "select";
3195
+ readonly options: string[];
3196
+ } | {
3197
+ readonly version: unknown;
3198
+ readonly pending?: boolean | undefined;
3199
+ readonly _tag: "anchor";
3200
+ readonly objectId: string;
3201
+ } | {
3202
+ readonly pending?: boolean | undefined;
3203
+ readonly text: string;
3204
+ readonly _tag: "proposal";
3205
+ } | {
3206
+ readonly pending?: boolean | undefined;
3207
+ readonly _tag: "toolkit";
3208
+ } | {
3209
+ readonly pending?: boolean | undefined;
3210
+ readonly disposition?: string | undefined;
3211
+ readonly _tag: "json";
3212
+ readonly data: string;
3213
+ })[];
3214
+ readonly properties?: {
3215
+ readonly [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
+ };
454
3225
  }
455
3226
  export declare const ThreadSettingsSchema: Schema.mutable<Schema.Struct<{}>>;
456
3227
  export type ThreadSettingsProps = Schema.Schema.Type<typeof ThreadSettingsSchema>;
457
3228
  export interface ThreadModel {
458
- root: ThreadType;
3229
+ root: Thread.Thread;
459
3230
  }
460
3231
  type SubjectId = string;
461
3232
  export type ViewState = {
@@ -466,7 +3237,7 @@ export type ThreadState = {
466
3237
  /** Object toolbar state. */
467
3238
  toolbar: Record<string, boolean>;
468
3239
  /** In-memory draft threads. */
469
- drafts: Record<string, AnchoredTo[]>;
3240
+ drafts: Record<string, AnchoredTo.AnchoredTo[]>;
470
3241
  current?: string | undefined;
471
3242
  };
472
3243
  export {};