@opencode/schema 2.0.32 → 2.1.0

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 (37) hide show
  1. package/dist/config/experimental.d.ts +1 -0
  2. package/dist/config/experimental.js +3 -0
  3. package/dist/config/provider.d.ts +56 -52
  4. package/dist/credential-legacy.d.ts +54 -0
  5. package/dist/credential-legacy.js +19 -0
  6. package/dist/credential.d.ts +0 -4
  7. package/dist/credential.js +0 -2
  8. package/dist/event-manifest.d.ts +1111 -1149
  9. package/dist/event-manifest.js +1 -2
  10. package/dist/form.d.ts +213 -213
  11. package/dist/instruction-entry.d.ts +1 -1
  12. package/dist/integration.d.ts +257 -257
  13. package/dist/model-compatibility.d.ts +3 -0
  14. package/dist/model-compatibility.js +2 -0
  15. package/dist/model.d.ts +76 -74
  16. package/dist/persistent-pty.d.ts +88 -88
  17. package/dist/prompt-input.d.ts +3 -3
  18. package/dist/prompt.d.ts +28 -28
  19. package/dist/provider.d.ts +2 -0
  20. package/dist/session-event.d.ts +5729 -5723
  21. package/dist/session-event.js +20 -13
  22. package/dist/session-inbox.d.ts +20 -20
  23. package/dist/session-legacy.d.ts +7 -0
  24. package/dist/session-legacy.js +118 -0
  25. package/dist/session-message.d.ts +125 -268
  26. package/dist/session-message.js +13 -12
  27. package/dist/session-revert.d.ts +407 -183
  28. package/dist/session-transfer.d.ts +33 -83
  29. package/dist/session.d.ts +109 -1
  30. package/dist/session.js +64 -2
  31. package/dist/v1/permission.d.ts +8 -8
  32. package/dist/v1/session.d.ts +696 -696
  33. package/package.json +4 -4
  34. package/dist/session-compaction-event.d.ts +0 -87
  35. package/dist/session-compaction-event.js +0 -10
  36. package/dist/session-provider-context.d.ts +0 -54
  37. package/dist/session-provider-context.js +0 -17
@@ -134,8 +134,6 @@ export declare class OutputFormatJsonSchema extends OutputFormatJsonSchema_base
134
134
  export declare const Format: Schema.Union<readonly [typeof OutputFormatText, typeof OutputFormatJsonSchema]>;
135
135
  export type OutputFormat = Schema.Schema.Type<typeof Format>;
136
136
  export declare const SnapshotPart: Schema.Struct<{
137
- readonly type: Schema.Literal<"snapshot">;
138
- readonly snapshot: Schema.String;
139
137
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
140
138
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
141
139
  };
@@ -146,12 +144,11 @@ export declare const SnapshotPart: Schema.Struct<{
146
144
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
147
145
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
148
146
  };
147
+ readonly type: Schema.Literal<"snapshot">;
148
+ readonly snapshot: Schema.String;
149
149
  }>;
150
150
  export type SnapshotPart = Types.DeepMutable<Schema.Schema.Type<typeof SnapshotPart>>;
151
151
  export declare const PatchPart: Schema.Struct<{
152
- readonly type: Schema.Literal<"patch">;
153
- readonly hash: Schema.String;
154
- readonly files: Schema.$Array<Schema.String>;
155
152
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
156
153
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
157
154
  };
@@ -162,9 +159,22 @@ export declare const PatchPart: Schema.Struct<{
162
159
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
163
160
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
164
161
  };
162
+ readonly type: Schema.Literal<"patch">;
163
+ readonly hash: Schema.String;
164
+ readonly files: Schema.$Array<Schema.String>;
165
165
  }>;
166
166
  export type PatchPart = Types.DeepMutable<Schema.Schema.Type<typeof PatchPart>>;
167
167
  export declare const TextPart: Schema.Struct<{
168
+ readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
169
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
170
+ };
171
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
172
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
173
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
174
+ };
175
+ readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
176
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
177
+ };
168
178
  readonly type: Schema.Literal<"text">;
169
179
  readonly text: Schema.String;
170
180
  readonly synthetic: Schema.optional<Schema.Boolean>;
@@ -174,6 +184,9 @@ export declare const TextPart: Schema.Struct<{
174
184
  readonly end: Schema.optional<Schema.Int>;
175
185
  }>>;
176
186
  readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Any>>;
187
+ }>;
188
+ export type TextPart = Types.DeepMutable<Schema.Schema.Type<typeof TextPart>>;
189
+ export declare const ReasoningPart: Schema.Struct<{
177
190
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
178
191
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
179
192
  };
@@ -184,9 +197,6 @@ export declare const TextPart: Schema.Struct<{
184
197
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
185
198
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
186
199
  };
187
- }>;
188
- export type TextPart = Types.DeepMutable<Schema.Schema.Type<typeof TextPart>>;
189
- export declare const ReasoningPart: Schema.Struct<{
190
200
  readonly type: Schema.Literal<"reasoning">;
191
201
  readonly text: Schema.String;
192
202
  readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Any>>;
@@ -194,16 +204,6 @@ export declare const ReasoningPart: Schema.Struct<{
194
204
  readonly start: Schema.Int;
195
205
  readonly end: Schema.optional<Schema.Int>;
196
206
  }>;
197
- readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
198
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
199
- };
200
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
201
- create: () => string & import("effect/Brand").Brand<"SessionID">;
202
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
203
- };
204
- readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
205
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
206
- };
207
207
  }>;
208
208
  export type ReasoningPart = Types.DeepMutable<Schema.Schema.Type<typeof ReasoningPart>>;
209
209
  export declare const Range: Schema.Struct<{
@@ -218,15 +218,20 @@ export declare const Range: Schema.Struct<{
218
218
  }>;
219
219
  export type Range = typeof Range.Type;
220
220
  export declare const FileSource: Schema.Struct<{
221
- readonly type: Schema.Literal<"file">;
222
- readonly path: Schema.String;
223
221
  readonly text: Schema.Struct<{
224
222
  readonly value: Schema.String;
225
223
  readonly start: Schema.Finite;
226
224
  readonly end: Schema.Finite;
227
225
  }>;
226
+ readonly type: Schema.Literal<"file">;
227
+ readonly path: Schema.String;
228
228
  }>;
229
229
  export declare const SymbolSource: Schema.Struct<{
230
+ readonly text: Schema.Struct<{
231
+ readonly value: Schema.String;
232
+ readonly start: Schema.Finite;
233
+ readonly end: Schema.Finite;
234
+ }>;
230
235
  readonly type: Schema.Literal<"symbol">;
231
236
  readonly path: Schema.String;
232
237
  readonly range: Schema.Struct<{
@@ -241,31 +246,31 @@ export declare const SymbolSource: Schema.Struct<{
241
246
  }>;
242
247
  readonly name: Schema.String;
243
248
  readonly kind: Schema.Int;
249
+ }>;
250
+ export declare const ResourceSource: Schema.Struct<{
244
251
  readonly text: Schema.Struct<{
245
252
  readonly value: Schema.String;
246
253
  readonly start: Schema.Finite;
247
254
  readonly end: Schema.Finite;
248
255
  }>;
249
- }>;
250
- export declare const ResourceSource: Schema.Struct<{
251
256
  readonly type: Schema.Literal<"resource">;
252
257
  readonly clientName: Schema.String;
253
258
  readonly uri: Schema.String;
259
+ }>;
260
+ export declare const FilePartSource: Schema.Union<readonly [Schema.Struct<{
254
261
  readonly text: Schema.Struct<{
255
262
  readonly value: Schema.String;
256
263
  readonly start: Schema.Finite;
257
264
  readonly end: Schema.Finite;
258
265
  }>;
259
- }>;
260
- export declare const FilePartSource: Schema.Union<readonly [Schema.Struct<{
261
266
  readonly type: Schema.Literal<"file">;
262
267
  readonly path: Schema.String;
268
+ }>, Schema.Struct<{
263
269
  readonly text: Schema.Struct<{
264
270
  readonly value: Schema.String;
265
271
  readonly start: Schema.Finite;
266
272
  readonly end: Schema.Finite;
267
273
  }>;
268
- }>, Schema.Struct<{
269
274
  readonly type: Schema.Literal<"symbol">;
270
275
  readonly path: Schema.String;
271
276
  readonly range: Schema.Struct<{
@@ -280,35 +285,45 @@ export declare const FilePartSource: Schema.Union<readonly [Schema.Struct<{
280
285
  }>;
281
286
  readonly name: Schema.String;
282
287
  readonly kind: Schema.Int;
288
+ }>, Schema.Struct<{
283
289
  readonly text: Schema.Struct<{
284
290
  readonly value: Schema.String;
285
291
  readonly start: Schema.Finite;
286
292
  readonly end: Schema.Finite;
287
293
  }>;
288
- }>, Schema.Struct<{
289
294
  readonly type: Schema.Literal<"resource">;
290
295
  readonly clientName: Schema.String;
291
296
  readonly uri: Schema.String;
292
- readonly text: Schema.Struct<{
293
- readonly value: Schema.String;
294
- readonly start: Schema.Finite;
295
- readonly end: Schema.Finite;
296
- }>;
297
297
  }>]>;
298
298
  export declare const FilePart: Schema.Struct<{
299
+ readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
300
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
301
+ };
302
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
303
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
304
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
305
+ };
306
+ readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
307
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
308
+ };
299
309
  readonly type: Schema.Literal<"file">;
300
310
  readonly mime: Schema.String;
301
311
  readonly filename: Schema.optional<Schema.String>;
302
312
  readonly url: Schema.String;
303
313
  readonly source: Schema.optional<Schema.Union<readonly [Schema.Struct<{
314
+ readonly text: Schema.Struct<{
315
+ readonly value: Schema.String;
316
+ readonly start: Schema.Finite;
317
+ readonly end: Schema.Finite;
318
+ }>;
304
319
  readonly type: Schema.Literal<"file">;
305
320
  readonly path: Schema.String;
321
+ }>, Schema.Struct<{
306
322
  readonly text: Schema.Struct<{
307
323
  readonly value: Schema.String;
308
324
  readonly start: Schema.Finite;
309
325
  readonly end: Schema.Finite;
310
326
  }>;
311
- }>, Schema.Struct<{
312
327
  readonly type: Schema.Literal<"symbol">;
313
328
  readonly path: Schema.String;
314
329
  readonly range: Schema.Struct<{
@@ -323,21 +338,19 @@ export declare const FilePart: Schema.Struct<{
323
338
  }>;
324
339
  readonly name: Schema.String;
325
340
  readonly kind: Schema.Int;
341
+ }>, Schema.Struct<{
326
342
  readonly text: Schema.Struct<{
327
343
  readonly value: Schema.String;
328
344
  readonly start: Schema.Finite;
329
345
  readonly end: Schema.Finite;
330
346
  }>;
331
- }>, Schema.Struct<{
332
347
  readonly type: Schema.Literal<"resource">;
333
348
  readonly clientName: Schema.String;
334
349
  readonly uri: Schema.String;
335
- readonly text: Schema.Struct<{
336
- readonly value: Schema.String;
337
- readonly start: Schema.Finite;
338
- readonly end: Schema.Finite;
339
- }>;
340
350
  }>]>>;
351
+ }>;
352
+ export type FilePart = Types.DeepMutable<Schema.Schema.Type<typeof FilePart>>;
353
+ export declare const AgentPart: Schema.Struct<{
341
354
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
342
355
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
343
356
  };
@@ -348,9 +361,6 @@ export declare const FilePart: Schema.Struct<{
348
361
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
349
362
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
350
363
  };
351
- }>;
352
- export type FilePart = Types.DeepMutable<Schema.Schema.Type<typeof FilePart>>;
353
- export declare const AgentPart: Schema.Struct<{
354
364
  readonly type: Schema.Literal<"agent">;
355
365
  readonly name: Schema.String;
356
366
  readonly source: Schema.optional<Schema.Struct<{
@@ -358,6 +368,9 @@ export declare const AgentPart: Schema.Struct<{
358
368
  readonly start: Schema.Int;
359
369
  readonly end: Schema.Int;
360
370
  }>>;
371
+ }>;
372
+ export type AgentPart = Types.DeepMutable<Schema.Schema.Type<typeof AgentPart>>;
373
+ export declare const CompactionPart: Schema.Struct<{
361
374
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
362
375
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
363
376
  };
@@ -368,15 +381,15 @@ export declare const AgentPart: Schema.Struct<{
368
381
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
369
382
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
370
383
  };
371
- }>;
372
- export type AgentPart = Types.DeepMutable<Schema.Schema.Type<typeof AgentPart>>;
373
- export declare const CompactionPart: Schema.Struct<{
374
384
  readonly type: Schema.Literal<"compaction">;
375
385
  readonly auto: Schema.Boolean;
376
386
  readonly overflow: Schema.optional<Schema.Boolean>;
377
387
  readonly tail_start_id: Schema.optional<Schema.brand<Schema.String, "SessionV1.MessageID"> & {
378
388
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
379
389
  }>;
390
+ }>;
391
+ export type CompactionPart = Types.DeepMutable<Schema.Schema.Type<typeof CompactionPart>>;
392
+ export declare const SubtaskPart: Schema.Struct<{
380
393
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
381
394
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
382
395
  };
@@ -387,9 +400,6 @@ export declare const CompactionPart: Schema.Struct<{
387
400
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
388
401
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
389
402
  };
390
- }>;
391
- export type CompactionPart = Types.DeepMutable<Schema.Schema.Type<typeof CompactionPart>>;
392
- export declare const SubtaskPart: Schema.Struct<{
393
403
  readonly type: Schema.Literal<"subtask">;
394
404
  readonly prompt: Schema.String;
395
405
  readonly description: Schema.String;
@@ -411,6 +421,9 @@ export declare const SubtaskPart: Schema.Struct<{
411
421
  readonly modelID: Schema.brand<Schema.String, "Model.ID">;
412
422
  }>>;
413
423
  readonly command: Schema.optional<Schema.String>;
424
+ }>;
425
+ export type SubtaskPart = Types.DeepMutable<Schema.Schema.Type<typeof SubtaskPart>>;
426
+ export declare const RetryPart: Schema.Struct<{
414
427
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
415
428
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
416
429
  };
@@ -421,9 +434,6 @@ export declare const SubtaskPart: Schema.Struct<{
421
434
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
422
435
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
423
436
  };
424
- }>;
425
- export type SubtaskPart = Types.DeepMutable<Schema.Schema.Type<typeof SubtaskPart>>;
426
- export declare const RetryPart: Schema.Struct<{
427
437
  readonly type: Schema.Literal<"retry">;
428
438
  readonly attempt: Schema.Int;
429
439
  readonly error: Schema.Struct<{
@@ -440,6 +450,11 @@ export declare const RetryPart: Schema.Struct<{
440
450
  readonly time: Schema.Struct<{
441
451
  readonly created: Schema.Int;
442
452
  }>;
453
+ }>;
454
+ export type RetryPart = Omit<Types.DeepMutable<Schema.Schema.Type<typeof RetryPart>>, "error"> & {
455
+ error: APIError;
456
+ };
457
+ export declare const StepStartPart: Schema.Struct<{
443
458
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
444
459
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
445
460
  };
@@ -450,13 +465,11 @@ export declare const RetryPart: Schema.Struct<{
450
465
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
451
466
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
452
467
  };
453
- }>;
454
- export type RetryPart = Omit<Types.DeepMutable<Schema.Schema.Type<typeof RetryPart>>, "error"> & {
455
- error: APIError;
456
- };
457
- export declare const StepStartPart: Schema.Struct<{
458
468
  readonly type: Schema.Literal<"step-start">;
459
469
  readonly snapshot: Schema.optional<Schema.String>;
470
+ }>;
471
+ export type StepStartPart = Types.DeepMutable<Schema.Schema.Type<typeof StepStartPart>>;
472
+ export declare const StepFinishPart: Schema.Struct<{
460
473
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
461
474
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
462
475
  };
@@ -467,9 +480,6 @@ export declare const StepStartPart: Schema.Struct<{
467
480
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
468
481
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
469
482
  };
470
- }>;
471
- export type StepStartPart = Types.DeepMutable<Schema.Schema.Type<typeof StepStartPart>>;
472
- export declare const StepFinishPart: Schema.Struct<{
473
483
  readonly type: Schema.Literal<"step-finish">;
474
484
  readonly reason: Schema.String;
475
485
  readonly snapshot: Schema.optional<Schema.String>;
@@ -484,16 +494,6 @@ export declare const StepFinishPart: Schema.Struct<{
484
494
  readonly write: Schema.Finite;
485
495
  }>;
486
496
  }>;
