@dxos/plugin-transcription 0.8.3 → 0.8.4-main.1068cf700f

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 (273) hide show
  1. package/dist/lib/browser/TranscriptContainer-MV3JBKLS.mjs +12 -0
  2. package/dist/lib/browser/blueprint-definition-K3E72ZBC.mjs +19 -0
  3. package/dist/lib/browser/blueprint-definition-K3E72ZBC.mjs.map +7 -0
  4. package/dist/lib/browser/blueprints/index.mjs +9 -0
  5. package/dist/lib/browser/chunk-AV44VISC.mjs +148 -0
  6. package/dist/lib/browser/chunk-AV44VISC.mjs.map +7 -0
  7. package/dist/lib/browser/chunk-HOOPZ7EM.mjs +35 -0
  8. package/dist/lib/browser/chunk-HOOPZ7EM.mjs.map +7 -0
  9. package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
  10. package/dist/lib/browser/chunk-J5LGTIGS.mjs.map +7 -0
  11. package/dist/lib/browser/{chunk-53AXUEIQ.mjs → chunk-K3JJ46VV.mjs} +367 -433
  12. package/dist/lib/browser/chunk-K3JJ46VV.mjs.map +7 -0
  13. package/dist/lib/browser/chunk-Q5OC3WVG.mjs +72 -0
  14. package/dist/lib/browser/chunk-Q5OC3WVG.mjs.map +7 -0
  15. package/dist/lib/browser/{chunk-UDCCT32F.mjs → chunk-RUKY36XW.mjs} +3 -3
  16. package/dist/lib/browser/{chunk-IQ5ZRMHZ.mjs → chunk-TKFU53OZ.mjs} +70 -105
  17. package/dist/lib/browser/chunk-TKFU53OZ.mjs.map +7 -0
  18. package/dist/lib/browser/index.mjs +68 -75
  19. package/dist/lib/browser/index.mjs.map +4 -4
  20. package/dist/lib/browser/meta.json +1 -1
  21. package/dist/lib/browser/operation-resolver-GLEBGPKH.mjs +22 -0
  22. package/dist/lib/browser/operation-resolver-GLEBGPKH.mjs.map +7 -0
  23. package/dist/lib/browser/react-surface-AWZ2A5WZ.mjs +35 -0
  24. package/dist/lib/browser/react-surface-AWZ2A5WZ.mjs.map +7 -0
  25. package/dist/lib/browser/{transcriber-OYPLZFG5.mjs → transcriber-SLVQP76E.mjs} +17 -13
  26. package/dist/lib/browser/transcriber-SLVQP76E.mjs.map +7 -0
  27. package/dist/lib/browser/types/index.mjs +8 -8
  28. package/dist/lib/node-esm/{TranscriptContainer-G75LDEO5.mjs → TranscriptContainer-7M43UAZ2.mjs} +5 -4
  29. package/dist/lib/node-esm/TranscriptContainer-7M43UAZ2.mjs.map +7 -0
  30. package/dist/lib/node-esm/blueprint-definition-2WIDDA3Y.mjs +20 -0
  31. package/dist/lib/node-esm/blueprint-definition-2WIDDA3Y.mjs.map +7 -0
  32. package/dist/lib/node-esm/blueprints/index.mjs +10 -0
  33. package/dist/lib/node-esm/blueprints/index.mjs.map +7 -0
  34. package/dist/lib/node-esm/chunk-4BFY6P2D.mjs +73 -0
  35. package/dist/lib/node-esm/chunk-4BFY6P2D.mjs.map +7 -0
  36. package/dist/lib/node-esm/{chunk-PRL64SRU.mjs → chunk-EPC27WWV.mjs} +70 -105
  37. package/dist/lib/node-esm/chunk-EPC27WWV.mjs.map +7 -0
  38. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
  39. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +7 -0
  40. package/dist/lib/node-esm/chunk-NVM2QUMX.mjs +37 -0
  41. package/dist/lib/node-esm/chunk-NVM2QUMX.mjs.map +7 -0
  42. package/dist/lib/node-esm/{chunk-MFJO7EKD.mjs → chunk-SNZAN34I.mjs} +3 -3
  43. package/dist/lib/node-esm/{chunk-56QHOX4A.mjs → chunk-TIUYXGQN.mjs} +367 -433
  44. package/dist/lib/node-esm/chunk-TIUYXGQN.mjs.map +7 -0
  45. package/dist/lib/node-esm/chunk-TTJBW7CY.mjs +149 -0
  46. package/dist/lib/node-esm/chunk-TTJBW7CY.mjs.map +7 -0
  47. package/dist/lib/node-esm/index.mjs +68 -75
  48. package/dist/lib/node-esm/index.mjs.map +4 -4
  49. package/dist/lib/node-esm/meta.json +1 -1
  50. package/dist/lib/node-esm/operation-resolver-SMCFTUFM.mjs +23 -0
  51. package/dist/lib/node-esm/operation-resolver-SMCFTUFM.mjs.map +7 -0
  52. package/dist/lib/node-esm/react-surface-YBBXC4W5.mjs +36 -0
  53. package/dist/lib/node-esm/react-surface-YBBXC4W5.mjs.map +7 -0
  54. package/dist/lib/node-esm/{transcriber-TVG2MBBN.mjs → transcriber-BO2N3UQ4.mjs} +17 -13
  55. package/dist/lib/node-esm/transcriber-BO2N3UQ4.mjs.map +7 -0
  56. package/dist/lib/node-esm/types/index.mjs +8 -8
  57. package/dist/types/src/TranscriptionPlugin.d.ts +2 -1
  58. package/dist/types/src/TranscriptionPlugin.d.ts.map +1 -1
  59. package/dist/types/src/blueprints/index.d.ts +2 -0
  60. package/dist/types/src/blueprints/index.d.ts.map +1 -0
  61. package/dist/types/src/blueprints/transcription-blueprint.d.ts +21 -0
  62. package/dist/types/src/blueprints/transcription-blueprint.d.ts.map +1 -0
  63. package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts +10 -0
  64. package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts.map +1 -0
  65. package/dist/types/src/capabilities/blueprint-definition/index.d.ts +3 -0
  66. package/dist/types/src/capabilities/blueprint-definition/index.d.ts.map +1 -0
  67. package/dist/types/src/capabilities/index.d.ts +4 -4
  68. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  69. package/dist/types/src/capabilities/operation-handler/index.d.ts +3 -0
  70. package/dist/types/src/capabilities/operation-handler/index.d.ts.map +1 -0
  71. package/dist/types/src/capabilities/operation-handler/operation-handler.d.ts +5 -0
  72. package/dist/types/src/capabilities/operation-handler/operation-handler.d.ts.map +1 -0
  73. package/dist/types/src/capabilities/operation-resolver/index.d.ts +3 -0
  74. package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +1 -0
  75. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +5 -0
  76. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +1 -0
  77. package/dist/types/src/capabilities/react-surface/index.d.ts +3 -0
  78. package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
  79. package/dist/types/src/capabilities/react-surface/react-surface.d.ts +5 -0
  80. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
  81. package/dist/types/src/capabilities/transcriber/index.d.ts +3 -0
  82. package/dist/types/src/capabilities/transcriber/index.d.ts.map +1 -0
  83. package/dist/types/src/capabilities/transcriber/transcriber.d.ts +9 -0
  84. package/dist/types/src/capabilities/transcriber/transcriber.d.ts.map +1 -0
  85. package/dist/types/src/components/Transcript/Transcript.d.ts +7 -10
  86. package/dist/types/src/components/Transcript/Transcript.d.ts.map +1 -1
  87. package/dist/types/src/components/Transcript/Transcript.stories.d.ts +34 -18
  88. package/dist/types/src/components/Transcript/Transcript.stories.d.ts.map +1 -1
  89. package/dist/types/src/components/Transcript/deprecated/OldTranscript.d.ts +12 -12
  90. package/dist/types/src/components/Transcript/deprecated/OldTranscript.d.ts.map +1 -1
  91. package/dist/types/src/components/Transcript/transcript-extension.d.ts +3 -7
  92. package/dist/types/src/components/Transcript/transcript-extension.d.ts.map +1 -1
  93. package/dist/types/src/components/TranscriptContainer.d.ts +5 -6
  94. package/dist/types/src/components/TranscriptContainer.d.ts.map +1 -1
  95. package/dist/types/src/components/index.d.ts +1 -4
  96. package/dist/types/src/components/index.d.ts.map +1 -1
  97. package/dist/types/src/components/stories/FileTranscription.stories.d.ts +8 -7
  98. package/dist/types/src/components/stories/FileTranscription.stories.d.ts.map +1 -1
  99. package/dist/types/src/components/stories/KeyWordRecognition.stories.d.ts +10 -6
  100. package/dist/types/src/components/stories/KeyWordRecognition.stories.d.ts.map +1 -1
  101. package/dist/types/src/components/stories/MicrophoneTranscription.stories.d.ts +10 -9
  102. package/dist/types/src/components/stories/MicrophoneTranscription.stories.d.ts.map +1 -1
  103. package/dist/types/src/components/stories/TranscriptionStory.d.ts +4 -3
  104. package/dist/types/src/components/stories/TranscriptionStory.d.ts.map +1 -1
  105. package/dist/types/src/functions/index.d.ts +3 -0
  106. package/dist/types/src/functions/index.d.ts.map +1 -0
  107. package/dist/types/src/functions/open.d.ts +11 -0
  108. package/dist/types/src/functions/open.d.ts.map +1 -0
  109. package/dist/types/src/functions/summarize.d.ts +11 -0
  110. package/dist/types/src/functions/summarize.d.ts.map +1 -0
  111. package/dist/types/src/hooks/useAudioFile.d.ts.map +1 -1
  112. package/dist/types/src/hooks/useQueueModelAdapter.d.ts +1 -1
  113. package/dist/types/src/hooks/useQueueModelAdapter.d.ts.map +1 -1
  114. package/dist/types/src/hooks/useTranscriber.d.ts +2 -2
  115. package/dist/types/src/hooks/useTranscriber.d.ts.map +1 -1
  116. package/dist/types/src/hooks/useVoiceInput.d.ts.map +1 -1
  117. package/dist/types/src/index.d.ts +1 -1
  118. package/dist/types/src/index.d.ts.map +1 -1
  119. package/dist/types/src/meta.d.ts +2 -3
  120. package/dist/types/src/meta.d.ts.map +1 -1
  121. package/dist/types/src/segments-normalization/message-normalizer.d.ts +5 -5
  122. package/dist/types/src/segments-normalization/message-normalizer.d.ts.map +1 -1
  123. package/dist/types/src/segments-normalization/normalization.d.ts +503 -311
  124. package/dist/types/src/segments-normalization/normalization.d.ts.map +1 -1
  125. package/dist/types/src/segments-normalization/utils.d.ts +2 -2
  126. package/dist/types/src/segments-normalization/utils.d.ts.map +1 -1
  127. package/dist/types/src/testing/testing.d.ts +10 -10
  128. package/dist/types/src/testing/testing.d.ts.map +1 -1
  129. package/dist/types/src/transcriber/index.d.ts +1 -1
  130. package/dist/types/src/transcriber/index.d.ts.map +1 -1
  131. package/dist/types/src/transcriber/media-stream-recorder.d.ts +3 -3
  132. package/dist/types/src/transcriber/media-stream-recorder.d.ts.map +1 -1
  133. package/dist/types/src/transcriber/transcriber.d.ts +4 -4
  134. package/dist/types/src/transcriber/transcriber.d.ts.map +1 -1
  135. package/dist/types/src/transcriber/transcription-manager.d.ts +12 -13
  136. package/dist/types/src/transcriber/transcription-manager.d.ts.map +1 -1
  137. package/dist/types/src/translations.d.ts +11 -11
  138. package/dist/types/src/translations.d.ts.map +1 -1
  139. package/dist/types/src/types/TranscriptAction.d.ts +25 -0
  140. package/dist/types/src/types/TranscriptAction.d.ts.map +1 -0
  141. package/dist/types/src/types/capabilities.d.ts +18 -0
  142. package/dist/types/src/types/capabilities.d.ts.map +1 -0
  143. package/dist/types/src/types/index.d.ts +3 -1
  144. package/dist/types/src/types/index.d.ts.map +1 -1
  145. package/dist/types/src/types/types.d.ts +0 -26
  146. package/dist/types/src/types/types.d.ts.map +1 -1
  147. package/dist/types/src/util/index.d.ts +1 -0
  148. package/dist/types/src/util/index.d.ts.map +1 -1
  149. package/dist/types/src/util/render-byline.d.ts +4 -0
  150. package/dist/types/src/util/render-byline.d.ts.map +1 -0
  151. package/dist/types/tsconfig.tsbuildinfo +1 -1
  152. package/package.json +88 -72
  153. package/src/TranscriptionPlugin.tsx +40 -58
  154. package/src/blueprints/index.ts +5 -0
  155. package/src/blueprints/transcription-blueprint.ts +25 -0
  156. package/src/capabilities/blueprint-definition/blueprint-definition.ts +24 -0
  157. package/src/capabilities/blueprint-definition/index.ts +7 -0
  158. package/src/capabilities/index.ts +4 -7
  159. package/src/capabilities/operation-handler/index.ts +7 -0
  160. package/src/capabilities/operation-handler/operation-handler.ts +25 -0
  161. package/src/capabilities/operation-resolver/index.ts +7 -0
  162. package/src/capabilities/operation-resolver/operation-resolver.ts +25 -0
  163. package/src/capabilities/react-surface/index.ts +7 -0
  164. package/src/capabilities/react-surface/react-surface.tsx +28 -0
  165. package/src/capabilities/transcriber/index.ts +7 -0
  166. package/src/capabilities/transcriber/transcriber.ts +85 -0
  167. package/src/components/Transcript/Transcript.stories.tsx +61 -57
  168. package/src/components/Transcript/Transcript.tsx +25 -59
  169. package/src/components/Transcript/deprecated/OldTranscript.tsx +11 -11
  170. package/src/components/Transcript/transcript-extension.ts +13 -46
  171. package/src/components/TranscriptContainer.tsx +19 -15
  172. package/src/components/stories/FileTranscription.stories.tsx +80 -70
  173. package/src/components/stories/KeyWordRecognition.stories.tsx +17 -13
  174. package/src/components/stories/MicrophoneTranscription.stories.tsx +89 -87
  175. package/src/components/stories/TranscriptionStory.tsx +14 -14
  176. package/src/functions/index.ts +6 -0
  177. package/src/functions/open.ts +37 -0
  178. package/src/functions/summarize.ts +103 -0
  179. package/src/hooks/useAudioFile.ts +49 -53
  180. package/src/hooks/useQueueModelAdapter.ts +1 -1
  181. package/src/hooks/useTranscriber.ts +12 -7
  182. package/src/hooks/useVoiceInput.ts +4 -3
  183. package/src/index.ts +1 -1
  184. package/src/meta.ts +9 -6
  185. package/src/model/model.test.ts +27 -21
  186. package/src/segments-normalization/message-normalizer.ts +19 -14
  187. package/src/segments-normalization/normalization.test.ts +25 -32
  188. package/src/segments-normalization/normalization.ts +59 -49
  189. package/src/segments-normalization/utils.ts +2 -2
  190. package/src/testing/testing.ts +42 -32
  191. package/src/transcriber/index.ts +1 -1
  192. package/src/transcriber/media-stream-recorder.ts +4 -4
  193. package/src/transcriber/transcriber.browser.test.ts +6 -5
  194. package/src/transcriber/transcriber.ts +9 -11
  195. package/src/transcriber/transcription-manager.ts +37 -52
  196. package/src/translations.ts +6 -4
  197. package/src/types/TranscriptAction.ts +32 -0
  198. package/src/types/capabilities.ts +33 -0
  199. package/src/types/index.ts +3 -1
  200. package/src/types/types.ts +0 -23
  201. package/src/util/index.ts +1 -0
  202. package/src/util/render-byline.ts +33 -0
  203. package/dist/lib/browser/TranscriptContainer-H3AZQ4CQ.mjs +0 -11
  204. package/dist/lib/browser/chunk-53AXUEIQ.mjs.map +0 -7
  205. package/dist/lib/browser/chunk-GOF7MJNV.mjs +0 -19
  206. package/dist/lib/browser/chunk-GOF7MJNV.mjs.map +0 -7
  207. package/dist/lib/browser/chunk-IQ5ZRMHZ.mjs.map +0 -7
  208. package/dist/lib/browser/chunk-OSISJM2F.mjs +0 -55
  209. package/dist/lib/browser/chunk-OSISJM2F.mjs.map +0 -7
  210. package/dist/lib/browser/chunk-W2KNYJD6.mjs +0 -16
  211. package/dist/lib/browser/chunk-W2KNYJD6.mjs.map +0 -7
  212. package/dist/lib/browser/intent-resolver-BGADCHVM.mjs +0 -30
  213. package/dist/lib/browser/intent-resolver-BGADCHVM.mjs.map +0 -7
  214. package/dist/lib/browser/react-surface-HMJS5FSS.mjs +0 -34
  215. package/dist/lib/browser/react-surface-HMJS5FSS.mjs.map +0 -7
  216. package/dist/lib/browser/transcriber-OYPLZFG5.mjs.map +0 -7
  217. package/dist/lib/node/TranscriptContainer-KIG3GMAB.cjs +0 -32
  218. package/dist/lib/node/TranscriptContainer-KIG3GMAB.cjs.map +0 -7
  219. package/dist/lib/node/chunk-3PYT3BDM.cjs +0 -40
  220. package/dist/lib/node/chunk-3PYT3BDM.cjs.map +0 -7
  221. package/dist/lib/node/chunk-6LW5RA3K.cjs +0 -75
  222. package/dist/lib/node/chunk-6LW5RA3K.cjs.map +0 -7
  223. package/dist/lib/node/chunk-AFUZI63A.cjs +0 -42
  224. package/dist/lib/node/chunk-AFUZI63A.cjs.map +0 -7
  225. package/dist/lib/node/chunk-CVUN3UO7.cjs +0 -778
  226. package/dist/lib/node/chunk-CVUN3UO7.cjs.map +0 -7
  227. package/dist/lib/node/chunk-FKDJNJ57.cjs +0 -35
  228. package/dist/lib/node/chunk-FKDJNJ57.cjs.map +0 -7
  229. package/dist/lib/node/chunk-ZFAUMZXE.cjs +0 -518
  230. package/dist/lib/node/chunk-ZFAUMZXE.cjs.map +0 -7
  231. package/dist/lib/node/index.cjs +0 -133
  232. package/dist/lib/node/index.cjs.map +0 -7
  233. package/dist/lib/node/intent-resolver-LL3TTI4H.cjs +0 -45
  234. package/dist/lib/node/intent-resolver-LL3TTI4H.cjs.map +0 -7
  235. package/dist/lib/node/meta.json +0 -1
  236. package/dist/lib/node/react-surface-N25TBBG4.cjs +0 -56
  237. package/dist/lib/node/react-surface-N25TBBG4.cjs.map +0 -7
  238. package/dist/lib/node/transcriber-6J4FVFSZ.cjs +0 -68
  239. package/dist/lib/node/transcriber-6J4FVFSZ.cjs.map +0 -7
  240. package/dist/lib/node/types/index.cjs +0 -36
  241. package/dist/lib/node/types/index.cjs.map +0 -7
  242. package/dist/lib/node-esm/chunk-56QHOX4A.mjs.map +0 -7
  243. package/dist/lib/node-esm/chunk-FH75X4JC.mjs +0 -56
  244. package/dist/lib/node-esm/chunk-FH75X4JC.mjs.map +0 -7
  245. package/dist/lib/node-esm/chunk-MFJPEIVB.mjs +0 -17
  246. package/dist/lib/node-esm/chunk-MFJPEIVB.mjs.map +0 -7
  247. package/dist/lib/node-esm/chunk-PRL64SRU.mjs.map +0 -7
  248. package/dist/lib/node-esm/chunk-TXMDLLBR.mjs +0 -21
  249. package/dist/lib/node-esm/chunk-TXMDLLBR.mjs.map +0 -7
  250. package/dist/lib/node-esm/intent-resolver-5LVCYSJS.mjs +0 -31
  251. package/dist/lib/node-esm/intent-resolver-5LVCYSJS.mjs.map +0 -7
  252. package/dist/lib/node-esm/react-surface-JGQSYGRR.mjs +0 -35
  253. package/dist/lib/node-esm/react-surface-JGQSYGRR.mjs.map +0 -7
  254. package/dist/lib/node-esm/transcriber-TVG2MBBN.mjs.map +0 -7
  255. package/dist/types/src/capabilities/capabilities.d.ts +0 -17
  256. package/dist/types/src/capabilities/capabilities.d.ts.map +0 -1
  257. package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
  258. package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
  259. package/dist/types/src/capabilities/react-surface.d.ts +0 -4
  260. package/dist/types/src/capabilities/react-surface.d.ts.map +0 -1
  261. package/dist/types/src/capabilities/transcriber.d.ts +0 -8
  262. package/dist/types/src/capabilities/transcriber.d.ts.map +0 -1
  263. package/dist/types/src/types/schema.d.ts +0 -41
  264. package/dist/types/src/types/schema.d.ts.map +0 -1
  265. package/src/capabilities/capabilities.ts +0 -33
  266. package/src/capabilities/intent-resolver.ts +0 -24
  267. package/src/capabilities/react-surface.tsx +0 -22
  268. package/src/capabilities/transcriber.ts +0 -76
  269. package/src/types/schema.ts +0 -41
  270. /package/dist/lib/browser/{TranscriptContainer-H3AZQ4CQ.mjs.map → TranscriptContainer-MV3JBKLS.mjs.map} +0 -0
  271. /package/dist/lib/{node-esm/TranscriptContainer-G75LDEO5.mjs.map → browser/blueprints/index.mjs.map} +0 -0
  272. /package/dist/lib/browser/{chunk-UDCCT32F.mjs.map → chunk-RUKY36XW.mjs.map} +0 -0
  273. /package/dist/lib/node-esm/{chunk-MFJO7EKD.mjs.map → chunk-SNZAN34I.mjs.map} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/transcriber/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,WAAW,uQAAgE,CAAC"}
