@dxos/plugin-transcription 0.8.3-main.7f5a14c → 0.8.3

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 (68) hide show
  1. package/dist/lib/browser/{TranscriptContainer-PDSOWOMY.mjs → TranscriptContainer-H3AZQ4CQ.mjs} +2 -2
  2. package/dist/lib/browser/{chunk-KMCEHAVR.mjs → chunk-53AXUEIQ.mjs} +4 -4
  3. package/dist/lib/browser/{chunk-KMCEHAVR.mjs.map → chunk-53AXUEIQ.mjs.map} +3 -3
  4. package/dist/lib/browser/{chunk-KUO25QLG.mjs → chunk-IQ5ZRMHZ.mjs} +4 -4
  5. package/dist/lib/browser/{chunk-KUO25QLG.mjs.map → chunk-IQ5ZRMHZ.mjs.map} +2 -2
  6. package/dist/lib/browser/{chunk-RPMSRXAD.mjs → chunk-UDCCT32F.mjs} +2 -2
  7. package/dist/lib/browser/index.mjs +3 -7
  8. package/dist/lib/browser/index.mjs.map +3 -3
  9. package/dist/lib/browser/meta.json +1 -1
  10. package/dist/lib/browser/{react-surface-4KQXXK3L.mjs → react-surface-HMJS5FSS.mjs} +3 -3
  11. package/dist/lib/browser/{transcriber-KKKY7OTA.mjs → transcriber-OYPLZFG5.mjs} +2 -2
  12. package/dist/lib/node/{TranscriptContainer-74YHORVT.cjs → TranscriptContainer-KIG3GMAB.cjs} +7 -7
  13. package/dist/lib/node/{TranscriptContainer-74YHORVT.cjs.map → TranscriptContainer-KIG3GMAB.cjs.map} +2 -2
  14. package/dist/lib/node/{chunk-SZXEXASL.cjs → chunk-3PYT3BDM.cjs} +5 -5
  15. package/dist/lib/node/{chunk-TH26IEUM.cjs → chunk-CVUN3UO7.cjs} +6 -6
  16. package/dist/lib/node/{chunk-TH26IEUM.cjs.map → chunk-CVUN3UO7.cjs.map} +2 -2
  17. package/dist/lib/node/{chunk-C5W34GLS.cjs → chunk-ZFAUMZXE.cjs} +7 -7
  18. package/dist/lib/node/{chunk-C5W34GLS.cjs.map → chunk-ZFAUMZXE.cjs.map} +2 -2
  19. package/dist/lib/node/index.cjs +19 -23
  20. package/dist/lib/node/index.cjs.map +3 -3
  21. package/dist/lib/node/meta.json +1 -1
  22. package/dist/lib/node/{react-surface-QVXIHCOA.cjs → react-surface-N25TBBG4.cjs} +7 -7
  23. package/dist/lib/node/{transcriber-532JRZHY.cjs → transcriber-6J4FVFSZ.cjs} +8 -8
  24. package/dist/lib/node-esm/{TranscriptContainer-VBUQ7KJJ.mjs → TranscriptContainer-G75LDEO5.mjs} +2 -2
  25. package/dist/lib/node-esm/{chunk-2U54OZH3.mjs → chunk-56QHOX4A.mjs} +4 -4
  26. package/dist/lib/node-esm/{chunk-2U54OZH3.mjs.map → chunk-56QHOX4A.mjs.map} +3 -3
  27. package/dist/lib/node-esm/{chunk-QS4L6XU3.mjs → chunk-MFJO7EKD.mjs} +2 -2
  28. package/dist/lib/node-esm/{chunk-QSGGTMXE.mjs → chunk-PRL64SRU.mjs} +4 -4
  29. package/dist/lib/node-esm/{chunk-QSGGTMXE.mjs.map → chunk-PRL64SRU.mjs.map} +2 -2
  30. package/dist/lib/node-esm/index.mjs +3 -7
  31. package/dist/lib/node-esm/index.mjs.map +3 -3
  32. package/dist/lib/node-esm/meta.json +1 -1
  33. package/dist/lib/node-esm/{react-surface-ZB7Y2YF7.mjs → react-surface-JGQSYGRR.mjs} +3 -3
  34. package/dist/lib/node-esm/{transcriber-SPV5ZLIJ.mjs → transcriber-TVG2MBBN.mjs} +2 -2
  35. package/dist/types/src/components/Transcript/deprecated/OldTranscript.d.ts +3 -2
  36. package/dist/types/src/components/Transcript/deprecated/OldTranscript.d.ts.map +1 -1
  37. package/dist/types/src/hooks/useQueueModelAdapter.d.ts +3 -2
  38. package/dist/types/src/hooks/useQueueModelAdapter.d.ts.map +1 -1
  39. package/dist/types/src/segments-normalization/normalization.d.ts +161 -352
  40. package/dist/types/src/segments-normalization/normalization.d.ts.map +1 -1
  41. package/dist/types/src/testing/testing.d.ts +3 -3
  42. package/dist/types/src/testing/testing.d.ts.map +1 -1
  43. package/dist/types/src/translations.d.ts +0 -5
  44. package/dist/types/src/translations.d.ts.map +1 -1
  45. package/dist/types/src/types/schema.d.ts +4 -3
  46. package/dist/types/src/types/schema.d.ts.map +1 -1
  47. package/package.json +51 -51
  48. package/src/components/stories/FileTranscription.stories.tsx +2 -2
  49. package/src/components/stories/MicrophoneTranscription.stories.tsx +3 -3
  50. package/src/hooks/useQueueModelAdapter.ts +4 -3
  51. package/src/model/model.test.ts +17 -17
  52. package/src/segments-normalization/message-normalizer.ts +1 -1
  53. package/src/segments-normalization/normalization.test.ts +13 -12
  54. package/src/segments-normalization/normalization.ts +8 -6
  55. package/src/testing/testing.ts +9 -10
  56. package/src/transcriber/transcription-manager.ts +3 -3
  57. package/src/translations.ts +0 -5
  58. /package/dist/lib/browser/{TranscriptContainer-PDSOWOMY.mjs.map → TranscriptContainer-H3AZQ4CQ.mjs.map} +0 -0
  59. /package/dist/lib/browser/{chunk-RPMSRXAD.mjs.map → chunk-UDCCT32F.mjs.map} +0 -0
  60. /package/dist/lib/browser/{react-surface-4KQXXK3L.mjs.map → react-surface-HMJS5FSS.mjs.map} +0 -0
  61. /package/dist/lib/browser/{transcriber-KKKY7OTA.mjs.map → transcriber-OYPLZFG5.mjs.map} +0 -0
  62. /package/dist/lib/node/{chunk-SZXEXASL.cjs.map → chunk-3PYT3BDM.cjs.map} +0 -0
  63. /package/dist/lib/node/{react-surface-QVXIHCOA.cjs.map → react-surface-N25TBBG4.cjs.map} +0 -0
  64. /package/dist/lib/node/{transcriber-532JRZHY.cjs.map → transcriber-6J4FVFSZ.cjs.map} +0 -0
  65. /package/dist/lib/node-esm/{TranscriptContainer-VBUQ7KJJ.mjs.map → TranscriptContainer-G75LDEO5.mjs.map} +0 -0
  66. /package/dist/lib/node-esm/{chunk-QS4L6XU3.mjs.map → chunk-MFJO7EKD.mjs.map} +0 -0
  67. /package/dist/lib/node-esm/{react-surface-ZB7Y2YF7.mjs.map → react-surface-JGQSYGRR.mjs.map} +0 -0
  68. /package/dist/lib/node-esm/{transcriber-SPV5ZLIJ.mjs.map → transcriber-TVG2MBBN.mjs.map} +0 -0