487
- readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
488
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
489
- };
490
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
491
- create: () => string & import("effect/Brand").Brand<"SessionID">;
492
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
493
- };
494
- readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
495
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
496
- };
497
497
  }>;
498
498
  export type StepFinishPart = Types.DeepMutable<Schema.Schema.Type<typeof StepFinishPart>>;
499
499
  export declare const ToolStatePending: Schema.Struct<{
@@ -524,19 +524,34 @@ export declare const ToolStateCompleted: Schema.Struct<{
524
524
  readonly compacted: Schema.optional<Schema.Int>;
525
525
  }>;
526
526
  readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
527
+ readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
528
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
529
+ };
530
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
531
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
532
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
533
+ };
534
+ readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
535
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
536
+ };
527
537
  readonly type: Schema.Literal<"file">;
528
538
  readonly mime: Schema.String;
529
539
  readonly filename: Schema.optional<Schema.String>;
530
540
  readonly url: Schema.String;
531
541
  readonly source: Schema.optional<Schema.Union<readonly [Schema.Struct<{
542
+ readonly text: Schema.Struct<{
543
+ readonly value: Schema.String;
544
+ readonly start: Schema.Finite;
545
+ readonly end: Schema.Finite;
546
+ }>;
532
547
  readonly type: Schema.Literal<"file">;
533
548
  readonly path: Schema.String;
549
+ }>, Schema.Struct<{
534
550
  readonly text: Schema.Struct<{
535
551
  readonly value: Schema.String;
536
552
  readonly start: Schema.Finite;
537
553
  readonly end: Schema.Finite;
538
554
  }>;
539
- }>, Schema.Struct<{
540
555
  readonly type: Schema.Literal<"symbol">;
541
556
  readonly path: Schema.String;
542
557
  readonly range: Schema.Struct<{
@@ -551,31 +566,16 @@ export declare const ToolStateCompleted: Schema.Struct<{
551
566
  }>;
552
567
  readonly name: Schema.String;
553
568
  readonly kind: Schema.Int;
569
+ }>, Schema.Struct<{
554
570
  readonly text: Schema.Struct<{
555
571
  readonly value: Schema.String;
556
572
  readonly start: Schema.Finite;
557
573
  readonly end: Schema.Finite;
558
574
  }>;
559
- }>, Schema.Struct<{
560
575
  readonly type: Schema.Literal<"resource">;
561
576
  readonly clientName: Schema.String;
562
577
  readonly uri: Schema.String;
563
- readonly text: Schema.Struct<{
564
- readonly value: Schema.String;
565
- readonly start: Schema.Finite;
566
- readonly end: Schema.Finite;
567
- }>;
568
578
  }>]>>;
569
- readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
570
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
571
- };
572
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
573
- create: () => string & import("effect/Brand").Brand<"SessionID">;
574
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
575
- };
576
- readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
577
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
578
- };
579
579
  }>>>;
580
580
  }>;
581
581
  export type ToolStateCompleted = Types.DeepMutable<Schema.Schema.Type<typeof ToolStateCompleted>>;
@@ -614,19 +614,34 @@ export declare const ToolState: Schema.Union<readonly [Schema.Struct<{
614
614
  readonly compacted: Schema.optional<Schema.Int>;
615
615
  }>;
616
616
  readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
617
+ readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
618
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
619
+ };
620
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
621
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
622
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
623
+ };
624
+ readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
625
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
626
+ };
617
627
  readonly type: Schema.Literal<"file">;
618
628
  readonly mime: Schema.String;
619
629
  readonly filename: Schema.optional<Schema.String>;
620
630
  readonly url: Schema.String;
621
631
  readonly source: Schema.optional<Schema.Union<readonly [Schema.Struct<{
632
+ readonly text: Schema.Struct<{
633
+ readonly value: Schema.String;
634
+ readonly start: Schema.Finite;
635
+ readonly end: Schema.Finite;
636
+ }>;
622
637
  readonly type: Schema.Literal<"file">;
623
638
  readonly path: Schema.String;
639
+ }>, Schema.Struct<{
624
640
  readonly text: Schema.Struct<{
625
641
  readonly value: Schema.String;
626
642
  readonly start: Schema.Finite;
627
643
  readonly end: Schema.Finite;
628
644
  }>;
629
- }>, Schema.Struct<{
630
645
  readonly type: Schema.Literal<"symbol">;
631
646
  readonly path: Schema.String;
632
647
  readonly range: Schema.Struct<{
@@ -641,31 +656,16 @@ export declare const ToolState: Schema.Union<readonly [Schema.Struct<{
641
656
  }>;
642
657
  readonly name: Schema.String;
643
658
  readonly kind: Schema.Int;
659
+ }>, Schema.Struct<{
644
660
  readonly text: Schema.Struct<{
645
661
  readonly value: Schema.String;
646
662
  readonly start: Schema.Finite;
647
663
  readonly end: Schema.Finite;
648
664
  }>;
649
- }>, Schema.Struct<{
650
665
  readonly type: Schema.Literal<"resource">;
651
666
  readonly clientName: Schema.String;
652
667
  readonly uri: Schema.String;
653
- readonly text: Schema.Struct<{
654
- readonly value: Schema.String;
655
- readonly start: Schema.Finite;
656
- readonly end: Schema.Finite;
657
- }>;
658
668
  }>]>>;
659
- readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
660
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
661
- };
662
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
663
- create: () => string & import("effect/Brand").Brand<"SessionID">;
664
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
665
- };
666
- readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
667
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
668
- };
669
669
  }>>>;
670
670
  }>, Schema.Struct<{
671
671
  readonly status: Schema.Literal<"error">;
@@ -679,6 +679,16 @@ export declare const ToolState: Schema.Union<readonly [Schema.Struct<{
679
679
  }>]>;
680
680
  export type ToolState = ToolStatePending | ToolStateRunning | ToolStateCompleted | ToolStateError;
681
681
  export declare const ToolPart: Schema.Struct<{
682
+ readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
683
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
684
+ };
685
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
686
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
687
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
688
+ };
689
+ readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
690
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
691
+ };
682
692
  readonly type: Schema.Literal<"tool">;
683
693
  readonly callID: Schema.String;
684
694
  readonly tool: Schema.String;
@@ -706,19 +716,34 @@ export declare const ToolPart: Schema.Struct<{
706
716
  readonly compacted: Schema.optional<Schema.Int>;
707
717
  }>;
708
718
  readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
719
+ readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
720
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
721
+ };
722
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
723
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
724
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
725
+ };
726
+ readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
727
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
728
+ };
709
729
  readonly type: Schema.Literal<"file">;
710
730
  readonly mime: Schema.String;
711
731
  readonly filename: Schema.optional<Schema.String>;
712
732
  readonly url: Schema.String;
713
733
  readonly source: Schema.optional<Schema.Union<readonly [Schema.Struct<{
734
+ readonly text: Schema.Struct<{
735
+ readonly value: Schema.String;
736
+ readonly start: Schema.Finite;
737
+ readonly end: Schema.Finite;
738
+ }>;
714
739
  readonly type: Schema.Literal<"file">;
715
740
  readonly path: Schema.String;
741
+ }>, Schema.Struct<{
716
742
  readonly text: Schema.Struct<{
717
743
  readonly value: Schema.String;
718
744
  readonly start: Schema.Finite;
719
745
  readonly end: Schema.Finite;
720
746
  }>;
721
- }>, Schema.Struct<{
722
747
  readonly type: Schema.Literal<"symbol">;
723
748
  readonly path: Schema.String;
724
749
  readonly range: Schema.Struct<{
@@ -733,31 +758,16 @@ export declare const ToolPart: Schema.Struct<{
733
758
  }>;
734
759
  readonly name: Schema.String;
735
760
  readonly kind: Schema.Int;
761
+ }>, Schema.Struct<{
736
762
  readonly text: Schema.Struct<{
737
763
  readonly value: Schema.String;
738
764
  readonly start: Schema.Finite;
739
765
  readonly end: Schema.Finite;
740
766
  }>;
741
- }>, Schema.Struct<{
742
767
  readonly type: Schema.Literal<"resource">;
743
768
  readonly clientName: Schema.String;
744
769
  readonly uri: Schema.String;
745
- readonly text: Schema.Struct<{
746
- readonly value: Schema.String;
747
- readonly start: Schema.Finite;
748
- readonly end: Schema.Finite;
749
- }>;
750
770
  }>]>>;
751
- readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
752
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
753
- };
754
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
755
- create: () => string & import("effect/Brand").Brand<"SessionID">;
756
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
757
- };
758
- readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
759
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
760
- };
761
771
  }>>>;
762
772
  }>, Schema.Struct<{
763
773
  readonly status: Schema.Literal<"error">;
@@ -770,21 +780,18 @@ export declare const ToolPart: Schema.Struct<{
770
780
  }>;
771
781
  }>]>;
772
782
  readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Any>>;
773
- readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
774
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
775
- };
776
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
777
- create: () => string & import("effect/Brand").Brand<"SessionID">;
778
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
779
- };
780
- readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
781
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
782
- };
783
783
  }>;
784
784
  export type ToolPart = Omit<Types.DeepMutable<Schema.Schema.Type<typeof ToolPart>>, "state"> & {
785
785
  state: ToolState;
786
786
  };
787
787
  export declare const User: Schema.Struct<{
788
+ readonly id: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
789
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
790
+ };
791
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
792
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
793
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
794
+ };
788
795
  readonly role: Schema.Literal<"user">;
789
796
  readonly time: Schema.Struct<{
790
797
  readonly created: Schema.Finite;
@@ -821,16 +828,19 @@ export declare const User: Schema.Struct<{
821
828
  }>;
822
829
  readonly system: Schema.optional<Schema.String>;
823
830
  readonly tools: Schema.optional<Schema.$Record<Schema.String, Schema.Boolean>>;
824
- readonly id: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
825
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
831
+ }>;
832
+ export type User = Types.DeepMutable<Schema.Schema.Type<typeof User>>;
833
+ export declare const Part: Schema.Union<readonly [Schema.Struct<{
834
+ readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
835
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
826
836
  };
827
837
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
828
838
  create: () => string & import("effect/Brand").Brand<"SessionID">;
829
839
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
830
840
  };
831
- }>;
832
- export type User = Types.DeepMutable<Schema.Schema.Type<typeof User>>;
833
- export declare const Part: Schema.Union<readonly [Schema.Struct<{
841
+ readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
842
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
843
+ };
834
844
  readonly type: Schema.Literal<"text">;
835
845
  readonly text: Schema.String;
836
846
  readonly synthetic: Schema.optional<Schema.Boolean>;
@@ -840,6 +850,7 @@ export declare const Part: Schema.Union<readonly [Schema.Struct<{
840
850
  readonly end: Schema.optional<Schema.Int>;
841
851
  }>>;
842
852
  readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Any>>;
853
+ }>, Schema.Struct<{
843
854
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
844
855
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
845
856
  };
@@ -850,7 +861,6 @@ export declare const Part: Schema.Union<readonly [Schema.Struct<{
850
861
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
851
862
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
852
863
  };
853
- }>, Schema.Struct<{
854
864
  readonly type: Schema.Literal<"subtask">;
855
865
  readonly prompt: Schema.String;
856
866
  readonly description: Schema.String;
@@ -872,6 +882,7 @@ export declare const Part: Schema.Union<readonly [Schema.Struct<{
872
882
  readonly modelID: Schema.brand<Schema.String, "Model.ID">;
873
883
  }>>;
874
884
  readonly command: Schema.optional<Schema.String>;
885
+ }>, Schema.Struct<{
875
886
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
876
887
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
877
888
  };
@@ -882,7 +893,6 @@ export declare const Part: Schema.Union<readonly [Schema.Struct<{
882
893
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
883
894
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
884
895
  };
885
- }>, Schema.Struct<{
886
896
  readonly type: Schema.Literal<"reasoning">;
887
897
  readonly text: Schema.String;
888
898
  readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Any>>;
@@ -890,6 +900,7 @@ export declare const Part: Schema.Union<readonly [Schema.Struct<{
890
900
  readonly start: Schema.Int;
891
901
  readonly end: Schema.optional<Schema.Int>;
892
902
  }>;
903
+ }>, Schema.Struct<{
893
904
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
894
905
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
895
906
  };
@@ -900,20 +911,24 @@ export declare const Part: Schema.Union<readonly [Schema.Struct<{
900
911
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
901
912
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
902
913
  };
903
- }>, Schema.Struct<{
904
914
  readonly type: Schema.Literal<"file">;
905
915
  readonly mime: Schema.String;
906
916
  readonly filename: Schema.optional<Schema.String>;
907
917
  readonly url: Schema.String;
908
918
  readonly source: Schema.optional<Schema.Union<readonly [Schema.Struct<{
919
+ readonly text: Schema.Struct<{
920
+ readonly value: Schema.String;
921
+ readonly start: Schema.Finite;
922
+ readonly end: Schema.Finite;
923
+ }>;
909
924
  readonly type: Schema.Literal<"file">;
910
925
  readonly path: Schema.String;
926
+ }>, Schema.Struct<{
911
927
  readonly text: Schema.Struct<{
912
928
  readonly value: Schema.String;
913
929
  readonly start: Schema.Finite;
914
930
  readonly end: Schema.Finite;
915
931
  }>;
916
- }>, Schema.Struct<{
917
932
  readonly type: Schema.Literal<"symbol">;
918
933
  readonly path: Schema.String;
919
934
  readonly range: Schema.Struct<{
@@ -928,21 +943,17 @@ export declare const Part: Schema.Union<readonly [Schema.Struct<{
928
943
  }>;
929
944
  readonly name: Schema.String;
930
945
  readonly kind: Schema.Int;
946
+ }>, Schema.Struct<{
931
947
  readonly text: Schema.Struct<{
932
948
  readonly value: Schema.String;
933
949
  readonly start: Schema.Finite;
934
950
  readonly end: Schema.Finite;
935
951
  }>;
936
- }>, Schema.Struct<{
937
952
  readonly type: Schema.Literal<"resource">;
938
953
  readonly clientName: Schema.String;
939
954
  readonly uri: Schema.String;
940
- readonly text: Schema.Struct<{
941
- readonly value: Schema.String;
942
- readonly start: Schema.Finite;
943
- readonly end: Schema.Finite;
944
- }>;
945
955
  }>]>>;
956
+ }>, Schema.Struct<{
946
957
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
947
958
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
948
959
  };
@@ -953,7 +964,6 @@ export declare const Part: Schema.Union<readonly [Schema.Struct<{
953
964
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
954
965
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
955
966
  };
956
- }>, Schema.Struct<{
957
967
  readonly type: Schema.Literal<"tool">;
958
968
  readonly callID: Schema.String;
959
969
  readonly tool: Schema.String;
@@ -981,19 +991,34 @@ export declare const Part: Schema.Union<readonly [Schema.Struct<{
981
991
  readonly compacted: Schema.optional<Schema.Int>;
982
992
  }>;
983
993
  readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
994
+ readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
995
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
996
+ };
997
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
998
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
999
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1000
+ };
1001
+ readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
1002
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
1003
+ };
984
1004
  readonly type: Schema.Literal<"file">;
985
1005
  readonly mime: Schema.String;
986
1006
  readonly filename: Schema.optional<Schema.String>;
987
1007
  readonly url: Schema.String;
988
1008
  readonly source: Schema.optional<Schema.Union<readonly [Schema.Struct<{
1009
+ readonly text: Schema.Struct<{
1010
+ readonly value: Schema.String;
1011
+ readonly start: Schema.Finite;
1012
+ readonly end: Schema.Finite;
1013
+ }>;
989
1014
  readonly type: Schema.Literal<"file">;
990
1015
  readonly path: Schema.String;
1016
+ }>, Schema.Struct<{
991
1017
  readonly text: Schema.Struct<{
992
1018
  readonly value: Schema.String;
993
1019
  readonly start: Schema.Finite;
994
1020
  readonly end: Schema.Finite;
995
1021
  }>;
996
- }>, Schema.Struct<{
997
1022
  readonly type: Schema.Literal<"symbol">;
998
1023
  readonly path: Schema.String;
999
1024
  readonly range: Schema.Struct<{
@@ -1008,31 +1033,16 @@ export declare const Part: Schema.Union<readonly [Schema.Struct<{
1008
1033
  }>;
1009
1034
  readonly name: Schema.String;
1010
1035
  readonly kind: Schema.Int;
1036
+ }>, Schema.Struct<{
1011
1037
  readonly text: Schema.Struct<{
1012
1038
  readonly value: Schema.String;
1013
1039
  readonly start: Schema.Finite;
1014
1040
  readonly end: Schema.Finite;
1015
1041
  }>;
1016
- }>, Schema.Struct<{
1017
1042
  readonly type: Schema.Literal<"resource">;
1018
1043
  readonly clientName: Schema.String;
1019
1044
  readonly uri: Schema.String;
1020
- readonly text: Schema.Struct<{
1021
- readonly value: Schema.String;
1022
- readonly start: Schema.Finite;
1023
- readonly end: Schema.Finite;
1024
- }>;
1025
1045
  }>]>>;
1026
- readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
1027
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
1028
- };
1029
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
1030
- create: () => string & import("effect/Brand").Brand<"SessionID">;
1031
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1032
- };
1033
- readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
1034
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
1035
- };
1036
1046
  }>>>;
1037
1047
  }>, Schema.Struct<{
1038
1048
  readonly status: Schema.Literal<"error">;
@@ -1045,6 +1055,7 @@ export declare const Part: Schema.Union<readonly [Schema.Struct<{
1045
1055
  }>;
1046
1056
  }>]>;
1047
1057
  readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Any>>;
1058
+ }>, Schema.Struct<{
1048
1059
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
1049
1060
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
1050
1061
  };
