@dxos/plugin-transcription 0.8.3 → 0.8.4-main.03d5cd7b56
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/neutral/TranscriptionContainer-XNGXNGPX.mjs +35 -0
- 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/neutral/blueprint-definition-HOXDG5QP.mjs +15 -0
- package/dist/lib/neutral/blueprint-definition-HOXDG5QP.mjs.map +7 -0
- package/dist/lib/neutral/blueprints/index.mjs +8 -0
- package/dist/lib/neutral/capabilities/index.mjs +17 -0
- package/dist/lib/neutral/capabilities/index.mjs.map +7 -0
- package/dist/lib/neutral/chunk-GL4RS533.mjs +22 -0
- package/dist/lib/neutral/chunk-GL4RS533.mjs.map +7 -0
- package/dist/lib/neutral/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/neutral/chunk-KAEXRX3Y.mjs +35 -0
- package/dist/lib/neutral/chunk-KAEXRX3Y.mjs.map +7 -0
- package/dist/lib/{browser/chunk-IQ5ZRMHZ.mjs → neutral/chunk-LS3R7EQI.mjs} +130 -195
- 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/meta.mjs.map +7 -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/operations/index.mjs.map +7 -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-OYPLZFG5.mjs → neutral/transcriber-M3R6HPTZ.mjs} +21 -18
- 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 +3 -1
- 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/index.d.ts +2 -0
- package/dist/types/src/blueprints/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/transcription-blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/transcription-blueprint.d.ts.map +1 -0
- 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 +3 -2
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- 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.d.ts +4 -3
- package/dist/types/src/capabilities/transcriber.d.ts.map +1 -1
- package/dist/types/src/components/Transcription/Transcription.d.ts +18 -0
- package/dist/types/src/components/Transcription/Transcription.d.ts.map +1 -0
- package/dist/types/src/components/Transcription/Transcription.stories.d.ts +40 -0
- package/dist/types/src/components/Transcription/Transcription.stories.d.ts.map +1 -0
- package/dist/types/src/components/Transcription/index.d.ts +2 -0
- package/dist/types/src/components/Transcription/index.d.ts.map +1 -0
- package/dist/types/src/components/Transcription/transcription-extension.d.ts +15 -0
- package/dist/types/src/components/Transcription/transcription-extension.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +1 -6
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/containers/TranscriptionContainer/TranscriptionContainer.d.ts +6 -0
- package/dist/types/src/containers/TranscriptionContainer/TranscriptionContainer.d.ts.map +1 -0
- package/dist/types/src/containers/TranscriptionContainer/index.d.ts +2 -0
- package/dist/types/src/containers/TranscriptionContainer/index.d.ts.map +1 -0
- package/dist/types/src/containers/index.d.ts +3 -0
- package/dist/types/src/containers/index.d.ts.map +1 -0
- 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 +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/meta.d.ts +2 -3
- package/dist/types/src/meta.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/{segments-normalization → normalization}/message-normalizer.d.ts +5 -5
- package/dist/types/src/normalization/message-normalizer.d.ts.map +1 -0
- package/dist/types/src/normalization/normalization.d.ts +543 -0
- 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 +3 -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/stories/FileTranscription.stories.d.ts +18 -0
- package/dist/types/src/stories/FileTranscription.stories.d.ts.map +1 -0
- package/dist/types/src/stories/KeyWordRecognition.stories.d.ts +14 -0
- package/dist/types/src/stories/KeyWordRecognition.stories.d.ts.map +1 -0
- package/dist/types/src/stories/MicrophoneTranscription.stories.d.ts +20 -0
- 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 +10 -10
- package/dist/types/src/testing/testing.d.ts.map +1 -1
- package/dist/types/src/transcriber/media-stream-recorder.d.ts +3 -3
- package/dist/types/src/transcriber/media-stream-recorder.d.ts.map +1 -1
- package/dist/types/src/transcriber/transcriber.d.ts +60 -5
- 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 +12 -13
- package/dist/types/src/transcriber/transcription-manager.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +10 -11
- 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/defs.d.ts +5 -0
- package/dist/types/src/types/defs.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +3 -2
- 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/index.d.ts +1 -0
- package/dist/types/src/util/index.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 +4 -0
- package/dist/types/src/util/render-byline.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +152 -84
- package/src/TranscriptionPlugin.node.ts +20 -0
- package/src/TranscriptionPlugin.test.ts +31 -0
- package/src/TranscriptionPlugin.tsx +22 -61
- package/src/blueprints/index.ts +5 -0
- package/src/blueprints/transcription-blueprint.ts +29 -0
- package/src/capabilities/blueprint-definition.ts +19 -0
- package/src/capabilities/index.ts +11 -6
- package/src/capabilities/operation-handler.ts +16 -0
- package/src/capabilities/react-surface.tsx +23 -14
- package/src/capabilities/text-content.ts +33 -0
- package/src/capabilities/transcriber.ts +53 -41
- package/src/components/{Transcript/Transcript.stories.tsx → Transcription/Transcription.stories.tsx} +80 -75
- package/src/components/Transcription/Transcription.tsx +64 -0
- package/src/components/{Transcript → Transcription}/index.ts +1 -1
- package/src/components/{Transcript/transcript-extension.ts → Transcription/transcription-extension.ts} +15 -48
- package/src/components/index.ts +1 -6
- package/src/containers/TranscriptionContainer/TranscriptionContainer.tsx +35 -0
- package/src/containers/TranscriptionContainer/index.ts +5 -0
- package/src/containers/index.ts +7 -0
- package/src/hooks/useAudioFile.ts +49 -53
- package/src/hooks/useQueueModelAdapter.ts +1 -1
- package/src/hooks/useTranscriber.ts +15 -7
- package/src/hooks/useVoiceInput.ts +3 -3
- package/src/index.ts +4 -5
- package/src/meta.ts +9 -6
- package/src/model/model.test.ts +27 -21
- package/src/model/model.ts +3 -3
- package/src/{segments-normalization → normalization}/message-normalizer.ts +20 -19
- package/src/{segments-normalization → normalization}/normalization.test.ts +26 -33
- package/src/normalization/normalization.ts +76 -0
- package/src/{segments-normalization → normalization}/utils.ts +2 -2
- 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/stories/FileTranscription.stories.tsx +269 -0
- package/src/{components/stories → stories}/KeyWordRecognition.stories.tsx +46 -40
- package/src/stories/MicrophoneTranscription.stories.tsx +264 -0
- package/src/stories/TranscriptionStory.tsx +93 -0
- package/src/testing/testing.ts +41 -41
- package/src/transcriber/media-stream-recorder.ts +4 -4
- package/src/transcriber/transcriber.browser.test.ts +5 -5
- package/src/transcriber/transcriber.test.ts +104 -0
- package/src/transcriber/transcriber.ts +101 -62
- package/src/transcriber/transcription-manager.ts +37 -52
- package/src/translations.ts +12 -10
- package/src/types/TranscriptOperation.ts +103 -0
- package/src/types/TranscriptionCapabilities.ts +39 -0
- package/src/types/defs.ts +9 -0
- package/src/types/index.ts +4 -2
- package/src/util/index.ts +1 -0
- package/src/util/render-byline.ts +33 -0
- package/dist/lib/browser/TranscriptContainer-H3AZQ4CQ.mjs +0 -11
- package/dist/lib/browser/chunk-53AXUEIQ.mjs +0 -764
- package/dist/lib/browser/chunk-53AXUEIQ.mjs.map +0 -7
- package/dist/lib/browser/chunk-GOF7MJNV.mjs +0 -19
- package/dist/lib/browser/chunk-GOF7MJNV.mjs.map +0 -7
- package/dist/lib/browser/chunk-IQ5ZRMHZ.mjs.map +0 -7
- package/dist/lib/browser/chunk-OSISJM2F.mjs +0 -55
- package/dist/lib/browser/chunk-OSISJM2F.mjs.map +0 -7
- package/dist/lib/browser/chunk-UDCCT32F.mjs +0 -8
- package/dist/lib/browser/chunk-UDCCT32F.mjs.map +0 -7
- package/dist/lib/browser/chunk-W2KNYJD6.mjs +0 -16
- package/dist/lib/browser/chunk-W2KNYJD6.mjs.map +0 -7
- package/dist/lib/browser/index.mjs +0 -125
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-BGADCHVM.mjs +0 -30
- package/dist/lib/browser/intent-resolver-BGADCHVM.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/browser/react-surface-HMJS5FSS.mjs +0 -34
- package/dist/lib/browser/react-surface-HMJS5FSS.mjs.map +0 -7
- package/dist/lib/browser/transcriber-OYPLZFG5.mjs.map +0 -7
- package/dist/lib/browser/types/index.mjs +0 -14
- package/dist/lib/node/TranscriptContainer-KIG3GMAB.cjs +0 -32
- package/dist/lib/node/TranscriptContainer-KIG3GMAB.cjs.map +0 -7
- package/dist/lib/node/chunk-3PYT3BDM.cjs +0 -40
- package/dist/lib/node/chunk-3PYT3BDM.cjs.map +0 -7
- package/dist/lib/node/chunk-6LW5RA3K.cjs +0 -75
- package/dist/lib/node/chunk-6LW5RA3K.cjs.map +0 -7
- package/dist/lib/node/chunk-AFUZI63A.cjs +0 -42
- package/dist/lib/node/chunk-AFUZI63A.cjs.map +0 -7
- package/dist/lib/node/chunk-CVUN3UO7.cjs +0 -778
- package/dist/lib/node/chunk-CVUN3UO7.cjs.map +0 -7
- package/dist/lib/node/chunk-FKDJNJ57.cjs +0 -35
- package/dist/lib/node/chunk-FKDJNJ57.cjs.map +0 -7
- package/dist/lib/node/chunk-ZFAUMZXE.cjs +0 -518
- package/dist/lib/node/chunk-ZFAUMZXE.cjs.map +0 -7
- package/dist/lib/node/index.cjs +0 -133
- package/dist/lib/node/index.cjs.map +0 -7
- package/dist/lib/node/intent-resolver-LL3TTI4H.cjs +0 -45
- package/dist/lib/node/intent-resolver-LL3TTI4H.cjs.map +0 -7
- package/dist/lib/node/meta.json +0 -1
- package/dist/lib/node/react-surface-N25TBBG4.cjs +0 -56
- package/dist/lib/node/react-surface-N25TBBG4.cjs.map +0 -7
- package/dist/lib/node/transcriber-6J4FVFSZ.cjs +0 -68
- package/dist/lib/node/transcriber-6J4FVFSZ.cjs.map +0 -7
- package/dist/lib/node/types/index.cjs +0 -36
- package/dist/lib/node/types/index.cjs.map +0 -7
- package/dist/lib/node-esm/TranscriptContainer-G75LDEO5.mjs +0 -12
- package/dist/lib/node-esm/chunk-56QHOX4A.mjs +0 -765
- package/dist/lib/node-esm/chunk-56QHOX4A.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-FH75X4JC.mjs +0 -56
- package/dist/lib/node-esm/chunk-FH75X4JC.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-MFJO7EKD.mjs +0 -10
- package/dist/lib/node-esm/chunk-MFJO7EKD.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-MFJPEIVB.mjs +0 -17
- package/dist/lib/node-esm/chunk-MFJPEIVB.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-PRL64SRU.mjs +0 -496
- package/dist/lib/node-esm/chunk-PRL64SRU.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-TXMDLLBR.mjs +0 -21
- package/dist/lib/node-esm/chunk-TXMDLLBR.mjs.map +0 -7
- package/dist/lib/node-esm/index.mjs +0 -126
- package/dist/lib/node-esm/index.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-5LVCYSJS.mjs +0 -31
- package/dist/lib/node-esm/intent-resolver-5LVCYSJS.mjs.map +0 -7
- package/dist/lib/node-esm/meta.json +0 -1
- package/dist/lib/node-esm/react-surface-JGQSYGRR.mjs +0 -35
- package/dist/lib/node-esm/react-surface-JGQSYGRR.mjs.map +0 -7
- package/dist/lib/node-esm/transcriber-TVG2MBBN.mjs +0 -57
- package/dist/lib/node-esm/transcriber-TVG2MBBN.mjs.map +0 -7
- package/dist/lib/node-esm/types/index.mjs +0 -15
- package/dist/types/src/capabilities/capabilities.d.ts +0 -17
- 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/components/Transcript/Transcript.d.ts +0 -20
- package/dist/types/src/components/Transcript/Transcript.d.ts.map +0 -1
- package/dist/types/src/components/Transcript/Transcript.stories.d.ts +0 -24
- package/dist/types/src/components/Transcript/Transcript.stories.d.ts.map +0 -1
- package/dist/types/src/components/Transcript/deprecated/OldTranscript.d.ts +0 -28
- package/dist/types/src/components/Transcript/deprecated/OldTranscript.d.ts.map +0 -1
- package/dist/types/src/components/Transcript/index.d.ts +0 -2
- package/dist/types/src/components/Transcript/index.d.ts.map +0 -1
- package/dist/types/src/components/Transcript/transcript-extension.d.ts +0 -19
- package/dist/types/src/components/Transcript/transcript-extension.d.ts.map +0 -1
- package/dist/types/src/components/TranscriptContainer.d.ts +0 -8
- package/dist/types/src/components/TranscriptContainer.d.ts.map +0 -1
- package/dist/types/src/components/stories/FileTranscription.stories.d.ts +0 -17
- package/dist/types/src/components/stories/FileTranscription.stories.d.ts.map +0 -1
- package/dist/types/src/components/stories/KeyWordRecognition.stories.d.ts +0 -10
- package/dist/types/src/components/stories/KeyWordRecognition.stories.d.ts.map +0 -1
- package/dist/types/src/components/stories/MicrophoneTranscription.stories.d.ts +0 -19
- package/dist/types/src/components/stories/MicrophoneTranscription.stories.d.ts.map +0 -1
- package/dist/types/src/components/stories/TranscriptionStory.d.ts +0 -11
- 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/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 +0 -329
- 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 +0 -3
- package/dist/types/src/segments-normalization/utils.d.ts.map +0 -1
- package/dist/types/src/types/schema.d.ts +0 -41
- package/dist/types/src/types/schema.d.ts.map +0 -1
- package/dist/types/src/types/types.d.ts +0 -31
- package/dist/types/src/types/types.d.ts.map +0 -1
- package/src/capabilities/capabilities.ts +0 -33
- package/src/capabilities/intent-resolver.ts +0 -24
- package/src/components/Transcript/Transcript.tsx +0 -100
- package/src/components/Transcript/deprecated/OldTranscript.tsx +0 -260
- package/src/components/TranscriptContainer.tsx +0 -30
- package/src/components/stories/FileTranscription.stories.tsx +0 -242
- package/src/components/stories/MicrophoneTranscription.stories.tsx +0 -280
- package/src/components/stories/TranscriptionStory.tsx +0 -41
- package/src/segments-normalization/normalization.ts +0 -105
- package/src/types/schema.ts +0 -41
- package/src/types/types.ts +0 -32
- package/dist/lib/{browser/types → neutral/blueprints}/index.mjs.map +0 -0
- package/dist/lib/{browser/TranscriptContainer-H3AZQ4CQ.mjs.map → neutral/chunk-J5LGTIGS.mjs.map} +0 -0
- package/dist/lib/{node-esm/types → neutral/hooks}/index.mjs.map +0 -0
- package/dist/lib/{node-esm/TranscriptContainer-G75LDEO5.mjs.map → neutral/index.mjs.map} +0 -0
- package/dist/types/src/{segments-normalization → normalization}/normalization.test.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/{components/stories → stories}/useIsSpeaking.tsx +0 -0
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import '@dxos-theme';
|
|
2
|
-
import { type Meta, type StoryObj } from '@storybook/react';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { type MediaStreamRecorderParams, type TranscriberParams } from '../../transcriber';
|
|
5
|
-
declare const AudioFile: ({ detectSpeaking, audioUrl, normalizeSentences, transcriberConfig, recorderConfig, audioConstraints, }: {
|
|
6
|
-
detectSpeaking?: boolean;
|
|
7
|
-
normalizeSentences?: boolean;
|
|
8
|
-
audioUrl: string;
|
|
9
|
-
transcriberConfig?: TranscriberParams["config"];
|
|
10
|
-
recorderConfig?: MediaStreamRecorderParams["config"];
|
|
11
|
-
audioConstraints?: MediaTrackConstraints;
|
|
12
|
-
}) => React.JSX.Element;
|
|
13
|
-
declare const meta: Meta<typeof AudioFile>;
|
|
14
|
-
export default meta;
|
|
15
|
-
export declare const Default: StoryObj<typeof AudioFile>;
|
|
16
|
-
export declare const WithSentenceNormalization: StoryObj<typeof AudioFile>;
|
|
17
|
-
//# sourceMappingURL=FileTranscription.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FileTranscription.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/stories/FileTranscription.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAA4D,MAAM,OAAO,CAAC;AA6BjF,OAAO,EAAE,KAAK,yBAAyB,EAAE,KAAK,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAG3F,QAAA,MAAM,SAAS,GAAI,wGAOhB;IACD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,CAAC,EAAE,iBAAiB,CAAC,QAAQ,CAAC,CAAC;IAChD,cAAc,CAAC,EAAE,yBAAyB,CAAC,QAAQ,CAAC,CAAC;IACrD,gBAAgB,CAAC,EAAE,qBAAqB,CAAC;CAC1C,sBA0HA,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CA2BhC,CAAC;AAEF,eAAe,IAAI,CAAC;AAYpB,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,OAAO,SAAS,CAU9C,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,QAAQ,CAAC,OAAO,SAAS,CAWhE,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import '@dxos-theme';
|
|
2
|
-
import { type StoryObj, type Meta } from '@storybook/react';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
declare const SpeechRecognition: ({ keywords }: {
|
|
5
|
-
keywords: string[];
|
|
6
|
-
}) => React.JSX.Element;
|
|
7
|
-
declare const meta: Meta<typeof SpeechRecognition>;
|
|
8
|
-
export default meta;
|
|
9
|
-
export declare const SpeechRecognitionAPI: StoryObj<typeof SpeechRecognition>;
|
|
10
|
-
//# sourceMappingURL=KeyWordRecognition.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"KeyWordRecognition.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/stories/KeyWordRecognition.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAAuC,MAAM,OAAO,CAAC;AAY5D,QAAA,MAAM,iBAAiB,GAAI,cAAc;IAAE,QAAQ,EAAE,MAAM,EAAE,CAAA;CAAE,sBA8F9D,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,iBAAiB,CAGxC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,OAAO,iBAAiB,CAKnE,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import '@dxos-theme';
|
|
2
|
-
import { type Meta, type StoryObj } from '@storybook/react';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { type MediaStreamRecorderParams, type TranscriberParams } from '../../transcriber';
|
|
5
|
-
type StoryProps = {
|
|
6
|
-
detectSpeaking?: boolean;
|
|
7
|
-
transcriberConfig: TranscriberParams['config'];
|
|
8
|
-
recorderConfig: MediaStreamRecorderParams['config'];
|
|
9
|
-
audioConstraints?: MediaTrackConstraints;
|
|
10
|
-
entityExtraction: 'none' | 'ner' | 'llm';
|
|
11
|
-
};
|
|
12
|
-
declare const DefaultStory: ({ detectSpeaking, entityExtraction, transcriberConfig, recorderConfig, audioConstraints, }: StoryProps) => React.JSX.Element;
|
|
13
|
-
declare const meta: Meta<typeof DefaultStory>;
|
|
14
|
-
export default meta;
|
|
15
|
-
type Story = StoryObj<typeof DefaultStory>;
|
|
16
|
-
export declare const Default: Story;
|
|
17
|
-
export declare const EntityExtraction: Story;
|
|
18
|
-
export declare const SpeechDetection: Story;
|
|
19
|
-
//# sourceMappingURL=MicrophoneTranscription.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MicrophoneTranscription.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/stories/MicrophoneTranscription.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAAoD,MAAM,OAAO,CAAC;AAmCzE,OAAO,EAAE,KAAK,yBAAyB,EAAE,KAAK,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAY3F,KAAK,UAAU,GAAG;IAChB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,iBAAiB,EAAE,iBAAiB,CAAC,QAAQ,CAAC,CAAC;IAC/C,cAAc,EAAE,yBAAyB,CAAC,QAAQ,CAAC,CAAC;IACpD,gBAAgB,CAAC,EAAE,qBAAqB,CAAC;IACzC,gBAAgB,EAAE,MAAM,GAAG,KAAK,GAAG,KAAK,CAAC;CAC1C,CAAC;AAEF,QAAA,MAAM,YAAY,GAAI,4FAMnB,UAAU,sBA0HZ,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CAyCnC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,YAAY,CAAC,CAAC;AAE3C,eAAO,MAAM,OAAO,EAAE,KAYrB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAY9B,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAY7B,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import '@dxos-theme';
|
|
2
|
-
import { type Dispatch, type FC, type RefObject, type SetStateAction } from 'react';
|
|
3
|
-
import { type DataType } from '@dxos/schema';
|
|
4
|
-
import { type SerializationModel } from '../../model';
|
|
5
|
-
export declare const TranscriptionStory: FC<{
|
|
6
|
-
model: SerializationModel<DataType.Message>;
|
|
7
|
-
running: boolean;
|
|
8
|
-
onRunningChange: Dispatch<SetStateAction<boolean>>;
|
|
9
|
-
audioRef?: RefObject<HTMLAudioElement>;
|
|
10
|
-
}>;
|
|
11
|
-
//# sourceMappingURL=TranscriptionStory.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TranscriptionStory.d.ts","sourceRoot":"","sources":["../../../../../src/components/stories/TranscriptionStory.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAc,EAAE,KAAK,QAAQ,EAAE,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAK3F,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7C,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAGtD,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC;IAClC,KAAK,EAAE,kBAAkB,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IAC5C,OAAO,EAAE,OAAO,CAAC;IACjB,eAAe,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IACnD,QAAQ,CAAC,EAAE,SAAS,CAAC,gBAAgB,CAAC,CAAC;CACxC,CAmBA,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useIsSpeaking.d.ts","sourceRoot":"","sources":["../../../../../src/components/stories/useIsSpeaking.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAQrB,eAAO,MAAM,aAAa,GAAI,QAAQ,gBAAgB,YA2BrD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/segments-normalization/index.ts"],"names":[],"mappings":"AAIA,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,SAAS,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"message-normalizer.d.ts","sourceRoot":"","sources":["../../../../src/segments-normalization/message-normalizer.ts"],"names":[],"mappings":"AAWA,OAAO,EAAkB,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAExD,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAC;AAQ7C,MAAM,MAAM,wBAAwB,GAAG;IACrC,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IAC/B,cAAc,EAAE,WAAW,CAAC;CAC7B,CAAC;AAGF,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAGF,qBAAa,iBAAkB,SAAQ,QAAQ;IAC7C,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAmB;IACrD,OAAO,CAAC,MAAM,CAA0B;IACxC,OAAO,CAAC,OAAO,CAAc;IAC7B,OAAO,CAAC,kBAAkB,CAA4B;IACtD,OAAO,CAAC,kBAAkB,CAAC,CAAe;IAC1C,OAAO,CAAC,wBAAwB,CAAC,CAAW;gBAEhC,EAAE,gBAAgB,EAAE,KAAK,EAAE,cAAc,EAAE,EAAE,wBAAwB;cAOxD,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;YAkBjC,gBAAgB;IAgC9B,OAAO,CAAC,cAAc;CAMvB"}
|
|
@@ -1,329 +0,0 @@
|
|
|
1
|
-
import { Schema } from 'effect';
|
|
2
|
-
declare const MessageWithRangeId: Schema.extend<import("@dxos/echo/Type").obj<Schema.Struct<{
|
|
3
|
-
id: import("@dxos/keys").ObjectIdClass;
|
|
4
|
-
created: import("effect/Schema").SchemaClass<string, string, never>;
|
|
5
|
-
sender: import("effect/Schema").mutable<import("effect/Schema").Struct<{
|
|
6
|
-
contact: import("effect/Schema").optional<import("@dxos/echo/Type").ref<import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
|
|
7
|
-
fullName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
8
|
-
preferredName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
9
|
-
nickname: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
10
|
-
image: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
11
|
-
organization: import("effect/Schema").optional<import("effect/Schema").Schema<import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
|
|
12
|
-
description?: string | undefined;
|
|
13
|
-
id: string;
|
|
14
|
-
name?: string | undefined;
|
|
15
|
-
status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
16
|
-
image?: string | undefined;
|
|
17
|
-
website?: string | undefined;
|
|
18
|
-
}>, import("@dxos/echo-protocol").EncodedReference, never>>;
|
|
19
|
-
jobTitle: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
20
|
-
department: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
21
|
-
notes: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
22
|
-
emails: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
23
|
-
label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
24
|
-
value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
|
|
25
|
-
}>>>>;
|
|
26
|
-
identities: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
27
|
-
label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
28
|
-
value: typeof import("effect/Schema").String;
|
|
29
|
-
}>>>>;
|
|
30
|
-
phoneNumbers: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
31
|
-
label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
32
|
-
value: typeof import("effect/Schema").String;
|
|
33
|
-
}>>>>;
|
|
34
|
-
addresses: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
35
|
-
label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
36
|
-
value: import("effect/Schema").Struct<{
|
|
37
|
-
street: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
38
|
-
extended: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
39
|
-
locality: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
40
|
-
region: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
41
|
-
postalCode: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
42
|
-
postOfficeBoxNumber: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
43
|
-
country: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
44
|
-
}>;
|
|
45
|
-
}>>>>;
|
|
46
|
-
urls: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
47
|
-
label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
48
|
-
value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
|
|
49
|
-
}>>>>;
|
|
50
|
-
birthday: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").SchemaClass<string, string, never>>>;
|
|
51
|
-
fields: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
52
|
-
category: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
53
|
-
label: typeof import("effect/Schema").String;
|
|
54
|
-
value: typeof import("effect/Schema").String;
|
|
55
|
-
}>>>>;
|
|
56
|
-
}>>>>;
|
|
57
|
-
identityDid: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
58
|
-
identityKey: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
59
|
-
email: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
60
|
-
name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
61
|
-
role: import("effect/Schema").optional<import("effect/Schema").Literal<["user", "assistant"]>>;
|
|
62
|
-
}>>;
|
|
63
|
-
blocks: import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
|
|
64
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
65
|
-
}>, import("effect/Schema").Struct<{
|
|
66
|
-
type: import("effect/Schema").Literal<["text"]>;
|
|
67
|
-
disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
68
|
-
text: typeof import("effect/Schema").String;
|
|
69
|
-
}>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
|
|
70
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
71
|
-
}>, import("effect/Schema").Struct<{
|
|
72
|
-
type: import("effect/Schema").Literal<["json"]>;
|
|
73
|
-
disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
74
|
-
data: typeof import("effect/Schema").String;
|
|
75
|
-
}>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
|
|
76
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
77
|
-
}>, import("effect/Schema").Struct<{
|
|
78
|
-
type: import("effect/Schema").Literal<["image"]>;
|
|
79
|
-
id: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
80
|
-
source: import("effect/Schema").optional<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").Struct<{
|
|
81
|
-
type: import("effect/Schema").Literal<["base64"]>;
|
|
82
|
-
mediaType: typeof import("effect/Schema").String;
|
|
83
|
-
data: typeof import("effect/Schema").String;
|
|
84
|
-
}>>, import("effect/Schema").mutable<import("effect/Schema").Struct<{
|
|
85
|
-
type: import("effect/Schema").Literal<["http"]>;
|
|
86
|
-
url: typeof import("effect/Schema").String;
|
|
87
|
-
}>>]>>;
|
|
88
|
-
}>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
|
|
89
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
90
|
-
}>, import("effect/Schema").Struct<{
|
|
91
|
-
type: import("effect/Schema").Literal<["reference"]>;
|
|
92
|
-
reference: import("@dxos/echo/Type").ref<import("effect/Schema").Schema<import("@dxos/echo/Type").Expando, {
|
|
93
|
-
[x: string]: any;
|
|
94
|
-
id: string;
|
|
95
|
-
}, never>>;
|
|
96
|
-
}>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
|
|
97
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
98
|
-
}>, import("effect/Schema").Struct<{
|
|
99
|
-
type: import("effect/Schema").Literal<["transcription"]>;
|
|
100
|
-
started: typeof import("effect/Schema").String;
|
|
101
|
-
text: typeof import("effect/Schema").String;
|
|
102
|
-
}>>>]>>>;
|
|
103
|
-
properties: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Any>>>;
|
|
104
|
-
}>>, Schema.Struct<{
|
|
105
|
-
rangeId: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
106
|
-
}>>;
|
|
107
|
-
export interface MessageWithRangeId extends Schema.Schema.Type<typeof MessageWithRangeId> {
|
|
108
|
-
}
|
|
109
|
-
export declare const NormalizationInput: Schema.Struct<{
|
|
110
|
-
messages: Schema.Array$<Schema.extend<import("@dxos/echo/Type").obj<Schema.Struct<{
|
|
111
|
-
id: import("@dxos/keys").ObjectIdClass;
|
|
112
|
-
created: import("effect/Schema").SchemaClass<string, string, never>;
|
|
113
|
-
sender: import("effect/Schema").mutable<import("effect/Schema").Struct<{
|
|
114
|
-
contact: import("effect/Schema").optional<import("@dxos/echo/Type").ref<import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
|
|
115
|
-
fullName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
116
|
-
preferredName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
117
|
-
nickname: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
118
|
-
image: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
119
|
-
organization: import("effect/Schema").optional<import("effect/Schema").Schema<import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
|
|
120
|
-
description?: string | undefined;
|
|
121
|
-
id: string;
|
|
122
|
-
name?: string | undefined;
|
|
123
|
-
status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
124
|
-
image?: string | undefined;
|
|
125
|
-
website?: string | undefined;
|
|
126
|
-
}>, import("@dxos/echo-protocol").EncodedReference, never>>;
|
|
127
|
-
jobTitle: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
128
|
-
department: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
129
|
-
notes: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
130
|
-
emails: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
131
|
-
label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
132
|
-
value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
|
|
133
|
-
}>>>>;
|
|
134
|
-
identities: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
135
|
-
label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
136
|
-
value: typeof import("effect/Schema").String;
|
|
137
|
-
}>>>>;
|
|
138
|
-
phoneNumbers: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
139
|
-
label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
140
|
-
value: typeof import("effect/Schema").String;
|
|
141
|
-
}>>>>;
|
|
142
|
-
addresses: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
143
|
-
label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
144
|
-
value: import("effect/Schema").Struct<{
|
|
145
|
-
street: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
146
|
-
extended: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
147
|
-
locality: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
148
|
-
region: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
149
|
-
postalCode: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
150
|
-
postOfficeBoxNumber: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
151
|
-
country: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
152
|
-
}>;
|
|
153
|
-
}>>>>;
|
|
154
|
-
urls: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
155
|
-
label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
156
|
-
value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
|
|
157
|
-
}>>>>;
|
|
158
|
-
birthday: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").SchemaClass<string, string, never>>>;
|
|
159
|
-
fields: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
160
|
-
category: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
161
|
-
label: typeof import("effect/Schema").String;
|
|
162
|
-
value: typeof import("effect/Schema").String;
|
|
163
|
-
}>>>>;
|
|
164
|
-
}>>>>;
|
|
165
|
-
identityDid: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
166
|
-
identityKey: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
167
|
-
email: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
168
|
-
name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
169
|
-
role: import("effect/Schema").optional<import("effect/Schema").Literal<["user", "assistant"]>>;
|
|
170
|
-
}>>;
|
|
171
|
-
blocks: import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
|
|
172
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
173
|
-
}>, import("effect/Schema").Struct<{
|
|
174
|
-
type: import("effect/Schema").Literal<["text"]>;
|
|
175
|
-
disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
176
|
-
text: typeof import("effect/Schema").String;
|
|
177
|
-
}>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
|
|
178
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
179
|
-
}>, import("effect/Schema").Struct<{
|
|
180
|
-
type: import("effect/Schema").Literal<["json"]>;
|
|
181
|
-
disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
182
|
-
data: typeof import("effect/Schema").String;
|
|
183
|
-
}>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
|
|
184
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
185
|
-
}>, import("effect/Schema").Struct<{
|
|
186
|
-
type: import("effect/Schema").Literal<["image"]>;
|
|
187
|
-
id: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
188
|
-
source: import("effect/Schema").optional<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").Struct<{
|
|
189
|
-
type: import("effect/Schema").Literal<["base64"]>;
|
|
190
|
-
mediaType: typeof import("effect/Schema").String;
|
|
191
|
-
data: typeof import("effect/Schema").String;
|
|
192
|
-
}>>, import("effect/Schema").mutable<import("effect/Schema").Struct<{
|
|
193
|
-
type: import("effect/Schema").Literal<["http"]>;
|
|
194
|
-
url: typeof import("effect/Schema").String;
|
|
195
|
-
}>>]>>;
|
|
196
|
-
}>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
|
|
197
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
198
|
-
}>, import("effect/Schema").Struct<{
|
|
199
|
-
type: import("effect/Schema").Literal<["reference"]>;
|
|
200
|
-
reference: import("@dxos/echo/Type").ref<import("effect/Schema").Schema<import("@dxos/echo/Type").Expando, {
|
|
201
|
-
[x: string]: any;
|
|
202
|
-
id: string;
|
|
203
|
-
}, never>>;
|
|
204
|
-
}>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
|
|
205
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
206
|
-
}>, import("effect/Schema").Struct<{
|
|
207
|
-
type: import("effect/Schema").Literal<["transcription"]>;
|
|
208
|
-
started: typeof import("effect/Schema").String;
|
|
209
|
-
text: typeof import("effect/Schema").String;
|
|
210
|
-
}>>>]>>>;
|
|
211
|
-
properties: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Any>>>;
|
|
212
|
-
}>>, Schema.Struct<{
|
|
213
|
-
rangeId: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
214
|
-
}>>>;
|
|
215
|
-
}>;
|
|
216
|
-
export interface NormalizationInput extends Schema.Schema.Type<typeof NormalizationInput> {
|
|
217
|
-
}
|
|
218
|
-
export declare const NormalizationOutput: Schema.Struct<{
|
|
219
|
-
sentences: Schema.mutable<Schema.Array$<Schema.mutable<Schema.extend<import("@dxos/echo/Type").obj<Schema.Struct<{
|
|
220
|
-
id: import("@dxos/keys").ObjectIdClass;
|
|
221
|
-
created: import("effect/Schema").SchemaClass<string, string, never>;
|
|
222
|
-
sender: import("effect/Schema").mutable<import("effect/Schema").Struct<{
|
|
223
|
-
contact: import("effect/Schema").optional<import("@dxos/echo/Type").ref<import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
|
|
224
|
-
fullName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
225
|
-
preferredName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
226
|
-
nickname: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
227
|
-
image: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
228
|
-
organization: import("effect/Schema").optional<import("effect/Schema").Schema<import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
|
|
229
|
-
description?: string | undefined;
|
|
230
|
-
id: string;
|
|
231
|
-
name?: string | undefined;
|
|
232
|
-
status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
233
|
-
image?: string | undefined;
|
|
234
|
-
website?: string | undefined;
|
|
235
|
-
}>, import("@dxos/echo-protocol").EncodedReference, never>>;
|
|
236
|
-
jobTitle: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
237
|
-
department: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
238
|
-
notes: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
239
|
-
emails: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
240
|
-
label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
241
|
-
value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
|
|
242
|
-
}>>>>;
|
|
243
|
-
identities: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
244
|
-
label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
245
|
-
value: typeof import("effect/Schema").String;
|
|
246
|
-
}>>>>;
|
|
247
|
-
phoneNumbers: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
248
|
-
label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
249
|
-
value: typeof import("effect/Schema").String;
|
|
250
|
-
}>>>>;
|
|
251
|
-
addresses: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
252
|
-
label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
253
|
-
value: import("effect/Schema").Struct<{
|
|
254
|
-
street: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
255
|
-
extended: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
256
|
-
locality: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
257
|
-
region: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
258
|
-
postalCode: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
259
|
-
postOfficeBoxNumber: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
260
|
-
country: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
261
|
-
}>;
|
|
262
|
-
}>>>>;
|
|
263
|
-
urls: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
264
|
-
label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
265
|
-
value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
|
|
266
|
-
}>>>>;
|
|
267
|
-
birthday: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").SchemaClass<string, string, never>>>;
|
|
268
|
-
fields: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
269
|
-
category: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
270
|
-
label: typeof import("effect/Schema").String;
|
|
271
|
-
value: typeof import("effect/Schema").String;
|
|
272
|
-
}>>>>;
|
|
273
|
-
}>>>>;
|
|
274
|
-
identityDid: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
275
|
-
identityKey: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
276
|
-
email: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
277
|
-
name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
278
|
-
role: import("effect/Schema").optional<import("effect/Schema").Literal<["user", "assistant"]>>;
|
|
279
|
-
}>>;
|
|
280
|
-
blocks: import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
|
|
281
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
282
|
-
}>, import("effect/Schema").Struct<{
|
|
283
|
-
type: import("effect/Schema").Literal<["text"]>;
|
|
284
|
-
disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
285
|
-
text: typeof import("effect/Schema").String;
|
|
286
|
-
}>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
|
|
287
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
288
|
-
}>, import("effect/Schema").Struct<{
|
|
289
|
-
type: import("effect/Schema").Literal<["json"]>;
|
|
290
|
-
disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
291
|
-
data: typeof import("effect/Schema").String;
|
|
292
|
-
}>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
|
|
293
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
294
|
-
}>, import("effect/Schema").Struct<{
|
|
295
|
-
type: import("effect/Schema").Literal<["image"]>;
|
|
296
|
-
id: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
297
|
-
source: import("effect/Schema").optional<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").Struct<{
|
|
298
|
-
type: import("effect/Schema").Literal<["base64"]>;
|
|
299
|
-
mediaType: typeof import("effect/Schema").String;
|
|
300
|
-
data: typeof import("effect/Schema").String;
|
|
301
|
-
}>>, import("effect/Schema").mutable<import("effect/Schema").Struct<{
|
|
302
|
-
type: import("effect/Schema").Literal<["http"]>;
|
|
303
|
-
url: typeof import("effect/Schema").String;
|
|
304
|
-
}>>]>>;
|
|
305
|
-
}>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
|
|
306
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
307
|
-
}>, import("effect/Schema").Struct<{
|
|
308
|
-
type: import("effect/Schema").Literal<["reference"]>;
|
|
309
|
-
reference: import("@dxos/echo/Type").ref<import("effect/Schema").Schema<import("@dxos/echo/Type").Expando, {
|
|
310
|
-
[x: string]: any;
|
|
311
|
-
id: string;
|
|
312
|
-
}, never>>;
|
|
313
|
-
}>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
|
|
314
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
315
|
-
}>, import("effect/Schema").Struct<{
|
|
316
|
-
type: import("effect/Schema").Literal<["transcription"]>;
|
|
317
|
-
started: typeof import("effect/Schema").String;
|
|
318
|
-
text: typeof import("effect/Schema").String;
|
|
319
|
-
}>>>]>>>;
|
|
320
|
-
properties: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Any>>>;
|
|
321
|
-
}>>, Schema.Struct<{
|
|
322
|
-
rangeId: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
323
|
-
}>>>>>;
|
|
324
|
-
}>;
|
|
325
|
-
export interface NormalizationOutput extends Schema.Schema.Type<typeof NormalizationOutput> {
|
|
326
|
-
}
|
|
327
|
-
export declare const sentenceNormalization: import("@dxos/functions").FunctionDefinition<NormalizationInput, NormalizationOutput>;
|
|
328
|
-
export {};
|
|
329
|
-
//# sourceMappingURL=normalization.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"normalization.d.ts","sourceRoot":"","sources":["../../../../src/segments-normalization/normalization.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAUhC,QAAA,MAAM,kBAAkB;;;;;;;;;;2BA2Fyie,CAAC;;oBAA8E,CAAC;sBAAgD,CAAC;qBAAkG,CAAC;uBAAiD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAnFt1e,CAAC;AAEF,MAAM,WAAW,kBAAmB,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,kBAAkB,CAAC;CAAG;AAE5F,eAAO,MAAM,kBAAkB;;;;;;;;;;;+BA+Ekie,CAAC;;wBAA8E,CAAC;0BAAgD,CAAC;yBAAkG,CAAC;2BAAiD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA1Er1e,CAAC;AACH,MAAM,WAAW,kBAAmB,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,kBAAkB,CAAC;CAAG;AAE5F,eAAO,MAAM,mBAAmB;;;;;;;;;;;+BAuEiie,CAAC;;wBAA8E,CAAC;0BAAgD,CAAC;yBAAkG,CAAC;2BAAiD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAnEr1e,CAAC;AACH,MAAM,WAAW,mBAAoB,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,mBAAmB,CAAC;CAAG;AAoC9F,eAAO,MAAM,qBAAqB,uFA6BhC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"normalization.test.d.ts","sourceRoot":"","sources":["../../../../src/segments-normalization/normalization.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/segments-normalization/utils.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7C,eAAO,MAAM,UAAU,GAAI,OAAO,QAAQ,CAAC,KAAK,WAE/C,CAAC"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { Schema } from 'effect';
|
|
2
|
-
import { Queue } from '@dxos/client/echo';
|
|
3
|
-
import { Type } from '@dxos/echo';
|
|
4
|
-
/**
|
|
5
|
-
* Root transcript object created when the user starts a transcription.
|
|
6
|
-
*/
|
|
7
|
-
export declare const TranscriptSchema: Schema.Struct<{
|
|
8
|
-
started: Schema.optional<typeof Schema.String>;
|
|
9
|
-
ended: Schema.optional<typeof Schema.String>;
|
|
10
|
-
/**
|
|
11
|
-
* Queue containing TranscriptBlock objects.
|
|
12
|
-
*/
|
|
13
|
-
queue: Type.ref<Schema.Schema<Queue<import("@dxos/echo/Obj").Any | import("@dxos/echo/Relation").Any>, Queue<import("@dxos/echo/Obj").Any | import("@dxos/echo/Relation").Any>, never>>;
|
|
14
|
-
}>;
|
|
15
|
-
declare const TranscriptType_base: import("@dxos/echo-schema").TypedObjectPrototype<import("@dxos/echo-schema").TypedObjectFields<Readonly<{
|
|
16
|
-
started: Schema.optional<typeof Schema.String>;
|
|
17
|
-
ended: Schema.optional<typeof Schema.String>;
|
|
18
|
-
/**
|
|
19
|
-
* Queue containing TranscriptBlock objects.
|
|
20
|
-
*/
|
|
21
|
-
queue: Type.ref<Schema.Schema<Queue<import("@dxos/echo/Obj").Any | import("@dxos/echo/Relation").Any>, Queue<import("@dxos/echo/Obj").Any | import("@dxos/echo/Relation").Any>, never>>;
|
|
22
|
-
}>, import("@dxos/echo-schema").TypedObjectOptions>, Schema.Struct.Encoded<Readonly<{
|
|
23
|
-
started: Schema.optional<typeof Schema.String>;
|
|
24
|
-
ended: Schema.optional<typeof Schema.String>;
|
|
25
|
-
/**
|
|
26
|
-
* Queue containing TranscriptBlock objects.
|
|
27
|
-
*/
|
|
28
|
-
queue: Type.ref<Schema.Schema<Queue<import("@dxos/echo/Obj").Any | import("@dxos/echo/Relation").Any>, Queue<import("@dxos/echo/Obj").Any | import("@dxos/echo/Relation").Any>, never>>;
|
|
29
|
-
}>>>;
|
|
30
|
-
export declare class TranscriptType extends TranscriptType_base {
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* First message in queue.
|
|
34
|
-
* Contains metadata for the recording and transcript.
|
|
35
|
-
*/
|
|
36
|
-
declare const TranscriptHeader: Schema.Struct<{
|
|
37
|
-
started: Schema.optional<typeof Schema.String>;
|
|
38
|
-
}>;
|
|
39
|
-
export type TranscriptHeader = Schema.Schema.Type<typeof TranscriptHeader>;
|
|
40
|
-
export {};
|
|
41
|
-
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/types/schema.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAGlC;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;IAM3B;;OAEG;;EAEH,CAAC;;;;IAJD;;OAEG;;;;;IAFH;;OAEG;;;AAIL,qBAAa,cAAe,SAAQ,mBAGT;CAAG;AAI9B;;;GAGG;AACH,QAAA,MAAM,gBAAgB;;EAEpB,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Schema } from 'effect';
|
|
2
|
-
import { SpaceId } from '@dxos/react-client/echo';
|
|
3
|
-
import { TranscriptType } from './schema';
|
|
4
|
-
/**
|
|
5
|
-
* Endpoint to the calls service.
|
|
6
|
-
*/
|
|
7
|
-
export declare const TRANSCRIPTION_URL = "https://calls-service.dxos.workers.dev";
|
|
8
|
-
export declare namespace TranscriptionAction {
|
|
9
|
-
const Create_base: Schema.TaggedClass<Create, "dxos.org/plugin/transcription/action/create", {
|
|
10
|
-
readonly _tag: Schema.tag<"dxos.org/plugin/transcription/action/create">;
|
|
11
|
-
} & {
|
|
12
|
-
input: Schema.Struct<{
|
|
13
|
-
name: Schema.optional<typeof Schema.String>;
|
|
14
|
-
spaceId: Schema.Schema<SpaceId, string, never> & {
|
|
15
|
-
byteLength: number;
|
|
16
|
-
encode: (value: Uint8Array) => SpaceId;
|
|
17
|
-
decode: (value: SpaceId) => Uint8Array;
|
|
18
|
-
isValid: (value: string) => value is SpaceId;
|
|
19
|
-
make: (value: string) => SpaceId;
|
|
20
|
-
random: () => SpaceId;
|
|
21
|
-
};
|
|
22
|
-
}>;
|
|
23
|
-
output: Schema.Struct<{
|
|
24
|
-
object: typeof TranscriptType;
|
|
25
|
-
}>;
|
|
26
|
-
}>;
|
|
27
|
-
export class Create extends Create_base {
|
|
28
|
-
}
|
|
29
|
-
export {};
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/types/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAElD,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAK1C;;GAEG;AAEH,eAAO,MAAM,iBAAiB,2CAA2C,CAAC;AAE1E,yBAAiB,mBAAmB,CAAC;;;;;;;;;;;;;;;;;;;IAGnC,MAAM,OAAO,MAAO,SAAQ,WAQ1B;KAAG;;CACN"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import { defineCapability } from '@dxos/app-framework';
|
|
6
|
-
|
|
7
|
-
import { TRANSCRIPTION_PLUGIN } from '../meta';
|
|
8
|
-
import {
|
|
9
|
-
type TranscriberParams,
|
|
10
|
-
type Transcriber,
|
|
11
|
-
type TranscriptionManager,
|
|
12
|
-
type TranscriptMessageEnricher,
|
|
13
|
-
type MediaStreamRecorderParams,
|
|
14
|
-
} from '../transcriber';
|
|
15
|
-
|
|
16
|
-
export namespace TranscriptionCapabilities {
|
|
17
|
-
export type GetTranscriberProps = {
|
|
18
|
-
audioStreamTrack: MediaStreamTrack;
|
|
19
|
-
onSegments: TranscriberParams['onSegments'];
|
|
20
|
-
transcriberConfig?: Partial<TranscriberParams['config']>;
|
|
21
|
-
recorderConfig?: Partial<MediaStreamRecorderParams['config']>;
|
|
22
|
-
};
|
|
23
|
-
export type GetTranscriber = (props: GetTranscriberProps) => Transcriber;
|
|
24
|
-
export const Transcriber = defineCapability<GetTranscriber>(`${TRANSCRIPTION_PLUGIN}/capability/transcriber`);
|
|
25
|
-
|
|
26
|
-
export type GetTranscriptionManagerProps = {
|
|
27
|
-
messageEnricher?: TranscriptMessageEnricher;
|
|
28
|
-
};
|
|
29
|
-
export type GetTranscriptionManager = (props: GetTranscriptionManagerProps) => TranscriptionManager;
|
|
30
|
-
export const TranscriptionManager = defineCapability<GetTranscriptionManager>(
|
|
31
|
-
`${TRANSCRIPTION_PLUGIN}/capability/transcription-manager`,
|
|
32
|
-
);
|
|
33
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import { Capabilities, contributes, createResolver, type PluginContext } from '@dxos/app-framework';
|
|
6
|
-
import { type Key, Obj, Ref } from '@dxos/echo';
|
|
7
|
-
import { createQueueDXN } from '@dxos/echo-schema';
|
|
8
|
-
|
|
9
|
-
import { TranscriptionAction, TranscriptType } from '../types';
|
|
10
|
-
|
|
11
|
-
export default (context: PluginContext) =>
|
|
12
|
-
contributes(Capabilities.IntentResolver, [
|
|
13
|
-
createResolver({
|
|
14
|
-
intent: TranscriptionAction.Create,
|
|
15
|
-
resolve: ({ name, spaceId }) => {
|
|
16
|
-
const transcript = Obj.make(TranscriptType, {
|
|
17
|
-
// TODO(dmaretskyi): Use space.queues.create() instead.
|
|
18
|
-
queue: Ref.fromDXN(createQueueDXN(spaceId as Key.SpaceId)),
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
return { data: { object: transcript } };
|
|
22
|
-
},
|
|
23
|
-
}),
|
|
24
|
-
]);
|