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