@dxos/plugin-thread 0.8.4-main.937b3ca → 0.8.4-main.9735255

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 (63) hide show
  1. package/dist/lib/browser/{app-graph-builder-SPAZN5XL.mjs → app-graph-builder-7C2QW32W.mjs} +2 -2
  2. package/dist/lib/browser/{call-manager-YBRTG6T3.mjs → call-manager-4P536YNX.mjs} +2 -2
  3. package/dist/lib/browser/{chunk-TAWDJPMD.mjs → chunk-2FIHSX35.mjs} +2 -2
  4. package/dist/lib/browser/chunk-2FIHSX35.mjs.map +7 -0
  5. package/dist/lib/browser/{chunk-VZICDGBW.mjs → chunk-YSHXWAL3.mjs} +19 -17
  6. package/dist/lib/browser/{chunk-VZICDGBW.mjs.map → chunk-YSHXWAL3.mjs.map} +3 -3
  7. package/dist/lib/browser/index.mjs +10 -10
  8. package/dist/lib/browser/{markdown-TSXOA3GV.mjs → markdown-QMJLRR6R.mjs} +2 -2
  9. package/dist/lib/browser/meta.json +1 -1
  10. package/dist/lib/browser/{operation-resolver-MDMEBYH2.mjs → operation-resolver-T63EP5TY.mjs} +2 -2
  11. package/dist/lib/browser/{react-root-Q7U5D3DA.mjs → react-root-56MJI77R.mjs} +3 -3
  12. package/dist/lib/browser/{react-surface-WDZQSDWH.mjs → react-surface-DMBHQOXJ.mjs} +3 -3
  13. package/dist/lib/browser/{repair-TDKAFAGH.mjs → repair-6OZ75AUU.mjs} +2 -2
  14. package/dist/lib/browser/{settings-OOKKVXV7.mjs → settings-WZMJMML3.mjs} +2 -2
  15. package/dist/lib/browser/{state-3LKZHDRI.mjs → state-SJR2GL5G.mjs} +2 -2
  16. package/dist/lib/browser/types/index.mjs +1 -1
  17. package/dist/lib/node-esm/{app-graph-builder-3LJAPDUW.mjs → app-graph-builder-JCSVFRVY.mjs} +2 -2
  18. package/dist/lib/node-esm/{call-manager-MMCTNFOH.mjs → call-manager-FMLRR5S5.mjs} +2 -2
  19. package/dist/lib/node-esm/{chunk-3RD3IVVD.mjs → chunk-7XQLXMX7.mjs} +19 -17
  20. package/dist/lib/node-esm/{chunk-3RD3IVVD.mjs.map → chunk-7XQLXMX7.mjs.map} +3 -3
  21. package/dist/lib/node-esm/{chunk-ARTUUKTM.mjs → chunk-WMWUXWAS.mjs} +2 -2
  22. package/dist/lib/node-esm/chunk-WMWUXWAS.mjs.map +7 -0
  23. package/dist/lib/node-esm/index.mjs +10 -10
  24. package/dist/lib/node-esm/{markdown-N2UJ3D6L.mjs → markdown-L6LLQLIN.mjs} +2 -2
  25. package/dist/lib/node-esm/meta.json +1 -1
  26. package/dist/lib/node-esm/{operation-resolver-7PHDJZA2.mjs → operation-resolver-G6GZPBRP.mjs} +2 -2
  27. package/dist/lib/node-esm/{react-root-SZIGQRDZ.mjs → react-root-V4W4X5GL.mjs} +3 -3
  28. package/dist/lib/node-esm/{react-surface-24PNWUDX.mjs → react-surface-ELDSTUA3.mjs} +3 -3
  29. package/dist/lib/node-esm/{repair-LHLLGXKF.mjs → repair-6777EPOM.mjs} +2 -2
  30. package/dist/lib/node-esm/{settings-LXZQXSPL.mjs → settings-37CO3SNR.mjs} +2 -2
  31. package/dist/lib/node-esm/{state-YYAK5ENM.mjs → state-5R3TZJQE.mjs} +2 -2
  32. package/dist/lib/node-esm/types/index.mjs +1 -1
  33. package/dist/types/src/blueprints/thread-blueprint.d.ts +6 -6
  34. package/dist/types/src/blueprints/thread-blueprint.d.ts.map +1 -1
  35. package/dist/types/src/components/ChatContainer.d.ts.map +1 -1
  36. package/dist/types/src/types/Channel.d.ts +422 -422
  37. package/dist/types/src/types/Channel.d.ts.map +1 -1
  38. package/dist/types/src/types/types.d.ts +1674 -1674
  39. package/dist/types/src/types/types.d.ts.map +1 -1
  40. package/dist/types/tsconfig.tsbuildinfo +1 -1
  41. package/package.json +51 -51
  42. package/src/components/ChatContainer.tsx +12 -10
  43. package/src/types/Channel.ts +1 -1
  44. package/dist/lib/browser/chunk-TAWDJPMD.mjs.map +0 -7
  45. package/dist/lib/node-esm/chunk-ARTUUKTM.mjs.map +0 -7
  46. /package/dist/lib/browser/{app-graph-builder-SPAZN5XL.mjs.map → app-graph-builder-7C2QW32W.mjs.map} +0 -0
  47. /package/dist/lib/browser/{call-manager-YBRTG6T3.mjs.map → call-manager-4P536YNX.mjs.map} +0 -0
  48. /package/dist/lib/browser/{markdown-TSXOA3GV.mjs.map → markdown-QMJLRR6R.mjs.map} +0 -0
  49. /package/dist/lib/browser/{operation-resolver-MDMEBYH2.mjs.map → operation-resolver-T63EP5TY.mjs.map} +0 -0
  50. /package/dist/lib/browser/{react-root-Q7U5D3DA.mjs.map → react-root-56MJI77R.mjs.map} +0 -0
  51. /package/dist/lib/browser/{react-surface-WDZQSDWH.mjs.map → react-surface-DMBHQOXJ.mjs.map} +0 -0
  52. /package/dist/lib/browser/{repair-TDKAFAGH.mjs.map → repair-6OZ75AUU.mjs.map} +0 -0
  53. /package/dist/lib/browser/{settings-OOKKVXV7.mjs.map → settings-WZMJMML3.mjs.map} +0 -0
  54. /package/dist/lib/browser/{state-3LKZHDRI.mjs.map → state-SJR2GL5G.mjs.map} +0 -0
  55. /package/dist/lib/node-esm/{app-graph-builder-3LJAPDUW.mjs.map → app-graph-builder-JCSVFRVY.mjs.map} +0 -0
  56. /package/dist/lib/node-esm/{call-manager-MMCTNFOH.mjs.map → call-manager-FMLRR5S5.mjs.map} +0 -0
  57. /package/dist/lib/node-esm/{markdown-N2UJ3D6L.mjs.map → markdown-L6LLQLIN.mjs.map} +0 -0
  58. /package/dist/lib/node-esm/{operation-resolver-7PHDJZA2.mjs.map → operation-resolver-G6GZPBRP.mjs.map} +0 -0
  59. /package/dist/lib/node-esm/{react-root-SZIGQRDZ.mjs.map → react-root-V4W4X5GL.mjs.map} +0 -0
  60. /package/dist/lib/node-esm/{react-surface-24PNWUDX.mjs.map → react-surface-ELDSTUA3.mjs.map} +0 -0
  61. /package/dist/lib/node-esm/{repair-LHLLGXKF.mjs.map → repair-6777EPOM.mjs.map} +0 -0
  62. /package/dist/lib/node-esm/{settings-LXZQXSPL.mjs.map → settings-37CO3SNR.mjs.map} +0 -0
  63. /package/dist/lib/node-esm/{state-YYAK5ENM.mjs.map → state-5R3TZJQE.mjs.map} +0 -0
@@ -18,7 +18,7 @@ export declare namespace ThreadOperation {
18
18
  space: Schema.Schema<import("@dxos/client-protocol").Space, import("@dxos/client-protocol").Space, never>;
19
19
  rootCollection: Type.Obj<{
20
20
  readonly name?: string | undefined;
21
- readonly objects: import("@dxos/echo/internal").Ref<any>[];
21
+ readonly objects: readonly import("@dxos/echo/internal").Ref<any>[];
22
22
  }, Schema.Struct.Fields>;
23
23
  isDefault: Schema.optional<typeof Schema.Boolean>;
24
24
  }>;
