@opencode/schema 0.0.0-dev-21105 → 0.0.0-dev-21107

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.
@@ -259,6 +259,8 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
259
259
  readonly source: "current";
260
260
  readonly revert: {
261
261
  readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
262
+ readonly partID?: string | undefined;
263
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
262
264
  readonly files?: readonly {
263
265
  readonly file: string;
264
266
  readonly patch: string;
@@ -266,13 +268,14 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
266
268
  readonly deletions: number;
267
269
  readonly status: "added" | "deleted" | "modified";
268
270
  }[] | undefined;
269
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
270
- readonly partID?: string | undefined;
271
271
  };
272
272
  } | {
273
273
  readonly source: "legacy";
274
274
  readonly revert: {
275
275
  readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
276
+ readonly partID?: string | undefined;
277
+ readonly snapshot?: string | undefined;
278
+ readonly diff?: string | undefined;
276
279
  readonly files?: readonly {
277
280
  readonly path: string;
278
281
  readonly status: "added" | "deleted" | "modified";
@@ -280,14 +283,13 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
280
283
  readonly deletions: number;
281
284
  readonly patch: string;
282
285
  }[] | undefined;
283
- readonly snapshot?: string | undefined;
284
- readonly partID?: string | undefined;
285
- readonly diff?: string | undefined;
286
286
  };
287
287
  }) => value is Extract<{
288
288
  readonly source: "current";
289
289
  readonly revert: {
290
290
  readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
291
+ readonly partID?: string | undefined;
292
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
291
293
  readonly files?: readonly {
292
294
  readonly file: string;
293
295
  readonly patch: string;
@@ -295,8 +297,6 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
295
297
  readonly deletions: number;
296
298
  readonly status: "added" | "deleted" | "modified";
297
299
  }[] | undefined;
298
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
299
- readonly partID?: string | undefined;
300
300
  };
301
301
  }, {
302
302
  readonly source: Keys;
@@ -304,6 +304,9 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
304
304
  readonly source: "legacy";
305
305
  readonly revert: {
306
306
  readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
307
+ readonly partID?: string | undefined;
308
+ readonly snapshot?: string | undefined;
309
+ readonly diff?: string | undefined;
307
310
  readonly files?: readonly {
308
311
  readonly path: string;
309
312
  readonly status: "added" | "deleted" | "modified";
@@ -311,9 +314,6 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
311
314
  readonly deletions: number;
312
315
  readonly patch: string;
313
316
  }[] | undefined;
314
- readonly snapshot?: string | undefined;
315
- readonly partID?: string | undefined;
316
- readonly diff?: string | undefined;
317
317
  };
318
318
  }, {
319
319
  readonly source: Keys;
@@ -323,6 +323,8 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
323
323
  readonly source: "current";
324
324
  readonly revert: {
325
325
  readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
326
+ readonly partID?: string | undefined;
327
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
326
328
  readonly files?: readonly {
327
329
  readonly file: string;
328
330
  readonly patch: string;
@@ -330,14 +332,15 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
330
332
  readonly deletions: number;
331
333
  readonly status: "added" | "deleted" | "modified";
332
334
  }[] | undefined;
333
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
334
- readonly partID?: string | undefined;
335
335
  };
336
336
  };
337
337
  legacy: (u: unknown) => u is {
338
338
  readonly source: "legacy";
339
339
  readonly revert: {
340
340
  readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
341
+ readonly partID?: string | undefined;
342
+ readonly snapshot?: string | undefined;
343
+ readonly diff?: string | undefined;
341
344
  readonly files?: readonly {
342
345
  readonly path: string;
343
346
  readonly status: "added" | "deleted" | "modified";
@@ -345,49 +348,106 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
345
348
  readonly deletions: number;
346
349
  readonly patch: string;
347
350
  }[] | undefined;
348
- readonly snapshot?: string | undefined;
349
- readonly partID?: string | undefined;
350
- readonly diff?: string | undefined;
351
351
  };
352
352
  };
353
353
  };