@@ -1055,9 +1066,9 @@ export declare const Part: Schema.Union<readonly [Schema.Struct<{
1055
1066
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
1056
1067
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
1057
1068
  };
1058
- }>, Schema.Struct<{
1059
1069
  readonly type: Schema.Literal<"step-start">;
1060
1070
  readonly snapshot: Schema.optional<Schema.String>;
1071
+ }>, Schema.Struct<{
1061
1072
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
1062
1073
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
1063
1074
  };
@@ -1068,7 +1079,6 @@ export declare const Part: Schema.Union<readonly [Schema.Struct<{
1068
1079
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
1069
1080
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
1070
1081
  };
1071
- }>, Schema.Struct<{
1072
1082
  readonly type: Schema.Literal<"step-finish">;
1073
1083
  readonly reason: Schema.String;
1074
1084
  readonly snapshot: Schema.optional<Schema.String>;
@@ -1083,6 +1093,7 @@ export declare const Part: Schema.Union<readonly [Schema.Struct<{
1083
1093
  readonly write: Schema.Finite;
1084
1094
  }>;
1085
1095
  }>;
1096
+ }>, Schema.Struct<{
1086
1097
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
1087
1098
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
1088
1099
  };
@@ -1093,9 +1104,9 @@ export declare const Part: Schema.Union<readonly [Schema.Struct<{
1093
1104
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
1094
1105
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
1095
1106
  };
1096
- }>, Schema.Struct<{
1097
1107
  readonly type: Schema.Literal<"snapshot">;
1098
1108
  readonly snapshot: Schema.String;
1109
+ }>, Schema.Struct<{
1099
1110
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
1100
1111
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
1101
1112
  };
@@ -1106,10 +1117,10 @@ export declare const Part: Schema.Union<readonly [Schema.Struct<{
1106
1117
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
1107
1118
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
1108
1119
  };
1109
- }>, Schema.Struct<{
1110
1120
  readonly type: Schema.Literal<"patch">;
1111
1121
  readonly hash: Schema.String;
1112
1122
  readonly files: Schema.$Array<Schema.String>;
1123
+ }>, Schema.Struct<{
1113
1124
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
1114
1125
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
1115
1126
  };
@@ -1120,7 +1131,6 @@ export declare const Part: Schema.Union<readonly [Schema.Struct<{
1120
1131
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
1121
1132
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
1122
1133
  };
1123
- }>, Schema.Struct<{
1124
1134
  readonly type: Schema.Literal<"agent">;
1125
1135
  readonly name: Schema.String;
1126
1136
  readonly source: Schema.optional<Schema.Struct<{
@@ -1128,6 +1138,7 @@ export declare const Part: Schema.Union<readonly [Schema.Struct<{
1128
1138
  readonly start: Schema.Int;
1129
1139
  readonly end: Schema.Int;
1130
1140
  }>>;
1141
+ }>, Schema.Struct<{
1131
1142
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
1132
1143
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
1133
1144
  };
@@ -1138,7 +1149,6 @@ export declare const Part: Schema.Union<readonly [Schema.Struct<{
1138
1149
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
1139
1150
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
1140
1151
  };
1141
- }>, Schema.Struct<{
1142
1152
  readonly type: Schema.Literal<"retry">;
1143
1153
  readonly attempt: Schema.Int;
1144
1154
  readonly error: Schema.Struct<{
@@ -1155,6 +1165,7 @@ export declare const Part: Schema.Union<readonly [Schema.Struct<{
1155
1165
  readonly time: Schema.Struct<{
1156
1166
  readonly created: Schema.Int;
1157
1167
  }>;
1168
+ }>, Schema.Struct<{
1158
1169
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
1159
1170
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
1160
1171
  };
@@ -1165,23 +1176,12 @@ export declare const Part: Schema.Union<readonly [Schema.Struct<{
1165
1176
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
1166
1177
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
1167
1178
  };
1168
- }>, Schema.Struct<{
1169
1179
  readonly type: Schema.Literal<"compaction">;
1170
1180
  readonly auto: Schema.Boolean;
1171
1181
  readonly overflow: Schema.optional<Schema.Boolean>;
1172
1182
  readonly tail_start_id: Schema.optional<Schema.brand<Schema.String, "SessionV1.MessageID"> & {
1173
1183
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
1174
1184
  }>;
1175
- readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
1176
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
1177
- };
1178
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
1179
- create: () => string & import("effect/Brand").Brand<"SessionID">;
1180
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1181
- };
1182
- readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
1183
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
1184
- };
1185
1185
  }>]>;
1186
1186
  export type Part = TextPart | SubtaskPart | ReasoningPart | FilePart | ToolPart | StepStartPart | StepFinishPart | SnapshotPart | PatchPart | AgentPart | RetryPart | CompactionPart;
1187
1187
  declare const AssistantErrorSchema: Schema.Union<readonly [Schema.Struct<{
@@ -1257,14 +1257,19 @@ export declare const FilePartInput: Schema.Struct<{
1257
1257
  readonly filename: Schema.optional<Schema.String>;
1258
1258
  readonly url: Schema.String;
1259
1259
  readonly source: Schema.optional<Schema.Union<readonly [Schema.Struct<{
1260
+ readonly text: Schema.Struct<{
1261
+ readonly value: Schema.String;
1262
+ readonly start: Schema.Finite;
1263
+ readonly end: Schema.Finite;
1264
+ }>;
1260
1265
  readonly type: Schema.Literal<"file">;
1261
1266
  readonly path: Schema.String;
1267
+ }>, Schema.Struct<{
1262
1268
  readonly text: Schema.Struct<{
1263
1269
  readonly value: Schema.String;
1264
1270
  readonly start: Schema.Finite;
1265
1271
  readonly end: Schema.Finite;
1266
1272
  }>;
1267
- }>, Schema.Struct<{
1268
1273
  readonly type: Schema.Literal<"symbol">;
1269
1274
  readonly path: Schema.String;
1270
1275
  readonly range: Schema.Struct<{
@@ -1279,20 +1284,15 @@ export declare const FilePartInput: Schema.Struct<{
1279
1284
  }>;
1280
1285
  readonly name: Schema.String;
1281
1286
  readonly kind: Schema.Int;
1287
+ }>, Schema.Struct<{
1282
1288
  readonly text: Schema.Struct<{
1283
1289
  readonly value: Schema.String;
1284
1290
  readonly start: Schema.Finite;
1285
1291
  readonly end: Schema.Finite;
1286
1292
  }>;
1287
- }>, Schema.Struct<{
1288
1293
  readonly type: Schema.Literal<"resource">;
1289
1294
  readonly clientName: Schema.String;
1290
1295
  readonly uri: Schema.String;
1291
- readonly text: Schema.Struct<{
1292
- readonly value: Schema.String;
1293
- readonly start: Schema.Finite;
1294
- readonly end: Schema.Finite;
1295
- }>;
1296
1296
  }>]>>;
1297
1297
  }>;
1298
1298
  export type FilePartInput = Types.DeepMutable<Schema.Schema.Type<typeof FilePartInput>>;
@@ -1337,6 +1337,13 @@ export declare const SubtaskPartInput: Schema.Struct<{
1337
1337
  }>;
1338
1338
  export type SubtaskPartInput = Types.DeepMutable<Schema.Schema.Type<typeof SubtaskPartInput>>;
1339
1339
  export declare const Assistant: Schema.Struct<{
1340
+ readonly id: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
1341
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
1342
+ };
1343
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
1344
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
1345
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1346
+ };
1340
1347
  readonly role: Schema.Literal<"assistant">;
1341
1348
  readonly time: Schema.Struct<{
1342
1349
  readonly created: Schema.Int;
@@ -1428,6 +1435,11 @@ export declare const Assistant: Schema.Struct<{
1428
1435
  readonly structured: Schema.optional<Schema.Any>;
1429
1436
  readonly variant: Schema.optional<Schema.String>;
1430
1437
  readonly finish: Schema.optional<Schema.String>;
1438
+ }>;
1439
+ export type Assistant = Omit<Types.DeepMutable<Schema.Schema.Type<typeof Assistant>>, "error"> & {
1440
+ error?: AssistantError;
1441
+ };
1442
+ export declare const Info: Schema.Union<readonly [Schema.Struct<{
1431
1443
  readonly id: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
1432
1444
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
1433
1445
  };
@@ -1435,11 +1447,6 @@ export declare const Assistant: Schema.Struct<{
1435
1447
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1436
1448
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1437
1449
  };
1438
- }>;
1439
- export type Assistant = Omit<Types.DeepMutable<Schema.Schema.Type<typeof Assistant>>, "error"> & {
1440
- error?: AssistantError;
1441
- };
1442
- export declare const Info: Schema.Union<readonly [Schema.Struct<{
1443
1450
  readonly role: Schema.Literal<"user">;
1444
1451
  readonly time: Schema.Struct<{
1445
1452
  readonly created: Schema.Finite;
@@ -1476,6 +1483,7 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
1476
1483
  }>;
1477
1484
  readonly system: Schema.optional<Schema.String>;
1478
1485
  readonly tools: Schema.optional<Schema.$Record<Schema.String, Schema.Boolean>>;
1486
+ }>, Schema.Struct<{
1479
1487
  readonly id: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
1480
1488
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
1481
1489
  };
@@ -1483,7 +1491,6 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
1483
1491
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1484
1492
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1485
1493
  };
1486
- }>, Schema.Struct<{
1487
1494
  readonly role: Schema.Literal<"assistant">;
1488
1495
  readonly time: Schema.Struct<{
1489
1496
  readonly created: Schema.Int;
@@ -1575,13 +1582,6 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
1575
1582
  readonly structured: Schema.optional<Schema.Any>;
1576
1583
  readonly variant: Schema.optional<Schema.String>;
1577
1584
  readonly finish: Schema.optional<Schema.String>;
1578
- readonly id: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
1579
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
1580
- };
1581
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
1582
- create: () => string & import("effect/Brand").Brand<"SessionID">;
1583
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
1584
- };
1585
1585
  }>]>;
1586
1586
  export type Info = User | Assistant;
1587
1587
  export declare const SessionInfo: Schema.Struct<{
@@ -2000,272 +2000,17 @@ export declare const Error: Schema.Struct<{
2000
2000
  }>;
2001
2001
  };
2002
2002
  export declare const Event: {
2003
- PartDelta: Schema.Struct<{
2003
+ Created: Schema.Struct<{
2004
2004
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
2005
2005
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
2006
2006
  };
2007
2007
  readonly created: Schema.Finite;
2008
2008
  readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
2009
- readonly type: Schema.Literal<"message.part.delta">;
2010
- readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2011
- readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
2012
- readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
2013
- ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
2014
- create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
2015
- }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
2016
- ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
2017
- create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
2018
- }>, never, never>;
2019
- }>>>, Schema.optionalKey<Schema.Struct<{
2020
- readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
2021
- readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
2022
- ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
2023
- create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
2024
- }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
2025
- ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
2026
- create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
2027
- }>, never, never>;
2028
- }>>, never, never>;
2029
- readonly data: Schema.Struct<{
2030
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
2031
- create: () => string & import("effect/Brand").Brand<"SessionID">;
2032
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2033
- };
2034
- readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
2035
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
2036
- };
2037
- readonly partID: Schema.brand<Schema.String, "SessionV1.PartID"> & {
2038
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
2039
- };
2040
- readonly field: Schema.String;
2041
- readonly delta: Schema.String;
2042
- }>;
2043
- }> & {
2044
- type: "message.part.delta";
2045
- durability: "ephemeral";
2046
- durable: undefined;
2047
- data: Schema.Struct<{
2048
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
2049
- create: () => string & import("effect/Brand").Brand<"SessionID">;
2050
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2051
- };
2052
- readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
2053
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
2054
- };
2055
- readonly partID: Schema.brand<Schema.String, "SessionV1.PartID"> & {
2056
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
2057
- };
2058
- readonly field: Schema.String;
2059
- readonly delta: Schema.String;
2060
- }>;
2061
- };
2062
- Diff: Schema.Struct<{
2063
- readonly id: Schema.brand<Schema.String, "Event.ID"> & {
2064
- create: () => string & import("effect/Brand").Brand<"Event.ID">;
2065
- };
2066
- readonly created: Schema.Finite;
2067
- readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
2068
- readonly type: Schema.Literal<"session.diff">;
2069
- readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2070
- readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
2071
- readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
2072
- ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
2073
- create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
2074
- }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
2075
- ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
2076
- create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
2077
- }>, never, never>;
2078
- }>>>, Schema.optionalKey<Schema.Struct<{
2079
- readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
2080
- readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
2081
- ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
2082
- create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
2083
- }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
2084
- ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
2085
- create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
2086
- }>, never, never>;
2087
- }>>, never, never>;
2088
- readonly data: Schema.Struct<{
2089
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
2090
- create: () => string & import("effect/Brand").Brand<"SessionID">;
2091
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2092
- };
2093
- readonly diff: Schema.$Array<Schema.Struct<{
2094
- readonly file: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
2095
- readonly patch: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
2096
- readonly additions: Schema.Finite;
2097
- readonly deletions: Schema.Finite;
2098
- readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["added", "deleted", "modified"]>>>, Schema.optionalKey<Schema.Literals<readonly ["added", "deleted", "modified"]>>, never, never>;
2099
- }>>;
2100
- }>;
2101
- }> & {
2102
- type: "session.diff";
2103
- durability: "ephemeral";
2104
- durable: undefined;
2105
- data: Schema.Struct<{
2106
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
2107
- create: () => string & import("effect/Brand").Brand<"SessionID">;
2108
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2109
- };
2110
- readonly diff: Schema.$Array<Schema.Struct<{
2111
- readonly file: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
2112
- readonly patch: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
2113
- readonly additions: Schema.Finite;
2114
- readonly deletions: Schema.Finite;
2115
- readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["added", "deleted", "modified"]>>>, Schema.optionalKey<Schema.Literals<readonly ["added", "deleted", "modified"]>>, never, never>;
2116
- }>>;
2117
- }>;
2118
- };
2119
- Error: Schema.Struct<{
2120
- readonly id: Schema.brand<Schema.String, "Event.ID"> & {
2121
- create: () => string & import("effect/Brand").Brand<"Event.ID">;
2122
- };
2123
- readonly created: Schema.Finite;
2124
- readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
2125
- readonly type: Schema.Literal<"session.error">;
2126
- readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2127
- readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
2128
- readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
2129
- ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
2130
- create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
2131
- }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
2132
- ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
2133
- create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
2134
- }>, never, never>;
2135
- }>>>, Schema.optionalKey<Schema.Struct<{
2136
- readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
2137
- readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
2138
- ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
2139
- create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
2140
- }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
2141
- ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
2142
- create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
2143
- }>, never, never>;
2144
- }>>, never, never>;
2145
- readonly data: Schema.Struct<{
2146
- readonly sessionID: Schema.optional<Schema.brand<Schema.String, "SessionID"> & {
2147
- create: () => string & import("effect/Brand").Brand<"SessionID">;
2148
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2149
- }>;
2150
- readonly error: Schema.optional<Schema.Union<readonly [Schema.Struct<{
2151
- readonly name: Schema.Literal<"ProviderAuthError">;
2152
- readonly data: Schema.Struct<{
2153
- providerID: Schema.String;
2154
- message: Schema.String;
2155
- }>;
2156
- }>, Schema.Struct<{
2157
- readonly name: Schema.Literal<"UnknownError">;
2158
- readonly data: Schema.Struct<{
2159
- message: Schema.String;
2160
- ref: Schema.optional<Schema.String>;
2161
- }>;
2162
- }>, Schema.Struct<{
2163
- readonly name: Schema.Literal<"MessageOutputLengthError">;
2164
- readonly data: Schema.Struct<{}>;
2165
- }>, Schema.Struct<{
2166
- readonly name: Schema.Literal<"MessageAbortedError">;
2167
- readonly data: Schema.Struct<{
2168
- message: Schema.String;
2169
- }>;
2170
- }>, Schema.Struct<{
2171
- readonly name: Schema.Literal<"StructuredOutputError">;
2172
- readonly data: Schema.Struct<{
2173
- message: Schema.String;
2174
- retries: Schema.Int;
2175
- }>;
2176
- }>, Schema.Struct<{
2177
- readonly name: Schema.Literal<"ContextOverflowError">;
2178
- readonly data: Schema.Struct<{
2179
- message: Schema.String;
2180
- responseBody: Schema.optional<Schema.String>;
2181
- }>;
2182
- }>, Schema.Struct<{
2183
- readonly name: Schema.Literal<"ContentFilterError">;
2184
- readonly data: Schema.Struct<{
2185
- message: Schema.String;
2186
- }>;
2187
- }>, Schema.Struct<{
2188
- readonly name: Schema.Literal<"APIError">;
2189
- readonly data: Schema.Struct<{
2190
- message: Schema.String;
2191
- statusCode: Schema.optional<Schema.Int>;
2192
- isRetryable: Schema.Boolean;
2193
- responseHeaders: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
2194
- responseBody: Schema.optional<Schema.String>;
2195
- metadata: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
2196
- }>;
2197
- }>]>>;
2198
- }>;
2199
- }> & {
2200
- type: "session.error";
2201
- durability: "ephemeral";
2202
- durable: undefined;
2203
- data: Schema.Struct<{
2204
- readonly sessionID: Schema.optional<Schema.brand<Schema.String, "SessionID"> & {
2205
- create: () => string & import("effect/Brand").Brand<"SessionID">;
2206
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
2207
- }>;
2208
- readonly error: Schema.optional<Schema.Union<readonly [Schema.Struct<{
2209
- readonly name: Schema.Literal<"ProviderAuthError">;
2210
- readonly data: Schema.Struct<{
2211
- providerID: Schema.String;
2212
- message: Schema.String;
2213
- }>;
2214
- }>, Schema.Struct<{
2215
- readonly name: Schema.Literal<"UnknownError">;
2216
- readonly data: Schema.Struct<{
2217
- message: Schema.String;
2218
- ref: Schema.optional<Schema.String>;
2219
- }>;
2220
- }>, Schema.Struct<{
2221
- readonly name: Schema.Literal<"MessageOutputLengthError">;
2222
- readonly data: Schema.Struct<{}>;
2223
- }>, Schema.Struct<{
2224
- readonly name: Schema.Literal<"MessageAbortedError">;
2225
- readonly data: Schema.Struct<{
2226
- message: Schema.String;
2227
- }>;
2228
- }>, Schema.Struct<{
2229
- readonly name: Schema.Literal<"StructuredOutputError">;
2230
- readonly data: Schema.Struct<{
2231
- message: Schema.String;
2232
- retries: Schema.Int;
2233
- }>;
2234
- }>, Schema.Struct<{
2235
- readonly name: Schema.Literal<"ContextOverflowError">;
2236
- readonly data: Schema.Struct<{
2237
- message: Schema.String;
2238
- responseBody: Schema.optional<Schema.String>;
2239
- }>;
2240
- }>, Schema.Struct<{
2241
- readonly name: Schema.Literal<"ContentFilterError">;
2242
- readonly data: Schema.Struct<{
2243
- message: Schema.String;
2244
- }>;
2245
- }>, Schema.Struct<{
2246
- readonly name: Schema.Literal<"APIError">;
2247
- readonly data: Schema.Struct<{
2248
- message: Schema.String;
2249
- statusCode: Schema.optional<Schema.Int>;
2250
- isRetryable: Schema.Boolean;
2251
- responseHeaders: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
2252
- responseBody: Schema.optional<Schema.String>;
2253
- metadata: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
2254
- }>;
2255
- }>]>>;
2256
- }>;
2257
- };
2258
- Definitions: readonly [Schema.Struct<{
2259
- readonly id: Schema.brand<Schema.String, "Event.ID"> & {
2260
- create: () => string & import("effect/Brand").Brand<"Event.ID">;
2261
- };
2262
- readonly created: Schema.Finite;
2263
- readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
2264
- readonly type: Schema.Literal<"session.created">;
2265
- readonly durable: Schema.Struct<{
2266
- readonly aggregateID: Schema.String;
2267
- readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2268
- readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
2009
+ readonly type: Schema.Literal<"session.created">;
2010
+ readonly durable: Schema.Struct<{
2011
+ readonly aggregateID: Schema.String;
2012
+ readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
2013
+ readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
2269
2014
  }>;
2270
2015
  readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
2271
2016
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
@@ -2623,7 +2368,8 @@ export declare const Event: {
2623
2368
  }>>, never, never>;
2624
2369
  }>;
2625
2370
  }>;
2626
- }, Schema.Struct<{
2371
+ };
2372
+ Updated: Schema.Struct<{
2627
2373
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
2628
2374
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
2629
2375
  };
