@dxos/plugin-thread 0.8.3-staging.0fa589b → 0.8.4-main.1068cf700f

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 (462) 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-JKQUJOTX.mjs → chunk-CP7E2HRE.mjs} +3 -3
  13. package/dist/lib/browser/chunk-CP7E2HRE.mjs.map +7 -0
  14. package/dist/lib/browser/{chunk-4H4A264L.mjs → chunk-ERK254BS.mjs} +407 -305
  15. package/dist/lib/browser/chunk-ERK254BS.mjs.map +7 -0
  16. package/dist/lib/browser/chunk-ISCHODBV.mjs +106 -0
  17. package/dist/lib/browser/chunk-ISCHODBV.mjs.map +7 -0
  18. package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
  19. package/dist/lib/browser/chunk-JBB73URQ.mjs +184 -0
  20. package/dist/lib/browser/chunk-JBB73URQ.mjs.map +7 -0
  21. package/dist/lib/browser/chunk-RH7XTXSR.mjs +106 -0
  22. package/dist/lib/browser/chunk-RH7XTXSR.mjs.map +7 -0
  23. package/dist/lib/browser/index.mjs +164 -151
  24. package/dist/lib/browser/index.mjs.map +4 -4
  25. package/dist/lib/browser/markdown-YJCSOWXX.mjs +210 -0
  26. package/dist/lib/browser/markdown-YJCSOWXX.mjs.map +7 -0
  27. package/dist/lib/browser/meta.json +1 -1
  28. package/dist/lib/browser/operation-resolver-PROCP5L4.mjs +441 -0
  29. package/dist/lib/browser/operation-resolver-PROCP5L4.mjs.map +7 -0
  30. package/dist/lib/browser/react-root-FHK2SVPU.mjs +25 -0
  31. package/dist/lib/browser/react-root-FHK2SVPU.mjs.map +7 -0
  32. package/dist/lib/browser/react-surface-7MQA6VSH.mjs +111 -0
  33. package/dist/lib/browser/react-surface-7MQA6VSH.mjs.map +7 -0
  34. package/dist/lib/browser/repair-6OZ75AUU.mjs +38 -0
  35. package/dist/lib/browser/repair-6OZ75AUU.mjs.map +7 -0
  36. package/dist/lib/browser/settings-TWKOTGSU.mjs +33 -0
  37. package/dist/lib/browser/settings-TWKOTGSU.mjs.map +7 -0
  38. package/dist/lib/browser/state-SJR2GL5G.mjs +24 -0
  39. package/dist/lib/browser/state-SJR2GL5G.mjs.map +7 -0
  40. package/dist/lib/browser/types/index.mjs +10 -12
  41. package/dist/lib/node-esm/app-graph-builder-IN6VLJBO.mjs +190 -0
  42. package/dist/lib/node-esm/app-graph-builder-IN6VLJBO.mjs.map +7 -0
  43. package/dist/lib/node-esm/blueprint-definition-SXVKFUNV.mjs +19 -0
  44. package/dist/lib/node-esm/blueprint-definition-SXVKFUNV.mjs.map +7 -0
  45. package/dist/lib/node-esm/blueprints/index.mjs +9 -0
  46. package/dist/lib/node-esm/call-manager-36UAAQCJ.mjs +27 -0
  47. package/dist/lib/node-esm/call-manager-36UAAQCJ.mjs.map +7 -0
  48. package/dist/lib/node-esm/{chunk-PGRP3O4O.mjs → chunk-ABUFOZVX.mjs} +3 -3
  49. package/dist/lib/node-esm/chunk-ABUFOZVX.mjs.map +7 -0
  50. package/dist/lib/node-esm/chunk-G7PZNN3Z.mjs +185 -0
  51. package/dist/lib/node-esm/chunk-G7PZNN3Z.mjs.map +7 -0
  52. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
  53. package/dist/lib/node-esm/chunk-OKVE6CLS.mjs +107 -0
  54. package/dist/lib/node-esm/chunk-OKVE6CLS.mjs.map +7 -0
  55. package/dist/lib/node-esm/{chunk-WXNPD542.mjs → chunk-QP3KQOPQ.mjs} +406 -305
  56. package/dist/lib/node-esm/chunk-QP3KQOPQ.mjs.map +7 -0
  57. package/dist/lib/node-esm/chunk-RBRWHRHE.mjs +1818 -0
  58. package/dist/lib/node-esm/chunk-RBRWHRHE.mjs.map +7 -0
  59. package/dist/lib/node-esm/chunk-VBI32FGI.mjs +108 -0
  60. package/dist/lib/node-esm/chunk-VBI32FGI.mjs.map +7 -0
  61. package/dist/lib/node-esm/chunk-WMWUXWAS.mjs +294 -0
  62. package/dist/lib/node-esm/chunk-WMWUXWAS.mjs.map +7 -0
  63. package/dist/lib/node-esm/index.mjs +164 -151
  64. package/dist/lib/node-esm/index.mjs.map +4 -4
  65. package/dist/lib/node-esm/markdown-6LRP3PAP.mjs +211 -0
  66. package/dist/lib/node-esm/markdown-6LRP3PAP.mjs.map +7 -0
  67. package/dist/lib/node-esm/meta.json +1 -1
  68. package/dist/lib/node-esm/operation-resolver-LPEPV5BF.mjs +442 -0
  69. package/dist/lib/node-esm/operation-resolver-LPEPV5BF.mjs.map +7 -0
  70. package/dist/lib/node-esm/react-root-P5P4VGQJ.mjs +26 -0
  71. package/dist/lib/node-esm/react-root-P5P4VGQJ.mjs.map +7 -0
  72. package/dist/lib/node-esm/react-surface-M7VI5XG2.mjs +112 -0
  73. package/dist/lib/node-esm/react-surface-M7VI5XG2.mjs.map +7 -0
  74. package/dist/lib/node-esm/repair-6777EPOM.mjs +39 -0
  75. package/dist/lib/node-esm/repair-6777EPOM.mjs.map +7 -0
  76. package/dist/lib/node-esm/settings-5O254B3Z.mjs +34 -0
  77. package/dist/lib/node-esm/settings-5O254B3Z.mjs.map +7 -0
  78. package/dist/lib/node-esm/state-5R3TZJQE.mjs +25 -0
  79. package/dist/lib/node-esm/state-5R3TZJQE.mjs.map +7 -0
  80. package/dist/lib/node-esm/types/index.mjs +10 -12
  81. package/dist/types/src/ThreadPlugin.d.ts +2 -1
  82. package/dist/types/src/ThreadPlugin.d.ts.map +1 -1
  83. package/dist/types/src/blueprints/index.d.ts +2 -0
  84. package/dist/types/src/blueprints/index.d.ts.map +1 -0
  85. package/dist/types/src/blueprints/thread-blueprint.d.ts +21 -0
  86. package/dist/types/src/blueprints/thread-blueprint.d.ts.map +1 -0
  87. package/dist/types/src/calls/call-manager.d.ts +40 -30
  88. package/dist/types/src/calls/call-manager.d.ts.map +1 -1
  89. package/dist/types/src/calls/call-swarm-synchronizer.d.ts +2 -2
  90. package/dist/types/src/calls/call-swarm-synchronizer.d.ts.map +1 -1
  91. package/dist/types/src/calls/media-manager.d.ts +2 -2
  92. package/dist/types/src/calls/media-manager.d.ts.map +1 -1
  93. package/dist/types/src/calls/types.d.ts +1 -1
  94. package/dist/types/src/calls/types.d.ts.map +1 -1
  95. package/dist/types/src/calls/util/calls-service.d.ts +9 -4
  96. package/dist/types/src/calls/util/calls-service.d.ts.map +1 -1
  97. package/dist/types/src/calls/util/stub-media-streams.d.ts.map +1 -1
  98. package/dist/types/src/calls/util/task-scheduling.d.ts +2 -2
  99. package/dist/types/src/calls/util/task-scheduling.d.ts.map +1 -1
  100. package/dist/types/src/calls-service.stories.d.ts +23 -0
  101. package/dist/types/src/calls-service.stories.d.ts.map +1 -0
  102. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +6 -0
  103. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +1 -0
  104. package/dist/types/src/capabilities/app-graph-builder/index.d.ts +3 -0
  105. package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +1 -0
  106. package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts +10 -0
  107. package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts.map +1 -0
  108. package/dist/types/src/capabilities/blueprint-definition/index.d.ts +3 -0
  109. package/dist/types/src/capabilities/blueprint-definition/index.d.ts.map +1 -0
  110. package/dist/types/src/capabilities/call-manager/call-manager.d.ts +6 -0
  111. package/dist/types/src/capabilities/call-manager/call-manager.d.ts.map +1 -0
  112. package/dist/types/src/capabilities/call-manager/index.d.ts +3 -0
  113. package/dist/types/src/capabilities/call-manager/index.d.ts.map +1 -0
  114. package/dist/types/src/capabilities/index.d.ts +10 -15
  115. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  116. package/dist/types/src/capabilities/markdown/index.d.ts +3 -0
  117. package/dist/types/src/capabilities/markdown/index.d.ts.map +1 -0
  118. package/dist/types/src/capabilities/markdown/markdown.d.ts +5 -0
  119. package/dist/types/src/capabilities/markdown/markdown.d.ts.map +1 -0
  120. package/dist/types/src/capabilities/operation-resolver/index.d.ts +3 -0
  121. package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +1 -0
  122. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +5 -0
  123. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +1 -0
  124. package/dist/types/src/capabilities/react-root/index.d.ts +6 -0
  125. package/dist/types/src/capabilities/react-root/index.d.ts.map +1 -0
  126. package/dist/types/src/capabilities/react-root/react-root.d.ts +9 -0
  127. package/dist/types/src/capabilities/react-root/react-root.d.ts.map +1 -0
  128. package/dist/types/src/capabilities/react-surface/index.d.ts +3 -0
  129. package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
  130. package/dist/types/src/capabilities/react-surface/react-surface.d.ts +5 -0
  131. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
  132. package/dist/types/src/capabilities/repair/index.d.ts +3 -0
  133. package/dist/types/src/capabilities/repair/index.d.ts.map +1 -0
  134. package/dist/types/src/capabilities/repair/repair.d.ts +6 -0
  135. package/dist/types/src/capabilities/repair/repair.d.ts.map +1 -0
  136. package/dist/types/src/capabilities/settings/index.d.ts +3 -0
  137. package/dist/types/src/capabilities/settings/index.d.ts.map +1 -0
  138. package/dist/types/src/capabilities/settings/settings.d.ts +6 -0
  139. package/dist/types/src/capabilities/settings/settings.d.ts.map +1 -0
  140. package/dist/types/src/capabilities/state/index.d.ts +3 -0
  141. package/dist/types/src/capabilities/state/index.d.ts.map +1 -0
  142. package/dist/types/src/capabilities/state/state.d.ts +7 -0
  143. package/dist/types/src/capabilities/state/state.d.ts.map +1 -0
  144. package/dist/types/src/components/Call/Call.d.ts.map +1 -1
  145. package/dist/types/src/components/Call/Toolbar.d.ts +2 -2
  146. package/dist/types/src/components/Call/Toolbar.d.ts.map +1 -1
  147. package/dist/types/src/components/CallDebugPanel.d.ts +7 -0
  148. package/dist/types/src/components/CallDebugPanel.d.ts.map +1 -1
  149. package/dist/types/src/components/CallSidebar.d.ts.map +1 -1
  150. package/dist/types/src/components/ChannelContainer.d.ts +5 -6
  151. package/dist/types/src/components/ChannelContainer.d.ts.map +1 -1
  152. package/dist/types/src/components/ChannelContainer.stories.d.ts +159 -5
  153. package/dist/types/src/components/ChannelContainer.stories.d.ts.map +1 -1
  154. package/dist/types/src/components/Chat.stories.d.ts +162 -4
  155. package/dist/types/src/components/Chat.stories.d.ts.map +1 -1
  156. package/dist/types/src/components/ChatContainer.d.ts +8 -7
  157. package/dist/types/src/components/ChatContainer.d.ts.map +1 -1
  158. package/dist/types/src/components/Comments.stories.d.ts +160 -4
  159. package/dist/types/src/components/Comments.stories.d.ts.map +1 -1
  160. package/dist/types/src/components/CommentsContainer.d.ts +6 -6
  161. package/dist/types/src/components/CommentsContainer.d.ts.map +1 -1
  162. package/dist/types/src/components/CommentsThreadContainer.d.ts +14 -0
  163. package/dist/types/src/components/CommentsThreadContainer.d.ts.map +1 -0
  164. package/dist/types/src/components/Lobby/Lobby.d.ts.map +1 -1
  165. package/dist/types/src/components/Media/VideoObject.d.ts +3 -3
  166. package/dist/types/src/components/Media/VideoObject.d.ts.map +1 -1
  167. package/dist/types/src/components/Media/VideoObject.stories.d.ts +18 -4
  168. package/dist/types/src/components/Media/VideoObject.stories.d.ts.map +1 -1
  169. package/dist/types/src/components/MessageContainer.d.ts +7 -3
  170. package/dist/types/src/components/MessageContainer.d.ts.map +1 -1
  171. package/dist/types/src/components/Participant/Participant.d.ts.map +1 -1
  172. package/dist/types/src/components/Participant/ParticipantGrid.d.ts.map +1 -1
  173. package/dist/types/src/components/ResponsiveGrid/ResponsiveContainer.stories.d.ts +159 -3
  174. package/dist/types/src/components/ResponsiveGrid/ResponsiveContainer.stories.d.ts.map +1 -1
  175. package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.stories.d.ts +161 -4
  176. package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.stories.d.ts.map +1 -1
  177. package/dist/types/src/components/ResponsiveGrid/ResponsiveGridItem.d.ts.map +1 -1
  178. package/dist/types/src/components/ThreadCompanion.d.ts +5 -0
  179. package/dist/types/src/components/ThreadCompanion.d.ts.map +1 -0
  180. package/dist/types/src/components/ThreadSettings.d.ts +4 -2
  181. package/dist/types/src/components/ThreadSettings.d.ts.map +1 -1
  182. package/dist/types/src/components/command-extension.d.ts.map +1 -1
  183. package/dist/types/src/components/index.d.ts +4 -4
  184. package/dist/types/src/components/index.d.ts.map +1 -1
  185. package/dist/types/src/components/testing.d.ts +3 -2
  186. package/dist/types/src/components/testing.d.ts.map +1 -1
  187. package/dist/types/src/extensions/threads.d.ts +8 -3
  188. package/dist/types/src/extensions/threads.d.ts.map +1 -1
  189. package/dist/types/src/functions/create-proposals.d.ts +13 -0
  190. package/dist/types/src/functions/create-proposals.d.ts.map +1 -0
  191. package/dist/types/src/functions/index.d.ts +2 -0
  192. package/dist/types/src/functions/index.d.ts.map +1 -0
  193. package/dist/types/src/hooks/analytics.d.ts +2 -3
  194. package/dist/types/src/hooks/analytics.d.ts.map +1 -1
  195. package/dist/types/src/hooks/index.d.ts +3 -0
  196. package/dist/types/src/hooks/index.d.ts.map +1 -1
  197. package/dist/types/src/hooks/useBlackCanvasStreamTrack.d.ts +2 -0
  198. package/dist/types/src/hooks/useBlackCanvasStreamTrack.d.ts.map +1 -0
  199. package/dist/types/src/hooks/useInaudibleAudioStreamTrack.d.ts +2 -0
  200. package/dist/types/src/hooks/useInaudibleAudioStreamTrack.d.ts.map +1 -0
  201. package/dist/types/src/hooks/useVideoStreamTrack.d.ts +3 -0
  202. package/dist/types/src/hooks/useVideoStreamTrack.d.ts.map +1 -0
  203. package/dist/types/src/index.d.ts +1 -1
  204. package/dist/types/src/index.d.ts.map +1 -1
  205. package/dist/types/src/meta.d.ts +3 -4
  206. package/dist/types/src/meta.d.ts.map +1 -1
  207. package/dist/types/src/testing/stories.d.ts +2 -1
  208. package/dist/types/src/testing/stories.d.ts.map +1 -1
  209. package/dist/types/src/translations.d.ts +146 -194
  210. package/dist/types/src/translations.d.ts.map +1 -1
  211. package/dist/types/src/types/Channel.d.ts +695 -0
  212. package/dist/types/src/types/Channel.d.ts.map +1 -0
  213. package/dist/types/src/types/capabilities.d.ts +23 -0
  214. package/dist/types/src/types/capabilities.d.ts.map +1 -0
  215. package/dist/types/src/types/index.d.ts +2 -1
  216. package/dist/types/src/types/index.d.ts.map +1 -1
  217. package/dist/types/src/types/types.d.ts +3224 -320
  218. package/dist/types/src/types/types.d.ts.map +1 -1
  219. package/dist/types/src/util.d.ts +17 -2
  220. package/dist/types/src/util.d.ts.map +1 -1
  221. package/dist/types/tsconfig.tsbuildinfo +1 -1
  222. package/package.json +93 -67
  223. package/src/ThreadPlugin.tsx +107 -143
  224. package/src/blueprints/index.ts +5 -0
  225. package/src/blueprints/thread-blueprint.ts +32 -0
  226. package/src/calls/call-manager.ts +78 -50
  227. package/src/calls/call-swarm-synchronizer.ts +3 -3
  228. package/src/calls/media-manager.ts +77 -41
  229. package/src/calls/types.ts +8 -4
  230. package/src/calls/util/calls-service.ts +73 -19
  231. package/src/calls/util/stub-media-streams.ts +63 -9
  232. package/src/calls/util/task-scheduling.ts +4 -4
  233. package/src/calls-service.stories.tsx +229 -0
  234. package/src/capabilities/app-graph-builder/app-graph-builder.ts +202 -0
  235. package/src/capabilities/app-graph-builder/index.ts +7 -0
  236. package/src/capabilities/blueprint-definition/blueprint-definition.ts +24 -0
  237. package/src/capabilities/blueprint-definition/index.ts +7 -0
  238. package/src/capabilities/call-manager/call-manager.ts +26 -0
  239. package/src/capabilities/call-manager/index.ts +7 -0
  240. package/src/capabilities/index.ts +10 -12
  241. package/src/capabilities/markdown/index.ts +7 -0
  242. package/src/capabilities/markdown/markdown.ts +83 -0
  243. package/src/capabilities/operation-resolver/index.ts +7 -0
  244. package/src/capabilities/operation-resolver/operation-resolver.ts +400 -0
  245. package/src/capabilities/react-root/index.ts +7 -0
  246. package/src/capabilities/react-root/react-root.tsx +20 -0
  247. package/src/capabilities/react-surface/index.ts +7 -0
  248. package/src/capabilities/react-surface/react-surface.tsx +98 -0
  249. package/src/capabilities/repair/index.ts +7 -0
  250. package/src/capabilities/repair/repair.ts +51 -0
  251. package/src/capabilities/settings/index.ts +7 -0
  252. package/src/capabilities/settings/settings.ts +34 -0
  253. package/src/capabilities/state/index.ts +7 -0
  254. package/src/capabilities/state/state.ts +22 -0
  255. package/src/components/Call/Call.tsx +11 -6
  256. package/src/components/Call/Toolbar.tsx +42 -33
  257. package/src/components/CallDebugPanel.tsx +114 -57
  258. package/src/components/CallSidebar.tsx +6 -3
  259. package/src/components/ChannelContainer.stories.tsx +23 -21
  260. package/src/components/ChannelContainer.tsx +47 -38
  261. package/src/components/Chat.stories.tsx +37 -39
  262. package/src/components/ChatContainer.tsx +56 -44
  263. package/src/components/Comments.stories.tsx +63 -55
  264. package/src/components/CommentsContainer.tsx +20 -16
  265. package/src/components/CommentsThreadContainer.tsx +173 -0
  266. package/src/components/Lobby/Lobby.tsx +10 -8
  267. package/src/components/Media/AudioStream.tsx +2 -2
  268. package/src/components/Media/VideoObject.stories.tsx +36 -28
  269. package/src/components/Media/VideoObject.tsx +2 -2
  270. package/src/components/MessageContainer.tsx +117 -68
  271. package/src/components/Participant/Participant.tsx +34 -15
  272. package/src/components/Participant/ParticipantGrid.tsx +2 -1
  273. package/src/components/ResponsiveGrid/ResponsiveContainer.stories.tsx +9 -9
  274. package/src/components/ResponsiveGrid/ResponsiveContainer.tsx +3 -3
  275. package/src/components/ResponsiveGrid/ResponsiveGrid.stories.tsx +45 -43
  276. package/src/components/ResponsiveGrid/ResponsiveGrid.tsx +7 -7
  277. package/src/components/ResponsiveGrid/ResponsiveGridItem.tsx +10 -7
  278. package/src/components/ThreadCompanion.tsx +194 -0
  279. package/src/components/ThreadSettings.tsx +11 -6
  280. package/src/components/command-extension.ts +7 -4
  281. package/src/components/index.ts +5 -8
  282. package/src/components/testing.ts +28 -8
  283. package/src/extensions/threads.ts +88 -44
  284. package/src/functions/create-proposals.ts +57 -0
  285. package/src/functions/index.ts +5 -0
  286. package/src/hooks/analytics.ts +21 -21
  287. package/src/hooks/index.ts +4 -0
  288. package/src/hooks/useBlackCanvasStreamTrack.tsx +27 -0
  289. package/src/hooks/useDebugMode.ts +1 -1
  290. package/src/hooks/useInaudibleAudioStreamTrack.tsx +27 -0
  291. package/src/hooks/useVideoStreamTrack.tsx +36 -0
  292. package/src/index.ts +1 -1
  293. package/src/meta.ts +11 -7
  294. package/src/testing/stories.ts +23 -17
  295. package/src/translations.ts +18 -10
  296. package/src/types/Channel.ts +30 -0
  297. package/src/types/capabilities.ts +34 -0
  298. package/src/types/index.ts +2 -1
  299. package/src/types/types.ts +171 -75
  300. package/src/typings/peermetrics-webrtc-stats.d.ts +17 -1
  301. package/src/typings.d.ts +8 -0
  302. package/src/util.ts +1 -1
  303. package/dist/lib/browser/ChannelContainer-PKFBVENP.mjs +0 -15
  304. package/dist/lib/browser/ChatContainer-RSOKYAMK.mjs +0 -14
  305. package/dist/lib/browser/app-graph-builder-OY7R7EJP.mjs +0 -171
  306. package/dist/lib/browser/app-graph-builder-OY7R7EJP.mjs.map +0 -7
  307. package/dist/lib/browser/call-manager-APQAZWHT.mjs +0 -23
  308. package/dist/lib/browser/call-manager-APQAZWHT.mjs.map +0 -7
  309. package/dist/lib/browser/chunk-4H4A264L.mjs.map +0 -7
  310. package/dist/lib/browser/chunk-5P5BH5GE.mjs +0 -88
  311. package/dist/lib/browser/chunk-5P5BH5GE.mjs.map +0 -7
  312. package/dist/lib/browser/chunk-6NBVNXTM.mjs +0 -21
  313. package/dist/lib/browser/chunk-6NBVNXTM.mjs.map +0 -7
  314. package/dist/lib/browser/chunk-AEXWNS6Z.mjs +0 -128
  315. package/dist/lib/browser/chunk-AEXWNS6Z.mjs.map +0 -7
  316. package/dist/lib/browser/chunk-IIUTBDVB.mjs +0 -17
  317. package/dist/lib/browser/chunk-IIUTBDVB.mjs.map +0 -7
  318. package/dist/lib/browser/chunk-JKQUJOTX.mjs.map +0 -7
  319. package/dist/lib/browser/chunk-PG5CTFKK.mjs +0 -550
  320. package/dist/lib/browser/chunk-PG5CTFKK.mjs.map +0 -7
  321. package/dist/lib/browser/chunk-R5MDLUPC.mjs +0 -18
  322. package/dist/lib/browser/chunk-R5MDLUPC.mjs.map +0 -7
  323. package/dist/lib/browser/chunk-TAFSCSUR.mjs +0 -351
  324. package/dist/lib/browser/chunk-TAFSCSUR.mjs.map +0 -7
  325. package/dist/lib/browser/chunk-XZKBN3NS.mjs +0 -983
  326. package/dist/lib/browser/chunk-XZKBN3NS.mjs.map +0 -7
  327. package/dist/lib/browser/intent-resolver-FK2MDVDT.mjs +0 -353
  328. package/dist/lib/browser/intent-resolver-FK2MDVDT.mjs.map +0 -7
  329. package/dist/lib/browser/markdown-TE5SWWNJ.mjs +0 -169
  330. package/dist/lib/browser/markdown-TE5SWWNJ.mjs.map +0 -7
  331. package/dist/lib/browser/react-root-NK3A4VG7.mjs +0 -27
  332. package/dist/lib/browser/react-root-NK3A4VG7.mjs.map +0 -7
  333. package/dist/lib/browser/react-surface-VXUJKSOG.mjs +0 -108
  334. package/dist/lib/browser/react-surface-VXUJKSOG.mjs.map +0 -7
  335. package/dist/lib/browser/settings-RB2RSLXV.mjs +0 -22
  336. package/dist/lib/browser/settings-RB2RSLXV.mjs.map +0 -7
  337. package/dist/lib/browser/state-RKL5MSDP.mjs +0 -34
  338. package/dist/lib/browser/state-RKL5MSDP.mjs.map +0 -7
  339. package/dist/lib/node/ChannelContainer-YS5YT2ML.cjs +0 -36
  340. package/dist/lib/node/ChannelContainer-YS5YT2ML.cjs.map +0 -7
  341. package/dist/lib/node/ChatContainer-GCOM3M56.cjs +0 -35
  342. package/dist/lib/node/ChatContainer-GCOM3M56.cjs.map +0 -7
  343. package/dist/lib/node/app-graph-builder-PBHJNDQY.cjs +0 -179
  344. package/dist/lib/node/app-graph-builder-PBHJNDQY.cjs.map +0 -7
  345. package/dist/lib/node/call-manager-HV2XJW5O.cjs +0 -37
  346. package/dist/lib/node/call-manager-HV2XJW5O.cjs.map +0 -7
  347. package/dist/lib/node/chunk-44I33JDT.cjs +0 -1731
  348. package/dist/lib/node/chunk-44I33JDT.cjs.map +0 -7
  349. package/dist/lib/node/chunk-4YSNVPWU.cjs +0 -37
  350. package/dist/lib/node/chunk-4YSNVPWU.cjs.map +0 -7
  351. package/dist/lib/node/chunk-E3WBZTTI.cjs +0 -371
  352. package/dist/lib/node/chunk-E3WBZTTI.cjs.map +0 -7
  353. package/dist/lib/node/chunk-ERG7G6FF.cjs +0 -59
  354. package/dist/lib/node/chunk-ERG7G6FF.cjs.map +0 -7
  355. package/dist/lib/node/chunk-FUXJAVFZ.cjs +0 -108
  356. package/dist/lib/node/chunk-FUXJAVFZ.cjs.map +0 -7
  357. package/dist/lib/node/chunk-HLMCEE5K.cjs +0 -41
  358. package/dist/lib/node/chunk-HLMCEE5K.cjs.map +0 -7
  359. package/dist/lib/node/chunk-IP533AMV.cjs +0 -554
  360. package/dist/lib/node/chunk-IP533AMV.cjs.map +0 -7
  361. package/dist/lib/node/chunk-LR5NENBE.cjs +0 -54
  362. package/dist/lib/node/chunk-LR5NENBE.cjs.map +0 -7
  363. package/dist/lib/node/chunk-UM36TPCT.cjs +0 -984
  364. package/dist/lib/node/chunk-UM36TPCT.cjs.map +0 -7
  365. package/dist/lib/node/chunk-ZGDN3XBR.cjs +0 -149
  366. package/dist/lib/node/chunk-ZGDN3XBR.cjs.map +0 -7
  367. package/dist/lib/node/index.cjs +0 -310
  368. package/dist/lib/node/index.cjs.map +0 -7
  369. package/dist/lib/node/intent-resolver-SYSJ5SJG.cjs +0 -363
  370. package/dist/lib/node/intent-resolver-SYSJ5SJG.cjs.map +0 -7
  371. package/dist/lib/node/markdown-GQIPJS2F.cjs +0 -178
  372. package/dist/lib/node/markdown-GQIPJS2F.cjs.map +0 -7
  373. package/dist/lib/node/meta.json +0 -1
  374. package/dist/lib/node/react-root-6HHDMULJ.cjs +0 -51
  375. package/dist/lib/node/react-root-6HHDMULJ.cjs.map +0 -7
  376. package/dist/lib/node/react-surface-NBH42NN2.cjs +0 -122
  377. package/dist/lib/node/react-surface-NBH42NN2.cjs.map +0 -7
  378. package/dist/lib/node/settings-4LQSFEDK.cjs +0 -36
  379. package/dist/lib/node/settings-4LQSFEDK.cjs.map +0 -7
  380. package/dist/lib/node/state-IY5XX3H2.cjs +0 -50
  381. package/dist/lib/node/state-IY5XX3H2.cjs.map +0 -7
  382. package/dist/lib/node/types/index.cjs +0 -38
  383. package/dist/lib/node/types/index.cjs.map +0 -7
  384. package/dist/lib/node-esm/ChannelContainer-O4QJII2P.mjs +0 -16
  385. package/dist/lib/node-esm/ChatContainer-F6CSADV7.mjs +0 -15
  386. package/dist/lib/node-esm/app-graph-builder-BAHBHYWI.mjs +0 -172
  387. package/dist/lib/node-esm/app-graph-builder-BAHBHYWI.mjs.map +0 -7
  388. package/dist/lib/node-esm/call-manager-UUYXLF4T.mjs +0 -24
  389. package/dist/lib/node-esm/call-manager-UUYXLF4T.mjs.map +0 -7
  390. package/dist/lib/node-esm/chunk-2RNIPFDA.mjs +0 -984
  391. package/dist/lib/node-esm/chunk-2RNIPFDA.mjs.map +0 -7
  392. package/dist/lib/node-esm/chunk-ESQC6SYE.mjs +0 -19
  393. package/dist/lib/node-esm/chunk-ESQC6SYE.mjs.map +0 -7
  394. package/dist/lib/node-esm/chunk-K4KAUOKT.mjs +0 -19
  395. package/dist/lib/node-esm/chunk-K4KAUOKT.mjs.map +0 -7
  396. package/dist/lib/node-esm/chunk-O3V45YJP.mjs +0 -90
  397. package/dist/lib/node-esm/chunk-O3V45YJP.mjs.map +0 -7
  398. package/dist/lib/node-esm/chunk-O63QJPQX.mjs +0 -23
  399. package/dist/lib/node-esm/chunk-O63QJPQX.mjs.map +0 -7
  400. package/dist/lib/node-esm/chunk-P6RLFCNT.mjs +0 -352
  401. package/dist/lib/node-esm/chunk-P6RLFCNT.mjs.map +0 -7
  402. package/dist/lib/node-esm/chunk-PGRP3O4O.mjs.map +0 -7
  403. package/dist/lib/node-esm/chunk-UJMPYKT3.mjs +0 -129
  404. package/dist/lib/node-esm/chunk-UJMPYKT3.mjs.map +0 -7
  405. package/dist/lib/node-esm/chunk-UZWVVFT3.mjs +0 -551
  406. package/dist/lib/node-esm/chunk-UZWVVFT3.mjs.map +0 -7
  407. package/dist/lib/node-esm/chunk-WXNPD542.mjs.map +0 -7
  408. package/dist/lib/node-esm/intent-resolver-BU73VYW3.mjs +0 -354
  409. package/dist/lib/node-esm/intent-resolver-BU73VYW3.mjs.map +0 -7
  410. package/dist/lib/node-esm/markdown-HJUWNBLS.mjs +0 -170
  411. package/dist/lib/node-esm/markdown-HJUWNBLS.mjs.map +0 -7
  412. package/dist/lib/node-esm/react-root-RUXOAQNW.mjs +0 -28
  413. package/dist/lib/node-esm/react-root-RUXOAQNW.mjs.map +0 -7
  414. package/dist/lib/node-esm/react-surface-ELXFYKP6.mjs +0 -109
  415. package/dist/lib/node-esm/react-surface-ELXFYKP6.mjs.map +0 -7
  416. package/dist/lib/node-esm/settings-EA7DFSM6.mjs +0 -23
  417. package/dist/lib/node-esm/settings-EA7DFSM6.mjs.map +0 -7
  418. package/dist/lib/node-esm/state-6AUTNROZ.mjs +0 -35
  419. package/dist/lib/node-esm/state-6AUTNROZ.mjs.map +0 -7
  420. package/dist/types/src/capabilities/app-graph-builder.d.ts +0 -4
  421. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +0 -1
  422. package/dist/types/src/capabilities/call-manager.d.ts +0 -5
  423. package/dist/types/src/capabilities/call-manager.d.ts.map +0 -1
  424. package/dist/types/src/capabilities/capabilities.d.ts +0 -27
  425. package/dist/types/src/capabilities/capabilities.d.ts.map +0 -1
  426. package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
  427. package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
  428. package/dist/types/src/capabilities/markdown.d.ts +0 -4
  429. package/dist/types/src/capabilities/markdown.d.ts.map +0 -1
  430. package/dist/types/src/capabilities/react-root.d.ts +0 -7
  431. package/dist/types/src/capabilities/react-root.d.ts.map +0 -1
  432. package/dist/types/src/capabilities/react-surface.d.ts +0 -4
  433. package/dist/types/src/capabilities/react-surface.d.ts.map +0 -1
  434. package/dist/types/src/capabilities/settings.d.ts +0 -4
  435. package/dist/types/src/capabilities/settings.d.ts.map +0 -1
  436. package/dist/types/src/capabilities/state.d.ts +0 -7
  437. package/dist/types/src/capabilities/state.d.ts.map +0 -1
  438. package/dist/types/src/components/CommentContainer.d.ts +0 -13
  439. package/dist/types/src/components/CommentContainer.d.ts.map +0 -1
  440. package/dist/types/src/components/ThreadComplementary.d.ts +0 -5
  441. package/dist/types/src/components/ThreadComplementary.d.ts.map +0 -1
  442. package/dist/types/src/peers.stories.d.ts +0 -11
  443. package/dist/types/src/peers.stories.d.ts.map +0 -1
  444. package/dist/types/src/types/schema.d.ts +0 -133
  445. package/dist/types/src/types/schema.d.ts.map +0 -1
  446. package/src/capabilities/app-graph-builder.ts +0 -180
  447. package/src/capabilities/call-manager.ts +0 -19
  448. package/src/capabilities/capabilities.ts +0 -33
  449. package/src/capabilities/intent-resolver.ts +0 -296
  450. package/src/capabilities/markdown.ts +0 -68
  451. package/src/capabilities/react-root.tsx +0 -17
  452. package/src/capabilities/react-surface.tsx +0 -88
  453. package/src/capabilities/settings.ts +0 -19
  454. package/src/capabilities/state.ts +0 -25
  455. package/src/components/CommentContainer.tsx +0 -198
  456. package/src/components/ThreadComplementary.tsx +0 -151
  457. package/src/peers.stories.tsx +0 -189
  458. package/src/types/schema.ts +0 -33
  459. /package/dist/lib/browser/{ChannelContainer-PKFBVENP.mjs.map → blueprints/index.mjs.map} +0 -0
  460. /package/dist/lib/browser/{ChatContainer-RSOKYAMK.mjs.map → chunk-J5LGTIGS.mjs.map} +0 -0
  461. /package/dist/lib/node-esm/{ChannelContainer-O4QJII2P.mjs.map → blueprints/index.mjs.map} +0 -0
  462. /package/dist/lib/node-esm/{ChatContainer-F6CSADV7.mjs.map → chunk-HSLMI22Q.mjs.map} +0 -0
