@dxos/plugin-thread 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 (120) hide show
  1. package/dist/lib/browser/{ChannelContainer-KWXUKR5Q.mjs → ChannelContainer-PKFBVENP.mjs} +3 -3
  2. package/dist/lib/browser/{app-graph-builder-CBWNZCXB.mjs → app-graph-builder-OY7R7EJP.mjs} +2 -2
  3. package/dist/lib/browser/chunk-6NBVNXTM.mjs +21 -0
  4. package/dist/lib/browser/{chunk-WDOQXTI2.mjs → chunk-AEXWNS6Z.mjs} +5 -3
  5. package/dist/lib/browser/chunk-AEXWNS6Z.mjs.map +7 -0
  6. package/dist/lib/browser/{chunk-3EYX6CV7.mjs → chunk-PG5CTFKK.mjs} +47 -43
  7. package/dist/lib/browser/chunk-PG5CTFKK.mjs.map +7 -0
  8. package/dist/lib/browser/{chunk-5IRYNA5K.mjs → chunk-XZKBN3NS.mjs} +30 -30
  9. package/dist/lib/browser/chunk-XZKBN3NS.mjs.map +7 -0
  10. package/dist/lib/browser/index.mjs +33 -7
  11. package/dist/lib/browser/index.mjs.map +3 -3
  12. package/dist/lib/browser/{intent-resolver-I37YU7K3.mjs → intent-resolver-FK2MDVDT.mjs} +19 -22
  13. package/dist/lib/browser/intent-resolver-FK2MDVDT.mjs.map +7 -0
  14. package/dist/lib/browser/{markdown-LS3XO2KB.mjs → markdown-TE5SWWNJ.mjs} +7 -8
  15. package/dist/lib/browser/markdown-TE5SWWNJ.mjs.map +7 -0
  16. package/dist/lib/browser/meta.json +1 -1
  17. package/dist/lib/browser/{react-root-KNCKPHGS.mjs → react-root-NK3A4VG7.mjs} +5 -5
  18. package/dist/lib/browser/{react-surface-ASWIBD7H.mjs → react-surface-VXUJKSOG.mjs} +5 -5
  19. package/dist/lib/browser/{settings-ZUY7OX24.mjs → settings-RB2RSLXV.mjs} +2 -2
  20. package/dist/lib/browser/types/index.mjs +1 -1
  21. package/dist/lib/node/{ChannelContainer-MA5CFESJ.cjs → ChannelContainer-YS5YT2ML.cjs} +8 -8
  22. package/dist/lib/node/{ChannelContainer-MA5CFESJ.cjs.map → ChannelContainer-YS5YT2ML.cjs.map} +2 -2
  23. package/dist/lib/node/{app-graph-builder-K5OAVYI6.cjs → app-graph-builder-PBHJNDQY.cjs} +9 -9
  24. package/dist/lib/node/{chunk-3YYSLZE4.cjs → chunk-ERG7G6FF.cjs} +10 -10
  25. package/dist/lib/node/{chunk-WCQKISL5.cjs → chunk-IP533AMV.cjs} +64 -60
  26. package/dist/lib/node/chunk-IP533AMV.cjs.map +7 -0
  27. package/dist/lib/node/{chunk-U4SZUERU.cjs → chunk-UM36TPCT.cjs} +33 -33
  28. package/dist/lib/node/chunk-UM36TPCT.cjs.map +7 -0
  29. package/dist/lib/node/{chunk-TKHJVC2C.cjs → chunk-ZGDN3XBR.cjs} +8 -6
  30. package/dist/lib/node/chunk-ZGDN3XBR.cjs.map +7 -0
  31. package/dist/lib/node/index.cjs +42 -16
  32. package/dist/lib/node/index.cjs.map +3 -3
  33. package/dist/lib/node/{intent-resolver-2TX6HSOL.cjs → intent-resolver-SYSJ5SJG.cjs} +36 -39
  34. package/dist/lib/node/intent-resolver-SYSJ5SJG.cjs.map +7 -0
  35. package/dist/lib/node/{markdown-GNFW2XDO.cjs → markdown-GQIPJS2F.cjs} +13 -14
  36. package/dist/lib/node/markdown-GQIPJS2F.cjs.map +7 -0
  37. package/dist/lib/node/meta.json +1 -1
  38. package/dist/lib/node/{react-root-BKOXG5AC.cjs → react-root-6HHDMULJ.cjs} +9 -9
  39. package/dist/lib/node/{react-surface-Q5DWX3UO.cjs → react-surface-NBH42NN2.cjs} +18 -18
  40. package/dist/lib/node/{settings-5O5V2NOE.cjs → settings-4LQSFEDK.cjs} +6 -6
  41. package/dist/lib/node/types/index.cjs +6 -6
  42. package/dist/lib/node/types/index.cjs.map +1 -1
  43. package/dist/lib/node-esm/{ChannelContainer-VGVEAUAQ.mjs → ChannelContainer-O4QJII2P.mjs} +3 -3
  44. package/dist/lib/node-esm/{app-graph-builder-UWJQE534.mjs → app-graph-builder-BAHBHYWI.mjs} +2 -2
  45. package/dist/lib/node-esm/{chunk-KP2JBSWF.mjs → chunk-2RNIPFDA.mjs} +30 -30
  46. package/dist/lib/node-esm/chunk-2RNIPFDA.mjs.map +7 -0
  47. package/dist/lib/node-esm/{chunk-EHDXOE5R.mjs → chunk-O63QJPQX.mjs} +7 -7
  48. package/dist/lib/node-esm/{chunk-J323VQ4P.mjs → chunk-UJMPYKT3.mjs} +5 -3
  49. package/dist/lib/node-esm/chunk-UJMPYKT3.mjs.map +7 -0
  50. package/dist/lib/node-esm/{chunk-6EGLDARC.mjs → chunk-UZWVVFT3.mjs} +47 -43
  51. package/dist/lib/node-esm/chunk-UZWVVFT3.mjs.map +7 -0
  52. package/dist/lib/node-esm/index.mjs +33 -7
  53. package/dist/lib/node-esm/index.mjs.map +3 -3
  54. package/dist/lib/node-esm/{intent-resolver-FHRK77IS.mjs → intent-resolver-BU73VYW3.mjs} +19 -22
  55. package/dist/lib/node-esm/intent-resolver-BU73VYW3.mjs.map +7 -0
  56. package/dist/lib/node-esm/{markdown-HBGB3UPJ.mjs → markdown-HJUWNBLS.mjs} +7 -8
  57. package/dist/lib/node-esm/markdown-HJUWNBLS.mjs.map +7 -0
  58. package/dist/lib/node-esm/meta.json +1 -1
  59. package/dist/lib/node-esm/{react-root-UPDDCRBV.mjs → react-root-RUXOAQNW.mjs} +5 -5
  60. package/dist/lib/node-esm/{react-surface-LU3CZDC4.mjs → react-surface-ELXFYKP6.mjs} +5 -5
  61. package/dist/lib/node-esm/{settings-KFEFSAYG.mjs → settings-EA7DFSM6.mjs} +2 -2
  62. package/dist/lib/node-esm/types/index.mjs +1 -1
  63. package/dist/types/src/ThreadPlugin.d.ts.map +1 -1
  64. package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -1
  65. package/dist/types/src/components/Comments.stories.d.ts.map +1 -1
  66. package/dist/types/src/components/CommentsContainer.d.ts +1 -1
  67. package/dist/types/src/components/CommentsContainer.d.ts.map +1 -1
  68. package/dist/types/src/components/ThreadComplementary.d.ts.map +1 -1
  69. package/dist/types/src/extensions/threads.d.ts.map +1 -1
  70. package/dist/types/src/translations.d.ts +128 -2
  71. package/dist/types/src/translations.d.ts.map +1 -1
  72. package/dist/types/src/types/schema.d.ts +117 -301
  73. package/dist/types/src/types/schema.d.ts.map +1 -1
  74. package/dist/types/src/types/types.d.ts +153 -828
  75. package/dist/types/src/types/types.d.ts.map +1 -1
  76. package/package.json +42 -42
  77. package/src/ThreadPlugin.tsx +26 -3
  78. package/src/capabilities/intent-resolver.ts +17 -18
  79. package/src/components/Call/Toolbar.tsx +1 -1
  80. package/src/components/ChannelContainer.tsx +18 -22
  81. package/src/components/CommentContainer.tsx +2 -2
  82. package/src/components/Comments.stories.tsx +12 -3
  83. package/src/components/CommentsContainer.tsx +21 -24
  84. package/src/components/ThreadComplementary.tsx +15 -16
  85. package/src/extensions/threads.ts +5 -6
  86. package/src/translations.ts +7 -2
  87. package/src/types/schema.ts +8 -4
  88. package/dist/lib/browser/chunk-3EYX6CV7.mjs.map +0 -7
  89. package/dist/lib/browser/chunk-5IRYNA5K.mjs.map +0 -7
  90. package/dist/lib/browser/chunk-FWBJHKRW.mjs +0 -21
  91. package/dist/lib/browser/chunk-WDOQXTI2.mjs.map +0 -7
  92. package/dist/lib/browser/intent-resolver-I37YU7K3.mjs.map +0 -7
  93. package/dist/lib/browser/markdown-LS3XO2KB.mjs.map +0 -7
  94. package/dist/lib/node/chunk-TKHJVC2C.cjs.map +0 -7
  95. package/dist/lib/node/chunk-U4SZUERU.cjs.map +0 -7
  96. package/dist/lib/node/chunk-WCQKISL5.cjs.map +0 -7
  97. package/dist/lib/node/intent-resolver-2TX6HSOL.cjs.map +0 -7
  98. package/dist/lib/node/markdown-GNFW2XDO.cjs.map +0 -7
  99. package/dist/lib/node-esm/chunk-6EGLDARC.mjs.map +0 -7
  100. package/dist/lib/node-esm/chunk-J323VQ4P.mjs.map +0 -7
  101. package/dist/lib/node-esm/chunk-KP2JBSWF.mjs.map +0 -7
  102. package/dist/lib/node-esm/intent-resolver-FHRK77IS.mjs.map +0 -7
  103. package/dist/lib/node-esm/markdown-HBGB3UPJ.mjs.map +0 -7
  104. /package/dist/lib/browser/{ChannelContainer-KWXUKR5Q.mjs.map → ChannelContainer-PKFBVENP.mjs.map} +0 -0
  105. /package/dist/lib/browser/{app-graph-builder-CBWNZCXB.mjs.map → app-graph-builder-OY7R7EJP.mjs.map} +0 -0
  106. /package/dist/lib/browser/{chunk-FWBJHKRW.mjs.map → chunk-6NBVNXTM.mjs.map} +0 -0
  107. /package/dist/lib/browser/{react-root-KNCKPHGS.mjs.map → react-root-NK3A4VG7.mjs.map} +0 -0
  108. /package/dist/lib/browser/{react-surface-ASWIBD7H.mjs.map → react-surface-VXUJKSOG.mjs.map} +0 -0
  109. /package/dist/lib/browser/{settings-ZUY7OX24.mjs.map → settings-RB2RSLXV.mjs.map} +0 -0
  110. /package/dist/lib/node/{app-graph-builder-K5OAVYI6.cjs.map → app-graph-builder-PBHJNDQY.cjs.map} +0 -0
  111. /package/dist/lib/node/{chunk-3YYSLZE4.cjs.map → chunk-ERG7G6FF.cjs.map} +0 -0
  112. /package/dist/lib/node/{react-root-BKOXG5AC.cjs.map → react-root-6HHDMULJ.cjs.map} +0 -0
  113. /package/dist/lib/node/{react-surface-Q5DWX3UO.cjs.map → react-surface-NBH42NN2.cjs.map} +0 -0
  114. /package/dist/lib/node/{settings-5O5V2NOE.cjs.map → settings-4LQSFEDK.cjs.map} +0 -0
  115. /package/dist/lib/node-esm/{ChannelContainer-VGVEAUAQ.mjs.map → ChannelContainer-O4QJII2P.mjs.map} +0 -0
  116. /package/dist/lib/node-esm/{app-graph-builder-UWJQE534.mjs.map → app-graph-builder-BAHBHYWI.mjs.map} +0 -0
  117. /package/dist/lib/node-esm/{chunk-EHDXOE5R.mjs.map → chunk-O63QJPQX.mjs.map} +0 -0
  118. /package/dist/lib/node-esm/{react-root-UPDDCRBV.mjs.map → react-root-RUXOAQNW.mjs.map} +0 -0
  119. /package/dist/lib/node-esm/{react-surface-LU3CZDC4.mjs.map → react-surface-ELXFYKP6.mjs.map} +0 -0
  120. /package/dist/lib/node-esm/{settings-KFEFSAYG.mjs.map → settings-EA7DFSM6.mjs.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  import { Schema } from 'effect';
2
2
  import { Type } from '@dxos/echo';
3
3
  import { AnchoredTo } from '@dxos/schema';
4
- import { ThreadType } from './schema';
4
+ import { ChannelType, ThreadType } from './schema';
5
5
  export declare namespace ThreadAction {
6
6
  const CreateChannel_base: Schema.TaggedClass<CreateChannel, "dxos.org/plugin/thread/action/create-channel", {
7
7
  readonly _tag: Schema.tag<"dxos.org/plugin/thread/action/create-channel">;
@@ -18,215 +18,12 @@ export declare namespace ThreadAction {
18
18
  name: Schema.optional<typeof Schema.String>;
19
19
  }>;
20
20
  output: Schema.Struct<{
21
- object: import("@dxos/echo-schema").EchoTypeSchema<Schema.Struct<{
22
- name: Schema.optional<typeof Schema.String>;
23
- defaultThread: import("@dxos/echo-schema").Ref$<{
24
- readonly id: string;
25
- name?: string | undefined;
26
- status?: "staged" | "active" | "resolved" | undefined;
27
- messages: import("@dxos/echo-schema").Ref<{
28
- readonly id: string;
29
- created: string;
30
- sender: {
31
- name?: string | undefined;
32
- email?: string | undefined;
33
- contact?: import("@dxos/echo-schema").Ref<{
34
- readonly id: string;
35
- fields?: {
36
- readonly value: string;
37
- readonly label: string;
38
- readonly category?: string | undefined;
39
- }[] | undefined;
40
- organization?: import("@dxos/echo-schema").Ref<{
41
- readonly id: string;
42
- description?: string | undefined;
43
- name?: string | undefined;
44
- status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
45
- image?: string | undefined;
46
- website?: string | undefined;
47
- }> | undefined;
48
- image?: string | undefined;
49
- fullName?: string | undefined;
50
- preferredName?: string | undefined;
51
- nickname?: string | undefined;
52
- jobTitle?: string | undefined;
53
- department?: string | undefined;
54
- notes?: string | undefined;
55
- emails?: {
56
- readonly value: string;
57
- readonly label?: string | undefined;
58
- }[] | undefined;
59
- identities?: {
60
- readonly value: string;
61
- readonly label?: string | undefined;
62
- }[] | undefined;
63
- phoneNumbers?: {
64
- readonly value: string;
65
- readonly label?: string | undefined;
66
- }[] | undefined;
67
- addresses?: {
68
- readonly value: {
69
- readonly street?: string | undefined;
70
- readonly extended?: string | undefined;
71
- readonly locality?: string | undefined;
72
- readonly region?: string | undefined;
73
- readonly postalCode?: string | undefined;
74
- readonly postOfficeBoxNumber?: string | undefined;
75
- readonly country?: string | undefined;
76
- };
77
- readonly label?: string | undefined;
78
- }[] | undefined;
79
- urls?: {
80
- readonly value: string;
81
- readonly label?: string | undefined;
82
- }[] | undefined;
83
- birthday?: string | undefined;
84
- }> | undefined;
85
- identityDid?: string | undefined;
86
- identityKey?: string | undefined;
87
- role?: "user" | "assistant" | undefined;
88
- };
89
- blocks: ({
90
- pending?: boolean | undefined;
91
- text: string;
92
- type: "text";
93
- disposition?: string | undefined;
94
- } | {
95
- pending?: boolean | undefined;
96
- data: string;
97
- type: "json";
98
- disposition?: string | undefined;
99
- } | {
100
- pending?: boolean | undefined;
101
- id?: string | undefined;
102
- source?: {
103
- data: string;
104
- type: "base64";
105
- mediaType: string;
106
- } | {
107
- url: string;
108
- type: "http";
109
- } | undefined;
110
- type: "image";
111
- } | {
112
- pending?: boolean | undefined;
113
- type: "reference";
114
- reference: import("@dxos/echo-schema").Ref<Type.Expando>;
115
- } | {
116
- pending?: boolean | undefined;
117
- text: string;
118
- type: "transcription";
119
- started: string;
120
- })[];
121
- properties?: {
122
- [x: string]: any;
123
- } | undefined;
124
- }>[];
125
- }>;
126
- threads: Schema.mutable<Schema.Array$<import("@dxos/echo-schema").Ref$<{
127
- readonly id: string;
128
- name?: string | undefined;
129
- status?: "staged" | "active" | "resolved" | undefined;
130
- messages: import("@dxos/echo-schema").Ref<{
131
- readonly id: string;
132
- created: string;
133
- sender: {
134
- name?: string | undefined;
135
- email?: string | undefined;
136
- contact?: import("@dxos/echo-schema").Ref<{
137
- readonly id: string;
138
- fields?: {
139
- readonly value: string;
140
- readonly label: string;
141
- readonly category?: string | undefined;
142
- }[] | undefined;
143
- organization?: import("@dxos/echo-schema").Ref<{
144
- readonly id: string;
145
- description?: string | undefined;
146
- name?: string | undefined;
147
- status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
148
- image?: string | undefined;
149
- website?: string | undefined;
150
- }> | undefined;
151
- image?: string | undefined;
152
- fullName?: string | undefined;
153
- preferredName?: string | undefined;
154
- nickname?: string | undefined;
155
- jobTitle?: string | undefined;
156
- department?: string | undefined;
157
- notes?: string | undefined;
158
- emails?: {
159
- readonly value: string;
160
- readonly label?: string | undefined;
161
- }[] | undefined;
162
- identities?: {
163
- readonly value: string;
164
- readonly label?: string | undefined;
165
- }[] | undefined;
166
- phoneNumbers?: {
167
- readonly value: string;
168
- readonly label?: string | undefined;
169
- }[] | undefined;
170
- addresses?: {
171
- readonly value: {
172
- readonly street?: string | undefined;
173
- readonly extended?: string | undefined;
174
- readonly locality?: string | undefined;
175
- readonly region?: string | undefined;
176
- readonly postalCode?: string | undefined;
177
- readonly postOfficeBoxNumber?: string | undefined;
178
- readonly country?: string | undefined;
179
- };
180
- readonly label?: string | undefined;
181
- }[] | undefined;
182
- urls?: {
183
- readonly value: string;
184
- readonly label?: string | undefined;
185
- }[] | undefined;
186
- birthday?: string | undefined;
187
- }> | undefined;
188
- identityDid?: string | undefined;
189
- identityKey?: string | undefined;
190
- role?: "user" | "assistant" | undefined;
191
- };
192
- blocks: ({
193
- pending?: boolean | undefined;
194
- text: string;
195
- type: "text";
196
- disposition?: string | undefined;
197
- } | {
198
- pending?: boolean | undefined;
199
- data: string;
200
- type: "json";
201
- disposition?: string | undefined;
202
- } | {
203
- pending?: boolean | undefined;
204
- id?: string | undefined;
205
- source?: {
206
- data: string;
207
- type: "base64";
208
- mediaType: string;
209
- } | {
210
- url: string;
211
- type: "http";
212
- } | undefined;
213
- type: "image";
214
- } | {
215
- pending?: boolean | undefined;
216
- type: "reference";
217
- reference: import("@dxos/echo-schema").Ref<Type.Expando>;
218
- } | {
219
- pending?: boolean | undefined;
220
- text: string;
221
- type: "transcription";
222
- started: string;
223
- })[];
224
- properties?: {
225
- [x: string]: any;
226
- } | undefined;
227
- }>[];
228
- }>>>;
229
- }>, {}>;
21
+ object: Type.obj<Schema.Schema<ChannelType, {
22
+ id: string;
23
+ defaultThread: import("@dxos/echo-protocol").EncodedReference;
24
+ threads: import("@dxos/echo-protocol").EncodedReference[];
25
+ name?: string | undefined;
26
+ }, never>>;
230
27
  }>;
231
28
  }>;
232
29
  export class CreateChannel extends CreateChannel_base {
@@ -235,319 +32,20 @@ export declare namespace ThreadAction {
235
32
  readonly _tag: Schema.tag<"dxos.org/plugin/thread/action/create-channel-thread">;
236
33
  } & {
237
34
  input: Schema.Struct<{
238
- channel: import("@dxos/echo-schema").EchoTypeSchema<Schema.Struct<{
239
- name: Schema.optional<typeof Schema.String>;
240
- defaultThread: import("@dxos/echo-schema").Ref$<{
241
- readonly id: string;
242
- name?: string | undefined;
243
- status?: "staged" | "active" | "resolved" | undefined;
244
- messages: import("@dxos/echo-schema").Ref<{
245
- readonly id: string;
246
- created: string;
247
- sender: {
248
- name?: string | undefined;
249
- email?: string | undefined;
250
- contact?: import("@dxos/echo-schema").Ref<{
251
- readonly id: string;
252
- fields?: {
253
- readonly value: string;
254
- readonly label: string;
255
- readonly category?: string | undefined;
256
- }[] | undefined;
257
- organization?: import("@dxos/echo-schema").Ref<{
258
- readonly id: string;
259
- description?: string | undefined;
260
- name?: string | undefined;
261
- status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
262
- image?: string | undefined;
263
- website?: string | undefined;
264
- }> | undefined;
265
- image?: string | undefined;
266
- fullName?: string | undefined;
267
- preferredName?: string | undefined;
268
- nickname?: string | undefined;
269
- jobTitle?: string | undefined;
270
- department?: string | undefined;
271
- notes?: string | undefined;
272
- emails?: {
273
- readonly value: string;
274
- readonly label?: string | undefined;
275
- }[] | undefined;
276
- identities?: {
277
- readonly value: string;
278
- readonly label?: string | undefined;
279
- }[] | undefined;
280
- phoneNumbers?: {
281
- readonly value: string;
282
- readonly label?: string | undefined;
283
- }[] | undefined;
284
- addresses?: {
285
- readonly value: {
286
- readonly street?: string | undefined;
287
- readonly extended?: string | undefined;
288
- readonly locality?: string | undefined;
289
- readonly region?: string | undefined;
290
- readonly postalCode?: string | undefined;
291
- readonly postOfficeBoxNumber?: string | undefined;
292
- readonly country?: string | undefined;
293
- };
294
- readonly label?: string | undefined;
295
- }[] | undefined;
296
- urls?: {
297
- readonly value: string;
298
- readonly label?: string | undefined;
299
- }[] | undefined;
300
- birthday?: string | undefined;
301
- }> | undefined;
302
- identityDid?: string | undefined;
303
- identityKey?: string | undefined;
304
- role?: "user" | "assistant" | undefined;
305
- };
306
- blocks: ({
307
- pending?: boolean | undefined;
308
- text: string;
309
- type: "text";
310
- disposition?: string | undefined;
311
- } | {
312
- pending?: boolean | undefined;
313
- data: string;
314
- type: "json";
315
- disposition?: string | undefined;
316
- } | {
317
- pending?: boolean | undefined;
318
- id?: string | undefined;
319
- source?: {
320
- data: string;
321
- type: "base64";
322
- mediaType: string;
323
- } | {
324
- url: string;
325
- type: "http";
326
- } | undefined;
327
- type: "image";
328
- } | {
329
- pending?: boolean | undefined;
330
- type: "reference";
331
- reference: import("@dxos/echo-schema").Ref<Type.Expando>;
332
- } | {
333
- pending?: boolean | undefined;
334
- text: string;
335
- type: "transcription";
336
- started: string;
337
- })[];
338
- properties?: {
339
- [x: string]: any;
340
- } | undefined;
341
- }>[];
342
- }>;
343
- threads: Schema.mutable<Schema.Array$<import("@dxos/echo-schema").Ref$<{
344
- readonly id: string;
345
- name?: string | undefined;
346
- status?: "staged" | "active" | "resolved" | undefined;
347
- messages: import("@dxos/echo-schema").Ref<{
348
- readonly id: string;
349
- created: string;
350
- sender: {
351
- name?: string | undefined;
352
- email?: string | undefined;
353
- contact?: import("@dxos/echo-schema").Ref<{
354
- readonly id: string;
355
- fields?: {
356
- readonly value: string;
357
- readonly label: string;
358
- readonly category?: string | undefined;
359
- }[] | undefined;
360
- organization?: import("@dxos/echo-schema").Ref<{
361
- readonly id: string;
362
- description?: string | undefined;
363
- name?: string | undefined;
364
- status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
365
- image?: string | undefined;
366
- website?: string | undefined;
367
- }> | undefined;
368
- image?: string | undefined;
369
- fullName?: string | undefined;
370
- preferredName?: string | undefined;
371
- nickname?: string | undefined;
372
- jobTitle?: string | undefined;
373
- department?: string | undefined;
374
- notes?: string | undefined;
375
- emails?: {
376
- readonly value: string;
377
- readonly label?: string | undefined;
378
- }[] | undefined;
379
- identities?: {
380
- readonly value: string;
381
- readonly label?: string | undefined;
382
- }[] | undefined;
383
- phoneNumbers?: {
384
- readonly value: string;
385
- readonly label?: string | undefined;
386
- }[] | undefined;
387
- addresses?: {
388
- readonly value: {
389
- readonly street?: string | undefined;
390
- readonly extended?: string | undefined;
391
- readonly locality?: string | undefined;
392
- readonly region?: string | undefined;
393
- readonly postalCode?: string | undefined;
394
- readonly postOfficeBoxNumber?: string | undefined;
395
- readonly country?: string | undefined;
396
- };
397
- readonly label?: string | undefined;
398
- }[] | undefined;
399
- urls?: {
400
- readonly value: string;
401
- readonly label?: string | undefined;
402
- }[] | undefined;
403
- birthday?: string | undefined;
404
- }> | undefined;
405
- identityDid?: string | undefined;
406
- identityKey?: string | undefined;
407
- role?: "user" | "assistant" | undefined;
408
- };
409
- blocks: ({
410
- pending?: boolean | undefined;
411
- text: string;
412
- type: "text";
413
- disposition?: string | undefined;
414
- } | {
415
- pending?: boolean | undefined;
416
- data: string;
417
- type: "json";
418
- disposition?: string | undefined;
419
- } | {
420
- pending?: boolean | undefined;
421
- id?: string | undefined;
422
- source?: {
423
- data: string;
424
- type: "base64";
425
- mediaType: string;
426
- } | {
427
- url: string;
428
- type: "http";
429
- } | undefined;
430
- type: "image";
431
- } | {
432
- pending?: boolean | undefined;
433
- type: "reference";
434
- reference: import("@dxos/echo-schema").Ref<Type.Expando>;
435
- } | {
436
- pending?: boolean | undefined;
437
- text: string;
438
- type: "transcription";
439
- started: string;
440
- })[];
441
- properties?: {
442
- [x: string]: any;
443
- } | undefined;
444
- }>[];
445
- }>>>;
446
- }>, {}>;
35
+ channel: Type.obj<Schema.Schema<ChannelType, {
36
+ id: string;
37
+ defaultThread: import("@dxos/echo-protocol").EncodedReference;
38
+ threads: import("@dxos/echo-protocol").EncodedReference[];
39
+ name?: string | undefined;
40
+ }, never>>;
447
41
  }>;
448
42
  output: Schema.Struct<{
449
- object: import("@dxos/echo-schema").EchoTypeSchema<Schema.Struct<{
450
- name: Schema.optional<typeof Schema.String>;
451
- status: Schema.optional<Schema.Union<[Schema.Literal<["staged"]>, Schema.Literal<["active"]>, Schema.Literal<["resolved"]>]>>;
452
- messages: Schema.mutable<Schema.Array$<import("@dxos/echo-schema").Ref$<{
453
- readonly id: string;
454
- created: string;
455
- sender: {
456
- name?: string | undefined;
457
- email?: string | undefined;
458
- contact?: import("@dxos/echo-schema").Ref<{
459
- readonly id: string;
460
- fields?: {
461
- readonly value: string;
462
- readonly label: string;
463
- readonly category?: string | undefined;
464
- }[] | undefined;
465
- organization?: import("@dxos/echo-schema").Ref<{
466
- readonly id: string;
467
- description?: string | undefined;
468
- name?: string | undefined;
469
- status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
470
- image?: string | undefined;
471
- website?: string | undefined;
472
- }> | undefined;
473
- image?: string | undefined;
474
- fullName?: string | undefined;
475
- preferredName?: string | undefined;
476
- nickname?: string | undefined;
477
- jobTitle?: string | undefined;
478
- department?: string | undefined;
479
- notes?: string | undefined;
480
- emails?: {
481
- readonly value: string;
482
- readonly label?: string | undefined;
483
- }[] | undefined;
484
- identities?: {
485
- readonly value: string;
486
- readonly label?: string | undefined;
487
- }[] | undefined;
488
- phoneNumbers?: {
489
- readonly value: string;
490
- readonly label?: string | undefined;
491
- }[] | undefined;
492
- addresses?: {
493
- readonly value: {
494
- readonly street?: string | undefined;
495
- readonly extended?: string | undefined;
496
- readonly locality?: string | undefined;
497
- readonly region?: string | undefined;
498
- readonly postalCode?: string | undefined;
499
- readonly postOfficeBoxNumber?: string | undefined;
500
- readonly country?: string | undefined;
501
- };
502
- readonly label?: string | undefined;
503
- }[] | undefined;
504
- urls?: {
505
- readonly value: string;
506
- readonly label?: string | undefined;
507
- }[] | undefined;
508
- birthday?: string | undefined;
509
- }> | undefined;
510
- identityDid?: string | undefined;
511
- identityKey?: string | undefined;
512
- role?: "user" | "assistant" | undefined;
513
- };
514
- blocks: ({
515
- pending?: boolean | undefined;
516
- text: string;
517
- type: "text";
518
- disposition?: string | undefined;
519
- } | {
520
- pending?: boolean | undefined;
521
- data: string;
522
- type: "json";
523
- disposition?: string | undefined;
524
- } | {
525
- pending?: boolean | undefined;
526
- id?: string | undefined;
527
- source?: {
528
- data: string;
529
- type: "base64";
530
- mediaType: string;
531
- } | {
532
- url: string;
533
- type: "http";
534
- } | undefined;
535
- type: "image";
536
- } | {
537
- pending?: boolean | undefined;
538
- type: "reference";
539
- reference: import("@dxos/echo-schema").Ref<Type.Expando>;
540
- } | {
541
- pending?: boolean | undefined;
542
- text: string;
543
- type: "transcription";
544
- started: string;
545
- })[];
546
- properties?: {
547
- [x: string]: any;
548
- } | undefined;
549
- }>>>;
550
- }>, {}>;
43
+ object: Type.obj<Schema.Schema<ThreadType, {
44
+ id: string;
45
+ messages: import("@dxos/echo-protocol").EncodedReference[];
46
+ name?: string | undefined;
47
+ status?: "staged" | "active" | "resolved" | undefined;
48
+ }, never>>;
551
49
  }>;
552
50
  }>;
553
51
  export class CreateChannelThread extends CreateChannelThread_base {
@@ -568,113 +66,23 @@ export declare namespace ThreadAction {
568
66
  readonly _tag: Schema.tag<"dxos.org/plugin/thread/action/delete">;
569
67
  } & {
570
68
  input: Schema.Struct<{
571
- anchor: import("@dxos/echo-schema").EchoTypeSchema<Schema.Struct<{
69
+ anchor: Type.relation<Schema.Struct<{
572
70
  id: import("@dxos/keys").ObjectIdClass;
573
71
  anchor: Schema.optional<typeof Schema.String>;
574
- }>, import("@dxos/echo-schema").RelationSourceTargetRefs<Type.Expando, Type.Expando>>;
72
+ }>, Schema.Schema<Type.Expando, {
73
+ [x: string]: any;
74
+ id: string;
75
+ }, never>, Schema.Schema<Type.Expando, {
76
+ [x: string]: any;
77
+ id: string;
78
+ }, never>>;
575
79
  subject: Schema.Schema<any, any, never>;
576
- thread: Schema.optional<import("@dxos/echo-schema").EchoTypeSchema<Schema.Struct<{
577
- name: Schema.optional<typeof Schema.String>;
578
- status: Schema.optional<Schema.Union<[Schema.Literal<["staged"]>, Schema.Literal<["active"]>, Schema.Literal<["resolved"]>]>>;
579
- messages: Schema.mutable<Schema.Array$<import("@dxos/echo-schema").Ref$<{
580
- readonly id: string;
581
- created: string;
582
- sender: {
583
- name?: string | undefined;
584
- email?: string | undefined;
585
- contact?: import("@dxos/echo-schema").Ref<{
586
- readonly id: string;
587
- fields?: {
588
- readonly value: string;
589
- readonly label: string;
590
- readonly category?: string | undefined;
591
- }[] | undefined;
592
- organization?: import("@dxos/echo-schema").Ref<{
593
- readonly id: string;
594
- description?: string | undefined;
595
- name?: string | undefined;
596
- status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
597
- image?: string | undefined;
598
- website?: string | undefined;
599
- }> | undefined;
600
- image?: string | undefined;
601
- fullName?: string | undefined;
602
- preferredName?: string | undefined;
603
- nickname?: string | undefined;
604
- jobTitle?: string | undefined;
605
- department?: string | undefined;
606
- notes?: string | undefined;
607
- emails?: {
608
- readonly value: string;
609
- readonly label?: string | undefined;
610
- }[] | undefined;
611
- identities?: {
612
- readonly value: string;
613
- readonly label?: string | undefined;
614
- }[] | undefined;
615
- phoneNumbers?: {
616
- readonly value: string;
617
- readonly label?: string | undefined;
618
- }[] | undefined;
619
- addresses?: {
620
- readonly value: {
621
- readonly street?: string | undefined;
622
- readonly extended?: string | undefined;
623
- readonly locality?: string | undefined;
624
- readonly region?: string | undefined;
625
- readonly postalCode?: string | undefined;
626
- readonly postOfficeBoxNumber?: string | undefined;
627
- readonly country?: string | undefined;
628
- };
629
- readonly label?: string | undefined;
630
- }[] | undefined;
631
- urls?: {
632
- readonly value: string;
633
- readonly label?: string | undefined;
634
- }[] | undefined;
635
- birthday?: string | undefined;
636
- }> | undefined;
637
- identityDid?: string | undefined;
638
- identityKey?: string | undefined;
639
- role?: "user" | "assistant" | undefined;
640
- };
641
- blocks: ({
642
- pending?: boolean | undefined;
643
- text: string;
644
- type: "text";
645
- disposition?: string | undefined;
646
- } | {
647
- pending?: boolean | undefined;
648
- data: string;
649
- type: "json";
650
- disposition?: string | undefined;
651
- } | {
652
- pending?: boolean | undefined;
653
- id?: string | undefined;
654
- source?: {
655
- data: string;
656
- type: "base64";
657
- mediaType: string;
658
- } | {
659
- url: string;
660
- type: "http";
661
- } | undefined;
662
- type: "image";
663
- } | {
664
- pending?: boolean | undefined;
665
- type: "reference";
666
- reference: import("@dxos/echo-schema").Ref<Type.Expando>;
667
- } | {
668
- pending?: boolean | undefined;
669
- text: string;
670
- type: "transcription";
671
- started: string;
672
- })[];
673
- properties?: {
674
- [x: string]: any;
675
- } | undefined;
676
- }>>>;
677
- }>, {}>>;
80
+ thread: Schema.optional<Type.obj<Schema.Schema<ThreadType, {
81
+ id: string;
82
+ messages: import("@dxos/echo-protocol").EncodedReference[];
83
+ name?: string | undefined;
84
+ status?: "staged" | "active" | "resolved" | undefined;
85
+ }, never>>>;
678
86
  }>;
679
87
  output: typeof Schema.Void;
680
88
  }>;
@@ -694,108 +102,12 @@ export declare namespace ThreadAction {
694
102
  readonly _tag: Schema.tag<"dxos.org/plugin/thread/action/toggle-resolved">;
695
103
  } & {
696
104
  input: Schema.Struct<{
697
- thread: import("@dxos/echo-schema").EchoTypeSchema<Schema.Struct<{
698
- name: Schema.optional<typeof Schema.String>;
699
- status: Schema.optional<Schema.Union<[Schema.Literal<["staged"]>, Schema.Literal<["active"]>, Schema.Literal<["resolved"]>]>>;
700
- messages: Schema.mutable<Schema.Array$<import("@dxos/echo-schema").Ref$<{
701
- readonly id: string;
702
- created: string;
703
- sender: {
704
- name?: string | undefined;
705
- email?: string | undefined;
706
- contact?: import("@dxos/echo-schema").Ref<{
707
- readonly id: string;
708
- fields?: {
709
- readonly value: string;
710
- readonly label: string;
711
- readonly category?: string | undefined;
712
- }[] | undefined;
713
- organization?: import("@dxos/echo-schema").Ref<{
714
- readonly id: string;
715
- description?: string | undefined;
716
- name?: string | undefined;
717
- status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
718
- image?: string | undefined;
719
- website?: string | undefined;
720
- }> | undefined;
721
- image?: string | undefined;
722
- fullName?: string | undefined;
723
- preferredName?: string | undefined;
724
- nickname?: string | undefined;
725
- jobTitle?: string | undefined;
726
- department?: string | undefined;
727
- notes?: string | undefined;
728
- emails?: {
729
- readonly value: string;
730
- readonly label?: string | undefined;
731
- }[] | undefined;
732
- identities?: {
733
- readonly value: string;
734
- readonly label?: string | undefined;
735
- }[] | undefined;
736
- phoneNumbers?: {
737
- readonly value: string;
738
- readonly label?: string | undefined;
739
- }[] | undefined;
740
- addresses?: {
741
- readonly value: {
742
- readonly street?: string | undefined;
743
- readonly extended?: string | undefined;
744
- readonly locality?: string | undefined;
745
- readonly region?: string | undefined;
746
- readonly postalCode?: string | undefined;
747
- readonly postOfficeBoxNumber?: string | undefined;
748
- readonly country?: string | undefined;
749
- };
750
- readonly label?: string | undefined;
751
- }[] | undefined;
752
- urls?: {
753
- readonly value: string;
754
- readonly label?: string | undefined;
755
- }[] | undefined;
756
- birthday?: string | undefined;
757
- }> | undefined;
758
- identityDid?: string | undefined;
759
- identityKey?: string | undefined;
760
- role?: "user" | "assistant" | undefined;
761
- };
762
- blocks: ({
763
- pending?: boolean | undefined;
764
- text: string;
765
- type: "text";
766
- disposition?: string | undefined;
767
- } | {
768
- pending?: boolean | undefined;
769
- data: string;
770
- type: "json";
771
- disposition?: string | undefined;
772
- } | {
773
- pending?: boolean | undefined;
774
- id?: string | undefined;
775
- source?: {
776
- data: string;
777
- type: "base64";
778
- mediaType: string;
779
- } | {
780
- url: string;
781
- type: "http";
782
- } | undefined;
783
- type: "image";
784
- } | {
785
- pending?: boolean | undefined;
786
- type: "reference";
787
- reference: import("@dxos/echo-schema").Ref<Type.Expando>;
788
- } | {
789
- pending?: boolean | undefined;
790
- text: string;
791
- type: "transcription";
792
- started: string;
793
- })[];
794
- properties?: {
795
- [x: string]: any;
796
- } | undefined;
797
- }>>>;
798
- }>, {}>;
105
+ thread: Type.obj<Schema.Schema<ThreadType, {
106
+ id: string;
107
+ messages: import("@dxos/echo-protocol").EncodedReference[];
108
+ name?: string | undefined;
109
+ status?: "staged" | "active" | "resolved" | undefined;
110
+ }, never>>;
799
111
  }>;
800
112
  output: typeof Schema.Void;
801
113
  }>;
@@ -806,63 +118,68 @@ export declare namespace ThreadAction {
806
118
  } & {
807
119
  input: Schema.Struct<{
808
120
  subject: Schema.Schema<any, any, never>;
809
- anchor: import("@dxos/echo-schema").EchoTypeSchema<Schema.Struct<{
121
+ anchor: Type.relation<Schema.Struct<{
810
122
  id: import("@dxos/keys").ObjectIdClass;
811
123
  anchor: Schema.optional<typeof Schema.String>;
812
- }>, import("@dxos/echo-schema").RelationSourceTargetRefs<Type.Expando, Type.Expando>>;
124
+ }>, Schema.Schema<Type.Expando, {
125
+ [x: string]: any;
126
+ id: string;
127
+ }, never>, Schema.Schema<Type.Expando, {
128
+ [x: string]: any;
129
+ id: string;
130
+ }, never>>;
813
131
  sender: Schema.Struct<{
814
- contact: import("effect/Schema").optional<import("@dxos/echo-schema").Ref$<{
815
- readonly id: string;
816
- fields?: {
817
- readonly value: string;
818
- readonly label: string;
819
- readonly category?: string | undefined;
820
- }[] | undefined;
821
- organization?: import("@dxos/echo-schema").Ref<{
822
- readonly id: string;
132
+ contact: import("effect/Schema").optional<import("@dxos/echo/Type").ref<import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
133
+ fullName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
134
+ preferredName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
135
+ nickname: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
136
+ image: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
137
+ 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> & {
823
138
  description?: string | undefined;
139
+ id: string;
824
140
  name?: string | undefined;
825
141
  status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
826
142
  image?: string | undefined;
827
143
  website?: string | undefined;
828
- }> | undefined;
829
- image?: string | undefined;
830
- fullName?: string | undefined;
831
- preferredName?: string | undefined;
832
- nickname?: string | undefined;
833
- jobTitle?: string | undefined;
834
- department?: string | undefined;
835
- notes?: string | undefined;
836
- emails?: {
837
- readonly value: string;
838
- readonly label?: string | undefined;
839
- }[] | undefined;
840
- identities?: {
841
- readonly value: string;
842
- readonly label?: string | undefined;
843
- }[] | undefined;
844
- phoneNumbers?: {
845
- readonly value: string;
846
- readonly label?: string | undefined;
847
- }[] | undefined;
848
- addresses?: {
849
- readonly value: {
850
- readonly street?: string | undefined;
851
- readonly extended?: string | undefined;
852
- readonly locality?: string | undefined;
853
- readonly region?: string | undefined;
854
- readonly postalCode?: string | undefined;
855
- readonly postOfficeBoxNumber?: string | undefined;
856
- readonly country?: string | undefined;
857
- };
858
- readonly label?: string | undefined;
859
- }[] | undefined;
860
- urls?: {
861
- readonly value: string;
862
- readonly label?: string | undefined;
863
- }[] | undefined;
864
- birthday?: string | undefined;
865
- }>>;
144
+ }>, import("@dxos/echo-protocol").EncodedReference, never>>;
145
+ jobTitle: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
146
+ department: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
147
+ notes: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
148
+ emails: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
149
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
150
+ value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
151
+ }>>>>;
152
+ identities: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
153
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
154
+ value: typeof import("effect/Schema").String;
155
+ }>>>>;
156
+ phoneNumbers: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
157
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
158
+ value: typeof import("effect/Schema").String;
159
+ }>>>>;
160
+ addresses: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
161
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
162
+ value: import("effect/Schema").Struct<{
163
+ street: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
164
+ extended: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
165
+ locality: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
166
+ region: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
167
+ postalCode: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
168
+ postOfficeBoxNumber: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
169
+ country: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
170
+ }>;
171
+ }>>>>;
172
+ urls: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
173
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
174
+ value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
175
+ }>>>>;
176
+ birthday: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").SchemaClass<string, string, never>>>;
177
+ fields: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
178
+ category: import("effect/Schema").optional<typeof import("effect/Schema").String>;
179
+ label: typeof import("effect/Schema").String;
180
+ value: typeof import("effect/Schema").String;
181
+ }>>>>;
182
+ }>>>>;
866
183
  identityDid: import("effect/Schema").optional<typeof import("effect/Schema").String>;
