@dxos/plugin-transcription 0.8.4-main.fd6878d → 0.9.0

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 (367) hide show
  1. package/LICENSE +102 -5
  2. package/PLUGIN.mdl +401 -0
  3. package/README.md +1 -1
  4. package/dist/lib/neutral/TranscriptionArticle-L6XANBH5.mjs +54 -0
  5. package/dist/lib/neutral/TranscriptionArticle-L6XANBH5.mjs.map +7 -0
  6. package/dist/lib/neutral/TranscriptionPlugin.mjs +46 -0
  7. package/dist/lib/neutral/TranscriptionPlugin.mjs.map +7 -0
  8. package/dist/lib/neutral/TranscriptionPlugin.node.mjs +25 -0
  9. package/dist/lib/neutral/TranscriptionPlugin.node.mjs.map +7 -0
  10. package/dist/lib/neutral/TranscriptionPlugin.workerd.mjs +21 -0
  11. package/dist/lib/neutral/TranscriptionPlugin.workerd.mjs.map +7 -0
  12. package/dist/lib/neutral/blueprint-definition-DA4QFRYJ.mjs +15 -0
  13. package/dist/lib/neutral/blueprint-definition-DA4QFRYJ.mjs.map +7 -0
  14. package/dist/lib/neutral/blueprints/index.mjs +8 -0
  15. package/dist/lib/neutral/capabilities/index.mjs +17 -0
  16. package/dist/lib/neutral/capabilities/index.mjs.map +7 -0
  17. package/dist/lib/neutral/chunk-FHNI26QW.mjs +45 -0
  18. package/dist/lib/neutral/chunk-FHNI26QW.mjs.map +7 -0
  19. package/dist/lib/neutral/chunk-J5LGTIGS.mjs +10 -0
  20. package/dist/lib/neutral/chunk-KAEXRX3Y.mjs +35 -0
  21. package/dist/lib/neutral/chunk-KAEXRX3Y.mjs.map +7 -0
  22. package/dist/lib/neutral/chunk-KMT3BMMQ.mjs +124 -0
  23. package/dist/lib/neutral/chunk-KMT3BMMQ.mjs.map +7 -0
  24. package/dist/lib/neutral/chunk-KXJZEYS7.mjs +8 -0
  25. package/dist/lib/neutral/chunk-KXJZEYS7.mjs.map +7 -0
  26. package/dist/lib/neutral/chunk-MLRJWAQH.mjs +179 -0
  27. package/dist/lib/neutral/chunk-MLRJWAQH.mjs.map +7 -0
  28. package/dist/lib/neutral/chunk-TO77KAQK.mjs +298 -0
  29. package/dist/lib/neutral/chunk-TO77KAQK.mjs.map +7 -0
  30. package/dist/lib/{browser/chunk-KJIQQHJB.mjs → neutral/chunk-TX3NQISZ.mjs} +115 -186
  31. package/dist/lib/neutral/chunk-TX3NQISZ.mjs.map +7 -0
  32. package/dist/lib/neutral/chunk-ZR4BH4QQ.mjs +30 -0
  33. package/dist/lib/neutral/chunk-ZR4BH4QQ.mjs.map +7 -0
  34. package/dist/lib/neutral/components/index.mjs +269 -0
  35. package/dist/lib/neutral/components/index.mjs.map +7 -0
  36. package/dist/lib/neutral/containers/index.mjs +9 -0
  37. package/dist/lib/neutral/containers/index.mjs.map +7 -0
  38. package/dist/lib/neutral/create-RVR7VC33.mjs +21 -0
  39. package/dist/lib/neutral/create-RVR7VC33.mjs.map +7 -0
  40. package/dist/lib/neutral/hooks/index.mjs +19 -0
  41. package/dist/lib/neutral/index.mjs +44 -0
  42. package/dist/lib/neutral/meta.json +1 -0
  43. package/dist/lib/neutral/meta.mjs +8 -0
  44. package/dist/lib/neutral/meta.mjs.map +7 -0
  45. package/dist/lib/neutral/open-A5KXKRH4.mjs +27 -0
  46. package/dist/lib/neutral/open-A5KXKRH4.mjs.map +7 -0
  47. package/dist/lib/neutral/operation-handler-NXMOAXFP.mjs +13 -0
  48. package/dist/lib/neutral/operation-handler-NXMOAXFP.mjs.map +7 -0
  49. package/dist/lib/neutral/operations/index.mjs +8 -0
  50. package/dist/lib/neutral/operations/index.mjs.map +7 -0
  51. package/dist/lib/neutral/plugin.mjs +16 -0
  52. package/dist/lib/neutral/plugin.mjs.map +7 -0
  53. package/dist/lib/neutral/react-surface-YMZRO242.mjs +26 -0
  54. package/dist/lib/neutral/react-surface-YMZRO242.mjs.map +7 -0
  55. package/dist/lib/neutral/summarize-5XPPMVTE.mjs +77 -0
  56. package/dist/lib/neutral/summarize-5XPPMVTE.mjs.map +7 -0
  57. package/dist/lib/neutral/text-content-KBB37HSM.mjs +30 -0
  58. package/dist/lib/neutral/text-content-KBB37HSM.mjs.map +7 -0
  59. package/dist/lib/neutral/transcriber-OGSF3XO5.mjs +59 -0
  60. package/dist/lib/neutral/transcriber-OGSF3XO5.mjs.map +7 -0
  61. package/dist/lib/neutral/translations.mjs +24 -0
  62. package/dist/lib/neutral/translations.mjs.map +7 -0
  63. package/dist/lib/neutral/types/index.mjs +10 -0
  64. package/dist/lib/neutral/types/index.mjs.map +7 -0
  65. package/dist/types/src/TranscriptionPlugin.d.ts +3 -1
  66. package/dist/types/src/TranscriptionPlugin.d.ts.map +1 -1
  67. package/dist/types/src/TranscriptionPlugin.node.d.ts +4 -0
  68. package/dist/types/src/TranscriptionPlugin.node.d.ts.map +1 -0
  69. package/dist/types/src/TranscriptionPlugin.test.d.ts +2 -0
  70. package/dist/types/src/TranscriptionPlugin.test.d.ts.map +1 -0
  71. package/dist/types/src/TranscriptionPlugin.workerd.d.ts +4 -0
  72. package/dist/types/src/TranscriptionPlugin.workerd.d.ts.map +1 -0
  73. package/dist/types/src/blueprints/index.d.ts +2 -0
  74. package/dist/types/src/blueprints/index.d.ts.map +1 -0
  75. package/dist/types/src/blueprints/transcription-blueprint.d.ts +4 -0
  76. package/dist/types/src/blueprints/transcription-blueprint.d.ts.map +1 -0
  77. package/dist/types/src/capabilities/blueprint-definition.d.ts +6 -0
  78. package/dist/types/src/capabilities/blueprint-definition.d.ts.map +1 -0
  79. package/dist/types/src/capabilities/index.d.ts +11 -4
  80. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  81. package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
  82. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
  83. package/dist/types/src/capabilities/react-surface.d.ts +3 -2
  84. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  85. package/dist/types/src/capabilities/text-content.d.ts +8 -0
  86. package/dist/types/src/capabilities/text-content.d.ts.map +1 -0
  87. package/dist/types/src/capabilities/transcriber.d.ts +4 -3
  88. package/dist/types/src/capabilities/transcriber.d.ts.map +1 -1
  89. package/dist/types/src/components/Oracle/Oracle.d.ts +24 -0
  90. package/dist/types/src/components/Oracle/Oracle.d.ts.map +1 -0
  91. package/dist/types/src/components/Oracle/Oracle.stories.d.ts +32 -0
  92. package/dist/types/src/components/Oracle/Oracle.stories.d.ts.map +1 -0
  93. package/dist/types/src/components/Oracle/index.d.ts +2 -0
  94. package/dist/types/src/components/Oracle/index.d.ts.map +1 -0
  95. package/dist/types/src/components/Transcription/Transcription.d.ts +11 -0
  96. package/dist/types/src/components/Transcription/Transcription.d.ts.map +1 -0
  97. package/dist/types/src/components/Transcription/Transcription.stories.d.ts +37 -0
  98. package/dist/types/src/components/Transcription/Transcription.stories.d.ts.map +1 -0
  99. package/dist/types/src/components/Transcription/index.d.ts +2 -0
  100. package/dist/types/src/components/Transcription/index.d.ts.map +1 -0
  101. package/dist/types/src/components/Transcription/transcription-extension.d.ts +15 -0
  102. package/dist/types/src/components/Transcription/transcription-extension.d.ts.map +1 -0
  103. package/dist/types/src/components/index.d.ts +2 -3
  104. package/dist/types/src/components/index.d.ts.map +1 -1
  105. package/dist/types/src/containers/TranscriptionArticle/TranscriptionArticle.d.ts +6 -0
  106. package/dist/types/src/containers/TranscriptionArticle/TranscriptionArticle.d.ts.map +1 -0
  107. package/dist/types/src/containers/TranscriptionArticle/TranscriptionArticle.stories.d.ts +28 -0
  108. package/dist/types/src/containers/TranscriptionArticle/TranscriptionArticle.stories.d.ts.map +1 -0
  109. package/dist/types/src/containers/TranscriptionArticle/index.d.ts +2 -0
  110. package/dist/types/src/containers/TranscriptionArticle/index.d.ts.map +1 -0
  111. package/dist/types/src/containers/index.d.ts +3 -0
  112. package/dist/types/src/containers/index.d.ts.map +1 -0
  113. package/dist/types/src/enrichment/conversation.test.d.ts +2 -0
  114. package/dist/types/src/enrichment/conversation.test.d.ts.map +1 -0
  115. package/dist/types/src/enrichment/operations.d.ts +200 -0
  116. package/dist/types/src/enrichment/operations.d.ts.map +1 -0
  117. package/dist/types/src/enrichment/parser.d.ts +26 -0
  118. package/dist/types/src/enrichment/parser.d.ts.map +1 -0
  119. package/dist/types/src/enrichment/stream-simulator.d.ts +38 -0
  120. package/dist/types/src/enrichment/stream-simulator.d.ts.map +1 -0
  121. package/dist/types/src/hooks/index.d.ts +2 -1
  122. package/dist/types/src/hooks/index.d.ts.map +1 -1
  123. package/dist/types/src/hooks/useAudioFile.d.ts.map +1 -1
  124. package/dist/types/src/hooks/useAudioTrack.d.ts.map +1 -1
  125. package/dist/types/src/hooks/useFeedModelAdapter.d.ts +12 -0
  126. package/dist/types/src/hooks/useFeedModelAdapter.d.ts.map +1 -0
  127. package/dist/types/src/hooks/useTranscriber.d.ts +2 -2
  128. package/dist/types/src/hooks/useTranscriber.d.ts.map +1 -1
  129. package/dist/types/src/hooks/useTranscriptionRecording.d.ts +12 -0
  130. package/dist/types/src/hooks/useTranscriptionRecording.d.ts.map +1 -0
  131. package/dist/types/src/hooks/useVoiceInput.d.ts.map +1 -1
  132. package/dist/types/src/index.d.ts +2 -3
  133. package/dist/types/src/index.d.ts.map +1 -1
  134. package/dist/types/src/meta.d.ts +2 -3
  135. package/dist/types/src/meta.d.ts.map +1 -1
  136. package/dist/types/src/model/model.d.ts +2 -2
  137. package/dist/types/src/model/model.d.ts.map +1 -1
  138. package/dist/types/src/{segments-normalization → normalization}/index.d.ts +1 -1
  139. package/dist/types/src/normalization/index.d.ts.map +1 -0
  140. package/dist/types/src/{segments-normalization → normalization}/message-normalizer.d.ts +9 -7
  141. package/dist/types/src/normalization/message-normalizer.d.ts.map +1 -0
  142. package/dist/types/src/normalization/normalization.d.ts +834 -0
  143. package/dist/types/src/normalization/normalization.d.ts.map +1 -0
  144. package/dist/types/src/normalization/normalization.test.d.ts.map +1 -0
  145. package/dist/types/src/normalization/utils.d.ts +3 -0
  146. package/dist/types/src/normalization/utils.d.ts.map +1 -0
  147. package/dist/types/src/operations/create.d.ts +5 -0
  148. package/dist/types/src/operations/create.d.ts.map +1 -0
  149. package/dist/types/src/operations/index.d.ts +3 -0
  150. package/dist/types/src/operations/index.d.ts.map +1 -0
  151. package/dist/types/src/operations/open.d.ts +5 -0
  152. package/dist/types/src/operations/open.d.ts.map +1 -0
  153. package/dist/types/src/operations/summarize.d.ts +8 -0
  154. package/dist/types/src/operations/summarize.d.ts.map +1 -0
  155. package/dist/types/src/plugin.d.ts +4 -0
  156. package/dist/types/src/plugin.d.ts.map +1 -0
  157. package/dist/types/src/stories/FileTranscription.stories.d.ts +20 -0
  158. package/dist/types/src/stories/FileTranscription.stories.d.ts.map +1 -0
  159. package/dist/types/src/stories/KeyWordRecognition.stories.d.ts +14 -0
  160. package/dist/types/src/stories/KeyWordRecognition.stories.d.ts.map +1 -0
  161. package/dist/types/src/stories/LiveTranscription.stories.d.ts +20 -0
  162. package/dist/types/src/stories/LiveTranscription.stories.d.ts.map +1 -0
  163. package/dist/types/src/stories/TranscriptionStory.d.ts +21 -0
  164. package/dist/types/src/stories/TranscriptionStory.d.ts.map +1 -0
  165. package/dist/types/src/stories/common.d.ts +248 -0
  166. package/dist/types/src/stories/common.d.ts.map +1 -0
  167. package/dist/types/src/testing/testing.d.ts +14 -15
  168. package/dist/types/src/testing/testing.d.ts.map +1 -1
  169. package/dist/types/src/transcriber/index.d.ts +1 -1
  170. package/dist/types/src/transcriber/index.d.ts.map +1 -1
  171. package/dist/types/src/transcriber/media-stream-recorder.d.ts +2 -2
  172. package/dist/types/src/transcriber/media-stream-recorder.d.ts.map +1 -1
  173. package/dist/types/src/transcriber/transcriber.d.ts +61 -6
  174. package/dist/types/src/transcriber/transcriber.d.ts.map +1 -1
  175. package/dist/types/src/transcriber/transcriber.test.d.ts +2 -0
  176. package/dist/types/src/transcriber/transcriber.test.d.ts.map +1 -0
  177. package/dist/types/src/transcriber/transcription-manager.d.ts +17 -16
  178. package/dist/types/src/transcriber/transcription-manager.d.ts.map +1 -1
  179. package/dist/types/src/translations.d.ts +9 -8
  180. package/dist/types/src/translations.d.ts.map +1 -1
  181. package/dist/types/src/types/TranscriptOperation.d.ts +1670 -0
  182. package/dist/types/src/types/TranscriptOperation.d.ts.map +1 -0
  183. package/dist/types/src/types/TranscriptionCapabilities.d.ts +17 -0
  184. package/dist/types/src/types/TranscriptionCapabilities.d.ts.map +1 -0
  185. package/dist/types/src/types/index.d.ts +2 -2
  186. package/dist/types/src/types/index.d.ts.map +1 -1
  187. package/dist/types/src/util/array.d.ts.map +1 -1
  188. package/dist/types/src/util/get-time-str.d.ts.map +1 -1
  189. package/dist/types/src/util/index.d.ts +1 -0
  190. package/dist/types/src/util/index.d.ts.map +1 -1
  191. package/dist/types/src/util/monitor-audio-level.d.ts.map +1 -1
  192. package/dist/types/src/util/render-byline.d.ts +4 -0
  193. package/dist/types/src/util/render-byline.d.ts.map +1 -0
  194. package/dist/types/tsconfig.tsbuildinfo +1 -1
  195. package/package.json +153 -85
  196. package/src/TranscriptionPlugin.node.ts +20 -0
  197. package/src/TranscriptionPlugin.test.ts +31 -0
  198. package/src/TranscriptionPlugin.tsx +28 -61
  199. package/src/TranscriptionPlugin.workerd.ts +18 -0
  200. package/src/blueprints/index.ts +5 -0
  201. package/src/blueprints/transcription-blueprint.ts +29 -0
  202. package/src/capabilities/blueprint-definition.ts +19 -0
  203. package/src/capabilities/index.ts +16 -6
  204. package/src/capabilities/operation-handler.ts +16 -0
  205. package/src/capabilities/react-surface.tsx +23 -14
  206. package/src/capabilities/text-content.ts +33 -0
  207. package/src/capabilities/transcriber.ts +54 -41
  208. package/src/components/Oracle/Oracle.stories.tsx +147 -0
  209. package/src/components/Oracle/Oracle.tsx +142 -0
  210. package/src/components/Oracle/index.ts +5 -0
  211. package/src/components/Transcription/Transcription.stories.tsx +213 -0
  212. package/src/components/Transcription/Transcription.tsx +55 -0
  213. package/src/components/{Transcript → Transcription}/index.ts +1 -1
  214. package/src/components/{Transcript/transcript-extension.ts → Transcription/transcription-extension.ts} +13 -46
  215. package/src/components/index.ts +2 -6
  216. package/src/containers/TranscriptionArticle/TranscriptionArticle.stories.tsx +61 -0
  217. package/src/containers/TranscriptionArticle/TranscriptionArticle.tsx +62 -0
  218. package/src/containers/TranscriptionArticle/index.ts +5 -0
  219. package/src/containers/index.ts +7 -0
  220. package/src/enrichment/conversation.test.ts +162 -0
  221. package/src/enrichment/conversation.txt +23 -0
  222. package/src/enrichment/operations.ts +271 -0
  223. package/src/enrichment/parser.ts +101 -0
  224. package/src/enrichment/stream-simulator.ts +125 -0
  225. package/src/hooks/index.ts +2 -1
  226. package/src/hooks/useAudioFile.ts +49 -53
  227. package/src/hooks/useAudioTrack.ts +1 -1
  228. package/src/hooks/useFeedModelAdapter.ts +46 -0
  229. package/src/hooks/useTranscriber.ts +15 -7
  230. package/src/hooks/useTranscriptionRecording.ts +87 -0
  231. package/src/hooks/useVoiceInput.ts +3 -4
  232. package/src/index.ts +4 -5
  233. package/src/meta.ts +32 -7
  234. package/src/model/model.test.ts +22 -16
  235. package/src/model/model.ts +3 -3
  236. package/src/{segments-normalization → normalization}/message-normalizer.ts +37 -24
  237. package/src/{segments-normalization → normalization}/normalization.test.ts +9 -48
  238. package/src/normalization/normalization.ts +76 -0
  239. package/src/{segments-normalization → normalization}/utils.ts +2 -2
  240. package/src/operations/create.ts +24 -0
  241. package/src/operations/index.ts +11 -0
  242. package/src/operations/open.ts +28 -0
  243. package/src/operations/summarize.ts +102 -0
  244. package/src/plugin.ts +11 -0
  245. package/src/stories/FileTranscription.stories.tsx +143 -0
  246. package/src/{components/stories → stories}/KeyWordRecognition.stories.tsx +50 -46
  247. package/src/stories/LiveTranscription.stories.tsx +153 -0
  248. package/src/stories/TranscriptionStory.tsx +101 -0
  249. package/src/stories/common.ts +233 -0
  250. package/src/testing/testing.ts +53 -65
  251. package/src/transcriber/index.ts +1 -1
  252. package/src/transcriber/media-stream-recorder.ts +3 -3
  253. package/src/transcriber/transcriber.browser.test.ts +4 -5
  254. package/src/transcriber/transcriber.test.ts +104 -0
  255. package/src/transcriber/transcriber.ts +105 -60
  256. package/src/transcriber/transcription-manager.ts +49 -59
  257. package/src/translations.ts +10 -7
  258. package/src/types/TranscriptOperation.ts +106 -0
  259. package/src/types/TranscriptionCapabilities.ts +39 -0
  260. package/src/types/index.ts +2 -2
  261. package/src/util/index.ts +1 -0
  262. package/src/util/render-byline.ts +33 -0
  263. package/src/vite-env.d.ts +10 -0
  264. package/dist/lib/browser/TranscriptContainer-FH7VAWYA.mjs +0 -11
  265. package/dist/lib/browser/chunk-5WH45KBY.mjs +0 -19
  266. package/dist/lib/browser/chunk-5WH45KBY.mjs.map +0 -7
  267. package/dist/lib/browser/chunk-BJWYA2BU.mjs +0 -782
  268. package/dist/lib/browser/chunk-BJWYA2BU.mjs.map +0 -7
  269. package/dist/lib/browser/chunk-KJIQQHJB.mjs.map +0 -7
  270. package/dist/lib/browser/chunk-KWOOVS5G.mjs +0 -55
  271. package/dist/lib/browser/chunk-KWOOVS5G.mjs.map +0 -7
  272. package/dist/lib/browser/chunk-SREIAQSP.mjs +0 -16
  273. package/dist/lib/browser/chunk-SREIAQSP.mjs.map +0 -7
  274. package/dist/lib/browser/chunk-UKUSJTQW.mjs +0 -8
  275. package/dist/lib/browser/chunk-UKUSJTQW.mjs.map +0 -7
  276. package/dist/lib/browser/index.mjs +0 -125
  277. package/dist/lib/browser/index.mjs.map +0 -7
  278. package/dist/lib/browser/intent-resolver-AOVQ7JI4.mjs +0 -30
  279. package/dist/lib/browser/intent-resolver-AOVQ7JI4.mjs.map +0 -7
  280. package/dist/lib/browser/meta.json +0 -1
  281. package/dist/lib/browser/react-surface-4MEJMKYQ.mjs +0 -34
  282. package/dist/lib/browser/react-surface-4MEJMKYQ.mjs.map +0 -7
  283. package/dist/lib/browser/transcriber-V77CN7XX.mjs +0 -56
  284. package/dist/lib/browser/transcriber-V77CN7XX.mjs.map +0 -7
  285. package/dist/lib/browser/types/index.mjs +0 -14
  286. package/dist/lib/node-esm/TranscriptContainer-GEUOOYHX.mjs +0 -12
  287. package/dist/lib/node-esm/chunk-A33GNR44.mjs +0 -507
  288. package/dist/lib/node-esm/chunk-A33GNR44.mjs.map +0 -7
  289. package/dist/lib/node-esm/chunk-IKQMDRY6.mjs +0 -56
  290. package/dist/lib/node-esm/chunk-IKQMDRY6.mjs.map +0 -7
  291. package/dist/lib/node-esm/chunk-PHP7MCAY.mjs +0 -10
  292. package/dist/lib/node-esm/chunk-PHP7MCAY.mjs.map +0 -7
  293. package/dist/lib/node-esm/chunk-TM2ASOZA.mjs +0 -17
  294. package/dist/lib/node-esm/chunk-TM2ASOZA.mjs.map +0 -7
  295. package/dist/lib/node-esm/chunk-XMUCZBP3.mjs +0 -21
  296. package/dist/lib/node-esm/chunk-XMUCZBP3.mjs.map +0 -7
  297. package/dist/lib/node-esm/chunk-Y7PCJ34K.mjs +0 -783
  298. package/dist/lib/node-esm/chunk-Y7PCJ34K.mjs.map +0 -7
  299. package/dist/lib/node-esm/index.mjs +0 -126
  300. package/dist/lib/node-esm/index.mjs.map +0 -7
  301. package/dist/lib/node-esm/intent-resolver-P4XPIKQF.mjs +0 -31
  302. package/dist/lib/node-esm/intent-resolver-P4XPIKQF.mjs.map +0 -7
  303. package/dist/lib/node-esm/meta.json +0 -1
  304. package/dist/lib/node-esm/react-surface-EZUPNHUC.mjs +0 -35
  305. package/dist/lib/node-esm/react-surface-EZUPNHUC.mjs.map +0 -7
  306. package/dist/lib/node-esm/transcriber-3SX3DNLV.mjs +0 -57
  307. package/dist/lib/node-esm/transcriber-3SX3DNLV.mjs.map +0 -7
  308. package/dist/lib/node-esm/types/index.mjs +0 -15
  309. package/dist/types/src/capabilities/capabilities.d.ts +0 -17
  310. package/dist/types/src/capabilities/capabilities.d.ts.map +0 -1
  311. package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
  312. package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
  313. package/dist/types/src/components/Transcript/Transcript.d.ts +0 -20
  314. package/dist/types/src/components/Transcript/Transcript.d.ts.map +0 -1
  315. package/dist/types/src/components/Transcript/Transcript.stories.d.ts +0 -24
  316. package/dist/types/src/components/Transcript/Transcript.stories.d.ts.map +0 -1
  317. package/dist/types/src/components/Transcript/deprecated/OldTranscript.d.ts +0 -28
  318. package/dist/types/src/components/Transcript/deprecated/OldTranscript.d.ts.map +0 -1
  319. package/dist/types/src/components/Transcript/index.d.ts +0 -2
  320. package/dist/types/src/components/Transcript/index.d.ts.map +0 -1
  321. package/dist/types/src/components/Transcript/transcript-extension.d.ts +0 -19
  322. package/dist/types/src/components/Transcript/transcript-extension.d.ts.map +0 -1
  323. package/dist/types/src/components/TranscriptContainer.d.ts +0 -9
  324. package/dist/types/src/components/TranscriptContainer.d.ts.map +0 -1
  325. package/dist/types/src/components/stories/FileTranscription.stories.d.ts +0 -17
  326. package/dist/types/src/components/stories/FileTranscription.stories.d.ts.map +0 -1
  327. package/dist/types/src/components/stories/KeyWordRecognition.stories.d.ts +0 -10
  328. package/dist/types/src/components/stories/KeyWordRecognition.stories.d.ts.map +0 -1
  329. package/dist/types/src/components/stories/MicrophoneTranscription.stories.d.ts +0 -19
  330. package/dist/types/src/components/stories/MicrophoneTranscription.stories.d.ts.map +0 -1
  331. package/dist/types/src/components/stories/TranscriptionStory.d.ts +0 -11
  332. package/dist/types/src/components/stories/TranscriptionStory.d.ts.map +0 -1
  333. package/dist/types/src/components/stories/useIsSpeaking.d.ts +0 -3
  334. package/dist/types/src/components/stories/useIsSpeaking.d.ts.map +0 -1
  335. package/dist/types/src/hooks/useQueueModelAdapter.d.ts +0 -8
  336. package/dist/types/src/hooks/useQueueModelAdapter.d.ts.map +0 -1
  337. package/dist/types/src/segments-normalization/index.d.ts.map +0 -1
  338. package/dist/types/src/segments-normalization/message-normalizer.d.ts.map +0 -1
  339. package/dist/types/src/segments-normalization/normalization.d.ts +0 -422
  340. package/dist/types/src/segments-normalization/normalization.d.ts.map +0 -1
  341. package/dist/types/src/segments-normalization/normalization.test.d.ts.map +0 -1
  342. package/dist/types/src/segments-normalization/utils.d.ts +0 -3
  343. package/dist/types/src/segments-normalization/utils.d.ts.map +0 -1
  344. package/dist/types/src/types/schema.d.ts +0 -41
  345. package/dist/types/src/types/schema.d.ts.map +0 -1
  346. package/dist/types/src/types/types.d.ts +0 -31
  347. package/dist/types/src/types/types.d.ts.map +0 -1
  348. package/src/capabilities/capabilities.ts +0 -33
  349. package/src/capabilities/intent-resolver.ts +0 -24
  350. package/src/components/Transcript/Transcript.stories.tsx +0 -243
  351. package/src/components/Transcript/Transcript.tsx +0 -101
  352. package/src/components/Transcript/deprecated/OldTranscript.tsx +0 -260
  353. package/src/components/TranscriptContainer.tsx +0 -36
  354. package/src/components/stories/FileTranscription.stories.tsx +0 -246
  355. package/src/components/stories/MicrophoneTranscription.stories.tsx +0 -283
  356. package/src/components/stories/TranscriptionStory.tsx +0 -41
  357. package/src/components/stories/useIsSpeaking.tsx +0 -40
  358. package/src/hooks/useQueueModelAdapter.ts +0 -66
  359. package/src/segments-normalization/normalization.ts +0 -115
  360. package/src/types/schema.ts +0 -41
  361. package/src/types/types.ts +0 -33
  362. package/dist/lib/{browser/types → neutral/blueprints}/index.mjs.map +0 -0
  363. package/dist/lib/{browser/TranscriptContainer-FH7VAWYA.mjs.map → neutral/chunk-J5LGTIGS.mjs.map} +0 -0
  364. package/dist/lib/{node-esm/types → neutral/hooks}/index.mjs.map +0 -0
  365. package/dist/lib/{node-esm/TranscriptContainer-GEUOOYHX.mjs.map → neutral/index.mjs.map} +0 -0
  366. package/dist/types/src/{segments-normalization → normalization}/normalization.test.d.ts +0 -0
  367. package/src/{segments-normalization → normalization}/index.ts +1 -1
