@dxos/plugin-transcription 0.8.4-main.c85a9c8dae → 0.8.4-main.dfabb4ec29
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/TranscriptionContainer-RBFHP2AV.mjs → neutral/TranscriptionContainer-XNGXNGPX.mjs} +10 -16
- package/dist/lib/neutral/TranscriptionContainer-XNGXNGPX.mjs.map +7 -0
- package/dist/lib/neutral/TranscriptionPlugin.mjs +34 -0
- package/dist/lib/neutral/TranscriptionPlugin.mjs.map +7 -0
- package/dist/lib/neutral/TranscriptionPlugin.node.mjs +25 -0
- package/dist/lib/neutral/TranscriptionPlugin.node.mjs.map +7 -0
- package/dist/lib/{browser/blueprint-definition-C6XA2SVZ.mjs → neutral/blueprint-definition-HOXDG5QP.mjs} +4 -7
- package/dist/lib/neutral/blueprint-definition-HOXDG5QP.mjs.map +7 -0
- package/dist/lib/{browser → neutral}/blueprints/index.mjs +1 -2
- package/dist/lib/neutral/capabilities/index.mjs +17 -0
- package/dist/lib/neutral/capabilities/index.mjs.map +7 -0
- package/dist/lib/{browser/chunk-2B74LZZD.mjs → neutral/chunk-GL4RS533.mjs} +2 -2
- package/dist/lib/{browser/chunk-2B74LZZD.mjs.map → neutral/chunk-GL4RS533.mjs.map} +3 -3
- package/dist/lib/{browser/chunk-HOOPZ7EM.mjs → neutral/chunk-KAEXRX3Y.mjs} +1 -1
- package/dist/lib/{browser/chunk-EV5ZYKET.mjs → neutral/chunk-LS3R7EQI.mjs} +74 -104
- package/dist/lib/neutral/chunk-LS3R7EQI.mjs.map +7 -0
- package/dist/lib/neutral/chunk-MLRJWAQH.mjs +179 -0
- package/dist/lib/neutral/chunk-MLRJWAQH.mjs.map +7 -0
- package/dist/lib/neutral/chunk-NNR3EYR2.mjs +124 -0
- package/dist/lib/neutral/chunk-NNR3EYR2.mjs.map +7 -0
- package/dist/lib/neutral/chunk-NQQK7UZQ.mjs +244 -0
- package/dist/lib/neutral/chunk-NQQK7UZQ.mjs.map +7 -0
- package/dist/lib/neutral/chunk-WVEZMGBT.mjs +8 -0
- package/dist/lib/neutral/chunk-WVEZMGBT.mjs.map +7 -0
- package/dist/lib/neutral/chunk-ZR4BH4QQ.mjs +30 -0
- package/dist/lib/neutral/chunk-ZR4BH4QQ.mjs.map +7 -0
- package/dist/lib/neutral/components/index.mjs +207 -0
- package/dist/lib/neutral/components/index.mjs.map +7 -0
- package/dist/lib/neutral/containers/index.mjs +9 -0
- package/dist/lib/neutral/containers/index.mjs.map +7 -0
- package/dist/lib/neutral/create-2D6S4IMQ.mjs +21 -0
- package/dist/lib/neutral/create-2D6S4IMQ.mjs.map +7 -0
- package/dist/lib/neutral/hooks/index.mjs +17 -0
- package/dist/lib/neutral/index.mjs +44 -0
- package/dist/lib/neutral/meta.json +1 -0
- package/dist/lib/neutral/meta.mjs +8 -0
- package/dist/lib/neutral/open-2QB6IIET.mjs +27 -0
- package/dist/lib/neutral/open-2QB6IIET.mjs.map +7 -0
- package/dist/lib/neutral/operation-handler-NXMOAXFP.mjs +13 -0
- package/dist/lib/neutral/operation-handler-NXMOAXFP.mjs.map +7 -0
- package/dist/lib/neutral/operations/index.mjs +8 -0
- package/dist/lib/neutral/plugin.mjs +16 -0
- package/dist/lib/neutral/plugin.mjs.map +7 -0
- package/dist/lib/neutral/react-surface-QF4MUMWG.mjs +26 -0
- package/dist/lib/neutral/react-surface-QF4MUMWG.mjs.map +7 -0
- package/dist/lib/neutral/summarize-CJPVKWYZ.mjs +78 -0
- package/dist/lib/neutral/summarize-CJPVKWYZ.mjs.map +7 -0
- package/dist/lib/neutral/text-content-LHSUG2D2.mjs +30 -0
- package/dist/lib/neutral/text-content-LHSUG2D2.mjs.map +7 -0
- package/dist/lib/{browser/transcriber-WCPHHJYY.mjs → neutral/transcriber-M3R6HPTZ.mjs} +8 -10
- package/dist/lib/neutral/transcriber-M3R6HPTZ.mjs.map +7 -0
- package/dist/lib/neutral/translations.mjs +22 -0
- package/dist/lib/neutral/translations.mjs.map +7 -0
- package/dist/lib/neutral/types/index.mjs +12 -0
- package/dist/lib/neutral/types/index.mjs.map +7 -0
- package/dist/types/src/TranscriptionPlugin.d.ts +1 -0
- package/dist/types/src/TranscriptionPlugin.d.ts.map +1 -1
- package/dist/types/src/TranscriptionPlugin.node.d.ts +4 -0
- package/dist/types/src/TranscriptionPlugin.node.d.ts.map +1 -0
- package/dist/types/src/TranscriptionPlugin.test.d.ts +2 -0
- package/dist/types/src/TranscriptionPlugin.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/transcription-blueprint.d.ts +2 -2
- package/dist/types/src/blueprints/transcription-blueprint.d.ts.map +1 -1
- package/dist/types/src/capabilities/blueprint-definition.d.ts +6 -0
- package/dist/types/src/capabilities/blueprint-definition.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +10 -4
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
- package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
- package/dist/types/src/capabilities/text-content.d.ts +8 -0
- package/dist/types/src/capabilities/text-content.d.ts.map +1 -0
- package/dist/types/src/capabilities/{transcriber/transcriber.d.ts → transcriber.d.ts} +1 -1
- package/dist/types/src/capabilities/transcriber.d.ts.map +1 -0
- package/dist/types/src/components/Transcription/Transcription.d.ts +5 -4
- package/dist/types/src/components/Transcription/Transcription.d.ts.map +1 -1
- package/dist/types/src/components/Transcription/Transcription.stories.d.ts +10 -10
- package/dist/types/src/components/Transcription/Transcription.stories.d.ts.map +1 -1
- package/dist/types/src/components/Transcription/transcription-extension.d.ts.map +1 -1
- package/dist/types/src/containers/TranscriptionContainer/TranscriptionContainer.d.ts +3 -3
- package/dist/types/src/containers/TranscriptionContainer/TranscriptionContainer.d.ts.map +1 -1
- package/dist/types/src/containers/TranscriptionContainer/index.d.ts +1 -2
- package/dist/types/src/containers/TranscriptionContainer/index.d.ts.map +1 -1
- package/dist/types/src/hooks/useAudioFile.d.ts.map +1 -1
- package/dist/types/src/hooks/useAudioTrack.d.ts.map +1 -1
- package/dist/types/src/hooks/useQueueModelAdapter.d.ts.map +1 -1
- package/dist/types/src/hooks/useTranscriber.d.ts +2 -2
- package/dist/types/src/hooks/useTranscriber.d.ts.map +1 -1
- package/dist/types/src/hooks/useVoiceInput.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +2 -3
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/model/model.d.ts +2 -2
- package/dist/types/src/model/model.d.ts.map +1 -1
- package/dist/types/src/{segments-normalization → normalization}/index.d.ts +1 -1
- package/dist/types/src/normalization/index.d.ts.map +1 -0
- package/dist/types/src/normalization/message-normalizer.d.ts.map +1 -0
- package/dist/types/src/{segments-normalization → normalization}/normalization.d.ts +330 -321
- package/dist/types/src/normalization/normalization.d.ts.map +1 -0
- package/dist/types/src/normalization/normalization.test.d.ts.map +1 -0
- package/dist/types/src/normalization/utils.d.ts.map +1 -0
- package/dist/types/src/operations/create.d.ts +5 -0
- package/dist/types/src/operations/create.d.ts.map +1 -0
- package/dist/types/src/operations/index.d.ts +3 -0
- package/dist/types/src/operations/index.d.ts.map +1 -0
- package/dist/types/src/operations/open.d.ts +5 -0
- package/dist/types/src/operations/open.d.ts.map +1 -0
- package/dist/types/src/operations/summarize.d.ts +8 -0
- package/dist/types/src/operations/summarize.d.ts.map +1 -0
- package/dist/types/src/plugin.d.ts +4 -0
- package/dist/types/src/plugin.d.ts.map +1 -0
- package/dist/types/src/{components/stories → stories}/FileTranscription.stories.d.ts +3 -3
- package/dist/types/src/stories/FileTranscription.stories.d.ts.map +1 -0
- package/dist/types/src/{components/stories → stories}/KeyWordRecognition.stories.d.ts +2 -2
- package/dist/types/src/stories/KeyWordRecognition.stories.d.ts.map +1 -0
- package/dist/types/src/{components/stories → stories}/MicrophoneTranscription.stories.d.ts +3 -3
- package/dist/types/src/stories/MicrophoneTranscription.stories.d.ts.map +1 -0
- package/dist/types/src/stories/TranscriptionStory.d.ts +23 -0
- package/dist/types/src/stories/TranscriptionStory.d.ts.map +1 -0
- package/dist/types/src/stories/useIsSpeaking.d.ts.map +1 -0
- package/dist/types/src/testing/testing.d.ts.map +1 -1
- package/dist/types/src/transcriber/index.d.ts +1 -1
- package/dist/types/src/transcriber/index.d.ts.map +1 -1
- package/dist/types/src/transcriber/media-stream-recorder.d.ts.map +1 -1
- package/dist/types/src/transcriber/transcriber.d.ts +57 -2
- package/dist/types/src/transcriber/transcriber.d.ts.map +1 -1
- package/dist/types/src/transcriber/transcriber.test.d.ts +2 -0
- package/dist/types/src/transcriber/transcriber.test.d.ts.map +1 -0
- package/dist/types/src/transcriber/transcription-manager.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +7 -8
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/TranscriptOperation.d.ts +917 -0
- package/dist/types/src/types/TranscriptOperation.d.ts.map +1 -0
- package/dist/types/src/types/TranscriptionCapabilities.d.ts +17 -0
- package/dist/types/src/types/TranscriptionCapabilities.d.ts.map +1 -0
- package/dist/types/src/types/{types.d.ts → defs.d.ts} +1 -1
- package/dist/types/src/types/defs.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +3 -4
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/util/array.d.ts.map +1 -1
- package/dist/types/src/util/get-time-str.d.ts.map +1 -1
- package/dist/types/src/util/monitor-audio-level.d.ts.map +1 -1
- package/dist/types/src/util/render-byline.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +133 -81
- package/src/TranscriptionPlugin.node.ts +20 -0
- package/src/TranscriptionPlugin.test.ts +31 -0
- package/src/TranscriptionPlugin.tsx +8 -29
- package/src/blueprints/transcription-blueprint.ts +5 -9
- package/src/capabilities/{blueprint-definition/blueprint-definition.ts → blueprint-definition.ts} +3 -1
- package/src/capabilities/index.ts +12 -4
- package/src/capabilities/operation-handler.ts +16 -0
- package/src/capabilities/react-surface.tsx +31 -0
- package/src/capabilities/text-content.ts +33 -0
- package/src/capabilities/{transcriber/transcriber.ts → transcriber.ts} +5 -2
- package/src/components/Transcription/Transcription.stories.tsx +24 -23
- package/src/components/Transcription/Transcription.tsx +30 -29
- package/src/containers/TranscriptionContainer/TranscriptionContainer.tsx +10 -8
- package/src/containers/TranscriptionContainer/index.ts +1 -3
- package/src/hooks/useTranscriber.ts +5 -2
- package/src/hooks/useVoiceInput.ts +0 -1
- package/src/index.ts +4 -5
- package/src/meta.ts +1 -1
- package/src/model/model.test.ts +6 -6
- package/src/model/model.ts +3 -3
- package/src/{segments-normalization → normalization}/message-normalizer.ts +1 -5
- package/src/normalization/normalization.ts +76 -0
- package/src/operations/create.ts +24 -0
- package/src/operations/index.ts +11 -0
- package/src/operations/open.ts +28 -0
- package/src/operations/summarize.ts +101 -0
- package/src/plugin.ts +11 -0
- package/src/{components/stories → stories}/FileTranscription.stories.tsx +33 -16
- package/src/{components/stories → stories}/KeyWordRecognition.stories.tsx +32 -30
- package/src/{components/stories → stories}/MicrophoneTranscription.stories.tsx +18 -36
- package/src/stories/TranscriptionStory.tsx +93 -0
- package/src/testing/testing.ts +8 -18
- package/src/transcriber/index.ts +1 -1
- package/src/transcriber/transcriber.browser.test.ts +0 -1
- package/src/transcriber/transcriber.test.ts +104 -0
- package/src/transcriber/transcriber.ts +94 -53
- package/src/translations.ts +7 -7
- package/src/types/TranscriptOperation.ts +103 -0
- package/src/types/TranscriptionCapabilities.ts +39 -0
- package/src/types/index.ts +4 -4
- package/dist/lib/browser/TranscriptionContainer-RBFHP2AV.mjs.map +0 -7
- package/dist/lib/browser/blueprint-definition-C6XA2SVZ.mjs.map +0 -7
- package/dist/lib/browser/chunk-EV5ZYKET.mjs.map +0 -7
- package/dist/lib/browser/chunk-GH4IIQ6C.mjs +0 -54
- package/dist/lib/browser/chunk-GH4IIQ6C.mjs.map +0 -7
- package/dist/lib/browser/chunk-O7ILGNBZ.mjs +0 -148
- package/dist/lib/browser/chunk-O7ILGNBZ.mjs.map +0 -7
- package/dist/lib/browser/chunk-XLMRCOQN.mjs +0 -668
- package/dist/lib/browser/chunk-XLMRCOQN.mjs.map +0 -7
- package/dist/lib/browser/index.mjs +0 -114
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/browser/operation-resolver-5BLRH4XE.mjs +0 -23
- package/dist/lib/browser/operation-resolver-5BLRH4XE.mjs.map +0 -7
- package/dist/lib/browser/react-surface-U2SI74JK.mjs +0 -36
- package/dist/lib/browser/react-surface-U2SI74JK.mjs.map +0 -7
- package/dist/lib/browser/transcriber-WCPHHJYY.mjs.map +0 -7
- package/dist/lib/browser/types/index.mjs +0 -15
- package/dist/lib/node-esm/TranscriptionContainer-3OOID5KH.mjs +0 -42
- package/dist/lib/node-esm/TranscriptionContainer-3OOID5KH.mjs.map +0 -7
- package/dist/lib/node-esm/blueprint-definition-TLXDUXIQ.mjs +0 -19
- package/dist/lib/node-esm/blueprint-definition-TLXDUXIQ.mjs.map +0 -7
- package/dist/lib/node-esm/blueprints/index.mjs +0 -10
- package/dist/lib/node-esm/chunk-6GW5NZYG.mjs +0 -55
- package/dist/lib/node-esm/chunk-6GW5NZYG.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-7UE7G6DE.mjs +0 -461
- package/dist/lib/node-esm/chunk-7UE7G6DE.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-DYUGYQCB.mjs +0 -669
- package/dist/lib/node-esm/chunk-DYUGYQCB.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-F47HK7GT.mjs +0 -24
- package/dist/lib/node-esm/chunk-F47HK7GT.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-H3MXHMQL.mjs +0 -149
- package/dist/lib/node-esm/chunk-H3MXHMQL.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +0 -11
- package/dist/lib/node-esm/chunk-NVM2QUMX.mjs +0 -37
- package/dist/lib/node-esm/chunk-NVM2QUMX.mjs.map +0 -7
- package/dist/lib/node-esm/index.mjs +0 -115
- package/dist/lib/node-esm/index.mjs.map +0 -7
- package/dist/lib/node-esm/meta.json +0 -1
- package/dist/lib/node-esm/operation-resolver-CVZB7BF4.mjs +0 -24
- package/dist/lib/node-esm/operation-resolver-CVZB7BF4.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-2ICJPBPX.mjs +0 -37
- package/dist/lib/node-esm/react-surface-2ICJPBPX.mjs.map +0 -7
- package/dist/lib/node-esm/transcriber-2RIHUEX4.mjs +0 -62
- package/dist/lib/node-esm/transcriber-2RIHUEX4.mjs.map +0 -7
- package/dist/lib/node-esm/types/index.mjs +0 -16
- package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts +0 -6
- package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts.map +0 -1
- package/dist/types/src/capabilities/blueprint-definition/index.d.ts +0 -3
- package/dist/types/src/capabilities/blueprint-definition/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/operation-handler/index.d.ts +0 -3
- package/dist/types/src/capabilities/operation-handler/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/operation-handler/operation-handler.d.ts +0 -5
- package/dist/types/src/capabilities/operation-handler/operation-handler.d.ts.map +0 -1
- package/dist/types/src/capabilities/operation-resolver/index.d.ts +0 -3
- package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +0 -5
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface/index.d.ts +0 -3
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +0 -1
- package/dist/types/src/capabilities/transcriber/index.d.ts +0 -3
- package/dist/types/src/capabilities/transcriber/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/transcriber/transcriber.d.ts.map +0 -1
- package/dist/types/src/components/stories/FileTranscription.stories.d.ts.map +0 -1
- package/dist/types/src/components/stories/KeyWordRecognition.stories.d.ts.map +0 -1
- package/dist/types/src/components/stories/MicrophoneTranscription.stories.d.ts.map +0 -1
- package/dist/types/src/components/stories/TranscriptionStory.d.ts +0 -12
- package/dist/types/src/components/stories/TranscriptionStory.d.ts.map +0 -1
- package/dist/types/src/components/stories/useIsSpeaking.d.ts.map +0 -1
- package/dist/types/src/functions/index.d.ts +0 -18
- package/dist/types/src/functions/index.d.ts.map +0 -1
- package/dist/types/src/functions/open.d.ts +0 -11
- package/dist/types/src/functions/open.d.ts.map +0 -1
- package/dist/types/src/functions/summarize.d.ts +0 -11
- package/dist/types/src/functions/summarize.d.ts.map +0 -1
- package/dist/types/src/segments-normalization/index.d.ts.map +0 -1
- package/dist/types/src/segments-normalization/message-normalizer.d.ts.map +0 -1
- package/dist/types/src/segments-normalization/normalization.d.ts.map +0 -1
- package/dist/types/src/segments-normalization/normalization.test.d.ts.map +0 -1
- package/dist/types/src/segments-normalization/utils.d.ts.map +0 -1
- package/dist/types/src/types/TranscriptAction.d.ts +0 -25
- package/dist/types/src/types/TranscriptAction.d.ts.map +0 -1
- package/dist/types/src/types/capabilities.d.ts +0 -18
- package/dist/types/src/types/capabilities.d.ts.map +0 -1
- package/dist/types/src/types/types.d.ts.map +0 -1
- package/src/capabilities/blueprint-definition/index.ts +0 -7
- package/src/capabilities/operation-handler/index.ts +0 -7
- package/src/capabilities/operation-handler/operation-handler.ts +0 -25
- package/src/capabilities/operation-resolver/index.ts +0 -7
- package/src/capabilities/operation-resolver/operation-resolver.ts +0 -25
- package/src/capabilities/react-surface/index.ts +0 -7
- package/src/capabilities/react-surface/react-surface.tsx +0 -28
- package/src/capabilities/transcriber/index.ts +0 -7
- package/src/components/stories/TranscriptionStory.tsx +0 -41
- package/src/functions/index.ts +0 -11
- package/src/functions/open.ts +0 -37
- package/src/functions/summarize.ts +0 -103
- package/src/segments-normalization/normalization.ts +0 -115
- package/src/types/TranscriptAction.ts +0 -32
- package/src/types/capabilities.ts +0 -33
- package/dist/lib/{browser → neutral}/blueprints/index.mjs.map +0 -0
- package/dist/lib/{browser → neutral}/chunk-J5LGTIGS.mjs +0 -0
- package/dist/lib/{browser → neutral}/chunk-J5LGTIGS.mjs.map +0 -0
- package/dist/lib/{browser/chunk-HOOPZ7EM.mjs.map → neutral/chunk-KAEXRX3Y.mjs.map} +0 -0
- package/dist/lib/{browser/types → neutral/hooks}/index.mjs.map +0 -0
- package/dist/lib/{node-esm/blueprints → neutral}/index.mjs.map +0 -0
- package/dist/lib/{node-esm/chunk-HSLMI22Q.mjs.map → neutral/meta.mjs.map} +0 -0
- package/dist/lib/{node-esm/types → neutral/operations}/index.mjs.map +0 -0
- package/dist/types/src/capabilities/{react-surface/react-surface.d.ts → react-surface.d.ts} +0 -0
- package/dist/types/src/{segments-normalization → normalization}/message-normalizer.d.ts +0 -0
- package/dist/types/src/{segments-normalization → normalization}/normalization.test.d.ts +0 -0
- package/dist/types/src/{segments-normalization → normalization}/utils.d.ts +0 -0
- package/dist/types/src/{components/stories → stories}/useIsSpeaking.d.ts +0 -0
- package/src/{segments-normalization → normalization}/index.ts +1 -1
- package/src/{segments-normalization → normalization}/normalization.test.ts +1 -1
- /package/src/{segments-normalization → normalization}/utils.ts +0 -0
- /package/src/{components/stories → stories}/useIsSpeaking.tsx +0 -0
- /package/src/types/{types.ts → defs.ts} +0 -0
|
@@ -1,197 +1,25 @@
|
|
|
1
1
|
import * as Schema from 'effect/Schema';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
readonly name?: string | undefined;
|
|
9
|
-
readonly role?: "user" | "assistant" | "tool" | undefined;
|
|
10
|
-
readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
11
|
-
readonly image?: string | undefined;
|
|
12
|
-
readonly fullName?: string | undefined;
|
|
13
|
-
readonly preferredName?: string | undefined;
|
|
14
|
-
readonly nickname?: string | undefined;
|
|
15
|
-
readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
16
|
-
readonly description?: string | undefined;
|
|
17
|
-
readonly name?: string | undefined;
|
|
18
|
-
readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
19
|
-
readonly image?: string | undefined;
|
|
20
|
-
readonly website?: string | undefined;
|
|
21
|
-
} & {
|
|
22
|
-
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
23
|
-
}> | undefined;
|
|
24
|
-
readonly jobTitle?: string | undefined;
|
|
25
|
-
readonly department?: string | undefined;
|
|
26
|
-
readonly notes?: string | undefined;
|
|
27
|
-
readonly emails?: readonly {
|
|
28
|
-
readonly value: string;
|
|
29
|
-
readonly label?: string | undefined;
|
|
30
|
-
}[] | undefined;
|
|
31
|
-
readonly identities?: readonly {
|
|
32
|
-
readonly value: string;
|
|
33
|
-
readonly label?: string | undefined;
|
|
34
|
-
}[] | undefined;
|
|
35
|
-
readonly phoneNumbers?: readonly {
|
|
36
|
-
readonly value: string;
|
|
37
|
-
readonly label?: string | undefined;
|
|
38
|
-
}[] | undefined;
|
|
39
|
-
readonly fields?: readonly {
|
|
40
|
-
readonly value: string;
|
|
41
|
-
readonly label: string;
|
|
42
|
-
readonly category?: string | undefined;
|
|
43
|
-
}[] | undefined;
|
|
44
|
-
readonly addresses?: readonly {
|
|
45
|
-
readonly value: {
|
|
46
|
-
readonly street?: string | undefined;
|
|
47
|
-
readonly extended?: string | undefined;
|
|
48
|
-
readonly locality?: string | undefined;
|
|
49
|
-
readonly region?: string | undefined;
|
|
50
|
-
readonly postalCode?: string | undefined;
|
|
51
|
-
readonly postOfficeBoxNumber?: string | undefined;
|
|
52
|
-
readonly country?: string | undefined;
|
|
53
|
-
};
|
|
54
|
-
readonly label?: string | undefined;
|
|
55
|
-
}[] | undefined;
|
|
56
|
-
readonly urls?: readonly {
|
|
57
|
-
readonly value: string;
|
|
58
|
-
readonly label?: string | undefined;
|
|
59
|
-
}[] | undefined;
|
|
60
|
-
readonly birthday?: string | undefined;
|
|
61
|
-
} & {
|
|
62
|
-
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
63
|
-
}> | undefined;
|
|
64
|
-
readonly identityDid?: string | undefined;
|
|
65
|
-
readonly identityKey?: string | undefined;
|
|
66
|
-
readonly email?: string | undefined;
|
|
67
|
-
};
|
|
68
|
-
readonly blocks: readonly ({
|
|
69
|
-
readonly pending?: boolean | undefined;
|
|
70
|
-
readonly text: string;
|
|
71
|
-
readonly mimeType?: string | undefined;
|
|
72
|
-
readonly disposition?: string | undefined;
|
|
73
|
-
readonly _tag: "text";
|
|
74
|
-
} | {
|
|
75
|
-
readonly pending?: boolean | undefined;
|
|
76
|
-
readonly _tag: "reasoning";
|
|
77
|
-
readonly reasoningText?: string | undefined;
|
|
78
|
-
readonly redactedText?: string | undefined;
|
|
79
|
-
readonly signature?: string | undefined;
|
|
80
|
-
} | {
|
|
81
|
-
readonly name: string;
|
|
82
|
-
readonly pending?: boolean | undefined;
|
|
83
|
-
readonly _tag: "toolCall";
|
|
84
|
-
readonly toolCallId: string;
|
|
85
|
-
readonly input: string;
|
|
86
|
-
readonly providerExecuted: boolean;
|
|
87
|
-
} | {
|
|
88
|
-
readonly name: string;
|
|
89
|
-
readonly pending?: boolean | undefined;
|
|
90
|
-
readonly _tag: "toolResult";
|
|
91
|
-
readonly toolCallId: string;
|
|
92
|
-
readonly providerExecuted: boolean;
|
|
93
|
-
readonly result?: string | undefined;
|
|
94
|
-
readonly error?: string | undefined;
|
|
95
|
-
} | {
|
|
96
|
-
readonly pending?: boolean | undefined;
|
|
97
|
-
readonly mimeType?: string | undefined;
|
|
98
|
-
readonly _tag: "stats";
|
|
99
|
-
readonly message?: string | undefined;
|
|
100
|
-
readonly model?: string | undefined;
|
|
101
|
-
readonly usage?: {
|
|
102
|
-
readonly inputTokens?: number | undefined;
|
|
103
|
-
readonly outputTokens?: number | undefined;
|
|
104
|
-
readonly totalTokens?: number | undefined;
|
|
105
|
-
} | undefined;
|
|
106
|
-
readonly toolCalls?: number | undefined;
|
|
107
|
-
readonly errors?: number | undefined;
|
|
108
|
-
readonly duration?: number | undefined;
|
|
109
|
-
} | {
|
|
110
|
-
readonly source?: {
|
|
111
|
-
readonly type: "base64";
|
|
112
|
-
readonly mediaType: string;
|
|
113
|
-
readonly data: string;
|
|
114
|
-
} | {
|
|
115
|
-
readonly type: "http";
|
|
116
|
-
readonly url: string;
|
|
117
|
-
} | undefined;
|
|
118
|
-
readonly id?: string | undefined;
|
|
119
|
-
readonly pending?: boolean | undefined;
|
|
120
|
-
readonly _tag: "image";
|
|
121
|
-
} | {
|
|
122
|
-
readonly name?: string | undefined;
|
|
123
|
-
readonly pending?: boolean | undefined;
|
|
124
|
-
readonly _tag: "file";
|
|
125
|
-
readonly mediaType?: string | undefined;
|
|
126
|
-
readonly url: string;
|
|
127
|
-
} | {
|
|
128
|
-
readonly pending?: boolean | undefined;
|
|
129
|
-
readonly _tag: "reference";
|
|
130
|
-
readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
|
|
131
|
-
} | {
|
|
132
|
-
readonly pending?: boolean | undefined;
|
|
133
|
-
readonly text: string;
|
|
134
|
-
readonly _tag: "transcript";
|
|
135
|
-
readonly started: string;
|
|
136
|
-
} | {
|
|
137
|
-
readonly pending?: boolean | undefined;
|
|
138
|
-
readonly _tag: "status";
|
|
139
|
-
readonly statusText: string;
|
|
140
|
-
} | {
|
|
141
|
-
readonly pending?: boolean | undefined;
|
|
142
|
-
readonly text: string;
|
|
143
|
-
readonly _tag: "suggestion";
|
|
144
|
-
} | {
|
|
145
|
-
readonly pending?: boolean | undefined;
|
|
146
|
-
readonly _tag: "select";
|
|
147
|
-
readonly options: string[];
|
|
148
|
-
} | {
|
|
149
|
-
readonly version: unknown;
|
|
150
|
-
readonly pending?: boolean | undefined;
|
|
151
|
-
readonly _tag: "anchor";
|
|
152
|
-
readonly objectId: string;
|
|
153
|
-
} | {
|
|
154
|
-
readonly pending?: boolean | undefined;
|
|
155
|
-
readonly text: string;
|
|
156
|
-
readonly _tag: "proposal";
|
|
157
|
-
} | {
|
|
158
|
-
readonly pending?: boolean | undefined;
|
|
159
|
-
readonly _tag: "summary";
|
|
160
|
-
readonly content: string;
|
|
161
|
-
} | {
|
|
162
|
-
readonly pending?: boolean | undefined;
|
|
163
|
-
readonly _tag: "toolkit";
|
|
164
|
-
} | {
|
|
165
|
-
readonly pending?: boolean | undefined;
|
|
166
|
-
readonly disposition?: string | undefined;
|
|
167
|
-
readonly _tag: "json";
|
|
168
|
-
readonly data: string;
|
|
169
|
-
})[];
|
|
170
|
-
readonly properties?: {
|
|
171
|
-
readonly [x: string]: any;
|
|
172
|
-
} | undefined;
|
|
173
|
-
}, Schema.Struct.Fields>, Schema.Struct<{
|
|
174
|
-
rangeId: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
175
|
-
}>>;
|
|
176
|
-
export interface MessageWithRangeId extends Schema.Schema.Type<typeof MessageWithRangeId> {
|
|
177
|
-
}
|
|
178
|
-
export declare const NormalizationInput: Schema.Struct<{
|
|
179
|
-
messages: Schema.Array$<Schema.extend<import("@dxos/echo/Type").Obj<{
|
|
2
|
+
import { Operation } from '@dxos/compute';
|
|
3
|
+
import { TranscriptOperation } from '../types';
|
|
4
|
+
type MessageWithRangeIdType = TranscriptOperation.MessageWithRangeIdType;
|
|
5
|
+
type SentenceNormalizationInputType = TranscriptOperation.SentenceNormalizationInputType;
|
|
6
|
+
declare const SentenceNormalizationOutput: Schema.Struct<{
|
|
7
|
+
sentences: Schema.mutable<Schema.Array$<Schema.mutable<Schema.extend<import("@dxos/echo/Type").Obj<{
|
|
180
8
|
readonly id: string;
|
|
181
9
|
readonly parentMessage?: string | undefined;
|
|
10
|
+
readonly threadId?: string | undefined;
|
|
182
11
|
readonly created: string;
|
|
183
12
|
readonly sender: {
|
|
184
|
-
readonly
|
|
185
|
-
readonly role?: "user" | "assistant" | "tool" | undefined;
|
|
13
|
+
readonly role?: "assistant" | "tool" | "user" | undefined;
|
|
186
14
|
readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
187
|
-
readonly image?: string | undefined;
|
|
188
15
|
readonly fullName?: string | undefined;
|
|
189
16
|
readonly preferredName?: string | undefined;
|
|
190
17
|
readonly nickname?: string | undefined;
|
|
18
|
+
readonly image?: string | undefined;
|
|
191
19
|
readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
192
|
-
readonly description?: string | undefined;
|
|
193
20
|
readonly name?: string | undefined;
|
|
194
|
-
readonly
|
|
21
|
+
readonly description?: string | undefined;
|
|
22
|
+
readonly status?: "active" | "commit" | "prospect" | "qualified" | "reject" | undefined;
|
|
195
23
|
readonly image?: string | undefined;
|
|
196
24
|
readonly website?: string | undefined;
|
|
197
25
|
} & {
|
|
@@ -201,23 +29,19 @@ export declare const NormalizationInput: Schema.Struct<{
|
|
|
201
29
|
readonly department?: string | undefined;
|
|
202
30
|
readonly notes?: string | undefined;
|
|
203
31
|
readonly emails?: readonly {
|
|
204
|
-
readonly value: string;
|
|
205
32
|
readonly label?: string | undefined;
|
|
33
|
+
readonly value: string;
|
|
206
34
|
}[] | undefined;
|
|
207
35
|
readonly identities?: readonly {
|
|
208
|
-
readonly value: string;
|
|
209
36
|
readonly label?: string | undefined;
|
|
37
|
+
readonly value: string;
|
|
210
38
|
}[] | undefined;
|
|
211
39
|
readonly phoneNumbers?: readonly {
|
|
212
|
-
readonly value: string;
|
|
213
40
|
readonly label?: string | undefined;
|
|
214
|
-
}[] | undefined;
|
|
215
|
-
readonly fields?: readonly {
|
|
216
41
|
readonly value: string;
|
|
217
|
-
readonly label: string;
|
|
218
|
-
readonly category?: string | undefined;
|
|
219
42
|
}[] | undefined;
|
|
220
43
|
readonly addresses?: readonly {
|
|
44
|
+
readonly label?: string | undefined;
|
|
221
45
|
readonly value: {
|
|
222
46
|
readonly street?: string | undefined;
|
|
223
47
|
readonly extended?: string | undefined;
|
|
@@ -227,62 +51,40 @@ export declare const NormalizationInput: Schema.Struct<{
|
|
|
227
51
|
readonly postOfficeBoxNumber?: string | undefined;
|
|
228
52
|
readonly country?: string | undefined;
|
|
229
53
|
};
|
|
230
|
-
readonly label?: string | undefined;
|
|
231
54
|
}[] | undefined;
|
|
232
55
|
readonly urls?: readonly {
|
|
233
|
-
readonly value: string;
|
|
234
56
|
readonly label?: string | undefined;
|
|
57
|
+
readonly value: string;
|
|
235
58
|
}[] | undefined;
|
|
236
59
|
readonly birthday?: string | undefined;
|
|
60
|
+
readonly fields?: readonly {
|
|
61
|
+
readonly category?: string | undefined;
|
|
62
|
+
readonly label: string;
|
|
63
|
+
readonly value: string;
|
|
64
|
+
}[] | undefined;
|
|
237
65
|
} & {
|
|
238
66
|
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
239
67
|
}> | undefined;
|
|
240
68
|
readonly identityDid?: string | undefined;
|
|
241
69
|
readonly identityKey?: string | undefined;
|
|
242
70
|
readonly email?: string | undefined;
|
|
71
|
+
readonly name?: string | undefined;
|
|
243
72
|
};
|
|
244
73
|
readonly blocks: readonly ({
|
|
74
|
+
readonly _tag: "anchor";
|
|
245
75
|
readonly pending?: boolean | undefined;
|
|
246
|
-
readonly
|
|
247
|
-
readonly
|
|
248
|
-
readonly disposition?: string | undefined;
|
|
249
|
-
readonly _tag: "text";
|
|
250
|
-
} | {
|
|
251
|
-
readonly pending?: boolean | undefined;
|
|
252
|
-
readonly _tag: "reasoning";
|
|
253
|
-
readonly reasoningText?: string | undefined;
|
|
254
|
-
readonly redactedText?: string | undefined;
|
|
255
|
-
readonly signature?: string | undefined;
|
|
256
|
-
} | {
|
|
257
|
-
readonly name: string;
|
|
258
|
-
readonly pending?: boolean | undefined;
|
|
259
|
-
readonly _tag: "toolCall";
|
|
260
|
-
readonly toolCallId: string;
|
|
261
|
-
readonly input: string;
|
|
262
|
-
readonly providerExecuted: boolean;
|
|
76
|
+
readonly objectId: string;
|
|
77
|
+
readonly version: unknown;
|
|
263
78
|
} | {
|
|
264
|
-
readonly
|
|
79
|
+
readonly _tag: "file";
|
|
265
80
|
readonly pending?: boolean | undefined;
|
|
266
|
-
readonly
|
|
267
|
-
readonly
|
|
268
|
-
readonly
|
|
269
|
-
readonly result?: string | undefined;
|
|
270
|
-
readonly error?: string | undefined;
|
|
81
|
+
readonly url: string;
|
|
82
|
+
readonly name?: string | undefined;
|
|
83
|
+
readonly mediaType?: string | undefined;
|
|
271
84
|
} | {
|
|
85
|
+
readonly _tag: "image";
|
|
272
86
|
readonly pending?: boolean | undefined;
|
|
273
|
-
readonly
|
|
274
|
-
readonly _tag: "stats";
|
|
275
|
-
readonly message?: string | undefined;
|
|
276
|
-
readonly model?: string | undefined;
|
|
277
|
-
readonly usage?: {
|
|
278
|
-
readonly inputTokens?: number | undefined;
|
|
279
|
-
readonly outputTokens?: number | undefined;
|
|
280
|
-
readonly totalTokens?: number | undefined;
|
|
281
|
-
} | undefined;
|
|
282
|
-
readonly toolCalls?: number | undefined;
|
|
283
|
-
readonly errors?: number | undefined;
|
|
284
|
-
readonly duration?: number | undefined;
|
|
285
|
-
} | {
|
|
87
|
+
readonly id?: string | undefined;
|
|
286
88
|
readonly source?: {
|
|
287
89
|
readonly type: "base64";
|
|
288
90
|
readonly mediaType: string;
|
|
@@ -291,84 +93,118 @@ export declare const NormalizationInput: Schema.Struct<{
|
|
|
291
93
|
readonly type: "http";
|
|
292
94
|
readonly url: string;
|
|
293
95
|
} | undefined;
|
|
294
|
-
|
|
96
|
+
} | {
|
|
97
|
+
readonly _tag: "json";
|
|
295
98
|
readonly pending?: boolean | undefined;
|
|
296
|
-
readonly
|
|
99
|
+
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
100
|
+
readonly data: string;
|
|
297
101
|
} | {
|
|
298
|
-
readonly
|
|
102
|
+
readonly _tag: "proposal";
|
|
299
103
|
readonly pending?: boolean | undefined;
|
|
300
|
-
readonly
|
|
301
|
-
readonly mediaType?: string | undefined;
|
|
302
|
-
readonly url: string;
|
|
104
|
+
readonly text: string;
|
|
303
105
|
} | {
|
|
106
|
+
readonly _tag: "reasoning";
|
|
304
107
|
readonly pending?: boolean | undefined;
|
|
305
|
-
readonly
|
|
306
|
-
readonly
|
|
108
|
+
readonly reasoningText?: string | undefined;
|
|
109
|
+
readonly redactedText?: string | undefined;
|
|
110
|
+
readonly signature?: string | undefined;
|
|
307
111
|
} | {
|
|
112
|
+
readonly _tag: "reference";
|
|
308
113
|
readonly pending?: boolean | undefined;
|
|
309
|
-
readonly
|
|
310
|
-
readonly _tag: "transcript";
|
|
311
|
-
readonly started: string;
|
|
114
|
+
readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown>;
|
|
312
115
|
} | {
|
|
116
|
+
readonly _tag: "select";
|
|
313
117
|
readonly pending?: boolean | undefined;
|
|
118
|
+
readonly options: string[];
|
|
119
|
+
} | {
|
|
314
120
|
readonly _tag: "status";
|
|
121
|
+
readonly pending?: boolean | undefined;
|
|
315
122
|
readonly statusText: string;
|
|
316
123
|
} | {
|
|
317
|
-
readonly pending?: boolean | undefined;
|
|
318
|
-
readonly text: string;
|
|
319
124
|
readonly _tag: "suggestion";
|
|
320
|
-
} | {
|
|
321
125
|
readonly pending?: boolean | undefined;
|
|
322
|
-
readonly
|
|
323
|
-
readonly options: string[];
|
|
126
|
+
readonly text: string;
|
|
324
127
|
} | {
|
|
325
|
-
readonly
|
|
128
|
+
readonly _tag: "stats";
|
|
326
129
|
readonly pending?: boolean | undefined;
|
|
327
|
-
readonly
|
|
328
|
-
readonly
|
|
130
|
+
readonly mimeType?: string | undefined;
|
|
131
|
+
readonly message?: string | undefined;
|
|
132
|
+
readonly model?: string | undefined;
|
|
133
|
+
readonly usage?: {
|
|
134
|
+
readonly inputTokens?: number | undefined;
|
|
135
|
+
readonly outputTokens?: number | undefined;
|
|
136
|
+
readonly totalTokens?: number | undefined;
|
|
137
|
+
} | undefined;
|
|
138
|
+
readonly toolCalls?: number | undefined;
|
|
139
|
+
readonly errors?: number | undefined;
|
|
140
|
+
readonly duration?: number | undefined;
|
|
329
141
|
} | {
|
|
142
|
+
readonly _tag: "text";
|
|
330
143
|
readonly pending?: boolean | undefined;
|
|
144
|
+
readonly mimeType?: string | undefined;
|
|
331
145
|
readonly text: string;
|
|
332
|
-
readonly
|
|
146
|
+
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
333
147
|
} | {
|
|
334
|
-
readonly pending?: boolean | undefined;
|
|
335
148
|
readonly _tag: "summary";
|
|
149
|
+
readonly pending?: boolean | undefined;
|
|
336
150
|
readonly content: string;
|
|
337
151
|
} | {
|
|
338
|
-
readonly pending?: boolean | undefined;
|
|
339
152
|
readonly _tag: "toolkit";
|
|
153
|
+
readonly pending?: boolean | undefined;
|
|
340
154
|
} | {
|
|
155
|
+
readonly _tag: "toolCall";
|
|
341
156
|
readonly pending?: boolean | undefined;
|
|
342
|
-
readonly
|
|
343
|
-
readonly
|
|
344
|
-
readonly
|
|
157
|
+
readonly toolCallId: string;
|
|
158
|
+
readonly name: string;
|
|
159
|
+
readonly input: string;
|
|
160
|
+
readonly providerExecuted: boolean;
|
|
161
|
+
} | {
|
|
162
|
+
readonly _tag: "toolResult";
|
|
163
|
+
readonly pending?: boolean | undefined;
|
|
164
|
+
readonly toolCallId: string;
|
|
165
|
+
readonly name: string;
|
|
166
|
+
readonly result?: string | undefined;
|
|
167
|
+
readonly error?: string | undefined;
|
|
168
|
+
readonly providerExecuted: boolean;
|
|
169
|
+
} | {
|
|
170
|
+
readonly _tag: "transcript";
|
|
171
|
+
readonly pending?: boolean | undefined;
|
|
172
|
+
readonly started: string;
|
|
173
|
+
readonly text: string;
|
|
345
174
|
})[];
|
|
346
175
|
readonly properties?: {
|
|
347
176
|
readonly [x: string]: any;
|
|
348
177
|
} | undefined;
|
|
349
178
|
}, Schema.Struct.Fields>, Schema.Struct<{
|
|
350
179
|
rangeId: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
351
|
-
}
|
|
180
|
+
}>>>>>;
|
|
352
181
|
}>;
|
|
353
|
-
export
|
|
354
|
-
|
|
355
|
-
export
|
|
356
|
-
|
|
182
|
+
export type MessageWithRangeId = MessageWithRangeIdType;
|
|
183
|
+
/** @deprecated Use SentenceNormalizationInputType */
|
|
184
|
+
export type NormalizationInput = SentenceNormalizationInputType;
|
|
185
|
+
/** @deprecated Use SentenceNormalizationOutput */
|
|
186
|
+
export type NormalizationOutput = Schema.Schema.Type<typeof SentenceNormalizationOutput>;
|
|
187
|
+
/**
|
|
188
|
+
* Sentence normalization for transcription.
|
|
189
|
+
* TODO(dmaretskyi): Reimplement using AiRequest.run or LanguageModel.generateObject - runStructured was removed.
|
|
190
|
+
*/
|
|
191
|
+
export declare const sentenceNormalization: Operation.WithHandler<Operation.Definition<{
|
|
192
|
+
readonly messages: readonly (import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
357
193
|
readonly id: string;
|
|
358
194
|
readonly parentMessage?: string | undefined;
|
|
195
|
+
readonly threadId?: string | undefined;
|
|
359
196
|
readonly created: string;
|
|
360
197
|
readonly sender: {
|
|
361
|
-
readonly
|
|
362
|
-
readonly role?: "user" | "assistant" | "tool" | undefined;
|
|
198
|
+
readonly role?: "assistant" | "tool" | "user" | undefined;
|
|
363
199
|
readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
364
|
-
readonly image?: string | undefined;
|
|
365
200
|
readonly fullName?: string | undefined;
|
|
366
201
|
readonly preferredName?: string | undefined;
|
|
367
202
|
readonly nickname?: string | undefined;
|
|
203
|
+
readonly image?: string | undefined;
|
|
368
204
|
readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
369
|
-
readonly description?: string | undefined;
|
|
370
205
|
readonly name?: string | undefined;
|
|
371
|
-
readonly
|
|
206
|
+
readonly description?: string | undefined;
|
|
207
|
+
readonly status?: "active" | "commit" | "prospect" | "qualified" | "reject" | undefined;
|
|
372
208
|
readonly image?: string | undefined;
|
|
373
209
|
readonly website?: string | undefined;
|
|
374
210
|
} & {
|
|
@@ -378,23 +214,19 @@ export declare const NormalizationOutput: Schema.Struct<{
|
|
|
378
214
|
readonly department?: string | undefined;
|
|
379
215
|
readonly notes?: string | undefined;
|
|
380
216
|
readonly emails?: readonly {
|
|
381
|
-
readonly value: string;
|
|
382
217
|
readonly label?: string | undefined;
|
|
218
|
+
readonly value: string;
|
|
383
219
|
}[] | undefined;
|
|
384
220
|
readonly identities?: readonly {
|
|
385
|
-
readonly value: string;
|
|
386
221
|
readonly label?: string | undefined;
|
|
222
|
+
readonly value: string;
|
|
387
223
|
}[] | undefined;
|
|
388
224
|
readonly phoneNumbers?: readonly {
|
|
389
|
-
readonly value: string;
|
|
390
225
|
readonly label?: string | undefined;
|
|
391
|
-
}[] | undefined;
|
|
392
|
-
readonly fields?: readonly {
|
|
393
226
|
readonly value: string;
|
|
394
|
-
readonly label: string;
|
|
395
|
-
readonly category?: string | undefined;
|
|
396
227
|
}[] | undefined;
|
|
397
228
|
readonly addresses?: readonly {
|
|
229
|
+
readonly label?: string | undefined;
|
|
398
230
|
readonly value: {
|
|
399
231
|
readonly street?: string | undefined;
|
|
400
232
|
readonly extended?: string | undefined;
|
|
@@ -404,51 +236,83 @@ export declare const NormalizationOutput: Schema.Struct<{
|
|
|
404
236
|
readonly postOfficeBoxNumber?: string | undefined;
|
|
405
237
|
readonly country?: string | undefined;
|
|
406
238
|
};
|
|
407
|
-
readonly label?: string | undefined;
|
|
408
239
|
}[] | undefined;
|
|
409
240
|
readonly urls?: readonly {
|
|
410
|
-
readonly value: string;
|
|
411
241
|
readonly label?: string | undefined;
|
|
242
|
+
readonly value: string;
|
|
412
243
|
}[] | undefined;
|
|
413
244
|
readonly birthday?: string | undefined;
|
|
245
|
+
readonly fields?: readonly {
|
|
246
|
+
readonly category?: string | undefined;
|
|
247
|
+
readonly label: string;
|
|
248
|
+
readonly value: string;
|
|
249
|
+
}[] | undefined;
|
|
414
250
|
} & {
|
|
415
251
|
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
416
252
|
}> | undefined;
|
|
417
253
|
readonly identityDid?: string | undefined;
|
|
418
254
|
readonly identityKey?: string | undefined;
|
|
419
255
|
readonly email?: string | undefined;
|
|
256
|
+
readonly name?: string | undefined;
|
|
420
257
|
};
|
|
421
258
|
readonly blocks: readonly ({
|
|
259
|
+
readonly _tag: "anchor";
|
|
422
260
|
readonly pending?: boolean | undefined;
|
|
423
|
-
readonly
|
|
424
|
-
readonly
|
|
425
|
-
readonly disposition?: string | undefined;
|
|
426
|
-
readonly _tag: "text";
|
|
261
|
+
readonly objectId: string;
|
|
262
|
+
readonly version: unknown;
|
|
427
263
|
} | {
|
|
264
|
+
readonly _tag: "file";
|
|
265
|
+
readonly pending?: boolean | undefined;
|
|
266
|
+
readonly url: string;
|
|
267
|
+
readonly name?: string | undefined;
|
|
268
|
+
readonly mediaType?: string | undefined;
|
|
269
|
+
} | {
|
|
270
|
+
readonly _tag: "image";
|
|
271
|
+
readonly pending?: boolean | undefined;
|
|
272
|
+
readonly id?: string | undefined;
|
|
273
|
+
readonly source?: {
|
|
274
|
+
readonly type: "base64";
|
|
275
|
+
readonly mediaType: string;
|
|
276
|
+
readonly data: string;
|
|
277
|
+
} | {
|
|
278
|
+
readonly type: "http";
|
|
279
|
+
readonly url: string;
|
|
280
|
+
} | undefined;
|
|
281
|
+
} | {
|
|
282
|
+
readonly _tag: "json";
|
|
428
283
|
readonly pending?: boolean | undefined;
|
|
284
|
+
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
285
|
+
readonly data: string;
|
|
286
|
+
} | {
|
|
287
|
+
readonly _tag: "proposal";
|
|
288
|
+
readonly pending?: boolean | undefined;
|
|
289
|
+
readonly text: string;
|
|
290
|
+
} | {
|
|
429
291
|
readonly _tag: "reasoning";
|
|
292
|
+
readonly pending?: boolean | undefined;
|
|
430
293
|
readonly reasoningText?: string | undefined;
|
|
431
294
|
readonly redactedText?: string | undefined;
|
|
432
295
|
readonly signature?: string | undefined;
|
|
433
296
|
} | {
|
|
434
|
-
readonly
|
|
297
|
+
readonly _tag: "reference";
|
|
435
298
|
readonly pending?: boolean | undefined;
|
|
436
|
-
readonly
|
|
437
|
-
readonly toolCallId: string;
|
|
438
|
-
readonly input: string;
|
|
439
|
-
readonly providerExecuted: boolean;
|
|
299
|
+
readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown>;
|
|
440
300
|
} | {
|
|
441
|
-
readonly
|
|
301
|
+
readonly _tag: "select";
|
|
442
302
|
readonly pending?: boolean | undefined;
|
|
443
|
-
readonly
|
|
444
|
-
readonly toolCallId: string;
|
|
445
|
-
readonly providerExecuted: boolean;
|
|
446
|
-
readonly result?: string | undefined;
|
|
447
|
-
readonly error?: string | undefined;
|
|
303
|
+
readonly options: string[];
|
|
448
304
|
} | {
|
|
305
|
+
readonly _tag: "status";
|
|
449
306
|
readonly pending?: boolean | undefined;
|
|
450
|
-
readonly
|
|
307
|
+
readonly statusText: string;
|
|
308
|
+
} | {
|
|
309
|
+
readonly _tag: "suggestion";
|
|
310
|
+
readonly pending?: boolean | undefined;
|
|
311
|
+
readonly text: string;
|
|
312
|
+
} | {
|
|
451
313
|
readonly _tag: "stats";
|
|
314
|
+
readonly pending?: boolean | undefined;
|
|
315
|
+
readonly mimeType?: string | undefined;
|
|
452
316
|
readonly message?: string | undefined;
|
|
453
317
|
readonly model?: string | undefined;
|
|
454
318
|
readonly usage?: {
|
|
@@ -460,6 +324,128 @@ export declare const NormalizationOutput: Schema.Struct<{
|
|
|
460
324
|
readonly errors?: number | undefined;
|
|
461
325
|
readonly duration?: number | undefined;
|
|
462
326
|
} | {
|
|
327
|
+
readonly _tag: "text";
|
|
328
|
+
readonly pending?: boolean | undefined;
|
|
329
|
+
readonly mimeType?: string | undefined;
|
|
330
|
+
readonly text: string;
|
|
331
|
+
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
332
|
+
} | {
|
|
333
|
+
readonly _tag: "summary";
|
|
334
|
+
readonly pending?: boolean | undefined;
|
|
335
|
+
readonly content: string;
|
|
336
|
+
} | {
|
|
337
|
+
readonly _tag: "toolkit";
|
|
338
|
+
readonly pending?: boolean | undefined;
|
|
339
|
+
} | {
|
|
340
|
+
readonly _tag: "toolCall";
|
|
341
|
+
readonly pending?: boolean | undefined;
|
|
342
|
+
readonly toolCallId: string;
|
|
343
|
+
readonly name: string;
|
|
344
|
+
readonly input: string;
|
|
345
|
+
readonly providerExecuted: boolean;
|
|
346
|
+
} | {
|
|
347
|
+
readonly _tag: "toolResult";
|
|
348
|
+
readonly pending?: boolean | undefined;
|
|
349
|
+
readonly toolCallId: string;
|
|
350
|
+
readonly name: string;
|
|
351
|
+
readonly result?: string | undefined;
|
|
352
|
+
readonly error?: string | undefined;
|
|
353
|
+
readonly providerExecuted: boolean;
|
|
354
|
+
} | {
|
|
355
|
+
readonly _tag: "transcript";
|
|
356
|
+
readonly pending?: boolean | undefined;
|
|
357
|
+
readonly started: string;
|
|
358
|
+
readonly text: string;
|
|
359
|
+
})[];
|
|
360
|
+
readonly properties?: {
|
|
361
|
+
readonly [x: string]: any;
|
|
362
|
+
} | undefined;
|
|
363
|
+
} & {
|
|
364
|
+
readonly rangeId?: readonly string[] | undefined;
|
|
365
|
+
})[];
|
|
366
|
+
}, {
|
|
367
|
+
readonly sentences: {
|
|
368
|
+
"~@dxos/echo/Kind": import("@dxos/echo/internal").EntityKind.Object;
|
|
369
|
+
id: import("@dxos/keys").ObjectId;
|
|
370
|
+
parentMessage?: string | undefined;
|
|
371
|
+
threadId?: string | undefined;
|
|
372
|
+
created: string;
|
|
373
|
+
sender: {
|
|
374
|
+
readonly role?: "assistant" | "tool" | "user" | undefined;
|
|
375
|
+
readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
376
|
+
readonly fullName?: string | undefined;
|
|
377
|
+
readonly preferredName?: string | undefined;
|
|
378
|
+
readonly nickname?: string | undefined;
|
|
379
|
+
readonly image?: string | undefined;
|
|
380
|
+
readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
381
|
+
readonly name?: string | undefined;
|
|
382
|
+
readonly description?: string | undefined;
|
|
383
|
+
readonly status?: "active" | "commit" | "prospect" | "qualified" | "reject" | undefined;
|
|
384
|
+
readonly image?: string | undefined;
|
|
385
|
+
readonly website?: string | undefined;
|
|
386
|
+
} & {
|
|
387
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
388
|
+
}> | undefined;
|
|
389
|
+
readonly jobTitle?: string | undefined;
|
|
390
|
+
readonly department?: string | undefined;
|
|
391
|
+
readonly notes?: string | undefined;
|
|
392
|
+
readonly emails?: readonly {
|
|
393
|
+
readonly label?: string | undefined;
|
|
394
|
+
readonly value: string;
|
|
395
|
+
}[] | undefined;
|
|
396
|
+
readonly identities?: readonly {
|
|
397
|
+
readonly label?: string | undefined;
|
|
398
|
+
readonly value: string;
|
|
399
|
+
}[] | undefined;
|
|
400
|
+
readonly phoneNumbers?: readonly {
|
|
401
|
+
readonly label?: string | undefined;
|
|
402
|
+
readonly value: string;
|
|
403
|
+
}[] | undefined;
|
|
404
|
+
readonly addresses?: readonly {
|
|
405
|
+
readonly label?: string | undefined;
|
|
406
|
+
readonly value: {
|
|
407
|
+
readonly street?: string | undefined;
|
|
408
|
+
readonly extended?: string | undefined;
|
|
409
|
+
readonly locality?: string | undefined;
|
|
410
|
+
readonly region?: string | undefined;
|
|
411
|
+
readonly postalCode?: string | undefined;
|
|
412
|
+
readonly postOfficeBoxNumber?: string | undefined;
|
|
413
|
+
readonly country?: string | undefined;
|
|
414
|
+
};
|
|
415
|
+
}[] | undefined;
|
|
416
|
+
readonly urls?: readonly {
|
|
417
|
+
readonly label?: string | undefined;
|
|
418
|
+
readonly value: string;
|
|
419
|
+
}[] | undefined;
|
|
420
|
+
readonly birthday?: string | undefined;
|
|
421
|
+
readonly fields?: readonly {
|
|
422
|
+
readonly category?: string | undefined;
|
|
423
|
+
readonly label: string;
|
|
424
|
+
readonly value: string;
|
|
425
|
+
}[] | undefined;
|
|
426
|
+
} & {
|
|
427
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
428
|
+
}> | undefined;
|
|
429
|
+
readonly identityDid?: string | undefined;
|
|
430
|
+
readonly identityKey?: string | undefined;
|
|
431
|
+
readonly email?: string | undefined;
|
|
432
|
+
readonly name?: string | undefined;
|
|
433
|
+
};
|
|
434
|
+
blocks: readonly ({
|
|
435
|
+
readonly _tag: "anchor";
|
|
436
|
+
readonly pending?: boolean | undefined;
|
|
437
|
+
readonly objectId: string;
|
|
438
|
+
readonly version: unknown;
|
|
439
|
+
} | {
|
|
440
|
+
readonly _tag: "file";
|
|
441
|
+
readonly pending?: boolean | undefined;
|
|
442
|
+
readonly url: string;
|
|
443
|
+
readonly name?: string | undefined;
|
|
444
|
+
readonly mediaType?: string | undefined;
|
|
445
|
+
} | {
|
|
446
|
+
readonly _tag: "image";
|
|
447
|
+
readonly pending?: boolean | undefined;
|
|
448
|
+
readonly id?: string | undefined;
|
|
463
449
|
readonly source?: {
|
|
464
450
|
readonly type: "base64";
|
|
465
451
|
readonly mediaType: string;
|
|
@@ -468,67 +454,90 @@ export declare const NormalizationOutput: Schema.Struct<{
|
|
|
468
454
|
readonly type: "http";
|
|
469
455
|
readonly url: string;
|
|
470
456
|
} | undefined;
|
|
471
|
-
|
|
457
|
+
} | {
|
|
458
|
+
readonly _tag: "json";
|
|
472
459
|
readonly pending?: boolean | undefined;
|
|
473
|
-
readonly
|
|
460
|
+
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
461
|
+
readonly data: string;
|
|
474
462
|
} | {
|
|
475
|
-
readonly
|
|
463
|
+
readonly _tag: "proposal";
|
|
476
464
|
readonly pending?: boolean | undefined;
|
|
477
|
-
readonly
|
|
478
|
-
readonly mediaType?: string | undefined;
|
|
479
|
-
readonly url: string;
|
|
465
|
+
readonly text: string;
|
|
480
466
|
} | {
|
|
467
|
+
readonly _tag: "reasoning";
|
|
481
468
|
readonly pending?: boolean | undefined;
|
|
482
|
-
readonly
|
|
483
|
-
readonly
|
|
469
|
+
readonly reasoningText?: string | undefined;
|
|
470
|
+
readonly redactedText?: string | undefined;
|
|
471
|
+
readonly signature?: string | undefined;
|
|
484
472
|
} | {
|
|
473
|
+
readonly _tag: "reference";
|
|
485
474
|
readonly pending?: boolean | undefined;
|
|
486
|
-
readonly
|
|
487
|
-
readonly _tag: "transcript";
|
|
488
|
-
readonly started: string;
|
|
475
|
+
readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown>;
|
|
489
476
|
} | {
|
|
477
|
+
readonly _tag: "select";
|
|
490
478
|
readonly pending?: boolean | undefined;
|
|
479
|
+
readonly options: string[];
|
|
480
|
+
} | {
|
|
491
481
|
readonly _tag: "status";
|
|
482
|
+
readonly pending?: boolean | undefined;
|
|
492
483
|
readonly statusText: string;
|
|
493
484
|
} | {
|
|
494
|
-
readonly pending?: boolean | undefined;
|
|
495
|
-
readonly text: string;
|
|
496
485
|
readonly _tag: "suggestion";
|
|
497
|
-
} | {
|
|
498
486
|
readonly pending?: boolean | undefined;
|
|
499
|
-
readonly
|
|
500
|
-
readonly options: string[];
|
|
487
|
+
readonly text: string;
|
|
501
488
|
} | {
|
|
502
|
-
readonly
|
|
489
|
+
readonly _tag: "stats";
|
|
503
490
|
readonly pending?: boolean | undefined;
|
|
504
|
-
readonly
|
|
505
|
-
readonly
|
|
491
|
+
readonly mimeType?: string | undefined;
|
|
492
|
+
readonly message?: string | undefined;
|
|
493
|
+
readonly model?: string | undefined;
|
|
494
|
+
readonly usage?: {
|
|
495
|
+
readonly inputTokens?: number | undefined;
|
|
496
|
+
readonly outputTokens?: number | undefined;
|
|
497
|
+
readonly totalTokens?: number | undefined;
|
|
498
|
+
} | undefined;
|
|
499
|
+
readonly toolCalls?: number | undefined;
|
|
500
|
+
readonly errors?: number | undefined;
|
|
501
|
+
readonly duration?: number | undefined;
|
|
506
502
|
} | {
|
|
503
|
+
readonly _tag: "text";
|
|
507
504
|
readonly pending?: boolean | undefined;
|
|
505
|
+
readonly mimeType?: string | undefined;
|
|
508
506
|
readonly text: string;
|
|
509
|
-
readonly
|
|
507
|
+
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
510
508
|
} | {
|
|
511
|
-
readonly pending?: boolean | undefined;
|
|
512
509
|
readonly _tag: "summary";
|
|
510
|
+
readonly pending?: boolean | undefined;
|
|
513
511
|
readonly content: string;
|
|
514
512
|
} | {
|
|
515
|
-
readonly pending?: boolean | undefined;
|
|
516
513
|
readonly _tag: "toolkit";
|
|
514
|
+
readonly pending?: boolean | undefined;
|
|
517
515
|
} | {
|
|
516
|
+
readonly _tag: "toolCall";
|
|
518
517
|
readonly pending?: boolean | undefined;
|
|
519
|
-
readonly
|
|
520
|
-
readonly
|
|
521
|
-
readonly
|
|
518
|
+
readonly toolCallId: string;
|
|
519
|
+
readonly name: string;
|
|
520
|
+
readonly input: string;
|
|
521
|
+
readonly providerExecuted: boolean;
|
|
522
|
+
} | {
|
|
523
|
+
readonly _tag: "toolResult";
|
|
524
|
+
readonly pending?: boolean | undefined;
|
|
525
|
+
readonly toolCallId: string;
|
|
526
|
+
readonly name: string;
|
|
527
|
+
readonly result?: string | undefined;
|
|
528
|
+
readonly error?: string | undefined;
|
|
529
|
+
readonly providerExecuted: boolean;
|
|
530
|
+
} | {
|
|
531
|
+
readonly _tag: "transcript";
|
|
532
|
+
readonly pending?: boolean | undefined;
|
|
533
|
+
readonly started: string;
|
|
534
|
+
readonly text: string;
|
|
522
535
|
})[];
|
|
523
|
-
|
|
536
|
+
properties?: {
|
|
524
537
|
readonly [x: string]: any;
|
|
525
538
|
} | undefined;
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
}>;
|
|
530
|
-
export interface NormalizationOutput extends Schema.Schema.Type<typeof NormalizationOutput> {
|
|
531
|
-
}
|
|
532
|
-
export declare const sentenceNormalization: import("@dxos/functions").FunctionDefinition<NormalizationInput, NormalizationOutput, import("@dxos/functions").FunctionServices>;
|
|
539
|
+
rangeId?: readonly string[] | undefined;
|
|
540
|
+
}[];
|
|
541
|
+
}, never>>;
|
|
533
542
|
export {};
|
|
534
543
|
//# sourceMappingURL=normalization.d.ts.map
|