@dxos/plugin-transcription 0.8.4-main.ae835ea → 0.8.4-main.bcb3aa67d6
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 +31 -0
- package/dist/lib/browser/blueprints/index.mjs.map +7 -0
- package/dist/lib/browser/chunk-HOOPZ7EM.mjs +35 -0
- package/dist/lib/browser/chunk-HOOPZ7EM.mjs.map +7 -0
- package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/browser/chunk-RIUSFL62.mjs +112 -0
- package/dist/lib/browser/chunk-RIUSFL62.mjs.map +7 -0
- package/dist/lib/browser/chunk-YXU2ZO6W.mjs +17 -0
- package/dist/lib/browser/chunk-YXU2ZO6W.mjs.map +7 -0
- package/dist/lib/browser/create-IZPB7VZW.mjs +19 -0
- package/dist/lib/browser/create-IZPB7VZW.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +1178 -97
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/open-SN5O5I6X.mjs +29 -0
- package/dist/lib/browser/open-SN5O5I6X.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-5MZENAU5.mjs +71 -0
- package/dist/lib/browser/summarize-5MZENAU5.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +4 -6
- package/dist/lib/node-esm/blueprints/index.mjs +32 -0
- package/dist/lib/node-esm/blueprints/index.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-3GSFEN4L.mjs +113 -0
- package/dist/lib/node-esm/chunk-3GSFEN4L.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-BR2R6PCT.mjs +19 -0
- package/dist/lib/node-esm/chunk-BR2R6PCT.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
- package/dist/lib/node-esm/chunk-NVM2QUMX.mjs +37 -0
- package/dist/lib/node-esm/chunk-NVM2QUMX.mjs.map +7 -0
- package/dist/lib/node-esm/create-TQDGXQBL.mjs +20 -0
- package/dist/lib/node-esm/create-TQDGXQBL.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +1178 -97
- 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-4GAAWWKJ.mjs +30 -0
- package/dist/lib/node-esm/open-4GAAWWKJ.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-RVOSRHEC.mjs +72 -0
- package/dist/lib/node-esm/summarize-RVOSRHEC.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +4 -6
- package/dist/types/src/TranscriptionPlugin.d.ts +2 -1
- package/dist/types/src/TranscriptionPlugin.d.ts.map +1 -1
- package/dist/types/src/blueprints/index.d.ts +2 -0
- package/dist/types/src/blueprints/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/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 +5 -4
- package/dist/types/src/capabilities/blueprint-definition.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +6 -5
- 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/transcriber.d.ts +4 -3
- package/dist/types/src/capabilities/transcriber.d.ts.map +1 -1
- package/dist/types/src/components/Transcription/Transcription.d.ts +22 -0
- package/dist/types/src/components/Transcription/Transcription.d.ts.map +1 -0
- package/dist/types/src/components/Transcription/Transcription.stories.d.ts +40 -0
- package/dist/types/src/components/Transcription/Transcription.stories.d.ts.map +1 -0
- package/dist/types/src/components/Transcription/index.d.ts +2 -0
- package/dist/types/src/components/Transcription/index.d.ts.map +1 -0
- package/dist/types/src/components/Transcription/transcription-extension.d.ts +15 -0
- package/dist/types/src/components/Transcription/transcription-extension.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +1 -3
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/components/stories/FileTranscription.stories.d.ts +3 -3
- package/dist/types/src/components/stories/FileTranscription.stories.d.ts.map +1 -1
- package/dist/types/src/components/stories/KeyWordRecognition.stories.d.ts +2 -2
- package/dist/types/src/components/stories/KeyWordRecognition.stories.d.ts.map +1 -1
- package/dist/types/src/components/stories/MicrophoneTranscription.stories.d.ts +5 -5
- package/dist/types/src/components/stories/MicrophoneTranscription.stories.d.ts.map +1 -1
- package/dist/types/src/components/stories/TranscriptionStory.d.ts +2 -2
- package/dist/types/src/components/stories/TranscriptionStory.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 +3 -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/useQueueModelAdapter.d.ts +1 -1
- package/dist/types/src/hooks/useQueueModelAdapter.d.ts.map +1 -1
- package/dist/types/src/hooks/useTranscriber.d.ts +1 -1
- package/dist/types/src/hooks/useTranscriber.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +2 -2
- package/dist/types/src/meta.d.ts.map +1 -1
- 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 +905 -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/segments-normalization/message-normalizer.d.ts +5 -5
- package/dist/types/src/segments-normalization/message-normalizer.d.ts.map +1 -1
- package/dist/types/src/segments-normalization/normalization.d.ts +360 -474
- package/dist/types/src/segments-normalization/normalization.d.ts.map +1 -1
- package/dist/types/src/segments-normalization/utils.d.ts +2 -2
- package/dist/types/src/segments-normalization/utils.d.ts.map +1 -1
- package/dist/types/src/testing/testing.d.ts +9 -9
- package/dist/types/src/testing/testing.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 +4 -4
- package/dist/types/src/transcriber/transcriber.d.ts.map +1 -1
- package/dist/types/src/transcriber/transcription-manager.d.ts +9 -6
- package/dist/types/src/transcriber/transcription-manager.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +7 -7
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/capabilities.d.ts +18 -0
- package/dist/types/src/types/capabilities.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +1 -2
- package/dist/types/src/types/index.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/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 +105 -70
- package/src/TranscriptionPlugin.tsx +40 -60
- package/src/blueprints/index.ts +5 -0
- package/src/blueprints/transcription-blueprint.ts +30 -0
- package/src/capabilities/blueprint-definition.ts +10 -24
- package/src/capabilities/index.ts +9 -7
- package/src/capabilities/operation-handler.ts +16 -0
- package/src/capabilities/react-surface.tsx +21 -13
- package/src/capabilities/transcriber.ts +51 -43
- package/src/components/{Transcript/Transcript.stories.tsx → Transcription/Transcription.stories.tsx} +49 -45
- package/src/components/Transcription/Transcription.tsx +65 -0
- package/src/components/{Transcript → Transcription}/index.ts +1 -1
- package/src/components/{Transcript/transcript-extension.ts → Transcription/transcription-extension.ts} +13 -9
- package/src/components/index.ts +1 -6
- package/src/components/stories/FileTranscription.stories.tsx +30 -36
- package/src/components/stories/KeyWordRecognition.stories.tsx +6 -6
- package/src/components/stories/MicrophoneTranscription.stories.tsx +53 -74
- package/src/components/stories/TranscriptionStory.tsx +7 -9
- package/src/containers/TranscriptionContainer/TranscriptionContainer.tsx +32 -0
- package/src/containers/TranscriptionContainer/index.ts +7 -0
- package/src/containers/index.ts +7 -0
- package/src/hooks/useQueueModelAdapter.ts +1 -1
- package/src/hooks/useTranscriber.ts +8 -3
- package/src/hooks/useVoiceInput.ts +2 -2
- package/src/index.ts +1 -1
- package/src/meta.ts +3 -3
- package/src/model/model.test.ts +20 -14
- package/src/operations/create.ts +22 -0
- package/src/operations/definitions.ts +102 -0
- package/src/operations/index.ts +13 -0
- package/src/operations/open.ts +31 -0
- package/src/{functions → operations}/summarize.ts +41 -47
- package/src/segments-normalization/message-normalizer.ts +18 -13
- package/src/segments-normalization/normalization.test.ts +6 -11
- package/src/segments-normalization/normalization.ts +34 -72
- package/src/segments-normalization/utils.ts +2 -2
- package/src/testing/testing.ts +28 -28
- package/src/transcriber/media-stream-recorder.ts +3 -3
- package/src/transcriber/transcriber.browser.test.ts +4 -4
- package/src/transcriber/transcriber.ts +7 -7
- package/src/transcriber/transcription-manager.ts +21 -15
- package/src/translations.ts +7 -7
- package/src/{capabilities → types}/capabilities.ts +10 -10
- package/src/types/index.ts +1 -2
- package/src/util/index.ts +1 -0
- package/src/util/render-byline.ts +33 -0
- package/dist/lib/browser/TranscriptContainer-2GSL2XB5.mjs +0 -11
- package/dist/lib/browser/blueprint-definition-UAAJYVLZ.mjs +0 -150
- package/dist/lib/browser/blueprint-definition-UAAJYVLZ.mjs.map +0 -7
- package/dist/lib/browser/chunk-3MKZ2MNQ.mjs +0 -16
- package/dist/lib/browser/chunk-3MKZ2MNQ.mjs.map +0 -7
- package/dist/lib/browser/chunk-535OJKFO.mjs +0 -8
- package/dist/lib/browser/chunk-535OJKFO.mjs.map +0 -7
- package/dist/lib/browser/chunk-7DR6HZEF.mjs +0 -732
- package/dist/lib/browser/chunk-7DR6HZEF.mjs.map +0 -7
- package/dist/lib/browser/chunk-VBUIO677.mjs +0 -29
- package/dist/lib/browser/chunk-VBUIO677.mjs.map +0 -7
- package/dist/lib/browser/chunk-W7WKZTM4.mjs +0 -63
- package/dist/lib/browser/chunk-W7WKZTM4.mjs.map +0 -7
- package/dist/lib/browser/chunk-WH36ENNE.mjs +0 -466
- package/dist/lib/browser/chunk-WH36ENNE.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-ZTKTEAQX.mjs +0 -25
- package/dist/lib/browser/intent-resolver-ZTKTEAQX.mjs.map +0 -7
- package/dist/lib/browser/react-surface-KA32A72I.mjs +0 -34
- package/dist/lib/browser/react-surface-KA32A72I.mjs.map +0 -7
- package/dist/lib/browser/transcriber-LWOLYQHC.mjs +0 -56
- package/dist/lib/browser/transcriber-LWOLYQHC.mjs.map +0 -7
- package/dist/lib/node-esm/TranscriptContainer-GRLDCESB.mjs +0 -12
- package/dist/lib/node-esm/blueprint-definition-Z3LTZ3ID.mjs +0 -151
- package/dist/lib/node-esm/blueprint-definition-Z3LTZ3ID.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-K4AZOB5Y.mjs +0 -733
- package/dist/lib/node-esm/chunk-K4AZOB5Y.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-OLMSTF3M.mjs +0 -64
- package/dist/lib/node-esm/chunk-OLMSTF3M.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-Q6WD7L2J.mjs +0 -10
- package/dist/lib/node-esm/chunk-Q6WD7L2J.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-SWUVPFKR.mjs +0 -17
- package/dist/lib/node-esm/chunk-SWUVPFKR.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-YFN4FJFK.mjs +0 -467
- package/dist/lib/node-esm/chunk-YFN4FJFK.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-YVNQN2J6.mjs +0 -30
- package/dist/lib/node-esm/chunk-YVNQN2J6.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-55WH2GY6.mjs +0 -26
- package/dist/lib/node-esm/intent-resolver-55WH2GY6.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-GU7LW2JO.mjs +0 -35
- package/dist/lib/node-esm/react-surface-GU7LW2JO.mjs.map +0 -7
- package/dist/lib/node-esm/transcriber-UGB7ECX6.mjs +0 -57
- package/dist/lib/node-esm/transcriber-UGB7ECX6.mjs.map +0 -7
- 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 -39
- 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 -15
- 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/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/types/Transcript.d.ts +0 -30
- package/dist/types/src/types/Transcript.d.ts.map +0 -1
- package/dist/types/src/types/TranscriptAction.d.ts +0 -23
- package/dist/types/src/types/TranscriptAction.d.ts.map +0 -1
- package/src/capabilities/intent-resolver.ts +0 -18
- package/src/components/Transcript/Transcript.tsx +0 -93
- package/src/components/Transcript/deprecated/OldTranscript.tsx +0 -260
- package/src/components/TranscriptContainer.tsx +0 -36
- package/src/functions/index.ts +0 -6
- package/src/functions/open.ts +0 -39
- package/src/types/Transcript.ts +0 -44
- package/src/types/TranscriptAction.ts +0 -24
- /package/dist/lib/browser/{TranscriptContainer-2GSL2XB5.mjs.map → chunk-J5LGTIGS.mjs.map} +0 -0
- /package/dist/lib/node-esm/{TranscriptContainer-GRLDCESB.mjs.map → chunk-HSLMI22Q.mjs.map} +0 -0
|
@@ -1,476 +1,362 @@
|
|
|
1
1
|
import * as Schema from 'effect/Schema';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
pending
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
}>>>>;
|
|
363
|
-
urls: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
|
|
364
|
-
label: Schema.optional<typeof Schema.String>;
|
|
365
|
-
value: Schema.refine<string, typeof Schema.String>;
|
|
366
|
-
}>>>>;
|
|
367
|
-
birthday: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
368
|
-
fields: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
|
|
369
|
-
category: Schema.optional<typeof Schema.String>;
|
|
370
|
-
label: typeof Schema.String;
|
|
371
|
-
value: typeof Schema.String;
|
|
372
|
-
}>>>>;
|
|
373
|
-
}>, Schema.Struct<{
|
|
374
|
-
location: Schema.optional<Schema.Tuple<[Schema.filter<Schema.transform<Schema.SchemaClass<number, number, never>, Schema.filter<Schema.SchemaClass<number, number, never>>>>, Schema.filter<Schema.transform<Schema.SchemaClass<number, number, never>, Schema.filter<Schema.SchemaClass<number, number, never>>>>, Schema.Element<typeof Schema.Number, "?">]>>;
|
|
375
|
-
}>>>>>;
|
|
376
|
-
identityDid: Schema.optional<typeof Schema.String>;
|
|
377
|
-
identityKey: Schema.optional<typeof Schema.String>;
|
|
378
|
-
email: Schema.optional<typeof Schema.String>;
|
|
379
|
-
name: Schema.optional<typeof Schema.String>;
|
|
380
|
-
role: Schema.optional<Schema.Literal<["user", "assistant", "tool"]>>;
|
|
381
|
-
}>>;
|
|
382
|
-
blocks: Schema.mutable<Schema.Array$<Schema.Union<[Schema.mutable<Schema.TaggedStruct<"anchor", {
|
|
383
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
384
|
-
objectId: import("@dxos/keys").ObjectIdClass;
|
|
385
|
-
version: typeof Schema.Unknown;
|
|
386
|
-
}>>, Schema.mutable<Schema.TaggedStruct<"file", {
|
|
387
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
388
|
-
url: typeof Schema.String;
|
|
389
|
-
name: Schema.optional<typeof Schema.String>;
|
|
390
|
-
mediaType: Schema.optional<typeof Schema.String>;
|
|
391
|
-
}>>, Schema.mutable<Schema.TaggedStruct<"image", {
|
|
392
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
393
|
-
id: Schema.optional<typeof Schema.String>;
|
|
394
|
-
source: Schema.optional<Schema.Union<[Schema.mutable<Schema.Struct<{
|
|
395
|
-
type: Schema.Literal<["base64"]>;
|
|
396
|
-
mediaType: typeof Schema.String;
|
|
397
|
-
data: typeof Schema.String;
|
|
398
|
-
}>>, Schema.mutable<Schema.Struct<{
|
|
399
|
-
type: Schema.Literal<["http"]>;
|
|
400
|
-
url: typeof Schema.String;
|
|
401
|
-
}>>]>>;
|
|
402
|
-
}>>, Schema.mutable<Schema.TaggedStruct<"json", {
|
|
403
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
404
|
-
disposition: Schema.optional<typeof Schema.String>;
|
|
405
|
-
data: typeof Schema.String;
|
|
406
|
-
}>>, Schema.mutable<Schema.TaggedStruct<"proposal", {
|
|
407
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
408
|
-
text: typeof Schema.String;
|
|
409
|
-
}>>, Schema.mutable<Schema.TaggedStruct<"reasoning", {
|
|
410
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
411
|
-
reasoningText: Schema.optional<typeof Schema.String>;
|
|
412
|
-
redactedText: Schema.optional<typeof Schema.String>;
|
|
413
|
-
signature: Schema.optional<typeof Schema.String>;
|
|
414
|
-
}>>, Schema.mutable<Schema.TaggedStruct<"reference", {
|
|
415
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
416
|
-
reference: import("@dxos/echo/Type").ref<Schema.Schema<import("@dxos/echo/Type").Expando, {
|
|
417
|
-
[x: string]: any;
|
|
418
|
-
id: string;
|
|
419
|
-
}, never>>;
|
|
420
|
-
}>>, Schema.mutable<Schema.TaggedStruct<"select", {
|
|
421
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
422
|
-
options: Schema.Array$<typeof Schema.String>;
|
|
423
|
-
}>>, Schema.mutable<Schema.TaggedStruct<"status", {
|
|
424
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
425
|
-
statusText: typeof Schema.String;
|
|
426
|
-
}>>, Schema.mutable<Schema.TaggedStruct<"suggestion", {
|
|
427
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
428
|
-
text: typeof Schema.String;
|
|
429
|
-
}>>, Schema.mutable<Schema.TaggedStruct<"summary", {
|
|
430
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
431
|
-
mimeType: Schema.optional<typeof Schema.String>;
|
|
432
|
-
message: Schema.optional<typeof Schema.String>;
|
|
433
|
-
model: Schema.optional<typeof Schema.String>;
|
|
434
|
-
usage: Schema.optional<Schema.Struct<{
|
|
435
|
-
inputTokens: Schema.optional<typeof Schema.Number>;
|
|
436
|
-
outputTokens: Schema.optional<typeof Schema.Number>;
|
|
437
|
-
totalTokens: Schema.optional<typeof Schema.Number>;
|
|
438
|
-
}>>;
|
|
439
|
-
toolCalls: Schema.optional<typeof Schema.Number>;
|
|
440
|
-
errors: Schema.optional<typeof Schema.Number>;
|
|
441
|
-
duration: Schema.optional<typeof Schema.Number>;
|
|
442
|
-
}>>, Schema.mutable<Schema.TaggedStruct<"text", {
|
|
443
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
444
|
-
mimeType: Schema.optional<typeof Schema.String>;
|
|
445
|
-
text: typeof Schema.String;
|
|
446
|
-
disposition: Schema.optional<typeof Schema.String>;
|
|
447
|
-
}>>, Schema.mutable<Schema.TaggedStruct<"toolkit", {
|
|
448
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
449
|
-
}>>, Schema.mutable<Schema.TaggedStruct<"toolCall", {
|
|
450
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
451
|
-
toolCallId: typeof Schema.String;
|
|
452
|
-
name: typeof Schema.String;
|
|
453
|
-
input: typeof Schema.String;
|
|
454
|
-
providerExecuted: typeof Schema.Boolean;
|
|
455
|
-
}>>, Schema.mutable<Schema.TaggedStruct<"toolResult", {
|
|
456
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
457
|
-
toolCallId: typeof Schema.String;
|
|
458
|
-
name: typeof Schema.String;
|
|
459
|
-
result: Schema.optional<typeof Schema.String>;
|
|
460
|
-
error: Schema.optional<typeof Schema.String>;
|
|
461
|
-
providerExecuted: typeof Schema.Boolean;
|
|
462
|
-
}>>, Schema.mutable<Schema.TaggedStruct<"transcript", {
|
|
463
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
464
|
-
started: typeof Schema.String;
|
|
465
|
-
text: typeof Schema.String;
|
|
466
|
-
}>>]>>>;
|
|
467
|
-
properties: Schema.optional<Schema.mutable<Schema.Record$<typeof Schema.String, typeof Schema.Any>>>;
|
|
468
|
-
}>>, Schema.Struct<{
|
|
469
|
-
rangeId: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
470
|
-
}>>>>>;
|
|
471
|
-
}>;
|
|
472
|
-
export interface NormalizationOutput extends Schema.Schema.Type<typeof NormalizationOutput> {
|
|
473
|
-
}
|
|
474
|
-
export declare const sentenceNormalization: import("@dxos/functions").FunctionDefinition<NormalizationInput, NormalizationOutput>;
|
|
475
|
-
export {};
|
|
2
|
+
import { Operation } from '@dxos/operation';
|
|
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 AiSession.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> & {
|
|
15
|
+
readonly id: string;
|
|
16
|
+
readonly parentMessage?: string | undefined;
|
|
17
|
+
readonly created: string;
|
|
18
|
+
readonly sender: {
|
|
19
|
+
readonly name?: string | undefined;
|
|
20
|
+
readonly role?: "user" | "assistant" | "tool" | undefined;
|
|
21
|
+
readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
22
|
+
readonly image?: string | undefined;
|
|
23
|
+
readonly fullName?: string | undefined;
|
|
24
|
+
readonly preferredName?: string | undefined;
|
|
25
|
+
readonly nickname?: string | undefined;
|
|
26
|
+
readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
27
|
+
readonly description?: string | undefined;
|
|
28
|
+
readonly name?: string | undefined;
|
|
29
|
+
readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
30
|
+
readonly image?: string | undefined;
|
|
31
|
+
readonly website?: string | undefined;
|
|
32
|
+
} & {
|
|
33
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
34
|
+
}> | undefined;
|
|
35
|
+
readonly jobTitle?: string | undefined;
|
|
36
|
+
readonly department?: string | undefined;
|
|
37
|
+
readonly notes?: string | undefined;
|
|
38
|
+
readonly emails?: readonly {
|
|
39
|
+
readonly value: string;
|
|
40
|
+
readonly label?: string | undefined;
|
|
41
|
+
}[] | undefined;
|
|
42
|
+
readonly identities?: readonly {
|
|
43
|
+
readonly value: string;
|
|
44
|
+
readonly label?: string | undefined;
|
|
45
|
+
}[] | undefined;
|
|
46
|
+
readonly phoneNumbers?: readonly {
|
|
47
|
+
readonly value: string;
|
|
48
|
+
readonly label?: string | undefined;
|
|
49
|
+
}[] | undefined;
|
|
50
|
+
readonly fields?: readonly {
|
|
51
|
+
readonly value: string;
|
|
52
|
+
readonly label: string;
|
|
53
|
+
readonly category?: string | undefined;
|
|
54
|
+
}[] | undefined;
|
|
55
|
+
readonly addresses?: readonly {
|
|
56
|
+
readonly value: {
|
|
57
|
+
readonly street?: string | undefined;
|
|
58
|
+
readonly extended?: string | undefined;
|
|
59
|
+
readonly locality?: string | undefined;
|
|
60
|
+
readonly region?: string | undefined;
|
|
61
|
+
readonly postalCode?: string | undefined;
|
|
62
|
+
readonly postOfficeBoxNumber?: string | undefined;
|
|
63
|
+
readonly country?: string | undefined;
|
|
64
|
+
};
|
|
65
|
+
readonly label?: string | undefined;
|
|
66
|
+
}[] | undefined;
|
|
67
|
+
readonly urls?: readonly {
|
|
68
|
+
readonly value: string;
|
|
69
|
+
readonly label?: string | undefined;
|
|
70
|
+
}[] | undefined;
|
|
71
|
+
readonly birthday?: string | undefined;
|
|
72
|
+
} & {
|
|
73
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
74
|
+
}> | undefined;
|
|
75
|
+
readonly identityDid?: string | undefined;
|
|
76
|
+
readonly identityKey?: string | undefined;
|
|
77
|
+
readonly email?: string | undefined;
|
|
78
|
+
};
|
|
79
|
+
readonly blocks: readonly ({
|
|
80
|
+
readonly pending?: boolean | undefined;
|
|
81
|
+
readonly text: string;
|
|
82
|
+
readonly mimeType?: string | undefined;
|
|
83
|
+
readonly disposition?: string | undefined;
|
|
84
|
+
readonly _tag: "text";
|
|
85
|
+
} | {
|
|
86
|
+
readonly pending?: boolean | undefined;
|
|
87
|
+
readonly _tag: "reasoning";
|
|
88
|
+
readonly reasoningText?: string | undefined;
|
|
89
|
+
readonly redactedText?: string | undefined;
|
|
90
|
+
readonly signature?: string | undefined;
|
|
91
|
+
} | {
|
|
92
|
+
readonly name: string;
|
|
93
|
+
readonly pending?: boolean | undefined;
|
|
94
|
+
readonly _tag: "toolCall";
|
|
95
|
+
readonly toolCallId: string;
|
|
96
|
+
readonly input: string;
|
|
97
|
+
readonly providerExecuted: boolean;
|
|
98
|
+
} | {
|
|
99
|
+
readonly name: string;
|
|
100
|
+
readonly pending?: boolean | undefined;
|
|
101
|
+
readonly _tag: "toolResult";
|
|
102
|
+
readonly toolCallId: string;
|
|
103
|
+
readonly providerExecuted: boolean;
|
|
104
|
+
readonly result?: string | undefined;
|
|
105
|
+
readonly error?: string | undefined;
|
|
106
|
+
} | {
|
|
107
|
+
readonly pending?: boolean | undefined;
|
|
108
|
+
readonly mimeType?: string | undefined;
|
|
109
|
+
readonly _tag: "stats";
|
|
110
|
+
readonly message?: string | undefined;
|
|
111
|
+
readonly model?: string | undefined;
|
|
112
|
+
readonly usage?: {
|
|
113
|
+
readonly inputTokens?: number | undefined;
|
|
114
|
+
readonly outputTokens?: number | undefined;
|
|
115
|
+
readonly totalTokens?: number | undefined;
|
|
116
|
+
} | undefined;
|
|
117
|
+
readonly toolCalls?: number | undefined;
|
|
118
|
+
readonly errors?: number | undefined;
|
|
119
|
+
readonly duration?: number | undefined;
|
|
120
|
+
} | {
|
|
121
|
+
readonly source?: {
|
|
122
|
+
readonly type: "base64";
|
|
123
|
+
readonly mediaType: string;
|
|
124
|
+
readonly data: string;
|
|
125
|
+
} | {
|
|
126
|
+
readonly type: "http";
|
|
127
|
+
readonly url: string;
|
|
128
|
+
} | undefined;
|
|
129
|
+
readonly id?: string | undefined;
|
|
130
|
+
readonly pending?: boolean | undefined;
|
|
131
|
+
readonly _tag: "image";
|
|
132
|
+
} | {
|
|
133
|
+
readonly name?: string | undefined;
|
|
134
|
+
readonly pending?: boolean | undefined;
|
|
135
|
+
readonly _tag: "file";
|
|
136
|
+
readonly mediaType?: string | undefined;
|
|
137
|
+
readonly url: string;
|
|
138
|
+
} | {
|
|
139
|
+
readonly pending?: boolean | undefined;
|
|
140
|
+
readonly _tag: "reference";
|
|
141
|
+
readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown>;
|
|
142
|
+
} | {
|
|
143
|
+
readonly pending?: boolean | undefined;
|
|
144
|
+
readonly text: string;
|
|
145
|
+
readonly _tag: "transcript";
|
|
146
|
+
readonly started: string;
|
|
147
|
+
} | {
|
|
148
|
+
readonly pending?: boolean | undefined;
|
|
149
|
+
readonly _tag: "status";
|
|
150
|
+
readonly statusText: string;
|
|
151
|
+
} | {
|
|
152
|
+
readonly pending?: boolean | undefined;
|
|
153
|
+
readonly text: string;
|
|
154
|
+
readonly _tag: "suggestion";
|
|
155
|
+
} | {
|
|
156
|
+
readonly pending?: boolean | undefined;
|
|
157
|
+
readonly _tag: "select";
|
|
158
|
+
readonly options: string[];
|
|
159
|
+
} | {
|
|
160
|
+
readonly version: unknown;
|
|
161
|
+
readonly pending?: boolean | undefined;
|
|
162
|
+
readonly _tag: "anchor";
|
|
163
|
+
readonly objectId: string;
|
|
164
|
+
} | {
|
|
165
|
+
readonly pending?: boolean | undefined;
|
|
166
|
+
readonly text: string;
|
|
167
|
+
readonly _tag: "proposal";
|
|
168
|
+
} | {
|
|
169
|
+
readonly pending?: boolean | undefined;
|
|
170
|
+
readonly _tag: "summary";
|
|
171
|
+
readonly content: string;
|
|
172
|
+
} | {
|
|
173
|
+
readonly pending?: boolean | undefined;
|
|
174
|
+
readonly _tag: "toolkit";
|
|
175
|
+
} | {
|
|
176
|
+
readonly pending?: boolean | undefined;
|
|
177
|
+
readonly disposition?: string | undefined;
|
|
178
|
+
readonly _tag: "json";
|
|
179
|
+
readonly data: string;
|
|
180
|
+
})[];
|
|
181
|
+
readonly properties?: {
|
|
182
|
+
readonly [x: string]: any;
|
|
183
|
+
} | undefined;
|
|
184
|
+
} & {
|
|
185
|
+
readonly rangeId?: readonly string[] | undefined;
|
|
186
|
+
})[];
|
|
187
|
+
}, {
|
|
188
|
+
readonly sentences: {
|
|
189
|
+
id: import("@dxos/keys").ObjectId;
|
|
190
|
+
"~@dxos/echo/Kind": import("@dxos/echo/internal").EntityKind.Object;
|
|
191
|
+
parentMessage?: string | undefined | undefined;
|
|
192
|
+
created: string;
|
|
193
|
+
sender: {
|
|
194
|
+
readonly name?: string | undefined;
|
|
195
|
+
readonly role?: "user" | "assistant" | "tool" | undefined;
|
|
196
|
+
readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
197
|
+
readonly image?: string | undefined;
|
|
198
|
+
readonly fullName?: string | undefined;
|
|
199
|
+
readonly preferredName?: string | undefined;
|
|
200
|
+
readonly nickname?: string | undefined;
|
|
201
|
+
readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
202
|
+
readonly description?: string | undefined;
|
|
203
|
+
readonly name?: string | undefined;
|
|
204
|
+
readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
205
|
+
readonly image?: string | undefined;
|
|
206
|
+
readonly website?: string | undefined;
|
|
207
|
+
} & {
|
|
208
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
209
|
+
}> | undefined;
|
|
210
|
+
readonly jobTitle?: string | undefined;
|
|
211
|
+
readonly department?: string | undefined;
|
|
212
|
+
readonly notes?: string | undefined;
|
|
213
|
+
readonly emails?: readonly {
|
|
214
|
+
readonly value: string;
|
|
215
|
+
readonly label?: string | undefined;
|
|
216
|
+
}[] | undefined;
|
|
217
|
+
readonly identities?: readonly {
|
|
218
|
+
readonly value: string;
|
|
219
|
+
readonly label?: string | undefined;
|
|
220
|
+
}[] | undefined;
|
|
221
|
+
readonly phoneNumbers?: readonly {
|
|
222
|
+
readonly value: string;
|
|
223
|
+
readonly label?: string | undefined;
|
|
224
|
+
}[] | undefined;
|
|
225
|
+
readonly fields?: readonly {
|
|
226
|
+
readonly value: string;
|
|
227
|
+
readonly label: string;
|
|
228
|
+
readonly category?: string | undefined;
|
|
229
|
+
}[] | undefined;
|
|
230
|
+
readonly addresses?: readonly {
|
|
231
|
+
readonly value: {
|
|
232
|
+
readonly street?: string | undefined;
|
|
233
|
+
readonly extended?: string | undefined;
|
|
234
|
+
readonly locality?: string | undefined;
|
|
235
|
+
readonly region?: string | undefined;
|
|
236
|
+
readonly postalCode?: string | undefined;
|
|
237
|
+
readonly postOfficeBoxNumber?: string | undefined;
|
|
238
|
+
readonly country?: string | undefined;
|
|
239
|
+
};
|
|
240
|
+
readonly label?: string | undefined;
|
|
241
|
+
}[] | undefined;
|
|
242
|
+
readonly urls?: readonly {
|
|
243
|
+
readonly value: string;
|
|
244
|
+
readonly label?: string | undefined;
|
|
245
|
+
}[] | undefined;
|
|
246
|
+
readonly birthday?: string | undefined;
|
|
247
|
+
} & {
|
|
248
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
249
|
+
}> | undefined;
|
|
250
|
+
readonly identityDid?: string | undefined;
|
|
251
|
+
readonly identityKey?: string | undefined;
|
|
252
|
+
readonly email?: string | undefined;
|
|
253
|
+
};
|
|
254
|
+
blocks: readonly ({
|
|
255
|
+
readonly pending?: boolean | undefined;
|
|
256
|
+
readonly text: string;
|
|
257
|
+
readonly mimeType?: string | undefined;
|
|
258
|
+
readonly disposition?: string | undefined;
|
|
259
|
+
readonly _tag: "text";
|
|
260
|
+
} | {
|
|
261
|
+
readonly pending?: boolean | undefined;
|
|
262
|
+
readonly _tag: "reasoning";
|
|
263
|
+
readonly reasoningText?: string | undefined;
|
|
264
|
+
readonly redactedText?: string | undefined;
|
|
265
|
+
readonly signature?: string | undefined;
|
|
266
|
+
} | {
|
|
267
|
+
readonly name: string;
|
|
268
|
+
readonly pending?: boolean | undefined;
|
|
269
|
+
readonly _tag: "toolCall";
|
|
270
|
+
readonly toolCallId: string;
|
|
271
|
+
readonly input: string;
|
|
272
|
+
readonly providerExecuted: boolean;
|
|
273
|
+
} | {
|
|
274
|
+
readonly name: string;
|
|
275
|
+
readonly pending?: boolean | undefined;
|
|
276
|
+
readonly _tag: "toolResult";
|
|
277
|
+
readonly toolCallId: string;
|
|
278
|
+
readonly providerExecuted: boolean;
|
|
279
|
+
readonly result?: string | undefined;
|
|
280
|
+
readonly error?: string | undefined;
|
|
281
|
+
} | {
|
|
282
|
+
readonly pending?: boolean | undefined;
|
|
283
|
+
readonly mimeType?: string | undefined;
|
|
284
|
+
readonly _tag: "stats";
|
|
285
|
+
readonly message?: string | undefined;
|
|
286
|
+
readonly model?: string | undefined;
|
|
287
|
+
readonly usage?: {
|
|
288
|
+
readonly inputTokens?: number | undefined;
|
|
289
|
+
readonly outputTokens?: number | undefined;
|
|
290
|
+
readonly totalTokens?: number | undefined;
|
|
291
|
+
} | undefined;
|
|
292
|
+
readonly toolCalls?: number | undefined;
|
|
293
|
+
readonly errors?: number | undefined;
|
|
294
|
+
readonly duration?: number | undefined;
|
|
295
|
+
} | {
|
|
296
|
+
readonly source?: {
|
|
297
|
+
readonly type: "base64";
|
|
298
|
+
readonly mediaType: string;
|
|
299
|
+
readonly data: string;
|
|
300
|
+
} | {
|
|
301
|
+
readonly type: "http";
|
|
302
|
+
readonly url: string;
|
|
303
|
+
} | undefined;
|
|
304
|
+
readonly id?: string | undefined;
|
|
305
|
+
readonly pending?: boolean | undefined;
|
|
306
|
+
readonly _tag: "image";
|
|
307
|
+
} | {
|
|
308
|
+
readonly name?: string | undefined;
|
|
309
|
+
readonly pending?: boolean | undefined;
|
|
310
|
+
readonly _tag: "file";
|
|
311
|
+
readonly mediaType?: string | undefined;
|
|
312
|
+
readonly url: string;
|
|
313
|
+
} | {
|
|
314
|
+
readonly pending?: boolean | undefined;
|
|
315
|
+
readonly _tag: "reference";
|
|
316
|
+
readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown>;
|
|
317
|
+
} | {
|
|
318
|
+
readonly pending?: boolean | undefined;
|
|
319
|
+
readonly text: string;
|
|
320
|
+
readonly _tag: "transcript";
|
|
321
|
+
readonly started: string;
|
|
322
|
+
} | {
|
|
323
|
+
readonly pending?: boolean | undefined;
|
|
324
|
+
readonly _tag: "status";
|
|
325
|
+
readonly statusText: string;
|
|
326
|
+
} | {
|
|
327
|
+
readonly pending?: boolean | undefined;
|
|
328
|
+
readonly text: string;
|
|
329
|
+
readonly _tag: "suggestion";
|
|
330
|
+
} | {
|
|
331
|
+
readonly pending?: boolean | undefined;
|
|
332
|
+
readonly _tag: "select";
|
|
333
|
+
readonly options: string[];
|
|
334
|
+
} | {
|
|
335
|
+
readonly version: unknown;
|
|
336
|
+
readonly pending?: boolean | undefined;
|
|
337
|
+
readonly _tag: "anchor";
|
|
338
|
+
readonly objectId: string;
|
|
339
|
+
} | {
|
|
340
|
+
readonly pending?: boolean | undefined;
|
|
341
|
+
readonly text: string;
|
|
342
|
+
readonly _tag: "proposal";
|
|
343
|
+
} | {
|
|
344
|
+
readonly pending?: boolean | undefined;
|
|
345
|
+
readonly _tag: "summary";
|
|
346
|
+
readonly content: string;
|
|
347
|
+
} | {
|
|
348
|
+
readonly pending?: boolean | undefined;
|
|
349
|
+
readonly _tag: "toolkit";
|
|
350
|
+
} | {
|
|
351
|
+
readonly pending?: boolean | undefined;
|
|
352
|
+
readonly disposition?: string | undefined;
|
|
353
|
+
readonly _tag: "json";
|
|
354
|
+
readonly data: string;
|
|
355
|
+
})[];
|
|
356
|
+
properties?: {
|
|
357
|
+
readonly [x: string]: any;
|
|
358
|
+
} | undefined | undefined;
|
|
359
|
+
rangeId?: readonly string[] | undefined;
|
|
360
|
+
}[];
|
|
361
|
+
}, never>>;
|
|
476
362
|
//# sourceMappingURL=normalization.d.ts.map
|