@dxos/plugin-thread 0.8.4-main.70d3990 → 0.8.4-main.74a063c4e0

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