@@ -1,60 +1,59 @@
1
1
  import { Schema } from 'effect';
2
- declare const MessageWithRangeId: Schema.extend<import("@dxos/echo-schema").EchoTypeSchema<Schema.Struct<{
2
+ declare const MessageWithRangeId: Schema.extend<import("@dxos/echo/Type").obj<Schema.Struct<{
3
3
  id: import("@dxos/keys").ObjectIdClass;
4
4
  created: import("effect/Schema").SchemaClass<string, string, never>;
5
5
  sender: import("effect/Schema").mutable<import("effect/Schema").Struct<{
6
- contact: import("effect/Schema").optional<import("@dxos/echo-schema").Ref$<{
7
- readonly id: string;
8
- fields?: {
9
- readonly value: string;
10
- readonly label: string;
11
- readonly category?: string | undefined;
12
- }[] | undefined;
13
- organization?: import("@dxos/echo-schema").Ref<{
14
- readonly id: string;
6
+ contact: import("effect/Schema").optional<import("@dxos/echo/Type").ref<import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
7
+ fullName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
8
+ preferredName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
9
+ nickname: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
10
+ image: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
11
+ organization: import("effect/Schema").optional<import("effect/Schema").Schema<import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
15
12
  description?: string | undefined;
13
+ id: string;
16
14
  name?: string | undefined;
17
15
  status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
18
16
  image?: string | undefined;
19
17
  website?: string | undefined;
20
- }> | undefined;
21
- image?: string | undefined;
22
- fullName?: string | undefined;
23
- preferredName?: string | undefined;
24
- nickname?: string | undefined;
25
- jobTitle?: string | undefined;
26
- department?: string | undefined;
27
- notes?: string | undefined;
28
- emails?: {
29
- readonly value: string;
30
- readonly label?: string | undefined;
31
- }[] | undefined;
32
- identities?: {
33
- readonly value: string;
34
- readonly label?: string | undefined;
35
- }[] | undefined;
36
- phoneNumbers?: {
37
- readonly value: string;
38
- readonly label?: string | undefined;
39
- }[] | undefined;
40
- addresses?: {
41
- readonly value: {
42
- readonly street?: string | undefined;
43
- readonly extended?: string | undefined;
44
- readonly locality?: string | undefined;
45
- readonly region?: string | undefined;
46
- readonly postalCode?: string | undefined;
47
- readonly postOfficeBoxNumber?: string | undefined;
48
- readonly country?: string | undefined;
49
- };
50
- readonly label?: string | undefined;
51
- }[] | undefined;
52
- urls?: {
53
- readonly value: string;
54
- readonly label?: string | undefined;
55
- }[] | undefined;
56
- birthday?: string | undefined;
57
- }>>;
18
+ }>, import("@dxos/echo-protocol").EncodedReference, never>>;
19
+ jobTitle: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
20
+ department: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
21
+ notes: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
22
+ emails: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
23
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
24
+ value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
25
+ }>>>>;
26
+ identities: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
27
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
28
+ value: typeof import("effect/Schema").String;
29
+ }>>>>;
30
+ phoneNumbers: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
31
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
32
+ value: typeof import("effect/Schema").String;
33
+ }>>>>;
34
+ addresses: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
35
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
36
+ value: import("effect/Schema").Struct<{
37
+ street: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
38
+ extended: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
39
+ locality: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
40
+ region: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
41
+ postalCode: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
42
+ postOfficeBoxNumber: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
43
+ country: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
44
+ }>;
45
+ }>>>>;
46
+ urls: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
47
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
48
+ value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
49
+ }>>>>;
50
+ birthday: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").SchemaClass<string, string, never>>>;
51
+ fields: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
52
+ category: import("effect/Schema").optional<typeof import("effect/Schema").String>;
53
+ label: typeof import("effect/Schema").String;
54
+ value: typeof import("effect/Schema").String;
55
+ }>>>>;
56
+ }>>>>;
58
57
  identityDid: import("effect/Schema").optional<typeof import("effect/Schema").String>;
