@dxos/plugin-transcription 0.8.4-main.5ea62a8 → 0.8.4-main.66e292d

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 (152) hide show
  1. package/dist/lib/browser/TranscriptContainer-OQFBAGSP.mjs +11 -0
  2. package/dist/lib/browser/{blueprint-definition-QQSGTX5F.mjs → blueprint-definition-GZ7NOODS.mjs} +24 -19
  3. package/dist/lib/browser/blueprint-definition-GZ7NOODS.mjs.map +7 -0
  4. package/dist/lib/browser/{chunk-TNEQFHIU.mjs → chunk-3MKZ2MNQ.mjs} +5 -5
  5. package/dist/lib/browser/chunk-3MKZ2MNQ.mjs.map +7 -0
  6. package/dist/lib/browser/{chunk-BA64VLLR.mjs → chunk-7GNN7E3U.mjs} +46 -66
  7. package/dist/lib/browser/chunk-7GNN7E3U.mjs.map +7 -0
  8. package/dist/lib/browser/{chunk-5I4BMOGE.mjs → chunk-C5YV3JZF.mjs} +129 -174
  9. package/dist/lib/browser/chunk-C5YV3JZF.mjs.map +7 -0
  10. package/dist/lib/browser/{chunk-26XDG6GQ.mjs → chunk-O33THH53.mjs} +2 -2
  11. package/dist/lib/browser/chunk-QOSZIUE2.mjs +32 -0
  12. package/dist/lib/browser/chunk-QOSZIUE2.mjs.map +7 -0
  13. package/dist/lib/browser/{chunk-3X7HP44M.mjs → chunk-VBUIO677.mjs} +8 -5
  14. package/dist/lib/browser/chunk-VBUIO677.mjs.map +7 -0
  15. package/dist/lib/browser/index.mjs +15 -18
  16. package/dist/lib/browser/index.mjs.map +3 -3
  17. package/dist/lib/browser/{intent-resolver-T3EGLS3L.mjs → intent-resolver-5CGCLOXB.mjs} +8 -8
  18. package/dist/lib/browser/intent-resolver-5CGCLOXB.mjs.map +7 -0
  19. package/dist/lib/browser/meta.json +1 -1
  20. package/dist/lib/browser/{react-surface-QYX74JNG.mjs → react-surface-OK55WK7J.mjs} +9 -11
  21. package/dist/lib/browser/react-surface-OK55WK7J.mjs.map +7 -0
  22. package/dist/lib/browser/{transcriber-JOOAQVYV.mjs → transcriber-6YDM5ZDT.mjs} +7 -7
  23. package/dist/lib/browser/{transcriber-JOOAQVYV.mjs.map → transcriber-6YDM5ZDT.mjs.map} +1 -1
  24. package/dist/lib/browser/types/index.mjs +3 -5
  25. package/dist/lib/node-esm/{TranscriptContainer-BUWK63SI.mjs → TranscriptContainer-GM47P6WH.mjs} +4 -4
  26. package/dist/lib/node-esm/{blueprint-definition-4PLCTH5Q.mjs → blueprint-definition-GAHQBYTF.mjs} +24 -19
  27. package/dist/lib/node-esm/blueprint-definition-GAHQBYTF.mjs.map +7 -0
  28. package/dist/lib/node-esm/{chunk-J5GQ3KGX.mjs → chunk-5JN2MHYA.mjs} +46 -66
  29. package/dist/lib/node-esm/chunk-5JN2MHYA.mjs.map +7 -0
  30. package/dist/lib/node-esm/{chunk-DT3AOC3E.mjs → chunk-IKGUNN3Z.mjs} +129 -174
  31. package/dist/lib/node-esm/chunk-IKGUNN3Z.mjs.map +7 -0
  32. package/dist/lib/node-esm/{chunk-NWD757KH.mjs → chunk-SSYFSLB7.mjs} +2 -2
  33. package/dist/lib/node-esm/{chunk-3QAIZGMW.mjs → chunk-SWUVPFKR.mjs} +5 -5
  34. package/dist/lib/node-esm/chunk-SWUVPFKR.mjs.map +7 -0
  35. package/dist/lib/node-esm/chunk-U4YPUD2F.mjs +33 -0
  36. package/dist/lib/node-esm/chunk-U4YPUD2F.mjs.map +7 -0
  37. package/dist/lib/node-esm/{chunk-QARUDLHN.mjs → chunk-YVNQN2J6.mjs} +8 -5
  38. package/dist/lib/node-esm/chunk-YVNQN2J6.mjs.map +7 -0
  39. package/dist/lib/node-esm/index.mjs +15 -18
  40. package/dist/lib/node-esm/index.mjs.map +3 -3
  41. package/dist/lib/node-esm/{intent-resolver-VDHCUAIO.mjs → intent-resolver-4H4CXIAL.mjs} +8 -8
  42. package/dist/lib/node-esm/intent-resolver-4H4CXIAL.mjs.map +7 -0
  43. package/dist/lib/node-esm/meta.json +1 -1
  44. package/dist/lib/node-esm/{react-surface-TM7XOQBR.mjs → react-surface-EK6K2MMD.mjs} +9 -11
  45. package/dist/lib/node-esm/react-surface-EK6K2MMD.mjs.map +7 -0
  46. package/dist/lib/node-esm/{transcriber-QPS55YP2.mjs → transcriber-CPD3FZ7M.mjs} +7 -7
  47. package/dist/lib/node-esm/{transcriber-QPS55YP2.mjs.map → transcriber-CPD3FZ7M.mjs.map} +1 -1
  48. package/dist/lib/node-esm/types/index.mjs +3 -5
  49. package/dist/types/src/TranscriptionPlugin.d.ts +1 -1
  50. package/dist/types/src/TranscriptionPlugin.d.ts.map +1 -1
  51. package/dist/types/src/capabilities/blueprint-definition.d.ts +1 -1
  52. package/dist/types/src/capabilities/capabilities.d.ts.map +1 -1
  53. package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -1
  54. package/dist/types/src/components/Transcript/Transcript.d.ts +5 -6
  55. package/dist/types/src/components/Transcript/Transcript.d.ts.map +1 -1
  56. package/dist/types/src/components/Transcript/Transcript.stories.d.ts +3 -5
  57. package/dist/types/src/components/Transcript/Transcript.stories.d.ts.map +1 -1
  58. package/dist/types/src/components/Transcript/deprecated/OldTranscript.d.ts +1 -1
  59. package/dist/types/src/components/Transcript/deprecated/OldTranscript.d.ts.map +1 -1
  60. package/dist/types/src/components/Transcript/transcript-extension.d.ts +3 -7
  61. package/dist/types/src/components/Transcript/transcript-extension.d.ts.map +1 -1
  62. package/dist/types/src/components/TranscriptContainer.d.ts +1 -1
  63. package/dist/types/src/components/TranscriptContainer.d.ts.map +1 -1
  64. package/dist/types/src/components/stories/FileTranscription.stories.d.ts +0 -2
  65. package/dist/types/src/components/stories/FileTranscription.stories.d.ts.map +1 -1
  66. package/dist/types/src/components/stories/KeyWordRecognition.stories.d.ts +0 -1
  67. package/dist/types/src/components/stories/KeyWordRecognition.stories.d.ts.map +1 -1
  68. package/dist/types/src/components/stories/MicrophoneTranscription.stories.d.ts +0 -2
  69. package/dist/types/src/components/stories/MicrophoneTranscription.stories.d.ts.map +1 -1
  70. package/dist/types/src/components/stories/TranscriptionStory.d.ts +3 -3
  71. package/dist/types/src/components/stories/TranscriptionStory.d.ts.map +1 -1
  72. package/dist/types/src/functions/open.d.ts +1 -1
  73. package/dist/types/src/functions/open.d.ts.map +1 -1
  74. package/dist/types/src/functions/summarize.d.ts +1 -1
  75. package/dist/types/src/functions/summarize.d.ts.map +1 -1
  76. package/dist/types/src/hooks/useAudioFile.d.ts.map +1 -1
  77. package/dist/types/src/hooks/useTranscriber.d.ts.map +1 -1
  78. package/dist/types/src/meta.d.ts +0 -1
  79. package/dist/types/src/meta.d.ts.map +1 -1
  80. package/dist/types/src/segments-normalization/message-normalizer.d.ts +3 -3
  81. package/dist/types/src/segments-normalization/message-normalizer.d.ts.map +1 -1
  82. package/dist/types/src/segments-normalization/normalization.d.ts +158 -158
  83. package/dist/types/src/segments-normalization/normalization.d.ts.map +1 -1
  84. package/dist/types/src/segments-normalization/utils.d.ts +2 -2
  85. package/dist/types/src/segments-normalization/utils.d.ts.map +1 -1
  86. package/dist/types/src/testing/testing.d.ts +6 -6
  87. package/dist/types/src/testing/testing.d.ts.map +1 -1
  88. package/dist/types/src/transcriber/transcriber.d.ts +2 -2
  89. package/dist/types/src/transcriber/transcriber.d.ts.map +1 -1
  90. package/dist/types/src/transcriber/transcription-manager.d.ts +3 -3
  91. package/dist/types/src/transcriber/transcription-manager.d.ts.map +1 -1
  92. package/dist/types/src/types/TranscriptAction.d.ts +2 -2
  93. package/dist/types/src/types/TranscriptAction.d.ts.map +1 -1
  94. package/dist/types/src/types/index.d.ts +0 -1
  95. package/dist/types/src/types/index.d.ts.map +1 -1
  96. package/dist/types/tsconfig.tsbuildinfo +1 -1
  97. package/package.json +64 -63
  98. package/src/TranscriptionPlugin.tsx +57 -58
  99. package/src/capabilities/capabilities.ts +3 -3
  100. package/src/capabilities/intent-resolver.ts +2 -1
  101. package/src/capabilities/react-surface.tsx +1 -1
  102. package/src/components/Transcript/Transcript.stories.tsx +29 -25
  103. package/src/components/Transcript/Transcript.tsx +20 -28
  104. package/src/components/Transcript/deprecated/OldTranscript.tsx +5 -5
  105. package/src/components/Transcript/transcript-extension.ts +11 -44
  106. package/src/components/TranscriptContainer.tsx +8 -8
  107. package/src/components/stories/FileTranscription.stories.tsx +33 -31
  108. package/src/components/stories/KeyWordRecognition.stories.tsx +4 -6
  109. package/src/components/stories/MicrophoneTranscription.stories.tsx +45 -40
  110. package/src/components/stories/TranscriptionStory.tsx +8 -9
  111. package/src/functions/open.ts +8 -7
  112. package/src/functions/summarize.ts +10 -4
  113. package/src/hooks/useAudioFile.ts +50 -45
  114. package/src/hooks/useTranscriber.ts +7 -2
  115. package/src/meta.ts +7 -4
  116. package/src/model/model.test.ts +11 -11
  117. package/src/segments-normalization/message-normalizer.ts +6 -6
  118. package/src/segments-normalization/normalization.test.ts +6 -6
  119. package/src/segments-normalization/normalization.ts +7 -7
  120. package/src/segments-normalization/utils.ts +2 -2
  121. package/src/testing/testing.ts +25 -20
  122. package/src/transcriber/transcriber.browser.test.ts +3 -3
  123. package/src/transcriber/transcriber.ts +3 -3
  124. package/src/transcriber/transcription-manager.ts +6 -6
  125. package/src/types/TranscriptAction.ts +3 -4
  126. package/src/types/index.ts +0 -1
  127. package/dist/lib/browser/TranscriptContainer-OX7OOODC.mjs +0 -11
  128. package/dist/lib/browser/blueprint-definition-QQSGTX5F.mjs.map +0 -7
  129. package/dist/lib/browser/chunk-3X7HP44M.mjs.map +0 -7
  130. package/dist/lib/browser/chunk-5I4BMOGE.mjs.map +0 -7
  131. package/dist/lib/browser/chunk-BA64VLLR.mjs.map +0 -7
  132. package/dist/lib/browser/chunk-HXVGV7T6.mjs +0 -63
  133. package/dist/lib/browser/chunk-HXVGV7T6.mjs.map +0 -7
  134. package/dist/lib/browser/chunk-TNEQFHIU.mjs.map +0 -7
  135. package/dist/lib/browser/intent-resolver-T3EGLS3L.mjs.map +0 -7
  136. package/dist/lib/browser/react-surface-QYX74JNG.mjs.map +0 -7
  137. package/dist/lib/node-esm/blueprint-definition-4PLCTH5Q.mjs.map +0 -7
  138. package/dist/lib/node-esm/chunk-3QAIZGMW.mjs.map +0 -7
  139. package/dist/lib/node-esm/chunk-DT3AOC3E.mjs.map +0 -7
  140. package/dist/lib/node-esm/chunk-J5GQ3KGX.mjs.map +0 -7
  141. package/dist/lib/node-esm/chunk-QARUDLHN.mjs.map +0 -7
  142. package/dist/lib/node-esm/chunk-W72HVQMD.mjs +0 -64
  143. package/dist/lib/node-esm/chunk-W72HVQMD.mjs.map +0 -7
  144. package/dist/lib/node-esm/intent-resolver-VDHCUAIO.mjs.map +0 -7
  145. package/dist/lib/node-esm/react-surface-TM7XOQBR.mjs.map +0 -7
  146. package/dist/types/src/types/Transcript.d.ts +0 -30
  147. package/dist/types/src/types/Transcript.d.ts.map +0 -1
  148. package/src/types/Transcript.ts +0 -44
  149. /package/dist/lib/browser/{TranscriptContainer-OX7OOODC.mjs.map → TranscriptContainer-OQFBAGSP.mjs.map} +0 -0
  150. /package/dist/lib/browser/{chunk-26XDG6GQ.mjs.map → chunk-O33THH53.mjs.map} +0 -0
  151. /package/dist/lib/node-esm/{TranscriptContainer-BUWK63SI.mjs.map → TranscriptContainer-GM47P6WH.mjs.map} +0 -0
  152. /package/dist/lib/node-esm/{chunk-NWD757KH.mjs.map → chunk-SSYFSLB7.mjs.map} +0 -0