354
354
  readonly match: {
355
- <Cases extends {
356
- current: (value: {
357
- readonly source: "current";
358
- readonly revert: {
359
- readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
360
- readonly files?: readonly {
361
- readonly file: string;
362
- readonly patch: string;
363
- readonly additions: number;
364
- readonly deletions: number;
365
- readonly status: "added" | "deleted" | "modified";
366
- }[] | undefined;
367
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
368
- readonly partID?: string | undefined;
355
+ <Cases extends { [M in Schema.decodeTo<Schema.Struct<{
356
+ readonly source: Schema.tag<"current">;
357
+ readonly revert: Schema.toType<Schema.Struct<{
358
+ readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
359
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
360
+ fromEvent: (eventID: import("./event.js").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
369
361
  };
370
- }) => any;
371
- legacy: (value: {
372
- readonly source: "legacy";
373
- readonly revert: {
374
- readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
375
- readonly files?: readonly {
376
- readonly path: string;
377
- readonly status: "added" | "deleted" | "modified";
378
- readonly additions: number;
379
- readonly deletions: number;
380
- readonly patch: string;
381
- }[] | undefined;
382
- readonly snapshot?: string | undefined;
383
- readonly partID?: string | undefined;
384
- readonly diff?: string | undefined;
362
+ /** Legacy V1 compatibility state. */
363
+ readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
364
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
365
+ readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
366
+ readonly file: Schema.String;
367
+ readonly patch: Schema.String;
368
+ readonly additions: Schema.Int;
369
+ readonly deletions: Schema.Int;
370
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
371
+ }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
372
+ readonly file: Schema.String;
373
+ readonly patch: Schema.String;
374
+ readonly additions: Schema.Int;
375
+ readonly deletions: Schema.Int;
376
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
377
+ }>>>, never, never>;
378
+ }>>;
379
+ }>, Schema.Struct<{
380
+ readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
381
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
382
+ fromEvent: (eventID: import("./event.js").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
383
+ };
384
+ /** Legacy V1 compatibility state. */
385
+ readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
386
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
387
+ readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
388
+ readonly file: Schema.String;
389
+ readonly patch: Schema.String;
390
+ readonly additions: Schema.Int;
391
+ readonly deletions: Schema.Int;
392
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
393
+ }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
394
+ readonly file: Schema.String;
395
+ readonly patch: Schema.String;
396
+ readonly additions: Schema.Int;
397
+ readonly deletions: Schema.Int;
398
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
399
+ }>>>, never, never>;
400
+ }>, never, never> | Schema.decodeTo<Schema.Struct<{
401
+ readonly source: Schema.tag<"legacy">;
402
+ readonly revert: Schema.toType<Schema.Struct<{
403
+ readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
404
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
405
+ fromEvent: (eventID: import("./event.js").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
385
406
  };
386
- }) => any;
387
- }>(value: {
407
+ readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
408
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
409
+ readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
410
+ readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
411
+ readonly path: Schema.String;
412
+ readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
413
+ readonly additions: Schema.Finite;
414
+ readonly deletions: Schema.Finite;
415
+ readonly patch: Schema.String;
416
+ }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
417
+ readonly path: Schema.String;
418
+ readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
419
+ readonly additions: Schema.Finite;
420
+ readonly deletions: Schema.Finite;
421
+ readonly patch: Schema.String;
422
+ }>>>, never, never>;
423
+ }>>;
424
+ }>, Schema.Struct<{
425
+ readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
426
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
427
+ fromEvent: (eventID: import("./event.js").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
428
+ };
429
+ readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
430
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
431
+ readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
432
+ readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
433
+ readonly path: Schema.String;
434
+ readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
435
+ readonly additions: Schema.Finite;
436
+ readonly deletions: Schema.Finite;
437
+ readonly patch: Schema.String;
438
+ }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
439
+ readonly path: Schema.String;
440
+ readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
441
+ readonly additions: Schema.Finite;
442
+ readonly deletions: Schema.Finite;
443
+ readonly patch: Schema.String;
444
+ }>>>, never, never>;
445
+ }>, never, never> as M["Type"]["source"]]: (value: M["Type"]) => any; }>(value: {
388
446
  readonly source: "current";
389
447
  readonly revert: {
390
448
  readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
449
+ readonly partID?: string | undefined;
450
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
391
451
  readonly files?: readonly {
392
452
  readonly file: string;
393
453
  readonly patch: string;
@@ -395,13 +455,14 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
395
455
  readonly deletions: number;
396
456
  readonly status: "added" | "deleted" | "modified";
397
457
  }[] | undefined;
398
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
399
- readonly partID?: string | undefined;
400
458
  };
401
459
  } | {
402
460
  readonly source: "legacy";
403
461
  readonly revert: {
404
462
  readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
463
+ readonly partID?: string | undefined;
464
+ readonly snapshot?: string | undefined;
465
+ readonly diff?: string | undefined;
405
466
  readonly files?: readonly {
406
467
  readonly path: string;
407
468
  readonly status: "added" | "deleted" | "modified";
@@ -409,47 +470,104 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
409
470
  readonly deletions: number;
410
471
  readonly patch: string;
411
472
  }[] | undefined;
412
- readonly snapshot?: string | undefined;
413
- readonly partID?: string | undefined;
414
- readonly diff?: string | undefined;
415
473
  };
416
474
  }, cases: Cases): Cases[keyof Cases] extends (value: any) => infer R ? import("effect/Unify").Unify<R> : never;