867
184
  identityKey: import("effect/Schema").optional<typeof import("effect/Schema").String>;
868
185
  email: import("effect/Schema").optional<typeof import("effect/Schema").String>;
@@ -879,68 +196,73 @@ export declare namespace ThreadAction {
879
196
  readonly _tag: Schema.tag<"dxos.org/plugin/thread/action/delete-message">;
880
197
  } & {
881
198
  input: Schema.Struct<{
882
- anchor: import("@dxos/echo-schema").EchoTypeSchema<Schema.Struct<{
199
+ anchor: Type.relation<Schema.Struct<{
883
200
  id: import("@dxos/keys").ObjectIdClass;
884
201
  anchor: Schema.optional<typeof Schema.String>;
885
- }>, import("@dxos/echo-schema").RelationSourceTargetRefs<Type.Expando, Type.Expando>>;
202
+ }>, Schema.Schema<Type.Expando, {
203
+ [x: string]: any;
204
+ id: string;
205
+ }, never>, Schema.Schema<Type.Expando, {
206
+ [x: string]: any;
207
+ id: string;
208
+ }, never>>;
886
209
  subject: Schema.Schema<any, any, never>;
887
210
  messageId: typeof Schema.String;
888
- message: Schema.optional<import("@dxos/echo-schema").EchoTypeSchema<Schema.Struct<{
211
+ message: Schema.optional<Type.obj<Schema.Struct<{
889
212
  id: import("@dxos/keys").ObjectIdClass;
890
213
  created: import("effect/Schema").SchemaClass<string, string, never>;
891
214
  sender: import("effect/Schema").mutable<import("effect/Schema").Struct<{
892
- contact: import("effect/Schema").optional<import("@dxos/echo-schema").Ref$<{
893
- readonly id: string;
894
- fields?: {
895
- readonly value: string;
896
- readonly label: string;
897
- readonly category?: string | undefined;
898
- }[] | undefined;
899
- organization?: import("@dxos/echo-schema").Ref<{
900
- readonly id: string;
215
+ contact: import("effect/Schema").optional<import("@dxos/echo/Type").ref<import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
216
+ fullName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
217
+ preferredName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
218
+ nickname: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
219
+ image: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
220
+ 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> & {
901
221
  description?: string | undefined;
222
+ id: string;
902
223
  name?: string | undefined;
903
224
  status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
904
225
  image?: string | undefined;
905
226
  website?: string | undefined;
906
- }> | undefined;
907
- image?: string | undefined;
908
- fullName?: string | undefined;
909
- preferredName?: string | undefined;
910
- nickname?: string | undefined;
911
- jobTitle?: string | undefined;
912
- department?: string | undefined;
913
- notes?: string | undefined;
914
- emails?: {
915
- readonly value: string;
916
- readonly label?: string | undefined;
917
- }[] | undefined;
918
- identities?: {
919
- readonly value: string;
920
- readonly label?: string | undefined;
921
- }[] | undefined;
922
- phoneNumbers?: {
923
- readonly value: string;
924
- readonly label?: string | undefined;
925
- }[] | undefined;
926
- addresses?: {
927
- readonly value: {
928
- readonly street?: string | undefined;
929
- readonly extended?: string | undefined;
930
- readonly locality?: string | undefined;
931
- readonly region?: string | undefined;
932
- readonly postalCode?: string | undefined;
933
- readonly postOfficeBoxNumber?: string | undefined;
934
- readonly country?: string | undefined;
935
- };
936
- readonly label?: string | undefined;
937
- }[] | undefined;
938
- urls?: {
939
- readonly value: string;
940
- readonly label?: string | undefined;
941
- }[] | undefined;
942
- birthday?: string | undefined;
943
- }>>;
227
+ }>, import("@dxos/echo-protocol").EncodedReference, never>>;
228
+ jobTitle: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
229
+ department: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
230
+ notes: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
231
+ emails: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
232
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
233
+ value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
234
+ }>>>>;
235
+ identities: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
236
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
237
+ value: typeof import("effect/Schema").String;
238
+ }>>>>;
239
+ phoneNumbers: 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: typeof import("effect/Schema").String;
242
+ }>>>>;
243
+ addresses: 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: import("effect/Schema").Struct<{
246
+ street: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
247
+ extended: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
248
+ locality: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
249
+ region: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
250
+ postalCode: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
251
+ postOfficeBoxNumber: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
252
+ country: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
253
+ }>;
254
+ }>>>>;
255
+ urls: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
256
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
257
+ value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
258
+ }>>>>;
259
+ birthday: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").SchemaClass<string, string, never>>>;
260
+ fields: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
261
+ category: import("effect/Schema").optional<typeof import("effect/Schema").String>;
262
+ label: typeof import("effect/Schema").String;
263
+ value: typeof import("effect/Schema").String;
264
+ }>>>>;
265
+ }>>>>;
944
266
  identityDid: import("effect/Schema").optional<typeof import("effect/Schema").String>;
