@prismicio/types-internal 2.7.0-alpha.8 → 2.7.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.
@@ -118,7 +118,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
118
118
  __TYPE__: t.LiteralC<"LinkContent">;
119
119
  value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
120
120
  __TYPE__: t.LiteralC<"ImageLink">;
121
- }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
121
+ }>>, t.UnionC<[t.IntersectionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
122
122
  kind: t.Type<"image", "image", unknown>;
123
123
  id: t.StringC;
124
124
  url: t.StringC;
@@ -126,15 +126,16 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
126
126
  width: t.StringC;
127
127
  size: t.StringC;
128
128
  name: t.StringC;
129
- }>, t.PartialC<{
129
+ }>>, t.ExactC<t.PartialC<{
130
130
  date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
131
+ }>>]>, t.ExactC<t.PartialC<{
131
132
  text: t.StringC;
132
- }>]>>, t.ExactC<t.TypeC<{
133
+ }>>]>, t.ExactC<t.TypeC<{
133
134
  kind: t.LiteralC<"image">;
134
135
  text: t.StringC;
135
136
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
136
137
  __TYPE__: t.LiteralC<"FileLink">;
137
- }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
138
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
138
139
  kind: t.Type<"file", "file", unknown>;
139
140
  id: t.StringC;
140
141
  url: t.StringC;
@@ -142,22 +143,23 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
142
143
  size: t.StringC;
143
144
  }>, t.PartialC<{
144
145
  date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
146
+ }>]>>, t.ExactC<t.PartialC<{
145
147
  text: t.StringC;
146
- }>]>>, t.ExactC<t.TypeC<{
148
+ }>>]>, t.ExactC<t.TypeC<{
147
149
  kind: t.LiteralC<"file">;
148
150
  text: t.StringC;
149
151
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
150
152
  __TYPE__: t.LiteralC<"DocumentLink">;
151
- }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
153
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
152
154
  id: t.Type<string, string, unknown>;
153
- }>, t.PartialC<{
155
+ }>>, t.ExactC<t.PartialC<{
154
156
  text: t.StringC;
155
- }>]>>, t.ExactC<t.TypeC<{
157
+ }>>]>, t.ExactC<t.TypeC<{
156
158
  kind: t.LiteralC<"document">;
157
159
  text: t.StringC;
158
160
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
159
161
  __TYPE__: t.LiteralC<"ExternalLink">;
160
- }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
162
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
161
163
  url: t.StringC;
162
164
  }>, t.PartialC<{
163
165
  kind: t.LiteralC<"web">;
@@ -167,8 +169,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
167
169
  }, {
168
170
  title?: string;
169
171
  }, unknown>, t.NullC, t.UndefinedC]>;
172
+ }>]>>, t.ExactC<t.PartialC<{
170
173
  text: t.StringC;
171
- }>]>>, t.ExactC<t.TypeC<{
174
+ }>>]>, t.ExactC<t.TypeC<{
172
175
  kind: t.LiteralC<"web">;
173
176
  text: t.StringC;
174
177
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
@@ -210,7 +213,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
210
213
  }>]>>, t.PartialC<{
211
214
  linkTo: t.UnionC<[t.Type<({
212
215
  __TYPE__: "ImageLink";
213
- } & (({
216
+ } & {
214
217
  kind: "image";
215
218
  id: string;
216
219
  url: string;
@@ -220,13 +223,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
220
223
  name: string;
221
224
  } & {
222
225
  date?: string | null | undefined;
223
- text?: string;
224
- }) | {
225
- kind: "image";
226
- text: string;
227
- })) | ({
226
+ }) | ({
228
227
  __TYPE__: "FileLink";
229
- } & (({
228
+ } & {
230
229
  kind: "file";
231
230
  id: string;
232
231
  url: string;
@@ -234,27 +233,13 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
234
233
  size: string;
235
234
  } & {
236
235
  date?: string | null | undefined;
237
- text?: string;
238
- }) | {
239
- kind: "file";
240
- text: string;
241
- })) | ({
242
- __TYPE__: "MediaLink";
243
- } & {
244
- kind: "media";
245
- text: string;
246
236
  }) | ({
247
237
  __TYPE__: "DocumentLink";
248
- } & (({
249
- id: string;
250
238
  } & {
251
- text?: string;
252
- }) | {
253
- kind: "document";
254
- text: string;
255
- })) | ({
239
+ id: string;
240
+ }) | ({
256
241
  __TYPE__: "ExternalLink";
257
- } & (({
242
+ } & {
258
243
  url: string;
259
244
  } & {
260
245
  kind?: "web";
@@ -262,17 +247,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
262
247
  preview?: {
263
248
  title?: string;
264
249
  } | null | undefined;
265
- text?: string;
266
- }) | {
267
- kind: "web";
268
- text: string;
269
- })) | ({
270
- __TYPE__: "AnyLink";
271
- } & {
272
- text: string;
273
250
  }), ({
274
251
  __TYPE__: "ImageLink";
275
- } & (({
252
+ } & {
276
253
  kind: "image";
277
254
  id: string;
278
255
  url: string;
@@ -282,13 +259,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
282
259
  name: string;
283
260
  } & {
284
261
  date?: string | null | undefined;
285
- text?: string;
286
- }) | {
287
- kind: "image";
288
- text: string;
289
- })) | ({
262
+ }) | ({
290
263
  __TYPE__: "FileLink";
291
- } & (({
264
+ } & {
292
265
  kind: "file";
293
266
  id: string;
294
267
  url: string;
@@ -296,27 +269,13 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
296
269
  size: string;
297
270
  } & {
298
271
  date?: string | null | undefined;
299
- text?: string;
300
- }) | {
301
- kind: "file";
302
- text: string;
303
- })) | ({
304
- __TYPE__: "MediaLink";
305
- } & {
306
- kind: "media";
307
- text: string;
308
272
  }) | ({
309
273
  __TYPE__: "DocumentLink";
310
- } & (({
311
- id: string;
312
274
  } & {
313
- text?: string;
314
- }) | {
315
- kind: "document";
316
- text: string;
317
- })) | ({
275
+ id: string;
276
+ }) | ({
318
277
  __TYPE__: "ExternalLink";
319
- } & (({
278
+ } & {
320
279
  url: string;
321
280
  } & {
322
281
  kind?: "web";
@@ -324,14 +283,6 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
324
283
  preview?: {
325
284
  title?: string;
326
285
  } | null | undefined;
327
- text?: string;
328
- }) | {
329
- kind: "web";
330
- text: string;
331
- })) | ({
332
- __TYPE__: "AnyLink";
333
- } & {
334
- text: string;
335
286
  }), unknown>, t.NullC, t.UndefinedC]>;
336
287
  }>]>;
337
288
  }>, t.PartialC<{
@@ -369,7 +320,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
369
320
  spans: t.Type<({
370
321
  data: ({
371
322
  __TYPE__: "ImageLink";
372
- } & (({
323
+ } & {
373
324
  kind: "image";
374
325
  id: string;
375
326
  url: string;
@@ -379,13 +330,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
379
330
  name: string;
380
331
  } & {
381
332
  date?: string | null | undefined;
382
- text?: string;
383
- }) | {
384
- kind: "image";
385
- text: string;
386
- })) | ({
333
+ }) | ({
387
334
  __TYPE__: "FileLink";
388
- } & (({
335
+ } & {
389
336
  kind: "file";
390
337
  id: string;
391
338
  url: string;
@@ -393,27 +340,13 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
393
340
  size: string;
394
341
  } & {
395
342
  date?: string | null | undefined;
396
- text?: string;
397
- }) | {
398
- kind: "file";
399
- text: string;
400
- })) | ({
401
- __TYPE__: "MediaLink";
402
- } & {
403
- kind: "media";
404
- text: string;
405
343
  }) | ({
406
344
  __TYPE__: "DocumentLink";
407
- } & (({
408
- id: string;
409
345
  } & {
410
- text?: string;
411
- }) | {
412
- kind: "document";
413
- text: string;
414
- })) | ({
346
+ id: string;
347
+ }) | ({
415
348
  __TYPE__: "ExternalLink";
416
- } & (({
349
+ } & {
417
350
  url: string;
418
351
  } & {
419
352
  kind?: "web";
@@ -421,14 +354,6 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
421
354
  preview?: {
422
355
  title?: string;
423
356
  } | null | undefined;
424
- text?: string;
425
- }) | {
426
- kind: "web";
427
- text: string;
428
- })) | ({
429
- __TYPE__: "AnyLink";
430
- } & {
431
- text: string;
432
357
  });
433
358
  start: number;
434
359
  end: number;
@@ -445,7 +370,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
445
370
  })[], ({
446
371
  data: ({
447
372
  __TYPE__: "ImageLink";
448
- } & (({
373
+ } & {
449
374
  kind: "image";
450
375
  id: string;
451
376
  url: string;
@@ -455,13 +380,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
455
380
  name: string;
456
381
  } & {
457
382
  date?: string | null | undefined;
458
- text?: string;
459
- }) | {
460
- kind: "image";
461
- text: string;
462
- })) | ({
383
+ }) | ({
463
384
  __TYPE__: "FileLink";
464
- } & (({
385
+ } & {
465
386
  kind: "file";
466
387
  id: string;
467
388
  url: string;
@@ -469,27 +390,13 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
469
390
  size: string;
470
391
  } & {
471
392
  date?: string | null | undefined;
472
- text?: string;
473
- }) | {
474
- kind: "file";
475
- text: string;
476
- })) | ({
477
- __TYPE__: "MediaLink";
478
- } & {
479
- kind: "media";
480
- text: string;
481
393
  }) | ({
482
394
  __TYPE__: "DocumentLink";
483
- } & (({
484
- id: string;
485
395
  } & {
486
- text?: string;
487
- }) | {
488
- kind: "document";
489
- text: string;
490
- })) | ({
396
+ id: string;
397
+ }) | ({
491
398
  __TYPE__: "ExternalLink";
492
- } & (({
399
+ } & {
493
400
  url: string;
494
401
  } & {
495
402
  kind?: "web";
@@ -497,14 +404,6 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
497
404
  preview?: {
498
405
  title?: string;
499
406
  } | null | undefined;
500
- text?: string;
501
- }) | {
502
- kind: "web";
503
- text: string;
504
- })) | ({
505
- __TYPE__: "AnyLink";
506
- } & {
507
- text: string;
508
407
  });
509
408
  start: number;
510
409
  end: number;
@@ -651,7 +550,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
651
550
  __TYPE__: t.LiteralC<"LinkContent">;
652
551
  value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
653
552
  __TYPE__: t.LiteralC<"ImageLink">;
654
- }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
553
+ }>>, t.UnionC<[t.IntersectionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
655
554
  kind: t.Type<"image", "image", unknown>;
656
555
  id: t.StringC;
657
556
  url: t.StringC;
@@ -659,15 +558,16 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
659
558
  width: t.StringC;
660
559
  size: t.StringC;
661
560
  name: t.StringC;
662
- }>, t.PartialC<{
561
+ }>>, t.ExactC<t.PartialC<{
663
562
  date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
563
+ }>>]>, t.ExactC<t.PartialC<{
664
564
  text: t.StringC;
665
- }>]>>, t.ExactC<t.TypeC<{
565
+ }>>]>, t.ExactC<t.TypeC<{
666
566
  kind: t.LiteralC<"image">;
667
567
  text: t.StringC;
668
568
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
669
569
  __TYPE__: t.LiteralC<"FileLink">;
670
- }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
570
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
671
571
  kind: t.Type<"file", "file", unknown>;
672
572
  id: t.StringC;
673
573
  url: t.StringC;
@@ -675,22 +575,23 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
675
575
  size: t.StringC;
676
576
  }>, t.PartialC<{
677
577
  date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
578
+ }>]>>, t.ExactC<t.PartialC<{
678
579
  text: t.StringC;
679
- }>]>>, t.ExactC<t.TypeC<{
580
+ }>>]>, t.ExactC<t.TypeC<{
680
581
  kind: t.LiteralC<"file">;
681
582
  text: t.StringC;
682
583
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
683
584
  __TYPE__: t.LiteralC<"DocumentLink">;
684
- }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
585
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
685
586
  id: t.Type<string, string, unknown>;
686
- }>, t.PartialC<{
587
+ }>>, t.ExactC<t.PartialC<{
687
588
  text: t.StringC;
688
- }>]>>, t.ExactC<t.TypeC<{
589
+ }>>]>, t.ExactC<t.TypeC<{
689
590
  kind: t.LiteralC<"document">;
690
591
  text: t.StringC;
691
592
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
692
593
  __TYPE__: t.LiteralC<"ExternalLink">;
693
- }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
594
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
694
595
  url: t.StringC;
695
596
  }>, t.PartialC<{
696
597
  kind: t.LiteralC<"web">;
@@ -700,8 +601,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
700
601
  }, {
701
602
  title?: string;
702
603
  }, unknown>, t.NullC, t.UndefinedC]>;
604
+ }>]>>, t.ExactC<t.PartialC<{
703
605
  text: t.StringC;
704
- }>]>>, t.ExactC<t.TypeC<{
606
+ }>>]>, t.ExactC<t.TypeC<{
705
607
  kind: t.LiteralC<"web">;
706
608
  text: t.StringC;
707
609
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
@@ -743,7 +645,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
743
645
  }>]>>, t.PartialC<{
744
646
  linkTo: t.UnionC<[t.Type<({
745
647
  __TYPE__: "ImageLink";
746
- } & (({
648
+ } & {
747
649
  kind: "image";
748
650
  id: string;
749
651
  url: string;
@@ -753,13 +655,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
753
655
  name: string;
754
656
  } & {
755
657
  date?: string | null | undefined;
756
- text?: string;
757
- }) | {
758
- kind: "image";
759
- text: string;
760
- })) | ({
658
+ }) | ({
761
659
  __TYPE__: "FileLink";
762
- } & (({
660
+ } & {
763
661
  kind: "file";
764
662
  id: string;
765
663
  url: string;
@@ -767,27 +665,13 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
767
665
  size: string;
768
666
  } & {
769
667
  date?: string | null | undefined;
770
- text?: string;
771
- }) | {
772
- kind: "file";
773
- text: string;
774
- })) | ({
775
- __TYPE__: "MediaLink";
776
- } & {
777
- kind: "media";
778
- text: string;
779
668
  }) | ({
780
669
  __TYPE__: "DocumentLink";
781
- } & (({
782
- id: string;
783
670
  } & {
784
- text?: string;
785
- }) | {
786
- kind: "document";
787
- text: string;
788
- })) | ({
671
+ id: string;
672
+ }) | ({
789
673
  __TYPE__: "ExternalLink";
790
- } & (({
674
+ } & {
791
675
  url: string;
792
676
  } & {
793
677
  kind?: "web";
@@ -795,17 +679,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
795
679
  preview?: {
796
680
  title?: string;
797
681
  } | null | undefined;
798
- text?: string;
799
- }) | {
800
- kind: "web";
801
- text: string;
802
- })) | ({
803
- __TYPE__: "AnyLink";
804
- } & {
805
- text: string;
806
682
  }), ({
807
683
  __TYPE__: "ImageLink";
808
- } & (({
684
+ } & {
809
685
  kind: "image";
810
686
  id: string;
811
687
  url: string;
@@ -815,13 +691,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
815
691
  name: string;
816
692
  } & {
817
693
  date?: string | null | undefined;
818
- text?: string;
819
- }) | {
820
- kind: "image";
821
- text: string;
822
- })) | ({
694
+ }) | ({
823
695
  __TYPE__: "FileLink";
824
- } & (({
696
+ } & {
825
697
  kind: "file";
826
698
  id: string;
827
699
  url: string;
@@ -829,27 +701,13 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
829
701
  size: string;
830
702
  } & {
831
703
  date?: string | null | undefined;
832
- text?: string;
833
- }) | {
834
- kind: "file";
835
- text: string;
836
- })) | ({
837
- __TYPE__: "MediaLink";
838
- } & {
839
- kind: "media";
840
- text: string;
841
704
  }) | ({
842
705
  __TYPE__: "DocumentLink";
843
- } & (({
844
- id: string;
845
706
  } & {
846
- text?: string;
847
- }) | {
848
- kind: "document";
849
- text: string;
850
- })) | ({
707
+ id: string;
708
+ }) | ({
851
709
  __TYPE__: "ExternalLink";
852
- } & (({
710
+ } & {
853
711
  url: string;
854
712
  } & {
855
713
  kind?: "web";
@@ -857,14 +715,6 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
857
715
  preview?: {
858
716
  title?: string;
859
717
  } | null | undefined;
860
- text?: string;
861
- }) | {
862
- kind: "web";
863
- text: string;
864
- })) | ({
865
- __TYPE__: "AnyLink";
866
- } & {
867
- text: string;
868
718
  }), unknown>, t.NullC, t.UndefinedC]>;
869
719
  }>]>;