417
- <Cases extends {
418
- current: (value: {
419
- readonly source: "current";
420
- readonly revert: {
421
- readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
422
- readonly files?: readonly {
423
- readonly file: string;
424
- readonly patch: string;
425
- readonly additions: number;
426
- readonly deletions: number;
427
- readonly status: "added" | "deleted" | "modified";
428
- }[] | undefined;
429
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
430
- readonly partID?: string | undefined;
475
+ <Cases extends { [M in Schema.decodeTo<Schema.Struct<{
476
+ readonly source: Schema.tag<"current">;
477
+ readonly revert: Schema.toType<Schema.Struct<{
478
+ readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
479
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
480
+ fromEvent: (eventID: import("./event.js").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
431
481
  };
432
- }) => any;
433
- legacy: (value: {
434
- readonly source: "legacy";
435
- readonly revert: {
436
- readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
437
- readonly files?: readonly {
438
- readonly path: string;
439
- readonly status: "added" | "deleted" | "modified";
440
- readonly additions: number;
441
- readonly deletions: number;
442
- readonly patch: string;
443
- }[] | undefined;
444
- readonly snapshot?: string | undefined;
445
- readonly partID?: string | undefined;
446
- readonly diff?: string | undefined;
482
+ /** Legacy V1 compatibility state. */
483
+ readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
484
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
485
+ readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
486
+ readonly file: Schema.String;
487
+ readonly patch: Schema.String;
488
+ readonly additions: Schema.Int;
489
+ readonly deletions: Schema.Int;
490
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
491
+ }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
492
+ readonly file: Schema.String;
493
+ readonly patch: Schema.String;
494
+ readonly additions: Schema.Int;
495
+ readonly deletions: Schema.Int;
496
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
497
+ }>>>, never, never>;
498
+ }>>;
499
+ }>, Schema.Struct<{
500
+ readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
501
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
502
+ fromEvent: (eventID: import("./event.js").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
503
+ };
504
+ /** Legacy V1 compatibility state. */
505
+ readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
506
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
507
+ readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
508
+ readonly file: Schema.String;
509
+ readonly patch: Schema.String;
510
+ readonly additions: Schema.Int;
511
+ readonly deletions: Schema.Int;
512
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
513
+ }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
514
+ readonly file: Schema.String;
515
+ readonly patch: Schema.String;
516
+ readonly additions: Schema.Int;
517
+ readonly deletions: Schema.Int;
518
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
519
+ }>>>, never, never>;
520
+ }>, never, never> | Schema.decodeTo<Schema.Struct<{
521
+ readonly source: Schema.tag<"legacy">;
522
+ readonly revert: Schema.toType<Schema.Struct<{
523
+ readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
524
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
525
+ fromEvent: (eventID: import("./event.js").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
447
526
  };
448
- }) => any;
449
- }>(cases: Cases): (value: {
527
+ readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
528
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
529
+ readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
530
+ readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
531
+ readonly path: Schema.String;
532
+ readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
533
+ readonly additions: Schema.Finite;
534
+ readonly deletions: Schema.Finite;
535
+ readonly patch: Schema.String;
536
+ }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
537
+ readonly path: Schema.String;
538
+ readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
539
+ readonly additions: Schema.Finite;
540
+ readonly deletions: Schema.Finite;
541
+ readonly patch: Schema.String;
542
+ }>>>, never, never>;
543
+ }>>;
544
+ }>, Schema.Struct<{
545
+ readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
546
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
547
+ fromEvent: (eventID: import("./event.js").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
548
+ };
549
+ readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
550
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
551
+ readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
552
+ readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
553
+ readonly path: Schema.String;
554
+ readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
555
+ readonly additions: Schema.Finite;
556
+ readonly deletions: Schema.Finite;
557
+ readonly patch: Schema.String;
558
+ }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
559
+ readonly path: Schema.String;
560
+ readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
561
+ readonly additions: Schema.Finite;
562
+ readonly deletions: Schema.Finite;
563
+ readonly patch: Schema.String;
564
+ }>>>, never, never>;
565
+ }>, never, never> as M["Type"]["source"]]: (value: M["Type"]) => any; }>(cases: Cases): (value: {
450
566
  readonly source: "current";
451
567
  readonly revert: {
452
568
  readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
569
+ readonly partID?: string | undefined;
570
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
453
571
  readonly files?: readonly {
454
572
  readonly file: string;
455
573
  readonly patch: string;
@@ -457,13 +575,14 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
457
575
  readonly deletions: number;
458
576
  readonly status: "added" | "deleted" | "modified";
459
577
  }[] | undefined;
460
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
461
- readonly partID?: string | undefined;
462
578
  };
463
579
  } | {
464
580
  readonly source: "legacy";
465
581
  readonly revert: {
466
582
  readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
583
+ readonly partID?: string | undefined;
584
+ readonly snapshot?: string | undefined;
585
+ readonly diff?: string | undefined;
467
586
  readonly files?: readonly {
468
587
  readonly path: string;
469
588
  readonly status: "added" | "deleted" | "modified";
@@ -471,49 +590,106 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
471
590
  readonly deletions: number;
472
591
  readonly patch: string;
473
592
  }[] | undefined;
474
- readonly snapshot?: string | undefined;
475
- readonly partID?: string | undefined;
476
- readonly diff?: string | undefined;
477
593
  };
478
594
  }) => Cases[keyof Cases] extends (value: any) => infer R ? import("effect/Unify").Unify<R> : never;
