@dxos/plugin-transcription 0.8.4-main.937b3ca → 0.8.4-main.9be5663bfe

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