@@ -0,0 +1,9 @@
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capability } from '@dxos/app-framework';
3
+ import { TranscriptionCapabilities } from '../../types';
4
+ /**
5
+ * Records audio while user is speaking and transcribes it after user is done speaking.
6
+ */
7
+ declare const _default: (props?: void | undefined) => Effect.Effect<[Capability.Capability<Capability.InterfaceDef<TranscriptionCapabilities.GetTranscriber>>, Capability.Capability<Capability.InterfaceDef<TranscriptionCapabilities.GetTranscriptionManager>>], Error, Capability.Service>;
8
+ export default _default;
9
+ //# sourceMappingURL=transcriber.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transcriber.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/transcriber/transcriber.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAI/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAoBxD;;GAEG;;AACH,wBAmDE"}
@@ -1,20 +1,17 @@
1
1
  import React from 'react';
2
- import { type Space } from '@dxos/react-client/echo';
3
- import { type Identity } from '@dxos/react-client/halo';
4
2
  import { type ThemedClassName } from '@dxos/react-ui';
5
- import { type DataType } from '@dxos/schema';
3
+ import { type Message, type Transcript } from '@dxos/types';
6
4
  import { type SerializationModel } from '../../model';
7
- import { type TranscriptType } from '../../types';
8
- export declare const renderMarkdown: (identities: Identity[]) => (message: DataType.Message, index: number, debug?: boolean) => string[];
9
- export type TranscriptProps = ThemedClassName<{
10
- transcript?: TranscriptType;
11
- space?: Space;
12
- model: SerializationModel<DataType.Message>;
5
+ import { renderByline } from '../../util';
6
+ export { renderByline };
7
+ export type TranscriptViewProps = ThemedClassName<{
8
+ transcript?: Transcript.Transcript;
9
+ model: SerializationModel<Message.Message>;
13
10
  attendableId?: string;
14
11
  ignoreAttention?: boolean;
15
12
  }>;
16
13
  /**
17
14
  * Transcript component implemented using the editor.
18
15
  */
19
- export declare const Transcript: ({ classNames, transcript: object, space, model, attendableId, ignoreAttention, }: TranscriptProps) => React.JSX.Element;
16
+ export declare const TranscriptView: ({ classNames, transcript: object, model }: TranscriptViewProps) => React.JSX.Element;
20
17
  //# sourceMappingURL=Transcript.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Transcript.d.ts","sourceRoot":"","sources":["../../../../../src/components/Transcript/Transcript.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAc,KAAK,eAAe,EAAmB,MAAM,gBAAgB,CAAC;AAYnF,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAC;AAI7C,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,eAAO,MAAM,cAAc,GACxB,YAAY,QAAQ,EAAE,MACtB,SAAS,QAAQ,CAAC,OAAO,EAAE,OAAO,MAAM,EAAE,eAAa,KAAG,MAAM,EAqBhE,CAAC;AAEJ,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC;IAC5C,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,KAAK,EAAE,kBAAkB,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IAE5C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,UAAU,GAAI,kFAOxB,eAAe,sBA4BjB,CAAC"}
1
+ {"version":3,"file":"Transcript.d.ts","sourceRoot":"","sources":["../../../../../src/components/Transcript/Transcript.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,eAAe,EAAmB,MAAM,gBAAgB,CAAC;AAEvE,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAa5D,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAI1C,OAAO,EAAE,YAAY,EAAE,CAAC;AAExB,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC;IAChD,UAAU,CAAC,EAAE,UAAU,CAAC,UAAU,CAAC;IACnC,KAAK,EAAE,kBAAkB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAE3C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,2CAA2C,mBAAmB,sBA0B5F,CAAC"}
@@ -1,24 +1,40 @@
1
- import '@dxos-theme';
2
- import { type Meta, type StoryObj } from '@storybook/react';
1
+ import { type StoryObj } from '@storybook/react-vite';
3
2
  import React from 'react';
4
- import { Key } from '@dxos/echo';
5
- import { DataType } from '@dxos/schema';
6
- import { type TranscriptProps } from './Transcript';
3
+ import { type Message } from '@dxos/types';
4
+ import { type TranscriptViewProps } from './Transcript';
7
5
  type StoryProps = {
8
- messages?: DataType.Message[];
9
- } & Pick<TranscriptProps, 'ignoreAttention' | 'attendableId'>;
6
+ messages?: Message.Message[];
7
+ } & Pick<TranscriptViewProps, 'ignoreAttention' | 'attendableId'>;
10
8
  /**
11
- * Queue story mutates queue with model adapter.
9
+ * Basic story mutates array of messages.
12
10
  */
13
- declare const QueueStory: ({ messages: initialMessages, queueId, onReset, ...props }: StoryProps & {
14
- queueId: Key.ObjectId;
15
- onReset: () => void;
16
- }) => React.JSX.Element;
17
- declare const meta: Meta<typeof QueueStory>;
11
+ declare const BasicStory: ({ messages: initialMessages, ...props }: StoryProps) => React.JSX.Element;
12
+ /**
13
+ * Wrapper remounts on refresh to reload queue.
14
+ */
15
+ declare const QueueStoryWrapper: () => React.JSX.Element;
16
+ declare const meta: {
17
+ title: string;
18
+ decorators: import("@storybook/react").Decorator[];
19
+ parameters: {
20
+ layout: string;
21
+ translations: [{
22
+ readonly 'en-US': {
23
+ readonly [meta.id]: {
24
+ readonly 'plugin name': "Transcription";
25
+ readonly 'transcript companion label': "Transcript";
26
+ readonly 'delete button': "Delete";
27
+ readonly 'bookmark button': "Bookmark";
28
+ readonly 'scroll to end label': "Scroll to latest";
29
+ readonly 'settings entity extraction label': "Entity extraction";
30
+ };
31
+ };
32
+ }];
33
+ };
34
+ };
18
35
  export default meta;
19
- type Story = StoryObj<typeof QueueStory>;
20
- export declare const Default: Story;
21
- export declare const Empty: Story;
22
- export declare const WithQueue: Story;
23
- export declare const WithEntityExtractionQueue: Story;
36
+ declare const DefaultStory: (props: StoryProps) => React.JSX.Element;
37
+ export declare const Default: StoryObj<typeof DefaultStory>;
38
+ export declare const Empty: StoryObj<typeof BasicStory>;
39
+ export declare const WithQueue: StoryObj<typeof QueueStoryWrapper>;
24
40
  //# sourceMappingURL=Transcript.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Transcript.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Transcript/Transcript.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAAgD,MAAM,OAAO,CAAC;AAIrE,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAWjC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAIxC,OAAO,EAA8B,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AA6ChF,KAAK,UAAU,GAAG;IAAE,QAAQ,CAAC,EAAE,QAAQ,CAAC,OAAO,EAAE,CAAA;CAAE,GAAG,IAAI,CAAC,eAAe,EAAE,iBAAiB,GAAG,cAAc,CAAC,CAAC;AA0DhH;;GAEG;AACH,QAAA,MAAM,UAAU,GAAI,2DAKjB,UAAU,GAAG;IAAE,OAAO,EAAE,GAAG,CAAC,QAAQ,CAAC;IAAC,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,sBAiB7D,CAAC;AA0BF,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,UAAU,CAwBjC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAC;AAEzC,eAAO,MAAM,OAAO,EAAE,KAOrB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAMnB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAMvB,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,KAMvC,CAAC"}
1
+ {"version":3,"file":"Transcript.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Transcript/Transcript.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAGjE,OAAO,KAAgD,MAAM,OAAO,CAAC;AAarE,OAAO,EAAqB,KAAK,OAAO,EAAwB,MAAM,aAAa,CAAC;AAapF,OAAO,EAAkB,KAAK,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAoCxE,KAAK,UAAU,GAAG;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAC,OAAO,EAAE,CAAA;CAAE,GAAG,IAAI,CAAC,mBAAmB,EAAE,iBAAiB,GAAG,cAAc,CAAC,CAAC;AAEnH;;GAEG;AACH,QAAA,MAAM,UAAU,GAAI,yCAA8C,UAAU,sBAoD3E,CAAC;AAiCF;;GAEG;AACH,QAAA,MAAM,iBAAiB,yBAQtB,CAAC;AAEF,QAAA,MAAM,IAAI;;;;;;;yBAtKa,CAAO,IAAI,CAAC,EAAE,CAAC;;;;;;;;;;;CA8LtB,CAAC;AAEjB,eAAe,IAAI,CAAC;AAGpB,QAAA,MAAM,YAAY,GAAI,OAAO,UAAU,sBAStC,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,OAAO,YAAY,CAMjD,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,QAAQ,CAAC,OAAO,UAAU,CAM7C,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,OAAO,iBAAiB,CAMxD,CAAC"}
@@ -1,21 +1,21 @@
1
- import { Schema } from 'effect';
1
+ import * as Schema from 'effect/Schema';
2
2
  import { type FC } from 'react';
3
3
  import { Type } from '@dxos/echo';
4
4
  import { type ThemedClassName } from '@dxos/react-ui';
5
5
  /**
6
6
  * Transcription block (from single speaker).
7
7
  */
8
- declare const TranscriptBlock: Type.obj<Schema.Struct<{
9
- id: typeof Schema.String;
10
- authorName: Schema.optional<typeof Schema.String>;
11
- authorHue: Schema.optional<typeof Schema.String>;
12
- segments: Schema.Array$<Schema.Struct<{
13
- started: typeof Schema.String;
14
- text: typeof Schema.String;
15
- }>>;
16
- }>>;
8
+ declare const TranscriptBlock: Type.Obj<{
9
+ readonly id: string;
10
+ readonly segments: readonly {
11
+ readonly text: string;
12
+ readonly started: string;
13
+ }[];
14
+ readonly authorName?: string | undefined;
15
+ readonly authorHue?: string | undefined;
16
+ }, Schema.Struct.Fields>;
17
17
  type TranscriptBlock = Schema.Schema.Type<typeof TranscriptBlock>;
18
- export type TranscriptProps = ThemedClassName<{
18
+ export type TranscriptViewProps = ThemedClassName<{
19
19
  blocks?: TranscriptBlock[];
20
20
  attendableId?: string;
21
21
  ignoreAttention?: boolean;
@@ -23,6 +23,6 @@ export type TranscriptProps = ThemedClassName<{
23
23
  /**
24
24
  * @@deprecated
25
25
  */
26
- export declare const Transcript: FC<TranscriptProps>;
26
+ export declare const Transcript: FC<TranscriptViewProps>;
27
27
  export {};
28
28
  //# sourceMappingURL=OldTranscript.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"OldTranscript.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Transcript/deprecated/OldTranscript.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAc,EAAE,KAAK,EAAE,EAAsE,MAAM,OAAO,CAAC;AAG3G,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,EAAc,KAAK,eAAe,EAAkB,MAAM,gBAAgB,CAAC;AAyBlF;;GAEG;AACH,QAAA,MAAM,eAAe;;;;;;;;GAUpB,CAAC;AAEF,KAAK,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,eAAe,CAAC,CAAC;AAkElE,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC;IAC5C,MAAM,CAAC,EAAE,eAAe,EAAE,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAqI1C,CAAC"}
1
+ {"version":3,"file":"OldTranscript.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Transcript/deprecated/OldTranscript.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAc,EAAE,KAAK,EAAE,EAAsE,MAAM,OAAO,CAAC;AAG3G,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,EAAc,KAAK,eAAe,EAAkB,MAAM,gBAAgB,CAAC;AAyBlF;;GAEG;AACH,QAAA,MAAM,eAAe;;;;;;;;wBAUpB,CAAC;AAEF,KAAK,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,eAAe,CAAC,CAAC;AAkElE,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC;IAChD,MAAM,CAAC,EAAE,eAAe,EAAE,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,mBAAmB,CAqI9C,CAAC"}
@@ -1,19 +1,15 @@
1
1
  import { type Extension } from '@codemirror/state';
2
- import { type RenderCallback } from '@dxos/react-ui-editor';
3
- import { type DataType } from '@dxos/schema';
2
+ import { type Message } from '@dxos/types';
4
3
  import { type SerializationModel } from '../../model';
5
4
  /**
6
5
  * Data structure that maps Chunks queue to lines with transcript state.
7
6
  */
8
7
  export type TranscriptOptions = {
9
- model: SerializationModel<DataType.Message>;
8
+ model: SerializationModel<Message.Message>;
10
9
  started?: Date;
11
- renderButton?: RenderCallback<{
12
- onClick: () => void;
13
- }>;
14
10
  };
15
11
  /**
16
12
  * Scrolling transcript with timestamps.
17
13
  */
18
- export declare const transcript: ({ model, started, renderButton }: TranscriptOptions) => Extension;
14
+ export declare const transcript: ({ model, started }: TranscriptOptions) => Extension;
19
15
  //# sourceMappingURL=transcript-extension.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"transcript-extension.d.ts","sourceRoot":"","sources":["../../../../../src/components/Transcript/transcript-extension.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,mBAAmB,CAAC;AAMpE,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7C,OAAO,EAAmB,KAAK,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEvE;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,kBAAkB,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IAC5C,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,YAAY,CAAC,EAAE,cAAc,CAAC;QAAE,OAAO,EAAE,MAAM,IAAI,CAAA;KAAE,CAAC,CAAC;CACxD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU,GAAI,kCAAkC,iBAAiB,KAAG,SA0JhF,CAAC"}
1
+ {"version":3,"file":"transcript-extension.d.ts","sourceRoot":"","sources":["../../../../../src/components/Transcript/transcript-extension.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,mBAAmB,CAAC;AAMpE,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C,OAAO,EAAmB,KAAK,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEvE;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,kBAAkB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAC3C,OAAO,CAAC,EAAE,IAAI,CAAC;CAChB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU,GAAI,oBAAoB,iBAAiB,KAAG,SA2HlE,CAAC"}
@@ -1,8 +1,7 @@
1
- import { type FC } from 'react';
2
- import { type TranscriptType } from '../types';
3
- export declare const TranscriptionContainer: FC<{
4
- role: string;
5
- transcript: TranscriptType;
6
- }>;
1
+ import React from 'react';
2
+ import { type SurfaceComponentProps } from '@dxos/app-toolkit/ui';
3
+ import { type Transcript } from '@dxos/types';
4
+ export type TranscriptionContainerProps = SurfaceComponentProps<Transcript.Transcript>;
5
+ export declare const TranscriptionContainer: ({ role, subject: transcript }: TranscriptionContainerProps) => React.JSX.Element;
7
6
  export default TranscriptionContainer;
8
7
  //# sourceMappingURL=TranscriptContainer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TranscriptContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/TranscriptContainer.tsx"],"names":[],"mappings":"AAIA,OAAc,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AASvC,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,eAAO,MAAM,sBAAsB,EAAE,EAAE,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,cAAc,CAAA;CAAE,CAYnF,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"TranscriptContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/TranscriptContainer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAIlE,OAAO,EAAgB,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAO5D,MAAM,MAAM,2BAA2B,GAAG,qBAAqB,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;AAEvF,eAAO,MAAM,sBAAsB,GAAI,+BAA+B,2BAA2B,sBAYhG,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
@@ -1,7 +1,4 @@
1
1
  export * from './Transcript';
2
2
  export * from './TranscriptContainer';
3
- export declare const TranscriptContainer: import("react").LazyExoticComponent<import("react").FC<{
4
- role: string;
5
- transcript: import("../types").TranscriptType;
6
- }>>;
3
+ export declare const TranscriptContainer: import("react").LazyExoticComponent<({ role, subject: transcript }: import("./TranscriptContainer").TranscriptionContainerProps) => import("react").JSX.Element>;
7
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAMA,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AAEtC,eAAO,MAAM,mBAAmB;;;GAA8C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAMA,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AAEtC,eAAO,MAAM,mBAAmB,kKAA8C,CAAC"}
@@ -1,17 +1,18 @@
1
- import '@dxos-theme';
2
- import { type Meta, type StoryObj } from '@storybook/react';
1
+ import { type StoryObj } from '@storybook/react-vite';
3
2
  import React from 'react';
4
- import { type MediaStreamRecorderParams, type TranscriberParams } from '../../transcriber';
3
+ import { type MediaStreamRecorderProps, type TranscriberProps } from '../../transcriber';
5
4
  declare const AudioFile: ({ detectSpeaking, audioUrl, normalizeSentences, transcriberConfig, recorderConfig, audioConstraints, }: {
6
5
  detectSpeaking?: boolean;
7
6
  normalizeSentences?: boolean;
8
7
  audioUrl: string;
9
- transcriberConfig?: TranscriberParams["config"];
10
- recorderConfig?: MediaStreamRecorderParams["config"];
8
+ transcriberConfig?: TranscriberProps["config"];
9
+ recorderConfig?: MediaStreamRecorderProps["config"];
11
10
  audioConstraints?: MediaTrackConstraints;
12
11
  }) => React.JSX.Element;
13
- declare const meta: Meta<typeof AudioFile>;
12
+ declare const meta: {
13
+ title: string;
14
+ decorators: import("@storybook/react").Decorator[];
15
+ };
14
16
  export default meta;
15
17
  export declare const Default: StoryObj<typeof AudioFile>;
16
- export declare const WithSentenceNormalization: StoryObj<typeof AudioFile>;
17
18
  //# sourceMappingURL=FileTranscription.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FileTranscription.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/stories/FileTranscription.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAA4D,MAAM,OAAO,CAAC;AA6BjF,OAAO,EAAE,KAAK,yBAAyB,EAAE,KAAK,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAG3F,QAAA,MAAM,SAAS,GAAI,wGAOhB;IACD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,CAAC,EAAE,iBAAiB,CAAC,QAAQ,CAAC,CAAC;IAChD,cAAc,CAAC,EAAE,yBAAyB,CAAC,QAAQ,CAAC,CAAC;IACrD,gBAAgB,CAAC,EAAE,qBAAqB,CAAC;CAC1C,sBA0HA,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CA2BhC,CAAC;AAEF,eAAe,IAAI,CAAC;AAYpB,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,OAAO,SAAS,CAU9C,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,QAAQ,CAAC,OAAO,SAAS,CAWhE,CAAC"}
1
+ {"version":3,"file":"FileTranscription.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/stories/FileTranscription.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,KAA4D,MAAM,OAAO,CAAC;AAsBjF,OAAO,EAAE,KAAK,wBAAwB,EAAE,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAOzF,QAAA,MAAM,SAAS,GAAI,wGAOhB;IACD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,CAAC,EAAE,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IAC/C,cAAc,CAAC,EAAE,wBAAwB,CAAC,QAAQ,CAAC,CAAC;IACpD,gBAAgB,CAAC,EAAE,qBAAqB,CAAC;CAC1C,sBAsIA,CAAC;AAEF,QAAA,MAAM,IAAI;;;CA0BM,CAAC;AAEjB,eAAe,IAAI,CAAC;AAcpB,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,OAAO,SAAS,CAU9C,CAAC"}
@@ -1,10 +1,14 @@
1
- import '@dxos-theme';
2
- import { type StoryObj, type Meta } from '@storybook/react';
1
+ import { type StoryObj } from '@storybook/react-vite';
3
2
  import React from 'react';
4
- declare const SpeechRecognition: ({ keywords }: {
3
+ type StoryProps = {
5
4
  keywords: string[];
6
- }) => React.JSX.Element;
7
- declare const meta: Meta<typeof SpeechRecognition>;
5
+ };
6
+ declare const meta: {
7
+ title: string;
8
+ render: ({ keywords }: StoryProps) => React.JSX.Element;
9
+ decorators: import("@storybook/react").Decorator[];
10
+ };
8
11
  export default meta;
9
- export declare const SpeechRecognitionAPI: StoryObj<typeof SpeechRecognition>;
12
+ type Story = StoryObj<typeof meta>;
13
+ export declare const SpeechRecognitionAPI: Story;
10
14
  //# sourceMappingURL=KeyWordRecognition.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"KeyWordRecognition.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/stories/KeyWordRecognition.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAAuC,MAAM,OAAO,CAAC;AAY5D,QAAA,MAAM,iBAAiB,GAAI,cAAc;IAAE,QAAQ,EAAE,MAAM,EAAE,CAAA;CAAE,sBA8F9D,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,iBAAiB,CAGxC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,OAAO,iBAAiB,CAKnE,CAAC"}
1
+ {"version":3,"file":"KeyWordRecognition.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/stories/KeyWordRecognition.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAuC,MAAM,OAAO,CAAC;AAY5D,KAAK,UAAU,GAAG;IAChB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AAkGF,QAAA,MAAM,IAAI;;2BAhG0B,UAAU;;CAoGT,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,oBAAoB,EAAE,KAIlC,CAAC"}
@@ -1,19 +1,20 @@
1
- import '@dxos-theme';
2
- import { type Meta, type StoryObj } from '@storybook/react';
1
+ import { type StoryObj } from '@storybook/react-vite';
3
2
  import React from 'react';
4
- import { type MediaStreamRecorderParams, type TranscriberParams } from '../../transcriber';
3
+ import { type MediaStreamRecorderProps, type TranscriberProps } from '../../transcriber';
5
4
  type StoryProps = {
6
5
  detectSpeaking?: boolean;
7
- transcriberConfig: TranscriberParams['config'];
8
- recorderConfig: MediaStreamRecorderParams['config'];
6
+ transcriberConfig: TranscriberProps['config'];
7
+ recorderConfig: MediaStreamRecorderProps['config'];
9
8
  audioConstraints?: MediaTrackConstraints;
10
9
  entityExtraction: 'none' | 'ner' | 'llm';
11
10
  };
12
- declare const DefaultStory: ({ detectSpeaking, entityExtraction, transcriberConfig, recorderConfig, audioConstraints, }: StoryProps) => React.JSX.Element;
13
- declare const meta: Meta<typeof DefaultStory>;
11
+ declare const meta: {
12
+ title: string;
13
+ render: ({ detectSpeaking, entityExtraction, transcriberConfig, recorderConfig, audioConstraints, }: StoryProps) => React.JSX.Element;
14
+ decorators: import("@storybook/react").Decorator[];
15
+ };
14
16
  export default meta;
15
- type Story = StoryObj<typeof DefaultStory>;
17
+ type Story = StoryObj<typeof meta>;
16
18
  export declare const Default: Story;
17
- export declare const EntityExtraction: Story;
18
19
  export declare const SpeechDetection: Story;
19
20
  //# sourceMappingURL=MicrophoneTranscription.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MicrophoneTranscription.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/stories/MicrophoneTranscription.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAAoD,MAAM,OAAO,CAAC;AAmCzE,OAAO,EAAE,KAAK,yBAAyB,EAAE,KAAK,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAY3F,KAAK,UAAU,GAAG;IAChB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,iBAAiB,EAAE,iBAAiB,CAAC,QAAQ,CAAC,CAAC;IAC/C,cAAc,EAAE,yBAAyB,CAAC,QAAQ,CAAC,CAAC;IACpD,gBAAgB,CAAC,EAAE,qBAAqB,CAAC;IACzC,gBAAgB,EAAE,MAAM,GAAG,KAAK,GAAG,KAAK,CAAC;CAC1C,CAAC;AAEF,QAAA,MAAM,YAAY,GAAI,4FAMnB,UAAU,sBA0HZ,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CAyCnC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,YAAY,CAAC,CAAC;AAE3C,eAAO,MAAM,OAAO,EAAE,KAYrB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAY9B,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAY7B,CAAC"}
1
+ {"version":3,"file":"MicrophoneTranscription.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/stories/MicrophoneTranscription.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,KAAoD,MAAM,OAAO,CAAC;AA4BzE,OAAO,EAAE,KAAK,wBAAwB,EAAE,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAgBzF,KAAK,UAAU,GAAG;IAChB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,iBAAiB,EAAE,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IAC9C,cAAc,EAAE,wBAAwB,CAAC,QAAQ,CAAC,CAAC;IACnD,gBAAgB,CAAC,EAAE,qBAAqB,CAAC;IACzC,gBAAgB,EAAE,MAAM,GAAG,KAAK,GAAG,KAAK,CAAC;CAC1C,CAAC;AAuIF,QAAA,MAAM,IAAI;;yGA/HP,UAAU;;CAyKwB,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAYrB,CAAC;AAkBF,eAAO,MAAM,eAAe,EAAE,KAY7B,CAAC"}
@@ -1,11 +1,12 @@
1
1
  import '@dxos-theme';
2
2
  import { type Dispatch, type FC, type RefObject, type SetStateAction } from 'react';
3
- import { type DataType } from '@dxos/schema';
3
+ import { type Message } from '@dxos/types';
4
4
  import { type SerializationModel } from '../../model';
5
5
  export declare const TranscriptionStory: FC<{
6
- model: SerializationModel<DataType.Message>;
6
+ model: SerializationModel<Message.Message>;
7
+ disabled?: boolean;
7
8
  running: boolean;
8
9
  onRunningChange: Dispatch<SetStateAction<boolean>>;
9
- audioRef?: RefObject<HTMLAudioElement>;
10
+ audioRef?: RefObject<HTMLAudioElement | null>;
10
11
  }>;
11
12
  //# sourceMappingURL=TranscriptionStory.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TranscriptionStory.d.ts","sourceRoot":"","sources":["../../../../../src/components/stories/TranscriptionStory.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAc,EAAE,KAAK,QAAQ,EAAE,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAK3F,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7C,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAGtD,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC;IAClC,KAAK,EAAE,kBAAkB,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IAC5C,OAAO,EAAE,OAAO,CAAC;IACjB,eAAe,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IACnD,QAAQ,CAAC,EAAE,SAAS,CAAC,gBAAgB,CAAC,CAAC;CACxC,CAmBA,CAAC"}
1
+ {"version":3,"file":"TranscriptionStory.d.ts","sourceRoot":"","sources":["../../../../../src/components/stories/TranscriptionStory.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAc,EAAE,KAAK,QAAQ,EAAE,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAG3F,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAGtD,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC;IAClC,KAAK,EAAE,kBAAkB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAC3C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,eAAe,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IACnD,QAAQ,CAAC,EAAE,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;CAC/C,CAoBA,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { default as open } from './open';
2
+ export { default as summarize } from './summarize';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/functions/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,11 @@
1
+ declare const _default: import("@dxos/functions").FunctionDefinition<{
2
+ readonly transcript: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
3
+ readonly started?: string | undefined;
4
+ readonly ended?: string | undefined;
5
+ readonly queue: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>>;
6
+ }>;
7
+ }, {
8
+ readonly content: string;
9
+ }, import("@dxos/functions").FunctionServices>;
10
+ export default _default;
11
+ //# sourceMappingURL=open.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"open.d.ts","sourceRoot":"","sources":["../../../../src/functions/open.ts"],"names":[],"mappings":";;;;;;;;;AAaA,wBAuBG"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Summarize a transcript of a meeting.
3
+ */
4
+ declare const _default: import("@dxos/functions").FunctionDefinition<{
5
+ readonly transcript: string;
6
+ readonly notes?: string | undefined;
7
+ }, {
8
+ readonly summary: string;
9
+ }, import("@dxos/functions").FunctionServices>;
10
+ export default _default;
11
+ //# sourceMappingURL=summarize.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"summarize.d.ts","sourceRoot":"","sources":["../../../../src/functions/summarize.ts"],"names":[],"mappings":"AAgBA;;GAEG;;;;;;;AACH,wBAkDG"}
@@ -1 +1 @@
1
- {"version":3,"file":"useAudioFile.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useAudioFile.ts"],"names":[],"mappings":"AAUA,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,KAAK,CAAC,EAAE,gBAAgB,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,UAAU,MAAM,EAAE,cAAc,qBAAqB,KAAG,aA2EpF,CAAC"}
1
+ {"version":3,"file":"useAudioFile.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useAudioFile.ts"],"names":[],"mappings":"AAUA,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,KAAK,CAAC,EAAE,gBAAgB,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,UAAU,MAAM,EAAE,cAAc,qBAAqB,KAAG,aAuEpF,CAAC"}
@@ -4,5 +4,5 @@ import { type ChunkRenderer, SerializationModel } from '../model';
4
4
  /**
5
5
  * Model adapter for a queue.
6
6
  */
7
- export declare const useQueueModelAdapter: <T extends Obj.Any>(renderer: ChunkRenderer<T>, queue: Queue<T> | undefined, initialChunks?: T[]) => SerializationModel<T>;
7
+ export declare const useQueueModelAdapter: <T extends Obj.Unknown>(renderer: ChunkRenderer<T>, queue: Queue<T> | undefined, initialChunks?: T[]) => SerializationModel<T>;
8
8
  //# sourceMappingURL=useQueueModelAdapter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useQueueModelAdapter.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useQueueModelAdapter.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAErD,OAAO,EAAE,KAAK,aAAa,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAElE;;GAEG;AACH,eAAO,MAAM,oBAAoB,GAAI,CAAC,SAAS,GAAG,CAAC,GAAG,EACpD,UAAU,aAAa,CAAC,CAAC,CAAC,EAC1B,OAAO,KAAK,CAAC,CAAC,CAAC,GAAG,SAAS,EAC3B,gBAAe,CAAC,EAAO,KACtB,kBAAkB,CAAC,CAAC,CA+CtB,CAAC"}
1
+ {"version":3,"file":"useQueueModelAdapter.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useQueueModelAdapter.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAErD,OAAO,EAAE,KAAK,aAAa,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAElE;;GAEG;AACH,eAAO,MAAM,oBAAoB,GAAI,CAAC,SAAS,GAAG,CAAC,OAAO,EACxD,UAAU,aAAa,CAAC,CAAC,CAAC,EAC1B,OAAO,KAAK,CAAC,CAAC,CAAC,GAAG,SAAS,EAC3B,gBAAe,CAAC,EAAO,KACtB,kBAAkB,CAAC,CAAC,CA+CtB,CAAC"}
@@ -1,7 +1,7 @@
1
- import { TranscriptionCapabilities } from '../capabilities';
2
1
  import { type Transcriber } from '../transcriber';
2
+ import { TranscriptionCapabilities } from '../types';
3
3
  /**
4
4
  * Records audio while user is speaking and transcribes it after user is done speaking.
5
5
  */
6
- export declare const useTranscriber: ({ audioStreamTrack, onSegments, transcriberConfig, recorderConfig, }: Partial<TranscriptionCapabilities.GetTranscriberProps>) => Transcriber | undefined;
6
+ export declare const useTranscriber: ({ audioStreamTrack, recorderConfig, transcriberConfig, onSegments, }: Partial<TranscriptionCapabilities.GetTranscriberProps>) => Transcriber | undefined;
7
7
  //# sourceMappingURL=useTranscriber.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useTranscriber.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useTranscriber.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,sEAK5B,OAAO,CAAC,yBAAyB,CAAC,mBAAmB,CAAC,4BAmBxD,CAAC"}
1
+ {"version":3,"file":"useTranscriber.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useTranscriber.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAErD;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,sEAK5B,OAAO,CAAC,yBAAyB,CAAC,mBAAmB,CAAC,4BAwBxD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useVoiceInput.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useVoiceInput.ts"],"names":[],"mappings":"AAeA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAClC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,GAAI,sBAAsB,kBAAkB;;CA0CrE,CAAC"}
1
+ {"version":3,"file":"useVoiceInput.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useVoiceInput.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAClC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,GAAI,sBAAsB,kBAAkB;;CA0CrE,CAAC"}
@@ -1,4 +1,4 @@
1
- export { TranscriptionCapabilities } from './capabilities';
1
+ export { TranscriptionCapabilities } from './types';
2
2
  export * from './components';
3
3
  export * from './hooks';
4
4
  export * from './meta';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAE3D,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAE9B,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAEpD,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAE9B,cAAc,uBAAuB,CAAC"}
@@ -1,4 +1,3 @@
1
- import { type PluginMeta } from '@dxos/app-framework';
2
- export declare const TRANSCRIPTION_PLUGIN = "dxos.org/plugin/transcription";
3
- export declare const meta: PluginMeta;
1
+ import { type Plugin } from '@dxos/app-framework';
2
+ export declare const meta: Plugin.Meta;
4
3
  //# sourceMappingURL=meta.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD,eAAO,MAAM,oBAAoB,kCAAkC,CAAC;AAEpE,eAAO,MAAM,IAAI,EAAE,UAQlB,CAAC"}
1
+ {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAGlD,eAAO,MAAM,IAAI,EAAE,MAAM,CAAC,IAYzB,CAAC"}
@@ -1,10 +1,10 @@
1
1
  import { Resource } from '@dxos/context';
2
2
  import { type Queue } from '@dxos/echo-db';
3
- import { type FunctionExecutor } from '@dxos/functions';
4
- import { type DataType } from '@dxos/schema';
5
- export type SegmentsNormalizerParams = {
3
+ import { type FunctionExecutor } from '@dxos/functions-runtime';
4
+ import { type Message } from '@dxos/types';
5
+ export type SegmentsNormalizerProps = {
6
6
  functionExecutor: FunctionExecutor;
7
- queue: Queue<DataType.Message>;
7
+ queue: Queue<Message.Message>;
8
8
  startingCursor: QueueCursor;
9
9
  };
10
10
  export type QueueCursor = {
@@ -18,7 +18,7 @@ export declare class MessageNormalizer extends Resource {
18
18
  private _messagesToProcess;
19
19
  private _normalizationTask?;
20
20
  private _lastProcessedMessageIds?;
21
- constructor({ functionExecutor, queue, startingCursor }: SegmentsNormalizerParams);
21
+ constructor({ functionExecutor, queue, startingCursor }: SegmentsNormalizerProps);
22
22
  protected _open(): Promise<void>;
23
23
  private _processMessages;
24
24
  private _writeMessages;
@@ -1 +1 @@
1
- {"version":3,"file":"message-normalizer.d.ts","sourceRoot":"","sources":["../../../../src/segments-normalization/message-normalizer.ts"],"names":[],"mappings":"AAWA,OAAO,EAAkB,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAExD,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAC;AAQ7C,MAAM,MAAM,wBAAwB,GAAG;IACrC,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IAC/B,cAAc,EAAE,WAAW,CAAC;CAC7B,CAAC;AAGF,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAGF,qBAAa,iBAAkB,SAAQ,QAAQ;IAC7C,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAmB;IACrD,OAAO,CAAC,MAAM,CAA0B;IACxC,OAAO,CAAC,OAAO,CAAc;IAC7B,OAAO,CAAC,kBAAkB,CAA4B;IACtD,OAAO,CAAC,kBAAkB,CAAC,CAAe;IAC1C,OAAO,CAAC,wBAAwB,CAAC,CAAW;gBAEhC,EAAE,gBAAgB,EAAE,KAAK,EAAE,cAAc,EAAE,EAAE,wBAAwB;cAOxD,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;YAkBjC,gBAAgB;IAgC9B,OAAO,CAAC,cAAc;CAMvB"}
1
+ {"version":3,"file":"message-normalizer.d.ts","sourceRoot":"","sources":["../../../../src/segments-normalization/message-normalizer.ts"],"names":[],"mappings":"AASA,OAAO,EAAkB,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,aAAa,CAAC;AAQ3C,MAAM,MAAM,uBAAuB,GAAG;IACpC,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAC9B,cAAc,EAAE,WAAW,CAAC;CAC7B,CAAC;AAGF,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAGF,qBAAa,iBAAkB,SAAQ,QAAQ;IAC7C,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAmB;IACrD,OAAO,CAAC,MAAM,CAAyB;IACvC,OAAO,CAAC,OAAO,CAAc;IAC7B,OAAO,CAAC,kBAAkB,CAA4B;IACtD,OAAO,CAAC,kBAAkB,CAAC,CAAe;IAC1C,OAAO,CAAC,wBAAwB,CAAC,CAAW;gBAEhC,EAAE,gBAAgB,EAAE,KAAK,EAAE,cAAc,EAAE,EAAE,uBAAuB;cAOvD,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;YAyBjC,gBAAgB;IAgC9B,OAAO,CAAC,cAAc;CAMvB"}