59
58
  identityKey: import("effect/Schema").optional<typeof import("effect/Schema").String>;
60
59
  email: import("effect/Schema").optional<typeof import("effect/Schema").String>;
@@ -90,7 +89,10 @@ declare const MessageWithRangeId: Schema.extend<import("@dxos/echo-schema").Echo
90
89
  pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
91
90
  }>, import("effect/Schema").Struct<{
92
91
  type: import("effect/Schema").Literal<["reference"]>;
93
- reference: import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").Expando>;
92
+ reference: import("@dxos/echo/Type").ref<import("effect/Schema").Schema<import("@dxos/echo/Type").Expando, {
93
+ [x: string]: any;
94
+ id: string;
95
+ }, never>>;
94
96
  }>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
95
97
  pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
96
98
  }>, import("effect/Schema").Struct<{
@@ -99,68 +101,67 @@ declare const MessageWithRangeId: Schema.extend<import("@dxos/echo-schema").Echo
99
101
  text: typeof import("effect/Schema").String;
100
102
  }>>>]>>>;
101
103
  properties: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Any>>>;
102
- }>, {}>, Schema.Struct<{
104
+ }>>, Schema.Struct<{
103
105
  rangeId: Schema.optional<Schema.Array$<typeof Schema.String>>;
104
106
  }>>;
