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