@@ -1,65 +1,66 @@
1
- import { Schema } from 'effect';
1
+ import * as Schema from 'effect/Schema';
2
2
  declare const MessageWithRangeId: Schema.extend<import("@dxos/echo/Type").obj<Schema.Struct<{
3
3
  id: import("@dxos/keys").ObjectIdClass;
4
4
  parentMessage: Schema.optional<import("@dxos/keys").ObjectIdClass>;
5
5
  created: Schema.SchemaClass<string, string, never>;
6
6
  sender: Schema.mutable<Schema.Struct<{
7
- contact: Schema.optional<import("@dxos/echo/Type").ref<import("@dxos/echo/Type").obj<Schema.Struct<{
8
- fullName: Schema.optional<Schema.SchemaClass<string, string, never>>;
9
- preferredName: Schema.optional<Schema.SchemaClass<string, string, never>>;
10
- nickname: Schema.optional<Schema.SchemaClass<string, string, never>>;
11
- image: Schema.optional<Schema.SchemaClass<string, string, never>>;
12
- organization: Schema.optional<Schema.Schema<import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
13
- id: string;
14
- name?: string | undefined;
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> & {
15
14
  description?: string | undefined;
15
+ name?: string | undefined;
16
16
  status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
17
17
  image?: string | undefined;
18
18
  website?: string | undefined;
19
- }>, import("@dxos/echo-protocol").EncodedReference, never>>;
20
- jobTitle: Schema.optional<Schema.SchemaClass<string, string, never>>;
21
- department: Schema.optional<Schema.SchemaClass<string, string, never>>;
22
- notes: Schema.optional<Schema.SchemaClass<string, string, never>>;
23
- emails: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
24
- label: Schema.optional<typeof Schema.String>;
25
- value: Schema.refine<string, typeof Schema.String>;
26
- }>>>>;
27
- identities: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
28
- label: Schema.optional<typeof Schema.String>;
29
- value: typeof Schema.String;
30
- }>>>>;
31
- phoneNumbers: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
32
- label: Schema.optional<typeof Schema.String>;
33
- value: typeof Schema.String;
34
- }>>>>;
35
- addresses: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
36
- label: Schema.optional<typeof Schema.String>;
37
- value: Schema.Struct<{
38
- street: Schema.optional<Schema.SchemaClass<string, string, never>>;
39
- extended: Schema.optional<Schema.SchemaClass<string, string, never>>;
40
- locality: Schema.optional<Schema.SchemaClass<string, string, never>>;
41
- region: Schema.optional<Schema.SchemaClass<string, string, never>>;
42
- postalCode: Schema.optional<Schema.SchemaClass<string, string, never>>;
43
- postOfficeBoxNumber: Schema.optional<Schema.SchemaClass<string, string, never>>;
44
- country: Schema.optional<Schema.SchemaClass<string, string, never>>;
45
- }>;
46
- }>>>>;
47
- urls: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
48
- label: Schema.optional<typeof Schema.String>;
49
- value: Schema.refine<string, typeof Schema.String>;
50
- }>>>>;
51
- birthday: Schema.optional<Schema.SchemaClass<string, string, never>>;
52
- fields: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
53
- category: Schema.optional<typeof Schema.String>;
54
- label: typeof Schema.String;
55
- value: typeof Schema.String;
56
- }>>>>;
57
- }>>>>;
19
+ location?: readonly [number, number, (number | undefined)?] | undefined;
20
+ }> | undefined;
21
+ jobTitle?: string | undefined;
22
+ department?: string | undefined;
23
+ notes?: string | undefined;
24
+ emails?: {
25
+ readonly value: string;
26
+ readonly label?: string | undefined;
27
+ }[] | undefined;
28
+ identities?: {
29
+ readonly value: string;
30
+ readonly label?: string | undefined;
31
+ }[] | undefined;
32
+ phoneNumbers?: {
33
+ readonly value: string;
34
+ readonly label?: string | undefined;
35
+ }[] | undefined;
36
+ fields?: {
37
+ readonly value: string;
38
+ readonly label: string;
39
+ readonly category?: string | undefined;
40
+ }[] | undefined;
41
+ addresses?: {
42
+ readonly value: {
43
+ readonly street?: string | undefined;
44
+ readonly extended?: string | undefined;
45
+ readonly locality?: string | undefined;
46
+ readonly region?: string | undefined;
47
+ readonly postalCode?: string | undefined;
48
+ readonly postOfficeBoxNumber?: string | undefined;
49
+ readonly country?: string | undefined;
50
+ };
51
+ readonly label?: string | undefined;
52
+ }[] | undefined;
53
+ urls?: {
54
+ readonly value: string;
55
+ readonly label?: string | undefined;
56
+ }[] | undefined;
57
+ birthday?: string | undefined;
58
+ location?: readonly [number, number, (number | undefined)?] | undefined;
59
+ }>>;
58
60
  identityDid: Schema.optional<typeof Schema.String>;