@@ -1,328 +1,3232 @@
1
- import { Schema } from 'effect';
2
- import { Type } from '@dxos/echo';
3
- import { AnchoredTo } from '@dxos/schema';
4
- import { ChannelType, ThreadType } from './schema';
5
- export declare namespace ThreadAction {
6
- const CreateChannel_base: Schema.TaggedClass<CreateChannel, "dxos.org/plugin/thread/action/create-channel", {
7
- readonly _tag: Schema.tag<"dxos.org/plugin/thread/action/create-channel">;
8
- } & {
9
- input: Schema.Struct<{
10
- spaceId: Schema.Schema<Type.SpaceId, string, never> & {
11
- byteLength: number;
12
- encode: (value: Uint8Array) => Type.SpaceId;
13
- decode: (value: Type.SpaceId) => Uint8Array;
14
- isValid: (value: string) => value is Type.SpaceId;
15
- make: (value: string) => Type.SpaceId;
16
- random: () => Type.SpaceId;
17
- };
18
- name: Schema.optional<typeof Schema.String>;
19
- }>;
20
- output: Schema.Struct<{
21
- object: Type.obj<Schema.Schema<ChannelType, {
22
- id: string;
23
- defaultThread: import("@dxos/echo-protocol").EncodedReference;
24
- threads: import("@dxos/echo-protocol").EncodedReference[];
25
- name?: string | undefined;
26
- }, never>>;
27
- }>;
28
- }>;
29
- export class CreateChannel extends CreateChannel_base {
30
- }
31
- const CreateChannelThread_base: Schema.TaggedClass<CreateChannelThread, "dxos.org/plugin/thread/action/create-channel-thread", {
32
- readonly _tag: Schema.tag<"dxos.org/plugin/thread/action/create-channel-thread">;
33
- } & {
34
- input: Schema.Struct<{
35
- channel: Type.obj<Schema.Schema<ChannelType, {
36
- id: string;
37
- defaultThread: import("@dxos/echo-protocol").EncodedReference;
38
- threads: import("@dxos/echo-protocol").EncodedReference[];
39
- name?: string | undefined;
40
- }, never>>;
41
- }>;
42
- output: Schema.Struct<{
43
- object: Type.obj<Schema.Schema<ThreadType, {
44
- id: string;
45
- messages: import("@dxos/echo-protocol").EncodedReference[];
46
- name?: string | undefined;
47
- status?: "staged" | "active" | "resolved" | undefined;
48
- }, never>>;
49
- }>;
50
- }>;
51
- export class CreateChannelThread extends CreateChannelThread_base {
52
- }
53
- const Create_base: Schema.TaggedClass<Create, "dxos.org/plugin/thread/action/create", {
54
- readonly _tag: Schema.tag<"dxos.org/plugin/thread/action/create">;
55
- } & {
56
- input: Schema.Struct<{
57
- name: Schema.optional<typeof Schema.String>;
58
- anchor: Schema.optional<typeof Schema.String>;
59
- subject: Schema.Schema<any, any, never>;
60
- }>;
61
- output: typeof Schema.Void;
62
- }>;
63
- export class Create extends Create_base {
64
- }
65
- const Delete_base: Schema.TaggedClass<Delete, "dxos.org/plugin/thread/action/delete", {
66
- readonly _tag: Schema.tag<"dxos.org/plugin/thread/action/delete">;
67
- } & {
68
- input: Schema.Struct<{
69
- anchor: Type.relation<Schema.Struct<{
70
- id: import("@dxos/keys").ObjectIdClass;
71
- anchor: Schema.optional<typeof Schema.String>;
72
- }>, Schema.Schema<Type.Expando, {
73
- [x: string]: any;
74
- id: string;
75
- }, never>, Schema.Schema<Type.Expando, {
76
- [x: string]: any;
77
- id: string;
78
- }, never>>;
79
- subject: Schema.Schema<any, any, never>;
80
- thread: Schema.optional<Type.obj<Schema.Schema<ThreadType, {
81
- id: string;
82
- messages: import("@dxos/echo-protocol").EncodedReference[];
83
- name?: string | undefined;
84
- status?: "staged" | "active" | "resolved" | undefined;
85
- }, never>>>;
86
- }>;
87
- output: typeof Schema.Void;
88
- }>;
89
- export class Delete extends Delete_base {
90
- }
91
- const Select_base: Schema.TaggedClass<Select, "dxos.org/plugin/thread/action/select", {
92
- readonly _tag: Schema.tag<"dxos.org/plugin/thread/action/select">;
93
- } & {
94
- input: Schema.Struct<{
95
- current: typeof Schema.String;
96
- }>;
97
- output: typeof Schema.Void;
98
- }>;
99
- export class Select extends Select_base {
100
- }
101
- const ToggleResolved_base: Schema.TaggedClass<ToggleResolved, "dxos.org/plugin/thread/action/toggle-resolved", {
102
- readonly _tag: Schema.tag<"dxos.org/plugin/thread/action/toggle-resolved">;
103
- } & {
104
- input: Schema.Struct<{
105
- thread: Type.obj<Schema.Schema<ThreadType, {
106
- id: string;
107
- messages: import("@dxos/echo-protocol").EncodedReference[];
108
- name?: string | undefined;
109
- status?: "staged" | "active" | "resolved" | undefined;
110
- }, never>>;
111
- }>;
112
- output: typeof Schema.Void;
113
- }>;
114
- export class ToggleResolved extends ToggleResolved_base {
115
- }
116
- const AddMessage_base: Schema.TaggedClass<AddMessage, "dxos.org/plugin/thread/action/add-message", {
117
- readonly _tag: Schema.tag<"dxos.org/plugin/thread/action/add-message">;
118
- } & {
119
- input: Schema.Struct<{
120
- subject: Schema.Schema<any, any, never>;
121
- anchor: Type.relation<Schema.Struct<{
122
- id: import("@dxos/keys").ObjectIdClass;
123
- anchor: Schema.optional<typeof Schema.String>;
124
- }>, Schema.Schema<Type.Expando, {
125
- [x: string]: any;
126
- id: string;
127
- }, never>, Schema.Schema<Type.Expando, {
128
- [x: string]: any;
129
- id: string;
130
- }, never>>;
131
- sender: Schema.Struct<{
132
- contact: import("effect/Schema").optional<import("@dxos/echo/Type").ref<import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
133
- fullName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
134
- preferredName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
135
- nickname: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
136
- image: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
137
- organization: import("effect/Schema").optional<import("effect/Schema").Schema<import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
138
- description?: string | undefined;
139
- id: string;
140
- name?: string | undefined;
141
- status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
142
- image?: string | undefined;
143
- website?: string | undefined;
144
- }>, import("@dxos/echo-protocol").EncodedReference, never>>;
145
- jobTitle: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
146
- department: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
147
- notes: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
148
- emails: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
149
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
150
- value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
151
- }>>>>;
152
- identities: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
153
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
154
- value: typeof import("effect/Schema").String;
155
- }>>>>;
156
- phoneNumbers: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
157
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
158
- value: typeof import("effect/Schema").String;
159
- }>>>>;
160
- addresses: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
161
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
162
- value: import("effect/Schema").Struct<{
163
- street: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
164
- extended: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
165
- locality: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
166
- region: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
167
- postalCode: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
168
- postOfficeBoxNumber: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
169
- country: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
170
- }>;
171
- }>>>>;
172
- urls: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
173
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
174
- value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
175
- }>>>>;
176
- birthday: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").SchemaClass<string, string, never>>>;
177
- fields: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
178
- category: import("effect/Schema").optional<typeof import("effect/Schema").String>;
179
- label: typeof import("effect/Schema").String;
180
- value: typeof import("effect/Schema").String;
181
- }>>>>;
182
- }>>>>;
183
- identityDid: import("effect/Schema").optional<typeof import("effect/Schema").String>;
184
- identityKey: import("effect/Schema").optional<typeof import("effect/Schema").String>;
185
- email: import("effect/Schema").optional<typeof import("effect/Schema").String>;
186
- name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
187
- role: import("effect/Schema").optional<import("effect/Schema").Literal<["user", "assistant"]>>;
1
+ import * as Schema from 'effect/Schema';
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>;
24
+ }>;
25
+ readonly output: typeof Schema.Void;
26
+ };
27
+ }, "executionMode"> & import("effect/Pipeable").Pipeable & {
28
+ readonly executionMode: "sync" | "async";
29
+ };
30
+ const CreateChannel: Omit<{
31
+ readonly meta: {
32
+ readonly key: `${string}/create-channel`;
33
+ readonly name: "Create Channel";
34
+ };
35
+ readonly services: readonly [typeof Capability.Service];
36
+ readonly schema: {
37
+ readonly input: Schema.Struct<{
38
+ spaceId: Schema.Schema<Key.SpaceId, string, never> & {
39
+ byteLength: number;
40
+ encode: (value: Uint8Array) => Key.SpaceId;
41
+ decode: (value: Key.SpaceId) => Uint8Array;
42
+ isValid: (value: unknown) => value is Key.SpaceId;
43
+ make: (value: string) => Key.SpaceId;
44
+ random: () => Key.SpaceId;
45
+ };
46
+ name: Schema.optional<typeof Schema.String>;
47
+ }>;
48
+ readonly output: Schema.Struct<{
49
+ object: Type.Obj<{
50
+ readonly name?: string | undefined;
51
+ readonly defaultThread: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
52
+ readonly name?: string | undefined;
53
+ readonly status?: "active" | "staged" | "resolved" | undefined;
54
+ readonly messages: 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>;
188
394
  }>;
189
- text: typeof Schema.String;
190
- }>;
191
- output: typeof Schema.Void;
192
- }>;
193
- export class AddMessage extends AddMessage_base {
194
- }
195
- const DeleteMessage_base: Schema.TaggedClass<DeleteMessage, "dxos.org/plugin/thread/action/delete-message", {
196
- readonly _tag: Schema.tag<"dxos.org/plugin/thread/action/delete-message">;
197
- } & {
198
- input: Schema.Struct<{
199
- anchor: Type.relation<Schema.Struct<{
200
- id: import("@dxos/keys").ObjectIdClass;
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>;
201
939
  anchor: Schema.optional<typeof Schema.String>;
202
- }>, Schema.Schema<Type.Expando, {
203
- [x: string]: any;
204
- id: string;
205
- }, never>, Schema.Schema<Type.Expando, {
206
- [x: string]: any;
207
- id: string;
208
- }, never>>;
209
- subject: Schema.Schema<any, any, never>;
210
- messageId: typeof Schema.String;
211
- message: Schema.optional<Type.obj<Schema.Struct<{
212
- id: import("@dxos/keys").ObjectIdClass;
213
- created: import("effect/Schema").SchemaClass<string, string, never>;
214
- sender: import("effect/Schema").mutable<import("effect/Schema").Struct<{
215
- contact: import("effect/Schema").optional<import("@dxos/echo/Type").ref<import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
216
- fullName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
217
- preferredName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
218
- nickname: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
219
- image: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
220
- organization: import("effect/Schema").optional<import("effect/Schema").Schema<import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
221
- description?: string | undefined;
222
- id: string;
223
- name?: string | undefined;
224
- status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
225
- image?: string | undefined;
226
- website?: string | undefined;
227
- }>, import("@dxos/echo-protocol").EncodedReference, never>>;
228
- jobTitle: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
229
- department: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
230
- notes: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
231
- emails: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
232
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
233
- value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
234
- }>>>>;
235
- identities: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
236
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
237
- value: typeof import("effect/Schema").String;
238
- }>>>>;
239
- phoneNumbers: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
240
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
241
- value: typeof import("effect/Schema").String;
242
- }>>>>;
243
- addresses: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
244
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
245
- value: import("effect/Schema").Struct<{
246
- street: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
247
- extended: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
248
- locality: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
249
- region: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
250
- postalCode: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
251
- postOfficeBoxNumber: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
252
- country: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
253
- }>;
254
- }>>>>;
255
- urls: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
256
- label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
257
- value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
258
- }>>>>;
259
- birthday: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").SchemaClass<string, string, never>>>;
260
- fields: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
261
- category: import("effect/Schema").optional<typeof import("effect/Schema").String>;
262
- label: typeof import("effect/Schema").String;
263
- value: typeof import("effect/Schema").String;
264
- }>>>>;
265
- }>>>>;
266
- identityDid: import("effect/Schema").optional<typeof import("effect/Schema").String>;
267
- identityKey: import("effect/Schema").optional<typeof import("effect/Schema").String>;
268
- email: import("effect/Schema").optional<typeof import("effect/Schema").String>;
269
- name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
270
- role: import("effect/Schema").optional<import("effect/Schema").Literal<["user", "assistant"]>>;
271
- }>>;
272
- blocks: import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
273
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
274
- }>, import("effect/Schema").Struct<{
275
- type: import("effect/Schema").Literal<["text"]>;
276
- disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
277
- text: typeof import("effect/Schema").String;
278
- }>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
279
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
280
- }>, import("effect/Schema").Struct<{
281
- type: import("effect/Schema").Literal<["json"]>;
282
- disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
283
- data: typeof import("effect/Schema").String;
284
- }>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
285
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
286
- }>, import("effect/Schema").Struct<{
287
- type: import("effect/Schema").Literal<["image"]>;
288
- id: import("effect/Schema").optional<typeof import("effect/Schema").String>;
289
- source: import("effect/Schema").optional<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").Struct<{
290
- type: import("effect/Schema").Literal<["base64"]>;
291
- mediaType: typeof import("effect/Schema").String;
292
- data: typeof import("effect/Schema").String;
293
- }>>, import("effect/Schema").mutable<import("effect/Schema").Struct<{
294
- type: import("effect/Schema").Literal<["http"]>;
295
- url: typeof import("effect/Schema").String;
296
- }>>]>>;
297
- }>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
298
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
299
- }>, import("effect/Schema").Struct<{
300
- type: import("effect/Schema").Literal<["reference"]>;
301
- reference: import("@dxos/echo/Type").ref<import("effect/Schema").Schema<import("@dxos/echo/Type").Expando, {
302
- [x: string]: any;
303
- id: string;
304
- }, never>>;
305
- }>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
306
- pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
307
- }>, import("effect/Schema").Struct<{
308
- type: import("effect/Schema").Literal<["transcription"]>;
309
- started: typeof import("effect/Schema").String;
310
- text: typeof import("effect/Schema").String;
311
- }>>>]>>>;
312
- properties: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Any>>>;
313
- }>>>;
314
- messageIndex: Schema.optional<typeof Schema.Number>;
315
- }>;
316
- output: typeof Schema.Void;
317
- }>;
318
- export class DeleteMessage extends DeleteMessage_base {
319
- }
320
- export {};
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
+ }>>;
2130
+ identityDid: Schema.optional<typeof Schema.String>;
2131
+ identityKey: Schema.optional<typeof Schema.String>;
2132
+ email: Schema.optional<typeof Schema.String>;
2133
+ name: Schema.optional<typeof Schema.String>;
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
+ };
321
3225
  }
322
3226
  export declare const ThreadSettingsSchema: Schema.mutable<Schema.Struct<{}>>;
323
3227
  export type ThreadSettingsProps = Schema.Schema.Type<typeof ThreadSettingsSchema>;
324
3228
  export interface ThreadModel {
325
- root: ThreadType;
3229
+ root: Thread.Thread;
326
3230
  }
327
3231
  type SubjectId = string;
328
3232
  export type ViewState = {
@@ -333,7 +3237,7 @@ export type ThreadState = {
333
3237
  /** Object toolbar state. */
334
3238
  toolbar: Record<string, boolean>;
335
3239
  /** In-memory draft threads. */
336
- drafts: Record<string, AnchoredTo[]>;
3240
+ drafts: Record<string, AnchoredTo.AnchoredTo[]>;
337
3241
  current?: string | undefined;
338
3242
  };
339
3243
  export {};