@@ -0,0 +1,834 @@
1
+ import * as Schema from 'effect/Schema';
2
+ import { Operation } from '@dxos/compute';
3
+ import { TranscriptOperation } from '../types';
4
+ type MessageWithRangeIdType = TranscriptOperation.MessageWithRangeIdType;
5
+ type SentenceNormalizationInputType = TranscriptOperation.SentenceNormalizationInputType;
6
+ declare const SentenceNormalizationOutput: Schema.Struct<{
7
+ sentences: Schema.mutable<Schema.Array$<Schema.mutable<Schema.extend<Schema.Schema<{
8
+ readonly id: string;
9
+ readonly parentMessage?: string | undefined;
10
+ readonly threadId?: string | undefined;
11
+ readonly created: string;
12
+ readonly sender: {
13
+ readonly role?: "assistant" | "tool" | "user" | undefined;
14
+ readonly contact?: import("@dxos/echo/internal").Ref<{
15
+ readonly fullName?: string | undefined;
16
+ readonly preferredName?: string | undefined;
17
+ readonly nickname?: string | undefined;
18
+ readonly image?: string | undefined;
19
+ readonly organization?: import("@dxos/echo/internal").Ref<{
20
+ readonly name?: string | undefined;
21
+ readonly description?: string | undefined;
22
+ readonly status?: "active" | "commit" | "prospect" | "qualified" | "reject" | undefined;
23
+ readonly image?: string | undefined;
24
+ readonly website?: string | undefined;
25
+ } & {
26
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
27
+ } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown> | undefined;
28
+ readonly jobTitle?: string | undefined;
29
+ readonly department?: string | undefined;
30
+ readonly notes?: string | undefined;
31
+ readonly emails?: readonly {
32
+ readonly label?: string | undefined;
33
+ readonly value: string;
34
+ }[] | undefined;
35
+ readonly identities?: readonly {
36
+ readonly label?: string | undefined;
37
+ readonly value: string;
38
+ }[] | undefined;
39
+ readonly phoneNumbers?: readonly {
40
+ readonly label?: string | undefined;
41
+ readonly value: string;
42
+ }[] | undefined;
43
+ readonly addresses?: readonly {
44
+ readonly label?: string | undefined;
45
+ readonly value: {
46
+ readonly street?: string | undefined;
47
+ readonly extended?: string | undefined;
48
+ readonly locality?: string | undefined;
49
+ readonly region?: string | undefined;
50
+ readonly postalCode?: string | undefined;
51
+ readonly postOfficeBoxNumber?: string | undefined;
52
+ readonly country?: string | undefined;
53
+ };
54
+ }[] | undefined;
55
+ readonly urls?: readonly {
56
+ readonly label?: string | undefined;
57
+ readonly value: string;
58
+ }[] | undefined;
59
+ readonly birthday?: string | undefined;
60
+ readonly fields?: readonly {
61
+ readonly category?: string | undefined;
62
+ readonly label: string;
63
+ readonly value: string;
64
+ }[] | undefined;
65
+ } & {
66
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
67
+ } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown> | undefined;
68
+ readonly identityDid?: string | undefined;
69
+ readonly identityKey?: string | undefined;
70
+ readonly email?: string | undefined;
71
+ readonly name?: string | undefined;
72
+ };
73
+ readonly blocks: readonly ({
74
+ readonly _tag: "anchor";
75
+ readonly pending?: boolean | undefined;
76
+ readonly objectId: string;
77
+ readonly version: unknown;
78
+ } | {
79
+ readonly _tag: "file";
80
+ readonly pending?: boolean | undefined;
81
+ readonly url: string;
82
+ readonly name?: string | undefined;
83
+ readonly mediaType?: string | undefined;
84
+ } | {
85
+ readonly _tag: "image";
86
+ readonly pending?: boolean | undefined;
87
+ readonly id?: string | undefined;
88
+ readonly source?: {
89
+ readonly type: "base64";
90
+ readonly mediaType: string;
91
+ readonly data: string;
92
+ } | {
93
+ readonly type: "http";
94
+ readonly url: string;
95
+ } | undefined;
96
+ } | {
97
+ readonly _tag: "json";
98
+ readonly pending?: boolean | undefined;
99
+ readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
100
+ readonly data: string;
101
+ } | {
102
+ readonly _tag: "proposal";
103
+ readonly pending?: boolean | undefined;
104
+ readonly text: string;
105
+ } | {
106
+ readonly _tag: "reasoning";
107
+ readonly pending?: boolean | undefined;
108
+ readonly reasoningText?: string | undefined;
109
+ readonly redactedText?: string | undefined;
110
+ readonly signature?: string | undefined;
111
+ } | {
112
+ readonly _tag: "reference";
113
+ readonly pending?: boolean | undefined;
114
+ readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Obj").Unknown>;
115
+ } | {
116
+ readonly _tag: "select";
117
+ readonly pending?: boolean | undefined;
118
+ readonly options: string[];
119
+ } | {
120
+ readonly _tag: "status";
121
+ readonly pending?: boolean | undefined;
122
+ readonly statusText: string;
123
+ } | {
124
+ readonly _tag: "suggestion";
125
+ readonly pending?: boolean | undefined;
126
+ readonly text: string;
127
+ } | {
128
+ readonly _tag: "stats";
129
+ readonly pending?: boolean | undefined;
130
+ readonly mimeType?: string | undefined;
131
+ readonly message?: string | undefined;
132
+ readonly model?: string | undefined;
133
+ readonly usage?: {
134
+ readonly inputTokens?: number | undefined;
135
+ readonly outputTokens?: number | undefined;
136
+ readonly totalTokens?: number | undefined;
137
+ } | undefined;
138
+ readonly toolCalls?: number | undefined;
139
+ readonly errors?: number | undefined;
140
+ readonly duration?: number | undefined;
141
+ } | {
142
+ readonly _tag: "text";
143
+ readonly pending?: boolean | undefined;
144
+ readonly mimeType?: string | undefined;
145
+ readonly text: string;
146
+ readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
147
+ } | {
148
+ readonly _tag: "summary";
149
+ readonly pending?: boolean | undefined;
150
+ readonly content: string;
151
+ } | {
152
+ readonly _tag: "toolkit";
153
+ readonly pending?: boolean | undefined;
154
+ } | {
155
+ readonly _tag: "toolCall";
156
+ readonly pending?: boolean | undefined;
157
+ readonly toolCallId: string;
158
+ readonly name: string;
159
+ readonly input: string;
160
+ readonly providerExecuted: boolean;
161
+ readonly operationKey?: string | undefined;
162
+ readonly operationName?: string | undefined;
163
+ readonly operationIcon?: string | undefined;
164
+ } | {
165
+ readonly _tag: "toolResult";
166
+ readonly pending?: boolean | undefined;
167
+ readonly toolCallId: string;
168
+ readonly name: string;
169
+ readonly result?: string | {
170
+ readonly _tag: "~@dxos/types/ContentBlock.ContentBlockResult";
171
+ readonly content: readonly ({
172
+ readonly _tag: "file";
173
+ readonly pending?: boolean | undefined;
174
+ readonly url: string;
175
+ readonly name?: string | undefined;
176
+ readonly mediaType?: string | undefined;
177
+ } | {
178
+ readonly _tag: "image";
179
+ readonly pending?: boolean | undefined;
180
+ readonly id?: string | undefined;
181
+ readonly source?: {
182
+ readonly type: "base64";
183
+ readonly mediaType: string;
184
+ readonly data: string;
185
+ } | {
186
+ readonly type: "http";
187
+ readonly url: string;
188
+ } | undefined;
189
+ } | {
190
+ readonly _tag: "text";
191
+ readonly pending?: boolean | undefined;
192
+ readonly mimeType?: string | undefined;
193
+ readonly text: string;
194
+ readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
195
+ })[];
196
+ } | undefined;
197
+ readonly error?: string | undefined;
198
+ readonly providerExecuted: boolean;
199
+ } | {
200
+ readonly _tag: "transcript";
201
+ readonly pending?: boolean | undefined;
202
+ readonly started: string;
203
+ readonly text: string;
204
+ })[];
205
+ readonly properties?: {
206
+ readonly [x: string]: any;
207
+ } | undefined;
208
+ } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object>, {
209
+ readonly id: string;
210
+ readonly parentMessage?: string | undefined;
211
+ readonly threadId?: string | undefined;
212
+ readonly created: string;
213
+ readonly sender: {
214
+ readonly role?: "assistant" | "tool" | "user" | undefined;
215
+ readonly contact?: import("@dxos/echo/internal").Ref<{
216
+ readonly fullName?: string | undefined;
217
+ readonly preferredName?: string | undefined;
218
+ readonly nickname?: string | undefined;
219
+ readonly image?: string | undefined;
220
+ readonly organization?: import("@dxos/echo/internal").Ref<{
221
+ readonly name?: string | undefined;
222
+ readonly description?: string | undefined;
223
+ readonly status?: "active" | "commit" | "prospect" | "qualified" | "reject" | undefined;
224
+ readonly image?: string | undefined;
225
+ readonly website?: string | undefined;
226
+ } & {
227
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
228
+ } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown> | undefined;
229
+ readonly jobTitle?: string | undefined;
230
+ readonly department?: string | undefined;
231
+ readonly notes?: string | undefined;
232
+ readonly emails?: readonly {
233
+ readonly label?: string | undefined;
234
+ readonly value: string;
235
+ }[] | undefined;
236
+ readonly identities?: readonly {
237
+ readonly label?: string | undefined;
238
+ readonly value: string;
239
+ }[] | undefined;
240
+ readonly phoneNumbers?: readonly {
241
+ readonly label?: string | undefined;
242
+ readonly value: string;
243
+ }[] | undefined;
244
+ readonly addresses?: readonly {
245
+ readonly label?: string | undefined;
246
+ readonly value: {
247
+ readonly street?: string | undefined;
248
+ readonly extended?: string | undefined;
249
+ readonly locality?: string | undefined;
250
+ readonly region?: string | undefined;
251
+ readonly postalCode?: string | undefined;
252
+ readonly postOfficeBoxNumber?: string | undefined;
253
+ readonly country?: string | undefined;
254
+ };
255
+ }[] | undefined;
256
+ readonly urls?: readonly {
257
+ readonly label?: string | undefined;
258
+ readonly value: string;
259
+ }[] | undefined;
260
+ readonly birthday?: string | undefined;
261
+ readonly fields?: readonly {
262
+ readonly category?: string | undefined;
263
+ readonly label: string;
264
+ readonly value: string;
265
+ }[] | undefined;
266
+ } & {
267
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
268
+ } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown> | undefined;
269
+ readonly identityDid?: string | undefined;
270
+ readonly identityKey?: string | undefined;
271
+ readonly email?: string | undefined;
272
+ readonly name?: string | undefined;
273
+ };
274
+ readonly blocks: readonly ({
275
+ readonly _tag: "anchor";
276
+ readonly pending?: boolean | undefined;
277
+ readonly objectId: string;
278
+ readonly version: unknown;
279
+ } | {
280
+ readonly _tag: "file";
281
+ readonly pending?: boolean | undefined;
282
+ readonly url: string;
283
+ readonly name?: string | undefined;
284
+ readonly mediaType?: string | undefined;
285
+ } | {
286
+ readonly _tag: "image";
287
+ readonly pending?: boolean | undefined;
288
+ readonly id?: string | undefined;
289
+ readonly source?: {
290
+ readonly type: "base64";
291
+ readonly mediaType: string;
292
+ readonly data: string;
293
+ } | {
294
+ readonly type: "http";
295
+ readonly url: string;
296
+ } | undefined;
297
+ } | {
298
+ readonly _tag: "json";
299
+ readonly pending?: boolean | undefined;
300
+ readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
301
+ readonly data: string;
302
+ } | {
303
+ readonly _tag: "proposal";
304
+ readonly pending?: boolean | undefined;
305
+ readonly text: string;
306
+ } | {
307
+ readonly _tag: "reasoning";
308
+ readonly pending?: boolean | undefined;
309
+ readonly reasoningText?: string | undefined;
310
+ readonly redactedText?: string | undefined;
311
+ readonly signature?: string | undefined;
312
+ } | {
313
+ readonly _tag: "reference";
314
+ readonly pending?: boolean | undefined;
315
+ readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Obj").Unknown>;
316
+ } | {
317
+ readonly _tag: "select";
318
+ readonly pending?: boolean | undefined;
319
+ readonly options: string[];
320
+ } | {
321
+ readonly _tag: "status";
322
+ readonly pending?: boolean | undefined;
323
+ readonly statusText: string;
324
+ } | {
325
+ readonly _tag: "suggestion";
326
+ readonly pending?: boolean | undefined;
327
+ readonly text: string;
328
+ } | {
329
+ readonly _tag: "stats";
330
+ readonly pending?: boolean | undefined;
331
+ readonly mimeType?: string | undefined;
332
+ readonly message?: string | undefined;
333
+ readonly model?: string | undefined;
334
+ readonly usage?: {
335
+ readonly inputTokens?: number | undefined;
336
+ readonly outputTokens?: number | undefined;
337
+ readonly totalTokens?: number | undefined;
338
+ } | undefined;
339
+ readonly toolCalls?: number | undefined;
340
+ readonly errors?: number | undefined;
341
+ readonly duration?: number | undefined;
342
+ } | {
343
+ readonly _tag: "text";
344
+ readonly pending?: boolean | undefined;
345
+ readonly mimeType?: string | undefined;
346
+ readonly text: string;
347
+ readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
348
+ } | {
349
+ readonly _tag: "summary";
350
+ readonly pending?: boolean | undefined;
351
+ readonly content: string;
352
+ } | {
353
+ readonly _tag: "toolkit";
354
+ readonly pending?: boolean | undefined;
355
+ } | {
356
+ readonly _tag: "toolCall";
357
+ readonly pending?: boolean | undefined;
358
+ readonly toolCallId: string;
359
+ readonly name: string;
360
+ readonly input: string;
361
+ readonly providerExecuted: boolean;
362
+ readonly operationKey?: string | undefined;
363
+ readonly operationName?: string | undefined;
364
+ readonly operationIcon?: string | undefined;
365
+ } | {
366
+ readonly _tag: "toolResult";
367
+ readonly pending?: boolean | undefined;
368
+ readonly toolCallId: string;
369
+ readonly name: string;
370
+ readonly result?: string | {
371
+ readonly _tag: "~@dxos/types/ContentBlock.ContentBlockResult";
372
+ readonly content: readonly ({
373
+ readonly _tag: "file";
374
+ readonly pending?: boolean | undefined;
375
+ readonly url: string;
376
+ readonly name?: string | undefined;
377
+ readonly mediaType?: string | undefined;
378
+ } | {
379
+ readonly _tag: "image";
380
+ readonly pending?: boolean | undefined;
381
+ readonly id?: string | undefined;
382
+ readonly source?: {
383
+ readonly type: "base64";
384
+ readonly mediaType: string;
385
+ readonly data: string;
386
+ } | {
387
+ readonly type: "http";
388
+ readonly url: string;
389
+ } | undefined;
390
+ } | {
391
+ readonly _tag: "text";
392
+ readonly pending?: boolean | undefined;
393
+ readonly mimeType?: string | undefined;
394
+ readonly text: string;
395
+ readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
396
+ })[];
397
+ } | undefined;
398
+ readonly error?: string | undefined;
399
+ readonly providerExecuted: boolean;
400
+ } | {
401
+ readonly _tag: "transcript";
402
+ readonly pending?: boolean | undefined;
403
+ readonly started: string;
404
+ readonly text: string;
405
+ })[];
406
+ readonly properties?: {
407
+ readonly [x: string]: any;
408
+ } | undefined;
409
+ } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object>, never>, Schema.Struct<{
410
+ rangeId: Schema.optional<Schema.Array$<typeof Schema.String>>;
411
+ }>>>>>;
412
+ }>;
413
+ export type MessageWithRangeId = MessageWithRangeIdType;
414
+ /** @deprecated Use SentenceNormalizationInputType */
415
+ export type NormalizationInput = SentenceNormalizationInputType;
416
+ /** @deprecated Use SentenceNormalizationOutput */
417
+ export type NormalizationOutput = Schema.Schema.Type<typeof SentenceNormalizationOutput>;
418
+ /**
419
+ * Sentence normalization for transcription.
420
+ * TODO(dmaretskyi): Reimplement using AiRequest.run or LanguageModel.generateObject - runStructured was removed.
421
+ */
422
+ export declare const sentenceNormalization: Operation.WithHandler<Operation.Definition<{
423
+ readonly messages: readonly ({
424
+ readonly id: string;
425
+ readonly parentMessage?: string | undefined;
426
+ readonly threadId?: string | undefined;
427
+ readonly created: string;
428
+ readonly sender: {
429
+ readonly role?: "assistant" | "tool" | "user" | undefined;
430
+ readonly contact?: import("@dxos/echo/internal").Ref<{
431
+ readonly fullName?: string | undefined;
432
+ readonly preferredName?: string | undefined;
433
+ readonly nickname?: string | undefined;
434
+ readonly image?: string | undefined;
435
+ readonly organization?: import("@dxos/echo/internal").Ref<{
436
+ readonly name?: string | undefined;
437
+ readonly description?: string | undefined;
438
+ readonly status?: "active" | "commit" | "prospect" | "qualified" | "reject" | undefined;
439
+ readonly image?: string | undefined;
440
+ readonly website?: string | undefined;
441
+ } & {
442
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
443
+ } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown> | undefined;
444
+ readonly jobTitle?: string | undefined;
445
+ readonly department?: string | undefined;
446
+ readonly notes?: string | undefined;
447
+ readonly emails?: readonly {
448
+ readonly label?: string | undefined;
449
+ readonly value: string;
450
+ }[] | undefined;
451
+ readonly identities?: readonly {
452
+ readonly label?: string | undefined;
453
+ readonly value: string;
454
+ }[] | undefined;
455
+ readonly phoneNumbers?: readonly {
456
+ readonly label?: string | undefined;
457
+ readonly value: string;
458
+ }[] | undefined;
459
+ readonly addresses?: readonly {
460
+ readonly label?: string | undefined;
461
+ readonly value: {
462
+ readonly street?: string | undefined;
463
+ readonly extended?: string | undefined;
464
+ readonly locality?: string | undefined;
465
+ readonly region?: string | undefined;
466
+ readonly postalCode?: string | undefined;
467
+ readonly postOfficeBoxNumber?: string | undefined;
468
+ readonly country?: string | undefined;
469
+ };
470
+ }[] | undefined;
471
+ readonly urls?: readonly {
472
+ readonly label?: string | undefined;
473
+ readonly value: string;
474
+ }[] | undefined;
475
+ readonly birthday?: string | undefined;
476
+ readonly fields?: readonly {
477
+ readonly category?: string | undefined;
478
+ readonly label: string;
479
+ readonly value: string;
480
+ }[] | undefined;
481
+ } & {
482
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
483
+ } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown> | undefined;
484
+ readonly identityDid?: string | undefined;
485
+ readonly identityKey?: string | undefined;
486
+ readonly email?: string | undefined;
487
+ readonly name?: string | undefined;
488
+ };
489
+ readonly blocks: readonly ({
490
+ readonly _tag: "anchor";
491
+ readonly pending?: boolean | undefined;
492
+ readonly objectId: string;
493
+ readonly version: unknown;
494
+ } | {
495
+ readonly _tag: "file";
496
+ readonly pending?: boolean | undefined;
497
+ readonly url: string;
498
+ readonly name?: string | undefined;
499
+ readonly mediaType?: string | undefined;
500
+ } | {
501
+ readonly _tag: "image";
502
+ readonly pending?: boolean | undefined;
503
+ readonly id?: string | undefined;
504
+ readonly source?: {
505
+ readonly type: "base64";
506
+ readonly mediaType: string;
507
+ readonly data: string;
508
+ } | {
509
+ readonly type: "http";
510
+ readonly url: string;
511
+ } | undefined;
512
+ } | {
513
+ readonly _tag: "json";
514
+ readonly pending?: boolean | undefined;
515
+ readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
516
+ readonly data: string;
517
+ } | {
518
+ readonly _tag: "proposal";
519
+ readonly pending?: boolean | undefined;
520
+ readonly text: string;
521
+ } | {
522
+ readonly _tag: "reasoning";
523
+ readonly pending?: boolean | undefined;
524
+ readonly reasoningText?: string | undefined;
525
+ readonly redactedText?: string | undefined;
526
+ readonly signature?: string | undefined;
527
+ } | {
528
+ readonly _tag: "reference";
529
+ readonly pending?: boolean | undefined;
530
+ readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Obj").Unknown>;
531
+ } | {
532
+ readonly _tag: "select";
533
+ readonly pending?: boolean | undefined;
534
+ readonly options: string[];
535
+ } | {
536
+ readonly _tag: "status";
537
+ readonly pending?: boolean | undefined;
538
+ readonly statusText: string;
539
+ } | {
540
+ readonly _tag: "suggestion";
541
+ readonly pending?: boolean | undefined;
542
+ readonly text: string;
543
+ } | {
544
+ readonly _tag: "stats";
545
+ readonly pending?: boolean | undefined;
546
+ readonly mimeType?: string | undefined;
547
+ readonly message?: string | undefined;
548
+ readonly model?: string | undefined;
549
+ readonly usage?: {
550
+ readonly inputTokens?: number | undefined;
551
+ readonly outputTokens?: number | undefined;
552
+ readonly totalTokens?: number | undefined;
553
+ } | undefined;
554
+ readonly toolCalls?: number | undefined;
555
+ readonly errors?: number | undefined;
556
+ readonly duration?: number | undefined;
557
+ } | {
558
+ readonly _tag: "text";
559
+ readonly pending?: boolean | undefined;
560
+ readonly mimeType?: string | undefined;
561
+ readonly text: string;
562
+ readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
563
+ } | {
564
+ readonly _tag: "summary";
565
+ readonly pending?: boolean | undefined;
566
+ readonly content: string;
567
+ } | {
568
+ readonly _tag: "toolkit";
569
+ readonly pending?: boolean | undefined;
570
+ } | {
571
+ readonly _tag: "toolCall";
572
+ readonly pending?: boolean | undefined;
573
+ readonly toolCallId: string;
574
+ readonly name: string;
575
+ readonly input: string;
576
+ readonly providerExecuted: boolean;
577
+ readonly operationKey?: string | undefined;
578
+ readonly operationName?: string | undefined;
579
+ readonly operationIcon?: string | undefined;
580
+ } | {
581
+ readonly _tag: "toolResult";
582
+ readonly pending?: boolean | undefined;
583
+ readonly toolCallId: string;
584
+ readonly name: string;
585
+ readonly result?: string | {
586
+ readonly _tag: "~@dxos/types/ContentBlock.ContentBlockResult";
587
+ readonly content: readonly ({
588
+ readonly _tag: "file";
589
+ readonly pending?: boolean | undefined;
590
+ readonly url: string;
591
+ readonly name?: string | undefined;
592
+ readonly mediaType?: string | undefined;
593
+ } | {
594
+ readonly _tag: "image";
595
+ readonly pending?: boolean | undefined;
596
+ readonly id?: string | undefined;
597
+ readonly source?: {
598
+ readonly type: "base64";
599
+ readonly mediaType: string;
600
+ readonly data: string;
601
+ } | {
602
+ readonly type: "http";
603
+ readonly url: string;
604
+ } | undefined;
605
+ } | {
606
+ readonly _tag: "text";
607
+ readonly pending?: boolean | undefined;
608
+ readonly mimeType?: string | undefined;
609
+ readonly text: string;
610
+ readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
611
+ })[];
612
+ } | undefined;
613
+ readonly error?: string | undefined;
614
+ readonly providerExecuted: boolean;
615
+ } | {
616
+ readonly _tag: "transcript";
617
+ readonly pending?: boolean | undefined;
618
+ readonly started: string;
619
+ readonly text: string;
620
+ })[];
621
+ readonly properties?: {
622
+ readonly [x: string]: any;
623
+ } | undefined;
624
+ } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
625
+ readonly rangeId?: readonly string[] | undefined;
626
+ })[];
627
+ }, {
628
+ readonly sentences: {
629
+ "~@dxos/echo/Kind": import("@dxos/echo/internal").EntityKind.Object;
630
+ id: string;
631
+ parentMessage?: string | undefined;
632
+ threadId?: string | undefined;
633
+ created: string;
634
+ sender: {
635
+ readonly role?: "assistant" | "tool" | "user" | undefined;
636
+ readonly contact?: import("@dxos/echo/internal").Ref<{
637
+ readonly fullName?: string | undefined;
638
+ readonly preferredName?: string | undefined;
639
+ readonly nickname?: string | undefined;
640
+ readonly image?: string | undefined;
641
+ readonly organization?: import("@dxos/echo/internal").Ref<{
642
+ readonly name?: string | undefined;
643
+ readonly description?: string | undefined;
644
+ readonly status?: "active" | "commit" | "prospect" | "qualified" | "reject" | undefined;
645
+ readonly image?: string | undefined;
646
+ readonly website?: string | undefined;
647
+ } & {
648
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
649
+ } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown> | undefined;
650
+ readonly jobTitle?: string | undefined;
651
+ readonly department?: string | undefined;
652
+ readonly notes?: string | undefined;
653
+ readonly emails?: readonly {
654
+ readonly label?: string | undefined;
655
+ readonly value: string;
656
+ }[] | undefined;
657
+ readonly identities?: readonly {
658
+ readonly label?: string | undefined;
659
+ readonly value: string;
660
+ }[] | undefined;
661
+ readonly phoneNumbers?: readonly {
662
+ readonly label?: string | undefined;
663
+ readonly value: string;
664
+ }[] | undefined;
665
+ readonly addresses?: readonly {
666
+ readonly label?: string | undefined;
667
+ readonly value: {
668
+ readonly street?: string | undefined;
669
+ readonly extended?: string | undefined;
670
+ readonly locality?: string | undefined;
671
+ readonly region?: string | undefined;
672
+ readonly postalCode?: string | undefined;
673
+ readonly postOfficeBoxNumber?: string | undefined;
674
+ readonly country?: string | undefined;
675
+ };
676
+ }[] | undefined;
677
+ readonly urls?: readonly {
678
+ readonly label?: string | undefined;
679
+ readonly value: string;
680
+ }[] | undefined;
681
+ readonly birthday?: string | undefined;
682
+ readonly fields?: readonly {
683
+ readonly category?: string | undefined;
684
+ readonly label: string;
685
+ readonly value: string;
686
+ }[] | undefined;
687
+ } & {
688
+ readonly location?: readonly [number, number, (number | undefined)?] | undefined;
689
+ } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown> | undefined;
690
+ readonly identityDid?: string | undefined;
691
+ readonly identityKey?: string | undefined;
692
+ readonly email?: string | undefined;
693
+ readonly name?: string | undefined;
694
+ };
695
+ blocks: readonly ({
696
+ readonly _tag: "anchor";
697
+ readonly pending?: boolean | undefined;
698
+ readonly objectId: string;
699
+ readonly version: unknown;
700
+ } | {
701
+ readonly _tag: "file";
702
+ readonly pending?: boolean | undefined;
703
+ readonly url: string;
704
+ readonly name?: string | undefined;
705
+ readonly mediaType?: string | undefined;
706
+ } | {
707
+ readonly _tag: "image";
708
+ readonly pending?: boolean | undefined;
709
+ readonly id?: string | undefined;
710
+ readonly source?: {
711
+ readonly type: "base64";
712
+ readonly mediaType: string;
713
+ readonly data: string;
714
+ } | {
715
+ readonly type: "http";
716
+ readonly url: string;
717
+ } | undefined;
718
+ } | {
719
+ readonly _tag: "json";
720
+ readonly pending?: boolean | undefined;
721
+ readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
722
+ readonly data: string;
723
+ } | {
724
+ readonly _tag: "proposal";
725
+ readonly pending?: boolean | undefined;
726
+ readonly text: string;
727
+ } | {
728
+ readonly _tag: "reasoning";
729
+ readonly pending?: boolean | undefined;
730
+ readonly reasoningText?: string | undefined;
731
+ readonly redactedText?: string | undefined;
732
+ readonly signature?: string | undefined;
733
+ } | {
734
+ readonly _tag: "reference";
735
+ readonly pending?: boolean | undefined;
736
+ readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Obj").Unknown>;
737
+ } | {
738
+ readonly _tag: "select";
739
+ readonly pending?: boolean | undefined;
740
+ readonly options: string[];
741
+ } | {
742
+ readonly _tag: "status";
743
+ readonly pending?: boolean | undefined;
744
+ readonly statusText: string;
745
+ } | {
746
+ readonly _tag: "suggestion";
747
+ readonly pending?: boolean | undefined;
748
+ readonly text: string;
749
+ } | {
750
+ readonly _tag: "stats";
751
+ readonly pending?: boolean | undefined;
752
+ readonly mimeType?: string | undefined;
753
+ readonly message?: string | undefined;
754
+ readonly model?: string | undefined;
755
+ readonly usage?: {
756
+ readonly inputTokens?: number | undefined;
757
+ readonly outputTokens?: number | undefined;
758
+ readonly totalTokens?: number | undefined;
759
+ } | undefined;
760
+ readonly toolCalls?: number | undefined;
761
+ readonly errors?: number | undefined;
762
+ readonly duration?: number | undefined;
763
+ } | {
764
+ readonly _tag: "text";
765
+ readonly pending?: boolean | undefined;
766
+ readonly mimeType?: string | undefined;
767
+ readonly text: string;
768
+ readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
769
+ } | {
770
+ readonly _tag: "summary";
771
+ readonly pending?: boolean | undefined;
772
+ readonly content: string;
773
+ } | {
774
+ readonly _tag: "toolkit";
775
+ readonly pending?: boolean | undefined;
776
+ } | {
777
+ readonly _tag: "toolCall";
778
+ readonly pending?: boolean | undefined;
779
+ readonly toolCallId: string;
780
+ readonly name: string;
781
+ readonly input: string;
782
+ readonly providerExecuted: boolean;
783
+ readonly operationKey?: string | undefined;
784
+ readonly operationName?: string | undefined;
785
+ readonly operationIcon?: string | undefined;
786
+ } | {
787
+ readonly _tag: "toolResult";
788
+ readonly pending?: boolean | undefined;
789
+ readonly toolCallId: string;
790
+ readonly name: string;
791
+ readonly result?: string | {
792
+ readonly _tag: "~@dxos/types/ContentBlock.ContentBlockResult";
793
+ readonly content: readonly ({
794
+ readonly _tag: "file";
795
+ readonly pending?: boolean | undefined;
796
+ readonly url: string;
797
+ readonly name?: string | undefined;
798
+ readonly mediaType?: string | undefined;
799
+ } | {
800
+ readonly _tag: "image";
801
+ readonly pending?: boolean | undefined;
802
+ readonly id?: string | undefined;
803
+ readonly source?: {
804
+ readonly type: "base64";
805
+ readonly mediaType: string;
806
+ readonly data: string;
807
+ } | {
808
+ readonly type: "http";
809
+ readonly url: string;
810
+ } | undefined;
811
+ } | {
812
+ readonly _tag: "text";
813
+ readonly pending?: boolean | undefined;
814
+ readonly mimeType?: string | undefined;
815
+ readonly text: string;
816
+ readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
817
+ })[];
818
+ } | undefined;
819
+ readonly error?: string | undefined;
820
+ readonly providerExecuted: boolean;
821
+ } | {
822
+ readonly _tag: "transcript";
823
+ readonly pending?: boolean | undefined;
824
+ readonly started: string;
825
+ readonly text: string;
826
+ })[];
827
+ properties?: {
828
+ readonly [x: string]: any;
829
+ } | undefined;
830
+ rangeId?: readonly string[] | undefined;
831
+ }[];
832
+ }, never>>;
833
+ export {};
834
+ //# sourceMappingURL=normalization.d.ts.map