105
107
  export interface MessageWithRangeId extends Schema.Schema.Type<typeof MessageWithRangeId> {
106
108
  }
107
109
  export declare const NormalizationInput: Schema.Struct<{
108
- messages: Schema.Array$<Schema.extend<import("@dxos/echo-schema").EchoTypeSchema<Schema.Struct<{
110
+ messages: Schema.Array$<Schema.extend<import("@dxos/echo/Type").obj<Schema.Struct<{
109
111
  id: import("@dxos/keys").ObjectIdClass;
110
112
  created: import("effect/Schema").SchemaClass<string, string, never>;
111
113
  sender: import("effect/Schema").mutable<import("effect/Schema").Struct<{
112
- contact: import("effect/Schema").optional<import("@dxos/echo-schema").Ref$<{
113
- readonly id: string;
114
- fields?: {
115
- readonly value: string;
116
- readonly label: string;
117
- readonly category?: string | undefined;
118
- }[] | undefined;
119
- organization?: import("@dxos/echo-schema").Ref<{
120
- readonly id: string;
114
+ contact: import("effect/Schema").optional<import("@dxos/echo/Type").ref<import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
115
+ fullName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
116
+ preferredName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
117
+ nickname: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
118
+ image: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
119
+ organization: import("effect/Schema").optional<import("effect/Schema").Schema<import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
121
120
  description?: string | undefined;
121
+ id: string;
122
122
  name?: string | undefined;
123
123
  status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
124
124
  image?: string | undefined;
125
125
  website?: string | undefined;
126
- }> | undefined;
127
- image?: string | undefined;
128
- fullName?: string | undefined;
129
- preferredName?: string | undefined;
130
- nickname?: string | undefined;
131
- jobTitle?: string | undefined;
132
- department?: string | undefined;
133
- notes?: string | undefined;
134
- emails?: {
135
- readonly value: string;
136
- readonly label?: string | undefined;
137
- }[] | undefined;
138
- identities?: {
139
- readonly value: string;
140
- readonly label?: string | undefined;
141
- }[] | undefined;
142
- phoneNumbers?: {
143
- readonly value: string;
144
- readonly label?: string | undefined;
145
- }[] | undefined;
146
- addresses?: {
147
- readonly value: {
148
- readonly street?: string | undefined;
149
- readonly extended?: string | undefined;
150
- readonly locality?: string | undefined;
151
- readonly region?: string | undefined;
152
- readonly postalCode?: string | undefined;
153
- readonly postOfficeBoxNumber?: string | undefined;
154
- readonly country?: string | undefined;
155
- };
156
- readonly label?: string | undefined;
157
- }[] | undefined;
158
- urls?: {
159
- readonly value: string;
160
- readonly label?: string | undefined;
161
- }[] | undefined;
162
- birthday?: string | undefined;
163
- }>>;
126
+ }>, import("@dxos/echo-protocol").EncodedReference, never>>;
127
+ jobTitle: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
128
+ department: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
129
+ notes: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
130
+ emails: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
131
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
132
+ value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
133
+ }>>>>;
134
+ identities: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
135
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
136
+ value: typeof import("effect/Schema").String;
137
+ }>>>>;
138
+ phoneNumbers: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
139
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
140
+ value: typeof import("effect/Schema").String;
141
+ }>>>>;
142
+ addresses: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
143
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
144
+ value: import("effect/Schema").Struct<{
145
+ street: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
146
+ extended: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
147
+ locality: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
148
+ region: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
149
+ postalCode: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
150
+ postOfficeBoxNumber: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
151
+ country: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
152
+ }>;
153
+ }>>>>;
154
+ urls: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
155
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
156
+ value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
157
+ }>>>>;
158
+ birthday: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").SchemaClass<string, string, never>>>;
159
+ fields: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
160
+ category: import("effect/Schema").optional<typeof import("effect/Schema").String>;
161
+ label: typeof import("effect/Schema").String;
162
+ value: typeof import("effect/Schema").String;
163
+ }>>>>;
164
+ }>>>>;
164
165
  identityDid: import("effect/Schema").optional<typeof import("effect/Schema").String>;