870
720
  }>, t.PartialC<{
@@ -902,7 +752,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
902
752
  spans: t.Type<({
903
753
  data: ({
904
754
  __TYPE__: "ImageLink";
905
- } & (({
755
+ } & {
906
756
  kind: "image";
907
757
  id: string;
908
758
  url: string;
@@ -912,13 +762,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
912
762
  name: string;
913
763
  } & {
914
764
  date?: string | null | undefined;
915
- text?: string;
916
- }) | {
917
- kind: "image";
918
- text: string;
919
- })) | ({
765
+ }) | ({
920
766
  __TYPE__: "FileLink";
921
- } & (({
767
+ } & {
922
768
  kind: "file";
923
769
  id: string;
924
770
  url: string;
@@ -926,27 +772,13 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
926
772
  size: string;
927
773
  } & {
928
774
  date?: string | null | undefined;
929
- text?: string;
930
- }) | {
931
- kind: "file";
932
- text: string;
933
- })) | ({
934
- __TYPE__: "MediaLink";
935
- } & {
936
- kind: "media";
937
- text: string;
938
775
  }) | ({
939
776
  __TYPE__: "DocumentLink";
940
- } & (({
941
- id: string;
942
777
  } & {
943
- text?: string;
944
- }) | {
945
- kind: "document";
946
- text: string;
947
- })) | ({
778
+ id: string;
779
+ }) | ({
948
780
  __TYPE__: "ExternalLink";
949
- } & (({
781
+ } & {
950
782
  url: string;
951
783
  } & {
952
784
  kind?: "web";
@@ -954,14 +786,6 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
954
786
  preview?: {
955
787
  title?: string;
956
788
  } | null | undefined;
957
- text?: string;
958
- }) | {
959
- kind: "web";
960
- text: string;
961
- })) | ({
962
- __TYPE__: "AnyLink";
963
- } & {
964
- text: string;
965
789
  });
966
790
  start: number;
967
791
  end: number;
@@ -978,7 +802,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
978
802
  })[], ({
979
803
  data: ({
980
804
  __TYPE__: "ImageLink";
981
- } & (({
805
+ } & {
982
806
  kind: "image";
983
807
  id: string;
984
808
  url: string;
@@ -988,13 +812,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
988
812
  name: string;
989
813
  } & {
990
814
  date?: string | null | undefined;
991
- text?: string;
992
- }) | {
993
- kind: "image";
994
- text: string;
995
- })) | ({
815
+ }) | ({
996
816
  __TYPE__: "FileLink";
997
- } & (({
817
+ } & {
998
818
  kind: "file";
999
819
  id: string;
1000
820
  url: string;
@@ -1002,27 +822,13 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1002
822
  size: string;
1003
823
  } & {
1004
824
  date?: string | null | undefined;
1005
- text?: string;
1006
- }) | {
1007
- kind: "file";
1008
- text: string;
1009
- })) | ({
1010
- __TYPE__: "MediaLink";
1011
- } & {
1012
- kind: "media";
1013
- text: string;
1014
825
  }) | ({
1015
826
  __TYPE__: "DocumentLink";
1016
- } & (({
1017
- id: string;
1018
827
  } & {
1019
- text?: string;
1020
- }) | {
1021
- kind: "document";
1022
- text: string;
1023
- })) | ({
828
+ id: string;
829
+ }) | ({
1024
830
  __TYPE__: "ExternalLink";
1025
- } & (({
831
+ } & {
1026
832
  url: string;
1027
833
  } & {
1028
834
  kind?: "web";
@@ -1030,14 +836,6 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1030
836
  preview?: {
1031
837
  title?: string;
1032
838
  } | null | undefined;
1033
- text?: string;
1034
- }) | {
1035
- kind: "web";
1036
- text: string;
1037
- })) | ({
1038
- __TYPE__: "AnyLink";
1039
- } & {
1040
- text: string;
1041
839
  });
1042
840
  start: number;
1043
841
  end: number;
@@ -1176,7 +974,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1176
974
  __TYPE__: t.LiteralC<"LinkContent">;
1177
975
  value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
1178
976
  __TYPE__: t.LiteralC<"ImageLink">;
1179
- }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
977
+ }>>, t.UnionC<[t.IntersectionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
1180
978
  kind: t.Type<"image", "image", unknown>;
1181
979
  id: t.StringC;
1182
980
  url: t.StringC;
@@ -1184,15 +982,16 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1184
982
  width: t.StringC;
1185
983
  size: t.StringC;
1186
984
  name: t.StringC;
1187
- }>, t.PartialC<{
985
+ }>>, t.ExactC<t.PartialC<{
1188
986
  date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
987
+ }>>]>, t.ExactC<t.PartialC<{
1189
988
  text: t.StringC;
1190
- }>]>>, t.ExactC<t.TypeC<{
989
+ }>>]>, t.ExactC<t.TypeC<{
1191
990
  kind: t.LiteralC<"image">;
1192
991
  text: t.StringC;
1193
992
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1194
993
  __TYPE__: t.LiteralC<"FileLink">;
1195
- }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
994
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1196
995
  kind: t.Type<"file", "file", unknown>;
1197
996
  id: t.StringC;
1198
997
  url: t.StringC;
@@ -1200,22 +999,23 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1200
999
  size: t.StringC;
1201
1000
  }>, t.PartialC<{
1202
1001
  date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1002
+ }>]>>, t.ExactC<t.PartialC<{
1203
1003
  text: t.StringC;
1204
- }>]>>, t.ExactC<t.TypeC<{
1004
+ }>>]>, t.ExactC<t.TypeC<{
1205
1005
  kind: t.LiteralC<"file">;
1206
1006
  text: t.StringC;
1207
1007
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1208
1008
  __TYPE__: t.LiteralC<"DocumentLink">;
1209
- }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1009
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
1210
1010
  id: t.Type<string, string, unknown>;
1211
- }>, t.PartialC<{
1011
+ }>>, t.ExactC<t.PartialC<{
1212
1012
  text: t.StringC;
1213
- }>]>>, t.ExactC<t.TypeC<{
1013
+ }>>]>, t.ExactC<t.TypeC<{
1214
1014
  kind: t.LiteralC<"document">;
1215
1015
  text: t.StringC;
1216
1016
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1217
1017
  __TYPE__: t.LiteralC<"ExternalLink">;
1218
- }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1018
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1219
1019
  url: t.StringC;
1220
1020
  }>, t.PartialC<{
1221
1021
  kind: t.LiteralC<"web">;
@@ -1225,8 +1025,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1225
1025
  }, {
1226
1026
  title?: string;
1227
1027
  }, unknown>, t.NullC, t.UndefinedC]>;
1028
+ }>]>>, t.ExactC<t.PartialC<{
1228
1029
  text: t.StringC;
1229
- }>]>>, t.ExactC<t.TypeC<{
1030
+ }>>]>, t.ExactC<t.TypeC<{
1230
1031
  kind: t.LiteralC<"web">;
1231
1032
  text: t.StringC;
1232
1033
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
@@ -1268,7 +1069,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1268
1069
  }>]>>, t.PartialC<{
1269
1070
  linkTo: t.UnionC<[t.Type<({
1270
1071
  __TYPE__: "ImageLink";
1271
- } & (({
1072
+ } & {
1272
1073
  kind: "image";
1273
1074
  id: string;
1274
1075
  url: string;
@@ -1278,13 +1079,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1278
1079
  name: string;
1279
1080
  } & {
1280
1081
  date?: string | null | undefined;
1281
- text?: string;
1282
- }) | {
1283
- kind: "image";
1284
- text: string;
1285
- })) | ({
1082
+ }) | ({
1286
1083
  __TYPE__: "FileLink";
1287
- } & (({
1084
+ } & {
1288
1085
  kind: "file";
1289
1086
  id: string;
1290
1087
  url: string;
@@ -1292,27 +1089,13 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1292
1089
  size: string;
1293
1090
  } & {
1294
1091
  date?: string | null | undefined;
1295
- text?: string;
1296
- }) | {
1297
- kind: "file";
1298
- text: string;
1299
- })) | ({
1300
- __TYPE__: "MediaLink";
1301
- } & {
1302
- kind: "media";
1303
- text: string;
1304
1092
  }) | ({
1305
1093
  __TYPE__: "DocumentLink";
1306
- } & (({
1307
- id: string;
1308
1094
  } & {
1309
- text?: string;
1310
- }) | {
1311
- kind: "document";
1312
- text: string;
1313
- })) | ({
1095
+ id: string;
1096
+ }) | ({
1314
1097
  __TYPE__: "ExternalLink";
1315
- } & (({
1098
+ } & {
1316
1099
  url: string;
1317
1100
  } & {
1318
1101
  kind?: "web";
@@ -1320,17 +1103,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1320
1103
  preview?: {
1321
1104
  title?: string;
1322
1105
  } | null | undefined;
1323
- text?: string;
1324
- }) | {
1325
- kind: "web";
1326
- text: string;
1327
- })) | ({
1328
- __TYPE__: "AnyLink";
1329
- } & {
1330
- text: string;
1331
1106
  }), ({
1332
1107
  __TYPE__: "ImageLink";
1333
- } & (({
1108
+ } & {
1334
1109
  kind: "image";
1335
1110
  id: string;
1336
1111
  url: string;
@@ -1340,41 +1115,23 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1340
1115
  name: string;
1341
1116
  } & {
1342
1117
  date?: string | null | undefined;
1343
- text?: string;
1344
- }) | {
1345
- kind: "image";
1346
- text: string;
1347
- })) | ({
1118
+ }) | ({
1348
1119
  __TYPE__: "FileLink";
1349
- } & (({
1350
- kind: "file";
1351
- id: string;
1352
- url: string;
1353
- name: string;
1354
- size: string;
1355
1120
  } & {
1356
- date?: string | null | undefined;
1357
- text?: string;
1358
- }) | {
1359
1121
  kind: "file";
1360
- text: string;
1361
- })) | ({
1362
- __TYPE__: "MediaLink";
1122
+ id: string;
1123
+ url: string;
1124
+ name: string;
1125
+ size: string;
1363
1126
  } & {
1364
- kind: "media";
1365
- text: string;
1127
+ date?: string | null | undefined;
1366
1128
  }) | ({
1367
1129
  __TYPE__: "DocumentLink";
1368
- } & (({
1369
- id: string;
1370
1130
  } & {
1371
- text?: string;
1372
- }) | {
1373
- kind: "document";
1374
- text: string;
1375
- })) | ({
1131
+ id: string;
1132
+ }) | ({
1376
1133
  __TYPE__: "ExternalLink";
1377
- } & (({
1134
+ } & {
1378
1135
  url: string;
1379
1136
  } & {
1380
1137
  kind?: "web";
@@ -1382,14 +1139,6 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1382
1139
  preview?: {
1383
1140
  title?: string;
1384
1141
  } | null | undefined;
1385
- text?: string;
1386
- }) | {
1387
- kind: "web";
1388
- text: string;
1389
- })) | ({
1390
- __TYPE__: "AnyLink";
1391
- } & {
1392
- text: string;
1393
1142
  }), unknown>, t.NullC, t.UndefinedC]>;
1394
1143
  }>]>;
1395
1144
  }>, t.PartialC<{
@@ -1427,7 +1176,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1427
1176
  spans: t.Type<({
1428
1177
  data: ({
1429
1178
  __TYPE__: "ImageLink";
1430
- } & (({
1179
+ } & {
1431
1180
  kind: "image";
1432
1181
  id: string;
1433
1182
  url: string;
@@ -1437,13 +1186,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1437
1186
  name: string;
1438
1187
  } & {
1439
1188
  date?: string | null | undefined;
1440
- text?: string;
1441
- }) | {
1442
- kind: "image";
1443
- text: string;
1444
- })) | ({
1189
+ }) | ({
1445
1190
  __TYPE__: "FileLink";
1446
- } & (({
1191
+ } & {
1447
1192
  kind: "file";
1448
1193
  id: string;
1449
1194
  url: string;
@@ -1451,27 +1196,13 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1451
1196
  size: string;
1452
1197
  } & {
1453
1198
  date?: string | null | undefined;
1454
- text?: string;
1455
- }) | {
1456
- kind: "file";
1457
- text: string;
1458
- })) | ({
1459
- __TYPE__: "MediaLink";
1460
- } & {
1461
- kind: "media";
1462
- text: string;
1463
1199
  }) | ({
1464
1200
  __TYPE__: "DocumentLink";
1465
- } & (({
1466
- id: string;
1467
1201
  } & {
1468
- text?: string;
1469
- }) | {
1470
- kind: "document";
1471
- text: string;
1472
- })) | ({
1202
+ id: string;
1203
+ }) | ({
1473
1204
  __TYPE__: "ExternalLink";
1474
- } & (({
1205
+ } & {
1475
1206
  url: string;
1476
1207
  } & {
1477
1208
  kind?: "web";
@@ -1479,14 +1210,6 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1479
1210
  preview?: {
1480
1211
  title?: string;
1481
1212
  } | null | undefined;
1482
- text?: string;
1483
- }) | {
1484
- kind: "web";
1485
- text: string;
1486
- })) | ({
1487
- __TYPE__: "AnyLink";
1488
- } & {
1489
- text: string;
1490
1213
  });
1491
1214
  start: number;
1492
1215
  end: number;
@@ -1503,7 +1226,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1503
1226
  })[], ({
1504
1227
  data: ({
1505
1228
  __TYPE__: "ImageLink";
1506
- } & (({
1229
+ } & {
1507
1230
  kind: "image";
1508
1231
  id: string;
1509
1232
  url: string;
@@ -1513,13 +1236,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1513
1236
  name: string;
1514
1237
  } & {
1515
1238
  date?: string | null | undefined;
1516
- text?: string;
1517
- }) | {
1518
- kind: "image";
1519
- text: string;
1520
- })) | ({
1239
+ }) | ({
1521
1240
  __TYPE__: "FileLink";
1522
- } & (({
1241
+ } & {
1523
1242
  kind: "file";
1524
1243
  id: string;
1525
1244
  url: string;
@@ -1527,27 +1246,13 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1527
1246
  size: string;
1528
1247
  } & {
1529
1248
  date?: string | null | undefined;
1530
- text?: string;
1531
- }) | {
1532
- kind: "file";
1533
- text: string;
1534
- })) | ({
1535
- __TYPE__: "MediaLink";
1536
- } & {
1537
- kind: "media";
1538
- text: string;
1539
1249
  }) | ({
1540
1250
  __TYPE__: "DocumentLink";
1541
- } & (({
1542
- id: string;
1543
1251
  } & {
1544
- text?: string;
1545
- }) | {
1546
- kind: "document";
1547
- text: string;
1548
- })) | ({
1252
+ id: string;
1253
+ }) | ({
1549
1254
  __TYPE__: "ExternalLink";
1550
- } & (({
1255
+ } & {
1551
1256
  url: string;
1552
1257
  } & {
1553
1258
  kind?: "web";
@@ -1555,14 +1260,6 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1555
1260
  preview?: {
1556
1261
  title?: string;
1557
1262
  } | null | undefined;
1558
- text?: string;
1559
- }) | {
1560
- kind: "web";
1561
- text: string;
1562
- })) | ({
1563
- __TYPE__: "AnyLink";
1564
- } & {
1565
- text: string;
1566
1263
  });
1567
1264
  start: number;
1568
1265
  end: number;
@@ -1703,7 +1400,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1703
1400
  __TYPE__: t.LiteralC<"LinkContent">;
1704
1401
  value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
1705
1402
  __TYPE__: t.LiteralC<"ImageLink">;
1706
- }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1403
+ }>>, t.UnionC<[t.IntersectionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
1707
1404
  kind: t.Type<"image", "image", unknown>;
1708
1405
  id: t.StringC;
1709
1406
  url: t.StringC;
@@ -1711,15 +1408,16 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1711
1408
  width: t.StringC;
1712
1409
  size: t.StringC;
1713
1410
  name: t.StringC;
1714
- }>, t.PartialC<{
1411
+ }>>, t.ExactC<t.PartialC<{
1715
1412
  date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1413
+ }>>]>, t.ExactC<t.PartialC<{
1716
1414
  text: t.StringC;
1717
- }>]>>, t.ExactC<t.TypeC<{
1415
+ }>>]>, t.ExactC<t.TypeC<{
1718
1416
  kind: t.LiteralC<"image">;
1719
1417
  text: t.StringC;
1720
1418
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1721
1419
  __TYPE__: t.LiteralC<"FileLink">;
1722
- }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1420
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1723
1421
  kind: t.Type<"file", "file", unknown>;