59
61
  identityKey: Schema.optional<typeof Schema.String>;
60
62
  email: Schema.optional<typeof Schema.String>;
61
63
  name: Schema.optional<typeof Schema.String>;
62
- role: Schema.optional<Schema.Literal<["user", "assistant"]>>;
63
64
  }>>;
64
65
  blocks: Schema.mutable<Schema.Array$<Schema.Union<[Schema.mutable<Schema.TaggedStruct<"anchor", {
65
66
  pending: Schema.optional<typeof Schema.Boolean>;
@@ -95,10 +96,7 @@ declare const MessageWithRangeId: Schema.extend<import("@dxos/echo/Type").obj<Sc
95
96
  signature: Schema.optional<typeof Schema.String>;
96
97
  }>>, Schema.mutable<Schema.TaggedStruct<"reference", {
97
98
  pending: Schema.optional<typeof Schema.Boolean>;
98
- reference: import("@dxos/echo/Type").ref<Schema.Schema<import("@dxos/echo/Type").Expando, {
99
- [x: string]: any;
100
- id: string;
101
- }, never>>;
99
+ reference: import("@dxos/echo/internal").RefSchema<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {}>;
102
100
  }>>, Schema.mutable<Schema.TaggedStruct<"select", {
103
101
  pending: Schema.optional<typeof Schema.Boolean>;
104
102
  options: Schema.Array$<typeof Schema.String>;
@@ -133,12 +131,14 @@ declare const MessageWithRangeId: Schema.extend<import("@dxos/echo/Type").obj<Sc
133
131
  toolCallId: typeof Schema.String;
134
132
  name: typeof Schema.String;
135
133
  input: typeof Schema.String;
134
+ providerExecuted: typeof Schema.Boolean;
136
135
  }>>, Schema.mutable<Schema.TaggedStruct<"toolResult", {
137
136
  pending: Schema.optional<typeof Schema.Boolean>;
138
137
  toolCallId: typeof Schema.String;
139
138
  name: typeof Schema.String;
140
139
  result: Schema.optional<typeof Schema.String>;
141
140
  error: Schema.optional<typeof Schema.String>;
141
+ providerExecuted: typeof Schema.Boolean;
142
142
  }>>, Schema.mutable<Schema.TaggedStruct<"transcript", {
143
143
  pending: Schema.optional<typeof Schema.Boolean>;
144
144
  started: typeof Schema.String;
@@ -156,62 +156,63 @@ export declare const NormalizationInput: Schema.Struct<{
156
156
  parentMessage: Schema.optional<import("@dxos/keys").ObjectIdClass>;
157
157
  created: Schema.SchemaClass<string, string, never>;
158
158
  sender: Schema.mutable<Schema.Struct<{
159
- contact: Schema.optional<import("@dxos/echo/Type").ref<import("@dxos/echo/Type").obj<Schema.Struct<{
160
- fullName: Schema.optional<Schema.SchemaClass<string, string, never>>;
161
- preferredName: Schema.optional<Schema.SchemaClass<string, string, never>>;
162
- nickname: Schema.optional<Schema.SchemaClass<string, string, never>>;
163
- image: Schema.optional<Schema.SchemaClass<string, string, never>>;
164
- organization: Schema.optional<Schema.Schema<import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
165
- id: string;
166
- name?: string | undefined;
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> & {
167
166
  description?: string | undefined;
167
+ name?: string | undefined;
168
168
  status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
169
169
  image?: string | undefined;
170
170
  website?: string | undefined;
171
- }>, import("@dxos/echo-protocol").EncodedReference, never>>;
172
- jobTitle: Schema.optional<Schema.SchemaClass<string, string, never>>;
173
- department: Schema.optional<Schema.SchemaClass<string, string, never>>;
174
- notes: Schema.optional<Schema.SchemaClass<string, string, never>>;
175
- emails: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
176
- label: Schema.optional<typeof Schema.String>;
177
- value: Schema.refine<string, typeof Schema.String>;
178
- }>>>>;
179
- identities: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
180
- label: Schema.optional<typeof Schema.String>;
181
- value: typeof Schema.String;
182
- }>>>>;
183
- phoneNumbers: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
184
- label: Schema.optional<typeof Schema.String>;
185
- value: typeof Schema.String;
186
- }>>>>;
187
- addresses: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
188
- label: Schema.optional<typeof Schema.String>;
189
- value: Schema.Struct<{
190
- street: Schema.optional<Schema.SchemaClass<string, string, never>>;
191
- extended: Schema.optional<Schema.SchemaClass<string, string, never>>;
192
- locality: Schema.optional<Schema.SchemaClass<string, string, never>>;
193
- region: Schema.optional<Schema.SchemaClass<string, string, never>>;
194
- postalCode: Schema.optional<Schema.SchemaClass<string, string, never>>;
195
- postOfficeBoxNumber: Schema.optional<Schema.SchemaClass<string, string, never>>;
196
- country: Schema.optional<Schema.SchemaClass<string, string, never>>;
197
- }>;
198
- }>>>>;
199
- urls: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
200
- label: Schema.optional<typeof Schema.String>;
201
- value: Schema.refine<string, typeof Schema.String>;
202
- }>>>>;
203
- birthday: Schema.optional<Schema.SchemaClass<string, string, never>>;
204
- fields: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
205
- category: Schema.optional<typeof Schema.String>;
206
- label: typeof Schema.String;
207
- value: typeof Schema.String;
208
- }>>>>;
209
- }>>>>;
171
+ location?: readonly [number, number, (number | undefined)?] | undefined;
172
+ }> | undefined;
173
+ jobTitle?: string | undefined;
174
+ department?: string | undefined;
175
+ notes?: string | undefined;
176
+ emails?: {
177
+ readonly value: string;
178
+ readonly label?: string | undefined;
179
+ }[] | undefined;
180
+ identities?: {
181
+ readonly value: string;
182
+ readonly label?: string | undefined;
183
+ }[] | undefined;
184
+ phoneNumbers?: {
185
+ readonly value: string;
186
+ readonly label?: string | undefined;
187
+ }[] | undefined;
188
+ fields?: {
189
+ readonly value: string;
190
+ readonly label: string;
191
+ readonly category?: string | undefined;
192
+ }[] | undefined;
193
+ addresses?: {
194
+ readonly value: {
195
+ readonly street?: string | undefined;
196
+ readonly extended?: string | undefined;
197
+ readonly locality?: string | undefined;
198
+ readonly region?: string | undefined;
199
+ readonly postalCode?: string | undefined;
200
+ readonly postOfficeBoxNumber?: string | undefined;
201
+ readonly country?: string | undefined;
202
+ };
203
+ readonly label?: string | undefined;
204
+ }[] | undefined;
205
+ urls?: {
206
+ readonly value: string;
207
+ readonly label?: string | undefined;
208
+ }[] | undefined;
209
+ birthday?: string | undefined;
210
+ location?: readonly [number, number, (number | undefined)?] | undefined;
211
+ }>>;
210
212
  identityDid: Schema.optional<typeof Schema.String>;
