document-model 1.0.38 → 1.0.39

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.
@@ -54,6 +54,7 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
54
54
  */
55
55
  get operations(): {
56
56
  readonly global: readonly ({
57
+ readonly type: "LOAD_STATE";
57
58
  readonly input: {
58
59
  readonly operations: number;
59
60
  readonly state: {
@@ -61,51 +62,170 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
61
62
  readonly name: string;
62
63
  };
63
64
  };
64
- readonly type: "LOAD_STATE";
65
65
  readonly scope: OperationScope;
66
+ readonly attachments?: readonly {
67
+ readonly data: string;
68
+ readonly mimeType: string;
69
+ readonly extension?: string | null | undefined;
70
+ readonly fileName?: string | null | undefined;
71
+ readonly hash: string;
72
+ }[] | undefined;
73
+ readonly context?: {
74
+ readonly signer?: {
75
+ readonly user: {
76
+ readonly address: string;
77
+ readonly chainId: number;
78
+ };
79
+ readonly app: {
80
+ readonly name: string;
81
+ readonly key: string;
82
+ };
83
+ readonly signature: string;
84
+ } | undefined;
85
+ } | undefined;
66
86
  readonly index: number;
67
87
  readonly timestamp: string;
68
88
  readonly hash: string;
69
89
  readonly skip: number;
70
90
  } | {
91
+ readonly type: "PRUNE";
71
92
  readonly input: {
72
93
  readonly end?: import("./types").InputMaybe<number>;
73
94
  readonly start?: import("./types").InputMaybe<number>;
74
95
  };
75
- readonly type: "PRUNE";
76
96
  readonly scope: OperationScope;
97
+ readonly attachments?: readonly {
98
+ readonly data: string;
99
+ readonly mimeType: string;
100
+ readonly extension?: string | null | undefined;
101
+ readonly fileName?: string | null | undefined;
102
+ readonly hash: string;
103
+ }[] | undefined;
104
+ readonly context?: {
105
+ readonly signer?: {
106
+ readonly user: {
107
+ readonly address: string;
108
+ readonly chainId: number;
109
+ };
110
+ readonly app: {
111
+ readonly name: string;
112
+ readonly key: string;
113
+ };
114
+ readonly signature: string;
115
+ } | undefined;
116
+ } | undefined;
77
117
  readonly index: number;
78
118
  readonly timestamp: string;
79
119
  readonly hash: string;
80
120
  readonly skip: number;
81
121
  } | {
82
- readonly input: number;
83
122
  readonly type: "REDO";
123
+ readonly input: number;
84
124
  readonly scope: OperationScope;
125
+ readonly attachments?: readonly {
126
+ readonly data: string;
127
+ readonly mimeType: string;
128
+ readonly extension?: string | null | undefined;
129
+ readonly fileName?: string | null | undefined;
130
+ readonly hash: string;
131
+ }[] | undefined;
132
+ readonly context?: {
133
+ readonly signer?: {
134
+ readonly user: {
135
+ readonly address: string;
136
+ readonly chainId: number;
137
+ };
138
+ readonly app: {
139
+ readonly name: string;
140
+ readonly key: string;
141
+ };
142
+ readonly signature: string;
143
+ } | undefined;
144
+ } | undefined;
85
145
  readonly index: number;
86
146
  readonly timestamp: string;
87
147
  readonly hash: string;
88
148
  readonly skip: number;
89
149
  } | {
90
- readonly input: string;
91
150
  readonly type: "SET_NAME";
92
- readonly scope: "global";
151
+ readonly input: string;
152
+ readonly scope: OperationScope;
153
+ readonly attachments?: readonly {
154
+ readonly data: string;
155
+ readonly mimeType: string;
156
+ readonly extension?: string | null | undefined;
157
+ readonly fileName?: string | null | undefined;
158
+ readonly hash: string;
159
+ }[] | undefined;
160
+ readonly context?: {
161
+ readonly signer?: {
162
+ readonly user: {
163
+ readonly address: string;
164
+ readonly chainId: number;
165
+ };
166
+ readonly app: {
167
+ readonly name: string;
168
+ readonly key: string;
169
+ };
170
+ readonly signature: string;
171
+ } | undefined;
172
+ } | undefined;
93
173
  readonly index: number;
94
174
  readonly timestamp: string;
95
175
  readonly hash: string;
96
176
  readonly skip: number;
97
177
  } | {
98
- readonly input: number;
99
178
  readonly type: "UNDO";
179
+ readonly input: number;
100
180
  readonly scope: OperationScope;
181
+ readonly attachments?: readonly {
182
+ readonly data: string;
183
+ readonly mimeType: string;
184
+ readonly extension?: string | null | undefined;
185
+ readonly fileName?: string | null | undefined;
186
+ readonly hash: string;
187
+ }[] | undefined;
188
+ readonly context?: {
189
+ readonly signer?: {
190
+ readonly user: {
191
+ readonly address: string;
192
+ readonly chainId: number;
193
+ };
194
+ readonly app: {
195
+ readonly name: string;
196
+ readonly key: string;
197
+ };
198
+ readonly signature: string;
199
+ } | undefined;
200
+ } | undefined;
101
201
  readonly index: number;
102
202
  readonly timestamp: string;
103
203
  readonly hash: string;
104
204
  readonly skip: number;
105
205
  } | {
106
- readonly input: unknown;
107
206
  readonly type: "NOOP";
207
+ readonly input: unknown;
108
208
  readonly scope: OperationScope;
209
+ readonly attachments?: readonly {
210
+ readonly data: string;
211
+ readonly mimeType: string;
212
+ readonly extension?: string | null | undefined;
213
+ readonly fileName?: string | null | undefined;
214
+ readonly hash: string;
215
+ }[] | undefined;
216
+ readonly context?: {
217
+ readonly signer?: {
218
+ readonly user: {
219
+ readonly address: string;
220
+ readonly chainId: number;
221
+ };
222
+ readonly app: {
223
+ readonly name: string;
224
+ readonly key: string;
225
+ };
226
+ readonly signature: string;
227
+ } | undefined;
228
+ } | undefined;
109
229
  readonly index: number;
110
230
  readonly timestamp: string;
111
231
  readonly hash: string;
@@ -117,6 +237,7 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
117
237
  skip: number;
118
238
  }>)[];
119
239
  readonly local: readonly ({
240
+ readonly type: "LOAD_STATE";
120
241
  readonly input: {
121
242
  readonly operations: number;
122
243
  readonly state: {
@@ -124,51 +245,170 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
124
245
  readonly name: string;
125
246
  };
126
247
  };
127
- readonly type: "LOAD_STATE";
128
248
  readonly scope: OperationScope;
249
+ readonly attachments?: readonly {
250
+ readonly data: string;
251
+ readonly mimeType: string;
252
+ readonly extension?: string | null | undefined;
253
+ readonly fileName?: string | null | undefined;
254
+ readonly hash: string;
255
+ }[] | undefined;
256
+ readonly context?: {
257
+ readonly signer?: {
258
+ readonly user: {
259
+ readonly address: string;
260
+ readonly chainId: number;
261
+ };
262
+ readonly app: {
263
+ readonly name: string;
264
+ readonly key: string;
265
+ };
266
+ readonly signature: string;
267
+ } | undefined;
268
+ } | undefined;
129
269
  readonly index: number;
130
270
  readonly timestamp: string;
131
271
  readonly hash: string;
132
272
  readonly skip: number;
133
273
  } | {
274
+ readonly type: "PRUNE";
134
275
  readonly input: {
135
276
  readonly end?: import("./types").InputMaybe<number>;
136
277
  readonly start?: import("./types").InputMaybe<number>;
137
278
  };
138
- readonly type: "PRUNE";
139
279
  readonly scope: OperationScope;
280
+ readonly attachments?: readonly {
281
+ readonly data: string;
282
+ readonly mimeType: string;
283
+ readonly extension?: string | null | undefined;
284
+ readonly fileName?: string | null | undefined;
285
+ readonly hash: string;
286
+ }[] | undefined;
287
+ readonly context?: {
288
+ readonly signer?: {
289
+ readonly user: {
290
+ readonly address: string;
291
+ readonly chainId: number;
292
+ };
293
+ readonly app: {
294
+ readonly name: string;
295
+ readonly key: string;
296
+ };
297
+ readonly signature: string;
298
+ } | undefined;
299
+ } | undefined;
140
300
  readonly index: number;
141
301
  readonly timestamp: string;
142
302
  readonly hash: string;
143
303
  readonly skip: number;
144
304
  } | {
145
- readonly input: number;
146
305
  readonly type: "REDO";
306
+ readonly input: number;
147
307
  readonly scope: OperationScope;
308
+ readonly attachments?: readonly {
309
+ readonly data: string;
310
+ readonly mimeType: string;
311
+ readonly extension?: string | null | undefined;
312
+ readonly fileName?: string | null | undefined;
313
+ readonly hash: string;
314
+ }[] | undefined;
315
+ readonly context?: {
316
+ readonly signer?: {
317
+ readonly user: {
318
+ readonly address: string;
319
+ readonly chainId: number;
320
+ };
321
+ readonly app: {
322
+ readonly name: string;
323
+ readonly key: string;
324
+ };
325
+ readonly signature: string;
326
+ } | undefined;
327
+ } | undefined;
148
328
  readonly index: number;
149
329
  readonly timestamp: string;
150
330
  readonly hash: string;
151
331
  readonly skip: number;
152
332
  } | {
153
- readonly input: string;
154
333
  readonly type: "SET_NAME";
155
- readonly scope: "global";
334
+ readonly input: string;
335
+ readonly scope: OperationScope;
336
+ readonly attachments?: readonly {
337
+ readonly data: string;
338
+ readonly mimeType: string;
339
+ readonly extension?: string | null | undefined;
340
+ readonly fileName?: string | null | undefined;
341
+ readonly hash: string;
342
+ }[] | undefined;
343
+ readonly context?: {
344
+ readonly signer?: {
345
+ readonly user: {
346
+ readonly address: string;
347
+ readonly chainId: number;
348
+ };
349
+ readonly app: {
350
+ readonly name: string;
351
+ readonly key: string;
352
+ };
353
+ readonly signature: string;
354
+ } | undefined;
355
+ } | undefined;
156
356
  readonly index: number;
157
357
  readonly timestamp: string;
158
358
  readonly hash: string;
159
359
  readonly skip: number;
160
360
  } | {
161
- readonly input: number;
162
361
  readonly type: "UNDO";
362
+ readonly input: number;
163
363
  readonly scope: OperationScope;
364
+ readonly attachments?: readonly {
365
+ readonly data: string;
366
+ readonly mimeType: string;
367
+ readonly extension?: string | null | undefined;
368
+ readonly fileName?: string | null | undefined;
369
+ readonly hash: string;
370
+ }[] | undefined;
371
+ readonly context?: {
372
+ readonly signer?: {
373
+ readonly user: {
374
+ readonly address: string;
375
+ readonly chainId: number;
376
+ };
377
+ readonly app: {
378
+ readonly name: string;
379
+ readonly key: string;
380
+ };
381
+ readonly signature: string;
382
+ } | undefined;
383
+ } | undefined;
164
384
  readonly index: number;
165
385
  readonly timestamp: string;
166
386
  readonly hash: string;
167
387
  readonly skip: number;
168
388
  } | {
169
- readonly input: unknown;
170
389
  readonly type: "NOOP";
390
+ readonly input: unknown;
171
391
  readonly scope: OperationScope;
392
+ readonly attachments?: readonly {
393
+ readonly data: string;
394
+ readonly mimeType: string;
395
+ readonly extension?: string | null | undefined;
396
+ readonly fileName?: string | null | undefined;
397
+ readonly hash: string;
398
+ }[] | undefined;
399
+ readonly context?: {
400
+ readonly signer?: {
401
+ readonly user: {
402
+ readonly address: string;
403
+ readonly chainId: number;
404
+ };
405
+ readonly app: {
406
+ readonly name: string;
407
+ readonly key: string;
408
+ };
409
+ readonly signature: string;
410
+ } | undefined;
411
+ } | undefined;
172
412
  readonly index: number;
173
413
  readonly timestamp: string;
174
414
  readonly hash: string;
@@ -252,6 +492,7 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
252
492
  };
253
493
  readonly operations: {
254
494
  readonly global: readonly ({
495
+ readonly type: "LOAD_STATE";
255
496
  readonly input: {
256
497
  readonly operations: number;
257
498
  readonly state: {
@@ -259,51 +500,170 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
259
500
  readonly name: string;
260
501
  };
261
502
  };
262
- readonly type: "LOAD_STATE";
263
503
  readonly scope: OperationScope;
504
+ readonly attachments?: readonly {
505
+ readonly data: string;
506
+ readonly mimeType: string;
507
+ readonly extension?: string | null | undefined;
508
+ readonly fileName?: string | null | undefined;
509
+ readonly hash: string;
510
+ }[] | undefined;
511
+ readonly context?: {
512
+ readonly signer?: {
513
+ readonly user: {
514
+ readonly address: string;
515
+ readonly chainId: number;
516
+ };
517
+ readonly app: {
518
+ readonly name: string;
519
+ readonly key: string;
520
+ };
521
+ readonly signature: string;
522
+ } | undefined;
523
+ } | undefined;
264
524
  readonly index: number;
265
525
  readonly timestamp: string;
266
526
  readonly hash: string;
267
527
  readonly skip: number;
268
528
  } | {
529
+ readonly type: "PRUNE";
269
530
  readonly input: {
270
531
  readonly end?: import("./types").InputMaybe<number>;
271
532
  readonly start?: import("./types").InputMaybe<number>;
272
533
  };
273
- readonly type: "PRUNE";
274
534
  readonly scope: OperationScope;
535
+ readonly attachments?: readonly {
536
+ readonly data: string;
537
+ readonly mimeType: string;
538
+ readonly extension?: string | null | undefined;
539
+ readonly fileName?: string | null | undefined;
540
+ readonly hash: string;
541
+ }[] | undefined;
542
+ readonly context?: {
543
+ readonly signer?: {
544
+ readonly user: {
545
+ readonly address: string;
546
+ readonly chainId: number;
547
+ };
548
+ readonly app: {
549
+ readonly name: string;
550
+ readonly key: string;
551
+ };
552
+ readonly signature: string;
553
+ } | undefined;
554
+ } | undefined;
275
555
  readonly index: number;
276
556
  readonly timestamp: string;
277
557
  readonly hash: string;
278
558
  readonly skip: number;
279
559
  } | {
280
- readonly input: number;
281
560
  readonly type: "REDO";
561
+ readonly input: number;
282
562
  readonly scope: OperationScope;
563
+ readonly attachments?: readonly {
564
+ readonly data: string;
565
+ readonly mimeType: string;
566
+ readonly extension?: string | null | undefined;
567
+ readonly fileName?: string | null | undefined;
568
+ readonly hash: string;
569
+ }[] | undefined;
570
+ readonly context?: {
571
+ readonly signer?: {
572
+ readonly user: {
573
+ readonly address: string;
574
+ readonly chainId: number;
575
+ };
576
+ readonly app: {
577
+ readonly name: string;
578
+ readonly key: string;
579
+ };
580
+ readonly signature: string;
581
+ } | undefined;
582
+ } | undefined;
283
583
  readonly index: number;
284
584
  readonly timestamp: string;
285
585
  readonly hash: string;
286
586
  readonly skip: number;
287
587
  } | {
288
- readonly input: string;
289
588
  readonly type: "SET_NAME";
290
- readonly scope: "global";
589
+ readonly input: string;
590
+ readonly scope: OperationScope;
591
+ readonly attachments?: readonly {
592
+ readonly data: string;
593
+ readonly mimeType: string;
594
+ readonly extension?: string | null | undefined;
595
+ readonly fileName?: string | null | undefined;
596
+ readonly hash: string;
597
+ }[] | undefined;
598
+ readonly context?: {
599
+ readonly signer?: {
600
+ readonly user: {
601
+ readonly address: string;
602
+ readonly chainId: number;
603
+ };
604
+ readonly app: {
605
+ readonly name: string;
606
+ readonly key: string;
607
+ };
608
+ readonly signature: string;
609
+ } | undefined;
610
+ } | undefined;
291
611
  readonly index: number;
292
612
  readonly timestamp: string;
293
613
  readonly hash: string;
294
614
  readonly skip: number;
295
615
  } | {
296
- readonly input: number;
297
616
  readonly type: "UNDO";
617
+ readonly input: number;
298
618
  readonly scope: OperationScope;
619
+ readonly attachments?: readonly {
620
+ readonly data: string;
621
+ readonly mimeType: string;
622
+ readonly extension?: string | null | undefined;
623
+ readonly fileName?: string | null | undefined;
624
+ readonly hash: string;
625
+ }[] | undefined;
626
+ readonly context?: {
627
+ readonly signer?: {
628
+ readonly user: {
629
+ readonly address: string;
630
+ readonly chainId: number;
631
+ };
632
+ readonly app: {
633
+ readonly name: string;
634
+ readonly key: string;
635
+ };
636
+ readonly signature: string;
637
+ } | undefined;
638
+ } | undefined;
299
639
  readonly index: number;
300
640
  readonly timestamp: string;
301
641
  readonly hash: string;
302
642
  readonly skip: number;
303
643
  } | {
304
- readonly input: unknown;
305
644
  readonly type: "NOOP";
645
+ readonly input: unknown;
306
646
  readonly scope: OperationScope;
647
+ readonly attachments?: readonly {
648
+ readonly data: string;
649
+ readonly mimeType: string;
650
+ readonly extension?: string | null | undefined;
651
+ readonly fileName?: string | null | undefined;
652
+ readonly hash: string;
653
+ }[] | undefined;
654
+ readonly context?: {
655
+ readonly signer?: {
656
+ readonly user: {
657
+ readonly address: string;
658
+ readonly chainId: number;
659
+ };
660
+ readonly app: {
661
+ readonly name: string;
662
+ readonly key: string;
663
+ };
664
+ readonly signature: string;
665
+ } | undefined;
666
+ } | undefined;
307
667
  readonly index: number;
308
668
  readonly timestamp: string;
309
669
  readonly hash: string;
@@ -315,6 +675,7 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
315
675
  skip: number;
316
676
  }>)[];
317
677
  readonly local: readonly ({
678
+ readonly type: "LOAD_STATE";
318
679
  readonly input: {
319
680
  readonly operations: number;
320
681
  readonly state: {
@@ -322,51 +683,170 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
322
683
  readonly name: string;
323
684
  };
324
685
  };
325
- readonly type: "LOAD_STATE";
326
686
  readonly scope: OperationScope;
687
+ readonly attachments?: readonly {
688
+ readonly data: string;
689
+ readonly mimeType: string;
690
+ readonly extension?: string | null | undefined;
691
+ readonly fileName?: string | null | undefined;
692
+ readonly hash: string;
693
+ }[] | undefined;
694
+ readonly context?: {
695
+ readonly signer?: {
696
+ readonly user: {
697
+ readonly address: string;
698
+ readonly chainId: number;
699
+ };
700
+ readonly app: {
701
+ readonly name: string;
702
+ readonly key: string;
703
+ };
704
+ readonly signature: string;
705
+ } | undefined;
706
+ } | undefined;
327
707
  readonly index: number;
328
708
  readonly timestamp: string;
329
709
  readonly hash: string;
330
710
  readonly skip: number;
331
711
  } | {
712
+ readonly type: "PRUNE";
332
713
  readonly input: {
333
714
  readonly end?: import("./types").InputMaybe<number>;
334
715
  readonly start?: import("./types").InputMaybe<number>;
335
716
  };
336
- readonly type: "PRUNE";
337
717
  readonly scope: OperationScope;
718
+ readonly attachments?: readonly {
719
+ readonly data: string;
720
+ readonly mimeType: string;
721
+ readonly extension?: string | null | undefined;
722
+ readonly fileName?: string | null | undefined;
723
+ readonly hash: string;
724
+ }[] | undefined;
725
+ readonly context?: {
726
+ readonly signer?: {
727
+ readonly user: {
728
+ readonly address: string;
729
+ readonly chainId: number;
730
+ };
731
+ readonly app: {
732
+ readonly name: string;
733
+ readonly key: string;
734
+ };
735
+ readonly signature: string;
736
+ } | undefined;
737
+ } | undefined;
338
738
  readonly index: number;
339
739
  readonly timestamp: string;
340
740
  readonly hash: string;
341
741
  readonly skip: number;
342
742
  } | {
343
- readonly input: number;
344
743
  readonly type: "REDO";
744
+ readonly input: number;
345
745
  readonly scope: OperationScope;
746
+ readonly attachments?: readonly {
747
+ readonly data: string;
748
+ readonly mimeType: string;
749
+ readonly extension?: string | null | undefined;
750
+ readonly fileName?: string | null | undefined;
751
+ readonly hash: string;
752
+ }[] | undefined;
753
+ readonly context?: {
754
+ readonly signer?: {
755
+ readonly user: {
756
+ readonly address: string;
757
+ readonly chainId: number;
758
+ };
759
+ readonly app: {
760
+ readonly name: string;
761
+ readonly key: string;
762
+ };
763
+ readonly signature: string;
764
+ } | undefined;
765
+ } | undefined;
346
766
  readonly index: number;
347
767
  readonly timestamp: string;
348
768
  readonly hash: string;
349
769
  readonly skip: number;
350
770
  } | {
351
- readonly input: string;
352
771
  readonly type: "SET_NAME";
353
- readonly scope: "global";
772
+ readonly input: string;
773
+ readonly scope: OperationScope;
774
+ readonly attachments?: readonly {
775
+ readonly data: string;
776
+ readonly mimeType: string;
777
+ readonly extension?: string | null | undefined;
778
+ readonly fileName?: string | null | undefined;
779
+ readonly hash: string;
780
+ }[] | undefined;
781
+ readonly context?: {
782
+ readonly signer?: {
783
+ readonly user: {
784
+ readonly address: string;
785
+ readonly chainId: number;
786
+ };
787
+ readonly app: {
788
+ readonly name: string;
789
+ readonly key: string;
790
+ };
791
+ readonly signature: string;
792
+ } | undefined;
793
+ } | undefined;
354
794
  readonly index: number;
355
795
  readonly timestamp: string;
356
796
  readonly hash: string;
357
797
  readonly skip: number;
358
798
  } | {
359
- readonly input: number;
360
799
  readonly type: "UNDO";
800
+ readonly input: number;
361
801
  readonly scope: OperationScope;
802
+ readonly attachments?: readonly {
803
+ readonly data: string;
804
+ readonly mimeType: string;
805
+ readonly extension?: string | null | undefined;
806
+ readonly fileName?: string | null | undefined;
807
+ readonly hash: string;
808
+ }[] | undefined;
809
+ readonly context?: {
810
+ readonly signer?: {
811
+ readonly user: {
812
+ readonly address: string;
813
+ readonly chainId: number;
814
+ };
815
+ readonly app: {
816
+ readonly name: string;
817
+ readonly key: string;
818
+ };
819
+ readonly signature: string;
820
+ } | undefined;
821
+ } | undefined;
362
822
  readonly index: number;
363
823
  readonly timestamp: string;
364
824
  readonly hash: string;
365
825
  readonly skip: number;
366
826
  } | {
367
- readonly input: unknown;
368
827
  readonly type: "NOOP";
828
+ readonly input: unknown;
369
829
  readonly scope: OperationScope;
830
+ readonly attachments?: readonly {
831
+ readonly data: string;
832
+ readonly mimeType: string;
833
+ readonly extension?: string | null | undefined;
834
+ readonly fileName?: string | null | undefined;
835
+ readonly hash: string;
836
+ }[] | undefined;
837
+ readonly context?: {
838
+ readonly signer?: {
839
+ readonly user: {
840
+ readonly address: string;
841
+ readonly chainId: number;
842
+ };
843
+ readonly app: {
844
+ readonly name: string;
845
+ readonly key: string;
846
+ };
847
+ readonly signature: string;
848
+ } | undefined;
849
+ } | undefined;
370
850
  readonly index: number;
371
851
  readonly timestamp: string;
372
852
  readonly hash: string;
@@ -401,6 +881,7 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
401
881
  };
402
882
  };
403
883
  readonly clipboard: readonly ({
884
+ readonly type: "LOAD_STATE";
404
885
  readonly input: {
405
886
  readonly operations: number;
406
887
  readonly state: {
@@ -408,51 +889,170 @@ export declare abstract class BaseDocument<T, A extends Action, L = unknown> {
408
889
  readonly name: string;
409
890
  };
410
891
  };
411
- readonly type: "LOAD_STATE";
412
892
  readonly scope: OperationScope;
893
+ readonly attachments?: readonly {
894
+ readonly data: string;
895
+ readonly mimeType: string;
896
+ readonly extension?: string | null | undefined;
897
+ readonly fileName?: string | null | undefined;
898
+ readonly hash: string;
899
+ }[] | undefined;
900
+ readonly context?: {
901
+ readonly signer?: {
902
+ readonly user: {
903
+ readonly address: string;
904
+ readonly chainId: number;
905
+ };
906
+ readonly app: {
907
+ readonly name: string;
908
+ readonly key: string;
909
+ };
910
+ readonly signature: string;
911
+ } | undefined;
912
+ } | undefined;
413
913
  readonly index: number;
414
914
  readonly timestamp: string;
415
915
  readonly hash: string;
416
916
  readonly skip: number;
417
917
  } | {
918
+ readonly type: "PRUNE";
418
919
  readonly input: {
419
920
  readonly end?: import("./types").InputMaybe<number>;
420
921
  readonly start?: import("./types").InputMaybe<number>;
421
922
  };
422
- readonly type: "PRUNE";
423
923
  readonly scope: OperationScope;
924
+ readonly attachments?: readonly {
925
+ readonly data: string;
926
+ readonly mimeType: string;
927
+ readonly extension?: string | null | undefined;
928
+ readonly fileName?: string | null | undefined;
929
+ readonly hash: string;
930
+ }[] | undefined;
931
+ readonly context?: {
932
+ readonly signer?: {
933
+ readonly user: {
934
+ readonly address: string;
935
+ readonly chainId: number;
936
+ };
937
+ readonly app: {
938
+ readonly name: string;
939
+ readonly key: string;
940
+ };
941
+ readonly signature: string;
942
+ } | undefined;
943
+ } | undefined;
424
944
  readonly index: number;
425
945
  readonly timestamp: string;
426
946
  readonly hash: string;
427
947
  readonly skip: number;
428
948
  } | {
429
- readonly input: number;
430
949
  readonly type: "REDO";
950
+ readonly input: number;
431
951
  readonly scope: OperationScope;
952
+ readonly attachments?: readonly {
953
+ readonly data: string;
954
+ readonly mimeType: string;
955
+ readonly extension?: string | null | undefined;
956
+ readonly fileName?: string | null | undefined;
957
+ readonly hash: string;
958
+ }[] | undefined;
959
+ readonly context?: {
960
+ readonly signer?: {
961
+ readonly user: {
962
+ readonly address: string;
963
+ readonly chainId: number;
964
+ };
965
+ readonly app: {
966
+ readonly name: string;
967
+ readonly key: string;
968
+ };
969
+ readonly signature: string;
970
+ } | undefined;
971
+ } | undefined;
432
972
  readonly index: number;
433
973
  readonly timestamp: string;
434
974
  readonly hash: string;
435
975
  readonly skip: number;
436
976
  } | {
437
- readonly input: string;
438
977
  readonly type: "SET_NAME";
439
- readonly scope: "global";
978
+ readonly input: string;
979
+ readonly scope: OperationScope;
980
+ readonly attachments?: readonly {
981
+ readonly data: string;
982
+ readonly mimeType: string;
983
+ readonly extension?: string | null | undefined;
984
+ readonly fileName?: string | null | undefined;
985
+ readonly hash: string;
986
+ }[] | undefined;
987
+ readonly context?: {
988
+ readonly signer?: {
989
+ readonly user: {
990
+ readonly address: string;
991
+ readonly chainId: number;
992
+ };
993
+ readonly app: {
994
+ readonly name: string;
995
+ readonly key: string;
996
+ };
997
+ readonly signature: string;
998
+ } | undefined;
999
+ } | undefined;
440
1000
  readonly index: number;
441
1001
  readonly timestamp: string;
442
1002
  readonly hash: string;
443
1003
  readonly skip: number;
444
1004
  } | {
445
- readonly input: number;
446
1005
  readonly type: "UNDO";
1006
+ readonly input: number;
447
1007
  readonly scope: OperationScope;
1008
+ readonly attachments?: readonly {
1009
+ readonly data: string;
1010
+ readonly mimeType: string;
1011
+ readonly extension?: string | null | undefined;
1012
+ readonly fileName?: string | null | undefined;
1013
+ readonly hash: string;
1014
+ }[] | undefined;
1015
+ readonly context?: {
1016
+ readonly signer?: {
1017
+ readonly user: {
1018
+ readonly address: string;
1019
+ readonly chainId: number;
1020
+ };
1021
+ readonly app: {
1022
+ readonly name: string;
1023
+ readonly key: string;
1024
+ };
1025
+ readonly signature: string;
1026
+ } | undefined;
1027
+ } | undefined;
448
1028
  readonly index: number;
449
1029
  readonly timestamp: string;
450
1030
  readonly hash: string;
451
1031
  readonly skip: number;
452
1032
  } | {
453
- readonly input: unknown;
454
1033
  readonly type: "NOOP";
1034
+ readonly input: unknown;
455
1035
  readonly scope: OperationScope;
1036
+ readonly attachments?: readonly {
1037
+ readonly data: string;
1038
+ readonly mimeType: string;
1039
+ readonly extension?: string | null | undefined;
1040
+ readonly fileName?: string | null | undefined;
1041
+ readonly hash: string;
1042
+ }[] | undefined;
1043
+ readonly context?: {
1044
+ readonly signer?: {
1045
+ readonly user: {
1046
+ readonly address: string;
1047
+ readonly chainId: number;
1048
+ };
1049
+ readonly app: {
1050
+ readonly name: string;
1051
+ readonly key: string;
1052
+ };
1053
+ readonly signature: string;
1054
+ } | undefined;
1055
+ } | undefined;
456
1056
  readonly index: number;
457
1057
  readonly timestamp: string;
458
1058
  readonly hash: string;