1724
1422
  id: t.StringC;
1725
1423
  url: t.StringC;
@@ -1727,22 +1425,23 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1727
1425
  size: t.StringC;
1728
1426
  }>, t.PartialC<{
1729
1427
  date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1428
+ }>]>>, t.ExactC<t.PartialC<{
1730
1429
  text: t.StringC;
1731
- }>]>>, t.ExactC<t.TypeC<{
1430
+ }>>]>, t.ExactC<t.TypeC<{
1732
1431
  kind: t.LiteralC<"file">;
1733
1432
  text: t.StringC;
1734
1433
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1735
1434
  __TYPE__: t.LiteralC<"DocumentLink">;
1736
- }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1435
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
1737
1436
  id: t.Type<string, string, unknown>;
1738
- }>, t.PartialC<{
1437
+ }>>, t.ExactC<t.PartialC<{
1739
1438
  text: t.StringC;
1740
- }>]>>, t.ExactC<t.TypeC<{
1439
+ }>>]>, t.ExactC<t.TypeC<{
1741
1440
  kind: t.LiteralC<"document">;
1742
1441
  text: t.StringC;
1743
1442
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1744
1443
  __TYPE__: t.LiteralC<"ExternalLink">;
1745
- }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1444
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1746
1445
  url: t.StringC;
1747
1446
  }>, t.PartialC<{
1748
1447
  kind: t.LiteralC<"web">;
@@ -1752,8 +1451,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1752
1451
  }, {
1753
1452
  title?: string;
1754
1453
  }, unknown>, t.NullC, t.UndefinedC]>;
1454
+ }>]>>, t.ExactC<t.PartialC<{
1755
1455
  text: t.StringC;
1756
- }>]>>, t.ExactC<t.TypeC<{
1456
+ }>>]>, t.ExactC<t.TypeC<{
1757
1457
  kind: t.LiteralC<"web">;
1758
1458
  text: t.StringC;
1759
1459
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
@@ -1795,7 +1495,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1795
1495
  }>]>>, t.PartialC<{
1796
1496
  linkTo: t.UnionC<[t.Type<({
1797
1497
  __TYPE__: "ImageLink";
1798
- } & (({
1498
+ } & {
1799
1499
  kind: "image";
1800
1500
  id: string;
1801
1501
  url: string;
@@ -1805,13 +1505,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1805
1505
  name: string;
1806
1506
  } & {
1807
1507
  date?: string | null | undefined;
1808
- text?: string;
1809
- }) | {
1810
- kind: "image";
1811
- text: string;
1812
- })) | ({
1508
+ }) | ({
1813
1509
  __TYPE__: "FileLink";
1814
- } & (({
1510
+ } & {
1815
1511
  kind: "file";
1816
1512
  id: string;
1817
1513
  url: string;
@@ -1819,27 +1515,13 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1819
1515
  size: string;
1820
1516
  } & {
1821
1517
  date?: string | null | undefined;
1822
- text?: string;
1823
- }) | {
1824
- kind: "file";
1825
- text: string;
1826
- })) | ({
1827
- __TYPE__: "MediaLink";
1828
- } & {
1829
- kind: "media";
1830
- text: string;
1831
1518
  }) | ({
1832
1519
  __TYPE__: "DocumentLink";
1833
- } & (({
1834
- id: string;
1835
1520
  } & {
1836
- text?: string;
1837
- }) | {
1838
- kind: "document";
1839
- text: string;
1840
- })) | ({
1521
+ id: string;
1522
+ }) | ({
1841
1523
  __TYPE__: "ExternalLink";
1842
- } & (({
1524
+ } & {
1843
1525
  url: string;
1844
1526
  } & {
1845
1527
  kind?: "web";
@@ -1847,17 +1529,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1847
1529
  preview?: {
1848
1530
  title?: string;
1849
1531
  } | null | undefined;
1850
- text?: string;
1851
- }) | {
1852
- kind: "web";
1853
- text: string;
1854
- })) | ({
1855
- __TYPE__: "AnyLink";
1856
- } & {
1857
- text: string;
1858
1532
  }), ({
1859
1533
  __TYPE__: "ImageLink";
1860
- } & (({
1534
+ } & {
1861
1535
  kind: "image";
1862
1536
  id: string;
1863
1537
  url: string;
@@ -1867,13 +1541,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1867
1541
  name: string;
1868
1542
  } & {
1869
1543
  date?: string | null | undefined;
1870
- text?: string;
1871
- }) | {
1872
- kind: "image";
1873
- text: string;
1874
- })) | ({
1544
+ }) | ({
1875
1545
  __TYPE__: "FileLink";
1876
- } & (({
1546
+ } & {
1877
1547
  kind: "file";
1878
1548
  id: string;
1879
1549
  url: string;
@@ -1881,27 +1551,13 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1881
1551
  size: string;
1882
1552
  } & {
1883
1553
  date?: string | null | undefined;
1884
- text?: string;
1885
- }) | {
1886
- kind: "file";
1887
- text: string;
1888
- })) | ({
1889
- __TYPE__: "MediaLink";
1890
- } & {
1891
- kind: "media";
1892
- text: string;
1893
1554
  }) | ({
1894
1555
  __TYPE__: "DocumentLink";
1895
- } & (({
1896
- id: string;
1897
1556
  } & {
1898
- text?: string;
1899
- }) | {
1900
- kind: "document";
1901
- text: string;
1902
- })) | ({
1557
+ id: string;
1558
+ }) | ({
1903
1559
  __TYPE__: "ExternalLink";
1904
- } & (({
1560
+ } & {
1905
1561
  url: string;
1906
1562
  } & {
1907
1563
  kind?: "web";
@@ -1909,14 +1565,6 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1909
1565
  preview?: {
1910
1566
  title?: string;
1911
1567
  } | null | undefined;
1912
- text?: string;
1913
- }) | {
1914
- kind: "web";
1915
- text: string;
1916
- })) | ({
1917
- __TYPE__: "AnyLink";
1918
- } & {
1919
- text: string;
1920
1568
  }), unknown>, t.NullC, t.UndefinedC]>;
1921
1569
  }>]>;
1922
1570
  }>, t.PartialC<{
@@ -1954,7 +1602,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1954
1602
  spans: t.Type<({
1955
1603
  data: ({
1956
1604
  __TYPE__: "ImageLink";
1957
- } & (({
1605
+ } & {
1958
1606
  kind: "image";
1959
1607
  id: string;
1960
1608
  url: string;
@@ -1964,13 +1612,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1964
1612
  name: string;
1965
1613
  } & {
1966
1614
  date?: string | null | undefined;
1967
- text?: string;
1968
- }) | {
1969
- kind: "image";
1970
- text: string;
1971
- })) | ({
1615
+ }) | ({
1972
1616
  __TYPE__: "FileLink";
1973
- } & (({
1617
+ } & {
1974
1618
  kind: "file";
1975
1619
  id: string;
1976
1620
  url: string;
@@ -1978,27 +1622,13 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1978
1622
  size: string;
1979
1623
  } & {
1980
1624
  date?: string | null | undefined;
1981
- text?: string;
1982
- }) | {
1983
- kind: "file";
1984
- text: string;
1985
- })) | ({
1986
- __TYPE__: "MediaLink";
1987
- } & {
1988
- kind: "media";
1989
- text: string;
1990
1625
  }) | ({
1991
1626
  __TYPE__: "DocumentLink";
1992
- } & (({
1993
- id: string;
1994
1627
  } & {
1995
- text?: string;
1996
- }) | {
1997
- kind: "document";
1998
- text: string;
1999
- })) | ({
1628
+ id: string;
1629
+ }) | ({
2000
1630
  __TYPE__: "ExternalLink";
2001
- } & (({
1631
+ } & {
2002
1632
  url: string;
2003
1633
  } & {
2004
1634
  kind?: "web";
@@ -2006,14 +1636,6 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2006
1636
  preview?: {
2007
1637
  title?: string;
2008
1638
  } | null | undefined;
2009
- text?: string;
2010
- }) | {
2011
- kind: "web";
2012
- text: string;
2013
- })) | ({
2014
- __TYPE__: "AnyLink";
2015
- } & {
2016
- text: string;
2017
1639
  });
2018
1640
  start: number;
2019
1641
  end: number;
@@ -2030,7 +1652,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2030
1652
  })[], ({
2031
1653
  data: ({
2032
1654
  __TYPE__: "ImageLink";
2033
- } & (({
1655
+ } & {
2034
1656
  kind: "image";
2035
1657
  id: string;
2036
1658
  url: string;
@@ -2040,13 +1662,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2040
1662
  name: string;
2041
1663
  } & {
2042
1664
  date?: string | null | undefined;
2043
- text?: string;
2044
- }) | {
2045
- kind: "image";
2046
- text: string;
2047
- })) | ({
1665
+ }) | ({
2048
1666
  __TYPE__: "FileLink";
2049
- } & (({
1667
+ } & {
2050
1668
  kind: "file";
2051
1669
  id: string;
2052
1670
  url: string;
@@ -2054,27 +1672,13 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2054
1672
  size: string;
2055
1673
  } & {
2056
1674
  date?: string | null | undefined;
2057
- text?: string;
2058
- }) | {
2059
- kind: "file";
2060
- text: string;
2061
- })) | ({
2062
- __TYPE__: "MediaLink";
2063
- } & {
2064
- kind: "media";
2065
- text: string;
2066
1675
  }) | ({
2067
1676
  __TYPE__: "DocumentLink";
2068
- } & (({
2069
- id: string;
2070
1677
  } & {
2071
- text?: string;
2072
- }) | {
2073
- kind: "document";
2074
- text: string;
2075
- })) | ({
1678
+ id: string;
1679
+ }) | ({
2076
1680
  __TYPE__: "ExternalLink";
2077
- } & (({
1681
+ } & {
2078
1682
  url: string;
2079
1683
  } & {
2080
1684
  kind?: "web";
@@ -2082,14 +1686,6 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2082
1686
  preview?: {
2083
1687
  title?: string;
2084
1688
  } | null | undefined;
2085
- text?: string;
2086
- }) | {
2087
- kind: "web";
2088
- text: string;
2089
- })) | ({
2090
- __TYPE__: "AnyLink";
2091
- } & {
2092
- text: string;
2093
1689
  });
2094
1690
  start: number;
2095
1691
  end: number;
@@ -2228,7 +1824,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2228
1824
  __TYPE__: t.LiteralC<"LinkContent">;
2229
1825
  value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
2230
1826
  __TYPE__: t.LiteralC<"ImageLink">;
2231
- }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1827
+ }>>, t.UnionC<[t.IntersectionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
2232
1828
  kind: t.Type<"image", "image", unknown>;
2233
1829
  id: t.StringC;
2234
1830
  url: t.StringC;
@@ -2236,15 +1832,16 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2236
1832
  width: t.StringC;
2237
1833
  size: t.StringC;
2238
1834
  name: t.StringC;
2239
- }>, t.PartialC<{
1835
+ }>>, t.ExactC<t.PartialC<{
2240
1836
  date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1837
+ }>>]>, t.ExactC<t.PartialC<{
2241
1838
  text: t.StringC;
2242
- }>]>>, t.ExactC<t.TypeC<{
1839
+ }>>]>, t.ExactC<t.TypeC<{
2243
1840
  kind: t.LiteralC<"image">;
2244
1841
  text: t.StringC;
2245
1842
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2246
1843
  __TYPE__: t.LiteralC<"FileLink">;
2247
- }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1844
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2248
1845
  kind: t.Type<"file", "file", unknown>;
2249
1846
  id: t.StringC;
2250
1847
  url: t.StringC;
@@ -2252,22 +1849,23 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2252
1849
  size: t.StringC;
2253
1850
  }>, t.PartialC<{
2254
1851
  date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1852
+ }>]>>, t.ExactC<t.PartialC<{
2255
1853
  text: t.StringC;
2256
- }>]>>, t.ExactC<t.TypeC<{
1854
+ }>>]>, t.ExactC<t.TypeC<{
2257
1855
  kind: t.LiteralC<"file">;
2258
1856
  text: t.StringC;
2259
1857
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2260
1858
  __TYPE__: t.LiteralC<"DocumentLink">;
2261
- }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1859
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
2262
1860
  id: t.Type<string, string, unknown>;
2263
- }>, t.PartialC<{
1861
+ }>>, t.ExactC<t.PartialC<{
2264
1862
  text: t.StringC;
2265
- }>]>>, t.ExactC<t.TypeC<{
1863
+ }>>]>, t.ExactC<t.TypeC<{
2266
1864
  kind: t.LiteralC<"document">;
2267
1865
  text: t.StringC;
2268
1866
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2269
1867
  __TYPE__: t.LiteralC<"ExternalLink">;
2270
- }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1868
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2271
1869
  url: t.StringC;
2272
1870
  }>, t.PartialC<{
2273
1871
  kind: t.LiteralC<"web">;
@@ -2277,8 +1875,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2277
1875
  }, {
2278
1876
  title?: string;
2279
1877
  }, unknown>, t.NullC, t.UndefinedC]>;
