@dxos/plugin-transcription 0.8.4-main.9735255 → 0.8.4-main.abd8ff62ef

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