945
267
  identityKey: import("effect/Schema").optional<typeof import("effect/Schema").String>;
946
268
  email: import("effect/Schema").optional<typeof import("effect/Schema").String>;
@@ -976,7 +298,10 @@ export declare namespace ThreadAction {
976
298
  pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
977
299
  }>, import("effect/Schema").Struct<{
978
300
  type: import("effect/Schema").Literal<["reference"]>;
979
- reference: import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").Expando>;
301
+ reference: import("@dxos/echo/Type").ref<import("effect/Schema").Schema<import("@dxos/echo/Type").Expando, {
302
+ [x: string]: any;
303
+ id: string;
304
+ }, never>>;
980
305
  }>>>, import("effect/Schema").mutable<import("effect/Schema").extend<import("effect/Schema").Struct<{
981
306
  pending: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
982
307
  }>, import("effect/Schema").Struct<{
@@ -985,7 +310,7 @@ export declare namespace ThreadAction {
985
310
  text: typeof import("effect/Schema").String;
986
311
  }>>>]>>>;
987
312
  properties: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Record$<typeof import("effect/Schema").String, typeof import("effect/Schema").Any>>>;
988
- }>, {}>>;
313
+ }>>>;
989
314
  messageIndex: Schema.optional<typeof Schema.Number>;
990
315
  }>;
991
316
  output: typeof Schema.Void;