1878
+ }>]>>, t.ExactC<t.PartialC<{
2280
1879
  text: t.StringC;
2281
- }>]>>, t.ExactC<t.TypeC<{
1880
+ }>>]>, t.ExactC<t.TypeC<{
2282
1881
  kind: t.LiteralC<"web">;
2283
1882
  text: t.StringC;
2284
1883
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
@@ -2320,7 +1919,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2320
1919
  }>]>>, t.PartialC<{
2321
1920
  linkTo: t.UnionC<[t.Type<({
2322
1921
  __TYPE__: "ImageLink";
2323
- } & (({
1922
+ } & {
2324
1923
  kind: "image";
2325
1924
  id: string;
2326
1925
  url: string;
@@ -2330,13 +1929,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2330
1929
  name: string;
2331
1930
  } & {
2332
1931
  date?: string | null | undefined;
2333
- text?: string;
2334
- }) | {
2335
- kind: "image";
2336
- text: string;
2337
- })) | ({
1932
+ }) | ({
2338
1933
  __TYPE__: "FileLink";
2339
- } & (({
1934
+ } & {
2340
1935
  kind: "file";
2341
1936
  id: string;
2342
1937
  url: string;
@@ -2344,27 +1939,13 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2344
1939
  size: string;
2345
1940
  } & {
2346
1941
  date?: string | null | undefined;
2347
- text?: string;
2348
- }) | {
2349
- kind: "file";
2350
- text: string;
2351
- })) | ({
2352
- __TYPE__: "MediaLink";
2353
- } & {
2354
- kind: "media";
2355
- text: string;
2356
1942
  }) | ({
2357
1943
  __TYPE__: "DocumentLink";
2358
- } & (({
2359
- id: string;
2360
1944
  } & {
2361
- text?: string;
2362
- }) | {
2363
- kind: "document";
2364
- text: string;
2365
- })) | ({
1945
+ id: string;
1946
+ }) | ({
2366
1947
  __TYPE__: "ExternalLink";
2367
- } & (({
1948
+ } & {
2368
1949
  url: string;
2369
1950
  } & {
2370
1951
  kind?: "web";
@@ -2372,17 +1953,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2372
1953
  preview?: {
2373
1954
  title?: string;
2374
1955
  } | null | undefined;
2375
- text?: string;
2376
- }) | {
2377
- kind: "web";
2378
- text: string;
2379
- })) | ({
2380
- __TYPE__: "AnyLink";
2381
- } & {
2382
- text: string;
2383
1956
  }), ({
2384
1957
  __TYPE__: "ImageLink";
2385
- } & (({
1958
+ } & {
2386
1959
  kind: "image";
2387
1960
  id: string;
2388
1961
  url: string;
@@ -2392,13 +1965,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2392
1965
  name: string;
2393
1966
  } & {
2394
1967
  date?: string | null | undefined;
2395
- text?: string;
2396
- }) | {
2397
- kind: "image";
2398
- text: string;
2399
- })) | ({
1968
+ }) | ({
2400
1969
  __TYPE__: "FileLink";
2401
- } & (({
1970
+ } & {
2402
1971
  kind: "file";
2403
1972
  id: string;
2404
1973
  url: string;
@@ -2406,27 +1975,13 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2406
1975
  size: string;
2407
1976
  } & {
2408
1977
  date?: string | null | undefined;
2409
- text?: string;
2410
- }) | {
2411
- kind: "file";
2412
- text: string;
2413
- })) | ({
2414
- __TYPE__: "MediaLink";
2415
- } & {
2416
- kind: "media";
2417
- text: string;
2418
1978
  }) | ({
2419
1979
  __TYPE__: "DocumentLink";
2420
- } & (({
2421
- id: string;
2422
1980
  } & {
2423
- text?: string;
2424
- }) | {
2425
- kind: "document";
2426
- text: string;
2427
- })) | ({
1981
+ id: string;
1982
+ }) | ({
2428
1983
  __TYPE__: "ExternalLink";
2429
- } & (({
1984
+ } & {
2430
1985
  url: string;
2431
1986
  } & {
2432
1987
  kind?: "web";
@@ -2434,14 +1989,6 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2434
1989
  preview?: {
2435
1990
  title?: string;
2436
1991
  } | null | undefined;
2437
- text?: string;
2438
- }) | {
2439
- kind: "web";
2440
- text: string;
2441
- })) | ({
2442
- __TYPE__: "AnyLink";
2443
- } & {
2444
- text: string;
2445
1992
  }), unknown>, t.NullC, t.UndefinedC]>;
2446
1993
  }>]>;
2447
1994
  }>, t.PartialC<{
@@ -2479,7 +2026,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2479
2026
  spans: t.Type<({
2480
2027
  data: ({
2481
2028
  __TYPE__: "ImageLink";
2482
- } & (({
2029
+ } & {
2483
2030
  kind: "image";
2484
2031
  id: string;
2485
2032
  url: string;
@@ -2489,13 +2036,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2489
2036
  name: string;
2490
2037
  } & {
2491
2038
  date?: string | null | undefined;
2492
- text?: string;
2493
- }) | {
2494
- kind: "image";
2495
- text: string;
2496
- })) | ({
2039
+ }) | ({
2497
2040
  __TYPE__: "FileLink";
2498
- } & (({
2041
+ } & {
2499
2042
  kind: "file";
2500
2043
  id: string;
2501
2044
  url: string;
@@ -2503,27 +2046,13 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2503
2046
  size: string;
2504
2047
  } & {
2505
2048
  date?: string | null | undefined;
2506
- text?: string;
2507
- }) | {
2508
- kind: "file";
2509
- text: string;
2510
- })) | ({
2511
- __TYPE__: "MediaLink";
2512
- } & {
2513
- kind: "media";
2514
- text: string;
2515
2049
  }) | ({
2516
2050
  __TYPE__: "DocumentLink";
2517
- } & (({
2518
- id: string;
2519
2051
  } & {
2520
- text?: string;
2521
- }) | {
2522
- kind: "document";
2523
- text: string;
2524
- })) | ({
2052
+ id: string;
2053
+ }) | ({
2525
2054
  __TYPE__: "ExternalLink";
2526
- } & (({
2055
+ } & {
2527
2056
  url: string;
2528
2057
  } & {
2529
2058
  kind?: "web";
@@ -2531,14 +2060,6 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2531
2060
  preview?: {
2532
2061
  title?: string;
2533
2062
  } | null | undefined;
2534
- text?: string;
2535
- }) | {
2536
- kind: "web";
2537
- text: string;
2538
- })) | ({
2539
- __TYPE__: "AnyLink";
2540
- } & {
2541
- text: string;
2542
2063
  });
2543
2064
  start: number;
2544
2065
  end: number;
@@ -2555,7 +2076,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2555
2076
  })[], ({
2556
2077
  data: ({
2557
2078
  __TYPE__: "ImageLink";
2558
- } & (({
2079
+ } & {
2559
2080
  kind: "image";
2560
2081
  id: string;
2561
2082
  url: string;
@@ -2565,13 +2086,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2565
2086
  name: string;
2566
2087
  } & {
2567
2088
  date?: string | null | undefined;
2568
- text?: string;
2569
- }) | {
2570
- kind: "image";
2571
- text: string;
2572
- })) | ({
2089
+ }) | ({
2573
2090
  __TYPE__: "FileLink";
2574
- } & (({
2091
+ } & {
2575
2092
  kind: "file";
2576
2093
  id: string;
2577
2094
  url: string;
@@ -2579,27 +2096,13 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2579
2096
  size: string;
2580
2097
  } & {
2581
2098
  date?: string | null | undefined;
2582
- text?: string;
2583
- }) | {
2584
- kind: "file";
2585
- text: string;
2586
- })) | ({
2587
- __TYPE__: "MediaLink";
2588
- } & {
2589
- kind: "media";
2590
- text: string;
2591
2099
  }) | ({
2592
2100
  __TYPE__: "DocumentLink";
2593
- } & (({
2594
- id: string;
2595
2101
  } & {
2596
- text?: string;
2597
- }) | {
2598
- kind: "document";
2599
- text: string;
2600
- })) | ({
2102
+ id: string;
2103
+ }) | ({
2601
2104
  __TYPE__: "ExternalLink";
2602
- } & (({
2105
+ } & {
2603
2106
  url: string;
2604
2107
  } & {
2605
2108
  kind?: "web";
@@ -2607,14 +2110,6 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2607
2110
  preview?: {
2608
2111
  title?: string;
2609
2112
  } | null | undefined;
2610
- text?: string;
2611
- }) | {
2612
- kind: "web";
2613
- text: string;
2614
- })) | ({
2615
- __TYPE__: "AnyLink";
2616
- } & {
2617
- text: string;
2618
2113
  });
2619
2114
  start: number;
2620
2115
  end: number;
@@ -2752,7 +2247,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2752
2247
  __TYPE__: t.LiteralC<"LinkContent">;
2753
2248
  value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
2754
2249
  __TYPE__: t.LiteralC<"ImageLink">;
2755
- }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2250
+ }>>, t.UnionC<[t.IntersectionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
2756
2251
  kind: t.Type<"image", "image", unknown>;
2757
2252
  id: t.StringC;
2758
2253
  url: t.StringC;
@@ -2760,15 +2255,16 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2760
2255
  width: t.StringC;
2761
2256
  size: t.StringC;
2762
2257
  name: t.StringC;
2763
- }>, t.PartialC<{
2258
+ }>>, t.ExactC<t.PartialC<{
2764
2259
  date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2260
+ }>>]>, t.ExactC<t.PartialC<{
2765
2261
  text: t.StringC;
2766
- }>]>>, t.ExactC<t.TypeC<{
2262
+ }>>]>, t.ExactC<t.TypeC<{
2767
2263
  kind: t.LiteralC<"image">;
2768
2264
  text: t.StringC;
2769
2265
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2770
2266
  __TYPE__: t.LiteralC<"FileLink">;
2771
- }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2267
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2772
2268
  kind: t.Type<"file", "file", unknown>;
2773
2269
  id: t.StringC;
2774
2270
  url: t.StringC;
@@ -2776,22 +2272,23 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2776
2272
  size: t.StringC;
2777
2273
  }>, t.PartialC<{
2778
2274
  date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2275
+ }>]>>, t.ExactC<t.PartialC<{
2779
2276
  text: t.StringC;
2780
- }>]>>, t.ExactC<t.TypeC<{
2277
+ }>>]>, t.ExactC<t.TypeC<{
2781
2278
  kind: t.LiteralC<"file">;
2782
2279
  text: t.StringC;
2783
2280
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2784
2281
  __TYPE__: t.LiteralC<"DocumentLink">;
2785
- }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2282
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
2786
2283
  id: t.Type<string, string, unknown>;
2787
- }>, t.PartialC<{
2284
+ }>>, t.ExactC<t.PartialC<{
2788
2285
  text: t.StringC;
2789
- }>]>>, t.ExactC<t.TypeC<{
2286
+ }>>]>, t.ExactC<t.TypeC<{
2790
2287
  kind: t.LiteralC<"document">;
2791
2288
  text: t.StringC;
2792
2289
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2793
2290
  __TYPE__: t.LiteralC<"ExternalLink">;
2794
- }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2291
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2795
2292
  url: t.StringC;
2796
2293
  }>, t.PartialC<{
2797
2294
  kind: t.LiteralC<"web">;
@@ -2801,8 +2298,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2801
2298
  }, {
2802
2299
  title?: string;
2803
2300
  }, unknown>, t.NullC, t.UndefinedC]>;
2301
+ }>]>>, t.ExactC<t.PartialC<{
2804
2302
  text: t.StringC;
2805
- }>]>>, t.ExactC<t.TypeC<{
2303
+ }>>]>, t.ExactC<t.TypeC<{
2806
2304
  kind: t.LiteralC<"web">;
2807
2305
  text: t.StringC;
2808
2306
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
@@ -2844,7 +2342,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2844
2342
  }>]>>, t.PartialC<{
2845
2343
  linkTo: t.UnionC<[t.Type<({
2846
2344
  __TYPE__: "ImageLink";
2847
- } & (({
2345
+ } & {
2848
2346
  kind: "image";
2849
2347
  id: string;
2850
2348
  url: string;
@@ -2854,13 +2352,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2854
2352
  name: string;
2855
2353
  } & {
2856
2354
  date?: string | null | undefined;
2857
- text?: string;
2858
- }) | {
2859
- kind: "image";
2860
- text: string;
2861
- })) | ({
2355
+ }) | ({
2862
2356
  __TYPE__: "FileLink";
2863
- } & (({
2357
+ } & {
2864
2358
  kind: "file";
2865
2359
  id: string;
2866
2360
  url: string;
@@ -2868,27 +2362,13 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2868
2362
  size: string;
2869
2363
  } & {
2870
2364
  date?: string | null | undefined;
2871
- text?: string;
2872
- }) | {
2873
- kind: "file";
2874
- text: string;
2875
- })) | ({
2876
- __TYPE__: "MediaLink";
2877
- } & {
2878
- kind: "media";
2879
- text: string;
2880
2365
  }) | ({
2881
2366
  __TYPE__: "DocumentLink";
2882
- } & (({
2883
- id: string;
2884
2367
  } & {
2885
- text?: string;
2886
- }) | {
2887
- kind: "document";
2888
- text: string;
2889
- })) | ({
2368
+ id: string;
2369
+ }) | ({
2890
2370
  __TYPE__: "ExternalLink";
2891
- } & (({
2371
+ } & {
2892
2372
  url: string;
2893
2373
  } & {
2894
2374
  kind?: "web";
@@ -2896,17 +2376,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2896
2376
  preview?: {
2897
2377
  title?: string;
2898
2378
  } | null | undefined;
2899
- text?: string;
2900
- }) | {
2901
- kind: "web";
2902
- text: string;
2903
- })) | ({
2904
- __TYPE__: "AnyLink";
2905
- } & {
2906
- text: string;
2907
2379
  }), ({
2908
2380
  __TYPE__: "ImageLink";
2909
- } & (({
2381
+ } & {
2910
2382
  kind: "image";
2911
2383
  id: string;
2912
2384
  url: string;
@@ -2916,13 +2388,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2916
2388
  name: string;
2917
2389
  } & {
2918
2390
  date?: string | null | undefined;
2919
- text?: string;
2920
- }) | {
2921
- kind: "image";
2922
- text: string;
2923
- })) | ({
2391
+ }) | ({
2924
2392
  __TYPE__: "FileLink";
2925
- } & (({
2393
+ } & {
2926
2394
  kind: "file";
2927
2395
  id: string;
2928
2396
  url: string;
@@ -2930,27 +2398,13 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2930
2398
  size: string;
2931
2399
  } & {
2932
2400
  date?: string | null | undefined;
2933
- text?: string;
2934
- }) | {
2935
- kind: "file";
2936
- text: string;
2937
- })) | ({
2938
- __TYPE__: "MediaLink";
2939
- } & {
2940
- kind: "media";
2941
- text: string;
2942
2401
  }) | ({
2943
2402
  __TYPE__: "DocumentLink";
2944
- } & (({
2945
- id: string;
2946
2403
  } & {
2947
- text?: string;
2948
- }) | {
2949
- kind: "document";
2950
- text: string;
2951
- })) | ({
2404
+ id: string;
2405
+ }) | ({
2952
2406
  __TYPE__: "ExternalLink";
2953
- } & (({
2407
+ } & {
2954
2408
  url: string;
2955
2409
  } & {
2956
2410
  kind?: "web";
@@ -2958,14 +2412,6 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2958
2412
  preview?: {
2959
2413
  title?: string;
2960
2414
  } | null | undefined;
2961
- text?: string;
2962
- }) | {
2963
- kind: "web";
2964
- text: string;
2965
- })) | ({
2966
- __TYPE__: "AnyLink";
2967
- } & {
2968
- text: string;
2969
2415
  }), unknown>, t.NullC, t.UndefinedC]>;
2970
2416
  }>]>;