@@ -51,14 +51,14 @@ export declare namespace ThreadOperation {
51
51
  readonly defaultThread: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
52
52
  readonly name?: string | undefined;
53
53
  readonly status?: "active" | "staged" | "resolved" | undefined;
54
- readonly messages: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
54
+ readonly messages: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
55
55
  readonly id: string;
56
56
  readonly parentMessage?: string | undefined;
57
57
  readonly created: string;
58
58
  readonly sender: {
59
- name?: string | undefined;
60
- role?: "user" | "assistant" | "tool" | undefined;
61
- contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
59
+ readonly name?: string | undefined;
60
+ readonly role?: "user" | "assistant" | "tool" | undefined;
61
+ readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
62
62
  readonly image?: string | undefined;
63
63
  readonly fullName?: string | undefined;
64
64
  readonly preferredName?: string | undefined;
@@ -75,24 +75,24 @@ export declare namespace ThreadOperation {
75
75
  readonly jobTitle?: string | undefined;
76
76
  readonly department?: string | undefined;
77
77
  readonly notes?: string | undefined;
78
- readonly emails?: {
78
+ readonly emails?: readonly {
79
79
  readonly value: string;
80
80
  readonly label?: string | undefined;
81
81
  }[] | undefined;
82
- readonly identities?: {
82
+ readonly identities?: readonly {
83
83
  readonly value: string;
84
84
  readonly label?: string | undefined;
85
85
  }[] | undefined;
86
- readonly phoneNumbers?: {
86
+ readonly phoneNumbers?: readonly {
87
87
  readonly value: string;
88
88
  readonly label?: string | undefined;
89
89
  }[] | undefined;
90
- readonly fields?: {
90
+ readonly fields?: readonly {
91
91
  readonly value: string;
92
92
  readonly label: string;
93
93
  readonly category?: string | undefined;
94
94
  }[] | undefined;
95
- readonly addresses?: {
95
+ readonly addresses?: readonly {
96
96
  readonly value: {
97
97
  readonly street?: string | undefined;
98
98
  readonly extended?: string | undefined;
@@ -104,7 +104,7 @@ export declare namespace ThreadOperation {
104
104
  };
105
105
  readonly label?: string | undefined;
106
106
  }[] | undefined;
107
- readonly urls?: {
107
+ readonly urls?: readonly {
108
108
  readonly value: string;
109
109
  readonly label?: string | undefined;
110
110
  }[] | undefined;
@@ -112,124 +112,124 @@ export declare namespace ThreadOperation {
112
112
  } & {
113
113
  readonly location?: readonly [number, number, (number | undefined)?] | undefined;
114
114
  }> | undefined;
115
- identityDid?: string | undefined;
116
- identityKey?: string | undefined;
117
- email?: string | undefined;
115
+ readonly identityDid?: string | undefined;
116
+ readonly identityKey?: string | undefined;
117
+ readonly email?: string | undefined;
118
118
  };
119
- readonly blocks: ({
120
- pending?: boolean | undefined;
121
- text: string;
122
- mimeType?: string | undefined;
123
- disposition?: string | undefined;
124
- _tag: "text";
125
- } | {
126
- pending?: boolean | undefined;
127
- _tag: "reasoning";
128
- reasoningText?: string | undefined;
129
- redactedText?: string | undefined;
130
- signature?: string | undefined;
131
- } | {
132
- name: string;
133
- pending?: boolean | undefined;
134
- _tag: "toolCall";
135
- toolCallId: string;
136
- input: string;
137
- providerExecuted: boolean;
138
- } | {
139
- name: string;
140
- pending?: boolean | undefined;
141
- _tag: "toolResult";
142
- toolCallId: string;
143
- providerExecuted: boolean;
144
- result?: string | undefined;
145
- error?: string | undefined;
146
- } | {
147
- pending?: boolean | undefined;
148
- mimeType?: string | undefined;
149
- _tag: "summary";
150
- message?: string | undefined;
151
- model?: string | undefined;
152
- usage?: {
119
+ readonly blocks: readonly ({
120
+ readonly pending?: boolean | undefined;
121
+ readonly text: string;
122
+ readonly mimeType?: string | undefined;
123
+ readonly disposition?: string | undefined;
124
+ readonly _tag: "text";
125
+ } | {
126
+ readonly pending?: boolean | undefined;
127
+ readonly _tag: "reasoning";
128
+ readonly reasoningText?: string | undefined;
129
+ readonly redactedText?: string | undefined;
130
+ readonly signature?: string | undefined;
131
+ } | {
132
+ readonly name: string;
133
+ readonly pending?: boolean | undefined;
134
+ readonly _tag: "toolCall";
135
+ readonly toolCallId: string;
136
+ readonly input: string;
137
+ readonly providerExecuted: boolean;
138
+ } | {
139
+ readonly name: string;
140
+ readonly pending?: boolean | undefined;
141
+ readonly _tag: "toolResult";
142
+ readonly toolCallId: string;
143
+ readonly providerExecuted: boolean;
144
+ readonly result?: string | undefined;
145
+ readonly error?: string | undefined;
146
+ } | {
147
+ readonly pending?: boolean | undefined;
148
+ readonly mimeType?: string | undefined;
149
+ readonly _tag: "summary";
150
+ readonly message?: string | undefined;
151
+ readonly model?: string | undefined;
152
+ readonly usage?: {
153
153
  readonly inputTokens?: number | undefined;
154
154
  readonly outputTokens?: number | undefined;
155
155
  readonly totalTokens?: number | undefined;
156
156
  } | undefined;
157
- toolCalls?: number | undefined;
158
- errors?: number | undefined;
159
- duration?: number | undefined;
160
- } | {
161
- source?: {
162
- type: "base64";
163
- mediaType: string;
164
- data: string;
157
+ readonly toolCalls?: number | undefined;
158
+ readonly errors?: number | undefined;
159
+ readonly duration?: number | undefined;
160
+ } | {
161
+ readonly source?: {
162
+ readonly type: "base64";
163
+ readonly mediaType: string;
164
+ readonly data: string;
165
165
  } | {
166
- type: "http";
167
- url: string;
166
+ readonly type: "http";
167
+ readonly url: string;
168
168
  } | undefined;
169
- id?: string | undefined;
170
- pending?: boolean | undefined;
171
- _tag: "image";
172
- } | {
173
- name?: string | undefined;
174
- pending?: boolean | undefined;
175
- _tag: "file";
176
- mediaType?: string | undefined;
177
- url: string;
178
- } | {
179
- pending?: boolean | undefined;
180
- _tag: "reference";
181
- reference: import("@dxos/echo/internal").Ref<any>;
182
- } | {
183
- pending?: boolean | undefined;
184
- text: string;
185
- _tag: "transcript";
186
- started: string;
187
- } | {
188
- pending?: boolean | undefined;
189
- _tag: "status";
190
- statusText: string;
191
- } | {
192
- pending?: boolean | undefined;
193
- text: string;
194
- _tag: "suggestion";
195
- } | {
196
- pending?: boolean | undefined;
197
- _tag: "select";
198
- options: string[];
199
- } | {
200
- version: unknown;
201
- pending?: boolean | undefined;
202
- _tag: "anchor";
203
- objectId: string;
204
- } | {
205
- pending?: boolean | undefined;
206
- text: string;
207
- _tag: "proposal";
208
- } | {
209
- pending?: boolean | undefined;
210
- _tag: "toolkit";
211
- } | {
212
- pending?: boolean | undefined;
213
- disposition?: string | undefined;
214
- _tag: "json";
215
- data: string;
169
+ readonly id? /** In-memory draft threads. */: string | undefined;
170
+ readonly pending?: boolean | undefined;
171
+ readonly _tag: "image";
172
+ } | {
173
+ readonly name?: string | undefined;
174
+ readonly pending?: boolean | undefined;
175
+ readonly _tag: "file";
176
+ readonly mediaType?: string | undefined;
177
+ readonly url: string;
178
+ } | {
179
+ readonly pending?: boolean | undefined;
180
+ readonly _tag: "reference";
181
+ readonly reference: import("@dxos/echo/internal").Ref<any>;
182
+ } | {
183
+ readonly pending?: boolean | undefined;
184
+ readonly text: string;
185
+ readonly _tag: "transcript";
186
+ readonly started: string;
187
+ } | {
188
+ readonly pending?: boolean | undefined;
189
+ readonly _tag: "status";
190
+ readonly statusText: string;
191
+ } | {
192
+ readonly pending?: boolean | undefined;
193
+ readonly text: string;
194
+ readonly _tag: "suggestion";
195
+ } | {
196
+ readonly pending?: boolean | undefined;
197
+ readonly _tag: "select";
198
+ readonly options: string[];
199
+ } | {
200
+ readonly version: unknown;
201
+ readonly pending?: boolean | undefined;
202
+ readonly _tag: "anchor";
203
+ readonly objectId: string;
204
+ } | {
205
+ readonly pending?: boolean | undefined;
206
+ readonly text: string;
207
+ readonly _tag: "proposal";
208
+ } | {
209
+ readonly pending?: boolean | undefined;
210
+ readonly _tag: "toolkit";
211
+ } | {
212
+ readonly pending?: boolean | undefined;
213
+ readonly disposition?: string | undefined;
214
+ readonly _tag: "json";
215
+ readonly data: string;
216
216
  })[];
217
217
  readonly properties?: {
218
- [x: string]: any;
218
+ readonly [x: string]: any;
219
219
  } | undefined;
220
220
  }>[];
221
221
  }>;
222
- readonly threads: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
222
+ readonly threads: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
223
223
  readonly name?: string | undefined;
224
224
  readonly status?: "active" | "staged" | "resolved" | undefined;
225
- readonly messages: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
225
+ readonly messages: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
226
226
  readonly id: string;
227
227
  readonly parentMessage?: string | undefined;
228
228
  readonly created: string;
229
229
  readonly sender: {
230
- name?: string | undefined;
231
- role?: "user" | "assistant" | "tool" | undefined;
232
- contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
230
+ readonly name?: string | undefined;
231
+ readonly role?: "user" | "assistant" | "tool" | undefined;
232
+ readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
233
233
  readonly image?: string | undefined;
234
234
  readonly fullName?: string | undefined;
235
235
  readonly preferredName?: string | undefined;
@@ -246,24 +246,24 @@ export declare namespace ThreadOperation {
246
246
  readonly jobTitle?: string | undefined;
247
247
  readonly department?: string | undefined;
248
248
  readonly notes?: string | undefined;
249
- readonly emails?: {
249
+ readonly emails?: readonly {
250
250
  readonly value: string;
251
251
  readonly label?: string | undefined;
252
252
  }[] | undefined;
253
- readonly identities?: {
253
+ readonly identities?: readonly {
254
254
  readonly value: string;
255
255
  readonly label?: string | undefined;
256
256
  }[] | undefined;
257
- readonly phoneNumbers?: {
257
+ readonly phoneNumbers?: readonly {
258
258
  readonly value: string;
259
259
  readonly label?: string | undefined;
260
260
  }[] | undefined;
261
- readonly fields?: {
261
+ readonly fields?: readonly {
262
262
  readonly value: string;
263
263
  readonly label: string;
264
264
  readonly category?: string | undefined;
265
265
  }[] | undefined;
266
- readonly addresses?: {
266
+ readonly addresses?: readonly {
267
267
  readonly value: {
268
268
  readonly street?: string | undefined;
269
269
  readonly extended?: string | undefined;
@@ -275,7 +275,7 @@ export declare namespace ThreadOperation {
275
275
  };
276
276
  readonly label?: string | undefined;
277
277
  }[] | undefined;
278
- readonly urls?: {
278
+ readonly urls?: readonly {
279
279
  readonly value: string;
280
280
  readonly label?: string | undefined;
281
281
  }[] | undefined;
@@ -283,110 +283,110 @@ export declare namespace ThreadOperation {
283
283
  } & {
284
284
  readonly location?: readonly [number, number, (number | undefined)?] | undefined;
285
285
  }> | undefined;
286
- identityDid?: string | undefined;
287
- identityKey?: string | undefined;
288
- email?: string | undefined;
286
+ readonly identityDid?: string | undefined;
287
+ readonly identityKey?: string | undefined;
288
+ readonly email?: string | undefined;
289
289
  };
290
- readonly blocks: ({
291
- pending?: boolean | undefined;
292
- text: string;
293
- mimeType?: string | undefined;
294
- disposition?: string | undefined;
295
- _tag: "text";
296
- } | {
297
- pending?: boolean | undefined;
298
- _tag: "reasoning";
299
- reasoningText?: string | undefined;
300
- redactedText?: string | undefined;
301
- signature?: string | undefined;
302
- } | {
303
- name: string;
304
- pending?: boolean | undefined;
305
- _tag: "toolCall";
306
- toolCallId: string;
307
- input: string;
308
- providerExecuted: boolean;
309
- } | {
310
- name: string;
311
- pending?: boolean | undefined;
312
- _tag: "toolResult";
313
- toolCallId: string;
314
- providerExecuted: boolean;
315
- result?: string | undefined;
316
- error?: string | undefined;
317
- } | {
318
- pending?: boolean | undefined;
319
- mimeType?: string | undefined;
320
- _tag: "summary";
321
- message?: string | undefined;
322
- model?: string | undefined;
323
- usage?: {
290
+ readonly blocks: readonly ({
291
+ readonly pending?: boolean | undefined;
292
+ readonly text: string;
293
+ readonly mimeType?: string | undefined;
294
+ readonly disposition?: string | undefined;
295
+ readonly _tag: "text";
296
+ } | {
297
+ readonly pending?: boolean | undefined;
298
+ readonly _tag: "reasoning";
299
+ readonly reasoningText?: string | undefined;
300
+ readonly redactedText?: string | undefined;
301
+ readonly signature?: string | undefined;
302
+ } | {
303
+ readonly name: string;
304
+ readonly pending?: boolean | undefined;
305
+ readonly _tag: "toolCall";
306
+ readonly toolCallId: string;
307
+ readonly input: string;
308
+ readonly providerExecuted: boolean;
309
+ } | {
310
+ readonly name: string;
311
+ readonly pending?: boolean | undefined;
312
+ readonly _tag: "toolResult";
313
+ readonly toolCallId: string;
314
+ readonly providerExecuted: boolean;
315
+ readonly result?: string | undefined;
316
+ readonly error?: string | undefined;
317
+ } | {
318
+ readonly pending?: boolean | undefined;
319
+ readonly mimeType?: string | undefined;
320
+ readonly _tag: "summary";
321
+ readonly message?: string | undefined;
322
+ readonly model?: string | undefined;
323
+ readonly usage?: {
324
324
  readonly inputTokens?: number | undefined;
325
325
  readonly outputTokens?: number | undefined;
326
326
  readonly totalTokens?: number | undefined;
327
327
  } | undefined;
328
- toolCalls?: number | undefined;
329
- errors?: number | undefined;
330
- duration?: number | undefined;
331
- } | {
332
- source?: {
333
- type: "base64";
334
- mediaType: string;
335
- data: string;
328
+ readonly toolCalls?: number | undefined;
329
+ readonly errors?: number | undefined;
330
+ readonly duration?: number | undefined;
331
+ } | {
332
+ readonly source?: {
333
+ readonly type: "base64";
334
+ readonly mediaType: string;
335
+ readonly data: string;
336
336
  } | {
337
- type: "http";
338
- url: string;
337
+ readonly type: "http";
338
+ readonly url: string;
339
339
  } | undefined;
340
- id?: string | undefined;
341
- pending?: boolean | undefined;
342
- _tag: "image";
343
- } | {
344
- name?: string | undefined;
345
- pending?: boolean | undefined;
346
- _tag: "file";
347
- mediaType?: string | undefined;
348
- url: string;
349
- } | {
350
- pending?: boolean | undefined;
351
- _tag: "reference";
352
- reference: import("@dxos/echo/internal").Ref<any>;
353
- } | {
354
- pending?: boolean | undefined;
355
- text: string;
356
- _tag: "transcript";
357
- started: string;
358
- } | {
359
- pending?: boolean | undefined;
360
- _tag: "status";
361
- statusText: string;
362
- } | {
363
- pending?: boolean | undefined;
364
- text: string;
365
- _tag: "suggestion";
366
- } | {
367
- pending?: boolean | undefined;
368
- _tag: "select";
369
- options: string[];
370
- } | {
371
- version: unknown;
372
- pending?: boolean | undefined;
373
- _tag: "anchor";
374
- objectId: string;
375
- } | {
376
- pending?: boolean | undefined;
377
- text: string;
378
- _tag: "proposal";
379
- } | {
380
- pending?: boolean | undefined;
381
- _tag: "toolkit";
382
- } | {
383
- pending?: boolean | undefined;
384
- disposition?: string | undefined;
385
- _tag: "json";
386
- data: string;
340
+ readonly id? /** In-memory draft threads. */: string | undefined;
341
+ readonly pending?: boolean | undefined;
342
+ readonly _tag: "image";
343
+ } | {
344
+ readonly name?: string | undefined;
345
+ readonly pending?: boolean | undefined;
346
+ readonly _tag: "file";
347
+ readonly mediaType?: string | undefined;
348
+ readonly url: string;
349
+ } | {
350
+ readonly pending?: boolean | undefined;
351
+ readonly _tag: "reference";
352
+ readonly reference: import("@dxos/echo/internal").Ref<any>;
353
+ } | {
354
+ readonly pending?: boolean | undefined;
355
+ readonly text: string;
356
+ readonly _tag: "transcript";
357
+ readonly started: string;
358
+ } | {
359
+ readonly pending?: boolean | undefined;
360
+ readonly _tag: "status";
361
+ readonly statusText: string;
362
+ } | {
363
+ readonly pending?: boolean | undefined;
364
+ readonly text: string;
365
+ readonly _tag: "suggestion";
366
+ } | {
367
+ readonly pending?: boolean | undefined;
368
+ readonly _tag: "select";
369
+ readonly options: string[];
370
+ } | {
371
+ readonly version: unknown;
372
+ readonly pending?: boolean | undefined;
373
+ readonly _tag: "anchor";
374
+ readonly objectId: string;
375
+ } | {
376
+ readonly pending?: boolean | undefined;
377
+ readonly text: string;
378
+ readonly _tag: "proposal";
379
+ } | {
380
+ readonly pending?: boolean | undefined;
381
+ readonly _tag: "toolkit";
382
+ } | {
383
+ readonly pending?: boolean | undefined;
384
+ readonly disposition?: string | undefined;
385
+ readonly _tag: "json";
386
+ readonly data: string;
387
387
  })[];
388
388
  readonly properties?: {
389
- [x: string]: any;
389
+ readonly [x: string]: any;
390
390
  } | undefined;
391
391
  }>[];
392
392
  }>[];
@@ -409,14 +409,14 @@ export declare namespace ThreadOperation {
409
409
  readonly defaultThread: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
410
410
  readonly name?: string | undefined;
411
411
  readonly status?: "active" | "staged" | "resolved" | undefined;
412
- readonly messages: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
412
+ readonly messages: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
413
413
  readonly id: string;
414
414
  readonly parentMessage?: string | undefined;
415
415
  readonly created: string;
416
416
  readonly sender: {
417
- name?: string | undefined;
418
- role?: "user" | "assistant" | "tool" | undefined;
419
- contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
417
+ readonly name?: string | undefined;
418
+ readonly role?: "user" | "assistant" | "tool" | undefined;
419
+ readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
420
420
  readonly image?: string | undefined;
421
421
  readonly fullName?: string | undefined;
422
422
  readonly preferredName?: string | undefined;
@@ -433,24 +433,24 @@ export declare namespace ThreadOperation {
433
433
  readonly jobTitle?: string | undefined;
434
434
  readonly department?: string | undefined;
435
435
  readonly notes?: string | undefined;
436
- readonly emails?: {
436
+ readonly emails?: readonly {
437
437
  readonly value: string;
438
438
  readonly label?: string | undefined;
439
439
  }[] | undefined;
440
- readonly identities?: {
440
+ readonly identities?: readonly {
441
441
  readonly value: string;
442
442
  readonly label?: string | undefined;
443
443
  }[] | undefined;
444
- readonly phoneNumbers?: {
444
+ readonly phoneNumbers?: readonly {
445
445
  readonly value: string;
446
446
  readonly label?: string | undefined;
447
447
  }[] | undefined;
448
- readonly fields?: {
448
+ readonly fields?: readonly {
449
449
  readonly value: string;
450
450
  readonly label: string;
451
451
  readonly category?: string | undefined;
452
452
  }[] | undefined;
453
- readonly addresses?: {
453
+ readonly addresses?: readonly {
454
454
  readonly value: {
455
455
  readonly street?: string | undefined;
456
456
  readonly extended?: string | undefined;
@@ -462,7 +462,7 @@ export declare namespace ThreadOperation {
462
462
  };
463
463
  readonly label?: string | undefined;
464
464
  }[] | undefined;
465
- readonly urls?: {
465
+ readonly urls?: readonly {
466
466
  readonly value: string;
467
467
  readonly label?: string | undefined;
468
468
  }[] | undefined;
@@ -470,124 +470,124 @@ export declare namespace ThreadOperation {
470
470
  } & {
471
471
  readonly location?: readonly [number, number, (number | undefined)?] | undefined;
472
472
  }> | undefined;
473
- identityDid?: string | undefined;
474
- identityKey?: string | undefined;
475
- email?: string | undefined;
473
+ readonly identityDid?: string | undefined;
474
+ readonly identityKey?: string | undefined;
475
+ readonly email?: string | undefined;
476
476
  };
477
- readonly blocks: ({
478
- pending?: boolean | undefined;
479
- text: string;
480
- mimeType?: string | undefined;
481
- disposition?: string | undefined;
482
- _tag: "text";
483
- } | {
484
- pending?: boolean | undefined;
485
- _tag: "reasoning";
486
- reasoningText?: string | undefined;
487
- redactedText?: string | undefined;
488
- signature?: string | undefined;
489
- } | {
490
- name: string;
491
- pending?: boolean | undefined;
492
- _tag: "toolCall";
493
- toolCallId: string;
494
- input: string;
495
- providerExecuted: boolean;
496
- } | {
497
- name: string;
498
- pending?: boolean | undefined;
499
- _tag: "toolResult";
500
- toolCallId: string;
501
- providerExecuted: boolean;
502
- result?: string | undefined;
503
- error?: string | undefined;
504
- } | {
505
- pending?: boolean | undefined;
506
- mimeType?: string | undefined;
507
- _tag: "summary";
508
- message?: string | undefined;
509
- model?: string | undefined;
510
- usage?: {
477
+ readonly blocks: readonly ({
478
+ readonly pending?: boolean | undefined;
479
+ readonly text: string;
480
+ readonly mimeType?: string | undefined;
481
+ readonly disposition?: string | undefined;
482
+ readonly _tag: "text";
483
+ } | {
484
+ readonly pending?: boolean | undefined;
485
+ readonly _tag: "reasoning";
486
+ readonly reasoningText?: string | undefined;
487
+ readonly redactedText?: string | undefined;
488
+ readonly signature?: string | undefined;
489
+ } | {
490
+ readonly name: string;
491
+ readonly pending?: boolean | undefined;
492
+ readonly _tag: "toolCall";
493
+ readonly toolCallId: string;
494
+ readonly input: string;
495
+ readonly providerExecuted: boolean;
496
+ } | {
497
+ readonly name: string;
498
+ readonly pending?: boolean | undefined;
499
+ readonly _tag: "toolResult";
500
+ readonly toolCallId: string;
501
+ readonly providerExecuted: boolean;
502
+ readonly result?: string | undefined;
503
+ readonly error?: string | undefined;
504
+ } | {
505
+ readonly pending?: boolean | undefined;
506
+ readonly mimeType?: string | undefined;
507
+ readonly _tag: "summary";
508
+ readonly message?: string | undefined;
509
+ readonly model?: string | undefined;
510
+ readonly usage?: {
511
511
  readonly inputTokens?: number | undefined;
512
512
  readonly outputTokens?: number | undefined;
513
513
  readonly totalTokens?: number | undefined;
514
514
  } | undefined;
515
- toolCalls?: number | undefined;
516
- errors?: number | undefined;
517
- duration?: number | undefined;
518
- } | {
519
- source?: {
520
- type: "base64";
521
- mediaType: string;
522
- data: string;
515
+ readonly toolCalls?: number | undefined;
516
+ readonly errors?: number | undefined;
517
+ readonly duration?: number | undefined;
518
+ } | {
519
+ readonly source?: {
520
+ readonly type: "base64";
521
+ readonly mediaType: string;
522
+ readonly data: string;
523
523
  } | {
524
- type: "http";
525
- url: string;
524
+ readonly type: "http";
525
+ readonly url: string;
526
526
  } | undefined;
527
- id?: string | undefined;
528
- pending?: boolean | undefined;
529
- _tag: "image";
530
- } | {
531
- name?: string | undefined;
532
- pending?: boolean | undefined;
533
- _tag: "file";
534
- mediaType?: string | undefined;
535
- url: string;
536
- } | {
537
- pending?: boolean | undefined;
538
- _tag: "reference";
539
- reference: import("@dxos/echo/internal").Ref<any>;
540
- } | {
541
- pending?: boolean | undefined;
542
- text: string;
543
- _tag: "transcript";
544
- started: string;
545
- } | {
546
- pending?: boolean | undefined;
547
- _tag: "status";
548
- statusText: string;
549
- } | {
550
- pending?: boolean | undefined;
551
- text: string;
552
- _tag: "suggestion";
553
- } | {
554
- pending?: boolean | undefined;
555
- _tag: "select";
556
- options: string[];
557
- } | {
558
- version: unknown;
559
- pending?: boolean | undefined;
560
- _tag: "anchor";
561
- objectId: string;
562
- } | {
563
- pending?: boolean | undefined;
564
- text: string;
565
- _tag: "proposal";
566
- } | {
567
- pending?: boolean | undefined;
568
- _tag: "toolkit";
569
- } | {
570
- pending?: boolean | undefined;
571
- disposition?: string | undefined;
572
- _tag: "json";
573
- data: string;
527
+ readonly id? /** In-memory draft threads. */: string | undefined;
528
+ readonly pending?: boolean | undefined;
529
+ readonly _tag: "image";
530
+ } | {
531
+ readonly name?: string | undefined;
532
+ readonly pending?: boolean | undefined;
533
+ readonly _tag: "file";
534
+ readonly mediaType?: string | undefined;
535
+ readonly url: string;
536
+ } | {
537
+ readonly pending?: boolean | undefined;
538
+ readonly _tag: "reference";
539
+ readonly reference: import("@dxos/echo/internal").Ref<any>;
540
+ } | {
541
+ readonly pending?: boolean | undefined;
542
+ readonly text: string;
543
+ readonly _tag: "transcript";
544
+ readonly started: string;
545
+ } | {
546
+ readonly pending?: boolean | undefined;
547
+ readonly _tag: "status";
548
+ readonly statusText: string;
549
+ } | {
550
+ readonly pending?: boolean | undefined;
551
+ readonly text: string;
552
+ readonly _tag: "suggestion";
553
+ } | {
554
+ readonly pending?: boolean | undefined;
555
+ readonly _tag: "select";
556
+ readonly options: string[];
557
+ } | {
558
+ readonly version: unknown;
559
+ readonly pending?: boolean | undefined;
560
+ readonly _tag: "anchor";
561
+ readonly objectId: string;
562
+ } | {
563
+ readonly pending?: boolean | undefined;
564
+ readonly text: string;
565
+ readonly _tag: "proposal";
566
+ } | {
567
+ readonly pending?: boolean | undefined;
568
+ readonly _tag: "toolkit";
569
+ } | {
570
+ readonly pending?: boolean | undefined;
571
+ readonly disposition?: string | undefined;
572
+ readonly _tag: "json";
573
+ readonly data: string;
574
574
  })[];
575
575
  readonly properties?: {
576
- [x: string]: any;
576
+ readonly [x: string]: any;
577
577
  } | undefined;
578
578
  }>[];
579
579
  }>;
580
- readonly threads: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
580
+ readonly threads: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
581
581
  readonly name?: string | undefined;
582
582
  readonly status?: "active" | "staged" | "resolved" | undefined;
583
- readonly messages: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
583
+ readonly messages: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
584
584
  readonly id: string;
585
585
  readonly parentMessage?: string | undefined;
586
586
  readonly created: string;
587
587
  readonly sender: {
588
- name?: string | undefined;
589
- role?: "user" | "assistant" | "tool" | undefined;
590
- contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
588
+ readonly name?: string | undefined;
589
+ readonly role?: "user" | "assistant" | "tool" | undefined;
590
+ readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
591
591
  readonly image?: string | undefined;
592
592
  readonly fullName?: string | undefined;
593
593
  readonly preferredName?: string | undefined;
@@ -604,24 +604,24 @@ export declare namespace ThreadOperation {
604
604
  readonly jobTitle?: string | undefined;
605
605
  readonly department?: string | undefined;
606
606
  readonly notes?: string | undefined;
607
- readonly emails?: {
607
+ readonly emails?: readonly {
608
608
  readonly value: string;
609
609
  readonly label?: string | undefined;
610
610
  }[] | undefined;
611
- readonly identities?: {
611
+ readonly identities?: readonly {
612
612
  readonly value: string;
613
613
  readonly label?: string | undefined;
614
614
  }[] | undefined;
615
- readonly phoneNumbers?: {
615
+ readonly phoneNumbers?: readonly {
616
616
  readonly value: string;
617
617
  readonly label?: string | undefined;
618
618
  }[] | undefined;
619
- readonly fields?: {
619
+ readonly fields?: readonly {
620
620
  readonly value: string;
621
621
  readonly label: string;
622
622
  readonly category?: string | undefined;
623
623
  }[] | undefined;
624
- readonly addresses?: {
624
+ readonly addresses?: readonly {
625
625
  readonly value: {
626
626
  readonly street?: string | undefined;
627
627
  readonly extended?: string | undefined;
@@ -633,7 +633,7 @@ export declare namespace ThreadOperation {
633
633
  };
634
634
  readonly label?: string | undefined;
635
635
  }[] | undefined;
636
- readonly urls?: {
636
+ readonly urls?: readonly {
637
637
  readonly value: string;
638
638
  readonly label?: string | undefined;
639
639
  }[] | undefined;
@@ -641,110 +641,110 @@ export declare namespace ThreadOperation {
641
641
  } & {
642
642
  readonly location?: readonly [number, number, (number | undefined)?] | undefined;
643
643
  }> | undefined;
644
- identityDid?: string | undefined;
645
- identityKey?: string | undefined;
646
- email?: string | undefined;
644
+ readonly identityDid?: string | undefined;
645
+ readonly identityKey?: string | undefined;
646
+ readonly email?: string | undefined;
647
647
  };
648
- readonly blocks: ({
649
- pending?: boolean | undefined;
650
- text: string;
651
- mimeType?: string | undefined;
652
- disposition?: string | undefined;
653
- _tag: "text";
654
- } | {
655
- pending?: boolean | undefined;
656
- _tag: "reasoning";
657
- reasoningText?: string | undefined;
658
- redactedText?: string | undefined;
659
- signature?: string | undefined;
660
- } | {
661
- name: string;
662
- pending?: boolean | undefined;
663
- _tag: "toolCall";
664
- toolCallId: string;
665
- input: string;
666
- providerExecuted: boolean;
667
- } | {
668
- name: string;
669
- pending?: boolean | undefined;
670
- _tag: "toolResult";
671
- toolCallId: string;
672
- providerExecuted: boolean;
673
- result?: string | undefined;
674
- error?: string | undefined;
675
- } | {
676
- pending?: boolean | undefined;
677
- mimeType?: string | undefined;
678
- _tag: "summary";
679
- message?: string | undefined;
680
- model?: string | undefined;
681
- usage?: {
648
+ readonly blocks: readonly ({
649
+ readonly pending?: boolean | undefined;
650
+ readonly text: string;
651
+ readonly mimeType?: string | undefined;
652
+ readonly disposition?: string | undefined;
653
+ readonly _tag: "text";
654
+ } | {
655
+ readonly pending?: boolean | undefined;
656
+ readonly _tag: "reasoning";
657
+ readonly reasoningText?: string | undefined;
658
+ readonly redactedText?: string | undefined;
659
+ readonly signature?: string | undefined;
660
+ } | {
661
+ readonly name: string;
662
+ readonly pending?: boolean | undefined;
663
+ readonly _tag: "toolCall";
664
+ readonly toolCallId: string;
665
+ readonly input: string;
666
+ readonly providerExecuted: boolean;
667
+ } | {
668
+ readonly name: string;
669
+ readonly pending?: boolean | undefined;
670
+ readonly _tag: "toolResult";
671
+ readonly toolCallId: string;
672
+ readonly providerExecuted: boolean;
673
+ readonly result?: string | undefined;
674
+ readonly error?: string | undefined;
675
+ } | {
676
+ readonly pending?: boolean | undefined;
677
+ readonly mimeType?: string | undefined;
678
+ readonly _tag: "summary";
679
+ readonly message?: string | undefined;
680
+ readonly model?: string | undefined;
681
+ readonly usage?: {
682
682
  readonly inputTokens?: number | undefined;
683
683
  readonly outputTokens?: number | undefined;
684
684
  readonly totalTokens?: number | undefined;
685
685
  } | undefined;
686
- toolCalls?: number | undefined;
687
- errors?: number | undefined;
688
- duration?: number | undefined;
689
- } | {
690
- source?: {
691
- type: "base64";
692
- mediaType: string;
693
- data: string;
686
+ readonly toolCalls?: number | undefined;
687
+ readonly errors?: number | undefined;
688
+ readonly duration?: number | undefined;
689
+ } | {
690
+ readonly source?: {
691
+ readonly type: "base64";
692
+ readonly mediaType: string;
693
+ readonly data: string;
694
694
  } | {
695
- type: "http";
696
- url: string;
695
+ readonly type: "http";
696
+ readonly url: string;
697
697
  } | undefined;
698
- id?: string | undefined;
699
- pending?: boolean | undefined;
700
- _tag: "image";
701
- } | {
702
- name?: string | undefined;
703
- pending?: boolean | undefined;
704
- _tag: "file";
705
- mediaType?: string | undefined;
706
- url: string;
707
- } | {
708
- pending?: boolean | undefined;
709
- _tag: "reference";
710
- reference: import("@dxos/echo/internal").Ref<any>;
711
- } | {
712
- pending?: boolean | undefined;
713
- text: string;
714
- _tag: "transcript";
715
- started: string;
716
- } | {
717
- pending?: boolean | undefined;
718
- _tag: "status";
719
- statusText: string;
720
- } | {
721
- pending?: boolean | undefined;
722
- text: string;
723
- _tag: "suggestion";
724
- } | {
725
- pending?: boolean | undefined;
726
- _tag: "select";
727
- options: string[];
728
- } | {
729
- version: unknown;
730
- pending?: boolean | undefined;
731
- _tag: "anchor";
732
- objectId: string;
733
- } | {
734
- pending?: boolean | undefined;
735
- text: string;
736
- _tag: "proposal";
737
- } | {
738
- pending?: boolean | undefined;
739
- _tag: "toolkit";
740
- } | {
741
- pending?: boolean | undefined;
742
- disposition?: string | undefined;
743
- _tag: "json";
744
- data: string;
698
+ readonly id? /** In-memory draft threads. */: string | undefined;
699
+ readonly pending?: boolean | undefined;
700
+ readonly _tag: "image";
701
+ } | {
702
+ readonly name?: string | undefined;
703
+ readonly pending?: boolean | undefined;
704
+ readonly _tag: "file";
705
+ readonly mediaType?: string | undefined;
706
+ readonly url: string;
707
+ } | {
708
+ readonly pending?: boolean | undefined;
709
+ readonly _tag: "reference";
710
+ readonly reference: import("@dxos/echo/internal").Ref<any>;
711
+ } | {
712
+ readonly pending?: boolean | undefined;
713
+ readonly text: string;
714
+ readonly _tag: "transcript";
715
+ readonly started: string;
716
+ } | {
717
+ readonly pending?: boolean | undefined;
718
+ readonly _tag: "status";
719
+ readonly statusText: string;
720
+ } | {
721
+ readonly pending?: boolean | undefined;
722
+ readonly text: string;
723
+ readonly _tag: "suggestion";
724
+ } | {
725
+ readonly pending?: boolean | undefined;
726
+ readonly _tag: "select";
727
+ readonly options: string[];
728
+ } | {
729
+ readonly version: unknown;
730
+ readonly pending?: boolean | undefined;
731
+ readonly _tag: "anchor";
732
+ readonly objectId: string;
733
+ } | {
734
+ readonly pending?: boolean | undefined;
735
+ readonly text: string;
736
+ readonly _tag: "proposal";
737
+ } | {
738
+ readonly pending?: boolean | undefined;
739
+ readonly _tag: "toolkit";
740
+ } | {
741
+ readonly pending?: boolean | undefined;
742
+ readonly disposition?: string | undefined;
743
+ readonly _tag: "json";
744
+ readonly data: string;
745
745
  })[];
746
746
  readonly properties?: {
747
- [x: string]: any;
747
+ readonly [x: string]: any;
748
748
  } | undefined;
749
749
  }>[];
750
750
  }>[];
@@ -754,14 +754,14 @@ export declare namespace ThreadOperation {
754
754
  object: Type.Obj<{
755
755
  readonly name?: string | undefined;
756
756
  readonly status?: "active" | "staged" | "resolved" | undefined;
757
- readonly messages: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
757
+ readonly messages: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
758
758
  readonly id: string;
759
759
  readonly parentMessage?: string | undefined;
760
760
  readonly created: string;
761
761
  readonly sender: {
762
- name?: string | undefined;
763
- role?: "user" | "assistant" | "tool" | undefined;
764
- contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
762
+ readonly name?: string | undefined;
763
+ readonly role?: "user" | "assistant" | "tool" | undefined;
764
+ readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
765
765
  readonly image?: string | undefined;
766
766
  readonly fullName?: string | undefined;
767
767
  readonly preferredName?: string | undefined;
@@ -778,24 +778,24 @@ export declare namespace ThreadOperation {
778
778
  readonly jobTitle?: string | undefined;
779
779
  readonly department?: string | undefined;
780
780
  readonly notes?: string | undefined;
781
- readonly emails?: {
781
+ readonly emails?: readonly {
782
782
  readonly value: string;
783
783
  readonly label?: string | undefined;
784
784
  }[] | undefined;
785
- readonly identities?: {
785
+ readonly identities?: readonly {
786
786
  readonly value: string;
787
787
  readonly label?: string | undefined;
788
788
  }[] | undefined;
789
- readonly phoneNumbers?: {
789
+ readonly phoneNumbers?: readonly {
790
790
  readonly value: string;
791
791
  readonly label?: string | undefined;
792
792
  }[] | undefined;
793
- readonly fields?: {
793
+ readonly fields?: readonly {
794
794
  readonly value: string;
795
795
  readonly label: string;
796
796
  readonly category?: string | undefined;
797
797
  }[] | undefined;
798
- readonly addresses?: {
798
+ readonly addresses?: readonly {
799
799
  readonly value: {
800
800
  readonly street?: string | undefined;
801
801
  readonly extended?: string | undefined;
@@ -807,7 +807,7 @@ export declare namespace ThreadOperation {
807
807
  };
808
808
  readonly label?: string | undefined;
809
809
  }[] | undefined;
810
- readonly urls?: {
810
+ readonly urls?: readonly {
811
811
  readonly value: string;
812
812
  readonly label?: string | undefined;
813
813
  }[] | undefined;
@@ -815,110 +815,110 @@ export declare namespace ThreadOperation {
815
815
  } & {
816
816
  readonly location?: readonly [number, number, (number | undefined)?] | undefined;
817
817
  }> | undefined;
818
- identityDid?: string | undefined;
819
- identityKey?: string | undefined;
820
- email?: string | undefined;
818
+ readonly identityDid?: string | undefined;
819
+ readonly identityKey?: string | undefined;
820
+ readonly email?: string | undefined;
821
821
  };
822
- readonly blocks: ({
823
- pending?: boolean | undefined;
824
- text: string;
825
- mimeType?: string | undefined;
826
- disposition?: string | undefined;
827
- _tag: "text";
828
- } | {
829
- pending?: boolean | undefined;
830
- _tag: "reasoning";
831
- reasoningText?: string | undefined;
832
- redactedText?: string | undefined;
833
- signature?: string | undefined;
834
- } | {
835
- name: string;
836
- pending?: boolean | undefined;
837
- _tag: "toolCall";
838
- toolCallId: string;
839
- input: string;
840
- providerExecuted: boolean;
841
- } | {
842
- name: string;
843
- pending?: boolean | undefined;
844
- _tag: "toolResult";
845
- toolCallId: string;
846
- providerExecuted: boolean;
847
- result?: string | undefined;
848
- error?: string | undefined;
849
- } | {
850
- pending?: boolean | undefined;
851
- mimeType?: string | undefined;
852
- _tag: "summary";
853
- message?: string | undefined;
854
- model?: string | undefined;
855
- usage?: {
822
+ readonly blocks: readonly ({
823
+ readonly pending?: boolean | undefined;
824
+ readonly text: string;
825
+ readonly mimeType?: string | undefined;
826
+ readonly disposition?: string | undefined;
827
+ readonly _tag: "text";
828
+ } | {
829
+ readonly pending?: boolean | undefined;
830
+ readonly _tag: "reasoning";
831
+ readonly reasoningText?: string | undefined;
832
+ readonly redactedText?: string | undefined;
833
+ readonly signature?: string | undefined;
834
+ } | {
835
+ readonly name: string;
836
+ readonly pending?: boolean | undefined;
837
+ readonly _tag: "toolCall";
838
+ readonly toolCallId: string;
839
+ readonly input: string;
840
+ readonly providerExecuted: boolean;
841
+ } | {
842
+ readonly name: string;
843
+ readonly pending?: boolean | undefined;
844
+ readonly _tag: "toolResult";
845
+ readonly toolCallId: string;
846
+ readonly providerExecuted: boolean;
847
+ readonly result?: string | undefined;
848
+ readonly error?: string | undefined;
849
+ } | {
850
+ readonly pending?: boolean | undefined;
851
+ readonly mimeType?: string | undefined;
852
+ readonly _tag: "summary";
853
+ readonly message?: string | undefined;
854
+ readonly model?: string | undefined;
855
+ readonly usage?: {
856
856
  readonly inputTokens?: number | undefined;
857
857
  readonly outputTokens?: number | undefined;
858
858
  readonly totalTokens?: number | undefined;
859
859
  } | undefined;
860
- toolCalls?: number | undefined;
861
- errors?: number | undefined;
862
- duration?: number | undefined;
860
+ readonly toolCalls?: number | undefined;
861
+ readonly errors?: number | undefined;
862
+ readonly duration?: number | undefined;
863
863
  } | {
864
- source?: {
865
- type: "base64";
866
- mediaType: string;
867
- data: string;
864
+ readonly source?: {
865
+ readonly type: "base64";
866
+ readonly mediaType: string;
867
+ readonly data: string;
868
868
  } | {
869
- type: "http";
870
- url: string;
869
+ readonly type: "http";
870
+ readonly url: string;
871
871
  } | undefined;
872
- id?: string | undefined;
873
- pending?: boolean | undefined;
874
- _tag: "image";
875
- } | {
876
- name?: string | undefined;
877
- pending?: boolean | undefined;
878
- _tag: "file";
879
- mediaType?: string | undefined;
880
- url: string;
881
- } | {
882
- pending?: boolean | undefined;
883
- _tag: "reference";
884
- reference: import("@dxos/echo/internal").Ref<any>;
885
- } | {
886
- pending?: boolean | undefined;
887
- text: string;
888
- _tag: "transcript";
889
- started: string;
890
- } | {
891
- pending?: boolean | undefined;
892
- _tag: "status";
893
- statusText: string;
894
- } | {
895
- pending?: boolean | undefined;
896
- text: string;
897
- _tag: "suggestion";
898
- } | {
899
- pending?: boolean | undefined;
900
- _tag: "select";
901
- options: string[];
902
- } | {
903
- version: unknown;
904
- pending?: boolean | undefined;
905
- _tag: "anchor";
906
- objectId: string;
907
- } | {
908
- pending?: boolean | undefined;
909
- text: string;
910
- _tag: "proposal";
911
- } | {
912
- pending?: boolean | undefined;
913
- _tag: "toolkit";
914
- } | {
915
- pending?: boolean | undefined;
916
- disposition?: string | undefined;
917
- _tag: "json";
918
- data: string;
872
+ readonly id? /** In-memory draft threads. */: string | undefined;
873
+ readonly pending?: boolean | undefined;
874
+ readonly _tag: "image";
875
+ } | {
876
+ readonly name?: string | undefined;
877
+ readonly pending?: boolean | undefined;
878
+ readonly _tag: "file";
879
+ readonly mediaType?: string | undefined;
880
+ readonly url: string;
881
+ } | {
882
+ readonly pending?: boolean | undefined;
883
+ readonly _tag: "reference";
884
+ readonly reference: import("@dxos/echo/internal").Ref<any>;
885
+ } | {
886
+ readonly pending?: boolean | undefined;
887
+ readonly text: string;
888
+ readonly _tag: "transcript";
889
+ readonly started: string;
890
+ } | {
891
+ readonly pending?: boolean | undefined;
892
+ readonly _tag: "status";
893
+ readonly statusText: string;
894
+ } | {
895
+ readonly pending?: boolean | undefined;
896
+ readonly text: string;
897
+ readonly _tag: "suggestion";
898
+ } | {
899
+ readonly pending?: boolean | undefined;
900
+ readonly _tag: "select";
901
+ readonly options: string[];
902
+ } | {
903
+ readonly version: unknown;
904
+ readonly pending?: boolean | undefined;
905
+ readonly _tag: "anchor";
906
+ readonly objectId: string;
907
+ } | {
908
+ readonly pending?: boolean | undefined;
909
+ readonly text: string;
910
+ readonly _tag: "proposal";
911
+ } | {
912
+ readonly pending?: boolean | undefined;
913
+ readonly _tag: "toolkit";
914
+ } | {
915
+ readonly pending?: boolean | undefined;
916
+ readonly disposition?: string | undefined;
917
+ readonly _tag: "json";
918
+ readonly data: string;
919
919
  })[];
920
920
  readonly properties?: {
921
- [x: string]: any;
921
+ readonly [x: string]: any;
922
922
  } | undefined;
923
923
  }>[];
924
924
  }, Schema.Struct.Fields>;
@@ -956,14 +956,14 @@ export declare namespace ThreadOperation {
956
956
  readonly thread?: (import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
957
957
  readonly name?: string | undefined;
958
958
  readonly status?: "active" | "staged" | "resolved" | undefined;
959
- readonly messages: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
959
+ readonly messages: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
960
960
  readonly id: string;
961
961
  readonly parentMessage?: string | undefined;
962
962
  readonly created: string;
963
963
  readonly sender: {
964
- name?: string | undefined;
965
- role?: "user" | "assistant" | "tool" | undefined;
966
- contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
964
+ readonly name?: string | undefined;
965
+ readonly role?: "user" | "assistant" | "tool" | undefined;
966
+ readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
967
967
  readonly image?: string | undefined;
968
968
  readonly fullName?: string | undefined;
969
969
  readonly preferredName?: string | undefined;
@@ -980,24 +980,24 @@ export declare namespace ThreadOperation {
980
980
  readonly jobTitle?: string | undefined;
981
981
  readonly department?: string | undefined;
982
982
  readonly notes?: string | undefined;
983
- readonly emails?: {
983
+ readonly emails?: readonly {
984
984
  readonly value: string;
985
985
  readonly label?: string | undefined;
986
986
  }[] | undefined;
987
- readonly identities?: {
987
+ readonly identities?: readonly {
988
988
  readonly value: string;
989
989
  readonly label?: string | undefined;
990
990
  }[] | undefined;
991
- readonly phoneNumbers?: {
991
+ readonly phoneNumbers?: readonly {
992
992
  readonly value: string;
993
993
  readonly label?: string | undefined;
994
994
  }[] | undefined;
995
- readonly fields?: {
995
+ readonly fields?: readonly {
996
996
  readonly value: string;
997
997
  readonly label: string;
998
998
  readonly category?: string | undefined;
999
999
  }[] | undefined;
1000
- readonly addresses?: {
1000
+ readonly addresses?: readonly {
1001
1001
  readonly value: {
1002
1002
  readonly street?: string | undefined;
1003
1003
  readonly extended?: string | undefined;
@@ -1009,7 +1009,7 @@ export declare namespace ThreadOperation {
1009
1009
  };
1010
1010
  readonly label?: string | undefined;
1011
1011
  }[] | undefined;
1012
- readonly urls?: {
1012
+ readonly urls?: readonly {
1013
1013
  readonly value: string;
1014
1014
  readonly label?: string | undefined;
1015
1015
  }[] | undefined;
@@ -1017,110 +1017,110 @@ export declare namespace ThreadOperation {
1017
1017
  } & {
1018
1018
  readonly location?: readonly [number, number, (number | undefined)?] | undefined;
1019
1019
  }> | undefined;
1020
- identityDid?: string | undefined;
1021
- identityKey?: string | undefined;
1022
- email?: string | undefined;
1020
+ readonly identityDid?: string | undefined;
1021
+ readonly identityKey?: string | undefined;
1022
+ readonly email?: string | undefined;
1023
1023
  };
1024
- readonly blocks: ({
1025
- pending?: boolean | undefined;
1026
- text: string;
1027
- mimeType?: string | undefined;
1028
- disposition?: string | undefined;
1029
- _tag: "text";
1024
+ readonly blocks: readonly ({
1025
+ readonly pending?: boolean | undefined;
1026
+ readonly text: string;
1027
+ readonly mimeType?: string | undefined;
1028
+ readonly disposition?: string | undefined;
1029
+ readonly _tag: "text";
1030
1030
  } | {
1031
- pending?: boolean | undefined;
1032
- _tag: "reasoning";
1033
- reasoningText?: string | undefined;
1034
- redactedText?: string | undefined;
1035
- signature?: string | undefined;
1031
+ readonly pending?: boolean | undefined;
1032
+ readonly _tag: "reasoning";
1033
+ readonly reasoningText?: string | undefined;
1034
+ readonly redactedText?: string | undefined;
1035
+ readonly signature?: string | undefined;
1036
1036
  } | {
1037
- name: string;
1038
- pending?: boolean | undefined;
1039
- _tag: "toolCall";
1040
- toolCallId: string;
1041
- input: string;
1042
- providerExecuted: boolean;
1037
+ readonly name: string;
1038
+ readonly pending?: boolean | undefined;
1039
+ readonly _tag: "toolCall";
1040
+ readonly toolCallId: string;
1041
+ readonly input: string;
1042
+ readonly providerExecuted: boolean;
1043
1043
  } | {
1044
- name: string;
1045
- pending?: boolean | undefined;
1046
- _tag: "toolResult";
1047
- toolCallId: string;
1048
- providerExecuted: boolean;
1049
- result?: string | undefined;
1050
- error?: string | undefined;
1044
+ readonly name: string;
1045
+ readonly pending?: boolean | undefined;
1046
+ readonly _tag: "toolResult";
1047
+ readonly toolCallId: string;
1048
+ readonly providerExecuted: boolean;
1049
+ readonly result?: string | undefined;
1050
+ readonly error?: string | undefined;
1051
1051
  } | {
1052
- pending?: boolean | undefined;
1053
- mimeType?: string | undefined;
1054
- _tag: "summary";
1055
- message?: string | undefined;
1056
- model?: string | undefined;
1057
- usage?: {
1052
+ readonly pending?: boolean | undefined;
1053
+ readonly mimeType?: string | undefined;
1054
+ readonly _tag: "summary";
1055
+ readonly message?: string | undefined;
1056
+ readonly model?: string | undefined;
1057
+ readonly usage?: {
1058
1058
  readonly inputTokens?: number | undefined;
1059
1059
  readonly outputTokens?: number | undefined;
1060
1060
  readonly totalTokens?: number | undefined;
1061
1061
  } | undefined;
1062
- toolCalls?: number | undefined;
1063
- errors?: number | undefined;
1064
- duration?: number | undefined;
1062
+ readonly toolCalls?: number | undefined;
1063
+ readonly errors?: number | undefined;
1064
+ readonly duration?: number | undefined;
1065
1065
  } | {
1066
- source?: {
1067
- type: "base64";
1068
- mediaType: string;
1069
- data: string;
1066
+ readonly source?: {
1067
+ readonly type: "base64";
1068
+ readonly mediaType: string;
1069
+ readonly data: string;
1070
1070
  } | {
1071
- type: "http";
1072
- url: string;
1071
+ readonly type: "http";
1072
+ readonly url: string;
1073
1073
  } | undefined;
1074
- id?: string | undefined;
1075
- pending?: boolean | undefined;
1076
- _tag: "image";
1074
+ readonly id? /** In-memory draft threads. */: string | undefined;
1075
+ readonly pending?: boolean | undefined;
1076
+ readonly _tag: "image";
1077
1077
  } | {
1078
- name?: string | undefined;
1079
- pending?: boolean | undefined;
1080
- _tag: "file";
1081
- mediaType?: string | undefined;
1082
- url: string;
1078
+ readonly name?: string | undefined;
1079
+ readonly pending?: boolean | undefined;
1080
+ readonly _tag: "file";
1081
+ readonly mediaType?: string | undefined;
1082
+ readonly url: string;
1083
1083
  } | {
1084
- pending?: boolean | undefined;
1085
- _tag: "reference";
1086
- reference: import("@dxos/echo/internal").Ref<any>;
1084
+ readonly pending?: boolean | undefined;
1085
+ readonly _tag: "reference";
1086
+ readonly reference: import("@dxos/echo/internal").Ref<any>;
1087
1087
  } | {
1088
- pending?: boolean | undefined;
1089
- text: string;
1090
- _tag: "transcript";
1091
- started: string;
1088
+ readonly pending?: boolean | undefined;
1089
+ readonly text: string;
1090
+ readonly _tag: "transcript";
1091
+ readonly started: string;
1092
1092
  } | {
1093
- pending?: boolean | undefined;
1094
- _tag: "status";
1095
- statusText: string;
1093
+ readonly pending?: boolean | undefined;
1094
+ readonly _tag: "status";
1095
+ readonly statusText: string;
1096
1096
  } | {
1097
- pending?: boolean | undefined;
1098
- text: string;
1099
- _tag: "suggestion";
1097
+ readonly pending?: boolean | undefined;
1098
+ readonly text: string;
1099
+ readonly _tag: "suggestion";
1100
1100
  } | {
1101
- pending?: boolean | undefined;
1102
- _tag: "select";
1103
- options: string[];
1101
+ readonly pending?: boolean | undefined;
1102
+ readonly _tag: "select";
1103
+ readonly options: string[];
1104
1104
  } | {
1105
- version: unknown;
1106
- pending?: boolean | undefined;
1107
- _tag: "anchor";
1108
- objectId: string;
1105
+ readonly version: unknown;
1106
+ readonly pending?: boolean | undefined;
1107
+ readonly _tag: "anchor";
1108
+ readonly objectId: string;
1109
1109
  } | {
1110
- pending?: boolean | undefined;
1111
- text: string;
1112
- _tag: "proposal";
1110
+ readonly pending?: boolean | undefined;
1111
+ readonly text: string;
1112
+ readonly _tag: "proposal";
1113
1113
  } | {
1114
- pending?: boolean | undefined;
1115
- _tag: "toolkit";
1114
+ readonly pending?: boolean | undefined;
1115
+ readonly _tag: "toolkit";
1116
1116
  } | {
1117
- pending?: boolean | undefined;
1118
- disposition?: string | undefined;
1119
- _tag: "json";
1120
- data: string;
1117
+ readonly pending?: boolean | undefined;
1118
+ readonly disposition?: string | undefined;
1119
+ readonly _tag: "json";
1120
+ readonly data: string;
1121
1121
  })[];
1122
1122
  readonly properties?: {
1123
- [x: string]: any;
1123
+ readonly [x: string]: any;
1124
1124
  } | undefined;
1125
1125
  }>[];
1126
1126
  }) | undefined;
@@ -1140,9 +1140,9 @@ export declare namespace ThreadOperation {
1140
1140
  readonly parentMessage?: string | undefined;
1141
1141
  readonly created: string;
1142
1142
  readonly sender: {
1143
- name?: string | undefined;
1144
- role?: "user" | "assistant" | "tool" | undefined;
1145
- contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
1143
+ readonly name?: string | undefined;
1144
+ readonly role?: "user" | "assistant" | "tool" | undefined;
1145
+ readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
1146
1146
  readonly image?: string | undefined;
1147
1147
  readonly fullName?: string | undefined;
1148
1148
  readonly preferredName?: string | undefined;
@@ -1159,24 +1159,24 @@ export declare namespace ThreadOperation {
1159
1159
  readonly jobTitle?: string | undefined;
1160
1160
  readonly department?: string | undefined;
1161
1161
  readonly notes?: string | undefined;
1162
- readonly emails?: {
1162
+ readonly emails?: readonly {
1163
1163
  readonly value: string;
1164
1164
  readonly label?: string | undefined;
1165
1165
  }[] | undefined;
1166
- readonly identities?: {
1166
+ readonly identities?: readonly {
1167
1167
  readonly value: string;
1168
1168
  readonly label?: string | undefined;
1169
1169
  }[] | undefined;
1170
- readonly phoneNumbers?: {
1170
+ readonly phoneNumbers?: readonly {
1171
1171
  readonly value: string;
1172
1172
  readonly label?: string | undefined;
1173
1173
  }[] | undefined;
1174
- readonly fields?: {
1174
+ readonly fields?: readonly {
1175
1175
  readonly value: string;
1176
1176
  readonly label: string;
1177
1177
  readonly category?: string | undefined;
1178
1178
  }[] | undefined;
1179
- readonly addresses?: {
1179
+ readonly addresses?: readonly {
1180
1180
  readonly value: {
1181
1181
  readonly street?: string | undefined;
1182
1182
  readonly extended?: string | undefined;
@@ -1188,7 +1188,7 @@ export declare namespace ThreadOperation {
1188
1188
  };
1189
1189
  readonly label?: string | undefined;
1190
1190
  }[] | undefined;
1191
- readonly urls?: {
1191
+ readonly urls?: readonly {
1192
1192
  readonly value: string;
1193
1193
  readonly label?: string | undefined;
1194
1194
  }[] | undefined;
@@ -1196,110 +1196,110 @@ export declare namespace ThreadOperation {
1196
1196
  } & {
1197
1197
  readonly location?: readonly [number, number, (number | undefined)?] | undefined;
1198
1198
  }> | undefined;
1199
- identityDid?: string | undefined;
1200
- identityKey?: string | undefined;
1201
- email?: string | undefined;
1199
+ readonly identityDid?: string | undefined;
1200
+ readonly identityKey?: string | undefined;
1201
+ readonly email?: string | undefined;
1202
1202
  };
1203
- readonly blocks: ({
1204
- pending?: boolean | undefined;
1205
- text: string;
1206
- mimeType?: string | undefined;
1207
- disposition?: string | undefined;
1208
- _tag: "text";
1203
+ readonly blocks: readonly ({
1204
+ readonly pending?: boolean | undefined;
1205
+ readonly text: string;
1206
+ readonly mimeType?: string | undefined;
1207
+ readonly disposition?: string | undefined;
1208
+ readonly _tag: "text";
1209
1209
  } | {
1210
- pending?: boolean | undefined;
1211
- _tag: "reasoning";
1212
- reasoningText?: string | undefined;
1213
- redactedText?: string | undefined;
1214
- signature?: string | undefined;
1210
+ readonly pending?: boolean | undefined;
1211
+ readonly _tag: "reasoning";
1212
+ readonly reasoningText?: string | undefined;
1213
+ readonly redactedText?: string | undefined;
1214
+ readonly signature?: string | undefined;
1215
1215
  } | {
1216
- name: string;
1217
- pending?: boolean | undefined;
1218
- _tag: "toolCall";
1219
- toolCallId: string;
1220
- input: string;
1221
- providerExecuted: boolean;
1216
+ readonly name: string;
1217
+ readonly pending?: boolean | undefined;
1218
+ readonly _tag: "toolCall";
1219
+ readonly toolCallId: string;
1220
+ readonly input: string;
1221
+ readonly providerExecuted: boolean;
1222
1222
  } | {
1223
- name: string;
1224
- pending?: boolean | undefined;
1225
- _tag: "toolResult";
1226
- toolCallId: string;
1227
- providerExecuted: boolean;
1228
- result?: string | undefined;
1229
- error?: string | undefined;
1223
+ readonly name: string;
1224
+ readonly pending?: boolean | undefined;
1225
+ readonly _tag: "toolResult";
1226
+ readonly toolCallId: string;
1227
+ readonly providerExecuted: boolean;
1228
+ readonly result?: string | undefined;
1229
+ readonly error?: string | undefined;
1230
1230
  } | {
1231
- pending?: boolean | undefined;
1232
- mimeType?: string | undefined;
1233
- _tag: "summary";
1234
- message?: string | undefined;
1235
- model?: string | undefined;
1236
- usage?: {
1231
+ readonly pending?: boolean | undefined;
1232
+ readonly mimeType?: string | undefined;
1233
+ readonly _tag: "summary";
1234
+ readonly message?: string | undefined;
1235
+ readonly model?: string | undefined;
1236
+ readonly usage?: {
1237
1237
  readonly inputTokens?: number | undefined;
1238
1238
  readonly outputTokens?: number | undefined;
1239
1239
  readonly totalTokens?: number | undefined;
1240
1240
  } | undefined;
1241
- toolCalls?: number | undefined;
1242
- errors?: number | undefined;
1243
- duration?: number | undefined;
1241
+ readonly toolCalls?: number | undefined;
1242
+ readonly errors?: number | undefined;
1243
+ readonly duration?: number | undefined;
1244
1244
  } | {
1245
- source?: {
1246
- type: "base64";
1247
- mediaType: string;
1248
- data: string;
1245
+ readonly source?: {
1246
+ readonly type: "base64";
1247
+ readonly mediaType: string;
1248
+ readonly data: string;
1249
1249
  } | {
1250
- type: "http";
1251
- url: string;
1250
+ readonly type: "http";
1251
+ readonly url: string;
1252
1252
  } | undefined;
1253
- id?: string | undefined;
1254
- pending?: boolean | undefined;
1255
- _tag: "image";
1253
+ readonly id? /** In-memory draft threads. */: string | undefined;
1254
+ readonly pending?: boolean | undefined;
1255
+ readonly _tag: "image";
1256
1256
  } | {
1257
- name?: string | undefined;
1258
- pending?: boolean | undefined;
1259
- _tag: "file";
1260
- mediaType?: string | undefined;
1261
- url: string;
1257
+ readonly name?: string | undefined;
1258
+ readonly pending?: boolean | undefined;
1259
+ readonly _tag: "file";
1260
+ readonly mediaType?: string | undefined;
1261
+ readonly url: string;
1262
1262
  } | {
1263
- pending?: boolean | undefined;
1264
- _tag: "reference";
1265
- reference: import("@dxos/echo/internal").Ref<any>;
1263
+ readonly pending?: boolean | undefined;
1264
+ readonly _tag: "reference";
1265
+ readonly reference: import("@dxos/echo/internal").Ref<any>;
1266
1266
  } | {
1267
- pending?: boolean | undefined;
1268
- text: string;
1269
- _tag: "transcript";
1270
- started: string;
1267
+ readonly pending?: boolean | undefined;
1268
+ readonly text: string;
1269
+ readonly _tag: "transcript";
1270
+ readonly started: string;
1271
1271
  } | {
1272
- pending?: boolean | undefined;
1273
- _tag: "status";
1274
- statusText: string;
1272
+ readonly pending?: boolean | undefined;
1273
+ readonly _tag: "status";
1274
+ readonly statusText: string;
1275
1275
  } | {
1276
- pending?: boolean | undefined;
1277
- text: string;
1278
- _tag: "suggestion";
1276
+ readonly pending?: boolean | undefined;
1277
+ readonly text: string;
1278
+ readonly _tag: "suggestion";
1279
1279
  } | {
1280
- pending?: boolean | undefined;
1281
- _tag: "select";
1282
- options: string[];
1280
+ readonly pending?: boolean | undefined;
1281
+ readonly _tag: "select";
1282
+ readonly options: string[];
1283
1283
  } | {
1284
- version: unknown;
1285
- pending?: boolean | undefined;
1286
- _tag: "anchor";
1287
- objectId: string;
1284
+ readonly version: unknown;
1285
+ readonly pending?: boolean | undefined;
1286
+ readonly _tag: "anchor";
1287
+ readonly objectId: string;
1288
1288
  } | {
1289
- pending?: boolean | undefined;
1290
- text: string;
1291
- _tag: "proposal";
1289
+ readonly pending?: boolean | undefined;
1290
+ readonly text: string;
1291
+ readonly _tag: "proposal";
1292
1292
  } | {
1293
- pending?: boolean | undefined;
1294
- _tag: "toolkit";
1293
+ readonly pending?: boolean | undefined;
1294
+ readonly _tag: "toolkit";
1295
1295
  } | {
1296
- pending?: boolean | undefined;
1297
- disposition?: string | undefined;
1298
- _tag: "json";
1299
- data: string;
1296
+ readonly pending?: boolean | undefined;
1297
+ readonly disposition?: string | undefined;
1298
+ readonly _tag: "json";
1299
+ readonly data: string;
1300
1300
  })[];
1301
1301
  readonly properties?: {
1302
- [x: string]: any;
1302
+ readonly [x: string]: any;
1303
1303
  } | undefined;
1304
1304
  }>[];
1305
1305
  } | undefined;
@@ -1325,14 +1325,14 @@ export declare namespace ThreadOperation {
1325
1325
  thread: Schema.optional<Type.Obj<{
1326
1326
  readonly name?: string | undefined;
1327
1327
  readonly status?: "active" | "staged" | "resolved" | undefined;
1328
- readonly messages: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
1328
+ readonly messages: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
1329
1329
  readonly id: string;
1330
1330
  readonly parentMessage?: string | undefined;
1331
1331
  readonly created: string;
1332
1332
  readonly sender: {
1333
- name?: string | undefined;
1334
- role?: "user" | "assistant" | "tool" | undefined;
1335
- contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
1333
+ readonly name?: string | undefined;
1334
+ readonly role?: "user" | "assistant" | "tool" | undefined;
1335
+ readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
1336
1336
  readonly image?: string | undefined;
1337
1337
  readonly fullName?: string | undefined;
1338
1338
  readonly preferredName?: string | undefined;
@@ -1349,24 +1349,24 @@ export declare namespace ThreadOperation {
1349
1349
  readonly jobTitle?: string | undefined;
1350
1350
  readonly department?: string | undefined;
1351
1351
  readonly notes?: string | undefined;
1352
- readonly emails?: {
1352
+ readonly emails?: readonly {
1353
1353
  readonly value: string;
1354
1354
  readonly label?: string | undefined;
1355
1355
  }[] | undefined;
1356
- readonly identities?: {
1356
+ readonly identities?: readonly {
1357
1357
  readonly value: string;
1358
1358
  readonly label?: string | undefined;
1359
1359
  }[] | undefined;
1360
- readonly phoneNumbers?: {
1360
+ readonly phoneNumbers?: readonly {
1361
1361
  readonly value: string;
1362
1362
  readonly label?: string | undefined;
1363
1363
  }[] | undefined;
1364
- readonly fields?: {
1364
+ readonly fields?: readonly {
1365
1365
  readonly value: string;
1366
1366
  readonly label: string;
1367
1367
  readonly category?: string | undefined;
1368
1368
  }[] | undefined;
1369
- readonly addresses?: {
1369
+ readonly addresses?: readonly {
1370
1370
  readonly value: {
1371
1371
  readonly street?: string | undefined;
1372
1372
  readonly extended?: string | undefined;
@@ -1378,7 +1378,7 @@ export declare namespace ThreadOperation {
1378
1378
  };
1379
1379
  readonly label?: string | undefined;
1380
1380
  }[] | undefined;
1381
- readonly urls?: {
1381
+ readonly urls?: readonly {
1382
1382
  readonly value: string;
1383
1383
  readonly label?: string | undefined;
1384
1384
  }[] | undefined;
@@ -1386,110 +1386,110 @@ export declare namespace ThreadOperation {
1386
1386
  } & {
1387
1387
  readonly location?: readonly [number, number, (number | undefined)?] | undefined;
1388
1388
  }> | undefined;
1389
- identityDid?: string | undefined;
1390
- identityKey?: string | undefined;
1391
- email?: string | undefined;
1389
+ readonly identityDid?: string | undefined;
1390
+ readonly identityKey?: string | undefined;
1391
+ readonly email?: string | undefined;
1392
1392
  };
1393
- readonly blocks: ({
1394
- pending?: boolean | undefined;
1395
- text: string;
1396
- mimeType?: string | undefined;
1397
- disposition?: string | undefined;
1398
- _tag: "text";
1399
- } | {
1400
- pending?: boolean | undefined;
1401
- _tag: "reasoning";
1402
- reasoningText?: string | undefined;
1403
- redactedText?: string | undefined;
1404
- signature?: string | undefined;
1405
- } | {
1406
- name: string;
1407
- pending?: boolean | undefined;
1408
- _tag: "toolCall";
1409
- toolCallId: string;
1410
- input: string;
1411
- providerExecuted: boolean;
1412
- } | {
1413
- name: string;
1414
- pending?: boolean | undefined;
1415
- _tag: "toolResult";
1416
- toolCallId: string;
1417
- providerExecuted: boolean;
1418
- result?: string | undefined;
1419
- error?: string | undefined;
1420
- } | {
1421
- pending?: boolean | undefined;
1422
- mimeType?: string | undefined;
1423
- _tag: "summary";
1424
- message?: string | undefined;
1425
- model?: string | undefined;
1426
- usage?: {
1393
+ readonly blocks: readonly ({
1394
+ readonly pending?: boolean | undefined;
1395
+ readonly text: string;
1396
+ readonly mimeType?: string | undefined;
1397
+ readonly disposition?: string | undefined;
1398
+ readonly _tag: "text";
1399
+ } | {
1400
+ readonly pending?: boolean | undefined;
1401
+ readonly _tag: "reasoning";
1402
+ readonly reasoningText?: string | undefined;
1403
+ readonly redactedText?: string | undefined;
1404
+ readonly signature?: string | undefined;
1405
+ } | {
1406
+ readonly name: string;
1407
+ readonly pending?: boolean | undefined;
1408
+ readonly _tag: "toolCall";
1409
+ readonly toolCallId: string;
1410
+ readonly input: string;
1411
+ readonly providerExecuted: boolean;
1412
+ } | {
1413
+ readonly name: string;
1414
+ readonly pending?: boolean | undefined;
1415
+ readonly _tag: "toolResult";
1416
+ readonly toolCallId: string;
1417
+ readonly providerExecuted: boolean;
1418
+ readonly result?: string | undefined;
1419
+ readonly error?: string | undefined;
1420
+ } | {
1421
+ readonly pending?: boolean | undefined;
1422
+ readonly mimeType?: string | undefined;
1423
+ readonly _tag: "summary";
1424
+ readonly message?: string | undefined;
1425
+ readonly model?: string | undefined;
1426
+ readonly usage?: {
1427
1427
  readonly inputTokens?: number | undefined;
1428
1428
  readonly outputTokens?: number | undefined;
1429
1429
  readonly totalTokens?: number | undefined;
1430
1430
  } | undefined;
1431
- toolCalls?: number | undefined;
1432
- errors?: number | undefined;
1433
- duration?: number | undefined;
1431
+ readonly toolCalls?: number | undefined;
1432
+ readonly errors?: number | undefined;
1433
+ readonly duration?: number | undefined;
1434
1434
  } | {
1435
- source?: {
1436
- type: "base64";
1437
- mediaType: string;
1438
- data: string;
1435
+ readonly source?: {
1436
+ readonly type: "base64";
1437
+ readonly mediaType: string;
1438
+ readonly data: string;
1439
1439
  } | {
1440
- type: "http";
1441
- url: string;
1440
+ readonly type: "http";
1441
+ readonly url: string;
1442
1442
  } | undefined;
1443
- id?: string | undefined;
1444
- pending?: boolean | undefined;
1445
- _tag: "image";
1446
- } | {
1447
- name?: string | undefined;
1448
- pending?: boolean | undefined;
1449
- _tag: "file";
1450
- mediaType?: string | undefined;
1451
- url: string;
1452
- } | {
1453
- pending?: boolean | undefined;
1454
- _tag: "reference";
1455
- reference: import("@dxos/echo/internal").Ref<any>;
1456
- } | {
1457
- pending?: boolean | undefined;
1458
- text: string;
1459
- _tag: "transcript";
1460
- started: string;
1461
- } | {
1462
- pending?: boolean | undefined;
1463
- _tag: "status";
1464
- statusText: string;
1465
- } | {
1466
- pending?: boolean | undefined;
1467
- text: string;
1468
- _tag: "suggestion";
1469
- } | {
1470
- pending?: boolean | undefined;
1471
- _tag: "select";
1472
- options: string[];
1473
- } | {
1474
- version: unknown;
1475
- pending?: boolean | undefined;
1476
- _tag: "anchor";
1477
- objectId: string;
1478
- } | {
1479
- pending?: boolean | undefined;
1480
- text: string;
1481
- _tag: "proposal";
1482
- } | {
1483
- pending?: boolean | undefined;
1484
- _tag: "toolkit";
1485
- } | {
1486
- pending?: boolean | undefined;
1487
- disposition?: string | undefined;
1488
- _tag: "json";
1489
- data: string;
1443
+ readonly id? /** In-memory draft threads. */: string | undefined;
1444
+ readonly pending?: boolean | undefined;
1445
+ readonly _tag: "image";
1446
+ } | {
1447
+ readonly name?: string | undefined;
1448
+ readonly pending?: boolean | undefined;
1449
+ readonly _tag: "file";
1450
+ readonly mediaType?: string | undefined;
1451
+ readonly url: string;
1452
+ } | {
1453
+ readonly pending?: boolean | undefined;
1454
+ readonly _tag: "reference";
1455
+ readonly reference: import("@dxos/echo/internal").Ref<any>;
1456
+ } | {
1457
+ readonly pending?: boolean | undefined;
1458
+ readonly text: string;
1459
+ readonly _tag: "transcript";
1460
+ readonly started: string;
1461
+ } | {
1462
+ readonly pending?: boolean | undefined;
1463
+ readonly _tag: "status";
1464
+ readonly statusText: string;
1465
+ } | {
1466
+ readonly pending?: boolean | undefined;
1467
+ readonly text: string;
1468
+ readonly _tag: "suggestion";
1469
+ } | {
1470
+ readonly pending?: boolean | undefined;
1471
+ readonly _tag: "select";
1472
+ readonly options: string[];
1473
+ } | {
1474
+ readonly version: unknown;
1475
+ readonly pending?: boolean | undefined;
1476
+ readonly _tag: "anchor";
1477
+ readonly objectId: string;
1478
+ } | {
1479
+ readonly pending?: boolean | undefined;
1480
+ readonly text: string;
1481
+ readonly _tag: "proposal";
1482
+ } | {
1483
+ readonly pending?: boolean | undefined;
1484
+ readonly _tag: "toolkit";
1485
+ } | {
1486
+ readonly pending?: boolean | undefined;
1487
+ readonly disposition?: string | undefined;
1488
+ readonly _tag: "json";
1489
+ readonly data: string;
1490
1490
  })[];
1491
1491
  readonly properties?: {
1492
- [x: string]: any;
1492
+ readonly [x: string]: any;
1493
1493
  } | undefined;
1494
1494
  }>[];
1495
1495
  }, Schema.Struct.Fields>>;
@@ -1502,14 +1502,14 @@ export declare namespace ThreadOperation {
1502
1502
  readonly thread?: (import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
1503
1503
  readonly name?: string | undefined;
1504
1504
  readonly status?: "active" | "staged" | "resolved" | undefined;
1505
- readonly messages: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
1505
+ readonly messages: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
1506
1506
  readonly id: string;
1507
1507
  readonly parentMessage?: string | undefined;
1508
1508
  readonly created: string;
1509
1509
  readonly sender: {
1510
- name?: string | undefined;
1511
- role?: "user" | "assistant" | "tool" | undefined;
1512
- contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
1510
+ readonly name?: string | undefined;
1511
+ readonly role?: "user" | "assistant" | "tool" | undefined;
1512
+ readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
1513
1513
  readonly image?: string | undefined;
1514
1514
  readonly fullName?: string | undefined;
1515
1515
  readonly preferredName?: string | undefined;
@@ -1526,24 +1526,24 @@ export declare namespace ThreadOperation {
1526
1526
  readonly jobTitle?: string | undefined;
1527
1527
  readonly department?: string | undefined;
1528
1528
  readonly notes?: string | undefined;
1529
- readonly emails?: {
1529
+ readonly emails?: readonly {
1530
1530
  readonly value: string;
1531
1531
  readonly label?: string | undefined;
1532
1532
  }[] | undefined;
1533
- readonly identities?: {
1533
+ readonly identities?: readonly {
1534
1534
  readonly value: string;
1535
1535
  readonly label?: string | undefined;
1536
1536
  }[] | undefined;
1537
- readonly phoneNumbers?: {
1537
+ readonly phoneNumbers?: readonly {
1538
1538
  readonly value: string;
1539
1539
  readonly label?: string | undefined;
1540
1540
  }[] | undefined;
1541
- readonly fields?: {
1541
+ readonly fields?: readonly {
1542
1542
  readonly value: string;
1543
1543
  readonly label: string;
1544
1544
  readonly category?: string | undefined;
1545
1545
  }[] | undefined;
1546
- readonly addresses?: {
1546
+ readonly addresses?: readonly {
1547
1547
  readonly value: {
1548
1548
  readonly street?: string | undefined;
1549
1549
  readonly extended?: string | undefined;
@@ -1555,7 +1555,7 @@ export declare namespace ThreadOperation {
1555
1555
  };
1556
1556
  readonly label?: string | undefined;
1557
1557
  }[] | undefined;
1558
- readonly urls?: {
1558
+ readonly urls?: readonly {
1559
1559
  readonly value: string;
1560
1560
  readonly label?: string | undefined;
1561
1561
  }[] | undefined;
@@ -1563,110 +1563,110 @@ export declare namespace ThreadOperation {
1563
1563
  } & {
1564
1564
  readonly location?: readonly [number, number, (number | undefined)?] | undefined;
1565
1565
  }> | undefined;
1566
- identityDid?: string | undefined;
1567
- identityKey?: string | undefined;
1568
- email?: string | undefined;
1566
+ readonly identityDid?: string | undefined;
1567
+ readonly identityKey?: string | undefined;
1568
+ readonly email?: string | undefined;
1569
1569
  };
1570
- readonly blocks: ({
1571
- pending?: boolean | undefined;
1572
- text: string;
1573
- mimeType?: string | undefined;
1574
- disposition?: string | undefined;
1575
- _tag: "text";
1576
- } | {
1577
- pending?: boolean | undefined;
1578
- _tag: "reasoning";
1579
- reasoningText?: string | undefined;
1580
- redactedText?: string | undefined;
1581
- signature?: string | undefined;
1582
- } | {
1583
- name: string;
1584
- pending?: boolean | undefined;
1585
- _tag: "toolCall";
1586
- toolCallId: string;
1587
- input: string;
1588
- providerExecuted: boolean;
1589
- } | {
1590
- name: string;
1591
- pending?: boolean | undefined;
1592
- _tag: "toolResult";
1593
- toolCallId: string;
1594
- providerExecuted: boolean;
1595
- result?: string | undefined;
1596
- error?: string | undefined;
1597
- } | {
1598
- pending?: boolean | undefined;
1599
- mimeType?: string | undefined;
1600
- _tag: "summary";
1601
- message?: string | undefined;
1602
- model?: string | undefined;
1603
- usage?: {
1570
+ readonly blocks: readonly ({
1571
+ readonly pending?: boolean | undefined;
1572
+ readonly text: string;
1573
+ readonly mimeType?: string | undefined;
1574
+ readonly disposition?: string | undefined;
1575
+ readonly _tag: "text";
1576
+ } | {
1577
+ readonly pending?: boolean | undefined;
1578
+ readonly _tag: "reasoning";
1579
+ readonly reasoningText?: string | undefined;
1580
+ readonly redactedText?: string | undefined;
1581
+ readonly signature?: string | undefined;
1582
+ } | {
1583
+ readonly name: string;
1584
+ readonly pending?: boolean | undefined;
1585
+ readonly _tag: "toolCall";
1586
+ readonly toolCallId: string;
1587
+ readonly input: string;
1588
+ readonly providerExecuted: boolean;
1589
+ } | {
1590
+ readonly name: string;
1591
+ readonly pending?: boolean | undefined;
1592
+ readonly _tag: "toolResult";
1593
+ readonly toolCallId: string;
1594
+ readonly providerExecuted: boolean;
1595
+ readonly result?: string | undefined;
1596
+ readonly error?: string | undefined;
1597
+ } | {
1598
+ readonly pending?: boolean | undefined;
1599
+ readonly mimeType?: string | undefined;
1600
+ readonly _tag: "summary";
1601
+ readonly message?: string | undefined;
1602
+ readonly model?: string | undefined;
1603
+ readonly usage?: {
1604
1604
  readonly inputTokens?: number | undefined;
1605
1605
  readonly outputTokens?: number | undefined;
1606
1606
  readonly totalTokens?: number | undefined;
1607
1607
  } | undefined;
1608
- toolCalls?: number | undefined;
1609
- errors?: number | undefined;
1610
- duration?: number | undefined;
1608
+ readonly toolCalls?: number | undefined;
1609
+ readonly errors?: number | undefined;
1610
+ readonly duration?: number | undefined;
1611
1611
  } | {
1612
- source?: {
1613
- type: "base64";
1614
- mediaType: string;
1615
- data: string;
1612
+ readonly source?: {
1613
+ readonly type: "base64";
1614
+ readonly mediaType: string;
1615
+ readonly data: string;
1616
1616
  } | {
1617
- type: "http";
1618
- url: string;
1617
+ readonly type: "http";
1618
+ readonly url: string;
1619
1619
  } | undefined;
1620
- id?: string | undefined;
1621
- pending?: boolean | undefined;
1622
- _tag: "image";
1623
- } | {
1624
- name?: string | undefined;
1625
- pending?: boolean | undefined;
1626
- _tag: "file";
1627
- mediaType?: string | undefined;
1628
- url: string;
1629
- } | {
1630
- pending?: boolean | undefined;
1631
- _tag: "reference";
1632
- reference: import("@dxos/echo/internal").Ref<any>;
1633
- } | {
1634
- pending?: boolean | undefined;
1635
- text: string;
1636
- _tag: "transcript";
1637
- started: string;
1638
- } | {
1639
- pending?: boolean | undefined;
1640
- _tag: "status";
1641
- statusText: string;
1642
- } | {
1643
- pending?: boolean | undefined;
1644
- text: string;
1645
- _tag: "suggestion";
1646
- } | {
1647
- pending?: boolean | undefined;
1648
- _tag: "select";
1649
- options: string[];
1650
- } | {
1651
- version: unknown;
1652
- pending?: boolean | undefined;
1653
- _tag: "anchor";
1654
- objectId: string;
1655
- } | {
1656
- pending?: boolean | undefined;
1657
- text: string;
1658
- _tag: "proposal";
1659
- } | {
1660
- pending?: boolean | undefined;
1661
- _tag: "toolkit";
1662
- } | {
1663
- pending?: boolean | undefined;
1664
- disposition?: string | undefined;
1665
- _tag: "json";
1666
- data: string;
1620
+ readonly id? /** In-memory draft threads. */: string | undefined;
1621
+ readonly pending?: boolean | undefined;
1622
+ readonly _tag: "image";
1623
+ } | {
1624
+ readonly name?: string | undefined;
1625
+ readonly pending?: boolean | undefined;
1626
+ readonly _tag: "file";
1627
+ readonly mediaType?: string | undefined;
1628
+ readonly url: string;
1629
+ } | {
1630
+ readonly pending?: boolean | undefined;
1631
+ readonly _tag: "reference";
1632
+ readonly reference: import("@dxos/echo/internal").Ref<any>;
1633
+ } | {
1634
+ readonly pending?: boolean | undefined;
1635
+ readonly text: string;
1636
+ readonly _tag: "transcript";
1637
+ readonly started: string;
1638
+ } | {
1639
+ readonly pending?: boolean | undefined;
1640
+ readonly _tag: "status";
1641
+ readonly statusText: string;
1642
+ } | {
1643
+ readonly pending?: boolean | undefined;
1644
+ readonly text: string;
1645
+ readonly _tag: "suggestion";
1646
+ } | {
1647
+ readonly pending?: boolean | undefined;
1648
+ readonly _tag: "select";
1649
+ readonly options: string[];
1650
+ } | {
1651
+ readonly version: unknown;
1652
+ readonly pending?: boolean | undefined;
1653
+ readonly _tag: "anchor";
1654
+ readonly objectId: string;
1655
+ } | {
1656
+ readonly pending?: boolean | undefined;
1657
+ readonly text: string;
1658
+ readonly _tag: "proposal";
1659
+ } | {
1660
+ readonly pending?: boolean | undefined;
1661
+ readonly _tag: "toolkit";
1662
+ } | {
1663
+ readonly pending?: boolean | undefined;
1664
+ readonly disposition?: string | undefined;
1665
+ readonly _tag: "json";
1666
+ readonly data: string;
1667
1667
  })[];
1668
1668
  readonly properties?: {
1669
- [x: string]: any;
1669
+ readonly [x: string]: any;
1670
1670
  } | undefined;
1671
1671
  }>[];
1672
1672
  }) | undefined;
@@ -1686,9 +1686,9 @@ export declare namespace ThreadOperation {
1686
1686
  readonly parentMessage?: string | undefined;
1687
1687
  readonly created: string;
1688
1688
  readonly sender: {
1689
- name?: string | undefined;
1690
- role?: "user" | "assistant" | "tool" | undefined;
1691
- contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
1689
+ readonly name?: string | undefined;
1690
+ readonly role?: "user" | "assistant" | "tool" | undefined;
1691
+ readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
1692
1692
  readonly image?: string | undefined;
1693
1693
  readonly fullName?: string | undefined;
1694
1694
  readonly preferredName?: string | undefined;
@@ -1705,24 +1705,24 @@ export declare namespace ThreadOperation {
1705
1705
  readonly jobTitle?: string | undefined;
1706
1706
  readonly department?: string | undefined;
1707
1707
  readonly notes?: string | undefined;
1708
- readonly emails?: {
1708
+ readonly emails?: readonly {
1709
1709
  readonly value: string;
1710
1710
  readonly label?: string | undefined;
1711
1711
  }[] | undefined;
1712
- readonly identities?: {
1712
+ readonly identities?: readonly {
1713
1713
  readonly value: string;
1714
1714
  readonly label?: string | undefined;
1715
1715
  }[] | undefined;
1716
- readonly phoneNumbers?: {
1716
+ readonly phoneNumbers?: readonly {
1717
1717
  readonly value: string;
1718
1718
  readonly label?: string | undefined;
1719
1719
  }[] | undefined;
1720
- readonly fields?: {
1720
+ readonly fields?: readonly {
1721
1721
  readonly value: string;
1722
1722
  readonly label: string;
1723
1723
  readonly category?: string | undefined;
1724
1724
  }[] | undefined;
1725
- readonly addresses?: {
1725
+ readonly addresses?: readonly {
1726
1726
  readonly value: {
1727
1727
  readonly street?: string | undefined;
1728
1728
  readonly extended?: string | undefined;
@@ -1734,7 +1734,7 @@ export declare namespace ThreadOperation {
1734
1734
  };
1735
1735
  readonly label?: string | undefined;
1736
1736
  }[] | undefined;
1737
- readonly urls?: {
1737
+ readonly urls?: readonly {
1738
1738
  readonly value: string;
1739
1739
  readonly label?: string | undefined;
1740
1740
  }[] | undefined;
@@ -1742,110 +1742,110 @@ export declare namespace ThreadOperation {
1742
1742
  } & {
1743
1743
  readonly location?: readonly [number, number, (number | undefined)?] | undefined;
1744
1744
  }> | undefined;
1745
- identityDid?: string | undefined;
1746
- identityKey?: string | undefined;
1747
- email?: string | undefined;
1745
+ readonly identityDid?: string | undefined;
1746
+ readonly identityKey?: string | undefined;
1747
+ readonly email?: string | undefined;
1748
1748
  };
1749
- readonly blocks: ({
1750
- pending?: boolean | undefined;
1751
- text: string;
1752
- mimeType?: string | undefined;
1753
- disposition?: string | undefined;
1754
- _tag: "text";
1755
- } | {
1756
- pending?: boolean | undefined;
1757
- _tag: "reasoning";
1758
- reasoningText?: string | undefined;
1759
- redactedText?: string | undefined;
1760
- signature?: string | undefined;
1761
- } | {
1762
- name: string;
1763
- pending?: boolean | undefined;
1764
- _tag: "toolCall";
1765
- toolCallId: string;
1766
- input: string;
1767
- providerExecuted: boolean;
1768
- } | {
1769
- name: string;
1770
- pending?: boolean | undefined;
1771
- _tag: "toolResult";
1772
- toolCallId: string;
1773
- providerExecuted: boolean;
1774
- result?: string | undefined;
1775
- error?: string | undefined;
1776
- } | {
1777
- pending?: boolean | undefined;
1778
- mimeType?: string | undefined;
1779
- _tag: "summary";
1780
- message?: string | undefined;
1781
- model?: string | undefined;
1782
- usage?: {
1749
+ readonly blocks: readonly ({
1750
+ readonly pending?: boolean | undefined;
1751
+ readonly text: string;
1752
+ readonly mimeType?: string | undefined;
1753
+ readonly disposition?: string | undefined;
1754
+ readonly _tag: "text";
1755
+ } | {
1756
+ readonly pending?: boolean | undefined;
1757
+ readonly _tag: "reasoning";
1758
+ readonly reasoningText?: string | undefined;
1759
+ readonly redactedText?: string | undefined;
1760
+ readonly signature?: string | undefined;
1761
+ } | {
1762
+ readonly name: string;
1763
+ readonly pending?: boolean | undefined;
1764
+ readonly _tag: "toolCall";
1765
+ readonly toolCallId: string;
1766
+ readonly input: string;
1767
+ readonly providerExecuted: boolean;
1768
+ } | {
1769
+ readonly name: string;
1770
+ readonly pending?: boolean | undefined;
1771
+ readonly _tag: "toolResult";
1772
+ readonly toolCallId: string;
1773
+ readonly providerExecuted: boolean;
1774
+ readonly result?: string | undefined;
1775
+ readonly error?: string | undefined;
1776
+ } | {
1777
+ readonly pending?: boolean | undefined;
1778
+ readonly mimeType?: string | undefined;
1779
+ readonly _tag: "summary";
1780
+ readonly message?: string | undefined;
1781
+ readonly model?: string | undefined;
1782
+ readonly usage?: {
1783
1783
  readonly inputTokens?: number | undefined;
1784
1784
  readonly outputTokens?: number | undefined;
1785
1785
  readonly totalTokens?: number | undefined;
1786
1786
  } | undefined;
1787
- toolCalls?: number | undefined;
1788
- errors?: number | undefined;
1789
- duration?: number | undefined;
1787
+ readonly toolCalls?: number | undefined;
1788
+ readonly errors?: number | undefined;
1789
+ readonly duration?: number | undefined;
1790
1790
  } | {
1791
- source?: {
1792
- type: "base64";
1793
- mediaType: string;
1794
- data: string;
1791
+ readonly source?: {
1792
+ readonly type: "base64";
1793
+ readonly mediaType: string;
1794
+ readonly data: string;
1795
1795
  } | {
1796
- type: "http";
1797
- url: string;
1796
+ readonly type: "http";
1797
+ readonly url: string;
1798
1798
  } | undefined;
1799
- id?: string | undefined;
1800
- pending?: boolean | undefined;
1801
- _tag: "image";
1802
- } | {
1803
- name?: string | undefined;
1804
- pending?: boolean | undefined;
1805
- _tag: "file";
1806
- mediaType?: string | undefined;
1807
- url: string;
1808
- } | {
1809
- pending?: boolean | undefined;
1810
- _tag: "reference";
1811
- reference: import("@dxos/echo/internal").Ref<any>;
1812
- } | {
1813
- pending?: boolean | undefined;
1814
- text: string;
1815
- _tag: "transcript";
1816
- started: string;
1817
- } | {
1818
- pending?: boolean | undefined;
1819
- _tag: "status";
1820
- statusText: string;
1821
- } | {
1822
- pending?: boolean | undefined;
1823
- text: string;
1824
- _tag: "suggestion";
1825
- } | {
1826
- pending?: boolean | undefined;
1827
- _tag: "select";
1828
- options: string[];
1829
- } | {
1830
- version: unknown;
1831
- pending?: boolean | undefined;
1832
- _tag: "anchor";
1833
- objectId: string;
1834
- } | {
1835
- pending?: boolean | undefined;
1836
- text: string;
1837
- _tag: "proposal";
1838
- } | {
1839
- pending?: boolean | undefined;
1840
- _tag: "toolkit";
1841
- } | {
1842
- pending?: boolean | undefined;
1843
- disposition?: string | undefined;
1844
- _tag: "json";
1845
- data: string;
1799
+ readonly id? /** In-memory draft threads. */: string | undefined;
1800
+ readonly pending?: boolean | undefined;
1801
+ readonly _tag: "image";
1802
+ } | {
1803
+ readonly name?: string | undefined;
1804
+ readonly pending?: boolean | undefined;
1805
+ readonly _tag: "file";
1806
+ readonly mediaType?: string | undefined;
1807
+ readonly url: string;
1808
+ } | {
1809
+ readonly pending?: boolean | undefined;
1810
+ readonly _tag: "reference";
1811
+ readonly reference: import("@dxos/echo/internal").Ref<any>;
1812
+ } | {
1813
+ readonly pending?: boolean | undefined;
1814
+ readonly text: string;
1815
+ readonly _tag: "transcript";
1816
+ readonly started: string;
1817
+ } | {
1818
+ readonly pending?: boolean | undefined;
1819
+ readonly _tag: "status";
1820
+ readonly statusText: string;
1821
+ } | {
1822
+ readonly pending?: boolean | undefined;
1823
+ readonly text: string;
1824
+ readonly _tag: "suggestion";
1825
+ } | {
1826
+ readonly pending?: boolean | undefined;
1827
+ readonly _tag: "select";
1828
+ readonly options: string[];
1829
+ } | {
1830
+ readonly version: unknown;
1831
+ readonly pending?: boolean | undefined;
1832
+ readonly _tag: "anchor";
1833
+ readonly objectId: string;
1834
+ } | {
1835
+ readonly pending?: boolean | undefined;
1836
+ readonly text: string;
1837
+ readonly _tag: "proposal";
1838
+ } | {
1839
+ readonly pending?: boolean | undefined;
1840
+ readonly _tag: "toolkit";
1841
+ } | {
1842
+ readonly pending?: boolean | undefined;
1843
+ readonly disposition?: string | undefined;
1844
+ readonly _tag: "json";
1845
+ readonly data: string;
1846
1846
  })[];
1847
1847
  readonly properties?: {
1848
- [x: string]: any;
1848
+ readonly [x: string]: any;
1849
1849
  } | undefined;
1850
1850
  }>[];
1851
1851
  } | undefined;
@@ -1880,14 +1880,14 @@ export declare namespace ThreadOperation {
1880
1880
  thread: Type.Obj<{
1881
1881
  readonly name?: string | undefined;
1882
1882
  readonly status?: "active" | "staged" | "resolved" | undefined;
1883
- readonly messages: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
1883
+ readonly messages: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
1884
1884
  readonly id: string;
1885
1885
  readonly parentMessage?: string | undefined;
1886
1886
  readonly created: string;
1887
1887
  readonly sender: {
1888
- name?: string | undefined;
1889
- role?: "user" | "assistant" | "tool" | undefined;
1890
- contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
1888
+ readonly name?: string | undefined;
1889
+ readonly role?: "user" | "assistant" | "tool" | undefined;
1890
+ readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
1891
1891
  readonly image?: string | undefined;
1892
1892
  readonly fullName?: string | undefined;
1893
1893
  readonly preferredName?: string | undefined;
@@ -1904,24 +1904,24 @@ export declare namespace ThreadOperation {
1904
1904
  readonly jobTitle?: string | undefined;
1905
1905
  readonly department?: string | undefined;
1906
1906
  readonly notes?: string | undefined;
1907
- readonly emails?: {
1907
+ readonly emails?: readonly {
1908
1908
  readonly value: string;
1909
1909
  readonly label?: string | undefined;
1910
1910
  }[] | undefined;
1911
- readonly identities?: {
1911
+ readonly identities?: readonly {
1912
1912
  readonly value: string;
1913
1913
  readonly label?: string | undefined;
1914
1914
  }[] | undefined;
1915
- readonly phoneNumbers?: {
1915
+ readonly phoneNumbers?: readonly {
1916
1916
  readonly value: string;
1917
1917
  readonly label?: string | undefined;
1918
1918
  }[] | undefined;
1919
- readonly fields?: {
1919
+ readonly fields?: readonly {
1920
1920
  readonly value: string;
1921
1921
  readonly label: string;
1922
1922
  readonly category?: string | undefined;
1923
1923
  }[] | undefined;
1924
- readonly addresses?: {
1924
+ readonly addresses?: readonly {
1925
1925
  readonly value: {
1926
1926
  readonly street?: string | undefined;
1927
1927
  readonly extended?: string | undefined;
@@ -1933,7 +1933,7 @@ export declare namespace ThreadOperation {
1933
1933
  };
1934
1934
  readonly label?: string | undefined;
1935
1935
  }[] | undefined;
1936
- readonly urls?: {
1936
+ readonly urls?: readonly {
1937
1937
  readonly value: string;
1938
1938
  readonly label?: string | undefined;
1939
1939
  }[] | undefined;
@@ -1941,110 +1941,110 @@ export declare namespace ThreadOperation {
1941
1941
  } & {
1942
1942
  readonly location?: readonly [number, number, (number | undefined)?] | undefined;
1943
1943
  }> | undefined;
1944
- identityDid?: string | undefined;
1945
- identityKey?: string | undefined;
1946
- email?: string | undefined;
1944
+ readonly identityDid?: string | undefined;
1945
+ readonly identityKey?: string | undefined;
1946
+ readonly email?: string | undefined;
1947
1947
  };
1948
- readonly blocks: ({
1949
- pending?: boolean | undefined;
1950
- text: string;
1951
- mimeType?: string | undefined;
1952
- disposition?: string | undefined;
1953
- _tag: "text";
1954
- } | {
1955
- pending?: boolean | undefined;
1956
- _tag: "reasoning";
1957
- reasoningText?: string | undefined;
1958
- redactedText?: string | undefined;
1959
- signature?: string | undefined;
1960
- } | {
1961
- name: string;
1962
- pending?: boolean | undefined;
1963
- _tag: "toolCall";
1964
- toolCallId: string;
1965
- input: string;
1966
- providerExecuted: boolean;
1967
- } | {
1968
- name: string;
1969
- pending?: boolean | undefined;
1970
- _tag: "toolResult";
1971
- toolCallId: string;
1972
- providerExecuted: boolean;
1973
- result?: string | undefined;
1974
- error?: string | undefined;
1975
- } | {
1976
- pending?: boolean | undefined;
1977
- mimeType?: string | undefined;
1978
- _tag: "summary";
1979
- message?: string | undefined;
1980
- model?: string | undefined;
1981
- usage?: {
1948
+ readonly blocks: readonly ({
1949
+ readonly pending?: boolean | undefined;
1950
+ readonly text: string;
1951
+ readonly mimeType?: string | undefined;
1952
+ readonly disposition?: string | undefined;
1953
+ readonly _tag: "text";
1954
+ } | {
1955
+ readonly pending?: boolean | undefined;
1956
+ readonly _tag: "reasoning";
1957
+ readonly reasoningText?: string | undefined;
1958
+ readonly redactedText?: string | undefined;
1959
+ readonly signature?: string | undefined;
1960
+ } | {
1961
+ readonly name: string;
1962
+ readonly pending?: boolean | undefined;
1963
+ readonly _tag: "toolCall";
1964
+ readonly toolCallId: string;
1965
+ readonly input: string;
1966
+ readonly providerExecuted: boolean;
1967
+ } | {
1968
+ readonly name: string;
1969
+ readonly pending?: boolean | undefined;
1970
+ readonly _tag: "toolResult";
1971
+ readonly toolCallId: string;
1972
+ readonly providerExecuted: boolean;
1973
+ readonly result?: string | undefined;
1974
+ readonly error?: string | undefined;
1975
+ } | {
1976
+ readonly pending?: boolean | undefined;
1977
+ readonly mimeType?: string | undefined;
1978
+ readonly _tag: "summary";
1979
+ readonly message?: string | undefined;
1980
+ readonly model?: string | undefined;
1981
+ readonly usage?: {
1982
1982
  readonly inputTokens?: number | undefined;
1983
1983
  readonly outputTokens?: number | undefined;
1984
1984
  readonly totalTokens?: number | undefined;
1985
1985
  } | undefined;
1986
- toolCalls?: number | undefined;
1987
- errors?: number | undefined;
1988
- duration?: number | undefined;
1986
+ readonly toolCalls?: number | undefined;
1987
+ readonly errors?: number | undefined;
1988
+ readonly duration?: number | undefined;
1989
1989
  } | {
1990
- source?: {
1991
- type: "base64";
1992
- mediaType: string;
1993
- data: string;
1990
+ readonly source?: {
1991
+ readonly type: "base64";
1992
+ readonly mediaType: string;
1993
+ readonly data: string;
1994
1994
  } | {
1995
- type: "http";
1996
- url: string;
1995
+ readonly type: "http";
1996
+ readonly url: string;
1997
1997
  } | undefined;
1998
- id?: string | undefined;
1999
- pending?: boolean | undefined;
2000
- _tag: "image";
2001
- } | {
2002
- name?: string | undefined;
2003
- pending?: boolean | undefined;
2004
- _tag: "file";
2005
- mediaType?: string | undefined;
2006
- url: string;
2007
- } | {
2008
- pending?: boolean | undefined;
2009
- _tag: "reference";
2010
- reference: import("@dxos/echo/internal").Ref<any>;
2011
- } | {
2012
- pending?: boolean | undefined;
2013
- text: string;
2014
- _tag: "transcript";
2015
- started: string;
2016
- } | {
2017
- pending?: boolean | undefined;
2018
- _tag: "status";
2019
- statusText: string;
2020
- } | {
2021
- pending?: boolean | undefined;
2022
- text: string;
2023
- _tag: "suggestion";
2024
- } | {
2025
- pending?: boolean | undefined;
2026
- _tag: "select";
2027
- options: string[];
2028
- } | {
2029
- version: unknown;
2030
- pending?: boolean | undefined;
2031
- _tag: "anchor";
2032
- objectId: string;
2033
- } | {
2034
- pending?: boolean | undefined;
2035
- text: string;
2036
- _tag: "proposal";
2037
- } | {
2038
- pending?: boolean | undefined;
2039
- _tag: "toolkit";
2040
- } | {
2041
- pending?: boolean | undefined;
2042
- disposition?: string | undefined;
2043
- _tag: "json";
2044
- data: string;
1998
+ readonly id? /** In-memory draft threads. */: string | undefined;
1999
+ readonly pending?: boolean | undefined;
2000
+ readonly _tag: "image";
2001
+ } | {
2002
+ readonly name?: string | undefined;
2003
+ readonly pending?: boolean | undefined;
2004
+ readonly _tag: "file";
2005
+ readonly mediaType?: string | undefined;
2006
+ readonly url: string;
2007
+ } | {
2008
+ readonly pending?: boolean | undefined;
2009
+ readonly _tag: "reference";
2010
+ readonly reference: import("@dxos/echo/internal").Ref<any>;
2011
+ } | {
2012
+ readonly pending?: boolean | undefined;
2013
+ readonly text: string;
2014
+ readonly _tag: "transcript";
2015
+ readonly started: string;
2016
+ } | {
2017
+ readonly pending?: boolean | undefined;
2018
+ readonly _tag: "status";
2019
+ readonly statusText: string;
2020
+ } | {
2021
+ readonly pending?: boolean | undefined;
2022
+ readonly text: string;
2023
+ readonly _tag: "suggestion";
2024
+ } | {
2025
+ readonly pending?: boolean | undefined;
2026
+ readonly _tag: "select";
2027
+ readonly options: string[];
2028
+ } | {
2029
+ readonly version: unknown;
2030
+ readonly pending?: boolean | undefined;
2031
+ readonly _tag: "anchor";
2032
+ readonly objectId: string;
2033
+ } | {
2034
+ readonly pending?: boolean | undefined;
2035
+ readonly text: string;
2036
+ readonly _tag: "proposal";
2037
+ } | {
2038
+ readonly pending?: boolean | undefined;
2039
+ readonly _tag: "toolkit";
2040
+ } | {
2041
+ readonly pending?: boolean | undefined;
2042
+ readonly disposition?: string | undefined;
2043
+ readonly _tag: "json";
2044
+ readonly data: string;
2045
2045
  })[];
2046
2046
  readonly properties?: {
2047
- [x: string]: any;
2047
+ readonly [x: string]: any;
2048
2048
  } | undefined;
2049
2049
  }>[];
2050
2050
  }, Schema.Struct.Fields>;
@@ -2090,24 +2090,24 @@ export declare namespace ThreadOperation {
2090
2090
  readonly jobTitle?: string | undefined;
2091
2091
  readonly department?: string | undefined;
2092
2092
  readonly notes?: string | undefined;
2093
- readonly emails?: {
2093
+ readonly emails?: readonly {
2094
2094
  readonly value: string;
2095
2095
  readonly label?: string | undefined;
2096
2096
  }[] | undefined;
2097
- readonly identities?: {
2097
+ readonly identities?: readonly {
2098
2098
  readonly value: string;
2099
2099
  readonly label?: string | undefined;
2100
2100
  }[] | undefined;
2101
- readonly phoneNumbers?: {
2101
+ readonly phoneNumbers?: readonly {
2102
2102
  readonly value: string;
2103
2103
  readonly label?: string | undefined;
2104
2104
  }[] | undefined;
2105
- readonly fields?: {
2105
+ readonly fields?: readonly {
2106
2106
  readonly value: string;
2107
2107
  readonly label: string;
2108
2108
  readonly category?: string | undefined;
2109
2109
  }[] | undefined;
2110
- readonly addresses?: {
2110
+ readonly addresses?: readonly {
2111
2111
  readonly value: {
2112
2112
  readonly street?: string | undefined;
2113
2113
  readonly extended?: string | undefined;
@@ -2119,7 +2119,7 @@ export declare namespace ThreadOperation {
2119
2119
  };
2120
2120
  readonly label?: string | undefined;
2121
2121
  }[] | undefined;
2122
- readonly urls?: {
2122
+ readonly urls?: readonly {
2123
2123
  readonly value: string;
2124
2124
  readonly label?: string | undefined;
2125
2125
  }[] | undefined;
@@ -2145,9 +2145,9 @@ export declare namespace ThreadOperation {
2145
2145
  readonly parentMessage?: string | undefined;
2146
2146
  readonly created: string;
2147
2147
  readonly sender: {
2148
- name?: string | undefined;
2149
- role?: "user" | "assistant" | "tool" | undefined;
2150
- contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
2148
+ readonly name?: string | undefined;
2149
+ readonly role?: "user" | "assistant" | "tool" | undefined;
2150
+ readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
2151
2151
  readonly image?: string | undefined;
2152
2152
  readonly fullName?: string | undefined;
2153
2153
  readonly preferredName?: string | undefined;
@@ -2164,24 +2164,24 @@ export declare namespace ThreadOperation {
2164
2164
  readonly jobTitle?: string | undefined;
2165
2165
  readonly department?: string | undefined;
2166
2166
  readonly notes?: string | undefined;
2167
- readonly emails?: {
2167
+ readonly emails?: readonly {
2168
2168
  readonly value: string;
2169
2169
  readonly label?: string | undefined;
2170
2170
  }[] | undefined;
2171
- readonly identities?: {
2171
+ readonly identities?: readonly {
2172
2172
  readonly value: string;
2173
2173
  readonly label?: string | undefined;
2174
2174
  }[] | undefined;
2175
- readonly phoneNumbers?: {
2175
+ readonly phoneNumbers?: readonly {
2176
2176
  readonly value: string;
2177
2177
  readonly label?: string | undefined;
2178
2178
  }[] | undefined;
2179
- readonly fields?: {
2179
+ readonly fields?: readonly {
2180
2180
  readonly value: string;
2181
2181
  readonly label: string;
2182
2182
  readonly category?: string | undefined;
2183
2183
  }[] | undefined;
2184
- readonly addresses?: {
2184
+ readonly addresses?: readonly {
2185
2185
  readonly value: {
2186
2186
  readonly street?: string | undefined;
2187
2187
  readonly extended?: string | undefined;
@@ -2193,7 +2193,7 @@ export declare namespace ThreadOperation {
2193
2193
  };
2194
2194
  readonly label?: string | undefined;
2195
2195
  }[] | undefined;
2196
- readonly urls?: {
2196
+ readonly urls?: readonly {
2197
2197
  readonly value: string;
2198
2198
  readonly label?: string | undefined;
2199
2199
  }[] | undefined;
@@ -2201,110 +2201,110 @@ export declare namespace ThreadOperation {
2201
2201
  } & {
2202
2202
  readonly location?: readonly [number, number, (number | undefined)?] | undefined;
2203
2203
  }> | undefined;
2204
- identityDid?: string | undefined;
2205
- identityKey?: string | undefined;
2206
- email?: string | undefined;
2204
+ readonly identityDid?: string | undefined;
2205
+ readonly identityKey?: string | undefined;
2206
+ readonly email?: string | undefined;
2207
2207
  };
2208
- readonly blocks: ({
2209
- pending?: boolean | undefined;
2210
- text: string;
2211
- mimeType?: string | undefined;
2212
- disposition?: string | undefined;
2213
- _tag: "text";
2208
+ readonly blocks: readonly ({
2209
+ readonly pending?: boolean | undefined;
2210
+ readonly text: string;
2211
+ readonly mimeType?: string | undefined;
2212
+ readonly disposition?: string | undefined;
2213
+ readonly _tag: "text";
2214
2214
  } | {
2215
- pending?: boolean | undefined;
2216
- _tag: "reasoning";
2217
- reasoningText?: string | undefined;
2218
- redactedText?: string | undefined;
2219
- signature?: string | undefined;
2215
+ readonly pending?: boolean | undefined;
2216
+ readonly _tag: "reasoning";
2217
+ readonly reasoningText?: string | undefined;
2218
+ readonly redactedText?: string | undefined;
2219
+ readonly signature?: string | undefined;
2220
2220
  } | {
2221
- name: string;
2222
- pending?: boolean | undefined;
2223
- _tag: "toolCall";
2224
- toolCallId: string;
2225
- input: string;
2226
- providerExecuted: boolean;
2221
+ readonly name: string;
2222
+ readonly pending?: boolean | undefined;
2223
+ readonly _tag: "toolCall";
2224
+ readonly toolCallId: string;
2225
+ readonly input: string;
2226
+ readonly providerExecuted: boolean;
2227
2227
  } | {
2228
- name: string;
2229
- pending?: boolean | undefined;
2230
- _tag: "toolResult";
2231
- toolCallId: string;
2232
- providerExecuted: boolean;
2233
- result?: string | undefined;
2234
- error?: string | undefined;
2228
+ readonly name: string;
2229
+ readonly pending?: boolean | undefined;
2230
+ readonly _tag: "toolResult";
2231
+ readonly toolCallId: string;
2232
+ readonly providerExecuted: boolean;
2233
+ readonly result?: string | undefined;
2234
+ readonly error?: string | undefined;
2235
2235
  } | {
2236
- pending?: boolean | undefined;
2237
- mimeType?: string | undefined;
2238
- _tag: "summary";
2239
- message?: string | undefined;
2240
- model?: string | undefined;
2241
- usage?: {
2236
+ readonly pending?: boolean | undefined;
2237
+ readonly mimeType?: string | undefined;
2238
+ readonly _tag: "summary";
2239
+ readonly message?: string | undefined;
2240
+ readonly model?: string | undefined;
2241
+ readonly usage?: {
2242
2242
  readonly inputTokens?: number | undefined;
2243
2243
  readonly outputTokens?: number | undefined;
2244
2244
  readonly totalTokens?: number | undefined;
2245
2245
  } | undefined;
2246
- toolCalls?: number | undefined;
2247
- errors?: number | undefined;
2248
- duration?: number | undefined;
2246
+ readonly toolCalls?: number | undefined;
2247
+ readonly errors?: number | undefined;
2248
+ readonly duration?: number | undefined;
2249
2249
  } | {
2250
- source?: {
2251
- type: "base64";
2252
- mediaType: string;
2253
- data: string;
2250
+ readonly source?: {
2251
+ readonly type: "base64";
2252
+ readonly mediaType: string;
2253
+ readonly data: string;
2254
2254
  } | {
2255
- type: "http";
2256
- url: string;
2255
+ readonly type: "http";
2256
+ readonly url: string;
2257
2257
  } | undefined;
2258
- id?: string | undefined;
2259
- pending?: boolean | undefined;
2260
- _tag: "image";
2258
+ readonly id?: string | undefined;
2259
+ readonly pending?: boolean | undefined;
2260
+ readonly _tag: "image";
2261
2261
  } | {
2262
- name?: string | undefined;
2263
- pending?: boolean | undefined;
2264
- _tag: "file";
2265
- mediaType?: string | undefined;
2266
- url: string;
2262
+ readonly name?: string | undefined;
2263
+ readonly pending?: boolean | undefined;
2264
+ readonly _tag: "file";
2265
+ readonly mediaType?: string | undefined;
2266
+ readonly url: string;
2267
2267
  } | {
2268
- pending?: boolean | undefined;
2269
- _tag: "reference";
2270
- reference: import("@dxos/echo/internal").Ref<any>;
2268
+ readonly pending?: boolean | undefined;
2269
+ readonly _tag: "reference";
2270
+ readonly reference: import("@dxos/echo/internal").Ref<any>;
2271
2271
  } | {
2272
- pending?: boolean | undefined;
2273
- text: string;
2274
- _tag: "transcript";
2275
- started: string;
2272
+ readonly pending?: boolean | undefined;
2273
+ readonly text: string;
2274
+ readonly _tag: "transcript";
2275
+ readonly started: string;
2276
2276
  } | {
2277
- pending?: boolean | undefined;
2278
- _tag: "status";
2279
- statusText: string;
2277
+ readonly pending?: boolean | undefined;
2278
+ readonly _tag: "status";
2279
+ readonly statusText: string;
2280
2280
  } | {
2281
- pending?: boolean | undefined;
2282
- text: string;
2283
- _tag: "suggestion";
2281
+ readonly pending?: boolean | undefined;
2282
+ readonly text: string;
2283
+ readonly _tag: "suggestion";
2284
2284
  } | {
2285
- pending?: boolean | undefined;
2286
- _tag: "select";
2287
- options: string[];
2285
+ readonly pending?: boolean | undefined;
2286
+ readonly _tag: "select";
2287
+ readonly options: string[];
2288
2288
  } | {
2289
- version: unknown;
2290
- pending?: boolean | undefined;
2291
- _tag: "anchor";
2292
- objectId: string;
2289
+ readonly version: unknown;
2290
+ readonly pending?: boolean | undefined;
2291
+ readonly _tag: "anchor";
2292
+ readonly objectId: string;
2293
2293
  } | {
2294
- pending?: boolean | undefined;
2295
- text: string;
2296
- _tag: "proposal";
2294
+ readonly pending?: boolean | undefined;
2295
+ readonly text: string;
2296
+ readonly _tag: "proposal";
2297
2297
  } | {
2298
- pending?: boolean | undefined;
2299
- _tag: "toolkit";
2298
+ readonly pending?: boolean | undefined;
2299
+ readonly _tag: "toolkit";
2300
2300
  } | {
2301
- pending?: boolean | undefined;
2302
- disposition?: string | undefined;
2303
- _tag: "json";
2304
- data: string;
2301
+ readonly pending?: boolean | undefined;
2302
+ readonly disposition?: string | undefined;
2303
+ readonly _tag: "json";
2304
+ readonly data: string;
2305
2305
  })[];
2306
2306
  readonly properties?: {
2307
- [x: string]: any;
2307
+ readonly [x: string]: any;
2308
2308
  } | undefined;
2309
2309
  }) | undefined;
2310
2310
  readonly messageIndex?: number | undefined;
@@ -2314,9 +2314,9 @@ export declare namespace ThreadOperation {
2314
2314
  parentMessage?: string | undefined | undefined;
2315
2315
  created: string;
2316
2316
  sender: {
2317
- name?: string | undefined;
2318
- role?: "user" | "assistant" | "tool" | undefined;
2319
- contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
2317
+ readonly name?: string | undefined;
2318
+ readonly role?: "user" | "assistant" | "tool" | undefined;
2319
+ readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
2320
2320
  readonly image?: string | undefined;
2321
2321
  readonly fullName?: string | undefined;
2322
2322
  readonly preferredName?: string | undefined;
@@ -2333,24 +2333,24 @@ export declare namespace ThreadOperation {
2333
2333
  readonly jobTitle?: string | undefined;
2334
2334
  readonly department?: string | undefined;
2335
2335
  readonly notes?: string | undefined;
2336
- readonly emails?: {
2336
+ readonly emails?: readonly {
2337
2337
  readonly value: string;
2338
2338
  readonly label?: string | undefined;
2339
2339
  }[] | undefined;
2340
- readonly identities?: {
2340
+ readonly identities?: readonly {
2341
2341
  readonly value: string;
2342
2342
  readonly label?: string | undefined;
2343
2343
  }[] | undefined;
2344
- readonly phoneNumbers?: {
2344
+ readonly phoneNumbers?: readonly {
2345
2345
  readonly value: string;
2346
2346
  readonly label?: string | undefined;
2347
2347
  }[] | undefined;
2348
- readonly fields?: {
2348
+ readonly fields?: readonly {
2349
2349
  readonly value: string;
2350
2350
  readonly label: string;
2351
2351
  readonly category?: string | undefined;
2352
2352
  }[] | undefined;
2353
- readonly addresses?: {
2353
+ readonly addresses?: readonly {
2354
2354
  readonly value: {
2355
2355
  readonly street?: string | undefined;
2356
2356
  readonly extended?: string | undefined;
@@ -2362,7 +2362,7 @@ export declare namespace ThreadOperation {
2362
2362
  };
2363
2363
  readonly label?: string | undefined;
2364
2364
  }[] | undefined;
2365
- readonly urls?: {
2365
+ readonly urls?: readonly {
2366
2366
  readonly value: string;
2367
2367
  readonly label?: string | undefined;
2368
2368
  }[] | undefined;
@@ -2370,110 +2370,110 @@ export declare namespace ThreadOperation {
2370
2370
  } & {
2371
2371
  readonly location?: readonly [number, number, (number | undefined)?] | undefined;
2372
2372
  }> | undefined;
2373
- identityDid?: string | undefined;
2374
- identityKey?: string | undefined;
2375
- email?: string | undefined;
2373
+ readonly identityDid?: string | undefined;
2374
+ readonly identityKey?: string | undefined;
2375
+ readonly email?: string | undefined;
2376
2376
  };
2377
2377
  blocks: ({
2378
- pending?: boolean | undefined;
2379
- text: string;
2380
- mimeType?: string | undefined;
2381
- disposition?: string | undefined;
2382
- _tag: "text";
2378
+ readonly pending?: boolean | undefined;
2379
+ readonly text: string;
2380
+ readonly mimeType?: string | undefined;
2381
+ readonly disposition?: string | undefined;
2382
+ readonly _tag: "text";
2383
2383
  } | {
2384
- pending?: boolean | undefined;
2385
- _tag: "reasoning";
2386
- reasoningText?: string | undefined;
2387
- redactedText?: string | undefined;
2388
- signature?: string | undefined;
2384
+ readonly pending?: boolean | undefined;
2385
+ readonly _tag: "reasoning";
2386
+ readonly reasoningText?: string | undefined;
2387
+ readonly redactedText?: string | undefined;
2388
+ readonly signature?: string | undefined;
2389
2389
  } | {
2390
- name: string;
2391
- pending?: boolean | undefined;
2392
- _tag: "toolCall";
2393
- toolCallId: string;
2394
- input: string;
2395
- providerExecuted: boolean;
2390
+ readonly name: string;
2391
+ readonly pending?: boolean | undefined;
2392
+ readonly _tag: "toolCall";
2393
+ readonly toolCallId: string;
2394
+ readonly input: string;
2395
+ readonly providerExecuted: boolean;
2396
2396
  } | {
2397
- name: string;
2398
- pending?: boolean | undefined;
2399
- _tag: "toolResult";
2400
- toolCallId: string;
2401
- providerExecuted: boolean;
2402
- result?: string | undefined;
2403
- error?: string | undefined;
2397
+ readonly name: string;
2398
+ readonly pending?: boolean | undefined;
2399
+ readonly _tag: "toolResult";
2400
+ readonly toolCallId: string;
2401
+ readonly providerExecuted: boolean;
2402
+ readonly result?: string | undefined;
2403
+ readonly error?: string | undefined;
2404
2404
  } | {
2405
- pending?: boolean | undefined;
2406
- mimeType?: string | undefined;
2407
- _tag: "summary";
2408
- message?: string | undefined;
2409
- model?: string | undefined;
2410
- usage?: {
2405
+ readonly pending?: boolean | undefined;
2406
+ readonly mimeType?: string | undefined;
2407
+ readonly _tag: "summary";
2408
+ readonly message?: string | undefined;
2409
+ readonly model?: string | undefined;
2410
+ readonly usage?: {
2411
2411
  readonly inputTokens?: number | undefined;
2412
2412
  readonly outputTokens?: number | undefined;
2413
2413
  readonly totalTokens?: number | undefined;
2414
2414
  } | undefined;
2415
- toolCalls?: number | undefined;
2416
- errors?: number | undefined;
2417
- duration?: number | undefined;
2415
+ readonly toolCalls?: number | undefined;
2416
+ readonly errors?: number | undefined;
2417
+ readonly duration?: number | undefined;
2418
2418
  } | {
2419
- source?: {
2420
- type: "base64";
2421
- mediaType: string;
2422
- data: string;
2419
+ readonly source?: {
2420
+ readonly type: "base64";
2421
+ readonly mediaType: string;
2422
+ readonly data: string;
2423
2423
  } | {
2424
- type: "http";
2425
- url: string;
2424
+ readonly type: "http";
2425
+ readonly url: string;
2426
2426
  } | undefined;
2427
- id?: string | undefined;
2428
- pending?: boolean | undefined;
2429
- _tag: "image";
2427
+ readonly id?: string | undefined;
2428
+ readonly pending?: boolean | undefined;
2429
+ readonly _tag: "image";
2430
2430
  } | {
2431
- name?: string | undefined;
2432
- pending?: boolean | undefined;
2433
- _tag: "file";
2434
- mediaType?: string | undefined;
2435
- url: string;
2431
+ readonly name?: string | undefined;
2432
+ readonly pending?: boolean | undefined;
2433
+ readonly _tag: "file";
2434
+ readonly mediaType?: string | undefined;
2435
+ readonly url: string;
2436
2436
  } | {
2437
- pending?: boolean | undefined;
2438
- _tag: "reference";
2439
- reference: import("@dxos/echo/internal").Ref<any>;
2437
+ readonly pending?: boolean | undefined;
2438
+ readonly _tag: "reference";
2439
+ readonly reference: import("@dxos/echo/internal").Ref<any>;
2440
2440
  } | {
2441
- pending?: boolean | undefined;
2442
- text: string;
2443
- _tag: "transcript";
2444
- started: string;
2441
+ readonly pending?: boolean | undefined;
2442
+ readonly text: string;
2443
+ readonly _tag: "transcript";
2444
+ readonly started: string;
2445
2445
  } | {
2446
- pending?: boolean | undefined;
2447
- _tag: "status";
2448
- statusText: string;
2446
+ readonly pending?: boolean | undefined;
2447
+ readonly _tag: "status";
2448
+ readonly statusText: string;
2449
2449
  } | {
2450
- pending?: boolean | undefined;
2451
- text: string;
2452
- _tag: "suggestion";
2450
+ readonly pending?: boolean | undefined;
2451
+ readonly text: string;
2452
+ readonly _tag: "suggestion";
2453
2453
  } | {
2454
- pending?: boolean | undefined;
2455
- _tag: "select";
2456
- options: string[];
2454
+ readonly pending?: boolean | undefined;
2455
+ readonly _tag: "select";
2456
+ readonly options: string[];
2457
2457
  } | {
2458
- version: unknown;
2459
- pending?: boolean | undefined;
2460
- _tag: "anchor";
2461
- objectId: string;
2458
+ readonly version: unknown;
2459
+ readonly pending?: boolean | undefined;
2460
+ readonly _tag: "anchor";
2461
+ readonly objectId: string;
2462
2462
  } | {
2463
- pending?: boolean | undefined;
2464
- text: string;
2465
- _tag: "proposal";
2463
+ readonly pending?: boolean | undefined;
2464
+ readonly text: string;
2465
+ readonly _tag: "proposal";
2466
2466
  } | {
2467
- pending?: boolean | undefined;
2468
- _tag: "toolkit";
2467
+ readonly pending?: boolean | undefined;
2468
+ readonly _tag: "toolkit";
2469
2469
  } | {
2470
- pending?: boolean | undefined;
2471
- disposition?: string | undefined;
2472
- _tag: "json";
2473
- data: string;
2470
+ readonly pending?: boolean | undefined;
2471
+ readonly disposition?: string | undefined;
2472
+ readonly _tag: "json";
2473
+ readonly data: string;
2474
2474
  })[];
2475
2475
  properties?: {
2476
- [x: string]: any;
2476
+ readonly [x: string]: any;
2477
2477
  } | undefined | undefined;
2478
2478
  } | undefined;
2479
2479
  readonly messageIndex?: number | undefined;
@@ -2504,9 +2504,9 @@ export declare namespace ThreadOperation {
2504
2504
  readonly parentMessage?: string | undefined;
2505
2505
  readonly created: string;
2506
2506
  readonly sender: {
2507
- name?: string | undefined;
2508
- role?: "user" | "assistant" | "tool" | undefined;
2509
- contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
2507
+ readonly name?: string | undefined;
2508
+ readonly role?: "user" | "assistant" | "tool" | undefined;
2509
+ readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
2510
2510
  readonly image?: string | undefined;
2511
2511
  readonly fullName?: string | undefined;
2512
2512
  readonly preferredName?: string | undefined;
@@ -2523,24 +2523,24 @@ export declare namespace ThreadOperation {
2523
2523
  readonly jobTitle?: string | undefined;
2524
2524
  readonly department?: string | undefined;
2525
2525
  readonly notes?: string | undefined;
2526
- readonly emails?: {
2526
+ readonly emails?: readonly {
2527
2527
  readonly value: string;
2528
2528
  readonly label?: string | undefined;
2529
2529
  }[] | undefined;
2530
- readonly identities?: {
2530
+ readonly identities?: readonly {
2531
2531
  readonly value: string;
2532
2532
  readonly label?: string | undefined;
2533
2533
  }[] | undefined;
2534
- readonly phoneNumbers?: {
2534
+ readonly phoneNumbers?: readonly {
2535
2535
  readonly value: string;
2536
2536
  readonly label?: string | undefined;
2537
2537
  }[] | undefined;
2538
- readonly fields?: {
2538
+ readonly fields?: readonly {
2539
2539
  readonly value: string;
2540
2540
  readonly label: string;
2541
2541
  readonly category?: string | undefined;
2542
2542
  }[] | undefined;
2543
- readonly addresses?: {
2543
+ readonly addresses?: readonly {
2544
2544
  readonly value: {
2545
2545
  readonly street?: string | undefined;
2546
2546
  readonly extended?: string | undefined;
@@ -2552,7 +2552,7 @@ export declare namespace ThreadOperation {
2552
2552
  };
2553
2553
  readonly label?: string | undefined;
2554
2554
  }[] | undefined;
2555
- readonly urls?: {
2555
+ readonly urls?: readonly {
2556
2556
  readonly value: string;
2557
2557
  readonly label?: string | undefined;
2558
2558
  }[] | undefined;
@@ -2560,110 +2560,110 @@ export declare namespace ThreadOperation {
2560
2560
  } & {
2561
2561
  readonly location?: readonly [number, number, (number | undefined)?] | undefined;
2562
2562
  }> | undefined;
2563
- identityDid?: string | undefined;
2564
- identityKey?: string | undefined;
2565
- email?: string | undefined;
2563
+ readonly identityDid?: string | undefined;
2564
+ readonly identityKey?: string | undefined;
2565
+ readonly email?: string | undefined;
2566
2566
  };
2567
- readonly blocks: ({
2568
- pending?: boolean | undefined;
2569
- text: string;
2570
- mimeType?: string | undefined;
2571
- disposition?: string | undefined;
2572
- _tag: "text";
2567
+ readonly blocks: readonly ({
2568
+ readonly pending?: boolean | undefined;
2569
+ readonly text: string;
2570
+ readonly mimeType?: string | undefined;
2571
+ readonly disposition?: string | undefined;
2572
+ readonly _tag: "text";
2573
2573
  } | {
2574
- pending?: boolean | undefined;
2575
- _tag: "reasoning";
2576
- reasoningText?: string | undefined;
2577
- redactedText?: string | undefined;
2578
- signature?: string | undefined;
2574
+ readonly pending?: boolean | undefined;
2575
+ readonly _tag: "reasoning";
2576
+ readonly reasoningText?: string | undefined;
2577
+ readonly redactedText?: string | undefined;
2578
+ readonly signature?: string | undefined;
2579
2579
  } | {
2580
- name: string;
2581
- pending?: boolean | undefined;
2582
- _tag: "toolCall";
2583
- toolCallId: string;
2584
- input: string;
2585
- providerExecuted: boolean;
2580
+ readonly name: string;
2581
+ readonly pending?: boolean | undefined;
2582
+ readonly _tag: "toolCall";
2583
+ readonly toolCallId: string;
2584
+ readonly input: string;
2585
+ readonly providerExecuted: boolean;
2586
2586
  } | {
2587
- name: string;
2588
- pending?: boolean | undefined;
2589
- _tag: "toolResult";
2590
- toolCallId: string;
2591
- providerExecuted: boolean;
2592
- result?: string | undefined;
2593
- error?: string | undefined;
2587
+ readonly name: string;
2588
+ readonly pending?: boolean | undefined;
2589
+ readonly _tag: "toolResult";
2590
+ readonly toolCallId: string;
2591
+ readonly providerExecuted: boolean;
2592
+ readonly result?: string | undefined;
2593
+ readonly error?: string | undefined;
2594
2594
  } | {
2595
- pending?: boolean | undefined;
2596
- mimeType?: string | undefined;
2597
- _tag: "summary";
2598
- message?: string | undefined;
2599
- model?: string | undefined;
2600
- usage?: {
2595
+ readonly pending?: boolean | undefined;
2596
+ readonly mimeType?: string | undefined;
2597
+ readonly _tag: "summary";
2598
+ readonly message?: string | undefined;
2599
+ readonly model?: string | undefined;
2600
+ readonly usage?: {
2601
2601
  readonly inputTokens?: number | undefined;
2602
2602
  readonly outputTokens?: number | undefined;
2603
2603
  readonly totalTokens?: number | undefined;
2604
2604
  } | undefined;
2605
- toolCalls?: number | undefined;
2606
- errors?: number | undefined;
2607
- duration?: number | undefined;
2605
+ readonly toolCalls?: number | undefined;
2606
+ readonly errors?: number | undefined;
2607
+ readonly duration?: number | undefined;
2608
2608
  } | {
2609
- source?: {
2610
- type: "base64";
2611
- mediaType: string;
2612
- data: string;
2609
+ readonly source?: {
2610
+ readonly type: "base64";
2611
+ readonly mediaType: string;
2612
+ readonly data: string;
2613
2613
  } | {
2614
- type: "http";
2615
- url: string;
2614
+ readonly type: "http";
2615
+ readonly url: string;
2616
2616
  } | undefined;
2617
- id?: string | undefined;
2618
- pending?: boolean | undefined;
2619
- _tag: "image";
2617
+ readonly id?: string | undefined;
2618
+ readonly pending?: boolean | undefined;
2619
+ readonly _tag: "image";
2620
2620
  } | {
2621
- name?: string | undefined;
2622
- pending?: boolean | undefined;
2623
- _tag: "file";
2624
- mediaType?: string | undefined;
2625
- url: string;
2621
+ readonly name?: string | undefined;
2622
+ readonly pending?: boolean | undefined;
2623
+ readonly _tag: "file";
2624
+ readonly mediaType?: string | undefined;
2625
+ readonly url: string;
2626
2626
  } | {
2627
- pending?: boolean | undefined;
2628
- _tag: "reference";
2629
- reference: import("@dxos/echo/internal").Ref<any>;
2627
+ readonly pending?: boolean | undefined;
2628
+ readonly _tag: "reference";
2629
+ readonly reference: import("@dxos/echo/internal").Ref<any>;
2630
2630
  } | {
2631
- pending?: boolean | undefined;
2632
- text: string;
2633
- _tag: "transcript";
2634
- started: string;
2631
+ readonly pending?: boolean | undefined;
2632
+ readonly text: string;
2633
+ readonly _tag: "transcript";
2634
+ readonly started: string;
2635
2635
  } | {
2636
- pending?: boolean | undefined;
2637
- _tag: "status";
2638
- statusText: string;
2636
+ readonly pending?: boolean | undefined;
2637
+ readonly _tag: "status";
2638
+ readonly statusText: string;
2639
2639
  } | {
2640
- pending?: boolean | undefined;
2641
- text: string;
2642
- _tag: "suggestion";
2640
+ readonly pending?: boolean | undefined;
2641
+ readonly text: string;
2642
+ readonly _tag: "suggestion";
2643
2643
  } | {
2644
- pending?: boolean | undefined;
2645
- _tag: "select";
2646
- options: string[];
2644
+ readonly pending?: boolean | undefined;
2645
+ readonly _tag: "select";
2646
+ readonly options: string[];
2647
2647
  } | {
2648
- version: unknown;
2649
- pending?: boolean | undefined;
2650
- _tag: "anchor";
2651
- objectId: string;
2648
+ readonly version: unknown;
2649
+ readonly pending?: boolean | undefined;
2650
+ readonly _tag: "anchor";
2651
+ readonly objectId: string;
2652
2652
  } | {
2653
- pending?: boolean | undefined;
2654
- text: string;
2655
- _tag: "proposal";
2653
+ readonly pending?: boolean | undefined;
2654
+ readonly text: string;
2655
+ readonly _tag: "proposal";
2656
2656
  } | {
2657
- pending?: boolean | undefined;
2658
- _tag: "toolkit";
2657
+ readonly pending?: boolean | undefined;
2658
+ readonly _tag: "toolkit";
2659
2659
  } | {
2660
- pending?: boolean | undefined;
2661
- disposition?: string | undefined;
2662
- _tag: "json";
2663
- data: string;
2660
+ readonly pending?: boolean | undefined;
2661
+ readonly disposition?: string | undefined;
2662
+ readonly _tag: "json";
2663
+ readonly data: string;
2664
2664
  })[];
2665
2665
  readonly properties?: {
2666
- [x: string]: any;
2666
+ readonly [x: string]: any;
2667
2667
  } | undefined;
2668
2668
  }) | undefined;
2669
2669
  readonly messageIndex?: number | undefined;
@@ -2673,9 +2673,9 @@ export declare namespace ThreadOperation {
2673
2673
  parentMessage?: string | undefined | undefined;
2674
2674
  created: string;
2675
2675
  sender: {
2676
- name?: string | undefined;
2677
- role?: "user" | "assistant" | "tool" | undefined;
2678
- contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
2676
+ readonly name?: string | undefined;
2677
+ readonly role?: "user" | "assistant" | "tool" | undefined;
2678
+ readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
2679
2679
  readonly image?: string | undefined;
2680
2680
  readonly fullName?: string | undefined;
2681
2681
  readonly preferredName?: string | undefined;
@@ -2692,24 +2692,24 @@ export declare namespace ThreadOperation {
2692
2692
  readonly jobTitle?: string | undefined;
2693
2693
  readonly department?: string | undefined;
2694
2694
  readonly notes?: string | undefined;
2695
- readonly emails?: {
2695
+ readonly emails?: readonly {
2696
2696
  readonly value: string;
2697
2697
  readonly label?: string | undefined;
2698
2698
  }[] | undefined;
2699
- readonly identities?: {
2699
+ readonly identities?: readonly {
2700
2700
  readonly value: string;
2701
2701
  readonly label?: string | undefined;
2702
2702
  }[] | undefined;
2703
- readonly phoneNumbers?: {
2703
+ readonly phoneNumbers?: readonly {
2704
2704
  readonly value: string;
2705
2705
  readonly label?: string | undefined;
2706
2706
  }[] | undefined;
2707
- readonly fields?: {
2707
+ readonly fields?: readonly {
2708
2708
  readonly value: string;
2709
2709
  readonly label: string;
2710
2710
  readonly category?: string | undefined;
2711
2711
  }[] | undefined;
2712
- readonly addresses?: {
2712
+ readonly addresses?: readonly {
2713
2713
  readonly value: {
2714
2714
  readonly street?: string | undefined;
2715
2715
  readonly extended?: string | undefined;
@@ -2721,7 +2721,7 @@ export declare namespace ThreadOperation {
2721
2721
  };
2722
2722
  readonly label?: string | undefined;
2723
2723
  }[] | undefined;
2724
- readonly urls?: {
2724
+ readonly urls?: readonly {
2725
2725
  readonly value: string;
2726
2726
  readonly label?: string | undefined;
2727
2727
  }[] | undefined;
@@ -2729,110 +2729,110 @@ export declare namespace ThreadOperation {
2729
2729
  } & {
2730
2730
  readonly location?: readonly [number, number, (number | undefined)?] | undefined;
2731
2731
  }> | undefined;
2732
- identityDid?: string | undefined;
2733
- identityKey?: string | undefined;
2734
- email?: string | undefined;
2732
+ readonly identityDid?: string | undefined;
2733
+ readonly identityKey?: string | undefined;
2734
+ readonly email?: string | undefined;
2735
2735
  };
2736
2736
  blocks: ({
2737
- pending?: boolean | undefined;
2738
- text: string;
2739
- mimeType?: string | undefined;
2740
- disposition?: string | undefined;
2741
- _tag: "text";
2737
+ readonly pending?: boolean | undefined;
2738
+ readonly text: string;
2739
+ readonly mimeType?: string | undefined;
2740
+ readonly disposition?: string | undefined;
2741
+ readonly _tag: "text";
2742
2742
  } | {
2743
- pending?: boolean | undefined;
2744
- _tag: "reasoning";
2745
- reasoningText?: string | undefined;
2746
- redactedText?: string | undefined;
2747
- signature?: string | undefined;
2743
+ readonly pending?: boolean | undefined;
2744
+ readonly _tag: "reasoning";
2745
+ readonly reasoningText?: string | undefined;
2746
+ readonly redactedText?: string | undefined;
2747
+ readonly signature?: string | undefined;
2748
2748
  } | {
2749
- name: string;
2750
- pending?: boolean | undefined;
2751
- _tag: "toolCall";
2752
- toolCallId: string;
2753
- input: string;
2754
- providerExecuted: boolean;
2749
+ readonly name: string;
2750
+ readonly pending?: boolean | undefined;
2751
+ readonly _tag: "toolCall";
2752
+ readonly toolCallId: string;
2753
+ readonly input: string;
2754
+ readonly providerExecuted: boolean;
2755
2755
  } | {
2756
- name: string;
2757
- pending?: boolean | undefined;
2758
- _tag: "toolResult";
2759
- toolCallId: string;
2760
- providerExecuted: boolean;
2761
- result?: string | undefined;
2762
- error?: string | undefined;
2756
+ readonly name: string;
2757
+ readonly pending?: boolean | undefined;
2758
+ readonly _tag: "toolResult";
2759
+ readonly toolCallId: string;
2760
+ readonly providerExecuted: boolean;
2761
+ readonly result?: string | undefined;
2762
+ readonly error?: string | undefined;
2763
2763
  } | {
2764
- pending?: boolean | undefined;
2765
- mimeType?: string | undefined;
2766
- _tag: "summary";
2767
- message?: string | undefined;
2768
- model?: string | undefined;
2769
- usage?: {
2764
+ readonly pending?: boolean | undefined;
2765
+ readonly mimeType?: string | undefined;
2766
+ readonly _tag: "summary";
2767
+ readonly message?: string | undefined;
2768
+ readonly model?: string | undefined;
2769
+ readonly usage?: {
2770
2770
  readonly inputTokens?: number | undefined;
2771
2771
  readonly outputTokens?: number | undefined;
2772
2772
  readonly totalTokens?: number | undefined;
2773
2773
  } | undefined;
2774
- toolCalls?: number | undefined;
2775
- errors?: number | undefined;
2776
- duration?: number | undefined;
2774
+ readonly toolCalls?: number | undefined;
2775
+ readonly errors?: number | undefined;
2776
+ readonly duration?: number | undefined;
2777
2777
  } | {
2778
- source?: {
2779
- type: "base64";
2780
- mediaType: string;
2781
- data: string;
2778
+ readonly source?: {
2779
+ readonly type: "base64";
2780
+ readonly mediaType: string;
2781
+ readonly data: string;
2782
2782
  } | {
2783
- type: "http";
2784
- url: string;
2783
+ readonly type: "http";
2784
+ readonly url: string;
2785
2785
  } | undefined;
2786
- id?: string | undefined;
2787
- pending?: boolean | undefined;
2788
- _tag: "image";
2786
+ readonly id?: string | undefined;
2787
+ readonly pending?: boolean | undefined;
2788
+ readonly _tag: "image";
2789
2789
  } | {
2790
- name?: string | undefined;
2791
- pending?: boolean | undefined;
2792
- _tag: "file";
2793
- mediaType?: string | undefined;
2794
- url: string;
2790
+ readonly name?: string | undefined;
2791
+ readonly pending?: boolean | undefined;
2792
+ readonly _tag: "file";
2793
+ readonly mediaType?: string | undefined;
2794
+ readonly url: string;
2795
2795
  } | {
2796
- pending?: boolean | undefined;
2797
- _tag: "reference";
2798
- reference: import("@dxos/echo/internal").Ref<any>;
2796
+ readonly pending?: boolean | undefined;
2797
+ readonly _tag: "reference";
2798
+ readonly reference: import("@dxos/echo/internal").Ref<any>;
2799
2799
  } | {
2800
- pending?: boolean | undefined;
2801
- text: string;
2802
- _tag: "transcript";
2803
- started: string;
2800
+ readonly pending?: boolean | undefined;
2801
+ readonly text: string;
2802
+ readonly _tag: "transcript";
2803
+ readonly started: string;
2804
2804
  } | {
2805
- pending?: boolean | undefined;
2806
- _tag: "status";
2807
- statusText: string;
2805
+ readonly pending?: boolean | undefined;
2806
+ readonly _tag: "status";
2807
+ readonly statusText: string;
2808
2808
  } | {
2809
- pending?: boolean | undefined;
2810
- text: string;
2811
- _tag: "suggestion";
2809
+ readonly pending?: boolean | undefined;
2810
+ readonly text: string;
2811
+ readonly _tag: "suggestion";
2812
2812
  } | {
2813
- pending?: boolean | undefined;
2814
- _tag: "select";
2815
- options: string[];
2813
+ readonly pending?: boolean | undefined;
2814
+ readonly _tag: "select";
2815
+ readonly options: string[];
2816
2816
  } | {
2817
- version: unknown;
2818
- pending?: boolean | undefined;
2819
- _tag: "anchor";
2820
- objectId: string;
2817
+ readonly version: unknown;
2818
+ readonly pending?: boolean | undefined;
2819
+ readonly _tag: "anchor";
2820
+ readonly objectId: string;
2821
2821
  } | {
2822
- pending?: boolean | undefined;
2823
- text: string;
2824
- _tag: "proposal";
2822
+ readonly pending?: boolean | undefined;
2823
+ readonly text: string;
2824
+ readonly _tag: "proposal";
2825
2825
  } | {
2826
- pending?: boolean | undefined;
2827
- _tag: "toolkit";
2826
+ readonly pending?: boolean | undefined;
2827
+ readonly _tag: "toolkit";
2828
2828
  } | {
2829
- pending?: boolean | undefined;
2830
- disposition?: string | undefined;
2831
- _tag: "json";
2832
- data: string;
2829
+ readonly pending?: boolean | undefined;
2830
+ readonly disposition?: string | undefined;
2831
+ readonly _tag: "json";
2832
+ readonly data: string;
2833
2833
  })[];
2834
2834
  properties?: {
2835
- [x: string]: any;
2835
+ readonly [x: string]: any;
2836
2836
  } | undefined | undefined;
2837
2837
  } | undefined;
2838
2838
  readonly messageIndex?: number | undefined;
@@ -2855,14 +2855,14 @@ export declare namespace ThreadOperation {
2855
2855
  thread: Type.Obj<{
2856
2856
  readonly name?: string | undefined;
2857
2857
  readonly status?: "active" | "staged" | "resolved" | undefined;
2858
- readonly messages: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
2858
+ readonly messages: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
2859
2859
  readonly id: string;
2860
2860
  readonly parentMessage?: string | undefined;
2861
2861
  readonly created: string;
2862
2862
  readonly sender: {
2863
- name?: string | undefined;
2864
- role?: "user" | "assistant" | "tool" | undefined;
2865
- contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
2863
+ readonly name?: string | undefined;
2864
+ readonly role?: "user" | "assistant" | "tool" | undefined;
2865
+ readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
2866
2866
  readonly image?: string | undefined;
2867
2867
  readonly fullName?: string | undefined;
2868
2868
  readonly preferredName?: string | undefined;
@@ -2879,24 +2879,24 @@ export declare namespace ThreadOperation {
2879
2879
  readonly jobTitle?: string | undefined;
2880
2880
  readonly department?: string | undefined;
2881
2881
  readonly notes?: string | undefined;
2882
- readonly emails?: {
2882
+ readonly emails?: readonly {
2883
2883
  readonly value: string;
2884
2884
  readonly label?: string | undefined;
2885
2885
  }[] | undefined;
2886
- readonly identities?: {
2886
+ readonly identities?: readonly {
2887
2887
  readonly value: string;
2888
2888
  readonly label?: string | undefined;
2889
2889
  }[] | undefined;
2890
- readonly phoneNumbers?: {
2890
+ readonly phoneNumbers?: readonly {
2891
2891
  readonly value: string;
2892
2892
  readonly label?: string | undefined;
2893
2893
  }[] | undefined;
2894
- readonly fields?: {
2894
+ readonly fields?: readonly {
2895
2895
  readonly value: string;
2896
2896
  readonly label: string;
2897
2897
  readonly category?: string | undefined;
2898
2898
  }[] | undefined;
2899
- readonly addresses?: {
2899
+ readonly addresses?: readonly {
2900
2900
  readonly value: {
2901
2901
  readonly street?: string | undefined;
2902
2902
  readonly extended?: string | undefined;
@@ -2908,7 +2908,7 @@ export declare namespace ThreadOperation {
2908
2908
  };
2909
2909
  readonly label?: string | undefined;
2910
2910
  }[] | undefined;
2911
- readonly urls?: {
2911
+ readonly urls?: readonly {
2912
2912
  readonly value: string;
2913
2913
  readonly label?: string | undefined;
2914
2914
  }[] | undefined;
@@ -2916,110 +2916,110 @@ export declare namespace ThreadOperation {
2916
2916
  } & {
2917
2917
  readonly location?: readonly [number, number, (number | undefined)?] | undefined;
2918
2918
  }> | undefined;
2919
- identityDid?: string | undefined;
2920
- identityKey?: string | undefined;
2921
- email?: string | undefined;
2919
+ readonly identityDid?: string | undefined;
2920
+ readonly identityKey?: string | undefined;
2921
+ readonly email?: string | undefined;
2922
2922
  };
2923
- readonly blocks: ({
2924
- pending?: boolean | undefined;
2925
- text: string;
2926
- mimeType?: string | undefined;
2927
- disposition?: string | undefined;
2928
- _tag: "text";
2929
- } | {
2930
- pending?: boolean | undefined;
2931
- _tag: "reasoning";
2932
- reasoningText?: string | undefined;
2933
- redactedText?: string | undefined;
2934
- signature?: string | undefined;
2935
- } | {
2936
- name: string;
2937
- pending?: boolean | undefined;
2938
- _tag: "toolCall";
2939
- toolCallId: string;
2940
- input: string;
2941
- providerExecuted: boolean;
2942
- } | {
2943
- name: string;
2944
- pending?: boolean | undefined;
2945
- _tag: "toolResult";
2946
- toolCallId: string;
2947
- providerExecuted: boolean;
2948
- result?: string | undefined;
2949
- error?: string | undefined;
2950
- } | {
2951
- pending?: boolean | undefined;
2952
- mimeType?: string | undefined;
2953
- _tag: "summary";
2954
- message?: string | undefined;
2955
- model?: string | undefined;
2956
- usage?: {
2923
+ readonly blocks: readonly ({
2924
+ readonly pending?: boolean | undefined;
2925
+ readonly text: string;
2926
+ readonly mimeType?: string | undefined;
2927
+ readonly disposition?: string | undefined;
2928
+ readonly _tag: "text";
2929
+ } | {
2930
+ readonly pending?: boolean | undefined;
2931
+ readonly _tag: "reasoning";
2932
+ readonly reasoningText?: string | undefined;
2933
+ readonly redactedText?: string | undefined;
2934
+ readonly signature?: string | undefined;
2935
+ } | {
2936
+ readonly name: string;
2937
+ readonly pending?: boolean | undefined;
2938
+ readonly _tag: "toolCall";
2939
+ readonly toolCallId: string;
2940
+ readonly input: string;
2941
+ readonly providerExecuted: boolean;
2942
+ } | {
2943
+ readonly name: string;
2944
+ readonly pending?: boolean | undefined;
2945
+ readonly _tag: "toolResult";
2946
+ readonly toolCallId: string;
2947
+ readonly providerExecuted: boolean;
2948
+ readonly result?: string | undefined;
2949
+ readonly error?: string | undefined;
2950
+ } | {
2951
+ readonly pending?: boolean | undefined;
2952
+ readonly mimeType?: string | undefined;
2953
+ readonly _tag: "summary";
2954
+ readonly message?: string | undefined;
2955
+ readonly model?: string | undefined;
2956
+ readonly usage?: {
2957
2957
  readonly inputTokens?: number | undefined;
2958
2958
  readonly outputTokens?: number | undefined;
2959
2959
  readonly totalTokens?: number | undefined;
2960
2960
  } | undefined;
2961
- toolCalls?: number | undefined;
2962
- errors?: number | undefined;
2963
- duration?: number | undefined;
2961
+ readonly toolCalls?: number | undefined;
2962
+ readonly errors?: number | undefined;
2963
+ readonly duration?: number | undefined;
2964
2964
  } | {
2965
- source?: {
2966
- type: "base64";
2967
- mediaType: string;
2968
- data: string;
2965
+ readonly source?: {
2966
+ readonly type: "base64";
2967
+ readonly mediaType: string;
2968
+ readonly data: string;
2969
2969
  } | {
2970
- type: "http";
2971
- url: string;
2970
+ readonly type: "http";
2971
+ readonly url: string;
2972
2972
  } | undefined;
2973
- id?: string | undefined;
2974
- pending?: boolean | undefined;
2975
- _tag: "image";
2976
- } | {
2977
- name?: string | undefined;
2978
- pending?: boolean | undefined;
2979
- _tag: "file";
2980
- mediaType?: string | undefined;
2981
- url: string;
2982
- } | {
2983
- pending?: boolean | undefined;
2984
- _tag: "reference";
2985
- reference: import("@dxos/echo/internal").Ref<any>;
2986
- } | {
2987
- pending?: boolean | undefined;
2988
- text: string;
2989
- _tag: "transcript";
2990
- started: string;
2991
- } | {
2992
- pending?: boolean | undefined;
2993
- _tag: "status";
2994
- statusText: string;
2995
- } | {
2996
- pending?: boolean | undefined;
2997
- text: string;
2998
- _tag: "suggestion";
2999
- } | {
3000
- pending?: boolean | undefined;
3001
- _tag: "select";
3002
- options: string[];
3003
- } | {
3004
- version: unknown;
3005
- pending?: boolean | undefined;
3006
- _tag: "anchor";
3007
- objectId: string;
3008
- } | {
3009
- pending?: boolean | undefined;
3010
- text: string;
3011
- _tag: "proposal";
3012
- } | {
3013
- pending?: boolean | undefined;
3014
- _tag: "toolkit";
3015
- } | {
3016
- pending?: boolean | undefined;
3017
- disposition?: string | undefined;
3018
- _tag: "json";
3019
- data: string;
2973
+ readonly id? /** In-memory draft threads. */: string | undefined;
2974
+ readonly pending?: boolean | undefined;
2975
+ readonly _tag: "image";
2976
+ } | {
2977
+ readonly name?: string | undefined;
2978
+ readonly pending?: boolean | undefined;
2979
+ readonly _tag: "file";
2980
+ readonly mediaType?: string | undefined;
2981
+ readonly url: string;
2982
+ } | {
2983
+ readonly pending?: boolean | undefined;
2984
+ readonly _tag: "reference";
2985
+ readonly reference: import("@dxos/echo/internal").Ref<any>;
2986
+ } | {
2987
+ readonly pending?: boolean | undefined;
2988
+ readonly text: string;
2989
+ readonly _tag: "transcript";
2990
+ readonly started: string;
2991
+ } | {
2992
+ readonly pending?: boolean | undefined;
2993
+ readonly _tag: "status";
2994
+ readonly statusText: string;
2995
+ } | {
2996
+ readonly pending?: boolean | undefined;
2997
+ readonly text: string;
2998
+ readonly _tag: "suggestion";
2999
+ } | {
3000
+ readonly pending?: boolean | undefined;
3001
+ readonly _tag: "select";
3002
+ readonly options: string[];
3003
+ } | {
3004
+ readonly version: unknown;
3005
+ readonly pending?: boolean | undefined;
3006
+ readonly _tag: "anchor";
3007
+ readonly objectId: string;
3008
+ } | {
3009
+ readonly pending?: boolean | undefined;
3010
+ readonly text: string;
3011
+ readonly _tag: "proposal";
3012
+ } | {
3013
+ readonly pending?: boolean | undefined;
3014
+ readonly _tag: "toolkit";
3015
+ } | {
3016
+ readonly pending?: boolean | undefined;
3017
+ readonly disposition?: string | undefined;
3018
+ readonly _tag: "json";
3019
+ readonly data: string;
3020
3020
  })[];
3021
3021
  readonly properties?: {
3022
- [x: string]: any;
3022
+ readonly [x: string]: any;
3023
3023
  } | undefined;
3024
3024
  }>[];
3025
3025
  }, Schema.Struct.Fields>;
@@ -3053,9 +3053,9 @@ export declare namespace ThreadOperation {
3053
3053
  readonly parentMessage?: string | undefined;
3054
3054
  readonly created: string;
3055
3055
  readonly sender: {
3056
- name?: string | undefined;
3057
- role?: "user" | "assistant" | "tool" | undefined;
3058
- contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
3056
+ readonly name?: string | undefined;
3057
+ readonly role?: "user" | "assistant" | "tool" | undefined;
3058
+ readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
3059
3059
  readonly image?: string | undefined;
3060
3060
  readonly fullName?: string | undefined;
3061
3061
  readonly preferredName?: string | undefined;
@@ -3072,24 +3072,24 @@ export declare namespace ThreadOperation {
3072
3072
  readonly jobTitle?: string | undefined;
3073
3073
  readonly department?: string | undefined;
3074
3074
  readonly notes?: string | undefined;
3075
- readonly emails?: {
3075
+ readonly emails?: readonly {
3076
3076
  readonly value: string;
3077
3077
  readonly label?: string | undefined;
3078
3078
  }[] | undefined;
3079
- readonly identities?: {
3079
+ readonly identities?: readonly {
3080
3080
  readonly value: string;
3081
3081
  readonly label?: string | undefined;
3082
3082
  }[] | undefined;
3083
- readonly phoneNumbers?: {
3083
+ readonly phoneNumbers?: readonly {
3084
3084
  readonly value: string;
3085
3085
  readonly label?: string | undefined;
3086
3086
  }[] | undefined;
3087
- readonly fields?: {
3087
+ readonly fields?: readonly {
3088
3088
  readonly value: string;
3089
3089
  readonly label: string;
3090
3090
  readonly category?: string | undefined;
3091
3091
  }[] | undefined;
3092
- readonly addresses?: {
3092
+ readonly addresses?: readonly {
3093
3093
  readonly value: {
3094
3094
  readonly street?: string | undefined;
3095
3095
  readonly extended?: string | undefined;
@@ -3101,7 +3101,7 @@ export declare namespace ThreadOperation {
3101
3101
  };
3102
3102
  readonly label?: string | undefined;
3103
3103
  }[] | undefined;
3104
- readonly urls?: {
3104
+ readonly urls?: readonly {
3105
3105
  readonly value: string;
3106
3106
  readonly label?: string | undefined;
3107
3107
  }[] | undefined;
@@ -3109,110 +3109,110 @@ export declare namespace ThreadOperation {
3109
3109
  } & {
3110
3110
  readonly location?: readonly [number, number, (number | undefined)?] | undefined;
3111
3111
  }> | undefined;
3112
- identityDid?: string | undefined;
3113
- identityKey?: string | undefined;
3114
- email?: string | undefined;
3112
+ readonly identityDid?: string | undefined;
3113
+ readonly identityKey?: string | undefined;
3114
+ readonly email?: string | undefined;
3115
3115
  };
3116
- readonly blocks: ({
3117
- pending?: boolean | undefined;
3118
- text: string;
3119
- mimeType?: string | undefined;
3120
- disposition?: string | undefined;
3121
- _tag: "text";
3116
+ readonly blocks: readonly ({
3117
+ readonly pending?: boolean | undefined;
3118
+ readonly text: string;
3119
+ readonly mimeType?: string | undefined;
3120
+ readonly disposition?: string | undefined;
3121
+ readonly _tag: "text";
3122
3122
  } | {
3123
- pending?: boolean | undefined;
3124
- _tag: "reasoning";
3125
- reasoningText?: string | undefined;
3126
- redactedText?: string | undefined;
3127
- signature?: string | undefined;
3123
+ readonly pending?: boolean | undefined;
3124
+ readonly _tag: "reasoning";
3125
+ readonly reasoningText?: string | undefined;
3126
+ readonly redactedText?: string | undefined;
3127
+ readonly signature?: string | undefined;
3128
3128
  } | {
3129
- name: string;
3130
- pending?: boolean | undefined;
3131
- _tag: "toolCall";
3132
- toolCallId: string;
3133
- input: string;
3134
- providerExecuted: boolean;
3129
+ readonly name: string;
3130
+ readonly pending?: boolean | undefined;
3131
+ readonly _tag: "toolCall";
3132
+ readonly toolCallId: string;
3133
+ readonly input: string;
3134
+ readonly providerExecuted: boolean;
3135
3135
  } | {
3136
- name: string;
3137
- pending?: boolean | undefined;
3138
- _tag: "toolResult";
3139
- toolCallId: string;
3140
- providerExecuted: boolean;
3141
- result?: string | undefined;
3142
- error?: string | undefined;
3136
+ readonly name: string;
3137
+ readonly pending?: boolean | undefined;
3138
+ readonly _tag: "toolResult";
3139
+ readonly toolCallId: string;
3140
+ readonly providerExecuted: boolean;
3141
+ readonly result?: string | undefined;
3142
+ readonly error?: string | undefined;
3143
3143
  } | {
3144
- pending?: boolean | undefined;
3145
- mimeType?: string | undefined;
3146
- _tag: "summary";
3147
- message?: string | undefined;
3148
- model?: string | undefined;
3149
- usage?: {
3144
+ readonly pending?: boolean | undefined;
3145
+ readonly mimeType?: string | undefined;
3146
+ readonly _tag: "summary";
3147
+ readonly message?: string | undefined;
3148
+ readonly model?: string | undefined;
3149
+ readonly usage?: {
3150
3150
  readonly inputTokens?: number | undefined;
3151
3151
  readonly outputTokens?: number | undefined;
3152
3152
  readonly totalTokens?: number | undefined;
3153
3153
  } | undefined;
3154
- toolCalls?: number | undefined;
3155
- errors?: number | undefined;
3156
- duration?: number | undefined;
3154
+ readonly toolCalls?: number | undefined;
3155
+ readonly errors?: number | undefined;
3156
+ readonly duration?: number | undefined;
3157
3157
  } | {
3158
- source?: {
3159
- type: "base64";
3160
- mediaType: string;
3161
- data: string;
3158
+ readonly source?: {
3159
+ readonly type: "base64";
3160
+ readonly mediaType: string;
3161
+ readonly data: string;
3162
3162
  } | {
3163
- type: "http";
3164
- url: string;
3163
+ readonly type: "http";
3164
+ readonly url: string;
3165
3165
  } | undefined;
3166
- id?: string | undefined;
3167
- pending?: boolean | undefined;
3168
- _tag: "image";
3166
+ readonly id?: string | undefined;
3167
+ readonly pending?: boolean | undefined;
3168
+ readonly _tag: "image";
3169
3169
  } | {
3170
- name?: string | undefined;
3171
- pending?: boolean | undefined;
3172
- _tag: "file";
3173
- mediaType?: string | undefined;
3174
- url: string;
3170
+ readonly name?: string | undefined;
3171
+ readonly pending?: boolean | undefined;
3172
+ readonly _tag: "file";
3173
+ readonly mediaType?: string | undefined;
3174
+ readonly url: string;
3175
3175
  } | {
3176
- pending?: boolean | undefined;
3177
- _tag: "reference";
3178
- reference: import("@dxos/echo/internal").Ref<any>;
3176
+ readonly pending?: boolean | undefined;
3177
+ readonly _tag: "reference";
3178
+ readonly reference: import("@dxos/echo/internal").Ref<any>;
3179
3179
  } | {
3180
- pending?: boolean | undefined;
3181
- text: string;
3182
- _tag: "transcript";
3183
- started: string;
3180
+ readonly pending?: boolean | undefined;
3181
+ readonly text: string;
3182
+ readonly _tag: "transcript";
3183
+ readonly started: string;
3184
3184
  } | {
3185
- pending?: boolean | undefined;
3186
- _tag: "status";
3187
- statusText: string;
3185
+ readonly pending?: boolean | undefined;
3186
+ readonly _tag: "status";
3187
+ readonly statusText: string;
3188
3188
  } | {
3189
- pending?: boolean | undefined;
3190
- text: string;
3191
- _tag: "suggestion";
3189
+ readonly pending?: boolean | undefined;
3190
+ readonly text: string;
3191
+ readonly _tag: "suggestion";
3192
3192
  } | {
3193
- pending?: boolean | undefined;
3194
- _tag: "select";
3195
- options: string[];
3193
+ readonly pending?: boolean | undefined;
3194
+ readonly _tag: "select";
3195
+ readonly options: string[];
3196
3196
  } | {
3197
- version: unknown;
3198
- pending?: boolean | undefined;
3199
- _tag: "anchor";
3200
- objectId: string;
3197
+ readonly version: unknown;
3198
+ readonly pending?: boolean | undefined;
3199
+ readonly _tag: "anchor";
3200
+ readonly objectId: string;
3201
3201
  } | {
3202
- pending?: boolean | undefined;
3203
- text: string;
3204
- _tag: "proposal";
3202
+ readonly pending?: boolean | undefined;
3203
+ readonly text: string;
3204
+ readonly _tag: "proposal";
3205
3205
  } | {
3206
- pending?: boolean | undefined;
3207
- _tag: "toolkit";
3206
+ readonly pending?: boolean | undefined;
3207
+ readonly _tag: "toolkit";
3208
3208
  } | {
3209
- pending?: boolean | undefined;
3210
- disposition?: string | undefined;
3211
- _tag: "json";
3212
- data: string;
3209
+ readonly pending?: boolean | undefined;
3210
+ readonly disposition?: string | undefined;
3211
+ readonly _tag: "json";
3212
+ readonly data: string;
3213
3213
  })[];
3214
3214
  readonly properties?: {
3215
- [x: string]: any;
3215
+ readonly [x: string]: any;
3216
3216
  } | undefined;
3217
3217
  }, Schema.Struct.Fields>;
3218
3218
  messageIndex: Schema.SchemaClass<number, number, never>;