165
166
  identityKey: import("effect/Schema").optional<typeof import("effect/Schema").String>;
166
167
  email: import("effect/Schema").optional<typeof import("effect/Schema").String>;
@@ -196,7 +197,10 @@ export declare const NormalizationInput: Schema.Struct<{
196
197
  pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
197
198
  }>, import("effect/Schema").Struct<{
198
199
  type: import("effect/Schema").Literal<["reference"]>;
199
- reference: import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").Expando>;
200
+ reference: import("@dxos/echo/Type").ref<import("effect/Schema").Schema<import("@dxos/echo/Type").Expando, {
201
+ [x: string]: any;
202
+ id: string;
203
+ }, never>>;
200
204
  }>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
201
205
  pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
202
206
  }>, import("effect/Schema").Struct<{
@@ -205,67 +209,68 @@ export declare const NormalizationInput: Schema.Struct<{
205
209
  text: typeof import("effect/Schema").String;
206
210
  }>>>]>>>;
207
211
  properties: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Any>>>;
208
- }>, {}>, Schema.Struct<{
212
+ }>>, Schema.Struct<{
209
213
  rangeId: Schema.optional<Schema.Array$<typeof Schema.String>>;
210
214
  }>>>;
211
215
  }>;
216
+ export interface NormalizationInput extends Schema.Schema.Type<typeof NormalizationInput> {
217
+ }
212
218
  export declare const NormalizationOutput: Schema.Struct<{
213
- sentences: Schema.mutable<Schema.Array$<Schema.mutable<Schema.extend<import("@dxos/echo-schema").EchoTypeSchema<Schema.Struct<{
219
+ sentences: Schema.mutable<Schema.Array$<Schema.mutable<Schema.extend<import("@dxos/echo/Type").obj<Schema.Struct<{
214
220
  id: import("@dxos/keys").ObjectIdClass;
215
221
  created: import("effect/Schema").SchemaClass<string, string, never>;
216
222
  sender: import("effect/Schema").mutable<import("effect/Schema").Struct<{
217
- contact: import("effect/Schema").optional<import("@dxos/echo-schema").Ref$<{
218
- readonly id: string;
219
- fields?: {
220
- readonly value: string;
221
- readonly label: string;
222
- readonly category?: string | undefined;
223
- }[] | undefined;
224
- organization?: import("@dxos/echo-schema").Ref<{
225
- readonly id: string;
223
+ contact: import("effect/Schema").optional<import("@dxos/echo/Type").ref<import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
224
+ fullName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
225
+ preferredName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
226
+ nickname: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
227
+ image: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
228
+ organization: import("effect/Schema").optional<import("effect/Schema").Schema<import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
226
229
  description?: string | undefined;
230
+ id: string;
227
231
  name?: string | undefined;
228
232
  status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
229
233
  image?: string | undefined;
230
234
  website?: string | undefined;
231
- }> | undefined;
232
- image?: string | undefined;
233
- fullName?: string | undefined;
234
- preferredName?: string | undefined;
235
- nickname?: string | undefined;
236
- jobTitle?: string | undefined;
237
- department?: string | undefined;
238
- notes?: string | undefined;
239
- emails?: {
240
- readonly value: string;
241
- readonly label?: string | undefined;
242
- }[] | undefined;
243
- identities?: {
244
- readonly value: string;
245
- readonly label?: string | undefined;
246
- }[] | undefined;
247
- phoneNumbers?: {
248
- readonly value: string;
249
- readonly label?: string | undefined;
250
- }[] | undefined;
251
- addresses?: {
252
- readonly value: {
253
- readonly street?: string | undefined;
254
- readonly extended?: string | undefined;
255
- readonly locality?: string | undefined;
256
- readonly region?: string | undefined;
257
- readonly postalCode?: string | undefined;
258
- readonly postOfficeBoxNumber?: string | undefined;
259
- readonly country?: string | undefined;
260
- };
261
- readonly label?: string | undefined;
262
- }[] | undefined;
263
- urls?: {
264
- readonly value: string;
265
- readonly label?: string | undefined;
266
- }[] | undefined;
267
- birthday?: string | undefined;
268
- }>>;
235
+ }>, import("@dxos/echo-protocol").EncodedReference, never>>;
236
+ jobTitle: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
237
+ department: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
238
+ notes: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
239
+ emails: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
240
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
241
+ value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
242
+ }>>>>;
243
+ identities: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
244
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
245
+ value: typeof import("effect/Schema").String;
246
+ }>>>>;
247
+ phoneNumbers: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
248
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
249
+ value: typeof import("effect/Schema").String;
250
+ }>>>>;
251
+ addresses: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
252
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
253
+ value: import("effect/Schema").Struct<{
254
+ street: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
255
+ extended: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
256
+ locality: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
257
+ region: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
258
+ postalCode: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
259
+ postOfficeBoxNumber: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
260
+ country: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
261
+ }>;
262
+ }>>>>;
263
+ urls: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
264
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
265
+ value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
266
+ }>>>>;
267
+ birthday: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").SchemaClass<string, string, never>>>;
268
+ fields: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
269
+ category: import("effect/Schema").optional<typeof import("effect/Schema").String>;
270
+ label: typeof import("effect/Schema").String;
271
+ value: typeof import("effect/Schema").String;
272
+ }>>>>;
273
+ }>>>>;
269
274
  identityDid: import("effect/Schema").optional<typeof import("effect/Schema").String>;
