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