479
595
  };
480
596
  readonly matchOrElse: {
481
- <Cases extends {
482
- current?: ((value: {
483
- readonly source: "current";
484
- readonly revert: {
485
- readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
486
- readonly files?: readonly {
487
- readonly file: string;
488
- readonly patch: string;
489
- readonly additions: number;
490
- readonly deletions: number;
491
- readonly status: "added" | "deleted" | "modified";
492
- }[] | undefined;
493
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
494
- readonly partID?: string | undefined;
597
+ <Cases extends { [M in Schema.decodeTo<Schema.Struct<{
598
+ readonly source: Schema.tag<"current">;
599
+ readonly revert: Schema.toType<Schema.Struct<{
600
+ readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
601
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
602
+ fromEvent: (eventID: import("./event.js").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
495
603
  };
496
- }) => any) | undefined;
497
- legacy?: ((value: {
498
- readonly source: "legacy";
499
- readonly revert: {
500
- readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
501
- readonly files?: readonly {
502
- readonly path: string;
503
- readonly status: "added" | "deleted" | "modified";
504
- readonly additions: number;
505
- readonly deletions: number;
506
- readonly patch: string;
507
- }[] | undefined;
508
- readonly snapshot?: string | undefined;
509
- readonly partID?: string | undefined;
510
- readonly diff?: string | undefined;
604
+ /** Legacy V1 compatibility state. */
605
+ readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
606
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
607
+ readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
608
+ readonly file: Schema.String;
609
+ readonly patch: Schema.String;
610
+ readonly additions: Schema.Int;
611
+ readonly deletions: Schema.Int;
612
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
613
+ }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
614
+ readonly file: Schema.String;
615
+ readonly patch: Schema.String;
616
+ readonly additions: Schema.Int;
617
+ readonly deletions: Schema.Int;
618
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
619
+ }>>>, never, never>;
620
+ }>>;
621
+ }>, Schema.Struct<{
622
+ readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
623
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
624
+ fromEvent: (eventID: import("./event.js").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
625
+ };
626
+ /** Legacy V1 compatibility state. */
627
+ readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
628
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
629
+ readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
630
+ readonly file: Schema.String;
631
+ readonly patch: Schema.String;
632
+ readonly additions: Schema.Int;
633
+ readonly deletions: Schema.Int;
634
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
635
+ }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
636
+ readonly file: Schema.String;
637
+ readonly patch: Schema.String;
638
+ readonly additions: Schema.Int;
639
+ readonly deletions: Schema.Int;
640
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
641
+ }>>>, never, never>;
642
+ }>, never, never> | Schema.decodeTo<Schema.Struct<{
643
+ readonly source: Schema.tag<"legacy">;
644
+ readonly revert: Schema.toType<Schema.Struct<{
645
+ readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
646
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
647
+ fromEvent: (eventID: import("./event.js").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
511
648
  };
512
- }) => any) | undefined;
513
- } & { [K in Exclude<keyof Cases, "legacy" | "current">]: never; }, OrElse extends (value: Exclude<{
649
+ readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
650
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
651
+ readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
652
+ readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
653
+ readonly path: Schema.String;
654
+ readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
655
+ readonly additions: Schema.Finite;
656
+ readonly deletions: Schema.Finite;
657
+ readonly patch: Schema.String;
658
+ }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
659
+ readonly path: Schema.String;
660
+ readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
661
+ readonly additions: Schema.Finite;
662
+ readonly deletions: Schema.Finite;
663
+ readonly patch: Schema.String;
664
+ }>>>, never, never>;
665
+ }>>;
666
+ }>, Schema.Struct<{
667
+ readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
668
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
669
+ fromEvent: (eventID: import("./event.js").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
670
+ };
671
+ readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
672
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
673
+ readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
674
+ readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
675
+ readonly path: Schema.String;
676
+ readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
677
+ readonly additions: Schema.Finite;
678
+ readonly deletions: Schema.Finite;
679
+ readonly patch: Schema.String;
680
+ }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
681
+ readonly path: Schema.String;
682
+ readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
683
+ readonly additions: Schema.Finite;
684
+ readonly deletions: Schema.Finite;
685
+ readonly patch: Schema.String;
686
+ }>>>, never, never>;
687
+ }>, never, never> as M["Type"]["source"]]+?: (value: M["Type"]) => any; } & { [K in Exclude<keyof Cases, "current" | "legacy">]: never; }, OrElse extends (value: Exclude<{
514
688
  readonly source: "current";
515
689
  readonly revert: {
516
690
  readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
691
+ readonly partID?: string | undefined;
692
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
517
693
  readonly files?: readonly {
518
694
  readonly file: string;
519
695
  readonly patch: string;
@@ -521,15 +697,14 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
521
697
  readonly deletions: number;
522
698
  readonly status: "added" | "deleted" | "modified";
523
699
  }[] | undefined;
524
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
525
- readonly partID?: string | undefined;
526
700
  };
527
- }, {
528
- readonly source: keyof Cases;
529
- }> | Exclude<{
701
+ } | {
530
702
  readonly source: "legacy";
531
703
  readonly revert: {
532
704
  readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
705
+ readonly partID?: string | undefined;
706
+ readonly snapshot?: string | undefined;
707
+ readonly diff?: string | undefined;
533
708
  readonly files?: readonly {
534
709
  readonly path: string;
535
710
  readonly status: "added" | "deleted" | "modified";
@@ -537,16 +712,13 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
537
712
  readonly deletions: number;
538
713
  readonly patch: string;
539
714
  }[] | undefined;
540
- readonly snapshot?: string | undefined;
541
- readonly partID?: string | undefined;
542
- readonly diff?: string | undefined;
543
715
  };
544
- }, {
545
- readonly source: keyof Cases;
546
- }>) => any>(value: {
716
+ }, { readonly [K in "source"]: keyof Cases; }>) => any>(value: {
547
717
  readonly source: "current";
548
718
  readonly revert: {
549
719
  readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
720
+ readonly partID?: string | undefined;
721
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
550
722
  readonly files?: readonly {
551
723
  readonly file: string;
552
724
  readonly patch: string;
@@ -554,13 +726,14 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
554
726
  readonly deletions: number;
555
727
  readonly status: "added" | "deleted" | "modified";
556
728
  }[] | undefined;
557
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
558
- readonly partID?: string | undefined;
559
729
  };
560
730
  } | {
561
731
  readonly source: "legacy";
562
732
  readonly revert: {
563
733
  readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
734
+ readonly partID?: string | undefined;
735
+ readonly snapshot?: string | undefined;
736
+ readonly diff?: string | undefined;
564
737
  readonly files?: readonly {
565
738
  readonly path: string;
566
739
  readonly status: "added" | "deleted" | "modified";
@@ -568,47 +741,104 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
568
741
  readonly deletions: number;
569
742
  readonly patch: string;
570
743
  }[] | undefined;
571
- readonly snapshot?: string | undefined;
572
- readonly partID?: string | undefined;
573
- readonly diff?: string | undefined;
574
744
  };
575
- }, cases: Cases, orElse: OrElse): import("effect/Unify").Unify<{ [K_1 in keyof Cases]-?: NonNullable<Cases[K_1]> extends (...args: Array<any>) => infer R ? R : never; }[keyof Cases] | ReturnType<OrElse>>;
576
- <Cases extends {
577
- current?: ((value: {
578
- readonly source: "current";
579
- readonly revert: {
580
- readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
581
- readonly files?: readonly {
582
- readonly file: string;
583
- readonly patch: string;
584
- readonly additions: number;
585
- readonly deletions: number;
586
- readonly status: "added" | "deleted" | "modified";
587
- }[] | undefined;
588
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
589
- readonly partID?: string | undefined;
745
+ }, cases: Cases, orElse: OrElse): import("effect/Unify").Unify<{ [K in keyof Cases]-?: NonNullable<Cases[K]> extends (...args: Array<any>) => infer R ? R : never; }[keyof Cases] | ReturnType<OrElse>>;
746
+ <Cases extends { [M in Schema.decodeTo<Schema.Struct<{
747
+ readonly source: Schema.tag<"current">;
748
+ readonly revert: Schema.toType<Schema.Struct<{
749
+ readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
750
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
751
+ fromEvent: (eventID: import("./event.js").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
590
752
  };
591
- }) => any) | undefined;
592
- legacy?: ((value: {
593
- readonly source: "legacy";
594
- readonly revert: {
595
- readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
596
- readonly files?: readonly {
597
- readonly path: string;
598
- readonly status: "added" | "deleted" | "modified";
599
- readonly additions: number;
600
- readonly deletions: number;
601
- readonly patch: string;
602
- }[] | undefined;
603
- readonly snapshot?: string | undefined;
604
- readonly partID?: string | undefined;
605
- readonly diff?: string | undefined;
753
+ /** Legacy V1 compatibility state. */
754
+ readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
755
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
756
+ readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
757
+ readonly file: Schema.String;
758
+ readonly patch: Schema.String;
759
+ readonly additions: Schema.Int;
760
+ readonly deletions: Schema.Int;
761
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
762
+ }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
763
+ readonly file: Schema.String;
764
+ readonly patch: Schema.String;
765
+ readonly additions: Schema.Int;
766
+ readonly deletions: Schema.Int;
767
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
768
+ }>>>, never, never>;
769
+ }>>;
770
+ }>, Schema.Struct<{
771
+ readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
772
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
773
+ fromEvent: (eventID: import("./event.js").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
774
+ };
775
+ /** Legacy V1 compatibility state. */
776
+ readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
777
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
778
+ readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
779
+ readonly file: Schema.String;
780
+ readonly patch: Schema.String;
781
+ readonly additions: Schema.Int;
782
+ readonly deletions: Schema.Int;
783
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
784
+ }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
785
+ readonly file: Schema.String;
786
+ readonly patch: Schema.String;
787
+ readonly additions: Schema.Int;
788
+ readonly deletions: Schema.Int;
789
+ readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
790
+ }>>>, never, never>;
791
+ }>, never, never> | Schema.decodeTo<Schema.Struct<{
792
+ readonly source: Schema.tag<"legacy">;
793
+ readonly revert: Schema.toType<Schema.Struct<{
794
+ readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
795
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
796
+ fromEvent: (eventID: import("./event.js").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
606
797
  };
607
- }) => any) | undefined;
608
- } & { [K in Exclude<keyof Cases, "legacy" | "current">]: never; }, OrElse extends (value: Exclude<{
798
+ readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
799
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
800
+ readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
801
+ readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
802
+ readonly path: Schema.String;
803
+ readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
804
+ readonly additions: Schema.Finite;
805
+ readonly deletions: Schema.Finite;
806
+ readonly patch: Schema.String;
807
+ }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
808
+ readonly path: Schema.String;
809
+ readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
810
+ readonly additions: Schema.Finite;
811
+ readonly deletions: Schema.Finite;
812
+ readonly patch: Schema.String;
813
+ }>>>, never, never>;
814
+ }>>;
815
+ }>, Schema.Struct<{
816
+ readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
817
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
818
+ fromEvent: (eventID: import("./event.js").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
819
+ };
820
+ readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
821
+ readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
822
+ readonly diff: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
823
+ readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
824
+ readonly path: Schema.String;
825
+ readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
826
+ readonly additions: Schema.Finite;
827
+ readonly deletions: Schema.Finite;
828
+ readonly patch: Schema.String;
829
+ }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
830
+ readonly path: Schema.String;
831
+ readonly status: Schema.Literals<readonly ["added", "modified", "deleted"]>;
832
+ readonly additions: Schema.Finite;
833
+ readonly deletions: Schema.Finite;
834
+ readonly patch: Schema.String;
835
+ }>>>, never, never>;
836
+ }>, never, never> as M["Type"]["source"]]+?: (value: M["Type"]) => any; } & { [K in Exclude<keyof Cases, "current" | "legacy">]: never; }, OrElse extends (value: Exclude<{
609
837
  readonly source: "current";
610
838
  readonly revert: {
611
839
  readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
840
+ readonly partID?: string | undefined;
841
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
612
842
  readonly files?: readonly {
613
843
  readonly file: string;
614
844
  readonly patch: string;
@@ -616,15 +846,14 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
616
846
  readonly deletions: number;
617
847
  readonly status: "added" | "deleted" | "modified";
618
848
  }[] | undefined;
619
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
620
- readonly partID?: string | undefined;
621
849
  };
622
- }, {
623
- readonly source: keyof Cases;
624
- }> | Exclude<{
850
+ } | {
625
851
  readonly source: "legacy";
626
852
  readonly revert: {
627
853
  readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
854
+ readonly partID?: string | undefined;
855
+ readonly snapshot?: string | undefined;
856
+ readonly diff?: string | undefined;
628
857
  readonly files?: readonly {
629
858
  readonly path: string;
630
859
  readonly status: "added" | "deleted" | "modified";
@@ -632,16 +861,13 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
632
861
  readonly deletions: number;
633
862
  readonly patch: string;
634
863
  }[] | undefined;
635
- readonly snapshot?: string | undefined;
636
- readonly partID?: string | undefined;
637
- readonly diff?: string | undefined;
638
864
  };
639
- }, {
640
- readonly source: keyof Cases;
641
- }>) => any>(cases: Cases, orElse: OrElse): (value: {
865
+ }, { readonly [K in "source"]: keyof Cases; }>) => any>(cases: Cases, orElse: OrElse): (value: {
642
866
  readonly source: "current";
643
867
  readonly revert: {
644
868
  readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
869
+ readonly partID?: string | undefined;
870
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
645
871
  readonly files?: readonly {
646
872
  readonly file: string;
647
873
  readonly patch: string;
@@ -649,13 +875,14 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
649
875
  readonly deletions: number;
650
876
  readonly status: "added" | "deleted" | "modified";
651
877
  }[] | undefined;
652
- readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
653
- readonly partID?: string | undefined;
654
878
  };
655
879
  } | {
656
880
  readonly source: "legacy";
657
881
  readonly revert: {
658
882
  readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
883
+ readonly partID?: string | undefined;
884
+ readonly snapshot?: string | undefined;
885
+ readonly diff?: string | undefined;
659
886
  readonly files?: readonly {
660
887
  readonly path: string;
661
888
  readonly status: "added" | "deleted" | "modified";
@@ -663,10 +890,7 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
663
890
  readonly deletions: number;
664
891
  readonly patch: string;
665
892
  }[] | undefined;
666
- readonly snapshot?: string | undefined;
667
- readonly partID?: string | undefined;
668
- readonly diff?: string | undefined;
669
893
  };
670
- }) => import("effect/Unify").Unify<{ [K_1 in keyof Cases]-?: NonNullable<Cases[K_1]> extends (...args: Array<any>) => infer R ? R : never; }[keyof Cases] | ReturnType<OrElse>>;
894
+ }) => import("effect/Unify").Unify<{ [K in keyof Cases]-?: NonNullable<Cases[K]> extends (...args: Array<any>) => infer R ? R : never; }[keyof Cases] | ReturnType<OrElse>>;
671
895
  };
672
896
  }, never, never>;