270
275
  identityKey: import("effect/Schema").optional<typeof import("effect/Schema").String>;
271
276
  email: import("effect/Schema").optional<typeof import("effect/Schema").String>;
@@ -301,7 +306,10 @@ export declare const NormalizationOutput: Schema.Struct<{
301
306
  pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
302
307
  }>, import("effect/Schema").Struct<{
303
308
  type: import("effect/Schema").Literal<["reference"]>;
304
- reference: import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").Expando>;
309
+ reference: import("@dxos/echo/Type").ref<import("effect/Schema").Schema<import("@dxos/echo/Type").Expando, {
310
+ [x: string]: any;
311
+ id: string;
312
+ }, never>>;
305
313
  }>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
306
314
  pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
307
315
  }>, import("effect/Schema").Struct<{
@@ -310,211 +318,12 @@ export declare const NormalizationOutput: Schema.Struct<{
310
318
  text: typeof import("effect/Schema").String;
311
319
  }>>>]>>>;
312
320
  properties: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Any>>>;
313
- }>, {}>, Schema.Struct<{
321
+ }>>, Schema.Struct<{
314
322
  rangeId: Schema.optional<Schema.Array$<typeof Schema.String>>;
315
323
  }>>>>>;
316
324
  }>;
317
- export declare const sentenceNormalization: import("@dxos/functions").FunctionDefinition<{
318
- readonly messages: readonly ({
319
- readonly id: string;
320
- created: string;
321
- sender: {
322
- name?: string | undefined;
323
- contact?: import("@dxos/echo-schema").Ref<{
324
- readonly id: string;
325
- fields?: {
326
- readonly value: string;
327
- readonly label: string;
328
- readonly category?: string | undefined;
329
- }[] | undefined;
330
- organization?: import("@dxos/echo-schema").Ref<{
331
- readonly id: string;
332
- description?: string | undefined;
333
- name?: string | undefined;
334
- status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
335
- image?: string | undefined;
336
- website?: string | undefined;
337
- }> | undefined;
338
- image?: string | undefined;
339
- fullName?: string | undefined;
340
- preferredName?: string | undefined;
341
- nickname?: string | undefined;
342
- jobTitle?: string | undefined;
343
- department?: string | undefined;
344
- notes?: string | undefined;
345
- emails?: {
346
- readonly value: string;
347
- readonly label?: string | undefined;
348
- }[] | undefined;
349
- identities?: {
350
- readonly value: string;
351
- readonly label?: string | undefined;
352
- }[] | undefined;
353
- phoneNumbers?: {
354
- readonly value: string;
355
- readonly label?: string | undefined;
356
- }[] | undefined;
357
- addresses?: {
358
- readonly value: {
359
- readonly street?: string | undefined;
360
- readonly extended?: string | undefined;
361
- readonly locality?: string | undefined;
362
- readonly region?: string | undefined;
363
- readonly postalCode?: string | undefined;
364
- readonly postOfficeBoxNumber?: string | undefined;
365
- readonly country?: string | undefined;
366
- };
367
- readonly label?: string | undefined;
368
- }[] | undefined;
369
- urls?: {
370
- readonly value: string;
371
- readonly label?: string | undefined;
372
- }[] | undefined;
373
- birthday?: string | undefined;
374
- }> | undefined;
375
- identityDid?: string | undefined;
376
- identityKey?: string | undefined;
377
- email?: string | undefined;
378
- role?: "user" | "assistant" | undefined;
379
- };
380
- blocks: ({
381
- pending?: boolean | undefined;
382
- type: "text";
383
- text: string;
384
- disposition?: string | undefined;
385
- } | {
386
- pending?: boolean | undefined;
387
- data: string;
388
- type: "json";
389
- disposition?: string | undefined;
390
- } | {
391
- pending?: boolean | undefined;
392
- type: "image";
393
- id?: string | undefined;
394
- source?: {
395
- data: string;
396
- type: "base64";
397
- mediaType: string;
398
- } | {
399
- type: "http";
400
- url: string;
401
- } | undefined;
402
- } | {
403
- pending?: boolean | undefined;
404
- type: "reference";
405
- reference: import("@dxos/echo-schema").Ref<import("@dxos/echo-schema").Expando>;
406
- } | {
407
- pending?: boolean | undefined;
408
- started: string;
409
- type: "transcription";
410
- text: string;
411
- })[];
412
- properties?: {
413
- [x: string]: any;
414
- } | undefined;
415
- } & {
416
- readonly rangeId?: readonly string[] | undefined;
417
- })[];
418
- }, {
419
- readonly sentences: {
420
- id: string;
421
- created: string;
422
- sender: {
423
- name?: string | undefined;
424
- contact?: import("@dxos/echo-schema").Ref<{
425
- readonly id: string;
426
- fields?: {
427
- readonly value: string;
428
- readonly label: string;
429
- readonly category?: string | undefined;
430
- }[] | undefined;
431
- organization?: import("@dxos/echo-schema").Ref<{
432
- readonly id: string;
433
- description?: string | undefined;
434
- name?: string | undefined;
435
- status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
436
- image?: string | undefined;
437
- website?: string | undefined;
438
- }> | undefined;
439
- image?: string | undefined;
440
- fullName?: string | undefined;
441
- preferredName?: string | undefined;
442
- nickname?: string | undefined;
443
- jobTitle?: string | undefined;
444
- department?: string | undefined;
445
- notes?: string | undefined;
446
- emails?: {
447
- readonly value: string;
448
- readonly label?: string | undefined;
449
- }[] | undefined;
450
- identities?: {
451
- readonly value: string;
452
- readonly label?: string | undefined;
453
- }[] | undefined;
454
- phoneNumbers?: {
455
- readonly value: string;
456
- readonly label?: string | undefined;
457
- }[] | undefined;
458
- addresses?: {
459
- readonly value: {
460
- readonly street?: string | undefined;
461
- readonly extended?: string | undefined;
462
- readonly locality?: string | undefined;
463
- readonly region?: string | undefined;
464
- readonly postalCode?: string | undefined;
465
- readonly postOfficeBoxNumber?: string | undefined;
466
- readonly country?: string | undefined;
467
- };
468
- readonly label?: string | undefined;
469
- }[] | undefined;
470
- urls?: {
471
- readonly value: string;
472
- readonly label?: string | undefined;
473
- }[] | undefined;
474
- birthday?: string | undefined;
475
- }> | undefined;
476
- identityDid?: string | undefined;
477
- identityKey?: string | undefined;
478
- email?: string | undefined;
479
- role?: "user" | "assistant" | undefined;
480
- };
481
- blocks: ({
482
- pending?: boolean | undefined;
483
- type: "text";
484
- text: string;
485
- disposition?: string | undefined;
486
- } | {
487
- pending?: boolean | undefined;
488
- data: string;
489
- type: "json";
490
- disposition?: string | undefined;
491
- } | {
492
- pending?: boolean | undefined;
493
- type: "image";
494
- id?: string | undefined;
495
- source?: {
496
- data: string;
497
- type: "base64";
498
- mediaType: string;
499
- } | {
500
- type: "http";
501
- url: string;
502
- } | undefined;
503
- } | {
504
- pending?: boolean | undefined;
505
- type: "reference";
506
- reference: import("@dxos/echo-schema").Ref<import("@dxos/echo-schema").Expando>;
507
- } | {
508
- pending?: boolean | undefined;
509
- started: string;
510
- type: "transcription";
511
- text: string;
512
- })[];
513
- properties?: {
514
- [x: string]: any;
515
- } | undefined;
516
- rangeId?: readonly string[] | undefined;
517
- }[];
518
- }>;
325
+ export interface NormalizationOutput extends Schema.Schema.Type<typeof NormalizationOutput> {
326
+ }
327
+ export declare const sentenceNormalization: import("@dxos/functions").FunctionDefinition<NormalizationInput, NormalizationOutput>;
519
328
  export {};
