@dxos/plugin-transcription 0.8.4-main.5ea62a8 → 0.8.4-main.66e292d
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-OQFBAGSP.mjs +11 -0
- package/dist/lib/browser/{blueprint-definition-QQSGTX5F.mjs → blueprint-definition-GZ7NOODS.mjs} +24 -19
- package/dist/lib/browser/blueprint-definition-GZ7NOODS.mjs.map +7 -0
- package/dist/lib/browser/{chunk-TNEQFHIU.mjs → chunk-3MKZ2MNQ.mjs} +5 -5
- package/dist/lib/browser/chunk-3MKZ2MNQ.mjs.map +7 -0
- package/dist/lib/browser/{chunk-BA64VLLR.mjs → chunk-7GNN7E3U.mjs} +46 -66
- package/dist/lib/browser/chunk-7GNN7E3U.mjs.map +7 -0
- package/dist/lib/browser/{chunk-5I4BMOGE.mjs → chunk-C5YV3JZF.mjs} +129 -174
- package/dist/lib/browser/chunk-C5YV3JZF.mjs.map +7 -0
- package/dist/lib/browser/{chunk-26XDG6GQ.mjs → chunk-O33THH53.mjs} +2 -2
- package/dist/lib/browser/chunk-QOSZIUE2.mjs +32 -0
- package/dist/lib/browser/chunk-QOSZIUE2.mjs.map +7 -0
- package/dist/lib/browser/{chunk-3X7HP44M.mjs → chunk-VBUIO677.mjs} +8 -5
- package/dist/lib/browser/chunk-VBUIO677.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +15 -18
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/{intent-resolver-T3EGLS3L.mjs → intent-resolver-5CGCLOXB.mjs} +8 -8
- package/dist/lib/browser/intent-resolver-5CGCLOXB.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-surface-QYX74JNG.mjs → react-surface-OK55WK7J.mjs} +9 -11
- package/dist/lib/browser/react-surface-OK55WK7J.mjs.map +7 -0
- package/dist/lib/browser/{transcriber-JOOAQVYV.mjs → transcriber-6YDM5ZDT.mjs} +7 -7
- package/dist/lib/browser/{transcriber-JOOAQVYV.mjs.map → transcriber-6YDM5ZDT.mjs.map} +1 -1
- package/dist/lib/browser/types/index.mjs +3 -5
- package/dist/lib/node-esm/{TranscriptContainer-BUWK63SI.mjs → TranscriptContainer-GM47P6WH.mjs} +4 -4
- package/dist/lib/node-esm/{blueprint-definition-4PLCTH5Q.mjs → blueprint-definition-GAHQBYTF.mjs} +24 -19
- package/dist/lib/node-esm/blueprint-definition-GAHQBYTF.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-J5GQ3KGX.mjs → chunk-5JN2MHYA.mjs} +46 -66
- package/dist/lib/node-esm/chunk-5JN2MHYA.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-DT3AOC3E.mjs → chunk-IKGUNN3Z.mjs} +129 -174
- package/dist/lib/node-esm/chunk-IKGUNN3Z.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-NWD757KH.mjs → chunk-SSYFSLB7.mjs} +2 -2
- package/dist/lib/node-esm/{chunk-3QAIZGMW.mjs → chunk-SWUVPFKR.mjs} +5 -5
- package/dist/lib/node-esm/chunk-SWUVPFKR.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-U4YPUD2F.mjs +33 -0
- package/dist/lib/node-esm/chunk-U4YPUD2F.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-QARUDLHN.mjs → chunk-YVNQN2J6.mjs} +8 -5
- package/dist/lib/node-esm/chunk-YVNQN2J6.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +15 -18
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/{intent-resolver-VDHCUAIO.mjs → intent-resolver-4H4CXIAL.mjs} +8 -8
- package/dist/lib/node-esm/intent-resolver-4H4CXIAL.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{react-surface-TM7XOQBR.mjs → react-surface-EK6K2MMD.mjs} +9 -11
- package/dist/lib/node-esm/react-surface-EK6K2MMD.mjs.map +7 -0
- package/dist/lib/node-esm/{transcriber-QPS55YP2.mjs → transcriber-CPD3FZ7M.mjs} +7 -7
- package/dist/lib/node-esm/{transcriber-QPS55YP2.mjs.map → transcriber-CPD3FZ7M.mjs.map} +1 -1
- package/dist/lib/node-esm/types/index.mjs +3 -5
- package/dist/types/src/TranscriptionPlugin.d.ts +1 -1
- package/dist/types/src/TranscriptionPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/blueprint-definition.d.ts +1 -1
- package/dist/types/src/capabilities/capabilities.d.ts.map +1 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -1
- package/dist/types/src/components/Transcript/Transcript.d.ts +5 -6
- package/dist/types/src/components/Transcript/Transcript.d.ts.map +1 -1
- package/dist/types/src/components/Transcript/Transcript.stories.d.ts +3 -5
- package/dist/types/src/components/Transcript/Transcript.stories.d.ts.map +1 -1
- package/dist/types/src/components/Transcript/deprecated/OldTranscript.d.ts +1 -1
- package/dist/types/src/components/Transcript/deprecated/OldTranscript.d.ts.map +1 -1
- package/dist/types/src/components/Transcript/transcript-extension.d.ts +3 -7
- package/dist/types/src/components/Transcript/transcript-extension.d.ts.map +1 -1
- package/dist/types/src/components/TranscriptContainer.d.ts +1 -1
- package/dist/types/src/components/TranscriptContainer.d.ts.map +1 -1
- package/dist/types/src/components/stories/FileTranscription.stories.d.ts +0 -2
- package/dist/types/src/components/stories/FileTranscription.stories.d.ts.map +1 -1
- package/dist/types/src/components/stories/KeyWordRecognition.stories.d.ts +0 -1
- package/dist/types/src/components/stories/KeyWordRecognition.stories.d.ts.map +1 -1
- package/dist/types/src/components/stories/MicrophoneTranscription.stories.d.ts +0 -2
- package/dist/types/src/components/stories/MicrophoneTranscription.stories.d.ts.map +1 -1
- package/dist/types/src/components/stories/TranscriptionStory.d.ts +3 -3
- 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/open.d.ts.map +1 -1
- package/dist/types/src/functions/summarize.d.ts +1 -1
- package/dist/types/src/functions/summarize.d.ts.map +1 -1
- package/dist/types/src/hooks/useAudioFile.d.ts.map +1 -1
- package/dist/types/src/hooks/useTranscriber.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +0 -1
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/segments-normalization/message-normalizer.d.ts +3 -3
- package/dist/types/src/segments-normalization/message-normalizer.d.ts.map +1 -1
- package/dist/types/src/segments-normalization/normalization.d.ts +158 -158
- 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 +6 -6
- package/dist/types/src/testing/testing.d.ts.map +1 -1
- package/dist/types/src/transcriber/transcriber.d.ts +2 -2
- package/dist/types/src/transcriber/transcriber.d.ts.map +1 -1
- package/dist/types/src/transcriber/transcription-manager.d.ts +3 -3
- package/dist/types/src/transcriber/transcription-manager.d.ts.map +1 -1
- package/dist/types/src/types/TranscriptAction.d.ts +2 -2
- package/dist/types/src/types/TranscriptAction.d.ts.map +1 -1
- package/dist/types/src/types/index.d.ts +0 -1
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +64 -63
- package/src/TranscriptionPlugin.tsx +57 -58
- package/src/capabilities/capabilities.ts +3 -3
- package/src/capabilities/intent-resolver.ts +2 -1
- package/src/capabilities/react-surface.tsx +1 -1
- package/src/components/Transcript/Transcript.stories.tsx +29 -25
- package/src/components/Transcript/Transcript.tsx +20 -28
- package/src/components/Transcript/deprecated/OldTranscript.tsx +5 -5
- package/src/components/Transcript/transcript-extension.ts +11 -44
- package/src/components/TranscriptContainer.tsx +8 -8
- package/src/components/stories/FileTranscription.stories.tsx +33 -31
- package/src/components/stories/KeyWordRecognition.stories.tsx +4 -6
- package/src/components/stories/MicrophoneTranscription.stories.tsx +45 -40
- package/src/components/stories/TranscriptionStory.tsx +8 -9
- package/src/functions/open.ts +8 -7
- package/src/functions/summarize.ts +10 -4
- package/src/hooks/useAudioFile.ts +50 -45
- package/src/hooks/useTranscriber.ts +7 -2
- package/src/meta.ts +7 -4
- package/src/model/model.test.ts +11 -11
- package/src/segments-normalization/message-normalizer.ts +6 -6
- package/src/segments-normalization/normalization.test.ts +6 -6
- package/src/segments-normalization/normalization.ts +7 -7
- package/src/segments-normalization/utils.ts +2 -2
- package/src/testing/testing.ts +25 -20
- package/src/transcriber/transcriber.browser.test.ts +3 -3
- package/src/transcriber/transcriber.ts +3 -3
- package/src/transcriber/transcription-manager.ts +6 -6
- package/src/types/TranscriptAction.ts +3 -4
- package/src/types/index.ts +0 -1
- package/dist/lib/browser/TranscriptContainer-OX7OOODC.mjs +0 -11
- package/dist/lib/browser/blueprint-definition-QQSGTX5F.mjs.map +0 -7
- package/dist/lib/browser/chunk-3X7HP44M.mjs.map +0 -7
- package/dist/lib/browser/chunk-5I4BMOGE.mjs.map +0 -7
- package/dist/lib/browser/chunk-BA64VLLR.mjs.map +0 -7
- package/dist/lib/browser/chunk-HXVGV7T6.mjs +0 -63
- package/dist/lib/browser/chunk-HXVGV7T6.mjs.map +0 -7
- package/dist/lib/browser/chunk-TNEQFHIU.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-T3EGLS3L.mjs.map +0 -7
- package/dist/lib/browser/react-surface-QYX74JNG.mjs.map +0 -7
- package/dist/lib/node-esm/blueprint-definition-4PLCTH5Q.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-3QAIZGMW.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-DT3AOC3E.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-J5GQ3KGX.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-QARUDLHN.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-W72HVQMD.mjs +0 -64
- package/dist/lib/node-esm/chunk-W72HVQMD.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-VDHCUAIO.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-TM7XOQBR.mjs.map +0 -7
- package/dist/types/src/types/Transcript.d.ts +0 -30
- package/dist/types/src/types/Transcript.d.ts.map +0 -1
- package/src/types/Transcript.ts +0 -44
- /package/dist/lib/browser/{TranscriptContainer-OX7OOODC.mjs.map → TranscriptContainer-OQFBAGSP.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-26XDG6GQ.mjs.map → chunk-O33THH53.mjs.map} +0 -0
- /package/dist/lib/node-esm/{TranscriptContainer-BUWK63SI.mjs.map → TranscriptContainer-GM47P6WH.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-NWD757KH.mjs.map → chunk-SSYFSLB7.mjs.map} +0 -0
|
@@ -1,65 +1,66 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
2
|
declare const MessageWithRangeId: Schema.extend<import("@dxos/echo/Type").obj<Schema.Struct<{
|
|
3
3
|
id: import("@dxos/keys").ObjectIdClass;
|
|
4
4
|
parentMessage: Schema.optional<import("@dxos/keys").ObjectIdClass>;
|
|
5
5
|
created: Schema.SchemaClass<string, string, never>;
|
|
6
6
|
sender: Schema.mutable<Schema.Struct<{
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
name?: string | undefined;
|
|
7
|
+
role: Schema.optional<Schema.Literal<["user", "assistant", "tool"]>>;
|
|
8
|
+
contact: Schema.optional<import("@dxos/echo/internal").RefSchema<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
9
|
+
image?: string | undefined;
|
|
10
|
+
fullName?: string | undefined;
|
|
11
|
+
preferredName?: string | undefined;
|
|
12
|
+
nickname?: string | undefined;
|
|
13
|
+
organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
15
14
|
description?: string | undefined;
|
|
15
|
+
name?: string | undefined;
|
|
16
16
|
status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
17
17
|
image?: string | undefined;
|
|
18
18
|
website?: string | undefined;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
value:
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
value:
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
value:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
value:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
57
|
-
|
|
19
|
+
location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
20
|
+
}> | undefined;
|
|
21
|
+
jobTitle?: string | undefined;
|
|
22
|
+
department?: string | undefined;
|
|
23
|
+
notes?: string | undefined;
|
|
24
|
+
emails?: {
|
|
25
|
+
readonly value: string;
|
|
26
|
+
readonly label?: string | undefined;
|
|
27
|
+
}[] | undefined;
|
|
28
|
+
identities?: {
|
|
29
|
+
readonly value: string;
|
|
30
|
+
readonly label?: string | undefined;
|
|
31
|
+
}[] | undefined;
|
|
32
|
+
phoneNumbers?: {
|
|
33
|
+
readonly value: string;
|
|
34
|
+
readonly label?: string | undefined;
|
|
35
|
+
}[] | undefined;
|
|
36
|
+
fields?: {
|
|
37
|
+
readonly value: string;
|
|
38
|
+
readonly label: string;
|
|
39
|
+
readonly category?: string | undefined;
|
|
40
|
+
}[] | undefined;
|
|
41
|
+
addresses?: {
|
|
42
|
+
readonly value: {
|
|
43
|
+
readonly street?: string | undefined;
|
|
44
|
+
readonly extended?: string | undefined;
|
|
45
|
+
readonly locality?: string | undefined;
|
|
46
|
+
readonly region?: string | undefined;
|
|
47
|
+
readonly postalCode?: string | undefined;
|
|
48
|
+
readonly postOfficeBoxNumber?: string | undefined;
|
|
49
|
+
readonly country?: string | undefined;
|
|
50
|
+
};
|
|
51
|
+
readonly label?: string | undefined;
|
|
52
|
+
}[] | undefined;
|
|
53
|
+
urls?: {
|
|
54
|
+
readonly value: string;
|
|
55
|
+
readonly label?: string | undefined;
|
|
56
|
+
}[] | undefined;
|
|
57
|
+
birthday?: string | undefined;
|
|
58
|
+
location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
59
|
+
}>>;
|
|
58
60
|
identityDid: Schema.optional<typeof Schema.String>;
|
|
59
61
|
identityKey: Schema.optional<typeof Schema.String>;
|
|
60
62
|
email: Schema.optional<typeof Schema.String>;
|
|
61
63
|
name: Schema.optional<typeof Schema.String>;
|
|
62
|
-
role: Schema.optional<Schema.Literal<["user", "assistant"]>>;
|
|
63
64
|
}>>;
|
|
64
65
|
blocks: Schema.mutable<Schema.Array$<Schema.Union<[Schema.mutable<Schema.TaggedStruct<"anchor", {
|
|
65
66
|
pending: Schema.optional<typeof Schema.Boolean>;
|
|
@@ -95,10 +96,7 @@ declare const MessageWithRangeId: Schema.extend<import("@dxos/echo/Type").obj<Sc
|
|
|
95
96
|
signature: Schema.optional<typeof Schema.String>;
|
|
96
97
|
}>>, Schema.mutable<Schema.TaggedStruct<"reference", {
|
|
97
98
|
pending: Schema.optional<typeof Schema.Boolean>;
|
|
98
|
-
reference: import("@dxos/echo/
|
|
99
|
-
[x: string]: any;
|
|
100
|
-
id: string;
|
|
101
|
-
}, never>>;
|
|
99
|
+
reference: import("@dxos/echo/internal").RefSchema<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {}>;
|
|
102
100
|
}>>, Schema.mutable<Schema.TaggedStruct<"select", {
|
|
103
101
|
pending: Schema.optional<typeof Schema.Boolean>;
|
|
104
102
|
options: Schema.Array$<typeof Schema.String>;
|
|
@@ -133,12 +131,14 @@ declare const MessageWithRangeId: Schema.extend<import("@dxos/echo/Type").obj<Sc
|
|
|
133
131
|
toolCallId: typeof Schema.String;
|
|
134
132
|
name: typeof Schema.String;
|
|
135
133
|
input: typeof Schema.String;
|
|
134
|
+
providerExecuted: typeof Schema.Boolean;
|
|
136
135
|
}>>, Schema.mutable<Schema.TaggedStruct<"toolResult", {
|
|
137
136
|
pending: Schema.optional<typeof Schema.Boolean>;
|
|
138
137
|
toolCallId: typeof Schema.String;
|
|
139
138
|
name: typeof Schema.String;
|
|
140
139
|
result: Schema.optional<typeof Schema.String>;
|
|
141
140
|
error: Schema.optional<typeof Schema.String>;
|
|
141
|
+
providerExecuted: typeof Schema.Boolean;
|
|
142
142
|
}>>, Schema.mutable<Schema.TaggedStruct<"transcript", {
|
|
143
143
|
pending: Schema.optional<typeof Schema.Boolean>;
|
|
144
144
|
started: typeof Schema.String;
|
|
@@ -156,62 +156,63 @@ export declare const NormalizationInput: Schema.Struct<{
|
|
|
156
156
|
parentMessage: Schema.optional<import("@dxos/keys").ObjectIdClass>;
|
|
157
157
|
created: Schema.SchemaClass<string, string, never>;
|
|
158
158
|
sender: Schema.mutable<Schema.Struct<{
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
name?: string | undefined;
|
|
159
|
+
role: Schema.optional<Schema.Literal<["user", "assistant", "tool"]>>;
|
|
160
|
+
contact: Schema.optional<import("@dxos/echo/internal").RefSchema<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
161
|
+
image?: string | undefined;
|
|
162
|
+
fullName?: string | undefined;
|
|
163
|
+
preferredName?: string | undefined;
|
|
164
|
+
nickname?: string | undefined;
|
|
165
|
+
organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
167
166
|
description?: string | undefined;
|
|
167
|
+
name?: string | undefined;
|
|
168
168
|
status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
169
169
|
image?: string | undefined;
|
|
170
170
|
website?: string | undefined;
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
value:
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
value:
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
value:
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
value:
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
}
|
|
209
|
-
|
|
171
|
+
location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
172
|
+
}> | undefined;
|
|
173
|
+
jobTitle?: string | undefined;
|
|
174
|
+
department?: string | undefined;
|
|
175
|
+
notes?: string | undefined;
|
|
176
|
+
emails?: {
|
|
177
|
+
readonly value: string;
|
|
178
|
+
readonly label?: string | undefined;
|
|
179
|
+
}[] | undefined;
|
|
180
|
+
identities?: {
|
|
181
|
+
readonly value: string;
|
|
182
|
+
readonly label?: string | undefined;
|
|
183
|
+
}[] | undefined;
|
|
184
|
+
phoneNumbers?: {
|
|
185
|
+
readonly value: string;
|
|
186
|
+
readonly label?: string | undefined;
|
|
187
|
+
}[] | undefined;
|
|
188
|
+
fields?: {
|
|
189
|
+
readonly value: string;
|
|
190
|
+
readonly label: string;
|
|
191
|
+
readonly category?: string | undefined;
|
|
192
|
+
}[] | undefined;
|
|
193
|
+
addresses?: {
|
|
194
|
+
readonly value: {
|
|
195
|
+
readonly street?: string | undefined;
|
|
196
|
+
readonly extended?: string | undefined;
|
|
197
|
+
readonly locality?: string | undefined;
|
|
198
|
+
readonly region?: string | undefined;
|
|
199
|
+
readonly postalCode?: string | undefined;
|
|
200
|
+
readonly postOfficeBoxNumber?: string | undefined;
|
|
201
|
+
readonly country?: string | undefined;
|
|
202
|
+
};
|
|
203
|
+
readonly label?: string | undefined;
|
|
204
|
+
}[] | undefined;
|
|
205
|
+
urls?: {
|
|
206
|
+
readonly value: string;
|
|
207
|
+
readonly label?: string | undefined;
|
|
208
|
+
}[] | undefined;
|
|
209
|
+
birthday?: string | undefined;
|
|
210
|
+
location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
211
|
+
}>>;
|
|
210
212
|
identityDid: Schema.optional<typeof Schema.String>;
|
|
211
213
|
identityKey: Schema.optional<typeof Schema.String>;
|
|
212
214
|
email: Schema.optional<typeof Schema.String>;
|
|
213
215
|
name: Schema.optional<typeof Schema.String>;
|
|
214
|
-
role: Schema.optional<Schema.Literal<["user", "assistant"]>>;
|
|
215
216
|
}>>;
|
|
216
217
|
blocks: Schema.mutable<Schema.Array$<Schema.Union<[Schema.mutable<Schema.TaggedStruct<"anchor", {
|
|
217
218
|
pending: Schema.optional<typeof Schema.Boolean>;
|
|
@@ -247,10 +248,7 @@ export declare const NormalizationInput: Schema.Struct<{
|
|
|
247
248
|
signature: Schema.optional<typeof Schema.String>;
|
|
248
249
|
}>>, Schema.mutable<Schema.TaggedStruct<"reference", {
|
|
249
250
|
pending: Schema.optional<typeof Schema.Boolean>;
|
|
250
|
-
reference: import("@dxos/echo/
|
|
251
|
-
[x: string]: any;
|
|
252
|
-
id: string;
|
|
253
|
-
}, never>>;
|
|
251
|
+
reference: import("@dxos/echo/internal").RefSchema<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {}>;
|
|
254
252
|
}>>, Schema.mutable<Schema.TaggedStruct<"select", {
|
|
255
253
|
pending: Schema.optional<typeof Schema.Boolean>;
|
|
256
254
|
options: Schema.Array$<typeof Schema.String>;
|
|
@@ -285,12 +283,14 @@ export declare const NormalizationInput: Schema.Struct<{
|
|
|
285
283
|
toolCallId: typeof Schema.String;
|
|
286
284
|
name: typeof Schema.String;
|
|
287
285
|
input: typeof Schema.String;
|
|
286
|
+
providerExecuted: typeof Schema.Boolean;
|
|
288
287
|
}>>, Schema.mutable<Schema.TaggedStruct<"toolResult", {
|
|
289
288
|
pending: Schema.optional<typeof Schema.Boolean>;
|
|
290
289
|
toolCallId: typeof Schema.String;
|
|
291
290
|
name: typeof Schema.String;
|
|
292
291
|
result: Schema.optional<typeof Schema.String>;
|
|
293
292
|
error: Schema.optional<typeof Schema.String>;
|
|
293
|
+
providerExecuted: typeof Schema.Boolean;
|
|
294
294
|
}>>, Schema.mutable<Schema.TaggedStruct<"transcript", {
|
|
295
295
|
pending: Schema.optional<typeof Schema.Boolean>;
|
|
296
296
|
started: typeof Schema.String;
|
|
@@ -309,62 +309,63 @@ export declare const NormalizationOutput: Schema.Struct<{
|
|
|
309
309
|
parentMessage: Schema.optional<import("@dxos/keys").ObjectIdClass>;
|
|
310
310
|
created: Schema.SchemaClass<string, string, never>;
|
|
311
311
|
sender: Schema.mutable<Schema.Struct<{
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
name?: string | undefined;
|
|
312
|
+
role: Schema.optional<Schema.Literal<["user", "assistant", "tool"]>>;
|
|
313
|
+
contact: Schema.optional<import("@dxos/echo/internal").RefSchema<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
314
|
+
image?: string | undefined;
|
|
315
|
+
fullName?: string | undefined;
|
|
316
|
+
preferredName?: string | undefined;
|
|
317
|
+
nickname?: string | undefined;
|
|
318
|
+
organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
320
319
|
description?: string | undefined;
|
|
320
|
+
name?: string | undefined;
|
|
321
321
|
status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
322
322
|
image?: string | undefined;
|
|
323
323
|
website?: string | undefined;
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
value:
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
value:
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
value:
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
value:
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
}
|
|
362
|
-
|
|
324
|
+
location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
325
|
+
}> | undefined;
|
|
326
|
+
jobTitle?: string | undefined;
|
|
327
|
+
department?: string | undefined;
|
|
328
|
+
notes?: string | undefined;
|
|
329
|
+
emails?: {
|
|
330
|
+
readonly value: string;
|
|
331
|
+
readonly label?: string | undefined;
|
|
332
|
+
}[] | undefined;
|
|
333
|
+
identities?: {
|
|
334
|
+
readonly value: string;
|
|
335
|
+
readonly label?: string | undefined;
|
|
336
|
+
}[] | undefined;
|
|
337
|
+
phoneNumbers?: {
|
|
338
|
+
readonly value: string;
|
|
339
|
+
readonly label?: string | undefined;
|
|
340
|
+
}[] | undefined;
|
|
341
|
+
fields?: {
|
|
342
|
+
readonly value: string;
|
|
343
|
+
readonly label: string;
|
|
344
|
+
readonly category?: string | undefined;
|
|
345
|
+
}[] | undefined;
|
|
346
|
+
addresses?: {
|
|
347
|
+
readonly value: {
|
|
348
|
+
readonly street?: string | undefined;
|
|
349
|
+
readonly extended?: string | undefined;
|
|
350
|
+
readonly locality?: string | undefined;
|
|
351
|
+
readonly region?: string | undefined;
|
|
352
|
+
readonly postalCode?: string | undefined;
|
|
353
|
+
readonly postOfficeBoxNumber?: string | undefined;
|
|
354
|
+
readonly country?: string | undefined;
|
|
355
|
+
};
|
|
356
|
+
readonly label?: string | undefined;
|
|
357
|
+
}[] | undefined;
|
|
358
|
+
urls?: {
|
|
359
|
+
readonly value: string;
|
|
360
|
+
readonly label?: string | undefined;
|
|
361
|
+
}[] | undefined;
|
|
362
|
+
birthday?: string | undefined;
|
|
363
|
+
location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
364
|
+
}>>;
|
|
363
365
|
identityDid: Schema.optional<typeof Schema.String>;
|
|
364
366
|
identityKey: Schema.optional<typeof Schema.String>;
|
|
365
367
|
email: Schema.optional<typeof Schema.String>;
|
|
366
368
|
name: Schema.optional<typeof Schema.String>;
|
|
367
|
-
role: Schema.optional<Schema.Literal<["user", "assistant"]>>;
|
|
368
369
|
}>>;
|
|
369
370
|
blocks: Schema.mutable<Schema.Array$<Schema.Union<[Schema.mutable<Schema.TaggedStruct<"anchor", {
|
|
370
371
|
pending: Schema.optional<typeof Schema.Boolean>;
|
|
@@ -400,10 +401,7 @@ export declare const NormalizationOutput: Schema.Struct<{
|
|
|
400
401
|
signature: Schema.optional<typeof Schema.String>;
|
|
401
402
|
}>>, Schema.mutable<Schema.TaggedStruct<"reference", {
|
|
402
403
|
pending: Schema.optional<typeof Schema.Boolean>;
|
|
403
|
-
reference: import("@dxos/echo/
|
|
404
|
-
[x: string]: any;
|
|
405
|
-
id: string;
|
|
406
|
-
}, never>>;
|
|
404
|
+
reference: import("@dxos/echo/internal").RefSchema<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {}>;
|
|
407
405
|
}>>, Schema.mutable<Schema.TaggedStruct<"select", {
|
|
408
406
|
pending: Schema.optional<typeof Schema.Boolean>;
|
|
409
407
|
options: Schema.Array$<typeof Schema.String>;
|
|
@@ -438,12 +436,14 @@ export declare const NormalizationOutput: Schema.Struct<{
|
|
|
438
436
|
toolCallId: typeof Schema.String;
|
|
439
437
|
name: typeof Schema.String;
|
|
440
438
|
input: typeof Schema.String;
|
|
439
|
+
providerExecuted: typeof Schema.Boolean;
|
|
441
440
|
}>>, Schema.mutable<Schema.TaggedStruct<"toolResult", {
|
|
442
441
|
pending: Schema.optional<typeof Schema.Boolean>;
|
|
443
442
|
toolCallId: typeof Schema.String;
|
|
444
443
|
name: typeof Schema.String;
|
|
445
444
|
result: Schema.optional<typeof Schema.String>;
|
|
446
445
|
error: Schema.optional<typeof Schema.String>;
|
|
446
|
+
providerExecuted: typeof Schema.Boolean;
|
|
447
447
|
}>>, Schema.mutable<Schema.TaggedStruct<"transcript", {
|
|
448
448
|
pending: Schema.optional<typeof Schema.Boolean>;
|
|
449
449
|
started: typeof Schema.String;
|
|
@@ -456,6 +456,6 @@ export declare const NormalizationOutput: Schema.Struct<{
|
|
|
456
456
|
}>;
|
|
457
457
|
export interface NormalizationOutput extends Schema.Schema.Type<typeof NormalizationOutput> {
|
|
458
458
|
}
|
|
459
|
-
export declare const sentenceNormalization: import("@dxos/functions").FunctionDefinition<NormalizationInput, NormalizationOutput>;
|
|
459
|
+
export declare const sentenceNormalization: import("@dxos/functions").FunctionDefinition<NormalizationInput, NormalizationOutput, import("@dxos/functions").FunctionServices>;
|
|
460
460
|
export {};
|
|
461
461
|
//# sourceMappingURL=normalization.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalization.d.ts","sourceRoot":"","sources":["../../../../src/segments-normalization/normalization.ts"],"names":[],"mappings":"AAOA,OAAO,
|
|
1
|
+
{"version":3,"file":"normalization.d.ts","sourceRoot":"","sources":["../../../../src/segments-normalization/normalization.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAWxC,QAAA,MAAM,kBAAkB;;;;;;;iBAKK,CAAC;oBAA0C,CAAC;yBAK7C,CAAC;oBAA0C,CAAC;wBAEhD,CAAC;2BAE0B,CAAC;oBACjB,CAAC;sBAGxB,CAAC;qBAEA,CAAC;uBACN,CAAC;wBAA8C,CAAC;;oBAIrD,CAAC;sBAA4C,CAAC;iBAAuC,CAAC;kBAExD,CAAC;;8BACrB,CAAC;;sBACF,CAAC;;8BAEE,CAAC;;wBACmB,CAAC;;8BAET,CAAC;;kBAED,CAAC;;;iCAElB,CAAC;;qBAGC,CAAC;;mCAIL,CAAD;qCACuB,CAAC;qCAGrB,CAAV;mCAC4C,CAAC;uCACrC,CAAN;gDAKmB,CAAC;oCACW,CAAC;;8BAGhB,CAAC;;gBAKe,CAAC;;8BACE,CAAC;;oBAAuE,CAAC;oBAA0C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA1DxJ,CAAC;AAEF,MAAM,WAAW,kBAAmB,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,kBAAkB,CAAC;CAAG;AAE5F,eAAO,MAAM,kBAAkB;;;;;;;;qBAPF,CAAC;wBAA0C,CAAC;6BAK7C,CAAC;wBAA0C,CAAC;4BAEhD,CAAC;+BAE0B,CAAC;wBACjB,CAAC;0BAGxB,CAAC;yBAEA,CAAC;2BACN,CAAC;4BAA8C,CAAC;;wBAIrD,CAAC;0BAA4C,CAAC;qBAAuC,CAAC;sBAExD,CAAC;;kCACrB,CAAC;;0BACF,CAAC;;kCAEE,CAAC;;4BACmB,CAAC;;kCAET,CAAC;;sBAED,CAAC;;;qCAElB,CAAC;;yBAGC,CAAC;;uCAIL,CAAD;yCACuB,CAAC;yCAGrB,CAAV;uCAC4C,CAAC;2CACrC,CAAN;oDAKmB,CAAC;wCACW,CAAC;;kCAGhB,CAAC;;oBAKe,CAAC;;kCACE,CAAC;;wBAAuE,CAAC;wBAA0C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAjDvJ,CAAC;AACH,MAAM,WAAW,kBAAmB,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,kBAAkB,CAAC;CAAG;AAE5F,eAAO,MAAM,mBAAmB;;;;;;;;qBAfH,CAAC;wBAA0C,CAAC;6BAK7C,CAAC;wBAA0C,CAAC;4BAEhD,CAAC;+BAE0B,CAAC;wBACjB,CAAC;0BAGxB,CAAC;yBAEA,CAAC;2BACN,CAAC;4BAA8C,CAAC;;wBAIrD,CAAC;0BAA4C,CAAC;qBAAuC,CAAC;sBAExD,CAAC;;kCACrB,CAAC;;0BACF,CAAC;;kCAEE,CAAC;;4BACmB,CAAC;;kCAET,CAAC;;sBAED,CAAC;;;qCAElB,CAAC;;yBAGC,CAAC;;uCAIL,CAAD;yCACuB,CAAC;yCAGrB,CAAV;uCAC4C,CAAC;2CACrC,CAAN;oDAKmB,CAAC;wCACW,CAAC;;kCAGhB,CAAC;;oBAKe,CAAC;;kCACE,CAAC;;wBAAuE,CAAC;wBAA0C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA1CvJ,CAAC;AACH,MAAM,WAAW,mBAAoB,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,mBAAmB,CAAC;CAAG;AAE9F,eAAO,MAAM,qBAAqB,mIAmChC,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
export declare const getActorId: (actor:
|
|
1
|
+
import { type Actor } from '@dxos/types';
|
|
2
|
+
export declare const getActorId: (actor: Actor.Actor) => string;
|
|
3
3
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/segments-normalization/utils.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/segments-normalization/utils.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,eAAO,MAAM,UAAU,GAAI,OAAO,KAAK,CAAC,KAAK,WAE5C,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
2
|
import { type Queue } from '@dxos/client/echo';
|
|
3
3
|
import { type Key, Type } from '@dxos/echo';
|
|
4
4
|
import { type Space } from '@dxos/react-client/echo';
|
|
5
|
-
import {
|
|
5
|
+
import { type ContentBlock, Message } from '@dxos/types';
|
|
6
6
|
export declare const TestItem: Type.obj<Schema.Struct<{
|
|
7
7
|
title: Schema.SchemaClass<string, string, never>;
|
|
8
8
|
description: Schema.SchemaClass<string, string, never>;
|
|
9
9
|
}>>;
|
|
10
10
|
declare abstract class AbstractMessageBuilder {
|
|
11
|
-
abstract createMessage(numSegments?: number): Promise<
|
|
11
|
+
abstract createMessage(numSegments?: number): Promise<Message.Message>;
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
14
|
* Generator of transcript messages.
|
|
@@ -23,11 +23,11 @@ export declare class MessageBuilder extends AbstractMessageBuilder {
|
|
|
23
23
|
}[];
|
|
24
24
|
start: Date;
|
|
25
25
|
constructor(_space?: Space | undefined);
|
|
26
|
-
createMessage(numSegments?: number): Promise<
|
|
27
|
-
createBlock():
|
|
26
|
+
createMessage(numSegments?: number): Promise<Message.Message>;
|
|
27
|
+
createBlock(): ContentBlock.Transcript;
|
|
28
28
|
next(): Date;
|
|
29
29
|
}
|
|
30
|
-
type UseTestTranscriptionQueue = (space: Space | undefined, queueId?: Key.ObjectId, running?: boolean, interval?: number) => Queue<
|
|
30
|
+
type UseTestTranscriptionQueue = (space: Space | undefined, queueId?: Key.ObjectId, running?: boolean, interval?: number) => Queue<Message.Message> | undefined;
|
|
31
31
|
/**
|
|
32
32
|
* Test transcriptionqueue.
|
|
33
33
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../../src/testing/testing.ts"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../../src/testing/testing.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,OAAO,EAAU,KAAK,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAEvD,OAAO,EAAE,KAAK,GAAG,EAAY,IAAI,EAAE,MAAM,YAAY,CAAC;AAMtD,OAAO,EAAE,KAAK,KAAK,EAAY,MAAM,yBAAyB,CAAC;AAE/D,OAAO,EAAE,KAAK,YAAY,EAAE,OAAO,EAAwB,MAAM,aAAa,CAAC;AAI/E,eAAO,MAAM,QAAQ;;;GAcpB,CAAC;AAGF,uBAAe,sBAAsB;IACnC,QAAQ,CAAC,aAAa,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC;CACvE;AAED;;GAEG;AACH,qBAAa,cAAe,SAAQ,sBAAsB;IAW5C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC;IAVpC,MAAM,CAAC,QAAQ,CAAC,SAAS,iBAAwB;IAEjD,KAAK;;;;QAID;IAEJ,KAAK,OAAgD;gBAExB,MAAM,CAAC,EAAE,KAAK,YAAA;IAI5B,aAAa,CAAC,WAAW,SAAI,GAAG,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC;IAQvE,WAAW,IAAI,YAAY,CAAC,UAAU;IAkBtC,IAAI,IAAI,IAAI;CAIb;AAoDD,KAAK,yBAAyB,GAAG,CAC/B,KAAK,EAAE,KAAK,GAAG,SAAS,EACxB,OAAO,CAAC,EAAE,GAAG,CAAC,QAAQ,EACtB,OAAO,CAAC,EAAE,OAAO,EACjB,QAAQ,CAAC,EAAE,MAAM,KACd,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC;AAExC;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,yBAyBvC,CAAC;AAEF;;GAEG;AAEH,eAAO,MAAM,6CAA6C,EAAE,yBAoC3D,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Context, Resource } from '@dxos/context';
|
|
2
|
-
import { type
|
|
2
|
+
import { type ContentBlock } from '@dxos/types';
|
|
3
3
|
import { type AudioRecorder } from './audio-recorder';
|
|
4
4
|
export type TranscribeConfig = {
|
|
5
5
|
/**
|
|
@@ -19,7 +19,7 @@ export type TranscriberParams = {
|
|
|
19
19
|
* Callback to handle the transcribed segments, after all segment transformers are applied.
|
|
20
20
|
* @param segments - The transcribed segments.
|
|
21
21
|
*/
|
|
22
|
-
onSegments: (segments:
|
|
22
|
+
onSegments: (segments: ContentBlock.Transcript[]) => Promise<void>;
|
|
23
23
|
};
|
|
24
24
|
/**
|
|
25
25
|
* Handles transcription of audio chunks.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transcriber.d.ts","sourceRoot":"","sources":["../../../../src/transcriber/transcriber.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,OAAO,EAAkB,QAAQ,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"transcriber.d.ts","sourceRoot":"","sources":["../../../../src/transcriber/transcriber.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,OAAO,EAAkB,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGvE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAKhD,OAAO,EAAmB,KAAK,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAqCvE,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,2BAA2B,EAAE,MAAM,CAAC;IAEpC;;;OAGG;IACH,wBAAwB,EAAE,MAAM,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,gBAAgB,CAAC;IACzB,QAAQ,EAAE,aAAa,CAAC;IACxB;;;OAGG;IACH,UAAU,EAAE,CAAC,QAAQ,EAAE,YAAY,CAAC,UAAU,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACpE,CAAC;AAEF;;;;GAIG;AACH,qBAAa,WAAY,SAAQ,QAAQ;IACvC,OAAO,CAAC,YAAY,CAAoB;IACxC,OAAO,CAAC,kBAAkB,CAAK;IAE/B,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAoC;IAEjE,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAmB;IAC3C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAgB;IAC1C,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAkC;IAE9D,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,eAAe,CAAC,CAA2B;gBAEvC,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,iBAAiB;cAOtC,KAAK,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;cAQlC,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAOhD,oBAAoB,IAAI,IAAI;IAS5B,mBAAmB,IAAI,IAAI;IAU3B,OAAO,CAAC,eAAe;YAgBT,WAAW;IAoBzB,OAAO,CAAC,cAAc;YAOR,iBAAiB;YAejB,mBAAmB;IA+BjC,OAAO,CAAC,cAAc;CAkCvB"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Resource } from '@dxos/context';
|
|
2
2
|
import { type Queue } from '@dxos/echo-db';
|
|
3
3
|
import { type EdgeHttpClient } from '@dxos/react-edge-client';
|
|
4
|
-
import {
|
|
5
|
-
export type TranscriptMessageEnricher = (message:
|
|
4
|
+
import { Message } from '@dxos/types';
|
|
5
|
+
export type TranscriptMessageEnricher = (message: Message.Message) => Promise<Message.Message>;
|
|
6
6
|
export type TranscriptionManagerOptions = {
|
|
7
7
|
edgeClient: EdgeHttpClient;
|
|
8
8
|
/**
|
|
@@ -25,7 +25,7 @@ export declare class TranscriptionManager extends Resource {
|
|
|
25
25
|
constructor(options: TranscriptionManagerOptions);
|
|
26
26
|
/** @reactive */
|
|
27
27
|
get enabled(): boolean;
|
|
28
|
-
setQueue(queue: Queue<
|
|
28
|
+
setQueue(queue: Queue<Message.Message>): this;
|
|
29
29
|
setIdentityDid(did: string): this;
|
|
30
30
|
setRecording(recording?: boolean): this;
|
|
31
31
|
setEnabled(enabled: boolean): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transcription-manager.d.ts","sourceRoot":"","sources":["../../../../src/transcriber/transcription-manager.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,
|
|
1
|
+
{"version":3,"file":"transcription-manager.d.ts","sourceRoot":"","sources":["../../../../src/transcriber/transcription-manager.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAqB,OAAO,EAAE,MAAM,aAAa,CAAC;AAqBzD,MAAM,MAAM,yBAAyB,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC,OAAO,KAAK,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;AAE/F,MAAM,MAAM,2BAA2B,GAAG;IACxC,UAAU,EAAE,cAAc,CAAC;IAE3B;;OAEG;IACH,eAAe,CAAC,EAAE,yBAAyB,CAAC;CAC7C,CAAC;AAEF;;GAEG;AACH,qBAAa,oBAAqB,SAAQ,QAAQ;IAChD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAiB;IAC7C,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAA4B;IAC9D,OAAO,CAAC,iBAAiB,CAAC,CAA+B;IACzD,OAAO,CAAC,YAAY,CAAC,CAAqB;IAC1C,OAAO,CAAC,cAAc,CAAC,CAAkC;IACzD,OAAO,CAAC,YAAY,CAAC,CAA0B;IAC/C,OAAO,CAAC,MAAM,CAAC,CAAqC;IACpD,OAAO,CAAC,QAAQ,CAAiB;gBAErB,OAAO,EAAE,2BAA2B;IAMhD,gBAAgB;IAChB,IAAI,OAAO,YAEV;IAED,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI;IAK7C,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAOjC,YAAY,CAAC,SAAS,CAAC,EAAE,OAAO,GAAG,IAAI;IAajC,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAc3C,aAAa,CAAC,KAAK,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC;cASnC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;cAItB,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;YAIlC,wBAAwB;YA6BxB,gBAAgB;YAIhB,WAAW;CAiB1B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
2
|
declare const Create_base: Schema.TaggedClass<Create, `${string}/action/create`, {
|
|
3
3
|
readonly _tag: Schema.tag<`${string}/action/create`>;
|
|
4
4
|
} & {
|
|
@@ -10,7 +10,7 @@ declare const Create_base: Schema.TaggedClass<Create, `${string}/action/create`,
|
|
|
10
10
|
object: import("@dxos/echo/Type").obj<Schema.Struct<{
|
|
11
11
|
started: Schema.optional<typeof Schema.String>;
|
|
12
12
|
ended: Schema.optional<typeof Schema.String>;
|
|
13
|
-
queue: import("@dxos/echo/
|
|
13
|
+
queue: import("@dxos/echo/internal").RefSchema<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>>;
|
|
14
14
|
}>>;
|
|
15
15
|
}>;
|
|
16
16
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TranscriptAction.d.ts","sourceRoot":"","sources":["../../../../src/types/TranscriptAction.ts"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"TranscriptAction.d.ts","sourceRoot":"","sources":["../../../../src/types/TranscriptAction.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;;;;;;;;;;;;;;;;AAOxC;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAQ1B;CAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,gBAAgB,MAAM,oBAAoB,CAAC;AACvD,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,gBAAgB,MAAM,oBAAoB,CAAC;AACvD,cAAc,SAAS,CAAC"}
|