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