520
329
  //# sourceMappingURL=normalization.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"normalization.d.ts","sourceRoot":"","sources":["../../../../src/segments-normalization/normalization.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAShC,QAAA,MAAM,kBAAkB;;;;;;kBA0Fs9M,CAAC;;;iCAAiI,CAAC;;wBAAmF,CAAC;;2BAA4G,CAAC;oBAA8C,CAAC;sBAAgD,CAAC;qBAAkG,CAAC;uBAAiD,CAAC;;iBAA2E,CAAC;oBAA8C,CAAC;yBAAmD,CAAC;oBAA8C,CAAC;oBAA8C,CAAC;sBAAgD,CAAC;iBAA2C,CAAC;kBAA4C,CAAC;;8BAAkF,CAAC;;sBAAiF,CAAC;;8BAAkF,CAAC;;wBAAmF,CAAC;;8BAAkF,CAAC;;qBAAgF,CAAC;;mCAAiF,CAAC;qCAA+D,CAAC;qCAA+D,CAAC;mCAA6D,CAAC;uCAAiE,CAAC;gDAA0E,CAAC;oCAA8D,CAAC;;8BAA+E,CAAC;;gBAA2E,CAAC;;8BAAkF,CAAC;;oBAA+E,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAlFxsR,CAAC;AAEF,MAAM,WAAW,kBAAmB,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,kBAAkB,CAAC;CAAG;AAE5F,eAAO,MAAM,kBAAkB;;;;;;;sBA8E+8M,CAAC;;;qCAAiI,CAAC;;4BAAmF,CAAC;;+BAA4G,CAAC;wBAA8C,CAAC;0BAAgD,CAAC;yBAAkG,CAAC;2BAAiD,CAAC;;qBAA2E,CAAC;wBAA8C,CAAC;6BAAmD,CAAC;wBAA8C,CAAC;wBAA8C,CAAC;0BAAgD,CAAC;qBAA2C,CAAC;sBAA4C,CAAC;;kCAAkF,CAAC;;0BAAiF,CAAC;;kCAAkF,CAAC;;4BAAmF,CAAC;;kCAAkF,CAAC;;yBAAgF,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