@dxos/plugin-thread 0.8.4-main.f9ba587 → 0.8.4-main.fcfe5033a5

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