211
213
  identityKey: Schema.optional<typeof Schema.String>;
212
214
  email: Schema.optional<typeof Schema.String>;
213
215
  name: Schema.optional<typeof Schema.String>;
214
- role: Schema.optional<Schema.Literal<["user", "assistant"]>>;
215
216
  }>>;
216
217
  blocks: Schema.mutable<Schema.Array$<Schema.Union<[Schema.mutable<Schema.TaggedStruct<"anchor", {
217
218
  pending: Schema.optional<typeof Schema.Boolean>;
@@ -247,10 +248,7 @@ export declare const NormalizationInput: Schema.Struct<{
247
248
  signature: Schema.optional<typeof Schema.String>;
248
249
  }>>, Schema.mutable<Schema.TaggedStruct<"reference", {
249
250
  pending: Schema.optional<typeof Schema.Boolean>;
250
- reference: import("@dxos/echo/Type").ref<Schema.Schema<import("@dxos/echo/Type").Expando, {
251
- [x: string]: any;
252
- id: string;
253
- }, never>>;
251
+ reference: import("@dxos/echo/internal").RefSchema<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {}>;
254
252
  }>>, Schema.mutable<Schema.TaggedStruct<"select", {
255
253
  pending: Schema.optional<typeof Schema.Boolean>;
256
254
  options: Schema.Array$<typeof Schema.String>;
@@ -285,12 +283,14 @@ export declare const NormalizationInput: Schema.Struct<{
285
283
  toolCallId: typeof Schema.String;
286
284
  name: typeof Schema.String;
287
285
  input: typeof Schema.String;
286
+ providerExecuted: typeof Schema.Boolean;
288
287
  }>>, Schema.mutable<Schema.TaggedStruct<"toolResult", {
289
288
  pending: Schema.optional<typeof Schema.Boolean>;
290
289
  toolCallId: typeof Schema.String;
291
290
  name: typeof Schema.String;
292
291
  result: Schema.optional<typeof Schema.String>;
293
292
  error: Schema.optional<typeof Schema.String>;
293
+ providerExecuted: typeof Schema.Boolean;
294
294
  }>>, Schema.mutable<Schema.TaggedStruct<"transcript", {
295
295
  pending: Schema.optional<typeof Schema.Boolean>;
296
296
  started: typeof Schema.String;
@@ -309,62 +309,63 @@ export declare const NormalizationOutput: Schema.Struct<{
309
309
  parentMessage: Schema.optional<import("@dxos/keys").ObjectIdClass>;
310
310
  created: Schema.SchemaClass<string, string, never>;
311
311
  sender: Schema.mutable<Schema.Struct<{
312
- contact: Schema.optional<import("@dxos/echo/Type").ref<import("@dxos/echo/Type").obj<Schema.Struct<{
313
- fullName: Schema.optional<Schema.SchemaClass<string, string, never>>;
314
- preferredName: Schema.optional<Schema.SchemaClass<string, string, never>>;
315
- nickname: Schema.optional<Schema.SchemaClass<string, string, never>>;
316
- image: Schema.optional<Schema.SchemaClass<string, string, never>>;
317
- organization: Schema.optional<Schema.Schema<import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
318
- id: string;
319
- name?: string | undefined;
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> & {
320
319
  description?: string | undefined;
320
+ name?: string | undefined;
321
321
  status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
322
322
  image?: string | undefined;
323
323
  website?: string | undefined;
324
- }>, import("@dxos/echo-protocol").EncodedReference, never>>;
325
- jobTitle: Schema.optional<Schema.SchemaClass<string, string, never>>;
326
- department: Schema.optional<Schema.SchemaClass<string, string, never>>;
327
- notes: Schema.optional<Schema.SchemaClass<string, string, never>>;
328
- emails: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
329
- label: Schema.optional<typeof Schema.String>;
330
- value: Schema.refine<string, typeof Schema.String>;
331
- }>>>>;
332
- identities: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
333
- label: Schema.optional<typeof Schema.String>;
334
- value: typeof Schema.String;
335
- }>>>>;
336
- phoneNumbers: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
337
- label: Schema.optional<typeof Schema.String>;
338
- value: typeof Schema.String;
339
- }>>>>;
340
- addresses: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
341
- label: Schema.optional<typeof Schema.String>;
342
- value: Schema.Struct<{
343
- street: Schema.optional<Schema.SchemaClass<string, string, never>>;
344
- extended: Schema.optional<Schema.SchemaClass<string, string, never>>;
345
- locality: Schema.optional<Schema.SchemaClass<string, string, never>>;
346
- region: Schema.optional<Schema.SchemaClass<string, string, never>>;
347
- postalCode: Schema.optional<Schema.SchemaClass<string, string, never>>;
348
- postOfficeBoxNumber: Schema.optional<Schema.SchemaClass<string, string, never>>;
349
- country: Schema.optional<Schema.SchemaClass<string, string, never>>;
350
- }>;
351
- }>>>>;
352
- urls: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
353
- label: Schema.optional<typeof Schema.String>;
354
- value: Schema.refine<string, typeof Schema.String>;
355
- }>>>>;
356
- birthday: Schema.optional<Schema.SchemaClass<string, string, never>>;
357
- fields: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
358
- category: Schema.optional<typeof Schema.String>;
359
- label: typeof Schema.String;
360
- value: typeof Schema.String;
361
- }>>>>;
362
- }>>>>;
324
+ location?: readonly [number, number, (number | undefined)?] | undefined;
325
+ }> | undefined;
326
+ jobTitle?: string | undefined;
327
+ department?: string | undefined;
328
+ notes?: string | undefined;
329
+ emails?: {
330
+ readonly value: string;
331
+ readonly label?: string | undefined;
332
+ }[] | undefined;
333
+ identities?: {
334
+ readonly value: string;
335
+ readonly label?: string | undefined;
336
+ }[] | undefined;
337
+ phoneNumbers?: {
338
+ readonly value: string;
339
+ readonly label?: string | undefined;
340
+ }[] | undefined;
341
+ fields?: {
342
+ readonly value: string;
343
+ readonly label: string;
344
+ readonly category?: string | undefined;
345
+ }[] | undefined;
346
+ addresses?: {
347
+ readonly value: {
348
+ readonly street?: string | undefined;
349
+ readonly extended?: string | undefined;
350
+ readonly locality?: string | undefined;
351
+ readonly region?: string | undefined;
352
+ readonly postalCode?: string | undefined;
353
+ readonly postOfficeBoxNumber?: string | undefined;
354
+ readonly country?: string | undefined;
355
+ };
356
+ readonly label?: string | undefined;
357
+ }[] | undefined;
358
+ urls?: {
359
+ readonly value: string;
360
+ readonly label?: string | undefined;
361
+ }[] | undefined;
362
+ birthday?: string | undefined;
363
+ location?: readonly [number, number, (number | undefined)?] | undefined;
364
+ }>>;
363
365
  identityDid: Schema.optional<typeof Schema.String>;