@@ -2991,7 +2737,8 @@ export declare const Event: {
2991
2737
  }>>, never, never>;
2992
2738
  }>;
2993
2739
  }>;
2994
- }, Schema.Struct<{
2740
+ };
2741
+ Deleted: Schema.Struct<{
2995
2742
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
2996
2743
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
2997
2744
  };
@@ -3359,7 +3106,8 @@ export declare const Event: {
3359
3106
  }>>, never, never>;
3360
3107
  }>;
3361
3108
  }>;
3362
- }, Schema.Struct<{
3109
+ };
3110
+ MessageUpdated: Schema.Struct<{
3363
3111
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
3364
3112
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
3365
3113
  };
@@ -3396,6 +3144,13 @@ export declare const Event: {
3396
3144
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3397
3145
  };
3398
3146
  readonly info: Schema.Union<readonly [Schema.Struct<{
3147
+ readonly id: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
3148
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
3149
+ };
3150
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
3151
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
3152
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3153
+ };
3399
3154
  readonly role: Schema.Literal<"user">;
3400
3155
  readonly time: Schema.Struct<{
3401
3156
  readonly created: Schema.Finite;
@@ -3432,6 +3187,7 @@ export declare const Event: {
3432
3187
  }>;
3433
3188
  readonly system: Schema.optional<Schema.String>;
3434
3189
  readonly tools: Schema.optional<Schema.$Record<Schema.String, Schema.Boolean>>;
3190
+ }>, Schema.Struct<{
3435
3191
  readonly id: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
3436
3192
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
3437
3193
  };
@@ -3439,7 +3195,6 @@ export declare const Event: {
3439
3195
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3440
3196
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3441
3197
  };
3442
- }>, Schema.Struct<{
3443
3198
  readonly role: Schema.Literal<"assistant">;
3444
3199
  readonly time: Schema.Struct<{
3445
3200
  readonly created: Schema.Int;
@@ -3531,13 +3286,6 @@ export declare const Event: {
3531
3286
  readonly structured: Schema.optional<Schema.Any>;
3532
3287
  readonly variant: Schema.optional<Schema.String>;
3533
3288
  readonly finish: Schema.optional<Schema.String>;
3534
- readonly id: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
3535
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
3536
- };
3537
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
3538
- create: () => string & import("effect/Brand").Brand<"SessionID">;
3539
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3540
- };
3541
3289
  }>]>;
3542
3290
  }>;
3543
3291
  }> & {
@@ -3553,6 +3301,13 @@ export declare const Event: {
3553
3301
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3554
3302
  };
3555
3303
  readonly info: Schema.Union<readonly [Schema.Struct<{
3304
+ readonly id: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
3305
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
3306
+ };
3307
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
3308
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
3309
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3310
+ };
3556
3311
  readonly role: Schema.Literal<"user">;
3557
3312
  readonly time: Schema.Struct<{
3558
3313
  readonly created: Schema.Finite;
@@ -3589,6 +3344,7 @@ export declare const Event: {
3589
3344
  }>;
3590
3345
  readonly system: Schema.optional<Schema.String>;
3591
3346
  readonly tools: Schema.optional<Schema.$Record<Schema.String, Schema.Boolean>>;
3347
+ }>, Schema.Struct<{
3592
3348
  readonly id: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
3593
3349
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
3594
3350
  };
@@ -3596,7 +3352,6 @@ export declare const Event: {
3596
3352
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3597
3353
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3598
3354
  };
3599
- }>, Schema.Struct<{
3600
3355
  readonly role: Schema.Literal<"assistant">;
3601
3356
  readonly time: Schema.Struct<{
3602
3357
  readonly created: Schema.Int;
@@ -3688,16 +3443,10 @@ export declare const Event: {
3688
3443
  readonly structured: Schema.optional<Schema.Any>;
3689
3444
  readonly variant: Schema.optional<Schema.String>;
3690
3445
  readonly finish: Schema.optional<Schema.String>;
3691
- readonly id: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
3692
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
3693
- };
3694
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
3695
- create: () => string & import("effect/Brand").Brand<"SessionID">;
3696
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3697
- };
3698
3446
  }>]>;
3699
3447
  }>;
3700
- }, Schema.Struct<{
3448
+ };
3449
+ MessageRemoved: Schema.Struct<{
3701
3450
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
3702
3451
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
3703
3452
  };
@@ -3753,7 +3502,8 @@ export declare const Event: {
3753
3502
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
3754
3503
  };
3755
3504
  }>;
3756
- }, Schema.Struct<{
3505
+ };
3506
+ PartUpdated: Schema.Struct<{
3757
3507
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
3758
3508
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
3759
3509
  };
@@ -3790,6 +3540,16 @@ export declare const Event: {
3790
3540
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3791
3541
  };
3792
3542
  readonly part: Schema.Union<readonly [Schema.Struct<{
3543
+ readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
3544
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
3545
+ };
3546
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
3547
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
3548
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3549
+ };
3550
+ readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
3551
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
3552
+ };
3793
3553
  readonly type: Schema.Literal<"text">;
3794
3554
  readonly text: Schema.String;
3795
3555
  readonly synthetic: Schema.optional<Schema.Boolean>;
@@ -3799,6 +3559,7 @@ export declare const Event: {
3799
3559
  readonly end: Schema.optional<Schema.Int>;
3800
3560
  }>>;
3801
3561
  readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Any>>;
3562
+ }>, Schema.Struct<{
3802
3563
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
3803
3564
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
3804
3565
  };
@@ -3809,7 +3570,6 @@ export declare const Event: {
3809
3570
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
3810
3571
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
3811
3572
  };
3812
- }>, Schema.Struct<{
3813
3573
  readonly type: Schema.Literal<"subtask">;
3814
3574
  readonly prompt: Schema.String;
3815
3575
  readonly description: Schema.String;
@@ -3831,6 +3591,7 @@ export declare const Event: {
3831
3591
  readonly modelID: Schema.brand<Schema.String, "Model.ID">;
3832
3592
  }>>;
3833
3593
  readonly command: Schema.optional<Schema.String>;
3594
+ }>, Schema.Struct<{
3834
3595
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
3835
3596
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
3836
3597
  };
@@ -3841,7 +3602,6 @@ export declare const Event: {
3841
3602
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
3842
3603
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
3843
3604
  };
