@dxos/plugin-thread 0.8.4-main.4a85c3132b → 0.8.4-main.51f1e5ca51

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