364
366
  identityKey: Schema.optional<typeof Schema.String>;
365
367
  email: Schema.optional<typeof Schema.String>;
366
368
  name: Schema.optional<typeof Schema.String>;
367
- role: Schema.optional<Schema.Literal<["user", "assistant"]>>;
368
369
  }>>;
369
370
  blocks: Schema.mutable<Schema.Array$<Schema.Union<[Schema.mutable<Schema.TaggedStruct<"anchor", {
370
371
  pending: Schema.optional<typeof Schema.Boolean>;
@@ -400,10 +401,7 @@ export declare const NormalizationOutput: Schema.Struct<{
400
401
  signature: Schema.optional<typeof Schema.String>;
401
402
  }>>, Schema.mutable<Schema.TaggedStruct<"reference", {
402
403
  pending: Schema.optional<typeof Schema.Boolean>;
403
- reference: import("@dxos/echo/Type").ref<Schema.Schema<import("@dxos/echo/Type").Expando, {
404
- [x: string]: any;
405
- id: string;
406
- }, never>>;
404
+ reference: import("@dxos/echo/internal").RefSchema<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {}>;
407
405
  }>>, Schema.mutable<Schema.TaggedStruct<"select", {
408
406
  pending: Schema.optional<typeof Schema.Boolean>;
409
407
  options: Schema.Array$<typeof Schema.String>;
@@ -438,12 +436,14 @@ export declare const NormalizationOutput: Schema.Struct<{
438
436
  toolCallId: typeof Schema.String;
439
437
  name: typeof Schema.String;
440
438
  input: typeof Schema.String;
439
+ providerExecuted: typeof Schema.Boolean;
441
440
  }>>, Schema.mutable<Schema.TaggedStruct<"toolResult", {
442
441
  pending: Schema.optional<typeof Schema.Boolean>;
443
442
  toolCallId: typeof Schema.String;
444
443
  name: typeof Schema.String;
445
444
  result: Schema.optional<typeof Schema.String>;
446
445
  error: Schema.optional<typeof Schema.String>;
446
+ providerExecuted: typeof Schema.Boolean;
447
447
  }>>, Schema.mutable<Schema.TaggedStruct<"transcript", {
448
448
  pending: Schema.optional<typeof Schema.Boolean>;
449
449
  started: typeof Schema.String;
@@ -456,6 +456,6 @@ export declare const NormalizationOutput: Schema.Struct<{
456
456
  }>;
457
457
  export interface NormalizationOutput extends Schema.Schema.Type<typeof NormalizationOutput> {
458
458
  }
459
- export declare const sentenceNormalization: import("@dxos/functions").FunctionDefinition<NormalizationInput, NormalizationOutput>;
459
+ export declare const sentenceNormalization: import("@dxos/functions").FunctionDefinition<NormalizationInput, NormalizationOutput, import("@dxos/functions").FunctionServices>;
460
460
  export {};
461
461
  //# sourceMappingURL=normalization.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"normalization.d.ts","sourceRoot":"","sources":["../../../../src/segments-normalization/normalization.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,MAAM,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getActorId: (actor: DataType.Actor) => string;
1
+ import { type Actor } from '@dxos/types';
2
+ export declare const getActorId: (actor: Actor.Actor) => string;
3
3
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/segments-normalization/utils.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7C,eAAO,MAAM,UAAU,GAAI,OAAO,QAAQ,CAAC,KAAK,WAE/C,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/segments-normalization/utils.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,eAAO,MAAM,UAAU,GAAI,OAAO,KAAK,CAAC,KAAK,WAE5C,CAAC"}
@@ -1,14 +1,14 @@
1
- import { Schema } from 'effect';
1
+ import * as Schema from 'effect/Schema';
2
2
  import { type Queue } from '@dxos/client/echo';
3
3
  import { type Key, Type } from '@dxos/echo';
4
4
  import { type Space } from '@dxos/react-client/echo';
5
- import { DataType } from '@dxos/schema';
5
+ import { type ContentBlock, Message } from '@dxos/types';
6
6
  export declare const TestItem: Type.obj<Schema.Struct<{
7
7
  title: Schema.SchemaClass<string, string, never>;
8
8
  description: Schema.SchemaClass<string, string, never>;
9
9
  }>>;
10
10
  declare abstract class AbstractMessageBuilder {
11
- abstract createMessage(numSegments?: number): Promise<DataType.Message>;
11
+ abstract createMessage(numSegments?: number): Promise<Message.Message>;
12
12
  }
13
13
  /**
14
14
  * Generator of transcript messages.
@@ -23,11 +23,11 @@ export declare class MessageBuilder extends AbstractMessageBuilder {
23
23
  }[];
24
24
  start: Date;
25
25
  constructor(_space?: Space | undefined);
26
- createMessage(numSegments?: number): Promise<DataType.Message>;
27
- createBlock(): DataType.MessageBlock.Transcript;
26
+ createMessage(numSegments?: number): Promise<Message.Message>;
27
+ createBlock(): ContentBlock.Transcript;
28
28
  next(): Date;
29
29
  }
30
- type UseTestTranscriptionQueue = (space: Space | undefined, queueId?: Key.ObjectId, running?: boolean, interval?: number) => Queue<DataType.Message> | undefined;
30
+ type UseTestTranscriptionQueue = (space: Space | undefined, queueId?: Key.ObjectId, running?: boolean, interval?: number) => Queue<Message.Message> | undefined;
31
31
  /**
32
32
  * Test transcriptionqueue.
33
33
  */
@@ -1 +1 @@
1
- {"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../../src/testing/testing.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAKhC,OAAO,EAAU,KAAK,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAEvD,OAAO,EAAE,KAAK,GAAG,EAAY,IAAI,EAAE,MAAM,YAAY,CAAC;AAMtD,OAAO,EAAE,KAAK,KAAK,EAAY,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAIxC,eAAO,MAAM,QAAQ;;;GAcpB,CAAC;AAGF,uBAAe,sBAAsB;IACnC,QAAQ,CAAC,aAAa,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC;CACxE;AAED;;GAEG;AACH,qBAAa,cAAe,SAAQ,sBAAsB;IAW5C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC;IAVpC,MAAM,CAAC,QAAQ,CAAC,SAAS,iBAAwB;IAEjD,KAAK;;;;QAID;IAEJ,KAAK,OAAgD;gBAExB,MAAM,CAAC,EAAE,KAAK,YAAA;IAI5B,aAAa,CAAC,WAAW,SAAI,GAAG,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC;IAQxE,WAAW,IAAI,QAAQ,CAAC,YAAY,CAAC,UAAU;IAkB/C,IAAI,IAAI,IAAI;CAIb;AAgDD,KAAK,yBAAyB,GAAG,CAC/B,KAAK,EAAE,KAAK,GAAG,SAAS,EACxB,OAAO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,SAAS,EACxB,OAAO,CAAC,EAAE,GAAG,CAAC,QAAQ,EACtB,OAAO,CAAC,EAAE,OAAO,EACjB,QAAQ,CAAC,EAAE,MAAM,KACd,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC;AAExC;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,yBAyBvC,CAAC;AAEF;;GAEG;AAEH,eAAO,MAAM,6CAA6C,EAAE,yBAoC3D,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { type Context, Resource } from '@dxos/context';
2
- import { type DataType } from '@dxos/schema';
2
+ import { type ContentBlock } from '@dxos/types';
3
3
  import { type AudioRecorder } from './audio-recorder';
4
4
  export type TranscribeConfig = {
5
5
  /**
@@ -19,7 +19,7 @@ export type TranscriberParams = {
19
19
  * Callback to handle the transcribed segments, after all segment transformers are applied.
20
20
  * @param segments - The transcribed segments.
21
21
  */
22
- onSegments: (segments: DataType.MessageBlock.Transcript[]) => Promise<void>;
22
+ onSegments: (segments: ContentBlock.Transcript[]) => Promise<void>;
23
23
  };
24
24
  /**
25
25
  * Handles transcription of audio chunks.
@@ -1 +1 @@
1
- {"version":3,"file":"transcriber.d.ts","sourceRoot":"","sources":["../../../../src/transcriber/transcriber.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,OAAO,EAAkB,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEvE,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAC;AAM7C,OAAO,EAAmB,KAAK,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAqCvE,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,2BAA2B,EAAE,MAAM,CAAC;IAEpC;;;OAGG;IACH,wBAAwB,EAAE,MAAM,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,gBAAgB,CAAC;IACzB,QAAQ,EAAE,aAAa,CAAC;IACxB;;;OAGG;IACH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,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,gBAAgB,CAAC;IACzB,QAAQ,EAAE,aAAa,CAAC;IACxB;;;OAGG;IACH,UAAU,EAAE,CAAC,QAAQ,EAAE,YAAY,CAAC,UAAU,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACpE,CAAC;AAEF;;;;GAIG;AACH,qBAAa,WAAY,SAAQ,QAAQ;IACvC,OAAO,CAAC,YAAY,CAAoB;IACxC,OAAO,CAAC,kBAAkB,CAAK;IAE/B,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAoC;IAEjE,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAmB;IAC3C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAgB;IAC1C,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAkC;IAE9D,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,eAAe,CAAC,CAA2B;gBAEvC,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,iBAAiB;cAOtC,KAAK,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;cAQlC,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAOhD,oBAAoB,IAAI,IAAI;IAS5B,mBAAmB,IAAI,IAAI;IAU3B,OAAO,CAAC,eAAe;YAgBT,WAAW;IAoBzB,OAAO,CAAC,cAAc;YAOR,iBAAiB;YAejB,mBAAmB;IA+BjC,OAAO,CAAC,cAAc;CAkCvB"}
@@ -1,8 +1,8 @@
1
1
  import { Resource } from '@dxos/context';
2
2
  import { type Queue } from '@dxos/echo-db';
3
3
  import { type EdgeHttpClient } from '@dxos/react-edge-client';
4
- import { DataType } from '@dxos/schema';
5
- export type TranscriptMessageEnricher = (message: DataType.Message) => Promise<DataType.Message>;
4
+ import { Message } from '@dxos/types';
5
+ export type TranscriptMessageEnricher = (message: Message.Message) => Promise<Message.Message>;
6
6
  export type TranscriptionManagerOptions = {
7
7
  edgeClient: EdgeHttpClient;
8
8
  /**
@@ -25,7 +25,7 @@ export declare class TranscriptionManager extends Resource {
25
25
  constructor(options: TranscriptionManagerOptions);
26
26
  /** @reactive */
27
27
  get enabled(): boolean;
28
- setQueue(queue: Queue<DataType.Message>): this;
28
+ setQueue(queue: Queue<Message.Message>): this;
29
29
  setIdentityDid(did: string): this;
30
30
  setRecording(recording?: boolean): this;
31
31
  setEnabled(enabled: boolean): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"transcription-manager.d.ts","sourceRoot":"","sources":["../../../../src/transcriber/transcription-manager.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAqBxC,MAAM,MAAM,yBAAyB,GAAG,CAAC,OAAO,EAAE,QAAQ,CAAC,OAAO,KAAK,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;AAEjG,MAAM,MAAM,2BAA2B,GAAG;IACxC,UAAU,EAAE,cAAc,CAAC;IAE3B;;OAEG;IACH,eAAe,CAAC,EAAE,yBAAyB,CAAC;CAC7C,CAAC;AAEF;;GAEG;AACH,qBAAa,oBAAqB,SAAQ,QAAQ;IAChD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAiB;IAC7C,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAA4B;IAC9D,OAAO,CAAC,iBAAiB,CAAC,CAA+B;IACzD,OAAO,CAAC,YAAY,CAAC,CAAqB;IAC1C,OAAO,CAAC,cAAc,CAAC,CAAkC;IACzD,OAAO,CAAC,YAAY,CAAC,CAA0B;IAC/C,OAAO,CAAC,MAAM,CAAC,CAAsC;IACrD,OAAO,CAAC,Q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C,CAA4B;IAC9D,OAAO,CAAC,iBAAiB,CAAC,CAA+B;IACzD,OAAO,CAAC,YAAY,CAAC,CAAqB;IAC1C,OAAO,CAAC,cAAc,CAAC,CAAkC;IACzD,OAAO,CAAC,YAAY,CAAC,CAA0B;IAC/C,OAAO,CAAC,MAAM,CAAC,CAAqC;IACpD,OAAO,CAAC,QAAQ,CAAiB;gBAErB,OAAO,EAAE,2BAA2B;IAMhD,gBAAgB;IAChB,IAAI,OAAO,YAEV;IAED,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI;IAK7C,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAOjC,YAAY,CAAC,SAAS,CAAC,EAAE,OAAO,GAAG,IAAI;IAajC,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAc3C,aAAa,CAAC,KAAK,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC;cASnC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;cAItB,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;YAIlC,wBAAwB;YA6BxB,gBAAgB;YAIhB,WAAW;CAiB1B"}
@@ -1,4 +1,4 @@
1
- import { Schema } from 'effect';
1
+ import * as Schema from 'effect/Schema';
2
2
  declare const Create_base: Schema.TaggedClass<Create, `${string}/action/create`, {
3
3
  readonly _tag: Schema.tag<`${string}/action/create`>;
4
4
  } & {
@@ -10,7 +10,7 @@ declare const Create_base: Schema.TaggedClass<Create, `${string}/action/create`,
10
10
  object: import("@dxos/echo/Type").obj<Schema.Struct<{
11
11
  started: Schema.optional<typeof Schema.String>;
12
12
  ended: Schema.optional<typeof Schema.String>;
13
- queue: import("@dxos/echo/Type").ref<Schema.Schema<import("@dxos/echo-db").Queue<import("@dxos/echo/Obj").Any | import("@dxos/echo/Relation").Any>, import("@dxos/echo-db").Queue<import("@dxos/echo/Obj").Any | import("@dxos/echo/Relation").Any>, never>>;
13
+ queue: import("@dxos/echo/internal").RefSchema<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>>;
14
14
  }>>;
15
15
  }>;
16
16
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"TranscriptAction.d.ts","sourceRoot":"","sources":["../../../../src/types/TranscriptAction.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;;;;;;;;;;;;;;;;AAQhC;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAQ1B;CAAG"}
1
+ {"version":3,"file":"TranscriptAction.d.ts","sourceRoot":"","sources":["../../../../src/types/TranscriptAction.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;;;;;;;;;;;;;;;;AAOxC;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAQ1B;CAAG"}
@@ -1,4 +1,3 @@
1
1
  export * as TranscriptAction from './TranscriptAction';
2
- export * as Transcript from './Transcript';
3
2
  export * from './types';
4
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,gBAAgB,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,gBAAgB,MAAM,oBAAoB,CAAC;AACvD,cAAc,SAAS,CAAC"}