3844
- }>, Schema.Struct<{
3845
3605
  readonly type: Schema.Literal<"reasoning">;
3846
3606
  readonly text: Schema.String;
3847
3607
  readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Any>>;
@@ -3849,6 +3609,7 @@ export declare const Event: {
3849
3609
  readonly start: Schema.Int;
3850
3610
  readonly end: Schema.optional<Schema.Int>;
3851
3611
  }>;
3612
+ }>, Schema.Struct<{
3852
3613
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
3853
3614
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
3854
3615
  };
@@ -3859,20 +3620,24 @@ export declare const Event: {
3859
3620
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
3860
3621
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
3861
3622
  };
3862
- }>, Schema.Struct<{
3863
3623
  readonly type: Schema.Literal<"file">;
3864
3624
  readonly mime: Schema.String;
3865
3625
  readonly filename: Schema.optional<Schema.String>;
3866
3626
  readonly url: Schema.String;
3867
3627
  readonly source: Schema.optional<Schema.Union<readonly [Schema.Struct<{
3628
+ readonly text: Schema.Struct<{
3629
+ readonly value: Schema.String;
3630
+ readonly start: Schema.Finite;
3631
+ readonly end: Schema.Finite;
3632
+ }>;
3868
3633
  readonly type: Schema.Literal<"file">;
3869
3634
  readonly path: Schema.String;
3635
+ }>, Schema.Struct<{
3870
3636
  readonly text: Schema.Struct<{
3871
3637
  readonly value: Schema.String;
3872
3638
  readonly start: Schema.Finite;
3873
3639
  readonly end: Schema.Finite;
3874
3640
  }>;
3875
- }>, Schema.Struct<{
3876
3641
  readonly type: Schema.Literal<"symbol">;
3877
3642
  readonly path: Schema.String;
3878
3643
  readonly range: Schema.Struct<{
@@ -3887,21 +3652,17 @@ export declare const Event: {
3887
3652
  }>;
3888
3653
  readonly name: Schema.String;
3889
3654
  readonly kind: Schema.Int;
3655
+ }>, Schema.Struct<{
3890
3656
  readonly text: Schema.Struct<{
3891
3657
  readonly value: Schema.String;
3892
3658
  readonly start: Schema.Finite;
3893
3659
  readonly end: Schema.Finite;
3894
3660
  }>;
3895
- }>, Schema.Struct<{
3896
3661
  readonly type: Schema.Literal<"resource">;
3897
3662
  readonly clientName: Schema.String;
3898
3663
  readonly uri: Schema.String;
3899
- readonly text: Schema.Struct<{
3900
- readonly value: Schema.String;
3901
- readonly start: Schema.Finite;
3902
- readonly end: Schema.Finite;
3903
- }>;
3904
3664
  }>]>>;
3665
+ }>, Schema.Struct<{
3905
3666
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
3906
3667
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
3907
3668
  };
@@ -3912,7 +3673,6 @@ export declare const Event: {
3912
3673
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
3913
3674
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
3914
3675
  };
3915
- }>, Schema.Struct<{
3916
3676
  readonly type: Schema.Literal<"tool">;
3917
3677
  readonly callID: Schema.String;
3918
3678
  readonly tool: Schema.String;
@@ -3940,19 +3700,34 @@ export declare const Event: {
3940
3700
  readonly compacted: Schema.optional<Schema.Int>;
3941
3701
  }>;
3942
3702
  readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
3703
+ readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
3704
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
3705
+ };
3706
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
3707
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
3708
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3709
+ };
3710
+ readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
3711
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
3712
+ };
3943
3713
  readonly type: Schema.Literal<"file">;
3944
3714
  readonly mime: Schema.String;
3945
3715
  readonly filename: Schema.optional<Schema.String>;
3946
3716
  readonly url: Schema.String;
3947
3717
  readonly source: Schema.optional<Schema.Union<readonly [Schema.Struct<{
3718
+ readonly text: Schema.Struct<{
3719
+ readonly value: Schema.String;
3720
+ readonly start: Schema.Finite;
3721
+ readonly end: Schema.Finite;
3722
+ }>;
3948
3723
  readonly type: Schema.Literal<"file">;
3949
3724
  readonly path: Schema.String;
3725
+ }>, Schema.Struct<{
3950
3726
  readonly text: Schema.Struct<{
3951
3727
  readonly value: Schema.String;
3952
3728
  readonly start: Schema.Finite;
3953
3729
  readonly end: Schema.Finite;
3954
3730
  }>;
3955
- }>, Schema.Struct<{
3956
3731
  readonly type: Schema.Literal<"symbol">;
3957
3732
  readonly path: Schema.String;
3958
3733
  readonly range: Schema.Struct<{
@@ -3967,31 +3742,16 @@ export declare const Event: {
3967
3742
  }>;
3968
3743
  readonly name: Schema.String;
3969
3744
  readonly kind: Schema.Int;
3745
+ }>, Schema.Struct<{
3970
3746
  readonly text: Schema.Struct<{
3971
3747
  readonly value: Schema.String;
3972
3748
  readonly start: Schema.Finite;
3973
3749
  readonly end: Schema.Finite;
3974
3750
  }>;
3975
- }>, Schema.Struct<{
3976
3751
  readonly type: Schema.Literal<"resource">;
3977
3752
  readonly clientName: Schema.String;
3978
3753
  readonly uri: Schema.String;
3979
- readonly text: Schema.Struct<{
3980
- readonly value: Schema.String;
3981
- readonly start: Schema.Finite;
3982
- readonly end: Schema.Finite;
3983
- }>;
3984
3754
  }>]>>;
3985
- readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
3986
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
3987
- };
3988
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
3989
- create: () => string & import("effect/Brand").Brand<"SessionID">;
3990
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3991
- };
3992
- readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
3993
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
3994
- };
3995
3755
  }>>>;
3996
3756
  }>, Schema.Struct<{
3997
3757
  readonly status: Schema.Literal<"error">;
@@ -4004,6 +3764,7 @@ export declare const Event: {
4004
3764
  }>;
4005
3765
  }>]>;
4006
3766
  readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Any>>;
3767
+ }>, Schema.Struct<{
4007
3768
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
4008
3769
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
4009
3770
  };
@@ -4014,9 +3775,9 @@ export declare const Event: {
4014
3775
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
4015
3776
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
4016
3777
  };
4017
- }>, Schema.Struct<{
4018
3778
  readonly type: Schema.Literal<"step-start">;
4019
3779
  readonly snapshot: Schema.optional<Schema.String>;
3780
+ }>, Schema.Struct<{
4020
3781
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
4021
3782
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
4022
3783
  };
@@ -4027,7 +3788,6 @@ export declare const Event: {
4027
3788
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
4028
3789
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
4029
3790
  };
4030
- }>, Schema.Struct<{
4031
3791
  readonly type: Schema.Literal<"step-finish">;
4032
3792
  readonly reason: Schema.String;
4033
3793
  readonly snapshot: Schema.optional<Schema.String>;
@@ -4042,6 +3802,7 @@ export declare const Event: {
4042
3802
  readonly write: Schema.Finite;
4043
3803
  }>;
4044
3804
  }>;
3805
+ }>, Schema.Struct<{
4045
3806
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
4046
3807
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
4047
3808
  };
@@ -4052,9 +3813,9 @@ export declare const Event: {
4052
3813
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
4053
3814
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
4054
3815
  };
4055
- }>, Schema.Struct<{
4056
3816
  readonly type: Schema.Literal<"snapshot">;
4057
3817
  readonly snapshot: Schema.String;
3818
+ }>, Schema.Struct<{
4058
3819
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
4059
3820
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
4060
3821
  };
@@ -4065,10 +3826,10 @@ export declare const Event: {
4065
3826
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
4066
3827
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
4067
3828
  };
4068
- }>, Schema.Struct<{
4069
3829
  readonly type: Schema.Literal<"patch">;
4070
3830
  readonly hash: Schema.String;
4071
3831
  readonly files: Schema.$Array<Schema.String>;
3832
+ }>, Schema.Struct<{
4072
3833
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
4073
3834
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
4074
3835
  };
@@ -4079,7 +3840,6 @@ export declare const Event: {
4079
3840
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
4080
3841
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
4081
3842
  };
4082
- }>, Schema.Struct<{
4083
3843
  readonly type: Schema.Literal<"agent">;
4084
3844
  readonly name: Schema.String;
4085
3845
  readonly source: Schema.optional<Schema.Struct<{
@@ -4087,6 +3847,7 @@ export declare const Event: {
4087
3847
  readonly start: Schema.Int;
4088
3848
  readonly end: Schema.Int;
4089
3849
  }>>;
3850
+ }>, Schema.Struct<{
4090
3851
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
4091
3852
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
4092
3853
  };
@@ -4097,7 +3858,6 @@ export declare const Event: {
4097
3858
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
4098
3859
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
4099
3860
  };
4100
- }>, Schema.Struct<{
4101
3861
  readonly type: Schema.Literal<"retry">;
4102
3862
  readonly attempt: Schema.Int;
4103
3863
  readonly error: Schema.Struct<{
@@ -4114,6 +3874,7 @@ export declare const Event: {
4114
3874
  readonly time: Schema.Struct<{
4115
3875
  readonly created: Schema.Int;
4116
3876
  }>;
3877
+ }>, Schema.Struct<{
4117
3878
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
4118
3879
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
4119
3880
  };
@@ -4124,23 +3885,12 @@ export declare const Event: {
4124
3885
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
4125
3886
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
4126
3887
  };
4127
- }>, Schema.Struct<{
4128
3888
  readonly type: Schema.Literal<"compaction">;
4129
3889
  readonly auto: Schema.Boolean;
4130
3890
  readonly overflow: Schema.optional<Schema.Boolean>;
4131
3891
  readonly tail_start_id: Schema.optional<Schema.brand<Schema.String, "SessionV1.MessageID"> & {
4132
3892
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
4133
3893
  }>;
4134
- readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
4135
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
4136
- };
4137
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
4138
- create: () => string & import("effect/Brand").Brand<"SessionID">;
4139
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4140
- };
4141
- readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
4142
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
4143
- };
4144
3894
  }>]>;
4145
3895
  readonly time: Schema.Finite;
4146
3896
  }>;
@@ -4157,6 +3907,16 @@ export declare const Event: {
4157
3907
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4158
3908
  };
4159
3909
  readonly part: Schema.Union<readonly [Schema.Struct<{
3910
+ readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
3911
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
3912
+ };
3913
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
3914
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
3915
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
3916
+ };
3917
+ readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
3918
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
3919
+ };
4160
3920
  readonly type: Schema.Literal<"text">;
4161
3921
  readonly text: Schema.String;
4162
3922
  readonly synthetic: Schema.optional<Schema.Boolean>;
@@ -4166,6 +3926,7 @@ export declare const Event: {
4166
3926
  readonly end: Schema.optional<Schema.Int>;
4167
3927
  }>>;
4168
3928
  readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Any>>;
3929
+ }>, Schema.Struct<{
4169
3930
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
4170
3931
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
4171
3932
  };
@@ -4176,7 +3937,6 @@ export declare const Event: {
4176
3937
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
4177
3938
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
4178
3939
  };
4179
- }>, Schema.Struct<{
4180
3940
  readonly type: Schema.Literal<"subtask">;
4181
3941
  readonly prompt: Schema.String;
4182
3942
  readonly description: Schema.String;
@@ -4198,6 +3958,7 @@ export declare const Event: {
4198
3958
  readonly modelID: Schema.brand<Schema.String, "Model.ID">;
4199
3959
  }>>;
4200
3960
  readonly command: Schema.optional<Schema.String>;
3961
+ }>, Schema.Struct<{
4201
3962
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
4202
3963
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
4203
3964
  };
@@ -4208,7 +3969,6 @@ export declare const Event: {
4208
3969
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
4209
3970
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
4210
3971
  };
4211
- }>, Schema.Struct<{
4212
3972
  readonly type: Schema.Literal<"reasoning">;
4213
3973
  readonly text: Schema.String;
4214
3974
  readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Any>>;
@@ -4216,6 +3976,7 @@ export declare const Event: {
4216
3976
  readonly start: Schema.Int;
4217
3977
  readonly end: Schema.optional<Schema.Int>;
4218
3978
  }>;
3979
+ }>, Schema.Struct<{
4219
3980
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
4220
3981
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
4221
3982
  };
@@ -4226,20 +3987,24 @@ export declare const Event: {
4226
3987
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
4227
3988
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
4228
3989
  };
4229
- }>, Schema.Struct<{
4230
3990
  readonly type: Schema.Literal<"file">;
4231
3991
  readonly mime: Schema.String;
4232
3992
  readonly filename: Schema.optional<Schema.String>;
4233
3993
  readonly url: Schema.String;
4234
3994
  readonly source: Schema.optional<Schema.Union<readonly [Schema.Struct<{
3995
+ readonly text: Schema.Struct<{
3996
+ readonly value: Schema.String;
3997
+ readonly start: Schema.Finite;
3998
+ readonly end: Schema.Finite;
3999
+ }>;
4235
4000
  readonly type: Schema.Literal<"file">;
4236
4001
  readonly path: Schema.String;
4002
+ }>, Schema.Struct<{
4237
4003
  readonly text: Schema.Struct<{
4238
4004
  readonly value: Schema.String;
4239
4005
  readonly start: Schema.Finite;
4240
4006
  readonly end: Schema.Finite;
4241
4007
  }>;
4242
- }>, Schema.Struct<{
4243
4008
  readonly type: Schema.Literal<"symbol">;
4244
4009
  readonly path: Schema.String;
4245
4010
  readonly range: Schema.Struct<{
@@ -4254,21 +4019,17 @@ export declare const Event: {
4254
4019
  }>;
4255
4020
  readonly name: Schema.String;
4256
4021
  readonly kind: Schema.Int;
4022
+ }>, Schema.Struct<{
4257
4023
  readonly text: Schema.Struct<{
4258
4024
  readonly value: Schema.String;
4259
4025
  readonly start: Schema.Finite;
4260
4026
  readonly end: Schema.Finite;
4261
4027
  }>;
4262
- }>, Schema.Struct<{
4263
4028
  readonly type: Schema.Literal<"resource">;
4264
4029
  readonly clientName: Schema.String;
4265
4030
  readonly uri: Schema.String;
4266
- readonly text: Schema.Struct<{
4267
- readonly value: Schema.String;
4268
- readonly start: Schema.Finite;
4269
- readonly end: Schema.Finite;
4270
- }>;
4271
4031
  }>]>>;
4032
+ }>, Schema.Struct<{
4272
4033
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
4273
4034
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
4274
4035
  };
@@ -4279,7 +4040,6 @@ export declare const Event: {
4279
4040
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
4280
4041
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
4281
4042
  };
4282
- }>, Schema.Struct<{
4283
4043
  readonly type: Schema.Literal<"tool">;
4284
4044
  readonly callID: Schema.String;
4285
4045
  readonly tool: Schema.String;
@@ -4307,19 +4067,34 @@ export declare const Event: {
4307
4067
  readonly compacted: Schema.optional<Schema.Int>;
4308
4068
  }>;
4309
4069
  readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
4070
+ readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
4071
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
4072
+ };
4073
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
4074
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
4075
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4076
+ };
4077
+ readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
4078
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
4079
+ };
4310
4080
  readonly type: Schema.Literal<"file">;
4311
4081
  readonly mime: Schema.String;