2971
2417
  }>, t.PartialC<{
@@ -3003,7 +2449,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
3003
2449
  spans: t.Type<({
3004
2450
  data: ({
3005
2451
  __TYPE__: "ImageLink";
3006
- } & (({
2452
+ } & {
3007
2453
  kind: "image";
3008
2454
  id: string;
3009
2455
  url: string;
@@ -3013,13 +2459,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
3013
2459
  name: string;
3014
2460
  } & {
3015
2461
  date?: string | null | undefined;
3016
- text?: string;
3017
- }) | {
3018
- kind: "image";
3019
- text: string;
3020
- })) | ({
2462
+ }) | ({
3021
2463
  __TYPE__: "FileLink";
3022
- } & (({
2464
+ } & {
3023
2465
  kind: "file";
3024
2466
  id: string;
3025
2467
  url: string;
@@ -3027,27 +2469,13 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
3027
2469
  size: string;
3028
2470
  } & {
3029
2471
  date?: string | null | undefined;
3030
- text?: string;
3031
- }) | {
3032
- kind: "file";
3033
- text: string;
3034
- })) | ({
3035
- __TYPE__: "MediaLink";
3036
- } & {
3037
- kind: "media";
3038
- text: string;
3039
2472
  }) | ({
3040
2473
  __TYPE__: "DocumentLink";
3041
- } & (({
3042
- id: string;
3043
2474
  } & {
3044
- text?: string;
3045
- }) | {
3046
- kind: "document";
3047
- text: string;
3048
- })) | ({
2475
+ id: string;
2476
+ }) | ({
3049
2477
  __TYPE__: "ExternalLink";
3050
- } & (({
2478
+ } & {
3051
2479
  url: string;
3052
2480
  } & {
3053
2481
  kind?: "web";
@@ -3055,14 +2483,6 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
3055
2483
  preview?: {
3056
2484
  title?: string;
3057
2485
  } | null | undefined;
3058
- text?: string;
3059
- }) | {
3060
- kind: "web";
3061
- text: string;
3062
- })) | ({
3063
- __TYPE__: "AnyLink";
3064
- } & {
3065
- text: string;
3066
2486
  });
3067
2487
  start: number;
3068
2488
  end: number;
@@ -3079,7 +2499,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
3079
2499
  })[], ({
3080
2500
  data: ({
3081
2501
  __TYPE__: "ImageLink";
3082
- } & (({
2502
+ } & {
3083
2503
  kind: "image";
3084
2504
  id: string;
3085
2505
  url: string;
@@ -3089,13 +2509,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
3089
2509
  name: string;
3090
2510
  } & {
3091
2511
  date?: string | null | undefined;
3092
- text?: string;
3093
- }) | {
3094
- kind: "image";
3095
- text: string;
3096
- })) | ({
2512
+ }) | ({
3097
2513
  __TYPE__: "FileLink";
3098
- } & (({
2514
+ } & {
3099
2515
  kind: "file";
3100
2516
  id: string;
3101
2517
  url: string;
@@ -3103,27 +2519,13 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
3103
2519
  size: string;
3104
2520
  } & {
3105
2521
  date?: string | null | undefined;
3106
- text?: string;
3107
- }) | {
3108
- kind: "file";
3109
- text: string;
3110
- })) | ({
3111
- __TYPE__: "MediaLink";
3112
- } & {
3113
- kind: "media";
3114
- text: string;
3115
2522
  }) | ({
3116
2523
  __TYPE__: "DocumentLink";
3117
- } & (({
3118
- id: string;
3119
2524
  } & {
3120
- text?: string;
3121
- }) | {
3122
- kind: "document";
3123
- text: string;
3124
- })) | ({
2525
+ id: string;
2526
+ }) | ({
3125
2527
  __TYPE__: "ExternalLink";
3126
- } & (({
2528
+ } & {
3127
2529
  url: string;
3128
2530
  } & {
3129
2531
  kind?: "web";
@@ -3131,14 +2533,6 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
3131
2533
  preview?: {
3132
2534
  title?: string;
3133
2535
  } | null | undefined;
3134
- text?: string;
3135
- }) | {
3136
- kind: "web";
3137
- text: string;
3138
- })) | ({
3139
- __TYPE__: "AnyLink";
3140
- } & {
3141
- text: string;
3142
2536
  });
3143
2537
  start: number;
3144
2538
  end: number;
@@ -3307,6 +2701,7 @@ export declare const DocumentLegacy: {
3307
2701
  name: string;
3308
2702
  } & {
3309
2703
  date?: string | null | undefined;
2704
+ } & {
3310
2705
  text?: string;
3311
2706
  }) | {
3312
2707
  kind: "image";
@@ -3321,6 +2716,7 @@ export declare const DocumentLegacy: {
3321
2716
  size: string;
3322
2717
  } & {
3323
2718
  date?: string | null | undefined;
2719
+ } & {
3324
2720
  text?: string;
3325
2721
  }) | {
3326
2722
  kind: "file";
@@ -3349,6 +2745,7 @@ export declare const DocumentLegacy: {
3349
2745
  preview?: {
3350
2746
  title?: string;
3351
2747
  } | null | undefined;
2748
+ } & {
3352
2749
  text?: string;
3353
2750
  }) | {
3354
2751
  kind: "web";
@@ -3387,7 +2784,7 @@ export declare const DocumentLegacy: {
3387
2784
  } & {
3388
2785
  linkTo?: ({
3389
2786
  __TYPE__: "ImageLink";
3390
- } & (({
2787
+ } & {
3391
2788
  kind: "image";
3392
2789
  id: string;
3393
2790
  url: string;
@@ -3397,13 +2794,9 @@ export declare const DocumentLegacy: {
3397
2794
  name: string;
3398
2795
  } & {
3399
2796
  date?: string | null | undefined;
3400
- text?: string;
3401
- }) | {
3402
- kind: "image";
3403
- text: string;
3404
- })) | ({
2797
+ }) | ({
3405
2798
  __TYPE__: "FileLink";
3406
- } & (({
2799
+ } & {
3407
2800
  kind: "file";
3408
2801
  id: string;
3409
2802
  url: string;
@@ -3411,27 +2804,13 @@ export declare const DocumentLegacy: {
3411
2804
  size: string;
3412
2805
  } & {
3413
2806
  date?: string | null | undefined;
3414
- text?: string;
3415
- }) | {
3416
- kind: "file";
3417
- text: string;
3418
- })) | ({
3419
- __TYPE__: "MediaLink";
3420
- } & {
3421
- kind: "media";
3422
- text: string;
3423
2807
  }) | ({
3424
2808
  __TYPE__: "DocumentLink";
3425
- } & (({
3426
- id: string;
3427
2809
  } & {
3428
- text?: string;
3429
- }) | {
3430
- kind: "document";
3431
- text: string;
3432
- })) | ({
2810
+ id: string;
2811
+ }) | ({
3433
2812
  __TYPE__: "ExternalLink";
3434
- } & (({
2813
+ } & {
3435
2814
  url: string;
3436
2815
  } & {
3437
2816
  kind?: "web";
@@ -3439,14 +2818,6 @@ export declare const DocumentLegacy: {
3439
2818
  preview?: {
3440
2819
  title?: string;
3441
2820
  } | null | undefined;
3442
- text?: string;
3443
- }) | {
3444
- kind: "web";
3445
- text: string;
3446
- })) | ({
3447
- __TYPE__: "AnyLink";
3448
- } & {
3449
- text: string;
3450
2821
  }) | null | undefined;
3451
2822
  };
3452
2823
  } & {
@@ -3484,7 +2855,7 @@ export declare const DocumentLegacy: {
3484
2855
  spans?: ({
3485
2856
  data: ({
3486
2857
  __TYPE__: "ImageLink";
3487
- } & (({
2858
+ } & {
3488
2859
  kind: "image";
3489
2860
  id: string;
3490
2861
  url: string;
@@ -3494,13 +2865,9 @@ export declare const DocumentLegacy: {
3494
2865
  name: string;
3495
2866
  } & {
3496
2867
  date?: string | null | undefined;
3497
- text?: string;
3498
- }) | {
3499
- kind: "image";
3500
- text: string;
3501
- })) | ({
2868
+ }) | ({
3502
2869
  __TYPE__: "FileLink";
3503
- } & (({
2870
+ } & {
3504
2871
  kind: "file";
3505
2872
  id: string;
3506
2873
  url: string;
@@ -3508,27 +2875,13 @@ export declare const DocumentLegacy: {
3508
2875
  size: string;
3509
2876
  } & {
3510
2877
  date?: string | null | undefined;
3511
- text?: string;
3512
- }) | {
3513
- kind: "file";
3514
- text: string;
3515
- })) | ({
3516
- __TYPE__: "MediaLink";
3517
- } & {
3518
- kind: "media";
3519
- text: string;
3520
2878
  }) | ({
3521
2879
  __TYPE__: "DocumentLink";
3522
- } & (({
3523
- id: string;
3524
2880
  } & {
3525
- text?: string;
3526
- }) | {
3527
- kind: "document";
3528
- text: string;
3529
- })) | ({
2881
+ id: string;
2882
+ }) | ({
3530
2883
  __TYPE__: "ExternalLink";
3531
- } & (({
2884
+ } & {
3532
2885
  url: string;
3533
2886
  } & {
3534
2887
  kind?: "web";
@@ -3536,14 +2889,6 @@ export declare const DocumentLegacy: {
3536
2889
  preview?: {
3537
2890
  title?: string;
3538
2891
  } | null | undefined;
3539
- text?: string;
3540
- }) | {
3541
- kind: "web";
3542
- text: string;
3543
- })) | ({
3544
- __TYPE__: "AnyLink";
3545
- } & {
3546
- text: string;
3547
2892
  });
3548
2893
  start: number;
3549
2894
  end: number;
@@ -3700,6 +3045,7 @@ export declare const DocumentLegacy: {
3700
3045
  name: string;
3701
3046
  } & {
3702
3047
  date?: string | null | undefined;
3048
+ } & {
3703
3049
  text?: string;
3704
3050
  }) | {
3705
3051
  kind: "image";
@@ -3714,6 +3060,7 @@ export declare const DocumentLegacy: {
3714
3060
  size: string;
3715
3061
  } & {
3716
3062
  date?: string | null | undefined;
3063
+ } & {
3717
3064
  text?: string;
3718
3065
  }) | {
3719
3066
  kind: "file";
@@ -3742,6 +3089,7 @@ export declare const DocumentLegacy: {
3742
3089
  preview?: {
3743
3090
  title?: string;
3744
3091
  } | null | undefined;
3092
+ } & {
3745
3093
  text?: string;
3746
3094
  }) | {
3747
3095
  kind: "web";
@@ -3780,7 +3128,7 @@ export declare const DocumentLegacy: {
3780
3128
  } & {
3781
3129
  linkTo?: ({
3782
3130
  __TYPE__: "ImageLink";
3783
- } & (({
3131
+ } & {
3784
3132
  kind: "image";
3785
3133
  id: string;
3786
3134
  url: string;
@@ -3790,13 +3138,9 @@ export declare const DocumentLegacy: {
3790
3138
  name: string;
3791
3139
  } & {
3792
3140
  date?: string | null | undefined;
3793
- text?: string;
3794
- }) | {
3795
- kind: "image";
3796
- text: string;
3797
- })) | ({
3141
+ }) | ({
3798
3142
  __TYPE__: "FileLink";
3799
- } & (({
3143
+ } & {
3800
3144
  kind: "file";
3801
3145
  id: string;
3802
3146
  url: string;
@@ -3804,27 +3148,13 @@ export declare const DocumentLegacy: {
3804
3148
  size: string;
3805
3149
  } & {
3806
3150
  date?: string | null | undefined;
3807
- text?: string;
3808
- }) | {
3809
- kind: "file";
3810
- text: string;
3811
- })) | ({
3812
- __TYPE__: "MediaLink";
3813
- } & {
3814
- kind: "media";
3815
- text: string;
3816
3151
  }) | ({
3817
3152
  __TYPE__: "DocumentLink";
3818
- } & (({
3819
- id: string;
3820
3153
  } & {
3821
- text?: string;
3822
- }) | {
3823
- kind: "document";
3824
- text: string;
3825
- })) | ({
3154
+ id: string;
3155
+ }) | ({
3826
3156
  __TYPE__: "ExternalLink";
3827
- } & (({
3157
+ } & {
3828
3158
  url: string;
3829
3159
  } & {
3830
3160
  kind?: "web";
@@ -3832,14 +3162,6 @@ export declare const DocumentLegacy: {
3832
3162
  preview?: {
3833
3163
  title?: string;
3834
3164
  } | null | undefined;
3835
- text?: string;
3836
- }) | {
3837
- kind: "web";
3838
- text: string;
3839
- })) | ({
3840
- __TYPE__: "AnyLink";
3841
- } & {
3842
- text: string;
3843
3165
  }) | null | undefined;
3844
3166
  };
3845
3167
  } & {
@@ -3877,7 +3199,7 @@ export declare const DocumentLegacy: {
3877
3199
  spans?: ({
3878
3200
  data: ({
3879
3201
  __TYPE__: "ImageLink";
3880
- } & (({
3202
+ } & {
3881
3203
  kind: "image";
3882
3204
  id: string;
3883
3205
  url: string;
@@ -3887,13 +3209,9 @@ export declare const DocumentLegacy: {
3887
3209
  name: string;
3888
3210
  } & {
3889
3211
  date?: string | null | undefined;
3890
- text?: string;
3891
- }) | {
3892
- kind: "image";
3893
- text: string;
3894
- })) | ({
3212
+ }) | ({
3895
3213
  __TYPE__: "FileLink";
3896
- } & (({
3214
+ } & {
3897
3215
  kind: "file";
3898
3216
  id: string;
3899
3217
  url: string;
@@ -3901,27 +3219,13 @@ export declare const DocumentLegacy: {
3901
3219
  size: string;
3902
3220
  } & {
3903
3221
  date?: string | null | undefined;
3904
- text?: string;
3905
- }) | {
3906
- kind: "file";
3907
- text: string;
3908
- })) | ({
3909
- __TYPE__: "MediaLink";
3910
- } & {
3911
- kind: "media";
3912
- text: string;
3913
3222
  }) | ({
3914
3223
  __TYPE__: "DocumentLink";
3915
- } & (({
3916
- id: string;
3917
3224
  } & {
3918
- text?: string;
3919
- }) | {
3920
- kind: "document";
3921
- text: string;
3922
- })) | ({
3225
+ id: string;
3226
+ }) | ({
3923
3227
  __TYPE__: "ExternalLink";
3924
- } & (({
3228
+ } & {
3925
3229
  url: string;
3926
3230
  } & {
3927
3231
  kind?: "web";
@@ -3929,14 +3233,6 @@ export declare const DocumentLegacy: {
3929
3233
  preview?: {
3930
3234
  title?: string;
3931
3235
  } | null | undefined;
3932
- text?: string;
3933
- }) | {
3934
- kind: "web";
3935
- text: string;
3936
- })) | ({
3937
- __TYPE__: "AnyLink";
3938
- } & {
3939
- text: string;
3940
3236
  });
3941
3237
  start: number;
3942
3238
  end: number;
@@ -4087,6 +3383,7 @@ export declare const DocumentLegacy: {
4087
3383
  name: string;
4088
3384
  } & {
4089
3385
  date?: string | null | undefined;
3386
+ } & {
4090
3387
  text?: string;
4091
3388
  }) | {
4092
3389
  kind: "image";
@@ -4101,6 +3398,7 @@ export declare const DocumentLegacy: {
4101
3398
  size: string;
4102
3399
  } & {
4103
3400
  date?: string | null | undefined;
3401
+ } & {
4104
3402
  text?: string;
4105
3403
  }) | {
4106
3404
  kind: "file";
@@ -4129,6 +3427,7 @@ export declare const DocumentLegacy: {
4129
3427
  preview?: {
4130
3428
  title?: string;
4131
3429
  } | null | undefined;
3430
+ } & {
4132
3431
  text?: string;
4133
3432
  }) | {
4134
3433
  kind: "web";
@@ -4167,7 +3466,7 @@ export declare const DocumentLegacy: {
4167
3466
  } & {
4168
3467
  linkTo?: ({
4169
3468
  __TYPE__: "ImageLink";
4170
- } & (({
3469
+ } & {
4171
3470
  kind: "image";
4172
3471
  id: string;
4173
3472
  url: string;
@@ -4177,13 +3476,9 @@ export declare const DocumentLegacy: {
4177
3476
  name: string;
4178
3477
  } & {
4179
3478
  date?: string | null | undefined;
4180
- text?: string;
4181
- }) | {
4182
- kind: "image";
4183
- text: string;
4184
- })) | ({
3479
+ }) | ({
4185
3480
  __TYPE__: "FileLink";
4186
- } & (({
3481
+ } & {
4187
3482
  kind: "file";
4188
3483
  id: string;
4189
3484
  url: string;
@@ -4191,27 +3486,13 @@ export declare const DocumentLegacy: {
4191
3486
  size: string;
4192
3487
  } & {
4193
3488
  date?: string | null | undefined;
4194
- text?: string;
4195
- }) | {
4196
- kind: "file";
4197
- text: string;
4198
- })) | ({
4199
- __TYPE__: "MediaLink";
4200
- } & {
4201
- kind: "media";
4202
- text: string;
4203
3489
  }) | ({
4204
3490
  __TYPE__: "DocumentLink";
4205
- } & (({
4206
- id: string;
4207
3491
  } & {
4208
- text?: string;
4209
- }) | {
4210
- kind: "document";
4211
- text: string;
4212
- })) | ({
3492
+ id: string;
3493
+ }) | ({
4213
3494
  __TYPE__: "ExternalLink";
4214
- } & (({
3495
+ } & {
4215
3496
  url: string;
4216
3497
  } & {
4217
3498
  kind?: "web";
@@ -4219,14 +3500,6 @@ export declare const DocumentLegacy: {
4219
3500
  preview?: {
4220
3501
  title?: string;
4221
3502
  } | null | undefined;
4222
- text?: string;
4223
- }) | {
4224
- kind: "web";
4225
- text: string;
4226
- })) | ({
4227
- __TYPE__: "AnyLink";
4228
- } & {
4229
- text: string;
4230
3503
  }) | null | undefined;
4231
3504
  };
4232
3505
  } & {
@@ -4264,7 +3537,7 @@ export declare const DocumentLegacy: {
4264
3537
  spans?: ({
4265
3538
  data: ({
4266
3539
  __TYPE__: "ImageLink";
4267
- } & (({
3540
+ } & {
4268
3541
  kind: "image";
4269
3542
  id: string;
4270
3543
  url: string;
@@ -4274,13 +3547,9 @@ export declare const DocumentLegacy: {
4274
3547
  name: string;
4275
3548
  } & {
4276
3549
  date?: string | null | undefined;
4277
- text?: string;
4278
- }) | {
4279
- kind: "image";
4280
- text: string;
4281
- })) | ({
3550
+ }) | ({
4282
3551
  __TYPE__: "FileLink";
4283
- } & (({
3552
+ } & {
4284
3553
  kind: "file";
4285
3554
  id: string;
4286
3555
  url: string;
@@ -4288,27 +3557,13 @@ export declare const DocumentLegacy: {
4288
3557
  size: string;
4289
3558
  } & {
4290
3559
  date?: string | null | undefined;
4291
- text?: string;
4292
- }) | {
4293
- kind: "file";
4294
- text: string;
4295
- })) | ({
4296
- __TYPE__: "MediaLink";
4297
- } & {
4298
- kind: "media";
4299
- text: string;
4300
3560
  }) | ({
4301
3561
  __TYPE__: "DocumentLink";
4302
- } & (({
4303
- id: string;
4304
3562
  } & {
4305
- text?: string;
4306
- }) | {
4307
- kind: "document";
4308
- text: string;
4309
- })) | ({
3563
+ id: string;
3564
+ }) | ({
4310
3565
  __TYPE__: "ExternalLink";
4311
- } & (({
3566
+ } & {
4312
3567
  url: string;
4313
3568
  } & {
4314
3569
  kind?: "web";
@@ -4316,14 +3571,6 @@ export declare const DocumentLegacy: {
4316
3571
  preview?: {
4317
3572
  title?: string;
4318
3573
  } | null | undefined;
4319
- text?: string;
4320
- }) | {
4321
- kind: "web";
4322
- text: string;
4323
- })) | ({
4324
- __TYPE__: "AnyLink";
4325
- } & {
4326
- text: string;
4327
3574
  });
4328
3575
  start: number;
4329
3576
  end: number;
@@ -4475,6 +3722,7 @@ export declare const DocumentLegacy: {
4475
3722
  name: string;
4476
3723
  } & {
4477
3724
  date?: string | null | undefined;
3725
+ } & {
4478
3726
  text?: string;
4479
3727
  }) | {
4480
3728
  kind: "image";
@@ -4489,6 +3737,7 @@ export declare const DocumentLegacy: {
4489
3737
  size: string;
4490
3738
  } & {
4491
3739
  date?: string | null | undefined;
3740
+ } & {
4492
3741
  text?: string;
4493
3742
  }) | {
4494
3743
  kind: "file";
@@ -4517,6 +3766,7 @@ export declare const DocumentLegacy: {
4517
3766
  preview?: {
4518
3767
  title?: string;
4519
3768
  } | null | undefined;
3769
+ } & {
4520
3770
  text?: string;
4521
3771
  }) | {
4522
3772
  kind: "web";
@@ -4555,7 +3805,7 @@ export declare const DocumentLegacy: {
4555
3805
  } & {
4556
3806
  linkTo?: ({
4557
3807
  __TYPE__: "ImageLink";
4558
- } & (({
3808
+ } & {
4559
3809
  kind: "image";
4560
3810
  id: string;
4561
3811
  url: string;
@@ -4565,13 +3815,9 @@ export declare const DocumentLegacy: {
4565
3815
  name: string;
4566
3816
  } & {
4567
3817
  date?: string | null | undefined;
4568
- text?: string;
4569
- }) | {
4570
- kind: "image";
4571
- text: string;
4572
- })) | ({
3818
+ }) | ({
4573
3819
  __TYPE__: "FileLink";
4574
- } & (({
3820
+ } & {
4575
3821
  kind: "file";
4576
3822
  id: string;
4577
3823
  url: string;
@@ -4579,27 +3825,13 @@ export declare const DocumentLegacy: {
4579
3825
  size: string;
4580
3826
  } & {
4581
3827
  date?: string | null | undefined;
4582
- text?: string;
4583
- }) | {
4584
- kind: "file";
4585
- text: string;
4586
- })) | ({
4587
- __TYPE__: "MediaLink";
4588
- } & {
4589
- kind: "media";
4590
- text: string;
4591
3828
  }) | ({
4592
3829
  __TYPE__: "DocumentLink";
4593
- } & (({
4594
- id: string;
4595
3830
  } & {
4596
- text?: string;
4597
- }) | {
4598
- kind: "document";
4599
- text: string;
4600
- })) | ({
3831
+ id: string;
3832
+ }) | ({
4601
3833
  __TYPE__: "ExternalLink";
4602
- } & (({
3834
+ } & {
4603
3835
  url: string;
4604
3836
  } & {
4605
3837
  kind?: "web";
@@ -4607,14 +3839,6 @@ export declare const DocumentLegacy: {
4607
3839
  preview?: {
4608
3840
  title?: string;
4609
3841
  } | null | undefined;
4610
- text?: string;
4611
- }) | {
4612
- kind: "web";
4613
- text: string;
4614
- })) | ({
4615
- __TYPE__: "AnyLink";
4616
- } & {
4617
- text: string;
4618
3842
  }) | null | undefined;
4619
3843
  };
4620
3844
  } & {
@@ -4652,7 +3876,7 @@ export declare const DocumentLegacy: {
4652
3876
  spans?: ({
4653
3877
  data: ({
4654
3878
  __TYPE__: "ImageLink";
4655
- } & (({
3879
+ } & {
4656
3880
  kind: "image";
4657
3881
  id: string;
4658
3882
  url: string;
@@ -4662,13 +3886,9 @@ export declare const DocumentLegacy: {
4662
3886
  name: string;
4663
3887
  } & {
4664
3888
  date?: string | null | undefined;
4665
- text?: string;
4666
- }) | {
4667
- kind: "image";
4668
- text: string;
4669
- })) | ({
3889
+ }) | ({
4670
3890
  __TYPE__: "FileLink";
4671
- } & (({
3891
+ } & {
4672
3892
  kind: "file";
4673
3893
  id: string;
4674
3894
  url: string;
@@ -4676,27 +3896,13 @@ export declare const DocumentLegacy: {
4676
3896
  size: string;
4677
3897
  } & {
4678
3898
  date?: string | null | undefined;
4679
- text?: string;
4680
- }) | {
4681
- kind: "file";
4682
- text: string;
4683
- })) | ({
4684
- __TYPE__: "MediaLink";
4685
- } & {
4686
- kind: "media";
4687
- text: string;
4688
3899
  }) | ({
4689
3900
  __TYPE__: "DocumentLink";
4690
- } & (({
4691
- id: string;
4692
3901
  } & {
4693
- text?: string;
4694
- }) | {
4695
- kind: "document";
4696
- text: string;
4697
- })) | ({
3902
+ id: string;
3903
+ }) | ({
4698
3904
  __TYPE__: "ExternalLink";
4699
- } & (({
3905
+ } & {
4700
3906
  url: string;
4701
3907
  } & {
4702
3908
  kind?: "web";
@@ -4704,14 +3910,6 @@ export declare const DocumentLegacy: {
4704
3910
  preview?: {
4705
3911
  title?: string;
4706
3912
  } | null | undefined;
4707
- text?: string;
4708
- }) | {
4709
- kind: "web";
4710
- text: string;
4711
- })) | ({
4712
- __TYPE__: "AnyLink";
4713
- } & {
4714
- text: string;
4715
3913
  });
4716
3914
  start: number;
4717
3915
  end: number;
@@ -4865,6 +4063,7 @@ export declare const DocumentLegacy: {
4865
4063
  name: string;
4866
4064
  } & {
4867
4065
  date?: string | null | undefined;
4066
+ } & {
4868
4067
  text?: string;
4869
4068
  }) | {
4870
4069
  kind: "image";
@@ -4879,6 +4078,7 @@ export declare const DocumentLegacy: {
4879
4078
  size: string;
4880
4079
  } & {
4881
4080
  date?: string | null | undefined;
4081
+ } & {
4882
4082
  text?: string;
4883
4083
  }) | {
4884
4084
  kind: "file";
@@ -4907,6 +4107,7 @@ export declare const DocumentLegacy: {
4907
4107
  preview?: {
4908
4108
  title?: string;
4909
4109
  } | null | undefined;
4110
+ } & {
4910
4111
  text?: string;
4911
4112
  }) | {
4912
4113
  kind: "web";
@@ -4945,7 +4146,7 @@ export declare const DocumentLegacy: {
4945
4146
  } & {
4946
4147
  linkTo?: ({
4947
4148
  __TYPE__: "ImageLink";
4948
- } & (({
4149
+ } & {
4949
4150
  kind: "image";
4950
4151
  id: string;
4951
4152
  url: string;
@@ -4955,13 +4156,9 @@ export declare const DocumentLegacy: {
4955
4156
  name: string;
4956
4157
  } & {
4957
4158
  date?: string | null | undefined;
4958
- text?: string;
4959
- }) | {
4960
- kind: "image";
4961
- text: string;
4962
- })) | ({
4159
+ }) | ({
4963
4160
  __TYPE__: "FileLink";
4964
- } & (({
4161
+ } & {
4965
4162
  kind: "file";
4966
4163
  id: string;
4967
4164
  url: string;
@@ -4969,27 +4166,13 @@ export declare const DocumentLegacy: {
4969
4166
  size: string;
4970
4167
  } & {
4971
4168
  date?: string | null | undefined;
4972
- text?: string;
4973
- }) | {
4974
- kind: "file";
4975
- text: string;
4976
- })) | ({
4977
- __TYPE__: "MediaLink";
4978
- } & {
4979
- kind: "media";
4980
- text: string;
4981
4169
  }) | ({
4982
4170
  __TYPE__: "DocumentLink";
4983
- } & (({
4984
- id: string;
4985
4171
  } & {
4986
- text?: string;
4987
- }) | {
4988
- kind: "document";
4989
- text: string;
4990
- })) | ({
4172
+ id: string;
4173
+ }) | ({
4991
4174
  __TYPE__: "ExternalLink";
4992
- } & (({
4175
+ } & {
4993
4176
  url: string;
4994
4177
  } & {
4995
4178
  kind?: "web";
@@ -4997,14 +4180,6 @@ export declare const DocumentLegacy: {
4997
4180
  preview?: {
4998
4181
  title?: string;
4999
4182
  } | null | undefined;
5000
- text?: string;
5001
- }) | {
5002
- kind: "web";
5003
- text: string;
5004
- })) | ({
5005
- __TYPE__: "AnyLink";
5006
- } & {
5007
- text: string;
5008
4183
  }) | null | undefined;
5009
4184
  };
5010
4185
  } & {
@@ -5042,7 +4217,7 @@ export declare const DocumentLegacy: {
5042
4217
  spans?: ({
5043
4218
  data: ({
5044
4219
  __TYPE__: "ImageLink";
5045
- } & (({
4220
+ } & {
5046
4221
  kind: "image";
5047
4222
  id: string;
5048
4223
  url: string;
@@ -5052,13 +4227,9 @@ export declare const DocumentLegacy: {
5052
4227
  name: string;
5053
4228
  } & {
5054
4229
  date?: string | null | undefined;
5055
- text?: string;
5056
- }) | {
5057
- kind: "image";
5058
- text: string;
5059
- })) | ({
4230
+ }) | ({
5060
4231
  __TYPE__: "FileLink";
5061
- } & (({
4232
+ } & {
5062
4233
  kind: "file";
5063
4234
  id: string;
5064
4235
  url: string;
@@ -5066,27 +4237,13 @@ export declare const DocumentLegacy: {
5066
4237
  size: string;
5067
4238
  } & {
5068
4239
  date?: string | null | undefined;
5069
- text?: string;
5070
- }) | {
5071
- kind: "file";
5072
- text: string;
5073
- })) | ({
5074
- __TYPE__: "MediaLink";
5075
- } & {
5076
- kind: "media";
5077
- text: string;
5078
4240
  }) | ({
5079
4241
  __TYPE__: "DocumentLink";
5080
- } & (({
5081
- id: string;
5082
4242
  } & {
5083
- text?: string;
5084
- }) | {
5085
- kind: "document";
5086
- text: string;
5087
- })) | ({
4243
+ id: string;
4244
+ }) | ({
5088
4245
  __TYPE__: "ExternalLink";
5089
- } & (({
4246
+ } & {
5090
4247
  url: string;
5091
4248
  } & {
5092
4249
  kind?: "web";
@@ -5094,14 +4251,6 @@ export declare const DocumentLegacy: {
5094
4251
  preview?: {
5095
4252
  title?: string;
5096
4253
  } | null | undefined;
5097
- text?: string;
5098
- }) | {
5099
- kind: "web";
5100
- text: string;
5101
- })) | ({
5102
- __TYPE__: "AnyLink";
5103
- } & {
5104
- text: string;
5105
4254
  });
5106
4255
  start: number;
5107
4256
  end: number;
@@ -5253,6 +4402,7 @@ export declare const DocumentLegacy: {
5253
4402
  name: string;
5254
4403
  } & {
5255
4404
  date?: string | null | undefined;
4405
+ } & {
5256
4406
  text?: string;
5257
4407
  }) | {
5258
4408
  kind: "image";
@@ -5267,6 +4417,7 @@ export declare const DocumentLegacy: {
5267
4417
  size: string;
5268
4418
  } & {
5269
4419
  date?: string | null | undefined;
4420
+ } & {
5270
4421
  text?: string;
5271
4422
  }) | {
5272
4423
  kind: "file";
@@ -5295,6 +4446,7 @@ export declare const DocumentLegacy: {
5295
4446
  preview?: {
5296
4447
  title?: string;
5297
4448
  } | null | undefined;
4449
+ } & {
5298
4450
  text?: string;
5299
4451
  }) | {
5300
4452
  kind: "web";
@@ -5333,7 +4485,7 @@ export declare const DocumentLegacy: {
5333
4485
  } & {
5334
4486
  linkTo?: ({
5335
4487
  __TYPE__: "ImageLink";
5336
- } & (({
4488
+ } & {
5337
4489
  kind: "image";
5338
4490
  id: string;
5339
4491
  url: string;
@@ -5343,13 +4495,9 @@ export declare const DocumentLegacy: {
5343
4495
  name: string;
5344
4496
  } & {
5345
4497
  date?: string | null | undefined;
5346
- text?: string;
5347
- }) | {
5348
- kind: "image";
5349
- text: string;
5350
- })) | ({
4498
+ }) | ({
5351
4499
  __TYPE__: "FileLink";
5352
- } & (({
4500
+ } & {
5353
4501
  kind: "file";
5354
4502
  id: string;
5355
4503
  url: string;
@@ -5357,27 +4505,13 @@ export declare const DocumentLegacy: {
5357
4505
  size: string;
5358
4506
  } & {
5359
4507
  date?: string | null | undefined;
5360
- text?: string;
5361
- }) | {
5362
- kind: "file";
5363
- text: string;
5364
- })) | ({
5365
- __TYPE__: "MediaLink";
5366
- } & {
5367
- kind: "media";
5368
- text: string;
5369
4508
  }) | ({
5370
4509
  __TYPE__: "DocumentLink";
5371
- } & (({
5372
- id: string;
5373
4510
  } & {
5374
- text?: string;
5375
- }) | {
5376
- kind: "document";
5377
- text: string;
5378
- })) | ({
4511
+ id: string;
4512
+ }) | ({
5379
4513
  __TYPE__: "ExternalLink";
5380
- } & (({
4514
+ } & {
5381
4515
  url: string;
5382
4516
  } & {
5383
4517
  kind?: "web";
@@ -5385,14 +4519,6 @@ export declare const DocumentLegacy: {
5385
4519
  preview?: {
5386
4520
  title?: string;
5387
4521
  } | null | undefined;
5388
- text?: string;
5389
- }) | {
5390
- kind: "web";
5391
- text: string;
5392
- })) | ({
5393
- __TYPE__: "AnyLink";
5394
- } & {
5395
- text: string;
5396
4522
  }) | null | undefined;
5397
4523
  };
5398
4524
  } & {
@@ -5430,7 +4556,7 @@ export declare const DocumentLegacy: {
5430
4556
  spans?: ({
5431
4557
  data: ({
5432
4558
  __TYPE__: "ImageLink";
5433
- } & (({
4559
+ } & {
5434
4560
  kind: "image";
5435
4561
  id: string;
5436
4562
  url: string;
@@ -5440,13 +4566,9 @@ export declare const DocumentLegacy: {
5440
4566
  name: string;
5441
4567
  } & {
5442
4568
  date?: string | null | undefined;
5443
- text?: string;
5444
- }) | {
5445
- kind: "image";
5446
- text: string;
5447
- })) | ({
4569
+ }) | ({
5448
4570
  __TYPE__: "FileLink";
5449
- } & (({
4571
+ } & {
5450
4572
  kind: "file";
5451
4573
  id: string;
5452
4574
  url: string;
@@ -5454,27 +4576,13 @@ export declare const DocumentLegacy: {
5454
4576
  size: string;
5455
4577
  } & {
5456
4578
  date?: string | null | undefined;
5457
- text?: string;
5458
- }) | {
5459
- kind: "file";
5460
- text: string;
5461
- })) | ({
5462
- __TYPE__: "MediaLink";
5463
- } & {
5464
- kind: "media";
5465
- text: string;
5466
4579
  }) | ({
5467
4580
  __TYPE__: "DocumentLink";
5468
- } & (({
5469
- id: string;
5470
4581
  } & {
5471
- text?: string;
5472
- }) | {
5473
- kind: "document";
5474
- text: string;
5475
- })) | ({
4582
+ id: string;
4583
+ }) | ({
5476
4584
  __TYPE__: "ExternalLink";
5477
- } & (({
4585
+ } & {
5478
4586
  url: string;
5479
4587
  } & {
5480
4588
  kind?: "web";
@@ -5482,14 +4590,6 @@ export declare const DocumentLegacy: {
5482
4590
  preview?: {
5483
4591
  title?: string;
5484
4592
  } | null | undefined;
5485
- text?: string;
5486
- }) | {
5487
- kind: "web";
5488
- text: string;
5489
- })) | ({
5490
- __TYPE__: "AnyLink";
5491
- } & {
5492
- text: string;
5493
4593
  });
5494
4594
  start: number;
5495
4595
  end: number;
@@ -5677,6 +4777,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5677
4777
  name: string;
5678
4778
  } & {
5679
4779
  date?: string | null | undefined;
4780
+ } & {
5680
4781
  text?: string;
5681
4782
  }) | {
5682
4783
  kind: "image";
@@ -5691,6 +4792,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5691
4792
  size: string;
5692
4793
  } & {
5693
4794
  date?: string | null | undefined;
4795
+ } & {
5694
4796
  text?: string;
5695
4797
  }) | {
5696
4798
  kind: "file";
@@ -5719,6 +4821,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5719
4821
  preview?: {
5720
4822
  title?: string;
5721
4823
  } | null | undefined;
4824
+ } & {
5722
4825
  text?: string;
5723
4826
  }) | {
5724
4827
  kind: "web";
@@ -5757,7 +4860,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5757
4860
  } & {
5758
4861
  linkTo?: ({
5759
4862
  __TYPE__: "ImageLink";
5760
- } & (({
4863
+ } & {
5761
4864
  kind: "image";
5762
4865
  id: string;
5763
4866
  url: string;
@@ -5767,13 +4870,9 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5767
4870
  name: string;
5768
4871
  } & {
5769
4872
  date?: string | null | undefined;
5770
- text?: string;
5771
- }) | {
5772
- kind: "image";
5773
- text: string;
5774
- })) | ({
4873
+ }) | ({
5775
4874
  __TYPE__: "FileLink";
5776
- } & (({
4875
+ } & {
5777
4876
  kind: "file";
5778
4877
  id: string;
5779
4878
  url: string;
@@ -5781,27 +4880,13 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5781
4880
  size: string;
5782
4881
  } & {
5783
4882
  date?: string | null | undefined;
5784
- text?: string;
5785
- }) | {
5786
- kind: "file";
5787
- text: string;
5788
- })) | ({
5789
- __TYPE__: "MediaLink";
5790
- } & {
5791
- kind: "media";
5792
- text: string;
5793
- }) | ({
5794
- __TYPE__: "DocumentLink";
5795
- } & (({
5796
- id: string;
5797
- } & {
5798
- text?: string;
5799
- }) | {
5800
- kind: "document";
5801
- text: string;
5802
- })) | ({
4883
+ }) | ({
4884
+ __TYPE__: "DocumentLink";
4885
+ } & {
4886
+ id: string;
4887
+ }) | ({
5803
4888
  __TYPE__: "ExternalLink";
5804
- } & (({
4889
+ } & {
5805
4890
  url: string;
5806
4891
  } & {
5807
4892
  kind?: "web";
@@ -5809,14 +4894,6 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5809
4894
  preview?: {
5810
4895
  title?: string;
5811
4896
  } | null | undefined;
5812
- text?: string;
5813
- }) | {
5814
- kind: "web";
5815
- text: string;
5816
- })) | ({
5817
- __TYPE__: "AnyLink";
5818
- } & {
5819
- text: string;
5820
4897
  }) | null | undefined;
5821
4898
  };
5822
4899
  } & {
@@ -5854,7 +4931,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5854
4931
  spans?: ({
5855
4932
  data: ({
5856
4933
  __TYPE__: "ImageLink";
5857
- } & (({
4934
+ } & {
5858
4935
  kind: "image";
5859
4936
  id: string;
5860
4937
  url: string;
@@ -5864,13 +4941,9 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5864
4941
  name: string;
5865
4942
  } & {
5866
4943
  date?: string | null | undefined;
5867
- text?: string;
5868
- }) | {
5869
- kind: "image";
5870
- text: string;
5871
- })) | ({
4944
+ }) | ({
5872
4945
  __TYPE__: "FileLink";
5873
- } & (({
4946
+ } & {
5874
4947
  kind: "file";
5875
4948
  id: string;
5876
4949
  url: string;
@@ -5878,27 +4951,13 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5878
4951
  size: string;
5879
4952
  } & {
5880
4953
  date?: string | null | undefined;
5881
- text?: string;
5882
- }) | {
5883
- kind: "file";
5884
- text: string;
5885
- })) | ({
5886
- __TYPE__: "MediaLink";
5887
- } & {
5888
- kind: "media";
5889
- text: string;
5890
4954
  }) | ({
5891
4955
  __TYPE__: "DocumentLink";
5892
- } & (({
5893
- id: string;
5894
4956
  } & {
5895
- text?: string;
5896
- }) | {
5897
- kind: "document";
5898
- text: string;
5899
- })) | ({
4957
+ id: string;
4958
+ }) | ({
5900
4959
  __TYPE__: "ExternalLink";
5901
- } & (({
4960
+ } & {
5902
4961
  url: string;
5903
4962
  } & {
5904
4963
  kind?: "web";
@@ -5906,14 +4965,6 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5906
4965
  preview?: {
5907
4966
  title?: string;
5908
4967
  } | null | undefined;
5909
- text?: string;
5910
- }) | {
5911
- kind: "web";
5912
- text: string;
5913
- })) | ({
5914
- __TYPE__: "AnyLink";
5915
- } & {
5916
- text: string;
5917
4968
  });
5918
4969
  start: number;
5919
4970
  end: number;
@@ -6070,6 +5121,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6070
5121
  name: string;
6071
5122
  } & {
6072
5123
  date?: string | null | undefined;
5124
+ } & {
6073
5125
  text?: string;
6074
5126
  }) | {
6075
5127
  kind: "image";
@@ -6084,6 +5136,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6084
5136
  size: string;
6085
5137
  } & {
6086
5138
  date?: string | null | undefined;
5139
+ } & {
6087
5140
  text?: string;
6088
5141
  }) | {
6089
5142
  kind: "file";
@@ -6112,6 +5165,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6112
5165
  preview?: {
6113
5166
  title?: string;
6114
5167
  } | null | undefined;
5168
+ } & {
6115
5169
  text?: string;
6116
5170
  }) | {
6117
5171
  kind: "web";
@@ -6150,7 +5204,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6150
5204
  } & {
6151
5205
  linkTo?: ({
6152
5206
  __TYPE__: "ImageLink";
6153
- } & (({
5207
+ } & {
6154
5208
  kind: "image";
6155
5209
  id: string;
6156
5210
  url: string;
@@ -6160,13 +5214,9 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6160
5214
  name: string;
6161
5215
  } & {
6162
5216
  date?: string | null | undefined;
6163
- text?: string;
6164
- }) | {
6165
- kind: "image";
6166
- text: string;
6167
- })) | ({
5217
+ }) | ({
6168
5218
  __TYPE__: "FileLink";
6169
- } & (({
5219
+ } & {
6170
5220
  kind: "file";
6171
5221
  id: string;
6172
5222
  url: string;
@@ -6174,27 +5224,13 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6174
5224
  size: string;
6175
5225
  } & {
6176
5226
  date?: string | null | undefined;
6177
- text?: string;
6178
- }) | {
6179
- kind: "file";
6180
- text: string;
6181
- })) | ({
6182
- __TYPE__: "MediaLink";
6183
- } & {
6184
- kind: "media";
6185
- text: string;
6186
5227
  }) | ({
6187
5228
  __TYPE__: "DocumentLink";
6188
- } & (({
6189
- id: string;
6190
5229
  } & {
6191
- text?: string;
6192
- }) | {
6193
- kind: "document";
6194
- text: string;
6195
- })) | ({
5230
+ id: string;
5231
+ }) | ({
6196
5232
  __TYPE__: "ExternalLink";
6197
- } & (({
5233
+ } & {
6198
5234
  url: string;
6199
5235
  } & {
6200
5236
  kind?: "web";
@@ -6202,14 +5238,6 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6202
5238
  preview?: {
6203
5239
  title?: string;
6204
5240
  } | null | undefined;
6205
- text?: string;
6206
- }) | {
6207
- kind: "web";
6208
- text: string;
6209
- })) | ({
6210
- __TYPE__: "AnyLink";
6211
- } & {
6212
- text: string;
6213
5241
  }) | null | undefined;
6214
5242
  };
6215
5243
  } & {
@@ -6247,7 +5275,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6247
5275
  spans?: ({
6248
5276
  data: ({
6249
5277
  __TYPE__: "ImageLink";
6250
- } & (({
5278
+ } & {
6251
5279
  kind: "image";
6252
5280
  id: string;
6253
5281
  url: string;
@@ -6257,13 +5285,9 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6257
5285
  name: string;
6258
5286
  } & {
6259
5287
  date?: string | null | undefined;
6260
- text?: string;
6261
- }) | {
6262
- kind: "image";
6263
- text: string;
6264
- })) | ({
5288
+ }) | ({
6265
5289
  __TYPE__: "FileLink";
6266
- } & (({
5290
+ } & {
6267
5291
  kind: "file";
6268
5292
  id: string;
6269
5293
  url: string;
@@ -6271,27 +5295,13 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6271
5295
  size: string;
6272
5296
  } & {
6273
5297
  date?: string | null | undefined;
6274
- text?: string;
6275
- }) | {
6276
- kind: "file";
6277
- text: string;
6278
- })) | ({
6279
- __TYPE__: "MediaLink";
6280
- } & {
6281
- kind: "media";
6282
- text: string;
6283
5298
  }) | ({
6284
5299
  __TYPE__: "DocumentLink";
6285
- } & (({
6286
- id: string;
6287
5300
  } & {
6288
- text?: string;
6289
- }) | {
6290
- kind: "document";
6291
- text: string;
6292
- })) | ({
5301
+ id: string;
5302
+ }) | ({
6293
5303
  __TYPE__: "ExternalLink";
6294
- } & (({
5304
+ } & {
6295
5305
  url: string;
6296
5306
  } & {
6297
5307
  kind?: "web";
@@ -6299,14 +5309,6 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6299
5309
  preview?: {
6300
5310
  title?: string;
6301
5311
  } | null | undefined;
6302
- text?: string;
6303
- }) | {
6304
- kind: "web";
6305
- text: string;
6306
- })) | ({
6307
- __TYPE__: "AnyLink";
6308
- } & {
6309
- text: string;
6310
5312
  });
6311
5313
  start: number;
6312
5314
  end: number;
@@ -6457,6 +5459,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6457
5459
  name: string;
6458
5460
  } & {
6459
5461
  date?: string | null | undefined;
5462
+ } & {
6460
5463
  text?: string;
6461
5464
  }) | {
6462
5465
  kind: "image";
@@ -6471,6 +5474,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6471
5474
  size: string;
6472
5475
  } & {
6473
5476
  date?: string | null | undefined;
5477
+ } & {
6474
5478
  text?: string;
6475
5479
  }) | {
6476
5480
  kind: "file";
@@ -6499,6 +5503,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6499
5503
  preview?: {
6500
5504
  title?: string;
6501
5505
  } | null | undefined;
5506
+ } & {
6502
5507
  text?: string;
6503
5508
  }) | {
6504
5509
  kind: "web";
@@ -6537,7 +5542,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6537
5542
  } & {
6538
5543
  linkTo?: ({
6539
5544
  __TYPE__: "ImageLink";
6540
- } & (({
5545
+ } & {
6541
5546
  kind: "image";
6542
5547
  id: string;
6543
5548
  url: string;
@@ -6547,13 +5552,9 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6547
5552
  name: string;
6548
5553
  } & {
6549
5554
  date?: string | null | undefined;
6550
- text?: string;
6551
- }) | {
6552
- kind: "image";
6553
- text: string;
6554
- })) | ({
5555
+ }) | ({
6555
5556
  __TYPE__: "FileLink";
6556
- } & (({
5557
+ } & {
6557
5558
  kind: "file";
6558
5559
  id: string;
6559
5560
  url: string;
@@ -6561,27 +5562,13 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6561
5562
  size: string;
6562
5563
  } & {
6563
5564
  date?: string | null | undefined;
6564
- text?: string;
6565
- }) | {
6566
- kind: "file";
6567
- text: string;
6568
- })) | ({
6569
- __TYPE__: "MediaLink";
6570
- } & {
6571
- kind: "media";
6572
- text: string;
6573
5565
  }) | ({
6574
5566
  __TYPE__: "DocumentLink";
6575
- } & (({
6576
- id: string;
6577
5567
  } & {
6578
- text?: string;
6579
- }) | {
6580
- kind: "document";
6581
- text: string;
6582
- })) | ({
5568
+ id: string;
5569
+ }) | ({
6583
5570
  __TYPE__: "ExternalLink";
6584
- } & (({
5571
+ } & {
6585
5572
  url: string;
6586
5573
  } & {
6587
5574
  kind?: "web";
@@ -6589,14 +5576,6 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6589
5576
  preview?: {
6590
5577
  title?: string;
6591
5578
  } | null | undefined;
6592
- text?: string;
6593
- }) | {
6594
- kind: "web";
6595
- text: string;
6596
- })) | ({
6597
- __TYPE__: "AnyLink";
6598
- } & {
6599
- text: string;
6600
5579
  }) | null | undefined;
6601
5580
  };
6602
5581
  } & {
@@ -6634,7 +5613,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6634
5613
  spans?: ({
6635
5614
  data: ({
6636
5615
  __TYPE__: "ImageLink";
6637
- } & (({
5616
+ } & {
6638
5617
  kind: "image";
6639
5618
  id: string;
6640
5619
  url: string;
@@ -6644,13 +5623,9 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6644
5623
  name: string;
6645
5624
  } & {
6646
5625
  date?: string | null | undefined;
6647
- text?: string;
6648
- }) | {
6649
- kind: "image";
6650
- text: string;
6651
- })) | ({
5626
+ }) | ({
6652
5627
  __TYPE__: "FileLink";
6653
- } & (({
5628
+ } & {
6654
5629
  kind: "file";
6655
5630
  id: string;
6656
5631
  url: string;
@@ -6658,27 +5633,13 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6658
5633
  size: string;
6659
5634
  } & {
6660
5635
  date?: string | null | undefined;
6661
- text?: string;
6662
- }) | {
6663
- kind: "file";
6664
- text: string;
6665
- })) | ({
6666
- __TYPE__: "MediaLink";
6667
- } & {
6668
- kind: "media";
6669
- text: string;
6670
5636
  }) | ({
6671
5637
  __TYPE__: "DocumentLink";
6672
- } & (({
6673
- id: string;
6674
5638
  } & {
6675
- text?: string;
6676
- }) | {
6677
- kind: "document";
6678
- text: string;
6679
- })) | ({
5639
+ id: string;
5640
+ }) | ({
6680
5641
  __TYPE__: "ExternalLink";
6681
- } & (({
5642
+ } & {
6682
5643
  url: string;
6683
5644
  } & {
6684
5645
  kind?: "web";
@@ -6686,14 +5647,6 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6686
5647
  preview?: {
6687
5648
  title?: string;
6688
5649
  } | null | undefined;
6689
- text?: string;
6690
- }) | {
6691
- kind: "web";
6692
- text: string;
6693
- })) | ({
6694
- __TYPE__: "AnyLink";
6695
- } & {
6696
- text: string;
6697
5650
  });
6698
5651
  start: number;
6699
5652
  end: number;
@@ -6845,6 +5798,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6845
5798
  name: string;
6846
5799
  } & {
6847
5800
  date?: string | null | undefined;
5801
+ } & {
6848
5802
  text?: string;
6849
5803
  }) | {
6850
5804
  kind: "image";
@@ -6859,6 +5813,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6859
5813
  size: string;
6860
5814
  } & {
6861
5815
  date?: string | null | undefined;
5816
+ } & {
6862
5817
  text?: string;
6863
5818
  }) | {
6864
5819
  kind: "file";
@@ -6887,6 +5842,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6887
5842
  preview?: {
6888
5843
  title?: string;
6889
5844
  } | null | undefined;
5845
+ } & {
6890
5846
  text?: string;
6891
5847
  }) | {
6892
5848
  kind: "web";
@@ -6925,7 +5881,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6925
5881
  } & {
6926
5882
  linkTo?: ({
6927
5883
  __TYPE__: "ImageLink";
6928
- } & (({
5884
+ } & {
6929
5885
  kind: "image";
6930
5886
  id: string;
6931
5887
  url: string;
@@ -6935,13 +5891,9 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6935
5891
  name: string;
6936
5892
  } & {
6937
5893
  date?: string | null | undefined;
6938
- text?: string;
6939
- }) | {
6940
- kind: "image";
6941
- text: string;
6942
- })) | ({
5894
+ }) | ({
6943
5895
  __TYPE__: "FileLink";
6944
- } & (({
5896
+ } & {
6945
5897
  kind: "file";
6946
5898
  id: string;
6947
5899
  url: string;
@@ -6949,27 +5901,13 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6949
5901
  size: string;
6950
5902
  } & {
6951
5903
  date?: string | null | undefined;
6952
- text?: string;
6953
- }) | {
6954
- kind: "file";
6955
- text: string;
6956
- })) | ({
6957
- __TYPE__: "MediaLink";
6958
- } & {
6959
- kind: "media";
6960
- text: string;
6961
5904
  }) | ({
6962
5905
  __TYPE__: "DocumentLink";
6963
- } & (({
6964
- id: string;
6965
5906
  } & {
6966
- text?: string;
6967
- }) | {
6968
- kind: "document";
6969
- text: string;
6970
- })) | ({
5907
+ id: string;
5908
+ }) | ({
6971
5909
  __TYPE__: "ExternalLink";
6972
- } & (({
5910
+ } & {
6973
5911
  url: string;
6974
5912
  } & {
6975
5913
  kind?: "web";
@@ -6977,14 +5915,6 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6977
5915
  preview?: {
6978
5916
  title?: string;
6979
5917
  } | null | undefined;
6980
- text?: string;
6981
- }) | {
6982
- kind: "web";
6983
- text: string;
6984
- })) | ({
6985
- __TYPE__: "AnyLink";
6986
- } & {
6987
- text: string;
6988
5918
  }) | null | undefined;
6989
5919
  };
6990
5920
  } & {
@@ -7022,7 +5952,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7022
5952
  spans?: ({
7023
5953
  data: ({
7024
5954
  __TYPE__: "ImageLink";
7025
- } & (({
5955
+ } & {
7026
5956
  kind: "image";
7027
5957
  id: string;
7028
5958
  url: string;
@@ -7032,13 +5962,9 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7032
5962
  name: string;
7033
5963
  } & {
7034
5964
  date?: string | null | undefined;
7035
- text?: string;
7036
- }) | {
7037
- kind: "image";
7038
- text: string;
7039
- })) | ({
5965
+ }) | ({
7040
5966
  __TYPE__: "FileLink";
7041
- } & (({
5967
+ } & {
7042
5968
  kind: "file";
7043
5969
  id: string;
7044
5970
  url: string;
@@ -7046,27 +5972,13 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7046
5972
  size: string;
7047
5973
  } & {
7048
5974
  date?: string | null | undefined;
7049
- text?: string;
7050
- }) | {
7051
- kind: "file";
7052
- text: string;
7053
- })) | ({
7054
- __TYPE__: "MediaLink";
7055
- } & {
7056
- kind: "media";
7057
- text: string;
7058
5975
  }) | ({
7059
5976
  __TYPE__: "DocumentLink";
7060
- } & (({
7061
- id: string;
7062
5977
  } & {
7063
- text?: string;
7064
- }) | {
7065
- kind: "document";
7066
- text: string;
7067
- })) | ({
5978
+ id: string;
5979
+ }) | ({
7068
5980
  __TYPE__: "ExternalLink";
7069
- } & (({
5981
+ } & {
7070
5982
  url: string;
7071
5983
  } & {
7072
5984
  kind?: "web";
@@ -7074,14 +5986,6 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7074
5986
  preview?: {
7075
5987
  title?: string;
7076
5988
  } | null | undefined;
7077
- text?: string;
7078
- }) | {
7079
- kind: "web";
7080
- text: string;
7081
- })) | ({
7082
- __TYPE__: "AnyLink";
7083
- } & {
7084
- text: string;
7085
5989
  });
7086
5990
  start: number;
7087
5991
  end: number;
@@ -7235,6 +6139,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7235
6139
  name: string;
7236
6140
  } & {
7237
6141
  date?: string | null | undefined;
6142
+ } & {
7238
6143
  text?: string;
7239
6144
  }) | {
7240
6145
  kind: "image";
@@ -7249,6 +6154,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7249
6154
  size: string;
7250
6155
  } & {
7251
6156
  date?: string | null | undefined;
6157
+ } & {
7252
6158
  text?: string;
7253
6159
  }) | {
7254
6160
  kind: "file";
@@ -7277,6 +6183,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7277
6183
  preview?: {
7278
6184
  title?: string;
7279
6185
  } | null | undefined;
6186
+ } & {
7280
6187
  text?: string;
7281
6188
  }) | {
7282
6189
  kind: "web";
@@ -7315,7 +6222,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7315
6222
  } & {
7316
6223
  linkTo?: ({
7317
6224
  __TYPE__: "ImageLink";
7318
- } & (({
6225
+ } & {
7319
6226
  kind: "image";
7320
6227
  id: string;
7321
6228
  url: string;
@@ -7325,13 +6232,9 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7325
6232
  name: string;
7326
6233
  } & {
7327
6234
  date?: string | null | undefined;
7328
- text?: string;
7329
- }) | {
7330
- kind: "image";
7331
- text: string;
7332
- })) | ({
6235
+ }) | ({
7333
6236
  __TYPE__: "FileLink";
7334
- } & (({
6237
+ } & {
7335
6238
  kind: "file";
7336
6239
  id: string;
7337
6240
  url: string;
@@ -7339,27 +6242,13 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7339
6242
  size: string;
7340
6243
  } & {
7341
6244
  date?: string | null | undefined;
7342
- text?: string;
7343
- }) | {
7344
- kind: "file";
7345
- text: string;
7346
- })) | ({
7347
- __TYPE__: "MediaLink";
7348
- } & {
7349
- kind: "media";
7350
- text: string;
7351
6245
  }) | ({
7352
6246
  __TYPE__: "DocumentLink";
7353
- } & (({
7354
- id: string;
7355
6247
  } & {
7356
- text?: string;
7357
- }) | {
7358
- kind: "document";
7359
- text: string;
7360
- })) | ({
6248
+ id: string;
6249
+ }) | ({
7361
6250
  __TYPE__: "ExternalLink";
7362
- } & (({
6251
+ } & {
7363
6252
  url: string;
7364
6253
  } & {
7365
6254
  kind?: "web";
@@ -7367,14 +6256,6 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7367
6256
  preview?: {
7368
6257
  title?: string;
7369
6258
  } | null | undefined;
7370
- text?: string;
7371
- }) | {
7372
- kind: "web";
7373
- text: string;
7374
- })) | ({
7375
- __TYPE__: "AnyLink";
7376
- } & {
7377
- text: string;
7378
6259
  }) | null | undefined;
7379
6260
  };
7380
6261
  } & {
@@ -7412,7 +6293,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7412
6293
  spans?: ({
7413
6294
  data: ({
7414
6295
  __TYPE__: "ImageLink";
7415
- } & (({
6296
+ } & {
7416
6297
  kind: "image";
7417
6298
  id: string;
7418
6299
  url: string;
@@ -7422,13 +6303,9 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7422
6303
  name: string;
7423
6304
  } & {
7424
6305
  date?: string | null | undefined;
7425
- text?: string;
7426
- }) | {
7427
- kind: "image";
7428
- text: string;
7429
- })) | ({
6306
+ }) | ({
7430
6307
  __TYPE__: "FileLink";
7431
- } & (({
6308
+ } & {
7432
6309
  kind: "file";
7433
6310
  id: string;
7434
6311
  url: string;
@@ -7436,27 +6313,13 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7436
6313
  size: string;
7437
6314
  } & {
7438
6315
  date?: string | null | undefined;
7439
- text?: string;
7440
- }) | {
7441
- kind: "file";
7442
- text: string;
7443
- })) | ({
7444
- __TYPE__: "MediaLink";
7445
- } & {
7446
- kind: "media";
7447
- text: string;
7448
6316
  }) | ({
7449
6317
  __TYPE__: "DocumentLink";
7450
- } & (({
7451
- id: string;
7452
6318
  } & {
7453
- text?: string;
7454
- }) | {
7455
- kind: "document";
7456
- text: string;
7457
- })) | ({
6319
+ id: string;
6320
+ }) | ({
7458
6321
  __TYPE__: "ExternalLink";
7459
- } & (({
6322
+ } & {
7460
6323
  url: string;
7461
6324
  } & {
7462
6325
  kind?: "web";
@@ -7464,14 +6327,6 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7464
6327
  preview?: {
7465
6328
  title?: string;
7466
6329
  } | null | undefined;
7467
- text?: string;
7468
- }) | {
7469
- kind: "web";
7470
- text: string;
7471
- })) | ({
7472
- __TYPE__: "AnyLink";
7473
- } & {
7474
- text: string;
7475
6330
  });
7476
6331
  start: number;
7477
6332
  end: number;
@@ -7623,6 +6478,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7623
6478
  name: string;
7624
6479
  } & {
7625
6480
  date?: string | null | undefined;
6481
+ } & {
7626
6482
  text?: string;
7627
6483
  }) | {
7628
6484
  kind: "image";
@@ -7637,6 +6493,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7637
6493
  size: string;
7638
6494
  } & {
7639
6495
  date?: string | null | undefined;
6496
+ } & {
7640
6497
  text?: string;
7641
6498
  }) | {
7642
6499
  kind: "file";
@@ -7665,6 +6522,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7665
6522
  preview?: {
7666
6523
  title?: string;
7667
6524
  } | null | undefined;
6525
+ } & {
7668
6526
  text?: string;
7669
6527
  }) | {
7670
6528
  kind: "web";
@@ -7703,7 +6561,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7703
6561
  } & {
7704
6562
  linkTo?: ({
7705
6563
  __TYPE__: "ImageLink";
7706
- } & (({
6564
+ } & {
7707
6565
  kind: "image";
7708
6566
  id: string;
7709
6567
  url: string;
@@ -7713,13 +6571,9 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7713
6571
  name: string;
7714
6572
  } & {
7715
6573
  date?: string | null | undefined;
7716
- text?: string;
7717
- }) | {
7718
- kind: "image";
7719
- text: string;
7720
- })) | ({
6574
+ }) | ({
7721
6575
  __TYPE__: "FileLink";
7722
- } & (({
6576
+ } & {
7723
6577
  kind: "file";
7724
6578
  id: string;
7725
6579
  url: string;
@@ -7727,27 +6581,13 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7727
6581
  size: string;
7728
6582
  } & {
7729
6583
  date?: string | null | undefined;
7730
- text?: string;
7731
- }) | {
7732
- kind: "file";
7733
- text: string;
7734
- })) | ({
7735
- __TYPE__: "MediaLink";
7736
- } & {
7737
- kind: "media";
7738
- text: string;
7739
6584
  }) | ({
7740
6585
  __TYPE__: "DocumentLink";
7741
- } & (({
7742
- id: string;
7743
6586
  } & {
7744
- text?: string;
7745
- }) | {
7746
- kind: "document";
7747
- text: string;
7748
- })) | ({
6587
+ id: string;
6588
+ }) | ({
7749
6589
  __TYPE__: "ExternalLink";
7750
- } & (({
6590
+ } & {
7751
6591
  url: string;
7752
6592
  } & {
7753
6593
  kind?: "web";
@@ -7755,14 +6595,6 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7755
6595
  preview?: {
7756
6596
  title?: string;
7757
6597
  } | null | undefined;
7758
- text?: string;
7759
- }) | {
7760
- kind: "web";
7761
- text: string;
7762
- })) | ({
7763
- __TYPE__: "AnyLink";
7764
- } & {
7765
- text: string;
7766
6598
  }) | null | undefined;
7767
6599
  };
7768
6600
  } & {
@@ -7800,7 +6632,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7800
6632
  spans?: ({
7801
6633
  data: ({
7802
6634
  __TYPE__: "ImageLink";
7803
- } & (({
6635
+ } & {
7804
6636
  kind: "image";
7805
6637
  id: string;
7806
6638
  url: string;
@@ -7810,13 +6642,9 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7810
6642
  name: string;
7811
6643
  } & {
7812
6644
  date?: string | null | undefined;
7813
- text?: string;
7814
- }) | {
7815
- kind: "image";
7816
- text: string;
7817
- })) | ({
6645
+ }) | ({
7818
6646
  __TYPE__: "FileLink";
7819
- } & (({
6647
+ } & {
7820
6648
  kind: "file";
7821
6649
  id: string;
7822
6650
  url: string;
@@ -7824,27 +6652,13 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7824
6652
  size: string;
7825
6653
  } & {
7826
6654
  date?: string | null | undefined;
7827
- text?: string;
7828
- }) | {
7829
- kind: "file";
7830
- text: string;
7831
- })) | ({
7832
- __TYPE__: "MediaLink";
7833
- } & {
7834
- kind: "media";
7835
- text: string;
7836
6655
  }) | ({
7837
6656
  __TYPE__: "DocumentLink";
7838
- } & (({
7839
- id: string;
7840
6657
  } & {
7841
- text?: string;
7842
- }) | {
7843
- kind: "document";
7844
- text: string;
7845
- })) | ({
6658
+ id: string;
6659
+ }) | ({
7846
6660
  __TYPE__: "ExternalLink";
7847
- } & (({
6661
+ } & {
7848
6662
  url: string;
7849
6663
  } & {
7850
6664
  kind?: "web";
@@ -7852,14 +6666,6 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7852
6666
  preview?: {
7853
6667
  title?: string;
7854
6668
  } | null | undefined;
7855
- text?: string;
7856
- }) | {
7857
- kind: "web";
7858
- text: string;
7859
- })) | ({
7860
- __TYPE__: "AnyLink";
7861
- } & {
7862
- text: string;
7863
6669
  });
7864
6670
  start: number;
7865
6671
  end: number;