@dxos/plugin-transcription 0.8.4-main.fd6878d → 0.9.0
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/LICENSE +102 -5
- package/PLUGIN.mdl +401 -0
- package/README.md +1 -1
- package/dist/lib/neutral/TranscriptionArticle-L6XANBH5.mjs +54 -0
- package/dist/lib/neutral/TranscriptionArticle-L6XANBH5.mjs.map +7 -0
- package/dist/lib/neutral/TranscriptionPlugin.mjs +46 -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/TranscriptionPlugin.workerd.mjs +21 -0
- package/dist/lib/neutral/TranscriptionPlugin.workerd.mjs.map +7 -0
- package/dist/lib/neutral/blueprint-definition-DA4QFRYJ.mjs +15 -0
- package/dist/lib/neutral/blueprint-definition-DA4QFRYJ.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-FHNI26QW.mjs +45 -0
- package/dist/lib/neutral/chunk-FHNI26QW.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/neutral/chunk-KMT3BMMQ.mjs +124 -0
- package/dist/lib/neutral/chunk-KMT3BMMQ.mjs.map +7 -0
- package/dist/lib/neutral/chunk-KXJZEYS7.mjs +8 -0
- package/dist/lib/neutral/chunk-KXJZEYS7.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-TO77KAQK.mjs +298 -0
- package/dist/lib/neutral/chunk-TO77KAQK.mjs.map +7 -0
- package/dist/lib/{browser/chunk-KJIQQHJB.mjs → neutral/chunk-TX3NQISZ.mjs} +115 -186
- package/dist/lib/neutral/chunk-TX3NQISZ.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 +269 -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-RVR7VC33.mjs +21 -0
- package/dist/lib/neutral/create-RVR7VC33.mjs.map +7 -0
- package/dist/lib/neutral/hooks/index.mjs +19 -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-A5KXKRH4.mjs +27 -0
- package/dist/lib/neutral/open-A5KXKRH4.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-YMZRO242.mjs +26 -0
- package/dist/lib/neutral/react-surface-YMZRO242.mjs.map +7 -0
- package/dist/lib/neutral/summarize-5XPPMVTE.mjs +77 -0
- package/dist/lib/neutral/summarize-5XPPMVTE.mjs.map +7 -0
- package/dist/lib/neutral/text-content-KBB37HSM.mjs +30 -0
- package/dist/lib/neutral/text-content-KBB37HSM.mjs.map +7 -0
- package/dist/lib/neutral/transcriber-OGSF3XO5.mjs +59 -0
- package/dist/lib/neutral/transcriber-OGSF3XO5.mjs.map +7 -0
- package/dist/lib/neutral/translations.mjs +24 -0
- package/dist/lib/neutral/translations.mjs.map +7 -0
- package/dist/lib/neutral/types/index.mjs +10 -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/TranscriptionPlugin.workerd.d.ts +4 -0
- package/dist/types/src/TranscriptionPlugin.workerd.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 +11 -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/Oracle/Oracle.d.ts +24 -0
- package/dist/types/src/components/Oracle/Oracle.d.ts.map +1 -0
- package/dist/types/src/components/Oracle/Oracle.stories.d.ts +32 -0
- package/dist/types/src/components/Oracle/Oracle.stories.d.ts.map +1 -0
- package/dist/types/src/components/Oracle/index.d.ts +2 -0
- package/dist/types/src/components/Oracle/index.d.ts.map +1 -0
- package/dist/types/src/components/Transcription/Transcription.d.ts +11 -0
- package/dist/types/src/components/Transcription/Transcription.d.ts.map +1 -0
- package/dist/types/src/components/Transcription/Transcription.stories.d.ts +37 -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 +2 -3
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/containers/TranscriptionArticle/TranscriptionArticle.d.ts +6 -0
- package/dist/types/src/containers/TranscriptionArticle/TranscriptionArticle.d.ts.map +1 -0
- package/dist/types/src/containers/TranscriptionArticle/TranscriptionArticle.stories.d.ts +28 -0
- package/dist/types/src/containers/TranscriptionArticle/TranscriptionArticle.stories.d.ts.map +1 -0
- package/dist/types/src/containers/TranscriptionArticle/index.d.ts +2 -0
- package/dist/types/src/containers/TranscriptionArticle/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/enrichment/conversation.test.d.ts +2 -0
- package/dist/types/src/enrichment/conversation.test.d.ts.map +1 -0
- package/dist/types/src/enrichment/operations.d.ts +200 -0
- package/dist/types/src/enrichment/operations.d.ts.map +1 -0
- package/dist/types/src/enrichment/parser.d.ts +26 -0
- package/dist/types/src/enrichment/parser.d.ts.map +1 -0
- package/dist/types/src/enrichment/stream-simulator.d.ts +38 -0
- package/dist/types/src/enrichment/stream-simulator.d.ts.map +1 -0
- package/dist/types/src/hooks/index.d.ts +2 -1
- package/dist/types/src/hooks/index.d.ts.map +1 -1
- package/dist/types/src/hooks/useAudioFile.d.ts.map +1 -1
- package/dist/types/src/hooks/useAudioTrack.d.ts.map +1 -1
- package/dist/types/src/hooks/useFeedModelAdapter.d.ts +12 -0
- package/dist/types/src/hooks/useFeedModelAdapter.d.ts.map +1 -0
- 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/useTranscriptionRecording.d.ts +12 -0
- package/dist/types/src/hooks/useTranscriptionRecording.d.ts.map +1 -0
- 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 +9 -7
- package/dist/types/src/normalization/message-normalizer.d.ts.map +1 -0
- package/dist/types/src/normalization/normalization.d.ts +834 -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 +20 -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/LiveTranscription.stories.d.ts +20 -0
- package/dist/types/src/stories/LiveTranscription.stories.d.ts.map +1 -0
- package/dist/types/src/stories/TranscriptionStory.d.ts +21 -0
- package/dist/types/src/stories/TranscriptionStory.d.ts.map +1 -0
- package/dist/types/src/stories/common.d.ts +248 -0
- package/dist/types/src/stories/common.d.ts.map +1 -0
- package/dist/types/src/testing/testing.d.ts +14 -15
- 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 +2 -2
- package/dist/types/src/transcriber/media-stream-recorder.d.ts.map +1 -1
- package/dist/types/src/transcriber/transcriber.d.ts +61 -6
- 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 +17 -16
- package/dist/types/src/transcriber/transcription-manager.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +9 -8
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/TranscriptOperation.d.ts +1670 -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/index.d.ts +2 -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 +153 -85
- package/src/TranscriptionPlugin.node.ts +20 -0
- package/src/TranscriptionPlugin.test.ts +31 -0
- package/src/TranscriptionPlugin.tsx +28 -61
- package/src/TranscriptionPlugin.workerd.ts +18 -0
- 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 +16 -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 +54 -41
- package/src/components/Oracle/Oracle.stories.tsx +147 -0
- package/src/components/Oracle/Oracle.tsx +142 -0
- package/src/components/Oracle/index.ts +5 -0
- package/src/components/Transcription/Transcription.stories.tsx +213 -0
- package/src/components/Transcription/Transcription.tsx +55 -0
- package/src/components/{Transcript → Transcription}/index.ts +1 -1
- package/src/components/{Transcript/transcript-extension.ts → Transcription/transcription-extension.ts} +13 -46
- package/src/components/index.ts +2 -6
- package/src/containers/TranscriptionArticle/TranscriptionArticle.stories.tsx +61 -0
- package/src/containers/TranscriptionArticle/TranscriptionArticle.tsx +62 -0
- package/src/containers/TranscriptionArticle/index.ts +5 -0
- package/src/containers/index.ts +7 -0
- package/src/enrichment/conversation.test.ts +162 -0
- package/src/enrichment/conversation.txt +23 -0
- package/src/enrichment/operations.ts +271 -0
- package/src/enrichment/parser.ts +101 -0
- package/src/enrichment/stream-simulator.ts +125 -0
- package/src/hooks/index.ts +2 -1
- package/src/hooks/useAudioFile.ts +49 -53
- package/src/hooks/useAudioTrack.ts +1 -1
- package/src/hooks/useFeedModelAdapter.ts +46 -0
- package/src/hooks/useTranscriber.ts +15 -7
- package/src/hooks/useTranscriptionRecording.ts +87 -0
- package/src/hooks/useVoiceInput.ts +3 -4
- package/src/index.ts +4 -5
- package/src/meta.ts +32 -7
- package/src/model/model.test.ts +22 -16
- package/src/model/model.ts +3 -3
- package/src/{segments-normalization → normalization}/message-normalizer.ts +37 -24
- package/src/{segments-normalization → normalization}/normalization.test.ts +9 -48
- 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 +102 -0
- package/src/plugin.ts +11 -0
- package/src/stories/FileTranscription.stories.tsx +143 -0
- package/src/{components/stories → stories}/KeyWordRecognition.stories.tsx +50 -46
- package/src/stories/LiveTranscription.stories.tsx +153 -0
- package/src/stories/TranscriptionStory.tsx +101 -0
- package/src/stories/common.ts +233 -0
- package/src/testing/testing.ts +53 -65
- package/src/transcriber/index.ts +1 -1
- package/src/transcriber/media-stream-recorder.ts +3 -3
- package/src/transcriber/transcriber.browser.test.ts +4 -5
- package/src/transcriber/transcriber.test.ts +104 -0
- package/src/transcriber/transcriber.ts +105 -60
- package/src/transcriber/transcription-manager.ts +49 -59
- package/src/translations.ts +10 -7
- package/src/types/TranscriptOperation.ts +106 -0
- package/src/types/TranscriptionCapabilities.ts +39 -0
- package/src/types/index.ts +2 -2
- package/src/util/index.ts +1 -0
- package/src/util/render-byline.ts +33 -0
- package/src/vite-env.d.ts +10 -0
- package/dist/lib/browser/TranscriptContainer-FH7VAWYA.mjs +0 -11
- package/dist/lib/browser/chunk-5WH45KBY.mjs +0 -19
- package/dist/lib/browser/chunk-5WH45KBY.mjs.map +0 -7
- package/dist/lib/browser/chunk-BJWYA2BU.mjs +0 -782
- package/dist/lib/browser/chunk-BJWYA2BU.mjs.map +0 -7
- package/dist/lib/browser/chunk-KJIQQHJB.mjs.map +0 -7
- package/dist/lib/browser/chunk-KWOOVS5G.mjs +0 -55
- package/dist/lib/browser/chunk-KWOOVS5G.mjs.map +0 -7
- package/dist/lib/browser/chunk-SREIAQSP.mjs +0 -16
- package/dist/lib/browser/chunk-SREIAQSP.mjs.map +0 -7
- package/dist/lib/browser/chunk-UKUSJTQW.mjs +0 -8
- package/dist/lib/browser/chunk-UKUSJTQW.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-AOVQ7JI4.mjs +0 -30
- package/dist/lib/browser/intent-resolver-AOVQ7JI4.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/browser/react-surface-4MEJMKYQ.mjs +0 -34
- package/dist/lib/browser/react-surface-4MEJMKYQ.mjs.map +0 -7
- package/dist/lib/browser/transcriber-V77CN7XX.mjs +0 -56
- package/dist/lib/browser/transcriber-V77CN7XX.mjs.map +0 -7
- package/dist/lib/browser/types/index.mjs +0 -14
- package/dist/lib/node-esm/TranscriptContainer-GEUOOYHX.mjs +0 -12
- package/dist/lib/node-esm/chunk-A33GNR44.mjs +0 -507
- package/dist/lib/node-esm/chunk-A33GNR44.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-IKQMDRY6.mjs +0 -56
- package/dist/lib/node-esm/chunk-IKQMDRY6.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-PHP7MCAY.mjs +0 -10
- package/dist/lib/node-esm/chunk-PHP7MCAY.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-TM2ASOZA.mjs +0 -17
- package/dist/lib/node-esm/chunk-TM2ASOZA.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-XMUCZBP3.mjs +0 -21
- package/dist/lib/node-esm/chunk-XMUCZBP3.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-Y7PCJ34K.mjs +0 -783
- package/dist/lib/node-esm/chunk-Y7PCJ34K.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-P4XPIKQF.mjs +0 -31
- package/dist/lib/node-esm/intent-resolver-P4XPIKQF.mjs.map +0 -7
- package/dist/lib/node-esm/meta.json +0 -1
- package/dist/lib/node-esm/react-surface-EZUPNHUC.mjs +0 -35
- package/dist/lib/node-esm/react-surface-EZUPNHUC.mjs.map +0 -7
- package/dist/lib/node-esm/transcriber-3SX3DNLV.mjs +0 -57
- package/dist/lib/node-esm/transcriber-3SX3DNLV.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 -9
- 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 +0 -3
- package/dist/types/src/components/stories/useIsSpeaking.d.ts.map +0 -1
- package/dist/types/src/hooks/useQueueModelAdapter.d.ts +0 -8
- package/dist/types/src/hooks/useQueueModelAdapter.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 -422
- 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.stories.tsx +0 -243
- package/src/components/Transcript/Transcript.tsx +0 -101
- package/src/components/Transcript/deprecated/OldTranscript.tsx +0 -260
- package/src/components/TranscriptContainer.tsx +0 -36
- package/src/components/stories/FileTranscription.stories.tsx +0 -246
- package/src/components/stories/MicrophoneTranscription.stories.tsx +0 -283
- package/src/components/stories/TranscriptionStory.tsx +0 -41
- package/src/components/stories/useIsSpeaking.tsx +0 -40
- package/src/hooks/useQueueModelAdapter.ts +0 -66
- package/src/segments-normalization/normalization.ts +0 -115
- package/src/types/schema.ts +0 -41
- package/src/types/types.ts +0 -33
- package/dist/lib/{browser/types → neutral/blueprints}/index.mjs.map +0 -0
- package/dist/lib/{browser/TranscriptContainer-FH7VAWYA.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-GEUOOYHX.mjs.map → neutral/index.mjs.map} +0 -0
- package/dist/types/src/{segments-normalization → normalization}/normalization.test.d.ts +0 -0
- package/src/{segments-normalization → normalization}/index.ts +1 -1
|
@@ -1,422 +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
|
-
parentMessage: import("effect/Schema").optional<import("@dxos/keys").ObjectIdClass>;
|
|
5
|
-
created: import("effect/Schema").SchemaClass<string, string, never>;
|
|
6
|
-
sender: import("effect/Schema").mutable<import("effect/Schema").Struct<{
|
|
7
|
-
contact: import("effect/Schema").optional<import("@dxos/echo/Type").ref<import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
|
|
8
|
-
fullName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
9
|
-
preferredName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
10
|
-
nickname: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
11
|
-
image: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
12
|
-
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> & {
|
|
13
|
-
id: string;
|
|
14
|
-
name?: string | undefined;
|
|
15
|
-
description?: string | undefined;
|
|
16
|
-
status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
17
|
-
image?: string | undefined;
|
|
18
|
-
website?: string | undefined;
|
|
19
|
-
}>, import("@dxos/echo-protocol").EncodedReference, never>>;
|
|
20
|
-
jobTitle: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
21
|
-
department: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
22
|
-
notes: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
23
|
-
emails: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
24
|
-
label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
25
|
-
value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
|
|
26
|
-
}>>>>;
|
|
27
|
-
identities: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
28
|
-
label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
29
|
-
value: typeof import("effect/Schema").String;
|
|
30
|
-
}>>>>;
|
|
31
|
-
phoneNumbers: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
32
|
-
label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
33
|
-
value: typeof import("effect/Schema").String;
|
|
34
|
-
}>>>>;
|
|
35
|
-
addresses: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
36
|
-
label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
37
|
-
value: import("effect/Schema").Struct<{
|
|
38
|
-
street: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
39
|
-
extended: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
40
|
-
locality: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
41
|
-
region: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
42
|
-
postalCode: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
43
|
-
postOfficeBoxNumber: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
44
|
-
country: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
45
|
-
}>;
|
|
46
|
-
}>>>>;
|
|
47
|
-
urls: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
48
|
-
label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
49
|
-
value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
|
|
50
|
-
}>>>>;
|
|
51
|
-
birthday: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
52
|
-
fields: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
53
|
-
category: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
54
|
-
label: typeof import("effect/Schema").String;
|
|
55
|
-
value: typeof import("effect/Schema").String;
|
|
56
|
-
}>>>>;
|
|
57
|
-
}>>>>;
|
|
58
|
-
identityDid: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
59
|
-
identityKey: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
60
|
-
email: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
61
|
-
name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
62
|
-
role: import("effect/Schema").optional<import("effect/Schema").Literal<["user", "assistant"]>>;
|
|
63
|
-
}>>;
|
|
64
|
-
blocks: import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"anchor", {
|
|
65
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
66
|
-
objectId: import("@dxos/keys").ObjectIdClass;
|
|
67
|
-
version: typeof import("effect/Schema").Unknown;
|
|
68
|
-
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"file", {
|
|
69
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
70
|
-
url: typeof import("effect/Schema").String;
|
|
71
|
-
name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
72
|
-
mediaType: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
73
|
-
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"image", {
|
|
74
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
75
|
-
id: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
76
|
-
source: import("effect/Schema").optional<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").Struct<{
|
|
77
|
-
type: import("effect/Schema").Literal<["base64"]>;
|
|
78
|
-
mediaType: typeof import("effect/Schema").String;
|
|
79
|
-
data: typeof import("effect/Schema").String;
|
|
80
|
-
}>>, import("effect/Schema").mutable<import("effect/Schema").Struct<{
|
|
81
|
-
type: import("effect/Schema").Literal<["http"]>;
|
|
82
|
-
url: typeof import("effect/Schema").String;
|
|
83
|
-
}>>]>>;
|
|
84
|
-
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"json", {
|
|
85
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
86
|
-
disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
87
|
-
data: typeof import("effect/Schema").String;
|
|
88
|
-
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"proposal", {
|
|
89
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
90
|
-
text: typeof import("effect/Schema").String;
|
|
91
|
-
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"reasoning", {
|
|
92
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
93
|
-
reasoningText: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
94
|
-
redactedText: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
95
|
-
signature: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
96
|
-
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"reference", {
|
|
97
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
98
|
-
reference: import("@dxos/echo/Type").ref<import("effect/Schema").Schema<import("@dxos/echo/Type").Expando, {
|
|
99
|
-
[x: string]: any;
|
|
100
|
-
id: string;
|
|
101
|
-
}, never>>;
|
|
102
|
-
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"select", {
|
|
103
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
104
|
-
options: import("effect/Schema").Array$<typeof import("effect/Schema").String>;
|
|
105
|
-
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"status", {
|
|
106
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
107
|
-
statusText: typeof import("effect/Schema").String;
|
|
108
|
-
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"suggest", {
|
|
109
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
110
|
-
text: typeof import("effect/Schema").String;
|
|
111
|
-
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"text", {
|
|
112
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
113
|
-
mimeType: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
114
|
-
text: typeof import("effect/Schema").String;
|
|
115
|
-
disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
116
|
-
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"toolkit", {
|
|
117
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
118
|
-
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"toolCall", {
|
|
119
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
120
|
-
toolCallId: typeof import("effect/Schema").String;
|
|
121
|
-
name: typeof import("effect/Schema").String;
|
|
122
|
-
input: typeof import("effect/Schema").Unknown;
|
|
123
|
-
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"toolResult", {
|
|
124
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
125
|
-
toolCallId: typeof import("effect/Schema").String;
|
|
126
|
-
name: typeof import("effect/Schema").String;
|
|
127
|
-
result: typeof import("effect/Schema").Unknown;
|
|
128
|
-
error: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
129
|
-
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"transcript", {
|
|
130
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
131
|
-
started: typeof import("effect/Schema").String;
|
|
132
|
-
text: typeof import("effect/Schema").String;
|
|
133
|
-
}>>]>>>;
|
|
134
|
-
properties: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Any>>>;
|
|
135
|
-
}>>, Schema.Struct<{
|
|
136
|
-
rangeId: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
137
|
-
}>>;
|
|
138
|
-
export interface MessageWithRangeId extends Schema.Schema.Type<typeof MessageWithRangeId> {
|
|
139
|
-
}
|
|
140
|
-
export declare const NormalizationInput: Schema.Struct<{
|
|
141
|
-
messages: Schema.Array$<Schema.extend<import("@dxos/echo/Type").obj<Schema.Struct<{
|
|
142
|
-
id: import("@dxos/keys").ObjectIdClass;
|
|
143
|
-
parentMessage: import("effect/Schema").optional<import("@dxos/keys").ObjectIdClass>;
|
|
144
|
-
created: import("effect/Schema").SchemaClass<string, string, never>;
|
|
145
|
-
sender: import("effect/Schema").mutable<import("effect/Schema").Struct<{
|
|
146
|
-
contact: import("effect/Schema").optional<import("@dxos/echo/Type").ref<import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
|
|
147
|
-
fullName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
148
|
-
preferredName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
149
|
-
nickname: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
150
|
-
image: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
151
|
-
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> & {
|
|
152
|
-
id: string;
|
|
153
|
-
name?: string | undefined;
|
|
154
|
-
description?: string | undefined;
|
|
155
|
-
status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
156
|
-
image?: string | undefined;
|
|
157
|
-
website?: string | undefined;
|
|
158
|
-
}>, import("@dxos/echo-protocol").EncodedReference, never>>;
|
|
159
|
-
jobTitle: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
160
|
-
department: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
161
|
-
notes: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
162
|
-
emails: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
163
|
-
label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
164
|
-
value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
|
|
165
|
-
}>>>>;
|
|
166
|
-
identities: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
167
|
-
label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
168
|
-
value: typeof import("effect/Schema").String;
|
|
169
|
-
}>>>>;
|
|
170
|
-
phoneNumbers: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
171
|
-
label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
172
|
-
value: typeof import("effect/Schema").String;
|
|
173
|
-
}>>>>;
|
|
174
|
-
addresses: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
175
|
-
label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
176
|
-
value: import("effect/Schema").Struct<{
|
|
177
|
-
street: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
178
|
-
extended: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
179
|
-
locality: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
180
|
-
region: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
181
|
-
postalCode: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
182
|
-
postOfficeBoxNumber: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
183
|
-
country: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
184
|
-
}>;
|
|
185
|
-
}>>>>;
|
|
186
|
-
urls: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
187
|
-
label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
188
|
-
value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
|
|
189
|
-
}>>>>;
|
|
190
|
-
birthday: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
191
|
-
fields: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
192
|
-
category: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
193
|
-
label: typeof import("effect/Schema").String;
|
|
194
|
-
value: typeof import("effect/Schema").String;
|
|
195
|
-
}>>>>;
|
|
196
|
-
}>>>>;
|
|
197
|
-
identityDid: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
198
|
-
identityKey: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
199
|
-
email: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
200
|
-
name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
201
|
-
role: import("effect/Schema").optional<import("effect/Schema").Literal<["user", "assistant"]>>;
|
|
202
|
-
}>>;
|
|
203
|
-
blocks: import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"anchor", {
|
|
204
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
205
|
-
objectId: import("@dxos/keys").ObjectIdClass;
|
|
206
|
-
version: typeof import("effect/Schema").Unknown;
|
|
207
|
-
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"file", {
|
|
208
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
209
|
-
url: typeof import("effect/Schema").String;
|
|
210
|
-
name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
211
|
-
mediaType: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
212
|
-
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"image", {
|
|
213
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
214
|
-
id: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
215
|
-
source: import("effect/Schema").optional<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").Struct<{
|
|
216
|
-
type: import("effect/Schema").Literal<["base64"]>;
|
|
217
|
-
mediaType: typeof import("effect/Schema").String;
|
|
218
|
-
data: typeof import("effect/Schema").String;
|
|
219
|
-
}>>, import("effect/Schema").mutable<import("effect/Schema").Struct<{
|
|
220
|
-
type: import("effect/Schema").Literal<["http"]>;
|
|
221
|
-
url: typeof import("effect/Schema").String;
|
|
222
|
-
}>>]>>;
|
|
223
|
-
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"json", {
|
|
224
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
225
|
-
disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
226
|
-
data: typeof import("effect/Schema").String;
|
|
227
|
-
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"proposal", {
|
|
228
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
229
|
-
text: typeof import("effect/Schema").String;
|
|
230
|
-
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"reasoning", {
|
|
231
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
232
|
-
reasoningText: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
233
|
-
redactedText: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
234
|
-
signature: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
235
|
-
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"reference", {
|
|
236
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
237
|
-
reference: import("@dxos/echo/Type").ref<import("effect/Schema").Schema<import("@dxos/echo/Type").Expando, {
|
|
238
|
-
[x: string]: any;
|
|
239
|
-
id: string;
|
|
240
|
-
}, never>>;
|
|
241
|
-
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"select", {
|
|
242
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
243
|
-
options: import("effect/Schema").Array$<typeof import("effect/Schema").String>;
|
|
244
|
-
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"status", {
|
|
245
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
246
|
-
statusText: typeof import("effect/Schema").String;
|
|
247
|
-
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"suggest", {
|
|
248
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
249
|
-
text: typeof import("effect/Schema").String;
|
|
250
|
-
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"text", {
|
|
251
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
252
|
-
mimeType: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
253
|
-
text: typeof import("effect/Schema").String;
|
|
254
|
-
disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
255
|
-
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"toolkit", {
|
|
256
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
257
|
-
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"toolCall", {
|
|
258
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
259
|
-
toolCallId: typeof import("effect/Schema").String;
|
|
260
|
-
name: typeof import("effect/Schema").String;
|
|
261
|
-
input: typeof import("effect/Schema").Unknown;
|
|
262
|
-
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"toolResult", {
|
|
263
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
264
|
-
toolCallId: typeof import("effect/Schema").String;
|
|
265
|
-
name: typeof import("effect/Schema").String;
|
|
266
|
-
result: typeof import("effect/Schema").Unknown;
|
|
267
|
-
error: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
268
|
-
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"transcript", {
|
|
269
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
270
|
-
started: typeof import("effect/Schema").String;
|
|
271
|
-
text: typeof import("effect/Schema").String;
|
|
272
|
-
}>>]>>>;
|
|
273
|
-
properties: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Any>>>;
|
|
274
|
-
}>>, Schema.Struct<{
|
|
275
|
-
rangeId: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
276
|
-
}>>>;
|
|
277
|
-
}>;
|
|
278
|
-
export interface NormalizationInput extends Schema.Schema.Type<typeof NormalizationInput> {
|
|
279
|
-
}
|
|
280
|
-
export declare const NormalizationOutput: Schema.Struct<{
|
|
281
|
-
sentences: Schema.mutable<Schema.Array$<Schema.mutable<Schema.extend<import("@dxos/echo/Type").obj<Schema.Struct<{
|
|
282
|
-
id: import("@dxos/keys").ObjectIdClass;
|
|
283
|
-
parentMessage: import("effect/Schema").optional<import("@dxos/keys").ObjectIdClass>;
|
|
284
|
-
created: import("effect/Schema").SchemaClass<string, string, never>;
|
|
285
|
-
sender: import("effect/Schema").mutable<import("effect/Schema").Struct<{
|
|
286
|
-
contact: import("effect/Schema").optional<import("@dxos/echo/Type").ref<import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
|
|
287
|
-
fullName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
288
|
-
preferredName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
289
|
-
nickname: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
290
|
-
image: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
291
|
-
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> & {
|
|
292
|
-
id: string;
|
|
293
|
-
name?: string | undefined;
|
|
294
|
-
description?: string | undefined;
|
|
295
|
-
status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
296
|
-
image?: string | undefined;
|
|
297
|
-
website?: string | undefined;
|
|
298
|
-
}>, import("@dxos/echo-protocol").EncodedReference, never>>;
|
|
299
|
-
jobTitle: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
300
|
-
department: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
301
|
-
notes: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
302
|
-
emails: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
303
|
-
label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
304
|
-
value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
|
|
305
|
-
}>>>>;
|
|
306
|
-
identities: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
307
|
-
label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
308
|
-
value: typeof import("effect/Schema").String;
|
|
309
|
-
}>>>>;
|
|
310
|
-
phoneNumbers: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
311
|
-
label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
312
|
-
value: typeof import("effect/Schema").String;
|
|
313
|
-
}>>>>;
|
|
314
|
-
addresses: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
315
|
-
label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
316
|
-
value: import("effect/Schema").Struct<{
|
|
317
|
-
street: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
318
|
-
extended: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
319
|
-
locality: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
320
|
-
region: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
321
|
-
postalCode: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
322
|
-
postOfficeBoxNumber: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
323
|
-
country: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
324
|
-
}>;
|
|
325
|
-
}>>>>;
|
|
326
|
-
urls: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
327
|
-
label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
328
|
-
value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
|
|
329
|
-
}>>>>;
|
|
330
|
-
birthday: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
331
|
-
fields: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
332
|
-
category: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
333
|
-
label: typeof import("effect/Schema").String;
|
|
334
|
-
value: typeof import("effect/Schema").String;
|
|
335
|
-
}>>>>;
|
|
336
|
-
}>>>>;
|
|
337
|
-
identityDid: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
338
|
-
identityKey: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
339
|
-
email: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
340
|
-
name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
341
|
-
role: import("effect/Schema").optional<import("effect/Schema").Literal<["user", "assistant"]>>;
|
|
342
|
-
}>>;
|
|
343
|
-
blocks: import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"anchor", {
|
|
344
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
345
|
-
objectId: import("@dxos/keys").ObjectIdClass;
|
|
346
|
-
version: typeof import("effect/Schema").Unknown;
|
|
347
|
-
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"file", {
|
|
348
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
349
|
-
url: typeof import("effect/Schema").String;
|
|
350
|
-
name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
351
|
-
mediaType: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
352
|
-
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"image", {
|
|
353
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
354
|
-
id: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
355
|
-
source: import("effect/Schema").optional<import("effect/Schema").Union<[import("effect/Schema").mutable<import("effect/Schema").Struct<{
|
|
356
|
-
type: import("effect/Schema").Literal<["base64"]>;
|
|
357
|
-
mediaType: typeof import("effect/Schema").String;
|
|
358
|
-
data: typeof import("effect/Schema").String;
|
|
359
|
-
}>>, import("effect/Schema").mutable<import("effect/Schema").Struct<{
|
|
360
|
-
type: import("effect/Schema").Literal<["http"]>;
|
|
361
|
-
url: typeof import("effect/Schema").String;
|
|
362
|
-
}>>]>>;
|
|
363
|
-
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"json", {
|
|
364
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
365
|
-
disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
366
|
-
data: typeof import("effect/Schema").String;
|
|
367
|
-
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"proposal", {
|
|
368
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
369
|
-
text: typeof import("effect/Schema").String;
|
|
370
|
-
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"reasoning", {
|
|
371
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
372
|
-
reasoningText: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
373
|
-
redactedText: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
374
|
-
signature: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
375
|
-
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"reference", {
|
|
376
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
377
|
-
reference: import("@dxos/echo/Type").ref<import("effect/Schema").Schema<import("@dxos/echo/Type").Expando, {
|
|
378
|
-
[x: string]: any;
|
|
379
|
-
id: string;
|
|
380
|
-
}, never>>;
|
|
381
|
-
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"select", {
|
|
382
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
383
|
-
options: import("effect/Schema").Array$<typeof import("effect/Schema").String>;
|
|
384
|
-
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"status", {
|
|
385
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
386
|
-
statusText: typeof import("effect/Schema").String;
|
|
387
|
-
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"suggest", {
|
|
388
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
389
|
-
text: typeof import("effect/Schema").String;
|
|
390
|
-
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"text", {
|
|
391
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
392
|
-
mimeType: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
393
|
-
text: typeof import("effect/Schema").String;
|
|
394
|
-
disposition: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
395
|
-
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"toolkit", {
|
|
396
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
397
|
-
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"toolCall", {
|
|
398
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
399
|
-
toolCallId: typeof import("effect/Schema").String;
|
|
400
|
-
name: typeof import("effect/Schema").String;
|
|
401
|
-
input: typeof import("effect/Schema").Unknown;
|
|
402
|
-
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"toolResult", {
|
|
403
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
404
|
-
toolCallId: typeof import("effect/Schema").String;
|
|
405
|
-
name: typeof import("effect/Schema").String;
|
|
406
|
-
result: typeof import("effect/Schema").Unknown;
|
|
407
|
-
error: import("effect/Schema").optional<typeof import("effect/Schema").String>;
|
|
408
|
-
}>>, import("effect/Schema").mutable<import("effect/Schema").TaggedStruct<"transcript", {
|
|
409
|
-
pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
410
|
-
started: typeof import("effect/Schema").String;
|
|
411
|
-
text: typeof import("effect/Schema").String;
|
|
412
|
-
}>>]>>>;
|
|
413
|
-
properties: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Any>>>;
|
|
414
|
-
}>>, Schema.Struct<{
|
|
415
|
-
rangeId: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
416
|
-
}>>>>>;
|
|
417
|
-
}>;
|
|
418
|
-
export interface NormalizationOutput extends Schema.Schema.Type<typeof NormalizationOutput> {
|
|
419
|
-
}
|
|
420
|
-
export declare const sentenceNormalization: import("@dxos/functions").FunctionDefinition<NormalizationInput, NormalizationOutput>;
|
|
421
|
-
export {};
|
|
422
|
-
//# sourceMappingURL=normalization.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"normalization.d.ts","sourceRoot":"","sources":["../../../../src/segments-normalization/normalization.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAWhC,QAAA,MAAM,kBAAkB;;;;;;;;;;;;oBAiGksd,CAAC;2BAAqD,CAAC;sBAAgD,CAAC;qBAAkG,CAAC;uBAAiD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAzFt9d,CAAC;AAEF,MAAM,WAAW,kBAAmB,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,kBAAkB,CAAC;CAAG;AAE5F,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;wBAqF2rd,CAAC;+BAAqD,CAAC;0BAAgD,CAAC;yBAAkG,CAAC;2BAAiD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAhFr9d,CAAC;AACH,MAAM,WAAW,kBAAmB,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,kBAAkB,CAAC;CAAG;AAE5F,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;wBA6E0rd,CAAC;+BAAqD,CAAC;0BAAgD,CAAC;yBAAkG,CAAC;2BAAiD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAzEr9d,CAAC;AACH,MAAM,WAAW,mBAAoB,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,mBAAmB,CAAC;CAAG;AAE9F,eAAO,MAAM,qBAAqB,uFAmChC,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;AAIlD,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAI1C;;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 MediaStreamRecorderParams,
|
|
10
|
-
type Transcriber,
|
|
11
|
-
type TranscriberParams,
|
|
12
|
-
type TranscriptMessageEnricher,
|
|
13
|
-
type TranscriptionManager,
|
|
14
|
-
} from '../transcriber';
|
|
15
|
-
|
|
16
|
-
export namespace TranscriptionCapabilities {
|
|
17
|
-
export type GetTranscriberProps = {
|
|
18
|
-
audioStreamTrack: MediaStreamTrack;
|
|
19
|
-
recorderConfig?: Partial<MediaStreamRecorderParams['config']>;
|
|
20
|
-
transcriberConfig?: Partial<TranscriberParams['config']>;
|
|
21
|
-
onSegments: TranscriberParams['onSegments'];
|
|
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, type PluginContext, contributes, createResolver } from '@dxos/app-framework';
|
|
6
|
-
import { type Key, Obj, Ref } from '@dxos/echo';
|
|
7
|
-
import { createQueueDXN } from '@dxos/echo-schema';
|
|
8
|
-
|
|
9
|
-
import { TranscriptType, TranscriptionAction } 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
|
-
]);
|