4312
4082
  readonly filename: Schema.optional<Schema.String>;
4313
4083
  readonly url: Schema.String;
4314
4084
  readonly source: Schema.optional<Schema.Union<readonly [Schema.Struct<{
4085
+ readonly text: Schema.Struct<{
4086
+ readonly value: Schema.String;
4087
+ readonly start: Schema.Finite;
4088
+ readonly end: Schema.Finite;
4089
+ }>;
4315
4090
  readonly type: Schema.Literal<"file">;
4316
4091
  readonly path: Schema.String;
4092
+ }>, Schema.Struct<{
4317
4093
  readonly text: Schema.Struct<{
4318
4094
  readonly value: Schema.String;
4319
4095
  readonly start: Schema.Finite;
4320
4096
  readonly end: Schema.Finite;
4321
4097
  }>;
4322
- }>, Schema.Struct<{
4323
4098
  readonly type: Schema.Literal<"symbol">;
4324
4099
  readonly path: Schema.String;
4325
4100
  readonly range: Schema.Struct<{
@@ -4334,31 +4109,16 @@ export declare const Event: {
4334
4109
  }>;
4335
4110
  readonly name: Schema.String;
4336
4111
  readonly kind: Schema.Int;
4112
+ }>, Schema.Struct<{
4337
4113
  readonly text: Schema.Struct<{
4338
4114
  readonly value: Schema.String;
4339
4115
  readonly start: Schema.Finite;
4340
4116
  readonly end: Schema.Finite;
4341
4117
  }>;
4342
- }>, Schema.Struct<{
4343
4118
  readonly type: Schema.Literal<"resource">;
4344
4119
  readonly clientName: Schema.String;
4345
4120
  readonly uri: Schema.String;
4346
- readonly text: Schema.Struct<{
4347
- readonly value: Schema.String;
4348
- readonly start: Schema.Finite;
4349
- readonly end: Schema.Finite;
4350
- }>;
4351
4121
  }>]>>;
4352
- readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
4353
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
4354
- };
4355
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
4356
- create: () => string & import("effect/Brand").Brand<"SessionID">;
4357
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4358
- };
4359
- readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
4360
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
4361
- };
4362
4122
  }>>>;
4363
4123
  }>, Schema.Struct<{
4364
4124
  readonly status: Schema.Literal<"error">;
@@ -4371,6 +4131,7 @@ export declare const Event: {
4371
4131
  }>;
4372
4132
  }>]>;
4373
4133
  readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Any>>;
4134
+ }>, Schema.Struct<{
4374
4135
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
4375
4136
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
4376
4137
  };
@@ -4381,9 +4142,9 @@ export declare const Event: {
4381
4142
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
4382
4143
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
4383
4144
  };
4384
- }>, Schema.Struct<{
4385
4145
  readonly type: Schema.Literal<"step-start">;
4386
4146
  readonly snapshot: Schema.optional<Schema.String>;
4147
+ }>, Schema.Struct<{
4387
4148
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
4388
4149
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
4389
4150
  };
@@ -4394,7 +4155,6 @@ export declare const Event: {
4394
4155
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
4395
4156
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
4396
4157
  };
4397
- }>, Schema.Struct<{
4398
4158
  readonly type: Schema.Literal<"step-finish">;
4399
4159
  readonly reason: Schema.String;
4400
4160
  readonly snapshot: Schema.optional<Schema.String>;
@@ -4409,6 +4169,7 @@ export declare const Event: {
4409
4169
  readonly write: Schema.Finite;
4410
4170
  }>;
4411
4171
  }>;
4172
+ }>, Schema.Struct<{
4412
4173
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
4413
4174
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
4414
4175
  };
@@ -4419,9 +4180,9 @@ export declare const Event: {
4419
4180
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
4420
4181
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
4421
4182
  };
4422
- }>, Schema.Struct<{
4423
4183
  readonly type: Schema.Literal<"snapshot">;
4424
4184
  readonly snapshot: Schema.String;
4185
+ }>, Schema.Struct<{
4425
4186
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
4426
4187
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
4427
4188
  };
@@ -4432,10 +4193,10 @@ export declare const Event: {
4432
4193
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
4433
4194
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
4434
4195
  };
4435
- }>, Schema.Struct<{
4436
4196
  readonly type: Schema.Literal<"patch">;
4437
4197
  readonly hash: Schema.String;
4438
4198
  readonly files: Schema.$Array<Schema.String>;
4199
+ }>, Schema.Struct<{
4439
4200
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
4440
4201
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
4441
4202
  };
@@ -4446,7 +4207,6 @@ export declare const Event: {
4446
4207
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
4447
4208
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
4448
4209
  };
4449
- }>, Schema.Struct<{
4450
4210
  readonly type: Schema.Literal<"agent">;
4451
4211
  readonly name: Schema.String;
4452
4212
  readonly source: Schema.optional<Schema.Struct<{
@@ -4454,6 +4214,7 @@ export declare const Event: {
4454
4214
  readonly start: Schema.Int;
4455
4215
  readonly end: Schema.Int;
4456
4216
  }>>;
4217
+ }>, Schema.Struct<{
4457
4218
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
4458
4219
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
4459
4220
  };
@@ -4464,7 +4225,6 @@ export declare const Event: {
4464
4225
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
4465
4226
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
4466
4227
  };
4467
- }>, Schema.Struct<{
4468
4228
  readonly type: Schema.Literal<"retry">;
4469
4229
  readonly attempt: Schema.Int;
4470
4230
  readonly error: Schema.Struct<{
@@ -4481,6 +4241,7 @@ export declare const Event: {
4481
4241
  readonly time: Schema.Struct<{
4482
4242
  readonly created: Schema.Int;
4483
4243
  }>;
4244
+ }>, Schema.Struct<{
4484
4245
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
4485
4246
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
4486
4247
  };
@@ -4491,27 +4252,17 @@ export declare const Event: {
4491
4252
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
4492
4253
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
4493
4254
  };
4494
- }>, Schema.Struct<{
4495
4255
  readonly type: Schema.Literal<"compaction">;
4496
4256
  readonly auto: Schema.Boolean;
4497
4257
  readonly overflow: Schema.optional<Schema.Boolean>;
4498
4258
  readonly tail_start_id: Schema.optional<Schema.brand<Schema.String, "SessionV1.MessageID"> & {
4499
4259
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
4500
4260
  }>;
4501
- readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
4502
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
4503
- };
4504
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
4505
- create: () => string & import("effect/Brand").Brand<"SessionID">;
4506
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4507
- };
4508
- readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
4509
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
4510
- };
4511
4261
  }>]>;
4512
4262
  readonly time: Schema.Finite;
4513
4263
  }>;
4514
- }, Schema.Struct<{
4264
+ };
4265
+ PartRemoved: Schema.Struct<{
4515
4266
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
4516
4267
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
4517
4268
  };
@@ -4573,7 +4324,8 @@ export declare const Event: {
4573
4324
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
4574
4325
  };
4575
4326
  }>;
4576
- }, Schema.Struct<{
4327
+ };
4328
+ PartDelta: Schema.Struct<{
4577
4329
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
4578
4330
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
4579
4331
  };
@@ -4631,7 +4383,8 @@ export declare const Event: {
4631
4383
  readonly field: Schema.String;
4632
4384
  readonly delta: Schema.String;
4633
4385
  }>;
4634
- }, Schema.Struct<{
4386
+ };
4387
+ Diff: Schema.Struct<{
4635
4388
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
4636
4389
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
4637
4390
  };
@@ -4687,7 +4440,8 @@ export declare const Event: {
4687
4440
  readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["added", "deleted", "modified"]>>>, Schema.optionalKey<Schema.Literals<readonly ["added", "deleted", "modified"]>>, never, never>;
4688
4441
  }>>;
4689
4442
  }>;
4690
- }, Schema.Struct<{
4443
+ };
4444
+ Error: Schema.Struct<{
4691
4445
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
4692
4446
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
4693
4447
  };
@@ -4825,8 +4579,8 @@ export declare const Event: {
4825
4579
  }>;
4826
4580
  }>]>>;
4827
4581
  }>;
4828
- }];
4829
- Created: Schema.Struct<{
4582
+ };
4583
+ Definitions: readonly [Schema.Struct<{
4830
4584
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
4831
4585
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
4832
4586
  };
@@ -5194,8 +4948,7 @@ export declare const Event: {
5194
4948
  }>>, never, never>;
5195
4949
  }>;
5196
4950
  }>;
5197
- };
5198
- Updated: Schema.Struct<{
4951
+ }, Schema.Struct<{
5199
4952
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
5200
4953
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
5201
4954
  };
@@ -5563,8 +5316,7 @@ export declare const Event: {
5563
5316
  }>>, never, never>;
5564
5317
  }>;
5565
5318
  }>;
5566
- };
5567
- Deleted: Schema.Struct<{
5319
+ }, Schema.Struct<{
5568
5320
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
5569
5321
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
5570
5322
  };
@@ -5932,8 +5684,7 @@ export declare const Event: {
5932
5684
  }>>, never, never>;
5933
5685
  }>;
5934
5686
  }>;
5935
- };
5936
- MessageUpdated: Schema.Struct<{
5687
+ }, Schema.Struct<{
5937
5688
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
5938
5689
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
5939
5690
  };
@@ -5970,6 +5721,13 @@ export declare const Event: {
5970
5721
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5971
5722
  };
5972
5723
  readonly info: Schema.Union<readonly [Schema.Struct<{
5724
+ readonly id: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
5725
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
5726
+ };
5727
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
5728
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
5729
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5730
+ };
5973
5731
  readonly role: Schema.Literal<"user">;
5974
5732
  readonly time: Schema.Struct<{
5975
5733
  readonly created: Schema.Finite;
@@ -6006,6 +5764,7 @@ export declare const Event: {
6006
5764
  }>;
6007
5765
  readonly system: Schema.optional<Schema.String>;
6008
5766
  readonly tools: Schema.optional<Schema.$Record<Schema.String, Schema.Boolean>>;
5767
+ }>, Schema.Struct<{
6009
5768
  readonly id: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
6010
5769
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
6011
5770
  };
@@ -6013,7 +5772,6 @@ export declare const Event: {
6013
5772
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6014
5773
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6015
5774
  };
6016
- }>, Schema.Struct<{
6017
5775
  readonly role: Schema.Literal<"assistant">;
6018
5776
  readonly time: Schema.Struct<{
6019
5777
  readonly created: Schema.Int;
@@ -6105,13 +5863,6 @@ export declare const Event: {
6105
5863
  readonly structured: Schema.optional<Schema.Any>;
6106
5864
  readonly variant: Schema.optional<Schema.String>;
6107
5865
  readonly finish: Schema.optional<Schema.String>;
6108
- readonly id: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
6109
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
6110
- };
6111
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6112
- create: () => string & import("effect/Brand").Brand<"SessionID">;
6113
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6114
- };
6115
5866
  }>]>;
6116
5867
  }>;
6117
5868
  }> & {
@@ -6127,6 +5878,13 @@ export declare const Event: {
6127
5878
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6128
5879
  };
6129
5880
  readonly info: Schema.Union<readonly [Schema.Struct<{
5881
+ readonly id: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
5882
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
5883
+ };
5884
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
5885
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
5886
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
5887
+ };
6130
5888
  readonly role: Schema.Literal<"user">;
6131
5889
  readonly time: Schema.Struct<{
6132
5890
  readonly created: Schema.Finite;
@@ -6163,6 +5921,7 @@ export declare const Event: {
6163
5921
  }>;
6164
5922
  readonly system: Schema.optional<Schema.String>;
6165
5923
  readonly tools: Schema.optional<Schema.$Record<Schema.String, Schema.Boolean>>;
5924
+ }>, Schema.Struct<{
6166
5925
  readonly id: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
6167
5926
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
6168
5927
  };
@@ -6170,7 +5929,6 @@ export declare const Event: {
6170
5929
  create: () => string & import("effect/Brand").Brand<"SessionID">;
6171
5930
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6172
5931
  };
6173
- }>, Schema.Struct<{
6174
5932
  readonly role: Schema.Literal<"assistant">;
6175
5933
  readonly time: Schema.Struct<{
6176
5934
  readonly created: Schema.Int;
@@ -6262,17 +6020,9 @@ export declare const Event: {
6262
6020
  readonly structured: Schema.optional<Schema.Any>;
6263
6021
  readonly variant: Schema.optional<Schema.String>;
6264
6022
  readonly finish: Schema.optional<Schema.String>;
6265
- readonly id: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
6266
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
6267
- };
6268
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6269
- create: () => string & import("effect/Brand").Brand<"SessionID">;
6270
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6271
- };
6272
6023
  }>]>;
6273
6024
  }>;
6274
- };
6275
- MessageRemoved: Schema.Struct<{
6025
+ }, Schema.Struct<{
6276
6026
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
6277
6027
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
6278
6028
  };
@@ -6328,8 +6078,7 @@ export declare const Event: {
6328
6078
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
6329
6079
  };
6330
6080
  }>;
6331
- };
6332
- PartUpdated: Schema.Struct<{
6081
+ }, Schema.Struct<{
6333
6082
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
6334
6083
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
6335
6084
  };
@@ -6366,6 +6115,16 @@ export declare const Event: {
6366
6115
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6367
6116
  };
6368
6117
  readonly part: Schema.Union<readonly [Schema.Struct<{
6118
+ readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
6119
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
6120
+ };
6121
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6122
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
6123
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6124
+ };
6125
+ readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
6126
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
6127
+ };
6369
6128
  readonly type: Schema.Literal<"text">;
6370
6129
  readonly text: Schema.String;
6371
6130
  readonly synthetic: Schema.optional<Schema.Boolean>;
@@ -6375,6 +6134,7 @@ export declare const Event: {
6375
6134
  readonly end: Schema.optional<Schema.Int>;
6376
6135
  }>>;
6377
6136
  readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Any>>;
6137
+ }>, Schema.Struct<{
6378
6138
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
6379
6139
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
6380
6140
  };
@@ -6385,7 +6145,6 @@ export declare const Event: {
6385
6145
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
6386
6146
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
6387
6147
  };
6388
- }>, Schema.Struct<{
6389
6148
  readonly type: Schema.Literal<"subtask">;
6390
6149
  readonly prompt: Schema.String;
6391
6150
  readonly description: Schema.String;
@@ -6407,6 +6166,7 @@ export declare const Event: {
6407
6166
  readonly modelID: Schema.brand<Schema.String, "Model.ID">;
6408
6167
  }>>;
6409
6168
  readonly command: Schema.optional<Schema.String>;
6169
+ }>, Schema.Struct<{
6410
6170
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
6411
6171
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
6412
6172
  };
@@ -6417,7 +6177,6 @@ export declare const Event: {
6417
6177
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
6418
6178
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
6419
6179
  };
6420
- }>, Schema.Struct<{
6421
6180
  readonly type: Schema.Literal<"reasoning">;
6422
6181
  readonly text: Schema.String;
6423
6182
  readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Any>>;
@@ -6425,6 +6184,7 @@ export declare const Event: {
6425
6184
  readonly start: Schema.Int;
6426
6185
  readonly end: Schema.optional<Schema.Int>;
6427
6186
  }>;
6187
+ }>, Schema.Struct<{
6428
6188
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
6429
6189
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
6430
6190
  };
@@ -6435,20 +6195,24 @@ export declare const Event: {
6435
6195
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
6436
6196
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
6437
6197
  };
