@dxos/plugin-transcription 0.8.4-main.ae835ea → 0.8.4-main.bc674ce
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/TranscriptContainer-6EHKWVS4.mjs +12 -0
- package/dist/lib/browser/blueprint-definition-FTRNMLJZ.mjs +18 -0
- package/dist/lib/browser/blueprint-definition-FTRNMLJZ.mjs.map +7 -0
- package/dist/lib/browser/blueprints/index.mjs +9 -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-7DR6HZEF.mjs → chunk-ICM7JRCO.mjs} +64 -98
- package/dist/lib/browser/chunk-ICM7JRCO.mjs.map +7 -0
- package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/browser/chunk-J5LGTIGS.mjs.map +7 -0
- package/dist/lib/browser/chunk-Q5OC3WVG.mjs +72 -0
- package/dist/lib/browser/chunk-Q5OC3WVG.mjs.map +7 -0
- package/dist/lib/browser/{chunk-535OJKFO.mjs → chunk-SYGEFDWO.mjs} +2 -2
- package/dist/lib/browser/{chunk-WH36ENNE.mjs → chunk-TKFU53OZ.mjs} +19 -25
- package/dist/lib/browser/chunk-TKFU53OZ.mjs.map +7 -0
- package/dist/lib/browser/{blueprint-definition-UAAJYVLZ.mjs → chunk-ZZF7ICVM.mjs} +31 -31
- package/dist/lib/browser/chunk-ZZF7ICVM.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +59 -72
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/operation-resolver-ZUWTU7C5.mjs +22 -0
- package/dist/lib/browser/operation-resolver-ZUWTU7C5.mjs.map +7 -0
- package/dist/lib/browser/react-surface-ZXH5267I.mjs +34 -0
- package/dist/lib/browser/react-surface-ZXH5267I.mjs.map +7 -0
- package/dist/lib/browser/{transcriber-LWOLYQHC.mjs → transcriber-EZZTUCPE.mjs} +17 -13
- package/dist/lib/browser/transcriber-EZZTUCPE.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +7 -5
- package/dist/lib/node-esm/{TranscriptContainer-GRLDCESB.mjs → TranscriptContainer-5YT5W73I.mjs} +5 -4
- package/dist/lib/node-esm/TranscriptContainer-5YT5W73I.mjs.map +7 -0
- package/dist/lib/node-esm/blueprint-definition-IOX35YUX.mjs +19 -0
- package/dist/lib/node-esm/blueprint-definition-IOX35YUX.mjs.map +7 -0
- package/dist/lib/node-esm/blueprints/index.mjs +10 -0
- package/dist/lib/node-esm/blueprints/index.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-4BFY6P2D.mjs +73 -0
- package/dist/lib/node-esm/chunk-4BFY6P2D.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-K4AZOB5Y.mjs → chunk-BX2AB7S7.mjs} +64 -98
- package/dist/lib/node-esm/chunk-BX2AB7S7.mjs.map +7 -0
- package/dist/lib/node-esm/{blueprint-definition-Z3LTZ3ID.mjs → chunk-CWP22IHV.mjs} +31 -31
- package/dist/lib/node-esm/chunk-CWP22IHV.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-YFN4FJFK.mjs → chunk-EPC27WWV.mjs} +19 -25
- package/dist/lib/node-esm/chunk-EPC27WWV.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-Q6WD7L2J.mjs → chunk-GVAVEVZ6.mjs} +2 -2
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +7 -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/index.mjs +59 -72
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/operation-resolver-Z72B4H2Q.mjs +23 -0
- package/dist/lib/node-esm/operation-resolver-Z72B4H2Q.mjs.map +7 -0
- package/dist/lib/node-esm/react-surface-6GUBZX2V.mjs +35 -0
- package/dist/lib/node-esm/react-surface-6GUBZX2V.mjs.map +7 -0
- package/dist/lib/node-esm/{transcriber-UGB7ECX6.mjs → transcriber-RGW3YYT4.mjs} +17 -13
- package/dist/lib/node-esm/transcriber-RGW3YYT4.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +7 -5
- 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 +21 -0
- package/dist/types/src/blueprints/transcription-blueprint.d.ts.map +1 -0
- package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts +9 -0
- package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts.map +1 -0
- package/dist/types/src/capabilities/blueprint-definition/index.d.ts +3 -0
- package/dist/types/src/capabilities/blueprint-definition/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +4 -5
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-handler/index.d.ts +3 -0
- package/dist/types/src/capabilities/operation-handler/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/operation-handler/operation-handler.d.ts +5 -0
- package/dist/types/src/capabilities/operation-handler/operation-handler.d.ts.map +1 -0
- package/dist/types/src/capabilities/operation-resolver/index.d.ts +3 -0
- package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +5 -0
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface/index.d.ts +3 -0
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts +5 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
- package/dist/types/src/capabilities/transcriber/index.d.ts +3 -0
- package/dist/types/src/capabilities/transcriber/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/transcriber/transcriber.d.ts +9 -0
- package/dist/types/src/capabilities/transcriber/transcriber.d.ts.map +1 -0
- package/dist/types/src/components/Transcript/Transcript.d.ts +5 -8
- package/dist/types/src/components/Transcript/Transcript.d.ts.map +1 -1
- package/dist/types/src/components/Transcript/Transcript.stories.d.ts +4 -3
- package/dist/types/src/components/Transcript/Transcript.stories.d.ts.map +1 -1
- package/dist/types/src/components/Transcript/deprecated/OldTranscript.d.ts +9 -9
- package/dist/types/src/components/Transcript/deprecated/OldTranscript.d.ts.map +1 -1
- package/dist/types/src/components/Transcript/transcript-extension.d.ts +2 -2
- package/dist/types/src/components/Transcript/transcript-extension.d.ts.map +1 -1
- package/dist/types/src/components/TranscriptContainer.d.ts +4 -6
- package/dist/types/src/components/TranscriptContainer.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +1 -1
- 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/MicrophoneTranscription.stories.d.ts +3 -3
- 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/functions/open.d.ts +1 -1
- package/dist/types/src/functions/summarize.d.ts +1 -1
- package/dist/types/src/hooks/useQueueModelAdapter.d.ts +1 -1
- package/dist/types/src/hooks/useQueueModelAdapter.d.ts.map +1 -1
- package/dist/types/src/hooks/useTranscriber.d.ts +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/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 +502 -457
- 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/types/TranscriptAction.d.ts +22 -20
- package/dist/types/src/types/TranscriptAction.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 +2 -1
- 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 +83 -69
- package/src/TranscriptionPlugin.tsx +34 -58
- package/src/blueprints/index.ts +5 -0
- package/src/blueprints/transcription-blueprint.ts +25 -0
- package/src/capabilities/blueprint-definition/blueprint-definition.ts +23 -0
- package/src/capabilities/blueprint-definition/index.ts +7 -0
- package/src/capabilities/index.ts +4 -8
- package/src/capabilities/operation-handler/index.ts +7 -0
- package/src/capabilities/operation-handler/operation-handler.ts +25 -0
- package/src/capabilities/operation-resolver/index.ts +7 -0
- package/src/capabilities/operation-resolver/operation-resolver.ts +25 -0
- package/src/capabilities/react-surface/index.ts +7 -0
- package/src/capabilities/react-surface/react-surface.tsx +27 -0
- package/src/capabilities/transcriber/index.ts +7 -0
- package/src/capabilities/transcriber/transcriber.ts +85 -0
- package/src/components/Transcript/Transcript.stories.tsx +38 -37
- package/src/components/Transcript/Transcript.tsx +11 -38
- package/src/components/Transcript/deprecated/OldTranscript.tsx +2 -2
- package/src/components/Transcript/transcript-extension.ts +10 -6
- package/src/components/TranscriptContainer.tsx +15 -17
- package/src/components/stories/FileTranscription.stories.tsx +27 -31
- package/src/components/stories/KeyWordRecognition.stories.tsx +4 -4
- package/src/components/stories/MicrophoneTranscription.stories.tsx +47 -50
- package/src/components/stories/TranscriptionStory.tsx +7 -11
- package/src/functions/open.ts +6 -6
- 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 +2 -2
- package/src/model/model.test.ts +20 -14
- package/src/segments-normalization/message-normalizer.ts +18 -13
- package/src/segments-normalization/normalization.test.ts +5 -10
- package/src/segments-normalization/normalization.ts +6 -6
- package/src/segments-normalization/utils.ts +2 -2
- package/src/testing/testing.ts +28 -18
- package/src/transcriber/media-stream-recorder.ts +3 -3
- package/src/transcriber/transcriber.browser.test.ts +4 -4
- package/src/transcriber/transcriber.ts +6 -6
- package/src/transcriber/transcription-manager.ts +21 -15
- package/src/types/TranscriptAction.ts +21 -13
- package/src/{capabilities → types}/capabilities.ts +8 -8
- package/src/types/index.ts +2 -1
- 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.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-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.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.map +0 -7
- package/dist/lib/node-esm/blueprint-definition-Z3LTZ3ID.mjs.map +0 -7
- 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-SWUVPFKR.mjs +0 -17
- package/dist/lib/node-esm/chunk-SWUVPFKR.mjs.map +0 -7
- 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.map +0 -7
- package/dist/types/src/capabilities/blueprint-definition.d.ts +0 -5
- package/dist/types/src/capabilities/blueprint-definition.d.ts.map +0 -1
- 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/capabilities/react-surface.d.ts +0 -4
- package/dist/types/src/capabilities/react-surface.d.ts.map +0 -1
- package/dist/types/src/capabilities/transcriber.d.ts +0 -8
- package/dist/types/src/capabilities/transcriber.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/src/capabilities/blueprint-definition.ts +0 -31
- package/src/capabilities/intent-resolver.ts +0 -18
- package/src/capabilities/react-surface.tsx +0 -22
- package/src/capabilities/transcriber.ts +0 -77
- package/src/types/Transcript.ts +0 -44
- /package/dist/lib/browser/{TranscriptContainer-2GSL2XB5.mjs.map → TranscriptContainer-6EHKWVS4.mjs.map} +0 -0
- /package/dist/lib/{node-esm/TranscriptContainer-GRLDCESB.mjs.map → browser/blueprints/index.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-535OJKFO.mjs.map → chunk-SYGEFDWO.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-Q6WD7L2J.mjs.map → chunk-GVAVEVZ6.mjs.map} +0 -0
|
@@ -1,476 +1,521 @@
|
|
|
1
1
|
import * as Schema from 'effect/Schema';
|
|
2
|
-
declare const MessageWithRangeId: Schema.extend<import("@dxos/echo/Type").
|
|
3
|
-
id:
|
|
4
|
-
parentMessage
|
|
5
|
-
created:
|
|
6
|
-
sender:
|
|
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
|
-
value:
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
blocks:
|
|
68
|
-
pending
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
pending
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}
|
|
95
|
-
pending
|
|
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
|
-
|
|
2
|
+
declare const MessageWithRangeId: Schema.extend<import("@dxos/echo/Type").Obj<{
|
|
3
|
+
readonly id: string;
|
|
4
|
+
readonly parentMessage?: string | undefined;
|
|
5
|
+
readonly created: string;
|
|
6
|
+
readonly sender: {
|
|
7
|
+
readonly name?: string | undefined;
|
|
8
|
+
readonly role?: "user" | "assistant" | "tool" | undefined;
|
|
9
|
+
readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
10
|
+
readonly image?: string | undefined;
|
|
11
|
+
readonly fullName?: string | undefined;
|
|
12
|
+
readonly preferredName?: string | undefined;
|
|
13
|
+
readonly nickname?: string | undefined;
|
|
14
|
+
readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
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<{
|
|
154
169
|
rangeId: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
155
170
|
}>>;
|
|
156
171
|
export interface MessageWithRangeId extends Schema.Schema.Type<typeof MessageWithRangeId> {
|
|
157
172
|
}
|
|
158
173
|
export declare const NormalizationInput: Schema.Struct<{
|
|
159
|
-
messages: Schema.Array$<Schema.extend<import("@dxos/echo/Type").
|
|
160
|
-
id:
|
|
161
|
-
parentMessage
|
|
162
|
-
created:
|
|
163
|
-
sender:
|
|
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
|
-
value:
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
}
|
|
224
|
-
blocks:
|
|
225
|
-
pending
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
pending
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
}
|
|
252
|
-
pending
|
|
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
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
174
|
+
messages: Schema.Array$<Schema.extend<import("@dxos/echo/Type").Obj<{
|
|
175
|
+
readonly id: string;
|
|
176
|
+
readonly parentMessage?: string | undefined;
|
|
177
|
+
readonly created: string;
|
|
178
|
+
readonly sender: {
|
|
179
|
+
readonly name?: string | undefined;
|
|
180
|
+
readonly role?: "user" | "assistant" | "tool" | undefined;
|
|
181
|
+
readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
182
|
+
readonly image?: string | undefined;
|
|
183
|
+
readonly fullName?: string | undefined;
|
|
184
|
+
readonly preferredName?: string | undefined;
|
|
185
|
+
readonly nickname?: string | undefined;
|
|
186
|
+
readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
187
|
+
readonly description?: string | undefined;
|
|
188
|
+
readonly name?: string | undefined;
|
|
189
|
+
readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
190
|
+
readonly image?: string | undefined;
|
|
191
|
+
readonly website?: string | undefined;
|
|
192
|
+
} & {
|
|
193
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
194
|
+
}> | undefined;
|
|
195
|
+
readonly jobTitle?: string | undefined;
|
|
196
|
+
readonly department?: string | undefined;
|
|
197
|
+
readonly notes?: string | undefined;
|
|
198
|
+
readonly emails?: readonly {
|
|
199
|
+
readonly value: string;
|
|
200
|
+
readonly label?: string | undefined;
|
|
201
|
+
}[] | undefined;
|
|
202
|
+
readonly identities?: readonly {
|
|
203
|
+
readonly value: string;
|
|
204
|
+
readonly label?: string | undefined;
|
|
205
|
+
}[] | undefined;
|
|
206
|
+
readonly phoneNumbers?: readonly {
|
|
207
|
+
readonly value: string;
|
|
208
|
+
readonly label?: string | undefined;
|
|
209
|
+
}[] | undefined;
|
|
210
|
+
readonly fields?: readonly {
|
|
211
|
+
readonly value: string;
|
|
212
|
+
readonly label: string;
|
|
213
|
+
readonly category?: string | undefined;
|
|
214
|
+
}[] | undefined;
|
|
215
|
+
readonly addresses?: readonly {
|
|
216
|
+
readonly value: {
|
|
217
|
+
readonly street?: string | undefined;
|
|
218
|
+
readonly extended?: string | undefined;
|
|
219
|
+
readonly locality?: string | undefined;
|
|
220
|
+
readonly region?: string | undefined;
|
|
221
|
+
readonly postalCode?: string | undefined;
|
|
222
|
+
readonly postOfficeBoxNumber?: string | undefined;
|
|
223
|
+
readonly country?: string | undefined;
|
|
224
|
+
};
|
|
225
|
+
readonly label?: string | undefined;
|
|
226
|
+
}[] | undefined;
|
|
227
|
+
readonly urls?: readonly {
|
|
228
|
+
readonly value: string;
|
|
229
|
+
readonly label?: string | undefined;
|
|
230
|
+
}[] | undefined;
|
|
231
|
+
readonly birthday?: string | undefined;
|
|
232
|
+
} & {
|
|
233
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
234
|
+
}> | undefined;
|
|
235
|
+
readonly identityDid?: string | undefined;
|
|
236
|
+
readonly identityKey?: string | undefined;
|
|
237
|
+
readonly email?: string | undefined;
|
|
238
|
+
};
|
|
239
|
+
readonly blocks: readonly ({
|
|
240
|
+
readonly pending?: boolean | undefined;
|
|
241
|
+
readonly text: string;
|
|
242
|
+
readonly mimeType?: string | undefined;
|
|
243
|
+
readonly disposition?: string | undefined;
|
|
244
|
+
readonly _tag: "text";
|
|
245
|
+
} | {
|
|
246
|
+
readonly pending?: boolean | undefined;
|
|
247
|
+
readonly _tag: "reasoning";
|
|
248
|
+
readonly reasoningText?: string | undefined;
|
|
249
|
+
readonly redactedText?: string | undefined;
|
|
250
|
+
readonly signature?: string | undefined;
|
|
251
|
+
} | {
|
|
252
|
+
readonly name: string;
|
|
253
|
+
readonly pending?: boolean | undefined;
|
|
254
|
+
readonly _tag: "toolCall";
|
|
255
|
+
readonly toolCallId: string;
|
|
256
|
+
readonly input: string;
|
|
257
|
+
readonly providerExecuted: boolean;
|
|
258
|
+
} | {
|
|
259
|
+
readonly name: string;
|
|
260
|
+
readonly pending?: boolean | undefined;
|
|
261
|
+
readonly _tag: "toolResult";
|
|
262
|
+
readonly toolCallId: string;
|
|
263
|
+
readonly providerExecuted: boolean;
|
|
264
|
+
readonly result?: string | undefined;
|
|
265
|
+
readonly error?: string | undefined;
|
|
266
|
+
} | {
|
|
267
|
+
readonly pending?: boolean | undefined;
|
|
268
|
+
readonly mimeType?: string | undefined;
|
|
269
|
+
readonly _tag: "summary";
|
|
270
|
+
readonly message?: string | undefined;
|
|
271
|
+
readonly model?: string | undefined;
|
|
272
|
+
readonly usage?: {
|
|
273
|
+
readonly inputTokens?: number | undefined;
|
|
274
|
+
readonly outputTokens?: number | undefined;
|
|
275
|
+
readonly totalTokens?: number | undefined;
|
|
276
|
+
} | undefined;
|
|
277
|
+
readonly toolCalls?: number | undefined;
|
|
278
|
+
readonly errors?: number | undefined;
|
|
279
|
+
readonly duration?: number | undefined;
|
|
280
|
+
} | {
|
|
281
|
+
readonly source?: {
|
|
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
|
+
} | {
|
|
303
|
+
readonly pending?: boolean | undefined;
|
|
304
|
+
readonly text: string;
|
|
305
|
+
readonly _tag: "transcript";
|
|
306
|
+
readonly started: string;
|
|
307
|
+
} | {
|
|
308
|
+
readonly pending?: boolean | undefined;
|
|
309
|
+
readonly _tag: "status";
|
|
310
|
+
readonly statusText: string;
|
|
311
|
+
} | {
|
|
312
|
+
readonly pending?: boolean | undefined;
|
|
313
|
+
readonly text: string;
|
|
314
|
+
readonly _tag: "suggestion";
|
|
315
|
+
} | {
|
|
316
|
+
readonly pending?: boolean | undefined;
|
|
317
|
+
readonly _tag: "select";
|
|
318
|
+
readonly options: string[];
|
|
319
|
+
} | {
|
|
320
|
+
readonly version: unknown;
|
|
321
|
+
readonly pending?: boolean | undefined;
|
|
322
|
+
readonly _tag: "anchor";
|
|
323
|
+
readonly objectId: string;
|
|
324
|
+
} | {
|
|
325
|
+
readonly pending?: boolean | undefined;
|
|
326
|
+
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
|
+
})[];
|
|
337
|
+
readonly properties?: {
|
|
338
|
+
readonly [x: string]: any;
|
|
339
|
+
} | undefined;
|
|
340
|
+
}, Schema.Struct.Fields>, Schema.Struct<{
|
|
311
341
|
rangeId: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
312
342
|
}>>>;
|
|
313
343
|
}>;
|
|
314
344
|
export interface NormalizationInput extends Schema.Schema.Type<typeof NormalizationInput> {
|
|
315
345
|
}
|
|
316
346
|
export declare const NormalizationOutput: Schema.Struct<{
|
|
317
|
-
sentences: Schema.mutable<Schema.Array$<Schema.mutable<Schema.extend<import("@dxos/echo/Type").
|
|
318
|
-
id:
|
|
319
|
-
parentMessage
|
|
320
|
-
created:
|
|
321
|
-
sender:
|
|
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
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
value:
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
}
|
|
382
|
-
blocks:
|
|
383
|
-
pending
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
pending
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
}
|
|
410
|
-
pending
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
347
|
+
sentences: Schema.mutable<Schema.Array$<Schema.mutable<Schema.extend<import("@dxos/echo/Type").Obj<{
|
|
348
|
+
readonly id: string;
|
|
349
|
+
readonly parentMessage?: string | undefined;
|
|
350
|
+
readonly created: string;
|
|
351
|
+
readonly sender: {
|
|
352
|
+
readonly name?: string | undefined;
|
|
353
|
+
readonly role?: "user" | "assistant" | "tool" | undefined;
|
|
354
|
+
readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
355
|
+
readonly image?: string | undefined;
|
|
356
|
+
readonly fullName?: string | undefined;
|
|
357
|
+
readonly preferredName?: string | undefined;
|
|
358
|
+
readonly nickname?: string | undefined;
|
|
359
|
+
readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
360
|
+
readonly description?: string | undefined;
|
|
361
|
+
readonly name?: string | undefined;
|
|
362
|
+
readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
363
|
+
readonly image?: string | undefined;
|
|
364
|
+
readonly website?: string | undefined;
|
|
365
|
+
} & {
|
|
366
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
367
|
+
}> | undefined;
|
|
368
|
+
readonly jobTitle?: string | undefined;
|
|
369
|
+
readonly department?: string | undefined;
|
|
370
|
+
readonly notes?: string | undefined;
|
|
371
|
+
readonly emails?: readonly {
|
|
372
|
+
readonly value: string;
|
|
373
|
+
readonly label?: string | undefined;
|
|
374
|
+
}[] | undefined;
|
|
375
|
+
readonly identities?: readonly {
|
|
376
|
+
readonly value: string;
|
|
377
|
+
readonly label?: string | undefined;
|
|
378
|
+
}[] | undefined;
|
|
379
|
+
readonly phoneNumbers?: readonly {
|
|
380
|
+
readonly value: string;
|
|
381
|
+
readonly label?: string | undefined;
|
|
382
|
+
}[] | undefined;
|
|
383
|
+
readonly fields?: readonly {
|
|
384
|
+
readonly value: string;
|
|
385
|
+
readonly label: string;
|
|
386
|
+
readonly category?: string | undefined;
|
|
387
|
+
}[] | undefined;
|
|
388
|
+
readonly addresses?: readonly {
|
|
389
|
+
readonly value: {
|
|
390
|
+
readonly street?: string | undefined;
|
|
391
|
+
readonly extended?: string | undefined;
|
|
392
|
+
readonly locality?: string | undefined;
|
|
393
|
+
readonly region?: string | undefined;
|
|
394
|
+
readonly postalCode?: string | undefined;
|
|
395
|
+
readonly postOfficeBoxNumber?: string | undefined;
|
|
396
|
+
readonly country?: string | undefined;
|
|
397
|
+
};
|
|
398
|
+
readonly label?: string | undefined;
|
|
399
|
+
}[] | undefined;
|
|
400
|
+
readonly urls?: readonly {
|
|
401
|
+
readonly value: string;
|
|
402
|
+
readonly label?: string | undefined;
|
|
403
|
+
}[] | undefined;
|
|
404
|
+
readonly birthday?: string | undefined;
|
|
405
|
+
} & {
|
|
406
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
407
|
+
}> | undefined;
|
|
408
|
+
readonly identityDid?: string | undefined;
|
|
409
|
+
readonly identityKey?: string | undefined;
|
|
410
|
+
readonly email?: string | undefined;
|
|
411
|
+
};
|
|
412
|
+
readonly blocks: readonly ({
|
|
413
|
+
readonly pending?: boolean | undefined;
|
|
414
|
+
readonly text: string;
|
|
415
|
+
readonly mimeType?: string | undefined;
|
|
416
|
+
readonly disposition?: string | undefined;
|
|
417
|
+
readonly _tag: "text";
|
|
418
|
+
} | {
|
|
419
|
+
readonly pending?: boolean | undefined;
|
|
420
|
+
readonly _tag: "reasoning";
|
|
421
|
+
readonly reasoningText?: string | undefined;
|
|
422
|
+
readonly redactedText?: string | undefined;
|
|
423
|
+
readonly signature?: string | undefined;
|
|
424
|
+
} | {
|
|
425
|
+
readonly name: string;
|
|
426
|
+
readonly pending?: boolean | undefined;
|
|
427
|
+
readonly _tag: "toolCall";
|
|
428
|
+
readonly toolCallId: string;
|
|
429
|
+
readonly input: string;
|
|
430
|
+
readonly providerExecuted: boolean;
|
|
431
|
+
} | {
|
|
432
|
+
readonly name: string;
|
|
433
|
+
readonly pending?: boolean | undefined;
|
|
434
|
+
readonly _tag: "toolResult";
|
|
435
|
+
readonly toolCallId: string;
|
|
436
|
+
readonly providerExecuted: boolean;
|
|
437
|
+
readonly result?: string | undefined;
|
|
438
|
+
readonly error?: string | undefined;
|
|
439
|
+
} | {
|
|
440
|
+
readonly pending?: boolean | undefined;
|
|
441
|
+
readonly mimeType?: string | undefined;
|
|
442
|
+
readonly _tag: "summary";
|
|
443
|
+
readonly message?: string | undefined;
|
|
444
|
+
readonly model?: string | undefined;
|
|
445
|
+
readonly usage?: {
|
|
446
|
+
readonly inputTokens?: number | undefined;
|
|
447
|
+
readonly outputTokens?: number | undefined;
|
|
448
|
+
readonly totalTokens?: number | undefined;
|
|
449
|
+
} | undefined;
|
|
450
|
+
readonly toolCalls?: number | undefined;
|
|
451
|
+
readonly errors?: number | undefined;
|
|
452
|
+
readonly duration?: number | undefined;
|
|
453
|
+
} | {
|
|
454
|
+
readonly source?: {
|
|
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
|
+
} | {
|
|
476
|
+
readonly pending?: boolean | undefined;
|
|
477
|
+
readonly text: string;
|
|
478
|
+
readonly _tag: "transcript";
|
|
479
|
+
readonly started: string;
|
|
480
|
+
} | {
|
|
481
|
+
readonly pending?: boolean | undefined;
|
|
482
|
+
readonly _tag: "status";
|
|
483
|
+
readonly statusText: string;
|
|
484
|
+
} | {
|
|
485
|
+
readonly pending?: boolean | undefined;
|
|
486
|
+
readonly text: string;
|
|
487
|
+
readonly _tag: "suggestion";
|
|
488
|
+
} | {
|
|
489
|
+
readonly pending?: boolean | undefined;
|
|
490
|
+
readonly _tag: "select";
|
|
491
|
+
readonly options: string[];
|
|
492
|
+
} | {
|
|
493
|
+
readonly version: unknown;
|
|
494
|
+
readonly pending?: boolean | undefined;
|
|
495
|
+
readonly _tag: "anchor";
|
|
496
|
+
readonly objectId: string;
|
|
497
|
+
} | {
|
|
498
|
+
readonly pending?: boolean | undefined;
|
|
499
|
+
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
|
+
})[];
|
|
510
|
+
readonly properties?: {
|
|
511
|
+
readonly [x: string]: any;
|
|
512
|
+
} | undefined;
|
|
513
|
+
}, Schema.Struct.Fields>, Schema.Struct<{
|
|
469
514
|
rangeId: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
470
515
|
}>>>>>;
|
|
471
516
|
}>;
|
|
472
517
|
export interface NormalizationOutput extends Schema.Schema.Type<typeof NormalizationOutput> {
|
|
473
518
|
}
|
|
474
|
-
export declare const sentenceNormalization: import("@dxos/functions").FunctionDefinition<NormalizationInput, NormalizationOutput>;
|
|
519
|
+
export declare const sentenceNormalization: import("@dxos/functions").FunctionDefinition<NormalizationInput, NormalizationOutput, import("@dxos/functions").FunctionServices>;
|
|
475
520
|
export {};
|
|
476
521
|
//# sourceMappingURL=normalization.d.ts.map
|