@dxos/plugin-transcription 0.8.4-main.c4373fc → 0.8.4-main.c85a9c8dae

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