@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
|
@@ -0,0 +1,905 @@
|
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
|
+
import { AiService } from '@dxos/ai';
|
|
3
|
+
import { Database } from '@dxos/echo';
|
|
4
|
+
import { QueueService } from '@dxos/functions';
|
|
5
|
+
import { Operation } from '@dxos/operation';
|
|
6
|
+
export declare const Create: Operation.Definition<{
|
|
7
|
+
readonly name?: string | undefined;
|
|
8
|
+
readonly space: import("@dxos/client-protocol").Space;
|
|
9
|
+
}, {
|
|
10
|
+
readonly object: import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
11
|
+
readonly started?: string | undefined;
|
|
12
|
+
readonly ended?: string | undefined;
|
|
13
|
+
readonly queue: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>>;
|
|
14
|
+
};
|
|
15
|
+
}, never>;
|
|
16
|
+
export declare const MessageWithRangeId: Schema.extend<import("@dxos/echo/Type").Obj<{
|
|
17
|
+
readonly id: string;
|
|
18
|
+
readonly parentMessage?: string | undefined;
|
|
19
|
+
readonly created: string;
|
|
20
|
+
readonly sender: {
|
|
21
|
+
readonly name?: string | undefined;
|
|
22
|
+
readonly role?: "user" | "assistant" | "tool" | undefined;
|
|
23
|
+
readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
24
|
+
readonly image?: string | undefined;
|
|
25
|
+
readonly fullName?: string | undefined;
|
|
26
|
+
readonly preferredName?: string | undefined;
|
|
27
|
+
readonly nickname?: string | undefined;
|
|
28
|
+
readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
29
|
+
readonly description?: string | undefined;
|
|
30
|
+
readonly name?: string | undefined;
|
|
31
|
+
readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
32
|
+
readonly image?: string | undefined;
|
|
33
|
+
readonly website?: string | undefined;
|
|
34
|
+
} & {
|
|
35
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
36
|
+
}> | undefined;
|
|
37
|
+
readonly jobTitle?: string | undefined;
|
|
38
|
+
readonly department?: string | undefined;
|
|
39
|
+
readonly notes?: string | undefined;
|
|
40
|
+
readonly emails?: readonly {
|
|
41
|
+
readonly value: string;
|
|
42
|
+
readonly label?: string | undefined;
|
|
43
|
+
}[] | undefined;
|
|
44
|
+
readonly identities?: readonly {
|
|
45
|
+
readonly value: string;
|
|
46
|
+
readonly label?: string | undefined;
|
|
47
|
+
}[] | undefined;
|
|
48
|
+
readonly phoneNumbers?: readonly {
|
|
49
|
+
readonly value: string;
|
|
50
|
+
readonly label?: string | undefined;
|
|
51
|
+
}[] | undefined;
|
|
52
|
+
readonly fields?: readonly {
|
|
53
|
+
readonly value: string;
|
|
54
|
+
readonly label: string;
|
|
55
|
+
readonly category?: string | undefined;
|
|
56
|
+
}[] | undefined;
|
|
57
|
+
readonly addresses?: readonly {
|
|
58
|
+
readonly value: {
|
|
59
|
+
readonly street?: string | undefined;
|
|
60
|
+
readonly extended?: string | undefined;
|
|
61
|
+
readonly locality?: string | undefined;
|
|
62
|
+
readonly region?: string | undefined;
|
|
63
|
+
readonly postalCode?: string | undefined;
|
|
64
|
+
readonly postOfficeBoxNumber?: string | undefined;
|
|
65
|
+
readonly country?: string | undefined;
|
|
66
|
+
};
|
|
67
|
+
readonly label?: string | undefined;
|
|
68
|
+
}[] | undefined;
|
|
69
|
+
readonly urls?: readonly {
|
|
70
|
+
readonly value: string;
|
|
71
|
+
readonly label?: string | undefined;
|
|
72
|
+
}[] | undefined;
|
|
73
|
+
readonly birthday?: string | undefined;
|
|
74
|
+
} & {
|
|
75
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
76
|
+
}> | undefined;
|
|
77
|
+
readonly identityDid?: string | undefined;
|
|
78
|
+
readonly identityKey?: string | undefined;
|
|
79
|
+
readonly email?: string | undefined;
|
|
80
|
+
};
|
|
81
|
+
readonly blocks: readonly ({
|
|
82
|
+
readonly pending?: boolean | undefined;
|
|
83
|
+
readonly text: string;
|
|
84
|
+
readonly mimeType?: string | undefined;
|
|
85
|
+
readonly disposition?: string | undefined;
|
|
86
|
+
readonly _tag: "text";
|
|
87
|
+
} | {
|
|
88
|
+
readonly pending?: boolean | undefined;
|
|
89
|
+
readonly _tag: "reasoning";
|
|
90
|
+
readonly reasoningText?: string | undefined;
|
|
91
|
+
readonly redactedText?: string | undefined;
|
|
92
|
+
readonly signature?: string | undefined;
|
|
93
|
+
} | {
|
|
94
|
+
readonly name: string;
|
|
95
|
+
readonly pending?: boolean | undefined;
|
|
96
|
+
readonly _tag: "toolCall";
|
|
97
|
+
readonly toolCallId: string;
|
|
98
|
+
readonly input: string;
|
|
99
|
+
readonly providerExecuted: boolean;
|
|
100
|
+
} | {
|
|
101
|
+
readonly name: string;
|
|
102
|
+
readonly pending?: boolean | undefined;
|
|
103
|
+
readonly _tag: "toolResult";
|
|
104
|
+
readonly toolCallId: string;
|
|
105
|
+
readonly providerExecuted: boolean;
|
|
106
|
+
readonly result?: string | undefined;
|
|
107
|
+
readonly error?: string | undefined;
|
|
108
|
+
} | {
|
|
109
|
+
readonly pending?: boolean | undefined;
|
|
110
|
+
readonly mimeType?: string | undefined;
|
|
111
|
+
readonly _tag: "stats";
|
|
112
|
+
readonly message?: string | undefined;
|
|
113
|
+
readonly model?: string | undefined;
|
|
114
|
+
readonly usage?: {
|
|
115
|
+
readonly inputTokens?: number | undefined;
|
|
116
|
+
readonly outputTokens?: number | undefined;
|
|
117
|
+
readonly totalTokens?: number | undefined;
|
|
118
|
+
} | undefined;
|
|
119
|
+
readonly toolCalls?: number | undefined;
|
|
120
|
+
readonly errors?: number | undefined;
|
|
121
|
+
readonly duration?: number | undefined;
|
|
122
|
+
} | {
|
|
123
|
+
readonly source?: {
|
|
124
|
+
readonly type: "base64";
|
|
125
|
+
readonly mediaType: string;
|
|
126
|
+
readonly data: string;
|
|
127
|
+
} | {
|
|
128
|
+
readonly type: "http";
|
|
129
|
+
readonly url: string;
|
|
130
|
+
} | undefined;
|
|
131
|
+
readonly id?: string | undefined;
|
|
132
|
+
readonly pending?: boolean | undefined;
|
|
133
|
+
readonly _tag: "image";
|
|
134
|
+
} | {
|
|
135
|
+
readonly name?: string | undefined;
|
|
136
|
+
readonly pending?: boolean | undefined;
|
|
137
|
+
readonly _tag: "file";
|
|
138
|
+
readonly mediaType?: string | undefined;
|
|
139
|
+
readonly url: string;
|
|
140
|
+
} | {
|
|
141
|
+
readonly pending?: boolean | undefined;
|
|
142
|
+
readonly _tag: "reference";
|
|
143
|
+
readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown>;
|
|
144
|
+
} | {
|
|
145
|
+
readonly pending?: boolean | undefined;
|
|
146
|
+
readonly text: string;
|
|
147
|
+
readonly _tag: "transcript";
|
|
148
|
+
readonly started: string;
|
|
149
|
+
} | {
|
|
150
|
+
readonly pending?: boolean | undefined;
|
|
151
|
+
readonly _tag: "status";
|
|
152
|
+
readonly statusText: string;
|
|
153
|
+
} | {
|
|
154
|
+
readonly pending?: boolean | undefined;
|
|
155
|
+
readonly text: string;
|
|
156
|
+
readonly _tag: "suggestion";
|
|
157
|
+
} | {
|
|
158
|
+
readonly pending?: boolean | undefined;
|
|
159
|
+
readonly _tag: "select";
|
|
160
|
+
readonly options: string[];
|
|
161
|
+
} | {
|
|
162
|
+
readonly version: unknown;
|
|
163
|
+
readonly pending?: boolean | undefined;
|
|
164
|
+
readonly _tag: "anchor";
|
|
165
|
+
readonly objectId: string;
|
|
166
|
+
} | {
|
|
167
|
+
readonly pending?: boolean | undefined;
|
|
168
|
+
readonly text: string;
|
|
169
|
+
readonly _tag: "proposal";
|
|
170
|
+
} | {
|
|
171
|
+
readonly pending?: boolean | undefined;
|
|
172
|
+
readonly _tag: "summary";
|
|
173
|
+
readonly content: string;
|
|
174
|
+
} | {
|
|
175
|
+
readonly pending?: boolean | undefined;
|
|
176
|
+
readonly _tag: "toolkit";
|
|
177
|
+
} | {
|
|
178
|
+
readonly pending?: boolean | undefined;
|
|
179
|
+
readonly disposition?: string | undefined;
|
|
180
|
+
readonly _tag: "json";
|
|
181
|
+
readonly data: string;
|
|
182
|
+
})[];
|
|
183
|
+
readonly properties?: {
|
|
184
|
+
readonly [x: string]: any;
|
|
185
|
+
} | undefined;
|
|
186
|
+
}, Schema.Struct.Fields>, Schema.Struct<{
|
|
187
|
+
rangeId: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
188
|
+
}>>;
|
|
189
|
+
export type MessageWithRangeIdType = Schema.Schema.Type<typeof MessageWithRangeId>;
|
|
190
|
+
export declare const Open: Operation.Definition<{
|
|
191
|
+
readonly transcript: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
192
|
+
readonly started?: string | undefined;
|
|
193
|
+
readonly ended?: string | undefined;
|
|
194
|
+
readonly queue: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>>;
|
|
195
|
+
}>;
|
|
196
|
+
}, {
|
|
197
|
+
readonly content: string;
|
|
198
|
+
}, Database.Service | QueueService>;
|
|
199
|
+
export declare const Summarize: Operation.Definition<{
|
|
200
|
+
readonly transcript: string;
|
|
201
|
+
readonly notes?: string | undefined;
|
|
202
|
+
}, {
|
|
203
|
+
readonly summary: string;
|
|
204
|
+
}, AiService.AiService>;
|
|
205
|
+
export declare const SentenceNormalizationInput: Schema.Struct<{
|
|
206
|
+
messages: Schema.Array$<Schema.extend<import("@dxos/echo/Type").Obj<{
|
|
207
|
+
readonly id: string;
|
|
208
|
+
readonly parentMessage?: string | undefined;
|
|
209
|
+
readonly created: string;
|
|
210
|
+
readonly sender: {
|
|
211
|
+
readonly name?: string | undefined;
|
|
212
|
+
readonly role?: "user" | "assistant" | "tool" | undefined;
|
|
213
|
+
readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
214
|
+
readonly image?: string | undefined;
|
|
215
|
+
readonly fullName?: string | undefined;
|
|
216
|
+
readonly preferredName?: string | undefined;
|
|
217
|
+
readonly nickname?: string | undefined;
|
|
218
|
+
readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
219
|
+
readonly description?: string | undefined;
|
|
220
|
+
readonly name?: string | undefined;
|
|
221
|
+
readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
222
|
+
readonly image?: string | undefined;
|
|
223
|
+
readonly website?: string | undefined;
|
|
224
|
+
} & {
|
|
225
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
226
|
+
}> | undefined;
|
|
227
|
+
readonly jobTitle?: string | undefined;
|
|
228
|
+
readonly department?: string | undefined;
|
|
229
|
+
readonly notes?: string | undefined;
|
|
230
|
+
readonly emails?: readonly {
|
|
231
|
+
readonly value: string;
|
|
232
|
+
readonly label?: string | undefined;
|
|
233
|
+
}[] | undefined;
|
|
234
|
+
readonly identities?: readonly {
|
|
235
|
+
readonly value: string;
|
|
236
|
+
readonly label?: string | undefined;
|
|
237
|
+
}[] | undefined;
|
|
238
|
+
readonly phoneNumbers?: readonly {
|
|
239
|
+
readonly value: string;
|
|
240
|
+
readonly label?: string | undefined;
|
|
241
|
+
}[] | undefined;
|
|
242
|
+
readonly fields?: readonly {
|
|
243
|
+
readonly value: string;
|
|
244
|
+
readonly label: string;
|
|
245
|
+
readonly category?: string | undefined;
|
|
246
|
+
}[] | undefined;
|
|
247
|
+
readonly addresses?: readonly {
|
|
248
|
+
readonly value: {
|
|
249
|
+
readonly street?: string | undefined;
|
|
250
|
+
readonly extended?: string | undefined;
|
|
251
|
+
readonly locality?: string | undefined;
|
|
252
|
+
readonly region?: string | undefined;
|
|
253
|
+
readonly postalCode?: string | undefined;
|
|
254
|
+
readonly postOfficeBoxNumber?: string | undefined;
|
|
255
|
+
readonly country?: string | undefined;
|
|
256
|
+
};
|
|
257
|
+
readonly label?: string | undefined;
|
|
258
|
+
}[] | undefined;
|
|
259
|
+
readonly urls?: readonly {
|
|
260
|
+
readonly value: string;
|
|
261
|
+
readonly label?: string | undefined;
|
|
262
|
+
}[] | undefined;
|
|
263
|
+
readonly birthday?: string | undefined;
|
|
264
|
+
} & {
|
|
265
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
266
|
+
}> | undefined;
|
|
267
|
+
readonly identityDid?: string | undefined;
|
|
268
|
+
readonly identityKey?: string | undefined;
|
|
269
|
+
readonly email?: string | undefined;
|
|
270
|
+
};
|
|
271
|
+
readonly blocks: readonly ({
|
|
272
|
+
readonly pending?: boolean | undefined;
|
|
273
|
+
readonly text: string;
|
|
274
|
+
readonly mimeType?: string | undefined;
|
|
275
|
+
readonly disposition?: string | undefined;
|
|
276
|
+
readonly _tag: "text";
|
|
277
|
+
} | {
|
|
278
|
+
readonly pending?: boolean | undefined;
|
|
279
|
+
readonly _tag: "reasoning";
|
|
280
|
+
readonly reasoningText?: string | undefined;
|
|
281
|
+
readonly redactedText?: string | undefined;
|
|
282
|
+
readonly signature?: string | undefined;
|
|
283
|
+
} | {
|
|
284
|
+
readonly name: string;
|
|
285
|
+
readonly pending?: boolean | undefined;
|
|
286
|
+
readonly _tag: "toolCall";
|
|
287
|
+
readonly toolCallId: string;
|
|
288
|
+
readonly input: string;
|
|
289
|
+
readonly providerExecuted: boolean;
|
|
290
|
+
} | {
|
|
291
|
+
readonly name: string;
|
|
292
|
+
readonly pending?: boolean | undefined;
|
|
293
|
+
readonly _tag: "toolResult";
|
|
294
|
+
readonly toolCallId: string;
|
|
295
|
+
readonly providerExecuted: boolean;
|
|
296
|
+
readonly result?: string | undefined;
|
|
297
|
+
readonly error?: string | undefined;
|
|
298
|
+
} | {
|
|
299
|
+
readonly pending?: boolean | undefined;
|
|
300
|
+
readonly mimeType?: string | undefined;
|
|
301
|
+
readonly _tag: "stats";
|
|
302
|
+
readonly message?: string | undefined;
|
|
303
|
+
readonly model?: string | undefined;
|
|
304
|
+
readonly usage?: {
|
|
305
|
+
readonly inputTokens?: number | undefined;
|
|
306
|
+
readonly outputTokens?: number | undefined;
|
|
307
|
+
readonly totalTokens?: number | undefined;
|
|
308
|
+
} | undefined;
|
|
309
|
+
readonly toolCalls?: number | undefined;
|
|
310
|
+
readonly errors?: number | undefined;
|
|
311
|
+
readonly duration?: number | undefined;
|
|
312
|
+
} | {
|
|
313
|
+
readonly source?: {
|
|
314
|
+
readonly type: "base64";
|
|
315
|
+
readonly mediaType: string;
|
|
316
|
+
readonly data: string;
|
|
317
|
+
} | {
|
|
318
|
+
readonly type: "http";
|
|
319
|
+
readonly url: string;
|
|
320
|
+
} | undefined;
|
|
321
|
+
readonly id?: string | undefined;
|
|
322
|
+
readonly pending?: boolean | undefined;
|
|
323
|
+
readonly _tag: "image";
|
|
324
|
+
} | {
|
|
325
|
+
readonly name?: string | undefined;
|
|
326
|
+
readonly pending?: boolean | undefined;
|
|
327
|
+
readonly _tag: "file";
|
|
328
|
+
readonly mediaType?: string | undefined;
|
|
329
|
+
readonly url: string;
|
|
330
|
+
} | {
|
|
331
|
+
readonly pending?: boolean | undefined;
|
|
332
|
+
readonly _tag: "reference";
|
|
333
|
+
readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown>;
|
|
334
|
+
} | {
|
|
335
|
+
readonly pending?: boolean | undefined;
|
|
336
|
+
readonly text: string;
|
|
337
|
+
readonly _tag: "transcript";
|
|
338
|
+
readonly started: string;
|
|
339
|
+
} | {
|
|
340
|
+
readonly pending?: boolean | undefined;
|
|
341
|
+
readonly _tag: "status";
|
|
342
|
+
readonly statusText: string;
|
|
343
|
+
} | {
|
|
344
|
+
readonly pending?: boolean | undefined;
|
|
345
|
+
readonly text: string;
|
|
346
|
+
readonly _tag: "suggestion";
|
|
347
|
+
} | {
|
|
348
|
+
readonly pending?: boolean | undefined;
|
|
349
|
+
readonly _tag: "select";
|
|
350
|
+
readonly options: string[];
|
|
351
|
+
} | {
|
|
352
|
+
readonly version: unknown;
|
|
353
|
+
readonly pending?: boolean | undefined;
|
|
354
|
+
readonly _tag: "anchor";
|
|
355
|
+
readonly objectId: string;
|
|
356
|
+
} | {
|
|
357
|
+
readonly pending?: boolean | undefined;
|
|
358
|
+
readonly text: string;
|
|
359
|
+
readonly _tag: "proposal";
|
|
360
|
+
} | {
|
|
361
|
+
readonly pending?: boolean | undefined;
|
|
362
|
+
readonly _tag: "summary";
|
|
363
|
+
readonly content: string;
|
|
364
|
+
} | {
|
|
365
|
+
readonly pending?: boolean | undefined;
|
|
366
|
+
readonly _tag: "toolkit";
|
|
367
|
+
} | {
|
|
368
|
+
readonly pending?: boolean | undefined;
|
|
369
|
+
readonly disposition?: string | undefined;
|
|
370
|
+
readonly _tag: "json";
|
|
371
|
+
readonly data: string;
|
|
372
|
+
})[];
|
|
373
|
+
readonly properties?: {
|
|
374
|
+
readonly [x: string]: any;
|
|
375
|
+
} | undefined;
|
|
376
|
+
}, Schema.Struct.Fields>, Schema.Struct<{
|
|
377
|
+
rangeId: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
378
|
+
}>>>;
|
|
379
|
+
}>;
|
|
380
|
+
export type SentenceNormalizationInputType = Schema.Schema.Type<typeof SentenceNormalizationInput>;
|
|
381
|
+
export declare const SentenceNormalizationOutput: Schema.Struct<{
|
|
382
|
+
sentences: Schema.mutable<Schema.Array$<Schema.mutable<Schema.extend<import("@dxos/echo/Type").Obj<{
|
|
383
|
+
readonly id: string;
|
|
384
|
+
readonly parentMessage?: string | undefined;
|
|
385
|
+
readonly created: string;
|
|
386
|
+
readonly sender: {
|
|
387
|
+
readonly name?: string | undefined;
|
|
388
|
+
readonly role?: "user" | "assistant" | "tool" | undefined;
|
|
389
|
+
readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
390
|
+
readonly image?: string | undefined;
|
|
391
|
+
readonly fullName?: string | undefined;
|
|
392
|
+
readonly preferredName?: string | undefined;
|
|
393
|
+
readonly nickname?: string | undefined;
|
|
394
|
+
readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
395
|
+
readonly description?: string | undefined;
|
|
396
|
+
readonly name?: string | undefined;
|
|
397
|
+
readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
398
|
+
readonly image?: string | undefined;
|
|
399
|
+
readonly website?: string | undefined;
|
|
400
|
+
} & {
|
|
401
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
402
|
+
}> | undefined;
|
|
403
|
+
readonly jobTitle?: string | undefined;
|
|
404
|
+
readonly department?: string | undefined;
|
|
405
|
+
readonly notes?: string | undefined;
|
|
406
|
+
readonly emails?: readonly {
|
|
407
|
+
readonly value: string;
|
|
408
|
+
readonly label?: string | undefined;
|
|
409
|
+
}[] | undefined;
|
|
410
|
+
readonly identities?: readonly {
|
|
411
|
+
readonly value: string;
|
|
412
|
+
readonly label?: string | undefined;
|
|
413
|
+
}[] | undefined;
|
|
414
|
+
readonly phoneNumbers?: readonly {
|
|
415
|
+
readonly value: string;
|
|
416
|
+
readonly label?: string | undefined;
|
|
417
|
+
}[] | undefined;
|
|
418
|
+
readonly fields?: readonly {
|
|
419
|
+
readonly value: string;
|
|
420
|
+
readonly label: string;
|
|
421
|
+
readonly category?: string | undefined;
|
|
422
|
+
}[] | undefined;
|
|
423
|
+
readonly addresses?: readonly {
|
|
424
|
+
readonly value: {
|
|
425
|
+
readonly street?: string | undefined;
|
|
426
|
+
readonly extended?: string | undefined;
|
|
427
|
+
readonly locality?: string | undefined;
|
|
428
|
+
readonly region?: string | undefined;
|
|
429
|
+
readonly postalCode?: string | undefined;
|
|
430
|
+
readonly postOfficeBoxNumber?: string | undefined;
|
|
431
|
+
readonly country?: string | undefined;
|
|
432
|
+
};
|
|
433
|
+
readonly label?: string | undefined;
|
|
434
|
+
}[] | undefined;
|
|
435
|
+
readonly urls?: readonly {
|
|
436
|
+
readonly value: string;
|
|
437
|
+
readonly label?: string | undefined;
|
|
438
|
+
}[] | undefined;
|
|
439
|
+
readonly birthday?: string | undefined;
|
|
440
|
+
} & {
|
|
441
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
442
|
+
}> | undefined;
|
|
443
|
+
readonly identityDid?: string | undefined;
|
|
444
|
+
readonly identityKey?: string | undefined;
|
|
445
|
+
readonly email?: string | undefined;
|
|
446
|
+
};
|
|
447
|
+
readonly blocks: readonly ({
|
|
448
|
+
readonly pending?: boolean | undefined;
|
|
449
|
+
readonly text: string;
|
|
450
|
+
readonly mimeType?: string | undefined;
|
|
451
|
+
readonly disposition?: string | undefined;
|
|
452
|
+
readonly _tag: "text";
|
|
453
|
+
} | {
|
|
454
|
+
readonly pending?: boolean | undefined;
|
|
455
|
+
readonly _tag: "reasoning";
|
|
456
|
+
readonly reasoningText?: string | undefined;
|
|
457
|
+
readonly redactedText?: string | undefined;
|
|
458
|
+
readonly signature?: string | undefined;
|
|
459
|
+
} | {
|
|
460
|
+
readonly name: string;
|
|
461
|
+
readonly pending?: boolean | undefined;
|
|
462
|
+
readonly _tag: "toolCall";
|
|
463
|
+
readonly toolCallId: string;
|
|
464
|
+
readonly input: string;
|
|
465
|
+
readonly providerExecuted: boolean;
|
|
466
|
+
} | {
|
|
467
|
+
readonly name: string;
|
|
468
|
+
readonly pending?: boolean | undefined;
|
|
469
|
+
readonly _tag: "toolResult";
|
|
470
|
+
readonly toolCallId: string;
|
|
471
|
+
readonly providerExecuted: boolean;
|
|
472
|
+
readonly result?: string | undefined;
|
|
473
|
+
readonly error?: string | undefined;
|
|
474
|
+
} | {
|
|
475
|
+
readonly pending?: boolean | undefined;
|
|
476
|
+
readonly mimeType?: string | undefined;
|
|
477
|
+
readonly _tag: "stats";
|
|
478
|
+
readonly message?: string | undefined;
|
|
479
|
+
readonly model?: string | undefined;
|
|
480
|
+
readonly usage?: {
|
|
481
|
+
readonly inputTokens?: number | undefined;
|
|
482
|
+
readonly outputTokens?: number | undefined;
|
|
483
|
+
readonly totalTokens?: number | undefined;
|
|
484
|
+
} | undefined;
|
|
485
|
+
readonly toolCalls?: number | undefined;
|
|
486
|
+
readonly errors?: number | undefined;
|
|
487
|
+
readonly duration?: number | undefined;
|
|
488
|
+
} | {
|
|
489
|
+
readonly source?: {
|
|
490
|
+
readonly type: "base64";
|
|
491
|
+
readonly mediaType: string;
|
|
492
|
+
readonly data: string;
|
|
493
|
+
} | {
|
|
494
|
+
readonly type: "http";
|
|
495
|
+
readonly url: string;
|
|
496
|
+
} | undefined;
|
|
497
|
+
readonly id?: string | undefined;
|
|
498
|
+
readonly pending?: boolean | undefined;
|
|
499
|
+
readonly _tag: "image";
|
|
500
|
+
} | {
|
|
501
|
+
readonly name?: string | undefined;
|
|
502
|
+
readonly pending?: boolean | undefined;
|
|
503
|
+
readonly _tag: "file";
|
|
504
|
+
readonly mediaType?: string | undefined;
|
|
505
|
+
readonly url: string;
|
|
506
|
+
} | {
|
|
507
|
+
readonly pending?: boolean | undefined;
|
|
508
|
+
readonly _tag: "reference";
|
|
509
|
+
readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown>;
|
|
510
|
+
} | {
|
|
511
|
+
readonly pending?: boolean | undefined;
|
|
512
|
+
readonly text: string;
|
|
513
|
+
readonly _tag: "transcript";
|
|
514
|
+
readonly started: string;
|
|
515
|
+
} | {
|
|
516
|
+
readonly pending?: boolean | undefined;
|
|
517
|
+
readonly _tag: "status";
|
|
518
|
+
readonly statusText: string;
|
|
519
|
+
} | {
|
|
520
|
+
readonly pending?: boolean | undefined;
|
|
521
|
+
readonly text: string;
|
|
522
|
+
readonly _tag: "suggestion";
|
|
523
|
+
} | {
|
|
524
|
+
readonly pending?: boolean | undefined;
|
|
525
|
+
readonly _tag: "select";
|
|
526
|
+
readonly options: string[];
|
|
527
|
+
} | {
|
|
528
|
+
readonly version: unknown;
|
|
529
|
+
readonly pending?: boolean | undefined;
|
|
530
|
+
readonly _tag: "anchor";
|
|
531
|
+
readonly objectId: string;
|
|
532
|
+
} | {
|
|
533
|
+
readonly pending?: boolean | undefined;
|
|
534
|
+
readonly text: string;
|
|
535
|
+
readonly _tag: "proposal";
|
|
536
|
+
} | {
|
|
537
|
+
readonly pending?: boolean | undefined;
|
|
538
|
+
readonly _tag: "summary";
|
|
539
|
+
readonly content: string;
|
|
540
|
+
} | {
|
|
541
|
+
readonly pending?: boolean | undefined;
|
|
542
|
+
readonly _tag: "toolkit";
|
|
543
|
+
} | {
|
|
544
|
+
readonly pending?: boolean | undefined;
|
|
545
|
+
readonly disposition?: string | undefined;
|
|
546
|
+
readonly _tag: "json";
|
|
547
|
+
readonly data: string;
|
|
548
|
+
})[];
|
|
549
|
+
readonly properties?: {
|
|
550
|
+
readonly [x: string]: any;
|
|
551
|
+
} | undefined;
|
|
552
|
+
}, Schema.Struct.Fields>, Schema.Struct<{
|
|
553
|
+
rangeId: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
554
|
+
}>>>>>;
|
|
555
|
+
}>;
|
|
556
|
+
export declare const SentenceNormalization: Operation.Definition<{
|
|
557
|
+
readonly messages: readonly (import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
558
|
+
readonly id: string;
|
|
559
|
+
readonly parentMessage?: string | undefined;
|
|
560
|
+
readonly created: string;
|
|
561
|
+
readonly sender: {
|
|
562
|
+
readonly name?: string | undefined;
|
|
563
|
+
readonly role?: "user" | "assistant" | "tool" | undefined;
|
|
564
|
+
readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
565
|
+
readonly image?: string | undefined;
|
|
566
|
+
readonly fullName?: string | undefined;
|
|
567
|
+
readonly preferredName?: string | undefined;
|
|
568
|
+
readonly nickname?: string | undefined;
|
|
569
|
+
readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
570
|
+
readonly description?: string | undefined;
|
|
571
|
+
readonly name?: string | undefined;
|
|
572
|
+
readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
573
|
+
readonly image?: string | undefined;
|
|
574
|
+
readonly website?: string | undefined;
|
|
575
|
+
} & {
|
|
576
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
577
|
+
}> | undefined;
|
|
578
|
+
readonly jobTitle?: string | undefined;
|
|
579
|
+
readonly department?: string | undefined;
|
|
580
|
+
readonly notes?: string | undefined;
|
|
581
|
+
readonly emails?: readonly {
|
|
582
|
+
readonly value: string;
|
|
583
|
+
readonly label?: string | undefined;
|
|
584
|
+
}[] | undefined;
|
|
585
|
+
readonly identities?: readonly {
|
|
586
|
+
readonly value: string;
|
|
587
|
+
readonly label?: string | undefined;
|
|
588
|
+
}[] | undefined;
|
|
589
|
+
readonly phoneNumbers?: readonly {
|
|
590
|
+
readonly value: string;
|
|
591
|
+
readonly label?: string | undefined;
|
|
592
|
+
}[] | undefined;
|
|
593
|
+
readonly fields?: readonly {
|
|
594
|
+
readonly value: string;
|
|
595
|
+
readonly label: string;
|
|
596
|
+
readonly category?: string | undefined;
|
|
597
|
+
}[] | undefined;
|
|
598
|
+
readonly addresses?: readonly {
|
|
599
|
+
readonly value: {
|
|
600
|
+
readonly street?: string | undefined;
|
|
601
|
+
readonly extended?: string | undefined;
|
|
602
|
+
readonly locality?: string | undefined;
|
|
603
|
+
readonly region?: string | undefined;
|
|
604
|
+
readonly postalCode?: string | undefined;
|
|
605
|
+
readonly postOfficeBoxNumber?: string | undefined;
|
|
606
|
+
readonly country?: string | undefined;
|
|
607
|
+
};
|
|
608
|
+
readonly label?: string | undefined;
|
|
609
|
+
}[] | undefined;
|
|
610
|
+
readonly urls?: readonly {
|
|
611
|
+
readonly value: string;
|
|
612
|
+
readonly label?: string | undefined;
|
|
613
|
+
}[] | undefined;
|
|
614
|
+
readonly birthday?: string | undefined;
|
|
615
|
+
} & {
|
|
616
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
617
|
+
}> | undefined;
|
|
618
|
+
readonly identityDid?: string | undefined;
|
|
619
|
+
readonly identityKey?: string | undefined;
|
|
620
|
+
readonly email?: string | undefined;
|
|
621
|
+
};
|
|
622
|
+
readonly blocks: readonly ({
|
|
623
|
+
readonly pending?: boolean | undefined;
|
|
624
|
+
readonly text: string;
|
|
625
|
+
readonly mimeType?: string | undefined;
|
|
626
|
+
readonly disposition?: string | undefined;
|
|
627
|
+
readonly _tag: "text";
|
|
628
|
+
} | {
|
|
629
|
+
readonly pending?: boolean | undefined;
|
|
630
|
+
readonly _tag: "reasoning";
|
|
631
|
+
readonly reasoningText?: string | undefined;
|
|
632
|
+
readonly redactedText?: string | undefined;
|
|
633
|
+
readonly signature?: string | undefined;
|
|
634
|
+
} | {
|
|
635
|
+
readonly name: string;
|
|
636
|
+
readonly pending?: boolean | undefined;
|
|
637
|
+
readonly _tag: "toolCall";
|
|
638
|
+
readonly toolCallId: string;
|
|
639
|
+
readonly input: string;
|
|
640
|
+
readonly providerExecuted: boolean;
|
|
641
|
+
} | {
|
|
642
|
+
readonly name: string;
|
|
643
|
+
readonly pending?: boolean | undefined;
|
|
644
|
+
readonly _tag: "toolResult";
|
|
645
|
+
readonly toolCallId: string;
|
|
646
|
+
readonly providerExecuted: boolean;
|
|
647
|
+
readonly result?: string | undefined;
|
|
648
|
+
readonly error?: string | undefined;
|
|
649
|
+
} | {
|
|
650
|
+
readonly pending?: boolean | undefined;
|
|
651
|
+
readonly mimeType?: string | undefined;
|
|
652
|
+
readonly _tag: "stats";
|
|
653
|
+
readonly message?: string | undefined;
|
|
654
|
+
readonly model?: string | undefined;
|
|
655
|
+
readonly usage?: {
|
|
656
|
+
readonly inputTokens?: number | undefined;
|
|
657
|
+
readonly outputTokens?: number | undefined;
|
|
658
|
+
readonly totalTokens?: number | undefined;
|
|
659
|
+
} | undefined;
|
|
660
|
+
readonly toolCalls?: number | undefined;
|
|
661
|
+
readonly errors?: number | undefined;
|
|
662
|
+
readonly duration?: number | undefined;
|
|
663
|
+
} | {
|
|
664
|
+
readonly source?: {
|
|
665
|
+
readonly type: "base64";
|
|
666
|
+
readonly mediaType: string;
|
|
667
|
+
readonly data: string;
|
|
668
|
+
} | {
|
|
669
|
+
readonly type: "http";
|
|
670
|
+
readonly url: string;
|
|
671
|
+
} | undefined;
|
|
672
|
+
readonly id?: string | undefined;
|
|
673
|
+
readonly pending?: boolean | undefined;
|
|
674
|
+
readonly _tag: "image";
|
|
675
|
+
} | {
|
|
676
|
+
readonly name?: string | undefined;
|
|
677
|
+
readonly pending?: boolean | undefined;
|
|
678
|
+
readonly _tag: "file";
|
|
679
|
+
readonly mediaType?: string | undefined;
|
|
680
|
+
readonly url: string;
|
|
681
|
+
} | {
|
|
682
|
+
readonly pending?: boolean | undefined;
|
|
683
|
+
readonly _tag: "reference";
|
|
684
|
+
readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown>;
|
|
685
|
+
} | {
|
|
686
|
+
readonly pending?: boolean | undefined;
|
|
687
|
+
readonly text: string;
|
|
688
|
+
readonly _tag: "transcript";
|
|
689
|
+
readonly started: string;
|
|
690
|
+
} | {
|
|
691
|
+
readonly pending?: boolean | undefined;
|
|
692
|
+
readonly _tag: "status";
|
|
693
|
+
readonly statusText: string;
|
|
694
|
+
} | {
|
|
695
|
+
readonly pending?: boolean | undefined;
|
|
696
|
+
readonly text: string;
|
|
697
|
+
readonly _tag: "suggestion";
|
|
698
|
+
} | {
|
|
699
|
+
readonly pending?: boolean | undefined;
|
|
700
|
+
readonly _tag: "select";
|
|
701
|
+
readonly options: string[];
|
|
702
|
+
} | {
|
|
703
|
+
readonly version: unknown;
|
|
704
|
+
readonly pending?: boolean | undefined;
|
|
705
|
+
readonly _tag: "anchor";
|
|
706
|
+
readonly objectId: string;
|
|
707
|
+
} | {
|
|
708
|
+
readonly pending?: boolean | undefined;
|
|
709
|
+
readonly text: string;
|
|
710
|
+
readonly _tag: "proposal";
|
|
711
|
+
} | {
|
|
712
|
+
readonly pending?: boolean | undefined;
|
|
713
|
+
readonly _tag: "summary";
|
|
714
|
+
readonly content: string;
|
|
715
|
+
} | {
|
|
716
|
+
readonly pending?: boolean | undefined;
|
|
717
|
+
readonly _tag: "toolkit";
|
|
718
|
+
} | {
|
|
719
|
+
readonly pending?: boolean | undefined;
|
|
720
|
+
readonly disposition?: string | undefined;
|
|
721
|
+
readonly _tag: "json";
|
|
722
|
+
readonly data: string;
|
|
723
|
+
})[];
|
|
724
|
+
readonly properties?: {
|
|
725
|
+
readonly [x: string]: any;
|
|
726
|
+
} | undefined;
|
|
727
|
+
} & {
|
|
728
|
+
readonly rangeId?: readonly string[] | undefined;
|
|
729
|
+
})[];
|
|
730
|
+
}, {
|
|
731
|
+
readonly sentences: {
|
|
732
|
+
id: import("@dxos/keys").ObjectId;
|
|
733
|
+
"~@dxos/echo/Kind": import("@dxos/echo/internal").EntityKind.Object;
|
|
734
|
+
parentMessage?: string | undefined | undefined;
|
|
735
|
+
created: string;
|
|
736
|
+
sender: {
|
|
737
|
+
readonly name?: string | undefined;
|
|
738
|
+
readonly role?: "user" | "assistant" | "tool" | undefined;
|
|
739
|
+
readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
740
|
+
readonly image?: string | undefined;
|
|
741
|
+
readonly fullName?: string | undefined;
|
|
742
|
+
readonly preferredName?: string | undefined;
|
|
743
|
+
readonly nickname?: string | undefined;
|
|
744
|
+
readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
745
|
+
readonly description?: string | undefined;
|
|
746
|
+
readonly name?: string | undefined;
|
|
747
|
+
readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
748
|
+
readonly image?: string | undefined;
|
|
749
|
+
readonly website?: string | undefined;
|
|
750
|
+
} & {
|
|
751
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
752
|
+
}> | undefined;
|
|
753
|
+
readonly jobTitle?: string | undefined;
|
|
754
|
+
readonly department?: string | undefined;
|
|
755
|
+
readonly notes?: string | undefined;
|
|
756
|
+
readonly emails?: readonly {
|
|
757
|
+
readonly value: string;
|
|
758
|
+
readonly label?: string | undefined;
|
|
759
|
+
}[] | undefined;
|
|
760
|
+
readonly identities?: readonly {
|
|
761
|
+
readonly value: string;
|
|
762
|
+
readonly label?: string | undefined;
|
|
763
|
+
}[] | undefined;
|
|
764
|
+
readonly phoneNumbers?: readonly {
|
|
765
|
+
readonly value: string;
|
|
766
|
+
readonly label?: string | undefined;
|
|
767
|
+
}[] | undefined;
|
|
768
|
+
readonly fields?: readonly {
|
|
769
|
+
readonly value: string;
|
|
770
|
+
readonly label: string;
|
|
771
|
+
readonly category?: string | undefined;
|
|
772
|
+
}[] | undefined;
|
|
773
|
+
readonly addresses?: readonly {
|
|
774
|
+
readonly value: {
|
|
775
|
+
readonly street?: string | undefined;
|
|
776
|
+
readonly extended?: string | undefined;
|
|
777
|
+
readonly locality?: string | undefined;
|
|
778
|
+
readonly region?: string | undefined;
|
|
779
|
+
readonly postalCode?: string | undefined;
|
|
780
|
+
readonly postOfficeBoxNumber?: string | undefined;
|
|
781
|
+
readonly country?: string | undefined;
|
|
782
|
+
};
|
|
783
|
+
readonly label?: string | undefined;
|
|
784
|
+
}[] | undefined;
|
|
785
|
+
readonly urls?: readonly {
|
|
786
|
+
readonly value: string;
|
|
787
|
+
readonly label?: string | undefined;
|
|
788
|
+
}[] | undefined;
|
|
789
|
+
readonly birthday?: string | undefined;
|
|
790
|
+
} & {
|
|
791
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
792
|
+
}> | undefined;
|
|
793
|
+
readonly identityDid?: string | undefined;
|
|
794
|
+
readonly identityKey?: string | undefined;
|
|
795
|
+
readonly email?: string | undefined;
|
|
796
|
+
};
|
|
797
|
+
blocks: readonly ({
|
|
798
|
+
readonly pending?: boolean | undefined;
|
|
799
|
+
readonly text: string;
|
|
800
|
+
readonly mimeType?: string | undefined;
|
|
801
|
+
readonly disposition?: string | undefined;
|
|
802
|
+
readonly _tag: "text";
|
|
803
|
+
} | {
|
|
804
|
+
readonly pending?: boolean | undefined;
|
|
805
|
+
readonly _tag: "reasoning";
|
|
806
|
+
readonly reasoningText?: string | undefined;
|
|
807
|
+
readonly redactedText?: string | undefined;
|
|
808
|
+
readonly signature?: string | undefined;
|
|
809
|
+
} | {
|
|
810
|
+
readonly name: string;
|
|
811
|
+
readonly pending?: boolean | undefined;
|
|
812
|
+
readonly _tag: "toolCall";
|
|
813
|
+
readonly toolCallId: string;
|
|
814
|
+
readonly input: string;
|
|
815
|
+
readonly providerExecuted: boolean;
|
|
816
|
+
} | {
|
|
817
|
+
readonly name: string;
|
|
818
|
+
readonly pending?: boolean | undefined;
|
|
819
|
+
readonly _tag: "toolResult";
|
|
820
|
+
readonly toolCallId: string;
|
|
821
|
+
readonly providerExecuted: boolean;
|
|
822
|
+
readonly result?: string | undefined;
|
|
823
|
+
readonly error?: string | undefined;
|
|
824
|
+
} | {
|
|
825
|
+
readonly pending?: boolean | undefined;
|
|
826
|
+
readonly mimeType?: string | undefined;
|
|
827
|
+
readonly _tag: "stats";
|
|
828
|
+
readonly message?: string | undefined;
|
|
829
|
+
readonly model?: string | undefined;
|
|
830
|
+
readonly usage?: {
|
|
831
|
+
readonly inputTokens?: number | undefined;
|
|
832
|
+
readonly outputTokens?: number | undefined;
|
|
833
|
+
readonly totalTokens?: number | undefined;
|
|
834
|
+
} | undefined;
|
|
835
|
+
readonly toolCalls?: number | undefined;
|
|
836
|
+
readonly errors?: number | undefined;
|
|
837
|
+
readonly duration?: number | undefined;
|
|
838
|
+
} | {
|
|
839
|
+
readonly source?: {
|
|
840
|
+
readonly type: "base64";
|
|
841
|
+
readonly mediaType: string;
|
|
842
|
+
readonly data: string;
|
|
843
|
+
} | {
|
|
844
|
+
readonly type: "http";
|
|
845
|
+
readonly url: string;
|
|
846
|
+
} | undefined;
|
|
847
|
+
readonly id?: string | undefined;
|
|
848
|
+
readonly pending?: boolean | undefined;
|
|
849
|
+
readonly _tag: "image";
|
|
850
|
+
} | {
|
|
851
|
+
readonly name?: string | undefined;
|
|
852
|
+
readonly pending?: boolean | undefined;
|
|
853
|
+
readonly _tag: "file";
|
|
854
|
+
readonly mediaType?: string | undefined;
|
|
855
|
+
readonly url: string;
|
|
856
|
+
} | {
|
|
857
|
+
readonly pending?: boolean | undefined;
|
|
858
|
+
readonly _tag: "reference";
|
|
859
|
+
readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown>;
|
|
860
|
+
} | {
|
|
861
|
+
readonly pending?: boolean | undefined;
|
|
862
|
+
readonly text: string;
|
|
863
|
+
readonly _tag: "transcript";
|
|
864
|
+
readonly started: string;
|
|
865
|
+
} | {
|
|
866
|
+
readonly pending?: boolean | undefined;
|
|
867
|
+
readonly _tag: "status";
|
|
868
|
+
readonly statusText: string;
|
|
869
|
+
} | {
|
|
870
|
+
readonly pending?: boolean | undefined;
|
|
871
|
+
readonly text: string;
|
|
872
|
+
readonly _tag: "suggestion";
|
|
873
|
+
} | {
|
|
874
|
+
readonly pending?: boolean | undefined;
|
|
875
|
+
readonly _tag: "select";
|
|
876
|
+
readonly options: string[];
|
|
877
|
+
} | {
|
|
878
|
+
readonly version: unknown;
|
|
879
|
+
readonly pending?: boolean | undefined;
|
|
880
|
+
readonly _tag: "anchor";
|
|
881
|
+
readonly objectId: string;
|
|
882
|
+
} | {
|
|
883
|
+
readonly pending?: boolean | undefined;
|
|
884
|
+
readonly text: string;
|
|
885
|
+
readonly _tag: "proposal";
|
|
886
|
+
} | {
|
|
887
|
+
readonly pending?: boolean | undefined;
|
|
888
|
+
readonly _tag: "summary";
|
|
889
|
+
readonly content: string;
|
|
890
|
+
} | {
|
|
891
|
+
readonly pending?: boolean | undefined;
|
|
892
|
+
readonly _tag: "toolkit";
|
|
893
|
+
} | {
|
|
894
|
+
readonly pending?: boolean | undefined;
|
|
895
|
+
readonly disposition?: string | undefined;
|
|
896
|
+
readonly _tag: "json";
|
|
897
|
+
readonly data: string;
|
|
898
|
+
})[];
|
|
899
|
+
properties?: {
|
|
900
|
+
readonly [x: string]: any;
|
|
901
|
+
} | undefined | undefined;
|
|
902
|
+
rangeId?: readonly string[] | undefined;
|
|
903
|
+
}[];
|
|
904
|
+
}, never>;
|
|
905
|
+
//# sourceMappingURL=definitions.d.ts.map
|