@dxos/plugin-transcription 0.8.4-main.72ec0f3 → 0.8.4-main.937b3ca

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