6438
- }>, Schema.Struct<{
6439
6198
  readonly type: Schema.Literal<"file">;
6440
6199
  readonly mime: Schema.String;
6441
6200
  readonly filename: Schema.optional<Schema.String>;
6442
6201
  readonly url: Schema.String;
6443
6202
  readonly source: Schema.optional<Schema.Union<readonly [Schema.Struct<{
6203
+ readonly text: Schema.Struct<{
6204
+ readonly value: Schema.String;
6205
+ readonly start: Schema.Finite;
6206
+ readonly end: Schema.Finite;
6207
+ }>;
6444
6208
  readonly type: Schema.Literal<"file">;
6445
6209
  readonly path: Schema.String;
6210
+ }>, Schema.Struct<{
6446
6211
  readonly text: Schema.Struct<{
6447
6212
  readonly value: Schema.String;
6448
6213
  readonly start: Schema.Finite;
6449
6214
  readonly end: Schema.Finite;
6450
6215
  }>;
6451
- }>, Schema.Struct<{
6452
6216
  readonly type: Schema.Literal<"symbol">;
6453
6217
  readonly path: Schema.String;
6454
6218
  readonly range: Schema.Struct<{
@@ -6463,21 +6227,17 @@ export declare const Event: {
6463
6227
  }>;
6464
6228
  readonly name: Schema.String;
6465
6229
  readonly kind: Schema.Int;
6230
+ }>, Schema.Struct<{
6466
6231
  readonly text: Schema.Struct<{
6467
6232
  readonly value: Schema.String;
6468
6233
  readonly start: Schema.Finite;
6469
6234
  readonly end: Schema.Finite;
6470
6235
  }>;
6471
- }>, Schema.Struct<{
6472
6236
  readonly type: Schema.Literal<"resource">;
6473
6237
  readonly clientName: Schema.String;
6474
6238
  readonly uri: Schema.String;
6475
- readonly text: Schema.Struct<{
6476
- readonly value: Schema.String;
6477
- readonly start: Schema.Finite;
6478
- readonly end: Schema.Finite;
6479
- }>;
6480
6239
  }>]>>;
6240
+ }>, Schema.Struct<{
6481
6241
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
6482
6242
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
6483
6243
  };
@@ -6488,7 +6248,6 @@ export declare const Event: {
6488
6248
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
6489
6249
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
6490
6250
  };
6491
- }>, Schema.Struct<{
6492
6251
  readonly type: Schema.Literal<"tool">;
6493
6252
  readonly callID: Schema.String;
6494
6253
  readonly tool: Schema.String;
@@ -6516,19 +6275,34 @@ export declare const Event: {
6516
6275
  readonly compacted: Schema.optional<Schema.Int>;
6517
6276
  }>;
6518
6277
  readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
6278
+ readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
6279
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
6280
+ };
6281
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6282
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
6283
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6284
+ };
6285
+ readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
6286
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
6287
+ };
6519
6288
  readonly type: Schema.Literal<"file">;
6520
6289
  readonly mime: Schema.String;
6521
6290
  readonly filename: Schema.optional<Schema.String>;
6522
6291
  readonly url: Schema.String;
6523
6292
  readonly source: Schema.optional<Schema.Union<readonly [Schema.Struct<{
6293
+ readonly text: Schema.Struct<{
6294
+ readonly value: Schema.String;
6295
+ readonly start: Schema.Finite;
6296
+ readonly end: Schema.Finite;
6297
+ }>;
6524
6298
  readonly type: Schema.Literal<"file">;
6525
6299
  readonly path: Schema.String;
6300
+ }>, Schema.Struct<{
6526
6301
  readonly text: Schema.Struct<{
6527
6302
  readonly value: Schema.String;
6528
6303
  readonly start: Schema.Finite;
6529
6304
  readonly end: Schema.Finite;
6530
6305
  }>;
6531
- }>, Schema.Struct<{
6532
6306
  readonly type: Schema.Literal<"symbol">;
6533
6307
  readonly path: Schema.String;
6534
6308
  readonly range: Schema.Struct<{
@@ -6543,31 +6317,16 @@ export declare const Event: {
6543
6317
  }>;
6544
6318
  readonly name: Schema.String;
6545
6319
  readonly kind: Schema.Int;
6320
+ }>, Schema.Struct<{
6546
6321
  readonly text: Schema.Struct<{
6547
6322
  readonly value: Schema.String;
6548
6323
  readonly start: Schema.Finite;
6549
6324
  readonly end: Schema.Finite;
6550
6325
  }>;
6551
- }>, Schema.Struct<{
6552
6326
  readonly type: Schema.Literal<"resource">;
6553
6327
  readonly clientName: Schema.String;
6554
6328
  readonly uri: Schema.String;
6555
- readonly text: Schema.Struct<{
6556
- readonly value: Schema.String;
6557
- readonly start: Schema.Finite;
6558
- readonly end: Schema.Finite;
6559
- }>;
6560
6329
  }>]>>;
6561
- readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
6562
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
6563
- };
6564
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6565
- create: () => string & import("effect/Brand").Brand<"SessionID">;
6566
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6567
- };
6568
- readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
6569
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
6570
- };
6571
6330
  }>>>;
6572
6331
  }>, Schema.Struct<{
6573
6332
  readonly status: Schema.Literal<"error">;
@@ -6580,6 +6339,7 @@ export declare const Event: {
6580
6339
  }>;
6581
6340
  }>]>;
6582
6341
  readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Any>>;
6342
+ }>, Schema.Struct<{
6583
6343
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
6584
6344
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
6585
6345
  };
@@ -6590,9 +6350,9 @@ export declare const Event: {
6590
6350
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
6591
6351
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
6592
6352
  };
6593
- }>, Schema.Struct<{
6594
6353
  readonly type: Schema.Literal<"step-start">;
6595
6354
  readonly snapshot: Schema.optional<Schema.String>;
6355
+ }>, Schema.Struct<{
6596
6356
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
6597
6357
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
6598
6358
  };
@@ -6603,7 +6363,6 @@ export declare const Event: {
6603
6363
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
6604
6364
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
6605
6365
  };
6606
- }>, Schema.Struct<{
6607
6366
  readonly type: Schema.Literal<"step-finish">;
6608
6367
  readonly reason: Schema.String;
6609
6368
  readonly snapshot: Schema.optional<Schema.String>;
@@ -6618,6 +6377,7 @@ export declare const Event: {
6618
6377
  readonly write: Schema.Finite;
6619
6378
  }>;
6620
6379
  }>;
6380
+ }>, Schema.Struct<{
6621
6381
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
6622
6382
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
6623
6383
  };
@@ -6628,9 +6388,9 @@ export declare const Event: {
6628
6388
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
6629
6389
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
6630
6390
  };
6631
- }>, Schema.Struct<{
6632
6391
  readonly type: Schema.Literal<"snapshot">;
6633
6392
  readonly snapshot: Schema.String;
6393
+ }>, Schema.Struct<{
6634
6394
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
6635
6395
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
6636
6396
  };
@@ -6641,10 +6401,10 @@ export declare const Event: {
6641
6401
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
6642
6402
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
6643
6403
  };
6644
- }>, Schema.Struct<{
6645
6404
  readonly type: Schema.Literal<"patch">;
6646
6405
  readonly hash: Schema.String;
6647
6406
  readonly files: Schema.$Array<Schema.String>;
6407
+ }>, Schema.Struct<{
6648
6408
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
6649
6409
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
6650
6410
  };
@@ -6655,7 +6415,6 @@ export declare const Event: {
6655
6415
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
6656
6416
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
6657
6417
  };
6658
- }>, Schema.Struct<{
6659
6418
  readonly type: Schema.Literal<"agent">;
6660
6419
  readonly name: Schema.String;
6661
6420
  readonly source: Schema.optional<Schema.Struct<{
@@ -6663,6 +6422,7 @@ export declare const Event: {
6663
6422
  readonly start: Schema.Int;
6664
6423
  readonly end: Schema.Int;
6665
6424
  }>>;
6425
+ }>, Schema.Struct<{
6666
6426
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
6667
6427
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
6668
6428
  };
@@ -6673,7 +6433,6 @@ export declare const Event: {
6673
6433
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
6674
6434
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
6675
6435
  };
6676
- }>, Schema.Struct<{
6677
6436
  readonly type: Schema.Literal<"retry">;
6678
6437
  readonly attempt: Schema.Int;
6679
6438
  readonly error: Schema.Struct<{
@@ -6690,6 +6449,7 @@ export declare const Event: {
6690
6449
  readonly time: Schema.Struct<{
6691
6450
  readonly created: Schema.Int;
6692
6451
  }>;
6452
+ }>, Schema.Struct<{
6693
6453
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
6694
6454
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
6695
6455
  };
@@ -6700,23 +6460,12 @@ export declare const Event: {
6700
6460
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
6701
6461
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
6702
6462
  };
6703
- }>, Schema.Struct<{
6704
6463
  readonly type: Schema.Literal<"compaction">;
6705
6464
  readonly auto: Schema.Boolean;
6706
6465
  readonly overflow: Schema.optional<Schema.Boolean>;
6707
6466
  readonly tail_start_id: Schema.optional<Schema.brand<Schema.String, "SessionV1.MessageID"> & {
6708
6467
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
6709
6468
  }>;
6710
- readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
6711
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
6712
- };
6713
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6714
- create: () => string & import("effect/Brand").Brand<"SessionID">;
6715
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6716
- };
6717
- readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
6718
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
6719
- };
6720
6469
  }>]>;
6721
6470
  readonly time: Schema.Finite;
6722
6471
  }>;
@@ -6733,6 +6482,16 @@ export declare const Event: {
6733
6482
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6734
6483
  };
6735
6484
  readonly part: Schema.Union<readonly [Schema.Struct<{
6485
+ readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
6486
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
6487
+ };
6488
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6489
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
6490
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6491
+ };
6492
+ readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
6493
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
6494
+ };
6736
6495
  readonly type: Schema.Literal<"text">;
6737
6496
  readonly text: Schema.String;
6738
6497
  readonly synthetic: Schema.optional<Schema.Boolean>;
@@ -6742,6 +6501,7 @@ export declare const Event: {
6742
6501
  readonly end: Schema.optional<Schema.Int>;
6743
6502
  }>>;
6744
6503
  readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Any>>;
6504
+ }>, Schema.Struct<{
6745
6505
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
6746
6506
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
6747
6507
  };
@@ -6752,7 +6512,6 @@ export declare const Event: {
6752
6512
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
6753
6513
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
6754
6514
  };
6755
- }>, Schema.Struct<{
6756
6515
  readonly type: Schema.Literal<"subtask">;
6757
6516
  readonly prompt: Schema.String;
6758
6517
  readonly description: Schema.String;
@@ -6774,6 +6533,7 @@ export declare const Event: {
6774
6533
  readonly modelID: Schema.brand<Schema.String, "Model.ID">;
6775
6534
  }>>;
6776
6535
  readonly command: Schema.optional<Schema.String>;
6536
+ }>, Schema.Struct<{
6777
6537
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
6778
6538
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
6779
6539
  };
@@ -6784,7 +6544,6 @@ export declare const Event: {
6784
6544
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
6785
6545
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
6786
6546
  };
6787
- }>, Schema.Struct<{
6788
6547
  readonly type: Schema.Literal<"reasoning">;
6789
6548
  readonly text: Schema.String;
6790
6549
  readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Any>>;
@@ -6792,6 +6551,7 @@ export declare const Event: {
6792
6551
  readonly start: Schema.Int;
6793
6552
  readonly end: Schema.optional<Schema.Int>;
6794
6553
  }>;
6554
+ }>, Schema.Struct<{
6795
6555
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
6796
6556
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
6797
6557
  };
@@ -6802,20 +6562,24 @@ export declare const Event: {
6802
6562
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
6803
6563
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
6804
6564
  };
6805
- }>, Schema.Struct<{
6806
6565
  readonly type: Schema.Literal<"file">;
6807
6566
  readonly mime: Schema.String;
6808
6567
  readonly filename: Schema.optional<Schema.String>;
6809
6568
  readonly url: Schema.String;
6810
6569
  readonly source: Schema.optional<Schema.Union<readonly [Schema.Struct<{
6570
+ readonly text: Schema.Struct<{
6571
+ readonly value: Schema.String;
6572
+ readonly start: Schema.Finite;
6573
+ readonly end: Schema.Finite;
6574
+ }>;
6811
6575
  readonly type: Schema.Literal<"file">;
6812
6576
  readonly path: Schema.String;
6577
+ }>, Schema.Struct<{
6813
6578
  readonly text: Schema.Struct<{
6814
6579
  readonly value: Schema.String;
6815
6580
  readonly start: Schema.Finite;
6816
6581
  readonly end: Schema.Finite;
6817
6582
  }>;
6818
- }>, Schema.Struct<{
6819
6583
  readonly type: Schema.Literal<"symbol">;
6820
6584
  readonly path: Schema.String;
6821
6585
  readonly range: Schema.Struct<{
@@ -6830,21 +6594,17 @@ export declare const Event: {
6830
6594
  }>;
6831
6595
  readonly name: Schema.String;
6832
6596
  readonly kind: Schema.Int;
6597
+ }>, Schema.Struct<{
6833
6598
  readonly text: Schema.Struct<{
6834
6599
  readonly value: Schema.String;
6835
6600
  readonly start: Schema.Finite;
6836
6601
  readonly end: Schema.Finite;
6837
6602
  }>;
6838
- }>, Schema.Struct<{
6839
6603
  readonly type: Schema.Literal<"resource">;
6840
6604
  readonly clientName: Schema.String;
6841
6605
  readonly uri: Schema.String;
6842
- readonly text: Schema.Struct<{
6843
- readonly value: Schema.String;
6844
- readonly start: Schema.Finite;
6845
- readonly end: Schema.Finite;
6846
- }>;
6847
6606
  }>]>>;
6607
+ }>, Schema.Struct<{
6848
6608
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
6849
6609
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
6850
6610
  };
@@ -6855,7 +6615,6 @@ export declare const Event: {
6855
6615
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
6856
6616
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
6857
6617
  };
6858
- }>, Schema.Struct<{
6859
6618
  readonly type: Schema.Literal<"tool">;
6860
6619
  readonly callID: Schema.String;
6861
6620
  readonly tool: Schema.String;
@@ -6883,19 +6642,34 @@ export declare const Event: {
6883
6642
  readonly compacted: Schema.optional<Schema.Int>;
6884
6643
  }>;
6885
6644
  readonly attachments: Schema.optional<Schema.$Array<Schema.Struct<{
6645
+ readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
6646
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
6647
+ };
6648
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6649
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
6650
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6651
+ };
6652
+ readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
6653
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
6654
+ };
6886
6655
  readonly type: Schema.Literal<"file">;
6887
6656
  readonly mime: Schema.String;
6888
6657
  readonly filename: Schema.optional<Schema.String>;
6889
6658
  readonly url: Schema.String;
6890
6659
  readonly source: Schema.optional<Schema.Union<readonly [Schema.Struct<{
6660
+ readonly text: Schema.Struct<{
6661
+ readonly value: Schema.String;
6662
+ readonly start: Schema.Finite;
6663
+ readonly end: Schema.Finite;
6664
+ }>;
6891
6665
  readonly type: Schema.Literal<"file">;
6892
6666
  readonly path: Schema.String;
6667
+ }>, Schema.Struct<{
6893
6668
  readonly text: Schema.Struct<{
6894
6669
  readonly value: Schema.String;
6895
6670
  readonly start: Schema.Finite;
6896
6671
  readonly end: Schema.Finite;
6897
6672
  }>;
6898
- }>, Schema.Struct<{
6899
6673
  readonly type: Schema.Literal<"symbol">;
6900
6674
  readonly path: Schema.String;
6901
6675
  readonly range: Schema.Struct<{
@@ -6910,31 +6684,16 @@ export declare const Event: {
6910
6684
  }>;
6911
6685
  readonly name: Schema.String;
6912
6686
  readonly kind: Schema.Int;
6687
+ }>, Schema.Struct<{
6913
6688
  readonly text: Schema.Struct<{
6914
6689
  readonly value: Schema.String;
6915
6690
  readonly start: Schema.Finite;
6916
6691
  readonly end: Schema.Finite;
6917
6692
  }>;
6918
- }>, Schema.Struct<{
6919
6693
  readonly type: Schema.Literal<"resource">;
6920
6694
  readonly clientName: Schema.String;
6921
6695
  readonly uri: Schema.String;
6922
- readonly text: Schema.Struct<{
6923
- readonly value: Schema.String;
6924
- readonly start: Schema.Finite;
6925
- readonly end: Schema.Finite;
6926
- }>;
6927
6696
  }>]>>;
6928
- readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
6929
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
6930
- };
6931
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6932
- create: () => string & import("effect/Brand").Brand<"SessionID">;
6933
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6934
- };
6935
- readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
6936
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
6937
- };
6938
6697
  }>>>;
6939
6698
  }>, Schema.Struct<{
6940
6699
  readonly status: Schema.Literal<"error">;
@@ -6947,6 +6706,7 @@ export declare const Event: {
6947
6706
  }>;
6948
6707
  }>]>;
6949
6708
  readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Any>>;
6709
+ }>, Schema.Struct<{
6950
6710
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
6951
6711
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
6952
6712
  };
@@ -6957,9 +6717,9 @@ export declare const Event: {
6957
6717
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
6958
6718
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
6959
6719
  };
6960
- }>, Schema.Struct<{
6961
6720
  readonly type: Schema.Literal<"step-start">;
6962
6721
  readonly snapshot: Schema.optional<Schema.String>;
6722
+ }>, Schema.Struct<{
6963
6723
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
6964
6724
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
6965
6725
  };
@@ -6970,7 +6730,6 @@ export declare const Event: {
6970
6730
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
6971
6731
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
6972
6732
  };
6973
- }>, Schema.Struct<{
6974
6733
  readonly type: Schema.Literal<"step-finish">;
6975
6734
  readonly reason: Schema.String;
6976
6735
  readonly snapshot: Schema.optional<Schema.String>;
@@ -6985,6 +6744,7 @@ export declare const Event: {
6985
6744
  readonly write: Schema.Finite;
6986
6745
  }>;
6987
6746
  }>;
6747
+ }>, Schema.Struct<{
6988
6748
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
6989
6749
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
6990
6750
  };
@@ -6995,9 +6755,9 @@ export declare const Event: {
6995
6755
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
6996
6756
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
6997
6757
  };
6998
- }>, Schema.Struct<{
6999
6758
  readonly type: Schema.Literal<"snapshot">;
7000
6759
  readonly snapshot: Schema.String;
6760
+ }>, Schema.Struct<{
7001
6761
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
7002
6762
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
7003
6763
  };
@@ -7008,10 +6768,10 @@ export declare const Event: {
7008
6768
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
7009
6769
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
7010
6770
  };
7011
- }>, Schema.Struct<{
7012
6771
  readonly type: Schema.Literal<"patch">;
7013
6772
  readonly hash: Schema.String;
7014
6773
  readonly files: Schema.$Array<Schema.String>;
6774
+ }>, Schema.Struct<{
7015
6775
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
7016
6776
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
7017
6777
  };
@@ -7022,7 +6782,6 @@ export declare const Event: {
7022
6782
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
7023
6783
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
7024
6784
  };
7025
- }>, Schema.Struct<{
7026
6785
  readonly type: Schema.Literal<"agent">;
7027
6786
  readonly name: Schema.String;
7028
6787
  readonly source: Schema.optional<Schema.Struct<{
@@ -7030,6 +6789,7 @@ export declare const Event: {
7030
6789
  readonly start: Schema.Int;
7031
6790
  readonly end: Schema.Int;
7032
6791
  }>>;
6792
+ }>, Schema.Struct<{
7033
6793
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
7034
6794
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
7035
6795
  };
@@ -7040,7 +6800,6 @@ export declare const Event: {
7040
6800
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
7041
6801
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
7042
6802
  };
7043
- }>, Schema.Struct<{
7044
6803
  readonly type: Schema.Literal<"retry">;
7045
6804
  readonly attempt: Schema.Int;
7046
6805
  readonly error: Schema.Struct<{
@@ -7057,6 +6816,7 @@ export declare const Event: {
7057
6816
  readonly time: Schema.Struct<{
7058
6817
  readonly created: Schema.Int;
7059
6818
  }>;
6819
+ }>, Schema.Struct<{
7060
6820
  readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
7061
6821
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
7062
6822
  };
@@ -7067,28 +6827,16 @@ export declare const Event: {
7067
6827
  readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
7068
6828
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
7069
6829
  };
7070
- }>, Schema.Struct<{
7071
6830
  readonly type: Schema.Literal<"compaction">;
7072
6831
  readonly auto: Schema.Boolean;
7073
6832
  readonly overflow: Schema.optional<Schema.Boolean>;
7074
6833
  readonly tail_start_id: Schema.optional<Schema.brand<Schema.String, "SessionV1.MessageID"> & {
7075
6834
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
7076
6835
  }>;
7077
- readonly id: Schema.brand<Schema.String, "SessionV1.PartID"> & {
7078
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
7079
- };
7080
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7081
- create: () => string & import("effect/Brand").Brand<"SessionID">;
7082
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7083
- };
7084
- readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
7085
- ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
7086
- };
7087
6836
  }>]>;
7088
6837
  readonly time: Schema.Finite;
7089
6838
  }>;
7090
- };
7091
- PartRemoved: Schema.Struct<{
6839
+ }, Schema.Struct<{
7092
6840
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
7093
6841
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
7094
6842
  };
@@ -7150,5 +6898,257 @@ export declare const Event: {
7150
6898
  ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
7151
6899
  };
7152
6900
  }>;
7153
- };
6901
+ }, Schema.Struct<{
6902
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
6903
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
6904
+ };
6905
+ readonly created: Schema.Finite;
6906
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
6907
+ readonly type: Schema.Literal<"message.part.delta">;
6908
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
6909
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
6910
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
6911
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
6912
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
6913
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
6914
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
6915
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
6916
+ }>, never, never>;
6917
+ }>>>, Schema.optionalKey<Schema.Struct<{
6918
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
6919
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
6920
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
6921
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
6922
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
6923
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
6924
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
6925
+ }>, never, never>;
6926
+ }>>, never, never>;
6927
+ readonly data: Schema.Struct<{
6928
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6929
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
6930
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6931
+ };
6932
+ readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
6933
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
6934
+ };
6935
+ readonly partID: Schema.brand<Schema.String, "SessionV1.PartID"> & {
6936
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
6937
+ };
6938
+ readonly field: Schema.String;
6939
+ readonly delta: Schema.String;
6940
+ }>;
6941
+ }> & {
6942
+ type: "message.part.delta";
6943
+ durability: "ephemeral";
6944
+ durable: undefined;
6945
+ data: Schema.Struct<{
6946
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6947
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
6948
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6949
+ };
6950
+ readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
6951
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.MessageID">;
6952
+ };
6953
+ readonly partID: Schema.brand<Schema.String, "SessionV1.PartID"> & {
6954
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"SessionV1.PartID">;
6955
+ };
6956
+ readonly field: Schema.String;
6957
+ readonly delta: Schema.String;
6958
+ }>;
6959
+ }, Schema.Struct<{
6960
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
6961
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
6962
+ };
6963
+ readonly created: Schema.Finite;
6964
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
6965
+ readonly type: Schema.Literal<"session.diff">;
6966
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
6967
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
6968
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
6969
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
6970
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
6971
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
6972
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
6973
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
6974
+ }>, never, never>;
6975
+ }>>>, Schema.optionalKey<Schema.Struct<{
6976
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
6977
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
6978
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
6979
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
6980
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
6981
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
6982
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
6983
+ }>, never, never>;
6984
+ }>>, never, never>;
6985
+ readonly data: Schema.Struct<{
6986
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6987
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
6988
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6989
+ };
6990
+ readonly diff: Schema.$Array<Schema.Struct<{
6991
+ readonly file: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
6992
+ readonly patch: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
6993
+ readonly additions: Schema.Finite;
6994
+ readonly deletions: Schema.Finite;
6995
+ readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["added", "deleted", "modified"]>>>, Schema.optionalKey<Schema.Literals<readonly ["added", "deleted", "modified"]>>, never, never>;
6996
+ }>>;
6997
+ }>;
6998
+ }> & {
6999
+ type: "session.diff";
7000
+ durability: "ephemeral";
7001
+ durable: undefined;
7002
+ data: Schema.Struct<{
7003
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7004
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
7005
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7006
+ };
7007
+ readonly diff: Schema.$Array<Schema.Struct<{
7008
+ readonly file: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
7009
+ readonly patch: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
7010
+ readonly additions: Schema.Finite;
7011
+ readonly deletions: Schema.Finite;
7012
+ readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["added", "deleted", "modified"]>>>, Schema.optionalKey<Schema.Literals<readonly ["added", "deleted", "modified"]>>, never, never>;
7013
+ }>>;
7014
+ }>;
7015
+ }, Schema.Struct<{
7016
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
7017
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
7018
+ };
7019
+ readonly created: Schema.Finite;
7020
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
7021
+ readonly type: Schema.Literal<"session.error">;
7022
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
7023
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
7024
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
7025
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
7026
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
7027
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
7028
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
7029
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
7030
+ }>, never, never>;
7031
+ }>>>, Schema.optionalKey<Schema.Struct<{
7032
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
7033
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
7034
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
7035
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
7036
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
7037
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
7038
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
7039
+ }>, never, never>;
7040
+ }>>, never, never>;
7041
+ readonly data: Schema.Struct<{
7042
+ readonly sessionID: Schema.optional<Schema.brand<Schema.String, "SessionID"> & {
7043
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
7044
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7045
+ }>;
7046
+ readonly error: Schema.optional<Schema.Union<readonly [Schema.Struct<{
7047
+ readonly name: Schema.Literal<"ProviderAuthError">;
7048
+ readonly data: Schema.Struct<{
7049
+ providerID: Schema.String;
7050
+ message: Schema.String;
7051
+ }>;
7052
+ }>, Schema.Struct<{
7053
+ readonly name: Schema.Literal<"UnknownError">;
7054
+ readonly data: Schema.Struct<{
7055
+ message: Schema.String;
7056
+ ref: Schema.optional<Schema.String>;
7057
+ }>;
7058
+ }>, Schema.Struct<{
7059
+ readonly name: Schema.Literal<"MessageOutputLengthError">;
7060
+ readonly data: Schema.Struct<{}>;
7061
+ }>, Schema.Struct<{
7062
+ readonly name: Schema.Literal<"MessageAbortedError">;
7063
+ readonly data: Schema.Struct<{
7064
+ message: Schema.String;
7065
+ }>;
7066
+ }>, Schema.Struct<{
7067
+ readonly name: Schema.Literal<"StructuredOutputError">;
7068
+ readonly data: Schema.Struct<{
7069
+ message: Schema.String;
7070
+ retries: Schema.Int;
7071
+ }>;
7072
+ }>, Schema.Struct<{
7073
+ readonly name: Schema.Literal<"ContextOverflowError">;
7074
+ readonly data: Schema.Struct<{
7075
+ message: Schema.String;
7076
+ responseBody: Schema.optional<Schema.String>;
7077
+ }>;
7078
+ }>, Schema.Struct<{
7079
+ readonly name: Schema.Literal<"ContentFilterError">;
7080
+ readonly data: Schema.Struct<{
7081
+ message: Schema.String;
7082
+ }>;
7083
+ }>, Schema.Struct<{
7084
+ readonly name: Schema.Literal<"APIError">;
7085
+ readonly data: Schema.Struct<{
7086
+ message: Schema.String;
7087
+ statusCode: Schema.optional<Schema.Int>;
7088
+ isRetryable: Schema.Boolean;
7089
+ responseHeaders: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
7090
+ responseBody: Schema.optional<Schema.String>;
7091
+ metadata: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
7092
+ }>;
7093
+ }>]>>;
7094
+ }>;
7095
+ }> & {
7096
+ type: "session.error";
7097
+ durability: "ephemeral";
7098
+ durable: undefined;
7099
+ data: Schema.Struct<{
7100
+ readonly sessionID: Schema.optional<Schema.brand<Schema.String, "SessionID"> & {
7101
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
7102
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
7103
+ }>;
7104
+ readonly error: Schema.optional<Schema.Union<readonly [Schema.Struct<{
7105
+ readonly name: Schema.Literal<"ProviderAuthError">;
7106
+ readonly data: Schema.Struct<{
7107
+ providerID: Schema.String;
7108
+ message: Schema.String;
7109
+ }>;
7110
+ }>, Schema.Struct<{
7111
+ readonly name: Schema.Literal<"UnknownError">;
7112
+ readonly data: Schema.Struct<{
7113
+ message: Schema.String;
7114
+ ref: Schema.optional<Schema.String>;
7115
+ }>;
7116
+ }>, Schema.Struct<{
7117
+ readonly name: Schema.Literal<"MessageOutputLengthError">;
7118
+ readonly data: Schema.Struct<{}>;
7119
+ }>, Schema.Struct<{
7120
+ readonly name: Schema.Literal<"MessageAbortedError">;
7121
+ readonly data: Schema.Struct<{
7122
+ message: Schema.String;
7123
+ }>;
7124
+ }>, Schema.Struct<{
7125
+ readonly name: Schema.Literal<"StructuredOutputError">;
7126
+ readonly data: Schema.Struct<{
7127
+ message: Schema.String;
7128
+ retries: Schema.Int;
7129
+ }>;
7130
+ }>, Schema.Struct<{
7131
+ readonly name: Schema.Literal<"ContextOverflowError">;
7132
+ readonly data: Schema.Struct<{
7133
+ message: Schema.String;
7134
+ responseBody: Schema.optional<Schema.String>;
7135
+ }>;
7136
+ }>, Schema.Struct<{
7137
+ readonly name: Schema.Literal<"ContentFilterError">;
7138
+ readonly data: Schema.Struct<{
7139
+ message: Schema.String;
7140
+ }>;
7141
+ }>, Schema.Struct<{
7142
+ readonly name: Schema.Literal<"APIError">;
7143
+ readonly data: Schema.Struct<{
7144
+ message: Schema.String;
7145
+ statusCode: Schema.optional<Schema.Int>;
7146
+ isRetryable: Schema.Boolean;
7147
+ responseHeaders: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
7148
+ responseBody: Schema.optional<Schema.String>;
7149
+ metadata: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
7150
+ }>;
7151
+ }>]>>;
7152
+ }>;
7153
+ }];
7154
7154
  };