@prismicio/types-internal 2.7.0-alpha.7 → 2.7.0-alpha.9

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,52 +118,48 @@ 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.IntersectionC<[t.ExactC<t.TypeC<{
122
- kind: t.LiteralC<"image">;
123
- }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
121
+ }>>, t.UnionC<[t.IntersectionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
122
+ kind: t.Type<"image", "image", unknown>;
124
123
  id: t.StringC;
125
124
  url: t.StringC;
126
125
  height: t.StringC;
127
126
  width: t.StringC;
128
127
  size: t.StringC;
129
128
  name: t.StringC;
130
- }>, t.PartialC<{
129
+ }>>, t.ExactC<t.PartialC<{
131
130
  date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
131
+ }>>]>, t.ExactC<t.PartialC<{
132
132
  text: t.StringC;
133
- }>]>>, t.ExactC<t.TypeC<{
133
+ }>>]>, t.ExactC<t.TypeC<{
134
+ kind: t.LiteralC<"image">;
134
135
  text: t.StringC;
135
- }>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
136
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
136
137
  __TYPE__: t.LiteralC<"FileLink">;
137
- }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
138
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
138
139
  kind: t.Type<"file", "file", unknown>;
139
- }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
140
140
  id: t.StringC;
141
141
  url: t.StringC;
142
142
  name: t.StringC;
143
143
  size: t.StringC;
144
144
  }>, t.PartialC<{
145
145
  date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
146
+ }>]>>, t.ExactC<t.PartialC<{
146
147
  text: t.StringC;
147
- }>]>>, t.ExactC<t.TypeC<{
148
- text: t.StringC;
149
- }>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
150
- __TYPE__: t.LiteralC<"MediaLink">;
151
- }>>, t.ExactC<t.TypeC<{
152
- kind: t.LiteralC<"media">;
148
+ }>>]>, t.ExactC<t.TypeC<{
149
+ kind: t.LiteralC<"file">;
153
150
  text: t.StringC;
154
- }>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
151
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
155
152
  __TYPE__: t.LiteralC<"DocumentLink">;
156
- }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
153
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
157
154
  id: t.Type<string, string, unknown>;
158
- }>, t.PartialC<{
159
- kind: t.LiteralC<"document">;
155
+ }>>, t.ExactC<t.PartialC<{
160
156
  text: t.StringC;
161
- }>]>>, t.ExactC<t.TypeC<{
157
+ }>>]>, t.ExactC<t.TypeC<{
162
158
  kind: t.LiteralC<"document">;
163
159
  text: t.StringC;
164
160
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
165
161
  __TYPE__: t.LiteralC<"ExternalLink">;
166
- }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
162
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
167
163
  url: t.StringC;
168
164
  }>, t.PartialC<{
169
165
  kind: t.LiteralC<"web">;
@@ -173,11 +169,17 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
173
169
  }, {
174
170
  title?: string;
175
171
  }, unknown>, t.NullC, t.UndefinedC]>;
172
+ }>]>>, t.ExactC<t.PartialC<{
176
173
  text: t.StringC;
177
- }>]>>, t.ExactC<t.TypeC<{
174
+ }>>]>, t.ExactC<t.TypeC<{
178
175
  kind: t.LiteralC<"web">;
179
176
  text: t.StringC;
180
177
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
178
+ __TYPE__: t.LiteralC<"MediaLink">;
179
+ }>>, t.ExactC<t.TypeC<{
180
+ kind: t.LiteralC<"media">;
181
+ text: t.StringC;
182
+ }>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
181
183
  __TYPE__: t.LiteralC<"AnyLink">;
182
184
  }>>, t.ExactC<t.TypeC<{
183
185
  text: t.StringC;
@@ -211,9 +213,8 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
211
213
  }>]>>, t.PartialC<{
212
214
  linkTo: t.UnionC<[t.Type<({
213
215
  __TYPE__: "ImageLink";
214
- } & ({
216
+ } & {
215
217
  kind: "image";
216
- } & (({
217
218
  id: string;
218
219
  url: string;
219
220
  height: string;
@@ -222,41 +223,23 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
222
223
  name: string;
223
224
  } & {
224
225
  date?: string | null | undefined;
225
- text?: string;
226
- }) | {
227
- text: string;
228
- }))) | ({
226
+ }) | ({
229
227
  __TYPE__: "FileLink";
230
- } & ({
228
+ } & {
231
229
  kind: "file";
232
- } & (({
233
230
  id: string;
234
231
  url: string;
235
232
  name: string;
236
233
  size: string;
237
234
  } & {
238
235
  date?: string | null | undefined;
239
- text?: string;
240
- }) | {
241
- text: string;
242
- }))) | ({
243
- __TYPE__: "MediaLink";
244
- } & {
245
- kind: "media";
246
- text: string;
247
236
  }) | ({
248
237
  __TYPE__: "DocumentLink";
249
- } & (({
250
- id: string;
251
238
  } & {
252
- kind?: "document";
253
- text?: string;
254
- }) | {
255
- kind: "document";
256
- text: string;
257
- })) | ({
239
+ id: string;
240
+ }) | ({
258
241
  __TYPE__: "ExternalLink";
259
- } & (({
242
+ } & {
260
243
  url: string;
261
244
  } & {
262
245
  kind?: "web";
@@ -264,19 +247,10 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
264
247
  preview?: {
265
248
  title?: string;
266
249
  } | null | undefined;
267
- text?: string;
268
- }) | {
269
- kind: "web";
270
- text: string;
271
- })) | ({
272
- __TYPE__: "AnyLink";
273
- } & {
274
- text: string;
275
250
  }), ({
276
251
  __TYPE__: "ImageLink";
277
- } & ({
252
+ } & {
278
253
  kind: "image";
279
- } & (({
280
254
  id: string;
281
255
  url: string;
282
256
  height: string;
@@ -285,41 +259,23 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
285
259
  name: string;
286
260
  } & {
287
261
  date?: string | null | undefined;
288
- text?: string;
289
- }) | {
290
- text: string;
291
- }))) | ({
262
+ }) | ({
292
263
  __TYPE__: "FileLink";
293
- } & ({
264
+ } & {
294
265
  kind: "file";
295
- } & (({
296
266
  id: string;
297
267
  url: string;
298
268
  name: string;
299
269
  size: string;
300
270
  } & {
301
271
  date?: string | null | undefined;
302
- text?: string;
303
- }) | {
304
- text: string;
305
- }))) | ({
306
- __TYPE__: "MediaLink";
307
- } & {
308
- kind: "media";
309
- text: string;
310
272
  }) | ({
311
273
  __TYPE__: "DocumentLink";
312
- } & (({
313
- id: string;
314
274
  } & {
315
- kind?: "document";
316
- text?: string;
317
- }) | {
318
- kind: "document";
319
- text: string;
320
- })) | ({
275
+ id: string;
276
+ }) | ({
321
277
  __TYPE__: "ExternalLink";
322
- } & (({
278
+ } & {
323
279
  url: string;
324
280
  } & {
325
281
  kind?: "web";
@@ -327,14 +283,6 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
327
283
  preview?: {
328
284
  title?: string;
329
285
  } | null | undefined;
330
- text?: string;
331
- }) | {
332
- kind: "web";
333
- text: string;
334
- })) | ({
335
- __TYPE__: "AnyLink";
336
- } & {
337
- text: string;
338
286
  }), unknown>, t.NullC, t.UndefinedC]>;
339
287
  }>]>;
340
288
  }>, t.PartialC<{
@@ -372,9 +320,8 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
372
320
  spans: t.Type<({
373
321
  data: ({
374
322
  __TYPE__: "ImageLink";
375
- } & ({
323
+ } & {
376
324
  kind: "image";
377
- } & (({
378
325
  id: string;
379
326
  url: string;
380
327
  height: string;
@@ -383,41 +330,23 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
383
330
  name: string;
384
331
  } & {
385
332
  date?: string | null | undefined;
386
- text?: string;
387
- }) | {
388
- text: string;
389
- }))) | ({
333
+ }) | ({
390
334
  __TYPE__: "FileLink";
391
- } & ({
335
+ } & {
392
336
  kind: "file";
393
- } & (({
394
337
  id: string;
395
338
  url: string;
396
339
  name: string;
397
340
  size: string;
398
341
  } & {
399
342
  date?: string | null | undefined;
400
- text?: string;
401
- }) | {
402
- text: string;
403
- }))) | ({
404
- __TYPE__: "MediaLink";
405
- } & {
406
- kind: "media";
407
- text: string;
408
343
  }) | ({
409
344
  __TYPE__: "DocumentLink";
410
- } & (({
411
- id: string;
412
345
  } & {
413
- kind?: "document";
414
- text?: string;
415
- }) | {
416
- kind: "document";
417
- text: string;
418
- })) | ({
346
+ id: string;
347
+ }) | ({
419
348
  __TYPE__: "ExternalLink";
420
- } & (({
349
+ } & {
421
350
  url: string;
422
351
  } & {
423
352
  kind?: "web";
@@ -425,14 +354,6 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
425
354
  preview?: {
426
355
  title?: string;
427
356
  } | null | undefined;
428
- text?: string;
429
- }) | {
430
- kind: "web";
431
- text: string;
432
- })) | ({
433
- __TYPE__: "AnyLink";
434
- } & {
435
- text: string;
436
357
  });
437
358
  start: number;
438
359
  end: number;
@@ -449,9 +370,8 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
449
370
  })[], ({
450
371
  data: ({
451
372
  __TYPE__: "ImageLink";
452
- } & ({
373
+ } & {
453
374
  kind: "image";
454
- } & (({
455
375
  id: string;
456
376
  url: string;
457
377
  height: string;
@@ -460,41 +380,23 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
460
380
  name: string;
461
381
  } & {
462
382
  date?: string | null | undefined;
463
- text?: string;
464
- }) | {
465
- text: string;
466
- }))) | ({
383
+ }) | ({
467
384
  __TYPE__: "FileLink";
468
- } & ({
385
+ } & {
469
386
  kind: "file";
470
- } & (({
471
387
  id: string;
472
388
  url: string;
473
389
  name: string;
474
390
  size: string;
475
391
  } & {
476
392
  date?: string | null | undefined;
477
- text?: string;
478
- }) | {
479
- text: string;
480
- }))) | ({
481
- __TYPE__: "MediaLink";
482
- } & {
483
- kind: "media";
484
- text: string;
485
393
  }) | ({
486
394
  __TYPE__: "DocumentLink";
487
- } & (({
488
- id: string;
489
395
  } & {
490
- kind?: "document";
491
- text?: string;
492
- }) | {
493
- kind: "document";
494
- text: string;
495
- })) | ({
396
+ id: string;
397
+ }) | ({
496
398
  __TYPE__: "ExternalLink";
497
- } & (({
399
+ } & {
498
400
  url: string;
499
401
  } & {
500
402
  kind?: "web";
@@ -502,14 +404,6 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
502
404
  preview?: {
503
405
  title?: string;
504
406
  } | null | undefined;
505
- text?: string;
506
- }) | {
507
- kind: "web";
508
- text: string;
509
- })) | ({
510
- __TYPE__: "AnyLink";
511
- } & {
512
- text: string;
513
407
  });
514
408
  start: number;
515
409
  end: number;
@@ -656,52 +550,48 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
656
550
  __TYPE__: t.LiteralC<"LinkContent">;
657
551
  value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
658
552
  __TYPE__: t.LiteralC<"ImageLink">;
659
- }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
660
- kind: t.LiteralC<"image">;
661
- }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
553
+ }>>, t.UnionC<[t.IntersectionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
554
+ kind: t.Type<"image", "image", unknown>;
662
555
  id: t.StringC;
663
556
  url: t.StringC;
664
557
  height: t.StringC;
665
558
  width: t.StringC;
666
559
  size: t.StringC;
667
560
  name: t.StringC;
668
- }>, t.PartialC<{
561
+ }>>, t.ExactC<t.PartialC<{
669
562
  date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
563
+ }>>]>, t.ExactC<t.PartialC<{
670
564
  text: t.StringC;
671
- }>]>>, t.ExactC<t.TypeC<{
565
+ }>>]>, t.ExactC<t.TypeC<{
566
+ kind: t.LiteralC<"image">;
672
567
  text: t.StringC;
673
- }>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
568
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
674
569
  __TYPE__: t.LiteralC<"FileLink">;
675
- }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
570
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
676
571
  kind: t.Type<"file", "file", unknown>;
677
- }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
678
572
  id: t.StringC;
679
573
  url: t.StringC;
680
574
  name: t.StringC;
681
575
  size: t.StringC;
682
576
  }>, t.PartialC<{
683
577
  date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
578
+ }>]>>, t.ExactC<t.PartialC<{
684
579
  text: t.StringC;
685
- }>]>>, t.ExactC<t.TypeC<{
686
- text: t.StringC;
687
- }>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
688
- __TYPE__: t.LiteralC<"MediaLink">;
689
- }>>, t.ExactC<t.TypeC<{
690
- kind: t.LiteralC<"media">;
580
+ }>>]>, t.ExactC<t.TypeC<{
581
+ kind: t.LiteralC<"file">;
691
582
  text: t.StringC;
692
- }>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
583
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
693
584
  __TYPE__: t.LiteralC<"DocumentLink">;
694
- }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
585
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
695
586
  id: t.Type<string, string, unknown>;
696
- }>, t.PartialC<{
697
- kind: t.LiteralC<"document">;
587
+ }>>, t.ExactC<t.PartialC<{
698
588
  text: t.StringC;
699
- }>]>>, t.ExactC<t.TypeC<{
589
+ }>>]>, t.ExactC<t.TypeC<{
700
590
  kind: t.LiteralC<"document">;
701
591
  text: t.StringC;
702
592
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
703
593
  __TYPE__: t.LiteralC<"ExternalLink">;
704
- }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
594
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
705
595
  url: t.StringC;
706
596
  }>, t.PartialC<{
707
597
  kind: t.LiteralC<"web">;
@@ -711,11 +601,17 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
711
601
  }, {
712
602
  title?: string;
713
603
  }, unknown>, t.NullC, t.UndefinedC]>;
604
+ }>]>>, t.ExactC<t.PartialC<{
714
605
  text: t.StringC;
715
- }>]>>, t.ExactC<t.TypeC<{
606
+ }>>]>, t.ExactC<t.TypeC<{
716
607
  kind: t.LiteralC<"web">;
717
608
  text: t.StringC;
718
609
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
610
+ __TYPE__: t.LiteralC<"MediaLink">;
611
+ }>>, t.ExactC<t.TypeC<{
612
+ kind: t.LiteralC<"media">;
613
+ text: t.StringC;
614
+ }>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
719
615
  __TYPE__: t.LiteralC<"AnyLink">;
720
616
  }>>, t.ExactC<t.TypeC<{
721
617
  text: t.StringC;
@@ -749,9 +645,8 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
749
645
  }>]>>, t.PartialC<{
750
646
  linkTo: t.UnionC<[t.Type<({
751
647
  __TYPE__: "ImageLink";
752
- } & ({
648
+ } & {
753
649
  kind: "image";
754
- } & (({
755
650
  id: string;
756
651
  url: string;
757
652
  height: string;
@@ -760,41 +655,23 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
760
655
  name: string;
761
656
  } & {
762
657
  date?: string | null | undefined;
763
- text?: string;
764
- }) | {
765
- text: string;
766
- }))) | ({
658
+ }) | ({
767
659
  __TYPE__: "FileLink";
768
- } & ({
660
+ } & {
769
661
  kind: "file";
770
- } & (({
771
662
  id: string;
772
663
  url: string;
773
664
  name: string;
774
665
  size: string;
775
666
  } & {
776
667
  date?: string | null | undefined;
777
- text?: string;
778
- }) | {
779
- text: string;
780
- }))) | ({
781
- __TYPE__: "MediaLink";
782
- } & {
783
- kind: "media";
784
- text: string;
785
668
  }) | ({
786
669
  __TYPE__: "DocumentLink";
787
- } & (({
788
- id: string;
789
670
  } & {
790
- kind?: "document";
791
- text?: string;
792
- }) | {
793
- kind: "document";
794
- text: string;
795
- })) | ({
671
+ id: string;
672
+ }) | ({
796
673
  __TYPE__: "ExternalLink";
797
- } & (({
674
+ } & {
798
675
  url: string;
799
676
  } & {
800
677
  kind?: "web";
@@ -802,19 +679,10 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
802
679
  preview?: {
803
680
  title?: string;
804
681
  } | null | undefined;
805
- text?: string;
806
- }) | {
807
- kind: "web";
808
- text: string;
809
- })) | ({
810
- __TYPE__: "AnyLink";
811
- } & {
812
- text: string;
813
682
  }), ({
814
683
  __TYPE__: "ImageLink";
815
- } & ({
684
+ } & {
816
685
  kind: "image";
817
- } & (({
818
686
  id: string;
819
687
  url: string;
820
688
  height: string;
@@ -823,41 +691,23 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
823
691
  name: string;
824
692
  } & {
825
693
  date?: string | null | undefined;
826
- text?: string;
827
- }) | {
828
- text: string;
829
- }))) | ({
694
+ }) | ({
830
695
  __TYPE__: "FileLink";
831
- } & ({
696
+ } & {
832
697
  kind: "file";
833
- } & (({
834
698
  id: string;
835
699
  url: string;
836
700
  name: string;
837
701
  size: string;
838
702
  } & {
839
703
  date?: string | null | undefined;
840
- text?: string;
841
- }) | {
842
- text: string;
843
- }))) | ({
844
- __TYPE__: "MediaLink";
845
- } & {
846
- kind: "media";
847
- text: string;
848
704
  }) | ({
849
705
  __TYPE__: "DocumentLink";
850
- } & (({
851
- id: string;
852
706
  } & {
853
- kind?: "document";
854
- text?: string;
855
- }) | {
856
- kind: "document";
857
- text: string;
858
- })) | ({
707
+ id: string;
708
+ }) | ({
859
709
  __TYPE__: "ExternalLink";
860
- } & (({
710
+ } & {
861
711
  url: string;
862
712
  } & {
863
713
  kind?: "web";
@@ -865,14 +715,6 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
865
715
  preview?: {
866
716
  title?: string;
867
717
  } | null | undefined;
868
- text?: string;
869
- }) | {
870
- kind: "web";
871
- text: string;
872
- })) | ({
873
- __TYPE__: "AnyLink";
874
- } & {
875
- text: string;
876
718
  }), unknown>, t.NullC, t.UndefinedC]>;
877
719
  }>]>;
878
720
  }>, t.PartialC<{
@@ -910,9 +752,8 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
910
752
  spans: t.Type<({
911
753
  data: ({
912
754
  __TYPE__: "ImageLink";
913
- } & ({
755
+ } & {
914
756
  kind: "image";
915
- } & (({
916
757
  id: string;
917
758
  url: string;
918
759
  height: string;
@@ -921,41 +762,23 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
921
762
  name: string;
922
763
  } & {
923
764
  date?: string | null | undefined;
924
- text?: string;
925
- }) | {
926
- text: string;
927
- }))) | ({
765
+ }) | ({
928
766
  __TYPE__: "FileLink";
929
- } & ({
767
+ } & {
930
768
  kind: "file";
931
- } & (({
932
769
  id: string;
933
770
  url: string;
934
771
  name: string;
935
772
  size: string;
936
773
  } & {
937
774
  date?: string | null | undefined;
938
- text?: string;
939
- }) | {
940
- text: string;
941
- }))) | ({
942
- __TYPE__: "MediaLink";
943
- } & {
944
- kind: "media";
945
- text: string;
946
775
  }) | ({
947
776
  __TYPE__: "DocumentLink";
948
- } & (({
949
- id: string;
950
777
  } & {
951
- kind?: "document";
952
- text?: string;
953
- }) | {
954
- kind: "document";
955
- text: string;
956
- })) | ({
778
+ id: string;
779
+ }) | ({
957
780
  __TYPE__: "ExternalLink";
958
- } & (({
781
+ } & {
959
782
  url: string;
960
783
  } & {
961
784
  kind?: "web";
@@ -963,14 +786,6 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
963
786
  preview?: {
964
787
  title?: string;
965
788
  } | null | undefined;
966
- text?: string;
967
- }) | {
968
- kind: "web";
969
- text: string;
970
- })) | ({
971
- __TYPE__: "AnyLink";
972
- } & {
973
- text: string;
974
789
  });
975
790
  start: number;
976
791
  end: number;
@@ -987,9 +802,8 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
987
802
  })[], ({
988
803
  data: ({
989
804
  __TYPE__: "ImageLink";
990
- } & ({
805
+ } & {
991
806
  kind: "image";
992
- } & (({
993
807
  id: string;
994
808
  url: string;
995
809
  height: string;
@@ -998,41 +812,23 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
998
812
  name: string;
999
813
  } & {
1000
814
  date?: string | null | undefined;
1001
- text?: string;
1002
- }) | {
1003
- text: string;
1004
- }))) | ({
815
+ }) | ({
1005
816
  __TYPE__: "FileLink";
1006
- } & ({
817
+ } & {
1007
818
  kind: "file";
1008
- } & (({
1009
819
  id: string;
1010
820
  url: string;
1011
821
  name: string;
1012
822
  size: string;
1013
823
  } & {
1014
824
  date?: string | null | undefined;
1015
- text?: string;
1016
- }) | {
1017
- text: string;
1018
- }))) | ({
1019
- __TYPE__: "MediaLink";
1020
- } & {
1021
- kind: "media";
1022
- text: string;
1023
825
  }) | ({
1024
826
  __TYPE__: "DocumentLink";
1025
- } & (({
1026
- id: string;
1027
827
  } & {
1028
- kind?: "document";
1029
- text?: string;
1030
- }) | {
1031
- kind: "document";
1032
- text: string;
1033
- })) | ({
828
+ id: string;
829
+ }) | ({
1034
830
  __TYPE__: "ExternalLink";
1035
- } & (({
831
+ } & {
1036
832
  url: string;
1037
833
  } & {
1038
834
  kind?: "web";
@@ -1040,14 +836,6 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1040
836
  preview?: {
1041
837
  title?: string;
1042
838
  } | null | undefined;
1043
- text?: string;
1044
- }) | {
1045
- kind: "web";
1046
- text: string;
1047
- })) | ({
1048
- __TYPE__: "AnyLink";
1049
- } & {
1050
- text: string;
1051
839
  });
1052
840
  start: number;
1053
841
  end: number;
@@ -1186,52 +974,48 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1186
974
  __TYPE__: t.LiteralC<"LinkContent">;
1187
975
  value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
1188
976
  __TYPE__: t.LiteralC<"ImageLink">;
1189
- }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
1190
- kind: t.LiteralC<"image">;
1191
- }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
977
+ }>>, t.UnionC<[t.IntersectionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
978
+ kind: t.Type<"image", "image", unknown>;
1192
979
  id: t.StringC;
1193
980
  url: t.StringC;
1194
981
  height: t.StringC;
1195
982
  width: t.StringC;
1196
983
  size: t.StringC;
1197
984
  name: t.StringC;
1198
- }>, t.PartialC<{
985
+ }>>, t.ExactC<t.PartialC<{
1199
986
  date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
987
+ }>>]>, t.ExactC<t.PartialC<{
1200
988
  text: t.StringC;
1201
- }>]>>, t.ExactC<t.TypeC<{
989
+ }>>]>, t.ExactC<t.TypeC<{
990
+ kind: t.LiteralC<"image">;
1202
991
  text: t.StringC;
1203
- }>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
992
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1204
993
  __TYPE__: t.LiteralC<"FileLink">;
1205
- }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
994
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1206
995
  kind: t.Type<"file", "file", unknown>;
1207
- }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1208
996
  id: t.StringC;
1209
997
  url: t.StringC;
1210
998
  name: t.StringC;
1211
999
  size: t.StringC;
1212
1000
  }>, t.PartialC<{
1213
1001
  date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1002
+ }>]>>, t.ExactC<t.PartialC<{
1214
1003
  text: t.StringC;
1215
- }>]>>, t.ExactC<t.TypeC<{
1216
- text: t.StringC;
1217
- }>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1218
- __TYPE__: t.LiteralC<"MediaLink">;
1219
- }>>, t.ExactC<t.TypeC<{
1220
- kind: t.LiteralC<"media">;
1004
+ }>>]>, t.ExactC<t.TypeC<{
1005
+ kind: t.LiteralC<"file">;
1221
1006
  text: t.StringC;
1222
- }>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1007
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1223
1008
  __TYPE__: t.LiteralC<"DocumentLink">;
1224
- }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1009
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
1225
1010
  id: t.Type<string, string, unknown>;
1226
- }>, t.PartialC<{
1227
- kind: t.LiteralC<"document">;
1011
+ }>>, t.ExactC<t.PartialC<{
1228
1012
  text: t.StringC;
1229
- }>]>>, t.ExactC<t.TypeC<{
1013
+ }>>]>, t.ExactC<t.TypeC<{
1230
1014
  kind: t.LiteralC<"document">;
1231
1015
  text: t.StringC;
1232
1016
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1233
1017
  __TYPE__: t.LiteralC<"ExternalLink">;
1234
- }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1018
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1235
1019
  url: t.StringC;
1236
1020
  }>, t.PartialC<{
1237
1021
  kind: t.LiteralC<"web">;
@@ -1241,11 +1025,17 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1241
1025
  }, {
1242
1026
  title?: string;
1243
1027
  }, unknown>, t.NullC, t.UndefinedC]>;
1028
+ }>]>>, t.ExactC<t.PartialC<{
1244
1029
  text: t.StringC;
1245
- }>]>>, t.ExactC<t.TypeC<{
1030
+ }>>]>, t.ExactC<t.TypeC<{
1246
1031
  kind: t.LiteralC<"web">;
1247
1032
  text: t.StringC;
1248
1033
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1034
+ __TYPE__: t.LiteralC<"MediaLink">;
1035
+ }>>, t.ExactC<t.TypeC<{
1036
+ kind: t.LiteralC<"media">;
1037
+ text: t.StringC;
1038
+ }>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1249
1039
  __TYPE__: t.LiteralC<"AnyLink">;
1250
1040
  }>>, t.ExactC<t.TypeC<{
1251
1041
  text: t.StringC;
@@ -1279,9 +1069,8 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1279
1069
  }>]>>, t.PartialC<{
1280
1070
  linkTo: t.UnionC<[t.Type<({
1281
1071
  __TYPE__: "ImageLink";
1282
- } & ({
1072
+ } & {
1283
1073
  kind: "image";
1284
- } & (({
1285
1074
  id: string;
1286
1075
  url: string;
1287
1076
  height: string;
@@ -1290,41 +1079,23 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1290
1079
  name: string;
1291
1080
  } & {
1292
1081
  date?: string | null | undefined;
1293
- text?: string;
1294
- }) | {
1295
- text: string;
1296
- }))) | ({
1082
+ }) | ({
1297
1083
  __TYPE__: "FileLink";
1298
- } & ({
1084
+ } & {
1299
1085
  kind: "file";
1300
- } & (({
1301
1086
  id: string;
1302
1087
  url: string;
1303
1088
  name: string;
1304
1089
  size: string;
1305
1090
  } & {
1306
1091
  date?: string | null | undefined;
1307
- text?: string;
1308
- }) | {
1309
- text: string;
1310
- }))) | ({
1311
- __TYPE__: "MediaLink";
1312
- } & {
1313
- kind: "media";
1314
- text: string;
1315
1092
  }) | ({
1316
1093
  __TYPE__: "DocumentLink";
1317
- } & (({
1318
- id: string;
1319
1094
  } & {
1320
- kind?: "document";
1321
- text?: string;
1322
- }) | {
1323
- kind: "document";
1324
- text: string;
1325
- })) | ({
1095
+ id: string;
1096
+ }) | ({
1326
1097
  __TYPE__: "ExternalLink";
1327
- } & (({
1098
+ } & {
1328
1099
  url: string;
1329
1100
  } & {
1330
1101
  kind?: "web";
@@ -1332,19 +1103,10 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1332
1103
  preview?: {
1333
1104
  title?: string;
1334
1105
  } | null | undefined;
1335
- text?: string;
1336
- }) | {
1337
- kind: "web";
1338
- text: string;
1339
- })) | ({
1340
- __TYPE__: "AnyLink";
1341
- } & {
1342
- text: string;
1343
1106
  }), ({
1344
1107
  __TYPE__: "ImageLink";
1345
- } & ({
1108
+ } & {
1346
1109
  kind: "image";
1347
- } & (({
1348
1110
  id: string;
1349
1111
  url: string;
1350
1112
  height: string;
@@ -1353,41 +1115,23 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1353
1115
  name: string;
1354
1116
  } & {
1355
1117
  date?: string | null | undefined;
1356
- text?: string;
1357
- }) | {
1358
- text: string;
1359
- }))) | ({
1118
+ }) | ({
1360
1119
  __TYPE__: "FileLink";
1361
- } & ({
1120
+ } & {
1362
1121
  kind: "file";
1363
- } & (({
1364
1122
  id: string;
1365
1123
  url: string;
1366
1124
  name: string;
1367
1125
  size: string;
1368
1126
  } & {
1369
1127
  date?: string | null | undefined;
1370
- text?: string;
1371
- }) | {
1372
- text: string;
1373
- }))) | ({
1374
- __TYPE__: "MediaLink";
1375
- } & {
1376
- kind: "media";
1377
- text: string;
1378
1128
  }) | ({
1379
1129
  __TYPE__: "DocumentLink";
1380
- } & (({
1381
- id: string;
1382
1130
  } & {
1383
- kind?: "document";
1384
- text?: string;
1385
- }) | {
1386
- kind: "document";
1387
- text: string;
1388
- })) | ({
1131
+ id: string;
1132
+ }) | ({
1389
1133
  __TYPE__: "ExternalLink";
1390
- } & (({
1134
+ } & {
1391
1135
  url: string;
1392
1136
  } & {
1393
1137
  kind?: "web";
@@ -1395,14 +1139,6 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1395
1139
  preview?: {
1396
1140
  title?: string;
1397
1141
  } | null | undefined;
1398
- text?: string;
1399
- }) | {
1400
- kind: "web";
1401
- text: string;
1402
- })) | ({
1403
- __TYPE__: "AnyLink";
1404
- } & {
1405
- text: string;
1406
1142
  }), unknown>, t.NullC, t.UndefinedC]>;
1407
1143
  }>]>;
1408
1144
  }>, t.PartialC<{
@@ -1440,9 +1176,8 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1440
1176
  spans: t.Type<({
1441
1177
  data: ({
1442
1178
  __TYPE__: "ImageLink";
1443
- } & ({
1179
+ } & {
1444
1180
  kind: "image";
1445
- } & (({
1446
1181
  id: string;
1447
1182
  url: string;
1448
1183
  height: string;
@@ -1451,41 +1186,23 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1451
1186
  name: string;
1452
1187
  } & {
1453
1188
  date?: string | null | undefined;
1454
- text?: string;
1455
- }) | {
1456
- text: string;
1457
- }))) | ({
1189
+ }) | ({
1458
1190
  __TYPE__: "FileLink";
1459
- } & ({
1191
+ } & {
1460
1192
  kind: "file";
1461
- } & (({
1462
1193
  id: string;
1463
1194
  url: string;
1464
1195
  name: string;
1465
1196
  size: string;
1466
1197
  } & {
1467
1198
  date?: string | null | undefined;
1468
- text?: string;
1469
- }) | {
1470
- text: string;
1471
- }))) | ({
1472
- __TYPE__: "MediaLink";
1473
- } & {
1474
- kind: "media";
1475
- text: string;
1476
1199
  }) | ({
1477
1200
  __TYPE__: "DocumentLink";
1478
- } & (({
1479
- id: string;
1480
1201
  } & {
1481
- kind?: "document";
1482
- text?: string;
1483
- }) | {
1484
- kind: "document";
1485
- text: string;
1486
- })) | ({
1202
+ id: string;
1203
+ }) | ({
1487
1204
  __TYPE__: "ExternalLink";
1488
- } & (({
1205
+ } & {
1489
1206
  url: string;
1490
1207
  } & {
1491
1208
  kind?: "web";
@@ -1493,14 +1210,6 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1493
1210
  preview?: {
1494
1211
  title?: string;
1495
1212
  } | null | undefined;
1496
- text?: string;
1497
- }) | {
1498
- kind: "web";
1499
- text: string;
1500
- })) | ({
1501
- __TYPE__: "AnyLink";
1502
- } & {
1503
- text: string;
1504
1213
  });
1505
1214
  start: number;
1506
1215
  end: number;
@@ -1517,9 +1226,8 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1517
1226
  })[], ({
1518
1227
  data: ({
1519
1228
  __TYPE__: "ImageLink";
1520
- } & ({
1229
+ } & {
1521
1230
  kind: "image";
1522
- } & (({
1523
1231
  id: string;
1524
1232
  url: string;
1525
1233
  height: string;
@@ -1528,41 +1236,23 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1528
1236
  name: string;
1529
1237
  } & {
1530
1238
  date?: string | null | undefined;
1531
- text?: string;
1532
- }) | {
1533
- text: string;
1534
- }))) | ({
1239
+ }) | ({
1535
1240
  __TYPE__: "FileLink";
1536
- } & ({
1241
+ } & {
1537
1242
  kind: "file";
1538
- } & (({
1539
1243
  id: string;
1540
1244
  url: string;
1541
1245
  name: string;
1542
1246
  size: string;
1543
1247
  } & {
1544
1248
  date?: string | null | undefined;
1545
- text?: string;
1546
- }) | {
1547
- text: string;
1548
- }))) | ({
1549
- __TYPE__: "MediaLink";
1550
- } & {
1551
- kind: "media";
1552
- text: string;
1553
1249
  }) | ({
1554
1250
  __TYPE__: "DocumentLink";
1555
- } & (({
1556
- id: string;
1557
1251
  } & {
1558
- kind?: "document";
1559
- text?: string;
1560
- }) | {
1561
- kind: "document";
1562
- text: string;
1563
- })) | ({
1252
+ id: string;
1253
+ }) | ({
1564
1254
  __TYPE__: "ExternalLink";
1565
- } & (({
1255
+ } & {
1566
1256
  url: string;
1567
1257
  } & {
1568
1258
  kind?: "web";
@@ -1570,14 +1260,6 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1570
1260
  preview?: {
1571
1261
  title?: string;
1572
1262
  } | null | undefined;
1573
- text?: string;
1574
- }) | {
1575
- kind: "web";
1576
- text: string;
1577
- })) | ({
1578
- __TYPE__: "AnyLink";
1579
- } & {
1580
- text: string;
1581
1263
  });
1582
1264
  start: number;
1583
1265
  end: number;
@@ -1718,52 +1400,48 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1718
1400
  __TYPE__: t.LiteralC<"LinkContent">;
1719
1401
  value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
1720
1402
  __TYPE__: t.LiteralC<"ImageLink">;
1721
- }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
1722
- kind: t.LiteralC<"image">;
1723
- }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1403
+ }>>, t.UnionC<[t.IntersectionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
1404
+ kind: t.Type<"image", "image", unknown>;
1724
1405
  id: t.StringC;
1725
1406
  url: t.StringC;
1726
1407
  height: t.StringC;
1727
1408
  width: t.StringC;
1728
1409
  size: t.StringC;
1729
1410
  name: t.StringC;
1730
- }>, t.PartialC<{
1411
+ }>>, t.ExactC<t.PartialC<{
1731
1412
  date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1413
+ }>>]>, t.ExactC<t.PartialC<{
1732
1414
  text: t.StringC;
1733
- }>]>>, t.ExactC<t.TypeC<{
1415
+ }>>]>, t.ExactC<t.TypeC<{
1416
+ kind: t.LiteralC<"image">;
1734
1417
  text: t.StringC;
1735
- }>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1418
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1736
1419
  __TYPE__: t.LiteralC<"FileLink">;
1737
- }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
1420
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1738
1421
  kind: t.Type<"file", "file", unknown>;
1739
- }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1740
1422
  id: t.StringC;
1741
1423
  url: t.StringC;
1742
1424
  name: t.StringC;
1743
1425
  size: t.StringC;
1744
1426
  }>, t.PartialC<{
1745
1427
  date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1428
+ }>]>>, t.ExactC<t.PartialC<{
1746
1429
  text: t.StringC;
1747
- }>]>>, t.ExactC<t.TypeC<{
1748
- text: t.StringC;
1749
- }>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1750
- __TYPE__: t.LiteralC<"MediaLink">;
1751
- }>>, t.ExactC<t.TypeC<{
1752
- kind: t.LiteralC<"media">;
1430
+ }>>]>, t.ExactC<t.TypeC<{
1431
+ kind: t.LiteralC<"file">;
1753
1432
  text: t.StringC;
1754
- }>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1433
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1755
1434
  __TYPE__: t.LiteralC<"DocumentLink">;
1756
- }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1435
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
1757
1436
  id: t.Type<string, string, unknown>;
1758
- }>, t.PartialC<{
1759
- kind: t.LiteralC<"document">;
1437
+ }>>, t.ExactC<t.PartialC<{
1760
1438
  text: t.StringC;
1761
- }>]>>, t.ExactC<t.TypeC<{
1439
+ }>>]>, t.ExactC<t.TypeC<{
1762
1440
  kind: t.LiteralC<"document">;
1763
1441
  text: t.StringC;
1764
1442
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1765
1443
  __TYPE__: t.LiteralC<"ExternalLink">;
1766
- }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1444
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1767
1445
  url: t.StringC;
1768
1446
  }>, t.PartialC<{
1769
1447
  kind: t.LiteralC<"web">;
@@ -1773,11 +1451,17 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1773
1451
  }, {
1774
1452
  title?: string;
1775
1453
  }, unknown>, t.NullC, t.UndefinedC]>;
1454
+ }>]>>, t.ExactC<t.PartialC<{
1776
1455
  text: t.StringC;
1777
- }>]>>, t.ExactC<t.TypeC<{
1456
+ }>>]>, t.ExactC<t.TypeC<{
1778
1457
  kind: t.LiteralC<"web">;
1779
1458
  text: t.StringC;
1780
1459
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1460
+ __TYPE__: t.LiteralC<"MediaLink">;
1461
+ }>>, t.ExactC<t.TypeC<{
1462
+ kind: t.LiteralC<"media">;
1463
+ text: t.StringC;
1464
+ }>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1781
1465
  __TYPE__: t.LiteralC<"AnyLink">;
1782
1466
  }>>, t.ExactC<t.TypeC<{
1783
1467
  text: t.StringC;
@@ -1811,9 +1495,8 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1811
1495
  }>]>>, t.PartialC<{
1812
1496
  linkTo: t.UnionC<[t.Type<({
1813
1497
  __TYPE__: "ImageLink";
1814
- } & ({
1498
+ } & {
1815
1499
  kind: "image";
1816
- } & (({
1817
1500
  id: string;
1818
1501
  url: string;
1819
1502
  height: string;
@@ -1822,41 +1505,23 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1822
1505
  name: string;
1823
1506
  } & {
1824
1507
  date?: string | null | undefined;
1825
- text?: string;
1826
- }) | {
1827
- text: string;
1828
- }))) | ({
1508
+ }) | ({
1829
1509
  __TYPE__: "FileLink";
1830
- } & ({
1510
+ } & {
1831
1511
  kind: "file";
1832
- } & (({
1833
1512
  id: string;
1834
1513
  url: string;
1835
1514
  name: string;
1836
1515
  size: string;
1837
1516
  } & {
1838
1517
  date?: string | null | undefined;
1839
- text?: string;
1840
- }) | {
1841
- text: string;
1842
- }))) | ({
1843
- __TYPE__: "MediaLink";
1844
- } & {
1845
- kind: "media";
1846
- text: string;
1847
1518
  }) | ({
1848
1519
  __TYPE__: "DocumentLink";
1849
- } & (({
1850
- id: string;
1851
1520
  } & {
1852
- kind?: "document";
1853
- text?: string;
1854
- }) | {
1855
- kind: "document";
1856
- text: string;
1857
- })) | ({
1521
+ id: string;
1522
+ }) | ({
1858
1523
  __TYPE__: "ExternalLink";
1859
- } & (({
1524
+ } & {
1860
1525
  url: string;
1861
1526
  } & {
1862
1527
  kind?: "web";
@@ -1864,19 +1529,10 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1864
1529
  preview?: {
1865
1530
  title?: string;
1866
1531
  } | null | undefined;
1867
- text?: string;
1868
- }) | {
1869
- kind: "web";
1870
- text: string;
1871
- })) | ({
1872
- __TYPE__: "AnyLink";
1873
- } & {
1874
- text: string;
1875
1532
  }), ({
1876
1533
  __TYPE__: "ImageLink";
1877
- } & ({
1534
+ } & {
1878
1535
  kind: "image";
1879
- } & (({
1880
1536
  id: string;
1881
1537
  url: string;
1882
1538
  height: string;
@@ -1885,41 +1541,23 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1885
1541
  name: string;
1886
1542
  } & {
1887
1543
  date?: string | null | undefined;
1888
- text?: string;
1889
- }) | {
1890
- text: string;
1891
- }))) | ({
1544
+ }) | ({
1892
1545
  __TYPE__: "FileLink";
1893
- } & ({
1546
+ } & {
1894
1547
  kind: "file";
1895
- } & (({
1896
1548
  id: string;
1897
1549
  url: string;
1898
1550
  name: string;
1899
1551
  size: string;
1900
1552
  } & {
1901
1553
  date?: string | null | undefined;
1902
- text?: string;
1903
- }) | {
1904
- text: string;
1905
- }))) | ({
1906
- __TYPE__: "MediaLink";
1907
- } & {
1908
- kind: "media";
1909
- text: string;
1910
1554
  }) | ({
1911
1555
  __TYPE__: "DocumentLink";
1912
- } & (({
1913
- id: string;
1914
1556
  } & {
1915
- kind?: "document";
1916
- text?: string;
1917
- }) | {
1918
- kind: "document";
1919
- text: string;
1920
- })) | ({
1557
+ id: string;
1558
+ }) | ({
1921
1559
  __TYPE__: "ExternalLink";
1922
- } & (({
1560
+ } & {
1923
1561
  url: string;
1924
1562
  } & {
1925
1563
  kind?: "web";
@@ -1927,14 +1565,6 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1927
1565
  preview?: {
1928
1566
  title?: string;
1929
1567
  } | null | undefined;
1930
- text?: string;
1931
- }) | {
1932
- kind: "web";
1933
- text: string;
1934
- })) | ({
1935
- __TYPE__: "AnyLink";
1936
- } & {
1937
- text: string;
1938
1568
  }), unknown>, t.NullC, t.UndefinedC]>;
1939
1569
  }>]>;
1940
1570
  }>, t.PartialC<{
@@ -1972,9 +1602,8 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1972
1602
  spans: t.Type<({
1973
1603
  data: ({
1974
1604
  __TYPE__: "ImageLink";
1975
- } & ({
1605
+ } & {
1976
1606
  kind: "image";
1977
- } & (({
1978
1607
  id: string;
1979
1608
  url: string;
1980
1609
  height: string;
@@ -1983,41 +1612,23 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1983
1612
  name: string;
1984
1613
  } & {
1985
1614
  date?: string | null | undefined;
1986
- text?: string;
1987
- }) | {
1988
- text: string;
1989
- }))) | ({
1615
+ }) | ({
1990
1616
  __TYPE__: "FileLink";
1991
- } & ({
1617
+ } & {
1992
1618
  kind: "file";
1993
- } & (({
1994
1619
  id: string;
1995
1620
  url: string;
1996
1621
  name: string;
1997
1622
  size: string;
1998
1623
  } & {
1999
1624
  date?: string | null | undefined;
2000
- text?: string;
2001
- }) | {
2002
- text: string;
2003
- }))) | ({
2004
- __TYPE__: "MediaLink";
2005
- } & {
2006
- kind: "media";
2007
- text: string;
2008
1625
  }) | ({
2009
1626
  __TYPE__: "DocumentLink";
2010
- } & (({
2011
- id: string;
2012
1627
  } & {
2013
- kind?: "document";
2014
- text?: string;
2015
- }) | {
2016
- kind: "document";
2017
- text: string;
2018
- })) | ({
1628
+ id: string;
1629
+ }) | ({
2019
1630
  __TYPE__: "ExternalLink";
2020
- } & (({
1631
+ } & {
2021
1632
  url: string;
2022
1633
  } & {
2023
1634
  kind?: "web";
@@ -2025,14 +1636,6 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2025
1636
  preview?: {
2026
1637
  title?: string;
2027
1638
  } | null | undefined;
2028
- text?: string;
2029
- }) | {
2030
- kind: "web";
2031
- text: string;
2032
- })) | ({
2033
- __TYPE__: "AnyLink";
2034
- } & {
2035
- text: string;
2036
1639
  });
2037
1640
  start: number;
2038
1641
  end: number;
@@ -2049,9 +1652,8 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2049
1652
  })[], ({
2050
1653
  data: ({
2051
1654
  __TYPE__: "ImageLink";
2052
- } & ({
1655
+ } & {
2053
1656
  kind: "image";
2054
- } & (({
2055
1657
  id: string;
2056
1658
  url: string;
2057
1659
  height: string;
@@ -2060,41 +1662,23 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2060
1662
  name: string;
2061
1663
  } & {
2062
1664
  date?: string | null | undefined;
2063
- text?: string;
2064
- }) | {
2065
- text: string;
2066
- }))) | ({
1665
+ }) | ({
2067
1666
  __TYPE__: "FileLink";
2068
- } & ({
1667
+ } & {
2069
1668
  kind: "file";
2070
- } & (({
2071
1669
  id: string;
2072
1670
  url: string;
2073
1671
  name: string;
2074
1672
  size: string;
2075
1673
  } & {
2076
1674
  date?: string | null | undefined;
2077
- text?: string;
2078
- }) | {
2079
- text: string;
2080
- }))) | ({
2081
- __TYPE__: "MediaLink";
2082
- } & {
2083
- kind: "media";
2084
- text: string;
2085
1675
  }) | ({
2086
1676
  __TYPE__: "DocumentLink";
2087
- } & (({
2088
- id: string;
2089
1677
  } & {
2090
- kind?: "document";
2091
- text?: string;
2092
- }) | {
2093
- kind: "document";
2094
- text: string;
2095
- })) | ({
1678
+ id: string;
1679
+ }) | ({
2096
1680
  __TYPE__: "ExternalLink";
2097
- } & (({
1681
+ } & {
2098
1682
  url: string;
2099
1683
  } & {
2100
1684
  kind?: "web";
@@ -2102,14 +1686,6 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2102
1686
  preview?: {
2103
1687
  title?: string;
2104
1688
  } | null | undefined;
2105
- text?: string;
2106
- }) | {
2107
- kind: "web";
2108
- text: string;
2109
- })) | ({
2110
- __TYPE__: "AnyLink";
2111
- } & {
2112
- text: string;
2113
1689
  });
2114
1690
  start: number;
2115
1691
  end: number;
@@ -2248,52 +1824,48 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2248
1824
  __TYPE__: t.LiteralC<"LinkContent">;
2249
1825
  value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
2250
1826
  __TYPE__: t.LiteralC<"ImageLink">;
2251
- }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
2252
- kind: t.LiteralC<"image">;
2253
- }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1827
+ }>>, t.UnionC<[t.IntersectionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
1828
+ kind: t.Type<"image", "image", unknown>;
2254
1829
  id: t.StringC;
2255
1830
  url: t.StringC;
2256
1831
  height: t.StringC;
2257
1832
  width: t.StringC;
2258
1833
  size: t.StringC;
2259
1834
  name: t.StringC;
2260
- }>, t.PartialC<{
1835
+ }>>, t.ExactC<t.PartialC<{
2261
1836
  date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1837
+ }>>]>, t.ExactC<t.PartialC<{
2262
1838
  text: t.StringC;
2263
- }>]>>, t.ExactC<t.TypeC<{
1839
+ }>>]>, t.ExactC<t.TypeC<{
1840
+ kind: t.LiteralC<"image">;
2264
1841
  text: t.StringC;
2265
- }>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1842
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2266
1843
  __TYPE__: t.LiteralC<"FileLink">;
2267
- }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
1844
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2268
1845
  kind: t.Type<"file", "file", unknown>;
2269
- }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2270
1846
  id: t.StringC;
2271
1847
  url: t.StringC;
2272
1848
  name: t.StringC;
2273
1849
  size: t.StringC;
2274
1850
  }>, t.PartialC<{
2275
1851
  date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1852
+ }>]>>, t.ExactC<t.PartialC<{
2276
1853
  text: t.StringC;
2277
- }>]>>, t.ExactC<t.TypeC<{
2278
- text: t.StringC;
2279
- }>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2280
- __TYPE__: t.LiteralC<"MediaLink">;
2281
- }>>, t.ExactC<t.TypeC<{
2282
- kind: t.LiteralC<"media">;
1854
+ }>>]>, t.ExactC<t.TypeC<{
1855
+ kind: t.LiteralC<"file">;
2283
1856
  text: t.StringC;
2284
- }>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1857
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2285
1858
  __TYPE__: t.LiteralC<"DocumentLink">;
2286
- }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1859
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
2287
1860
  id: t.Type<string, string, unknown>;
2288
- }>, t.PartialC<{
2289
- kind: t.LiteralC<"document">;
1861
+ }>>, t.ExactC<t.PartialC<{
2290
1862
  text: t.StringC;
2291
- }>]>>, t.ExactC<t.TypeC<{
1863
+ }>>]>, t.ExactC<t.TypeC<{
2292
1864
  kind: t.LiteralC<"document">;
2293
1865
  text: t.StringC;
2294
1866
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2295
1867
  __TYPE__: t.LiteralC<"ExternalLink">;
2296
- }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1868
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2297
1869
  url: t.StringC;
2298
1870
  }>, t.PartialC<{
2299
1871
  kind: t.LiteralC<"web">;
@@ -2303,11 +1875,17 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2303
1875
  }, {
2304
1876
  title?: string;
2305
1877
  }, unknown>, t.NullC, t.UndefinedC]>;
1878
+ }>]>>, t.ExactC<t.PartialC<{
2306
1879
  text: t.StringC;
2307
- }>]>>, t.ExactC<t.TypeC<{
1880
+ }>>]>, t.ExactC<t.TypeC<{
2308
1881
  kind: t.LiteralC<"web">;
2309
1882
  text: t.StringC;
2310
1883
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1884
+ __TYPE__: t.LiteralC<"MediaLink">;
1885
+ }>>, t.ExactC<t.TypeC<{
1886
+ kind: t.LiteralC<"media">;
1887
+ text: t.StringC;
1888
+ }>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2311
1889
  __TYPE__: t.LiteralC<"AnyLink">;
2312
1890
  }>>, t.ExactC<t.TypeC<{
2313
1891
  text: t.StringC;
@@ -2341,9 +1919,8 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2341
1919
  }>]>>, t.PartialC<{
2342
1920
  linkTo: t.UnionC<[t.Type<({
2343
1921
  __TYPE__: "ImageLink";
2344
- } & ({
1922
+ } & {
2345
1923
  kind: "image";
2346
- } & (({
2347
1924
  id: string;
2348
1925
  url: string;
2349
1926
  height: string;
@@ -2352,41 +1929,23 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2352
1929
  name: string;
2353
1930
  } & {
2354
1931
  date?: string | null | undefined;
2355
- text?: string;
2356
- }) | {
2357
- text: string;
2358
- }))) | ({
1932
+ }) | ({
2359
1933
  __TYPE__: "FileLink";
2360
- } & ({
1934
+ } & {
2361
1935
  kind: "file";
2362
- } & (({
2363
1936
  id: string;
2364
1937
  url: string;
2365
1938
  name: string;
2366
1939
  size: string;
2367
1940
  } & {
2368
1941
  date?: string | null | undefined;
2369
- text?: string;
2370
- }) | {
2371
- text: string;
2372
- }))) | ({
2373
- __TYPE__: "MediaLink";
2374
- } & {
2375
- kind: "media";
2376
- text: string;
2377
1942
  }) | ({
2378
1943
  __TYPE__: "DocumentLink";
2379
- } & (({
2380
- id: string;
2381
1944
  } & {
2382
- kind?: "document";
2383
- text?: string;
2384
- }) | {
2385
- kind: "document";
2386
- text: string;
2387
- })) | ({
1945
+ id: string;
1946
+ }) | ({
2388
1947
  __TYPE__: "ExternalLink";
2389
- } & (({
1948
+ } & {
2390
1949
  url: string;
2391
1950
  } & {
2392
1951
  kind?: "web";
@@ -2394,19 +1953,10 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2394
1953
  preview?: {
2395
1954
  title?: string;
2396
1955
  } | null | undefined;
2397
- text?: string;
2398
- }) | {
2399
- kind: "web";
2400
- text: string;
2401
- })) | ({
2402
- __TYPE__: "AnyLink";
2403
- } & {
2404
- text: string;
2405
1956
  }), ({
2406
1957
  __TYPE__: "ImageLink";
2407
- } & ({
1958
+ } & {
2408
1959
  kind: "image";
2409
- } & (({
2410
1960
  id: string;
2411
1961
  url: string;
2412
1962
  height: string;
@@ -2415,41 +1965,23 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2415
1965
  name: string;
2416
1966
  } & {
2417
1967
  date?: string | null | undefined;
2418
- text?: string;
2419
- }) | {
2420
- text: string;
2421
- }))) | ({
1968
+ }) | ({
2422
1969
  __TYPE__: "FileLink";
2423
- } & ({
1970
+ } & {
2424
1971
  kind: "file";
2425
- } & (({
2426
1972
  id: string;
2427
1973
  url: string;
2428
1974
  name: string;
2429
1975
  size: string;
2430
1976
  } & {
2431
- date?: string | null | undefined;
2432
- text?: string;
2433
- }) | {
2434
- text: string;
2435
- }))) | ({
2436
- __TYPE__: "MediaLink";
2437
- } & {
2438
- kind: "media";
2439
- text: string;
2440
- }) | ({
2441
- __TYPE__: "DocumentLink";
2442
- } & (({
2443
- id: string;
2444
- } & {
2445
- kind?: "document";
2446
- text?: string;
2447
- }) | {
2448
- kind: "document";
2449
- text: string;
2450
- })) | ({
1977
+ date?: string | null | undefined;
1978
+ }) | ({
1979
+ __TYPE__: "DocumentLink";
1980
+ } & {
1981
+ id: string;
1982
+ }) | ({
2451
1983
  __TYPE__: "ExternalLink";
2452
- } & (({
1984
+ } & {
2453
1985
  url: string;
2454
1986
  } & {
2455
1987
  kind?: "web";
@@ -2457,14 +1989,6 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2457
1989
  preview?: {
2458
1990
  title?: string;
2459
1991
  } | null | undefined;
2460
- text?: string;
2461
- }) | {
2462
- kind: "web";
2463
- text: string;
2464
- })) | ({
2465
- __TYPE__: "AnyLink";
2466
- } & {
2467
- text: string;
2468
1992
  }), unknown>, t.NullC, t.UndefinedC]>;
2469
1993
  }>]>;
2470
1994
  }>, t.PartialC<{
@@ -2502,9 +2026,8 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2502
2026
  spans: t.Type<({
2503
2027
  data: ({
2504
2028
  __TYPE__: "ImageLink";
2505
- } & ({
2029
+ } & {
2506
2030
  kind: "image";
2507
- } & (({
2508
2031
  id: string;
2509
2032
  url: string;
2510
2033
  height: string;
@@ -2513,41 +2036,23 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2513
2036
  name: string;
2514
2037
  } & {
2515
2038
  date?: string | null | undefined;
2516
- text?: string;
2517
- }) | {
2518
- text: string;
2519
- }))) | ({
2039
+ }) | ({
2520
2040
  __TYPE__: "FileLink";
2521
- } & ({
2041
+ } & {
2522
2042
  kind: "file";
2523
- } & (({
2524
2043
  id: string;
2525
2044
  url: string;
2526
2045
  name: string;
2527
2046
  size: string;
2528
2047
  } & {
2529
2048
  date?: string | null | undefined;
2530
- text?: string;
2531
- }) | {
2532
- text: string;
2533
- }))) | ({
2534
- __TYPE__: "MediaLink";
2535
- } & {
2536
- kind: "media";
2537
- text: string;
2538
2049
  }) | ({
2539
2050
  __TYPE__: "DocumentLink";
2540
- } & (({
2541
- id: string;
2542
2051
  } & {
2543
- kind?: "document";
2544
- text?: string;
2545
- }) | {
2546
- kind: "document";
2547
- text: string;
2548
- })) | ({
2052
+ id: string;
2053
+ }) | ({
2549
2054
  __TYPE__: "ExternalLink";
2550
- } & (({
2055
+ } & {
2551
2056
  url: string;
2552
2057
  } & {
2553
2058
  kind?: "web";
@@ -2555,14 +2060,6 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2555
2060
  preview?: {
2556
2061
  title?: string;
2557
2062
  } | null | undefined;
2558
- text?: string;
2559
- }) | {
2560
- kind: "web";
2561
- text: string;
2562
- })) | ({
2563
- __TYPE__: "AnyLink";
2564
- } & {
2565
- text: string;
2566
2063
  });
2567
2064
  start: number;
2568
2065
  end: number;
@@ -2579,9 +2076,8 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2579
2076
  })[], ({
2580
2077
  data: ({
2581
2078
  __TYPE__: "ImageLink";
2582
- } & ({
2079
+ } & {
2583
2080
  kind: "image";
2584
- } & (({
2585
2081
  id: string;
2586
2082
  url: string;
2587
2083
  height: string;
@@ -2590,41 +2086,23 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2590
2086
  name: string;
2591
2087
  } & {
2592
2088
  date?: string | null | undefined;
2593
- text?: string;
2594
- }) | {
2595
- text: string;
2596
- }))) | ({
2089
+ }) | ({
2597
2090
  __TYPE__: "FileLink";
2598
- } & ({
2091
+ } & {
2599
2092
  kind: "file";
2600
- } & (({
2601
2093
  id: string;
2602
2094
  url: string;
2603
2095
  name: string;
2604
2096
  size: string;
2605
2097
  } & {
2606
2098
  date?: string | null | undefined;
2607
- text?: string;
2608
- }) | {
2609
- text: string;
2610
- }))) | ({
2611
- __TYPE__: "MediaLink";
2612
- } & {
2613
- kind: "media";
2614
- text: string;
2615
2099
  }) | ({
2616
2100
  __TYPE__: "DocumentLink";
2617
- } & (({
2618
- id: string;
2619
2101
  } & {
2620
- kind?: "document";
2621
- text?: string;
2622
- }) | {
2623
- kind: "document";
2624
- text: string;
2625
- })) | ({
2102
+ id: string;
2103
+ }) | ({
2626
2104
  __TYPE__: "ExternalLink";
2627
- } & (({
2105
+ } & {
2628
2106
  url: string;
2629
2107
  } & {
2630
2108
  kind?: "web";
@@ -2632,14 +2110,6 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2632
2110
  preview?: {
2633
2111
  title?: string;
2634
2112
  } | null | undefined;
2635
- text?: string;
2636
- }) | {
2637
- kind: "web";
2638
- text: string;
2639
- })) | ({
2640
- __TYPE__: "AnyLink";
2641
- } & {
2642
- text: string;
2643
2113
  });
2644
2114
  start: number;
2645
2115
  end: number;
@@ -2777,52 +2247,48 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2777
2247
  __TYPE__: t.LiteralC<"LinkContent">;
2778
2248
  value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
2779
2249
  __TYPE__: t.LiteralC<"ImageLink">;
2780
- }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
2781
- kind: t.LiteralC<"image">;
2782
- }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2250
+ }>>, t.UnionC<[t.IntersectionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
2251
+ kind: t.Type<"image", "image", unknown>;
2783
2252
  id: t.StringC;
2784
2253
  url: t.StringC;
2785
2254
  height: t.StringC;
2786
2255
  width: t.StringC;
2787
2256
  size: t.StringC;
2788
2257
  name: t.StringC;
2789
- }>, t.PartialC<{
2258
+ }>>, t.ExactC<t.PartialC<{
2790
2259
  date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2260
+ }>>]>, t.ExactC<t.PartialC<{
2791
2261
  text: t.StringC;
2792
- }>]>>, t.ExactC<t.TypeC<{
2262
+ }>>]>, t.ExactC<t.TypeC<{
2263
+ kind: t.LiteralC<"image">;
2793
2264
  text: t.StringC;
2794
- }>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2265
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2795
2266
  __TYPE__: t.LiteralC<"FileLink">;
2796
- }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
2267
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2797
2268
  kind: t.Type<"file", "file", unknown>;
2798
- }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2799
2269
  id: t.StringC;
2800
2270
  url: t.StringC;
2801
2271
  name: t.StringC;
2802
2272
  size: t.StringC;
2803
2273
  }>, t.PartialC<{
2804
2274
  date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2275
+ }>]>>, t.ExactC<t.PartialC<{
2805
2276
  text: t.StringC;
2806
- }>]>>, t.ExactC<t.TypeC<{
2807
- text: t.StringC;
2808
- }>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2809
- __TYPE__: t.LiteralC<"MediaLink">;
2810
- }>>, t.ExactC<t.TypeC<{
2811
- kind: t.LiteralC<"media">;
2277
+ }>>]>, t.ExactC<t.TypeC<{
2278
+ kind: t.LiteralC<"file">;
2812
2279
  text: t.StringC;
2813
- }>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2280
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2814
2281
  __TYPE__: t.LiteralC<"DocumentLink">;
2815
- }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2282
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
2816
2283
  id: t.Type<string, string, unknown>;
2817
- }>, t.PartialC<{
2818
- kind: t.LiteralC<"document">;
2284
+ }>>, t.ExactC<t.PartialC<{
2819
2285
  text: t.StringC;
2820
- }>]>>, t.ExactC<t.TypeC<{
2286
+ }>>]>, t.ExactC<t.TypeC<{
2821
2287
  kind: t.LiteralC<"document">;
2822
2288
  text: t.StringC;
2823
2289
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2824
2290
  __TYPE__: t.LiteralC<"ExternalLink">;
2825
- }>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2291
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2826
2292
  url: t.StringC;
2827
2293
  }>, t.PartialC<{
2828
2294
  kind: t.LiteralC<"web">;
@@ -2832,11 +2298,17 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2832
2298
  }, {
2833
2299
  title?: string;
2834
2300
  }, unknown>, t.NullC, t.UndefinedC]>;
2301
+ }>]>>, t.ExactC<t.PartialC<{
2835
2302
  text: t.StringC;
2836
- }>]>>, t.ExactC<t.TypeC<{
2303
+ }>>]>, t.ExactC<t.TypeC<{
2837
2304
  kind: t.LiteralC<"web">;
2838
2305
  text: t.StringC;
2839
2306
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2307
+ __TYPE__: t.LiteralC<"MediaLink">;
2308
+ }>>, t.ExactC<t.TypeC<{
2309
+ kind: t.LiteralC<"media">;
2310
+ text: t.StringC;
2311
+ }>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2840
2312
  __TYPE__: t.LiteralC<"AnyLink">;
2841
2313
  }>>, t.ExactC<t.TypeC<{
2842
2314
  text: t.StringC;
@@ -2870,9 +2342,8 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2870
2342
  }>]>>, t.PartialC<{
2871
2343
  linkTo: t.UnionC<[t.Type<({
2872
2344
  __TYPE__: "ImageLink";
2873
- } & ({
2345
+ } & {
2874
2346
  kind: "image";
2875
- } & (({
2876
2347
  id: string;
2877
2348
  url: string;
2878
2349
  height: string;
@@ -2881,41 +2352,23 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2881
2352
  name: string;
2882
2353
  } & {
2883
2354
  date?: string | null | undefined;
2884
- text?: string;
2885
- }) | {
2886
- text: string;
2887
- }))) | ({
2355
+ }) | ({
2888
2356
  __TYPE__: "FileLink";
2889
- } & ({
2357
+ } & {
2890
2358
  kind: "file";
2891
- } & (({
2892
2359
  id: string;
2893
2360
  url: string;
2894
2361
  name: string;
2895
2362
  size: string;
2896
2363
  } & {
2897
2364
  date?: string | null | undefined;
2898
- text?: string;
2899
- }) | {
2900
- text: string;
2901
- }))) | ({
2902
- __TYPE__: "MediaLink";
2903
- } & {
2904
- kind: "media";
2905
- text: string;
2906
2365
  }) | ({
2907
2366
  __TYPE__: "DocumentLink";
2908
- } & (({
2909
- id: string;
2910
2367
  } & {
2911
- kind?: "document";
2912
- text?: string;
2913
- }) | {
2914
- kind: "document";
2915
- text: string;
2916
- })) | ({
2368
+ id: string;
2369
+ }) | ({
2917
2370
  __TYPE__: "ExternalLink";
2918
- } & (({
2371
+ } & {
2919
2372
  url: string;
2920
2373
  } & {
2921
2374
  kind?: "web";
@@ -2923,19 +2376,10 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2923
2376
  preview?: {
2924
2377
  title?: string;
2925
2378
  } | null | undefined;
2926
- text?: string;
2927
- }) | {
2928
- kind: "web";
2929
- text: string;
2930
- })) | ({
2931
- __TYPE__: "AnyLink";
2932
- } & {
2933
- text: string;
2934
2379
  }), ({
2935
2380
  __TYPE__: "ImageLink";
2936
- } & ({
2381
+ } & {
2937
2382
  kind: "image";
2938
- } & (({
2939
2383
  id: string;
2940
2384
  url: string;
2941
2385
  height: string;
@@ -2944,41 +2388,23 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2944
2388
  name: string;
2945
2389
  } & {
2946
2390
  date?: string | null | undefined;
2947
- text?: string;
2948
- }) | {
2949
- text: string;
2950
- }))) | ({
2391
+ }) | ({
2951
2392
  __TYPE__: "FileLink";
2952
- } & ({
2393
+ } & {
2953
2394
  kind: "file";
2954
- } & (({
2955
2395
  id: string;
2956
2396
  url: string;
2957
2397
  name: string;
2958
2398
  size: string;
2959
2399
  } & {
2960
2400
  date?: string | null | undefined;
2961
- text?: string;
2962
- }) | {
2963
- text: string;
2964
- }))) | ({
2965
- __TYPE__: "MediaLink";
2966
- } & {
2967
- kind: "media";
2968
- text: string;
2969
2401
  }) | ({
2970
2402
  __TYPE__: "DocumentLink";
2971
- } & (({
2972
- id: string;
2973
2403
  } & {
2974
- kind?: "document";
2975
- text?: string;
2976
- }) | {
2977
- kind: "document";
2978
- text: string;
2979
- })) | ({
2404
+ id: string;
2405
+ }) | ({
2980
2406
  __TYPE__: "ExternalLink";
2981
- } & (({
2407
+ } & {
2982
2408
  url: string;
2983
2409
  } & {
2984
2410
  kind?: "web";
@@ -2986,14 +2412,6 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2986
2412
  preview?: {
2987
2413
  title?: string;
2988
2414
  } | null | undefined;
2989
- text?: string;
2990
- }) | {
2991
- kind: "web";
2992
- text: string;
2993
- })) | ({
2994
- __TYPE__: "AnyLink";
2995
- } & {
2996
- text: string;
2997
2415
  }), unknown>, t.NullC, t.UndefinedC]>;
2998
2416
  }>]>;
2999
2417
  }>, t.PartialC<{
@@ -3031,9 +2449,8 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
3031
2449
  spans: t.Type<({
3032
2450
  data: ({
3033
2451
  __TYPE__: "ImageLink";
3034
- } & ({
2452
+ } & {
3035
2453
  kind: "image";
3036
- } & (({
3037
2454
  id: string;
3038
2455
  url: string;
3039
2456
  height: string;
@@ -3042,41 +2459,23 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
3042
2459
  name: string;
3043
2460
  } & {
3044
2461
  date?: string | null | undefined;
3045
- text?: string;
3046
- }) | {
3047
- text: string;
3048
- }))) | ({
2462
+ }) | ({
3049
2463
  __TYPE__: "FileLink";
3050
- } & ({
2464
+ } & {
3051
2465
  kind: "file";
3052
- } & (({
3053
2466
  id: string;
3054
2467
  url: string;
3055
2468
  name: string;
3056
2469
  size: string;
3057
2470
  } & {
3058
2471
  date?: string | null | undefined;
3059
- text?: string;
3060
- }) | {
3061
- text: string;
3062
- }))) | ({
3063
- __TYPE__: "MediaLink";
3064
- } & {
3065
- kind: "media";
3066
- text: string;
3067
2472
  }) | ({
3068
2473
  __TYPE__: "DocumentLink";
3069
- } & (({
3070
- id: string;
3071
2474
  } & {
3072
- kind?: "document";
3073
- text?: string;
3074
- }) | {
3075
- kind: "document";
3076
- text: string;
3077
- })) | ({
2475
+ id: string;
2476
+ }) | ({
3078
2477
  __TYPE__: "ExternalLink";
3079
- } & (({
2478
+ } & {
3080
2479
  url: string;
3081
2480
  } & {
3082
2481
  kind?: "web";
@@ -3084,14 +2483,6 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
3084
2483
  preview?: {
3085
2484
  title?: string;
3086
2485
  } | null | undefined;
3087
- text?: string;
3088
- }) | {
3089
- kind: "web";
3090
- text: string;
3091
- })) | ({
3092
- __TYPE__: "AnyLink";
3093
- } & {
3094
- text: string;
3095
2486
  });
3096
2487
  start: number;
3097
2488
  end: number;
@@ -3108,9 +2499,8 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
3108
2499
  })[], ({
3109
2500
  data: ({
3110
2501
  __TYPE__: "ImageLink";
3111
- } & ({
2502
+ } & {
3112
2503
  kind: "image";
3113
- } & (({
3114
2504
  id: string;
3115
2505
  url: string;
3116
2506
  height: string;
@@ -3119,41 +2509,23 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
3119
2509
  name: string;
3120
2510
  } & {
3121
2511
  date?: string | null | undefined;
3122
- text?: string;
3123
- }) | {
3124
- text: string;
3125
- }))) | ({
2512
+ }) | ({
3126
2513
  __TYPE__: "FileLink";
3127
- } & ({
2514
+ } & {
3128
2515
  kind: "file";
3129
- } & (({
3130
2516
  id: string;
3131
2517
  url: string;
3132
2518
  name: string;
3133
2519
  size: string;
3134
2520
  } & {
3135
2521
  date?: string | null | undefined;
3136
- text?: string;
3137
- }) | {
3138
- text: string;
3139
- }))) | ({
3140
- __TYPE__: "MediaLink";
3141
- } & {
3142
- kind: "media";
3143
- text: string;
3144
2522
  }) | ({
3145
2523
  __TYPE__: "DocumentLink";
3146
- } & (({
3147
- id: string;
3148
2524
  } & {
3149
- kind?: "document";
3150
- text?: string;
3151
- }) | {
3152
- kind: "document";
3153
- text: string;
3154
- })) | ({
2525
+ id: string;
2526
+ }) | ({
3155
2527
  __TYPE__: "ExternalLink";
3156
- } & (({
2528
+ } & {
3157
2529
  url: string;
3158
2530
  } & {
3159
2531
  kind?: "web";
@@ -3161,14 +2533,6 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
3161
2533
  preview?: {
3162
2534
  title?: string;
3163
2535
  } | null | undefined;
3164
- text?: string;
3165
- }) | {
3166
- kind: "web";
3167
- text: string;
3168
- })) | ({
3169
- __TYPE__: "AnyLink";
3170
- } & {
3171
- text: string;
3172
2536
  });
3173
2537
  start: number;
3174
2538
  end: number;
@@ -3327,9 +2691,8 @@ export declare const DocumentLegacy: {
3327
2691
  __TYPE__: "LinkContent";
3328
2692
  value: ({
3329
2693
  __TYPE__: "ImageLink";
3330
- } & ({
3331
- kind: "image";
3332
2694
  } & (({
2695
+ kind: "image";
3333
2696
  id: string;
3334
2697
  url: string;
3335
2698
  height: string;
@@ -3338,24 +2701,27 @@ export declare const DocumentLegacy: {
3338
2701
  name: string;
3339
2702
  } & {
3340
2703
  date?: string | null | undefined;
2704
+ } & {
3341
2705
  text?: string;
3342
2706
  }) | {
2707
+ kind: "image";
3343
2708
  text: string;
3344
- }))) | ({
2709
+ })) | ({
3345
2710
  __TYPE__: "FileLink";
3346
- } & ({
3347
- kind: "file";
3348
2711
  } & (({
2712
+ kind: "file";
3349
2713
  id: string;
3350
2714
  url: string;
3351
2715
  name: string;
3352
2716
  size: string;
3353
2717
  } & {
3354
2718
  date?: string | null | undefined;
2719
+ } & {
3355
2720
  text?: string;
3356
2721
  }) | {
2722
+ kind: "file";
3357
2723
  text: string;
3358
- }))) | ({
2724
+ })) | ({
3359
2725
  __TYPE__: "MediaLink";
3360
2726
  } & {
3361
2727
  kind: "media";
@@ -3365,7 +2731,6 @@ export declare const DocumentLegacy: {
3365
2731
  } & (({
3366
2732
  id: string;
3367
2733
  } & {
3368
- kind?: "document";
3369
2734
  text?: string;
3370
2735
  }) | {
3371
2736
  kind: "document";
@@ -3380,6 +2745,7 @@ export declare const DocumentLegacy: {
3380
2745
  preview?: {
3381
2746
  title?: string;
3382
2747
  } | null | undefined;
2748
+ } & {
3383
2749
  text?: string;
3384
2750
  }) | {
3385
2751
  kind: "web";
@@ -3418,9 +2784,8 @@ export declare const DocumentLegacy: {
3418
2784
  } & {
3419
2785
  linkTo?: ({
3420
2786
  __TYPE__: "ImageLink";
3421
- } & ({
2787
+ } & {
3422
2788
  kind: "image";
3423
- } & (({
3424
2789
  id: string;
3425
2790
  url: string;
3426
2791
  height: string;
@@ -3429,41 +2794,23 @@ export declare const DocumentLegacy: {
3429
2794
  name: string;
3430
2795
  } & {
3431
2796
  date?: string | null | undefined;
3432
- text?: string;
3433
- }) | {
3434
- text: string;
3435
- }))) | ({
2797
+ }) | ({
3436
2798
  __TYPE__: "FileLink";
3437
- } & ({
2799
+ } & {
3438
2800
  kind: "file";
3439
- } & (({
3440
2801
  id: string;
3441
2802
  url: string;
3442
2803
  name: string;
3443
2804
  size: string;
3444
2805
  } & {
3445
2806
  date?: string | null | undefined;
3446
- text?: string;
3447
- }) | {
3448
- text: string;
3449
- }))) | ({
3450
- __TYPE__: "MediaLink";
3451
- } & {
3452
- kind: "media";
3453
- text: string;
3454
2807
  }) | ({
3455
2808
  __TYPE__: "DocumentLink";
3456
- } & (({
3457
- id: string;
3458
2809
  } & {
3459
- kind?: "document";
3460
- text?: string;
3461
- }) | {
3462
- kind: "document";
3463
- text: string;
3464
- })) | ({
2810
+ id: string;
2811
+ }) | ({
3465
2812
  __TYPE__: "ExternalLink";
3466
- } & (({
2813
+ } & {
3467
2814
  url: string;
3468
2815
  } & {
3469
2816
  kind?: "web";
@@ -3471,14 +2818,6 @@ export declare const DocumentLegacy: {
3471
2818
  preview?: {
3472
2819
  title?: string;
3473
2820
  } | null | undefined;
3474
- text?: string;
3475
- }) | {
3476
- kind: "web";
3477
- text: string;
3478
- })) | ({
3479
- __TYPE__: "AnyLink";
3480
- } & {
3481
- text: string;
3482
2821
  }) | null | undefined;
3483
2822
  };
3484
2823
  } & {
@@ -3516,9 +2855,8 @@ export declare const DocumentLegacy: {
3516
2855
  spans?: ({
3517
2856
  data: ({
3518
2857
  __TYPE__: "ImageLink";
3519
- } & ({
2858
+ } & {
3520
2859
  kind: "image";
3521
- } & (({
3522
2860
  id: string;
3523
2861
  url: string;
3524
2862
  height: string;
@@ -3527,41 +2865,23 @@ export declare const DocumentLegacy: {
3527
2865
  name: string;
3528
2866
  } & {
3529
2867
  date?: string | null | undefined;
3530
- text?: string;
3531
- }) | {
3532
- text: string;
3533
- }))) | ({
2868
+ }) | ({
3534
2869
  __TYPE__: "FileLink";
3535
- } & ({
2870
+ } & {
3536
2871
  kind: "file";
3537
- } & (({
3538
2872
  id: string;
3539
2873
  url: string;
3540
2874
  name: string;
3541
2875
  size: string;
3542
2876
  } & {
3543
2877
  date?: string | null | undefined;
3544
- text?: string;
3545
- }) | {
3546
- text: string;
3547
- }))) | ({
3548
- __TYPE__: "MediaLink";
3549
- } & {
3550
- kind: "media";
3551
- text: string;
3552
2878
  }) | ({
3553
2879
  __TYPE__: "DocumentLink";
3554
- } & (({
3555
- id: string;
3556
2880
  } & {
3557
- kind?: "document";
3558
- text?: string;
3559
- }) | {
3560
- kind: "document";
3561
- text: string;
3562
- })) | ({
2881
+ id: string;
2882
+ }) | ({
3563
2883
  __TYPE__: "ExternalLink";
3564
- } & (({
2884
+ } & {
3565
2885
  url: string;
3566
2886
  } & {
3567
2887
  kind?: "web";
@@ -3569,14 +2889,6 @@ export declare const DocumentLegacy: {
3569
2889
  preview?: {
3570
2890
  title?: string;
3571
2891
  } | null | undefined;
3572
- text?: string;
3573
- }) | {
3574
- kind: "web";
3575
- text: string;
3576
- })) | ({
3577
- __TYPE__: "AnyLink";
3578
- } & {
3579
- text: string;
3580
2892
  });
3581
2893
  start: number;
3582
2894
  end: number;
@@ -3723,9 +3035,8 @@ export declare const DocumentLegacy: {
3723
3035
  __TYPE__: "LinkContent";
3724
3036
  value: ({
3725
3037
  __TYPE__: "ImageLink";
3726
- } & ({
3727
- kind: "image";
3728
3038
  } & (({
3039
+ kind: "image";
3729
3040
  id: string;
3730
3041
  url: string;
3731
3042
  height: string;
@@ -3734,24 +3045,27 @@ export declare const DocumentLegacy: {
3734
3045
  name: string;
3735
3046
  } & {
3736
3047
  date?: string | null | undefined;
3048
+ } & {
3737
3049
  text?: string;
3738
3050
  }) | {
3051
+ kind: "image";
3739
3052
  text: string;
3740
- }))) | ({
3053
+ })) | ({
3741
3054
  __TYPE__: "FileLink";
3742
- } & ({
3743
- kind: "file";
3744
3055
  } & (({
3056
+ kind: "file";
3745
3057
  id: string;
3746
3058
  url: string;
3747
3059
  name: string;
3748
3060
  size: string;
3749
3061
  } & {
3750
3062
  date?: string | null | undefined;
3063
+ } & {
3751
3064
  text?: string;
3752
3065
  }) | {
3066
+ kind: "file";
3753
3067
  text: string;
3754
- }))) | ({
3068
+ })) | ({
3755
3069
  __TYPE__: "MediaLink";
3756
3070
  } & {
3757
3071
  kind: "media";
@@ -3761,7 +3075,6 @@ export declare const DocumentLegacy: {
3761
3075
  } & (({
3762
3076
  id: string;
3763
3077
  } & {
3764
- kind?: "document";
3765
3078
  text?: string;
3766
3079
  }) | {
3767
3080
  kind: "document";
@@ -3776,6 +3089,7 @@ export declare const DocumentLegacy: {
3776
3089
  preview?: {
3777
3090
  title?: string;
3778
3091
  } | null | undefined;
3092
+ } & {
3779
3093
  text?: string;
3780
3094
  }) | {
3781
3095
  kind: "web";
@@ -3814,9 +3128,8 @@ export declare const DocumentLegacy: {
3814
3128
  } & {
3815
3129
  linkTo?: ({
3816
3130
  __TYPE__: "ImageLink";
3817
- } & ({
3131
+ } & {
3818
3132
  kind: "image";
3819
- } & (({
3820
3133
  id: string;
3821
3134
  url: string;
3822
3135
  height: string;
@@ -3825,41 +3138,23 @@ export declare const DocumentLegacy: {
3825
3138
  name: string;
3826
3139
  } & {
3827
3140
  date?: string | null | undefined;
3828
- text?: string;
3829
- }) | {
3830
- text: string;
3831
- }))) | ({
3141
+ }) | ({
3832
3142
  __TYPE__: "FileLink";
3833
- } & ({
3143
+ } & {
3834
3144
  kind: "file";
3835
- } & (({
3836
3145
  id: string;
3837
3146
  url: string;
3838
3147
  name: string;
3839
3148
  size: string;
3840
3149
  } & {
3841
3150
  date?: string | null | undefined;
3842
- text?: string;
3843
- }) | {
3844
- text: string;
3845
- }))) | ({
3846
- __TYPE__: "MediaLink";
3847
- } & {
3848
- kind: "media";
3849
- text: string;
3850
3151
  }) | ({
3851
3152
  __TYPE__: "DocumentLink";
3852
- } & (({
3853
- id: string;
3854
3153
  } & {
3855
- kind?: "document";
3856
- text?: string;
3857
- }) | {
3858
- kind: "document";
3859
- text: string;
3860
- })) | ({
3154
+ id: string;
3155
+ }) | ({
3861
3156
  __TYPE__: "ExternalLink";
3862
- } & (({
3157
+ } & {
3863
3158
  url: string;
3864
3159
  } & {
3865
3160
  kind?: "web";
@@ -3867,14 +3162,6 @@ export declare const DocumentLegacy: {
3867
3162
  preview?: {
3868
3163
  title?: string;
3869
3164
  } | null | undefined;
3870
- text?: string;
3871
- }) | {
3872
- kind: "web";
3873
- text: string;
3874
- })) | ({
3875
- __TYPE__: "AnyLink";
3876
- } & {
3877
- text: string;
3878
3165
  }) | null | undefined;
3879
3166
  };
3880
3167
  } & {
@@ -3912,9 +3199,8 @@ export declare const DocumentLegacy: {
3912
3199
  spans?: ({
3913
3200
  data: ({
3914
3201
  __TYPE__: "ImageLink";
3915
- } & ({
3202
+ } & {
3916
3203
  kind: "image";
3917
- } & (({
3918
3204
  id: string;
3919
3205
  url: string;
3920
3206
  height: string;
@@ -3923,41 +3209,23 @@ export declare const DocumentLegacy: {
3923
3209
  name: string;
3924
3210
  } & {
3925
3211
  date?: string | null | undefined;
3926
- text?: string;
3927
- }) | {
3928
- text: string;
3929
- }))) | ({
3212
+ }) | ({
3930
3213
  __TYPE__: "FileLink";
3931
- } & ({
3214
+ } & {
3932
3215
  kind: "file";
3933
- } & (({
3934
3216
  id: string;
3935
3217
  url: string;
3936
3218
  name: string;
3937
3219
  size: string;
3938
3220
  } & {
3939
3221
  date?: string | null | undefined;
3940
- text?: string;
3941
- }) | {
3942
- text: string;
3943
- }))) | ({
3944
- __TYPE__: "MediaLink";
3945
- } & {
3946
- kind: "media";
3947
- text: string;
3948
3222
  }) | ({
3949
3223
  __TYPE__: "DocumentLink";
3950
- } & (({
3951
- id: string;
3952
3224
  } & {
3953
- kind?: "document";
3954
- text?: string;
3955
- }) | {
3956
- kind: "document";
3957
- text: string;
3958
- })) | ({
3225
+ id: string;
3226
+ }) | ({
3959
3227
  __TYPE__: "ExternalLink";
3960
- } & (({
3228
+ } & {
3961
3229
  url: string;
3962
3230
  } & {
3963
3231
  kind?: "web";
@@ -3965,14 +3233,6 @@ export declare const DocumentLegacy: {
3965
3233
  preview?: {
3966
3234
  title?: string;
3967
3235
  } | null | undefined;
3968
- text?: string;
3969
- }) | {
3970
- kind: "web";
3971
- text: string;
3972
- })) | ({
3973
- __TYPE__: "AnyLink";
3974
- } & {
3975
- text: string;
3976
3236
  });
3977
3237
  start: number;
3978
3238
  end: number;
@@ -4113,9 +3373,8 @@ export declare const DocumentLegacy: {
4113
3373
  __TYPE__: "LinkContent";
4114
3374
  value: ({
4115
3375
  __TYPE__: "ImageLink";
4116
- } & ({
4117
- kind: "image";
4118
3376
  } & (({
3377
+ kind: "image";
4119
3378
  id: string;
4120
3379
  url: string;
4121
3380
  height: string;
@@ -4124,24 +3383,27 @@ export declare const DocumentLegacy: {
4124
3383
  name: string;
4125
3384
  } & {
4126
3385
  date?: string | null | undefined;
3386
+ } & {
4127
3387
  text?: string;
4128
3388
  }) | {
3389
+ kind: "image";
4129
3390
  text: string;
4130
- }))) | ({
3391
+ })) | ({
4131
3392
  __TYPE__: "FileLink";
4132
- } & ({
4133
- kind: "file";
4134
3393
  } & (({
3394
+ kind: "file";
4135
3395
  id: string;
4136
3396
  url: string;
4137
3397
  name: string;
4138
3398
  size: string;
4139
3399
  } & {
4140
3400
  date?: string | null | undefined;
3401
+ } & {
4141
3402
  text?: string;
4142
3403
  }) | {
3404
+ kind: "file";
4143
3405
  text: string;
4144
- }))) | ({
3406
+ })) | ({
4145
3407
  __TYPE__: "MediaLink";
4146
3408
  } & {
4147
3409
  kind: "media";
@@ -4151,7 +3413,6 @@ export declare const DocumentLegacy: {
4151
3413
  } & (({
4152
3414
  id: string;
4153
3415
  } & {
4154
- kind?: "document";
4155
3416
  text?: string;
4156
3417
  }) | {
4157
3418
  kind: "document";
@@ -4166,6 +3427,7 @@ export declare const DocumentLegacy: {
4166
3427
  preview?: {
4167
3428
  title?: string;
4168
3429
  } | null | undefined;
3430
+ } & {
4169
3431
  text?: string;
4170
3432
  }) | {
4171
3433
  kind: "web";
@@ -4204,9 +3466,8 @@ export declare const DocumentLegacy: {
4204
3466
  } & {
4205
3467
  linkTo?: ({
4206
3468
  __TYPE__: "ImageLink";
4207
- } & ({
3469
+ } & {
4208
3470
  kind: "image";
4209
- } & (({
4210
3471
  id: string;
4211
3472
  url: string;
4212
3473
  height: string;
@@ -4215,41 +3476,23 @@ export declare const DocumentLegacy: {
4215
3476
  name: string;
4216
3477
  } & {
4217
3478
  date?: string | null | undefined;
4218
- text?: string;
4219
- }) | {
4220
- text: string;
4221
- }))) | ({
3479
+ }) | ({
4222
3480
  __TYPE__: "FileLink";
4223
- } & ({
3481
+ } & {
4224
3482
  kind: "file";
4225
- } & (({
4226
3483
  id: string;
4227
3484
  url: string;
4228
3485
  name: string;
4229
3486
  size: string;
4230
3487
  } & {
4231
3488
  date?: string | null | undefined;
4232
- text?: string;
4233
- }) | {
4234
- text: string;
4235
- }))) | ({
4236
- __TYPE__: "MediaLink";
4237
- } & {
4238
- kind: "media";
4239
- text: string;
4240
3489
  }) | ({
4241
3490
  __TYPE__: "DocumentLink";
4242
- } & (({
4243
- id: string;
4244
3491
  } & {
4245
- kind?: "document";
4246
- text?: string;
4247
- }) | {
4248
- kind: "document";
4249
- text: string;
4250
- })) | ({
3492
+ id: string;
3493
+ }) | ({
4251
3494
  __TYPE__: "ExternalLink";
4252
- } & (({
3495
+ } & {
4253
3496
  url: string;
4254
3497
  } & {
4255
3498
  kind?: "web";
@@ -4257,14 +3500,6 @@ export declare const DocumentLegacy: {
4257
3500
  preview?: {
4258
3501
  title?: string;
4259
3502
  } | null | undefined;
4260
- text?: string;
4261
- }) | {
4262
- kind: "web";
4263
- text: string;
4264
- })) | ({
4265
- __TYPE__: "AnyLink";
4266
- } & {
4267
- text: string;
4268
3503
  }) | null | undefined;
4269
3504
  };
4270
3505
  } & {
@@ -4302,9 +3537,8 @@ export declare const DocumentLegacy: {
4302
3537
  spans?: ({
4303
3538
  data: ({
4304
3539
  __TYPE__: "ImageLink";
4305
- } & ({
3540
+ } & {
4306
3541
  kind: "image";
4307
- } & (({
4308
3542
  id: string;
4309
3543
  url: string;
4310
3544
  height: string;
@@ -4313,41 +3547,23 @@ export declare const DocumentLegacy: {
4313
3547
  name: string;
4314
3548
  } & {
4315
3549
  date?: string | null | undefined;
4316
- text?: string;
4317
- }) | {
4318
- text: string;
4319
- }))) | ({
3550
+ }) | ({
4320
3551
  __TYPE__: "FileLink";
4321
- } & ({
3552
+ } & {
4322
3553
  kind: "file";
4323
- } & (({
4324
3554
  id: string;
4325
3555
  url: string;
4326
3556
  name: string;
4327
3557
  size: string;
4328
3558
  } & {
4329
3559
  date?: string | null | undefined;
4330
- text?: string;
4331
- }) | {
4332
- text: string;
4333
- }))) | ({
4334
- __TYPE__: "MediaLink";
4335
- } & {
4336
- kind: "media";
4337
- text: string;
4338
3560
  }) | ({
4339
3561
  __TYPE__: "DocumentLink";
4340
- } & (({
4341
- id: string;
4342
3562
  } & {
4343
- kind?: "document";
4344
- text?: string;
4345
- }) | {
4346
- kind: "document";
4347
- text: string;
4348
- })) | ({
3563
+ id: string;
3564
+ }) | ({
4349
3565
  __TYPE__: "ExternalLink";
4350
- } & (({
3566
+ } & {
4351
3567
  url: string;
4352
3568
  } & {
4353
3569
  kind?: "web";
@@ -4355,14 +3571,6 @@ export declare const DocumentLegacy: {
4355
3571
  preview?: {
4356
3572
  title?: string;
4357
3573
  } | null | undefined;
4358
- text?: string;
4359
- }) | {
4360
- kind: "web";
4361
- text: string;
4362
- })) | ({
4363
- __TYPE__: "AnyLink";
4364
- } & {
4365
- text: string;
4366
3574
  });
4367
3575
  start: number;
4368
3576
  end: number;
@@ -4504,9 +3712,8 @@ export declare const DocumentLegacy: {
4504
3712
  __TYPE__: "LinkContent";
4505
3713
  value: ({
4506
3714
  __TYPE__: "ImageLink";
4507
- } & ({
4508
- kind: "image";
4509
3715
  } & (({
3716
+ kind: "image";
4510
3717
  id: string;
4511
3718
  url: string;
4512
3719
  height: string;
@@ -4515,24 +3722,27 @@ export declare const DocumentLegacy: {
4515
3722
  name: string;
4516
3723
  } & {
4517
3724
  date?: string | null | undefined;
3725
+ } & {
4518
3726
  text?: string;
4519
3727
  }) | {
3728
+ kind: "image";
4520
3729
  text: string;
4521
- }))) | ({
3730
+ })) | ({
4522
3731
  __TYPE__: "FileLink";
4523
- } & ({
4524
- kind: "file";
4525
3732
  } & (({
3733
+ kind: "file";
4526
3734
  id: string;
4527
3735
  url: string;
4528
3736
  name: string;
4529
3737
  size: string;
4530
3738
  } & {
4531
3739
  date?: string | null | undefined;
3740
+ } & {
4532
3741
  text?: string;
4533
3742
  }) | {
3743
+ kind: "file";
4534
3744
  text: string;
4535
- }))) | ({
3745
+ })) | ({
4536
3746
  __TYPE__: "MediaLink";
4537
3747
  } & {
4538
3748
  kind: "media";
@@ -4542,7 +3752,6 @@ export declare const DocumentLegacy: {
4542
3752
  } & (({
4543
3753
  id: string;
4544
3754
  } & {
4545
- kind?: "document";
4546
3755
  text?: string;
4547
3756
  }) | {
4548
3757
  kind: "document";
@@ -4557,6 +3766,7 @@ export declare const DocumentLegacy: {
4557
3766
  preview?: {
4558
3767
  title?: string;
4559
3768
  } | null | undefined;
3769
+ } & {
4560
3770
  text?: string;
4561
3771
  }) | {
4562
3772
  kind: "web";
@@ -4595,9 +3805,8 @@ export declare const DocumentLegacy: {
4595
3805
  } & {
4596
3806
  linkTo?: ({
4597
3807
  __TYPE__: "ImageLink";
4598
- } & ({
3808
+ } & {
4599
3809
  kind: "image";
4600
- } & (({
4601
3810
  id: string;
4602
3811
  url: string;
4603
3812
  height: string;
@@ -4606,41 +3815,23 @@ export declare const DocumentLegacy: {
4606
3815
  name: string;
4607
3816
  } & {
4608
3817
  date?: string | null | undefined;
4609
- text?: string;
4610
- }) | {
4611
- text: string;
4612
- }))) | ({
3818
+ }) | ({
4613
3819
  __TYPE__: "FileLink";
4614
- } & ({
3820
+ } & {
4615
3821
  kind: "file";
4616
- } & (({
4617
3822
  id: string;
4618
3823
  url: string;
4619
3824
  name: string;
4620
3825
  size: string;
4621
3826
  } & {
4622
3827
  date?: string | null | undefined;
4623
- text?: string;
4624
- }) | {
4625
- text: string;
4626
- }))) | ({
4627
- __TYPE__: "MediaLink";
4628
- } & {
4629
- kind: "media";
4630
- text: string;
4631
3828
  }) | ({
4632
3829
  __TYPE__: "DocumentLink";
4633
- } & (({
4634
- id: string;
4635
3830
  } & {
4636
- kind?: "document";
4637
- text?: string;
4638
- }) | {
4639
- kind: "document";
4640
- text: string;
4641
- })) | ({
3831
+ id: string;
3832
+ }) | ({
4642
3833
  __TYPE__: "ExternalLink";
4643
- } & (({
3834
+ } & {
4644
3835
  url: string;
4645
3836
  } & {
4646
3837
  kind?: "web";
@@ -4648,14 +3839,6 @@ export declare const DocumentLegacy: {
4648
3839
  preview?: {
4649
3840
  title?: string;
4650
3841
  } | null | undefined;
4651
- text?: string;
4652
- }) | {
4653
- kind: "web";
4654
- text: string;
4655
- })) | ({
4656
- __TYPE__: "AnyLink";
4657
- } & {
4658
- text: string;
4659
3842
  }) | null | undefined;
4660
3843
  };
4661
3844
  } & {
@@ -4693,9 +3876,8 @@ export declare const DocumentLegacy: {
4693
3876
  spans?: ({
4694
3877
  data: ({
4695
3878
  __TYPE__: "ImageLink";
4696
- } & ({
3879
+ } & {
4697
3880
  kind: "image";
4698
- } & (({
4699
3881
  id: string;
4700
3882
  url: string;
4701
3883
  height: string;
@@ -4704,41 +3886,23 @@ export declare const DocumentLegacy: {
4704
3886
  name: string;
4705
3887
  } & {
4706
3888
  date?: string | null | undefined;
4707
- text?: string;
4708
- }) | {
4709
- text: string;
4710
- }))) | ({
3889
+ }) | ({
4711
3890
  __TYPE__: "FileLink";
4712
- } & ({
3891
+ } & {
4713
3892
  kind: "file";
4714
- } & (({
4715
3893
  id: string;
4716
3894
  url: string;
4717
3895
  name: string;
4718
3896
  size: string;
4719
3897
  } & {
4720
3898
  date?: string | null | undefined;
4721
- text?: string;
4722
- }) | {
4723
- text: string;
4724
- }))) | ({
4725
- __TYPE__: "MediaLink";
4726
- } & {
4727
- kind: "media";
4728
- text: string;
4729
3899
  }) | ({
4730
3900
  __TYPE__: "DocumentLink";
4731
- } & (({
4732
- id: string;
4733
3901
  } & {
4734
- kind?: "document";
4735
- text?: string;
4736
- }) | {
4737
- kind: "document";
4738
- text: string;
4739
- })) | ({
3902
+ id: string;
3903
+ }) | ({
4740
3904
  __TYPE__: "ExternalLink";
4741
- } & (({
3905
+ } & {
4742
3906
  url: string;
4743
3907
  } & {
4744
3908
  kind?: "web";
@@ -4746,14 +3910,6 @@ export declare const DocumentLegacy: {
4746
3910
  preview?: {
4747
3911
  title?: string;
4748
3912
  } | null | undefined;
4749
- text?: string;
4750
- }) | {
4751
- kind: "web";
4752
- text: string;
4753
- })) | ({
4754
- __TYPE__: "AnyLink";
4755
- } & {
4756
- text: string;
4757
3913
  });
4758
3914
  start: number;
4759
3915
  end: number;
@@ -4897,9 +4053,8 @@ export declare const DocumentLegacy: {
4897
4053
  __TYPE__: "LinkContent";
4898
4054
  value: ({
4899
4055
  __TYPE__: "ImageLink";
4900
- } & ({
4901
- kind: "image";
4902
4056
  } & (({
4057
+ kind: "image";
4903
4058
  id: string;
4904
4059
  url: string;
4905
4060
  height: string;
@@ -4908,24 +4063,27 @@ export declare const DocumentLegacy: {
4908
4063
  name: string;
4909
4064
  } & {
4910
4065
  date?: string | null | undefined;
4066
+ } & {
4911
4067
  text?: string;
4912
4068
  }) | {
4069
+ kind: "image";
4913
4070
  text: string;
4914
- }))) | ({
4071
+ })) | ({
4915
4072
  __TYPE__: "FileLink";
4916
- } & ({
4917
- kind: "file";
4918
4073
  } & (({
4074
+ kind: "file";
4919
4075
  id: string;
4920
4076
  url: string;
4921
4077
  name: string;
4922
4078
  size: string;
4923
4079
  } & {
4924
4080
  date?: string | null | undefined;
4081
+ } & {
4925
4082
  text?: string;
4926
4083
  }) | {
4084
+ kind: "file";
4927
4085
  text: string;
4928
- }))) | ({
4086
+ })) | ({
4929
4087
  __TYPE__: "MediaLink";
4930
4088
  } & {
4931
4089
  kind: "media";
@@ -4935,7 +4093,6 @@ export declare const DocumentLegacy: {
4935
4093
  } & (({
4936
4094
  id: string;
4937
4095
  } & {
4938
- kind?: "document";
4939
4096
  text?: string;
4940
4097
  }) | {
4941
4098
  kind: "document";
@@ -4950,6 +4107,7 @@ export declare const DocumentLegacy: {
4950
4107
  preview?: {
4951
4108
  title?: string;
4952
4109
  } | null | undefined;
4110
+ } & {
4953
4111
  text?: string;
4954
4112
  }) | {
4955
4113
  kind: "web";
@@ -4988,9 +4146,8 @@ export declare const DocumentLegacy: {
4988
4146
  } & {
4989
4147
  linkTo?: ({
4990
4148
  __TYPE__: "ImageLink";
4991
- } & ({
4149
+ } & {
4992
4150
  kind: "image";
4993
- } & (({
4994
4151
  id: string;
4995
4152
  url: string;
4996
4153
  height: string;
@@ -4999,41 +4156,23 @@ export declare const DocumentLegacy: {
4999
4156
  name: string;
5000
4157
  } & {
5001
4158
  date?: string | null | undefined;
5002
- text?: string;
5003
- }) | {
5004
- text: string;
5005
- }))) | ({
4159
+ }) | ({
5006
4160
  __TYPE__: "FileLink";
5007
- } & ({
4161
+ } & {
5008
4162
  kind: "file";
5009
- } & (({
5010
4163
  id: string;
5011
4164
  url: string;
5012
4165
  name: string;
5013
4166
  size: string;
5014
4167
  } & {
5015
4168
  date?: string | null | undefined;
5016
- text?: string;
5017
- }) | {
5018
- text: string;
5019
- }))) | ({
5020
- __TYPE__: "MediaLink";
5021
- } & {
5022
- kind: "media";
5023
- text: string;
5024
4169
  }) | ({
5025
4170
  __TYPE__: "DocumentLink";
5026
- } & (({
5027
- id: string;
5028
4171
  } & {
5029
- kind?: "document";
5030
- text?: string;
5031
- }) | {
5032
- kind: "document";
5033
- text: string;
5034
- })) | ({
4172
+ id: string;
4173
+ }) | ({
5035
4174
  __TYPE__: "ExternalLink";
5036
- } & (({
4175
+ } & {
5037
4176
  url: string;
5038
4177
  } & {
5039
4178
  kind?: "web";
@@ -5041,14 +4180,6 @@ export declare const DocumentLegacy: {
5041
4180
  preview?: {
5042
4181
  title?: string;
5043
4182
  } | null | undefined;
5044
- text?: string;
5045
- }) | {
5046
- kind: "web";
5047
- text: string;
5048
- })) | ({
5049
- __TYPE__: "AnyLink";
5050
- } & {
5051
- text: string;
5052
4183
  }) | null | undefined;
5053
4184
  };
5054
4185
  } & {
@@ -5086,9 +4217,8 @@ export declare const DocumentLegacy: {
5086
4217
  spans?: ({
5087
4218
  data: ({
5088
4219
  __TYPE__: "ImageLink";
5089
- } & ({
4220
+ } & {
5090
4221
  kind: "image";
5091
- } & (({
5092
4222
  id: string;
5093
4223
  url: string;
5094
4224
  height: string;
@@ -5097,41 +4227,23 @@ export declare const DocumentLegacy: {
5097
4227
  name: string;
5098
4228
  } & {
5099
4229
  date?: string | null | undefined;
5100
- text?: string;
5101
- }) | {
5102
- text: string;
5103
- }))) | ({
4230
+ }) | ({
5104
4231
  __TYPE__: "FileLink";
5105
- } & ({
4232
+ } & {
5106
4233
  kind: "file";
5107
- } & (({
5108
4234
  id: string;
5109
4235
  url: string;
5110
4236
  name: string;
5111
4237
  size: string;
5112
4238
  } & {
5113
4239
  date?: string | null | undefined;
5114
- text?: string;
5115
- }) | {
5116
- text: string;
5117
- }))) | ({
5118
- __TYPE__: "MediaLink";
5119
- } & {
5120
- kind: "media";
5121
- text: string;
5122
4240
  }) | ({
5123
4241
  __TYPE__: "DocumentLink";
5124
- } & (({
5125
- id: string;
5126
4242
  } & {
5127
- kind?: "document";
5128
- text?: string;
5129
- }) | {
5130
- kind: "document";
5131
- text: string;
5132
- })) | ({
4243
+ id: string;
4244
+ }) | ({
5133
4245
  __TYPE__: "ExternalLink";
5134
- } & (({
4246
+ } & {
5135
4247
  url: string;
5136
4248
  } & {
5137
4249
  kind?: "web";
@@ -5139,14 +4251,6 @@ export declare const DocumentLegacy: {
5139
4251
  preview?: {
5140
4252
  title?: string;
5141
4253
  } | null | undefined;
5142
- text?: string;
5143
- }) | {
5144
- kind: "web";
5145
- text: string;
5146
- })) | ({
5147
- __TYPE__: "AnyLink";
5148
- } & {
5149
- text: string;
5150
4254
  });
5151
4255
  start: number;
5152
4256
  end: number;
@@ -5288,9 +4392,8 @@ export declare const DocumentLegacy: {
5288
4392
  __TYPE__: "LinkContent";
5289
4393
  value: ({
5290
4394
  __TYPE__: "ImageLink";
5291
- } & ({
5292
- kind: "image";
5293
4395
  } & (({
4396
+ kind: "image";
5294
4397
  id: string;
5295
4398
  url: string;
5296
4399
  height: string;
@@ -5299,24 +4402,27 @@ export declare const DocumentLegacy: {
5299
4402
  name: string;
5300
4403
  } & {
5301
4404
  date?: string | null | undefined;
4405
+ } & {
5302
4406
  text?: string;
5303
4407
  }) | {
4408
+ kind: "image";
5304
4409
  text: string;
5305
- }))) | ({
4410
+ })) | ({
5306
4411
  __TYPE__: "FileLink";
5307
- } & ({
5308
- kind: "file";
5309
4412
  } & (({
4413
+ kind: "file";
5310
4414
  id: string;
5311
4415
  url: string;
5312
4416
  name: string;
5313
4417
  size: string;
5314
4418
  } & {
5315
4419
  date?: string | null | undefined;
4420
+ } & {
5316
4421
  text?: string;
5317
4422
  }) | {
4423
+ kind: "file";
5318
4424
  text: string;
5319
- }))) | ({
4425
+ })) | ({
5320
4426
  __TYPE__: "MediaLink";
5321
4427
  } & {
5322
4428
  kind: "media";
@@ -5326,7 +4432,6 @@ export declare const DocumentLegacy: {
5326
4432
  } & (({
5327
4433
  id: string;
5328
4434
  } & {
5329
- kind?: "document";
5330
4435
  text?: string;
5331
4436
  }) | {
5332
4437
  kind: "document";
@@ -5341,6 +4446,7 @@ export declare const DocumentLegacy: {
5341
4446
  preview?: {
5342
4447
  title?: string;
5343
4448
  } | null | undefined;
4449
+ } & {
5344
4450
  text?: string;
5345
4451
  }) | {
5346
4452
  kind: "web";
@@ -5379,9 +4485,8 @@ export declare const DocumentLegacy: {
5379
4485
  } & {
5380
4486
  linkTo?: ({
5381
4487
  __TYPE__: "ImageLink";
5382
- } & ({
4488
+ } & {
5383
4489
  kind: "image";
5384
- } & (({
5385
4490
  id: string;
5386
4491
  url: string;
5387
4492
  height: string;
@@ -5390,41 +4495,23 @@ export declare const DocumentLegacy: {
5390
4495
  name: string;
5391
4496
  } & {
5392
4497
  date?: string | null | undefined;
5393
- text?: string;
5394
- }) | {
5395
- text: string;
5396
- }))) | ({
4498
+ }) | ({
5397
4499
  __TYPE__: "FileLink";
5398
- } & ({
4500
+ } & {
5399
4501
  kind: "file";
5400
- } & (({
5401
4502
  id: string;
5402
4503
  url: string;
5403
4504
  name: string;
5404
4505
  size: string;
5405
4506
  } & {
5406
4507
  date?: string | null | undefined;
5407
- text?: string;
5408
- }) | {
5409
- text: string;
5410
- }))) | ({
5411
- __TYPE__: "MediaLink";
5412
- } & {
5413
- kind: "media";
5414
- text: string;
5415
4508
  }) | ({
5416
4509
  __TYPE__: "DocumentLink";
5417
- } & (({
5418
- id: string;
5419
4510
  } & {
5420
- kind?: "document";
5421
- text?: string;
5422
- }) | {
5423
- kind: "document";
5424
- text: string;
5425
- })) | ({
4511
+ id: string;
4512
+ }) | ({
5426
4513
  __TYPE__: "ExternalLink";
5427
- } & (({
4514
+ } & {
5428
4515
  url: string;
5429
4516
  } & {
5430
4517
  kind?: "web";
@@ -5432,14 +4519,6 @@ export declare const DocumentLegacy: {
5432
4519
  preview?: {
5433
4520
  title?: string;
5434
4521
  } | null | undefined;
5435
- text?: string;
5436
- }) | {
5437
- kind: "web";
5438
- text: string;
5439
- })) | ({
5440
- __TYPE__: "AnyLink";
5441
- } & {
5442
- text: string;
5443
4522
  }) | null | undefined;
5444
4523
  };
5445
4524
  } & {
@@ -5477,9 +4556,8 @@ export declare const DocumentLegacy: {
5477
4556
  spans?: ({
5478
4557
  data: ({
5479
4558
  __TYPE__: "ImageLink";
5480
- } & ({
4559
+ } & {
5481
4560
  kind: "image";
5482
- } & (({
5483
4561
  id: string;
5484
4562
  url: string;
5485
4563
  height: string;
@@ -5488,41 +4566,23 @@ export declare const DocumentLegacy: {
5488
4566
  name: string;
5489
4567
  } & {
5490
4568
  date?: string | null | undefined;
5491
- text?: string;
5492
- }) | {
5493
- text: string;
5494
- }))) | ({
4569
+ }) | ({
5495
4570
  __TYPE__: "FileLink";
5496
- } & ({
4571
+ } & {
5497
4572
  kind: "file";
5498
- } & (({
5499
4573
  id: string;
5500
4574
  url: string;
5501
4575
  name: string;
5502
4576
  size: string;
5503
4577
  } & {
5504
4578
  date?: string | null | undefined;
5505
- text?: string;
5506
- }) | {
5507
- text: string;
5508
- }))) | ({
5509
- __TYPE__: "MediaLink";
5510
- } & {
5511
- kind: "media";
5512
- text: string;
5513
4579
  }) | ({
5514
4580
  __TYPE__: "DocumentLink";
5515
- } & (({
5516
- id: string;
5517
4581
  } & {
5518
- kind?: "document";
5519
- text?: string;
5520
- }) | {
5521
- kind: "document";
5522
- text: string;
5523
- })) | ({
4582
+ id: string;
4583
+ }) | ({
5524
4584
  __TYPE__: "ExternalLink";
5525
- } & (({
4585
+ } & {
5526
4586
  url: string;
5527
4587
  } & {
5528
4588
  kind?: "web";
@@ -5530,14 +4590,6 @@ export declare const DocumentLegacy: {
5530
4590
  preview?: {
5531
4591
  title?: string;
5532
4592
  } | null | undefined;
5533
- text?: string;
5534
- }) | {
5535
- kind: "web";
5536
- text: string;
5537
- })) | ({
5538
- __TYPE__: "AnyLink";
5539
- } & {
5540
- text: string;
5541
4593
  });
5542
4594
  start: number;
5543
4595
  end: number;
@@ -5715,9 +4767,8 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5715
4767
  __TYPE__: "LinkContent";
5716
4768
  value: ({
5717
4769
  __TYPE__: "ImageLink";
5718
- } & ({
5719
- kind: "image";
5720
4770
  } & (({
4771
+ kind: "image";
5721
4772
  id: string;
5722
4773
  url: string;
5723
4774
  height: string;
@@ -5726,24 +4777,27 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5726
4777
  name: string;
5727
4778
  } & {
5728
4779
  date?: string | null | undefined;
4780
+ } & {
5729
4781
  text?: string;
5730
4782
  }) | {
4783
+ kind: "image";
5731
4784
  text: string;
5732
- }))) | ({
4785
+ })) | ({
5733
4786
  __TYPE__: "FileLink";
5734
- } & ({
5735
- kind: "file";
5736
4787
  } & (({
4788
+ kind: "file";
5737
4789
  id: string;
5738
4790
  url: string;
5739
4791
  name: string;
5740
4792
  size: string;
5741
4793
  } & {
5742
4794
  date?: string | null | undefined;
4795
+ } & {
5743
4796
  text?: string;
5744
4797
  }) | {
4798
+ kind: "file";
5745
4799
  text: string;
5746
- }))) | ({
4800
+ })) | ({
5747
4801
  __TYPE__: "MediaLink";
5748
4802
  } & {
5749
4803
  kind: "media";
@@ -5753,7 +4807,6 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5753
4807
  } & (({
5754
4808
  id: string;
5755
4809
  } & {
5756
- kind?: "document";
5757
4810
  text?: string;
5758
4811
  }) | {
5759
4812
  kind: "document";
@@ -5768,6 +4821,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5768
4821
  preview?: {
5769
4822
  title?: string;
5770
4823
  } | null | undefined;
4824
+ } & {
5771
4825
  text?: string;
5772
4826
  }) | {
5773
4827
  kind: "web";
@@ -5806,9 +4860,8 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5806
4860
  } & {
5807
4861
  linkTo?: ({
5808
4862
  __TYPE__: "ImageLink";
5809
- } & ({
4863
+ } & {
5810
4864
  kind: "image";
5811
- } & (({
5812
4865
  id: string;
5813
4866
  url: string;
5814
4867
  height: string;
@@ -5817,56 +4870,30 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5817
4870
  name: string;
5818
4871
  } & {
5819
4872
  date?: string | null | undefined;
5820
- text?: string;
5821
- }) | {
5822
- text: string;
5823
- }))) | ({
4873
+ }) | ({
5824
4874
  __TYPE__: "FileLink";
5825
- } & ({
4875
+ } & {
5826
4876
  kind: "file";
5827
- } & (({
5828
4877
  id: string;
5829
4878
  url: string;
5830
4879
  name: string;
5831
4880
  size: string;
5832
4881
  } & {
5833
4882
  date?: string | null | undefined;
5834
- text?: string;
5835
- }) | {
5836
- text: string;
5837
- }))) | ({
5838
- __TYPE__: "MediaLink";
5839
- } & {
5840
- kind: "media";
5841
- text: string;
5842
4883
  }) | ({
5843
4884
  __TYPE__: "DocumentLink";
5844
- } & (({
5845
- id: string;
5846
4885
  } & {
5847
- kind?: "document";
5848
- text?: string;
5849
- }) | {
5850
- kind: "document";
5851
- text: string;
5852
- })) | ({
4886
+ id: string;
4887
+ }) | ({
5853
4888
  __TYPE__: "ExternalLink";
5854
- } & (({
4889
+ } & {
5855
4890
  url: string;
5856
4891
  } & {
5857
4892
  kind?: "web";
5858
4893
  target?: string | null | undefined;
5859
- preview?: {
5860
- title?: string;
5861
- } | null | undefined;
5862
- text?: string;
5863
- }) | {
5864
- kind: "web";
5865
- text: string;
5866
- })) | ({
5867
- __TYPE__: "AnyLink";
5868
- } & {
5869
- text: string;
4894
+ preview?: {
4895
+ title?: string;
4896
+ } | null | undefined;
5870
4897
  }) | null | undefined;
5871
4898
  };
5872
4899
  } & {
@@ -5904,9 +4931,8 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5904
4931
  spans?: ({
5905
4932
  data: ({
5906
4933
  __TYPE__: "ImageLink";
5907
- } & ({
4934
+ } & {
5908
4935
  kind: "image";
5909
- } & (({
5910
4936
  id: string;
5911
4937
  url: string;
5912
4938
  height: string;
@@ -5915,41 +4941,23 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5915
4941
  name: string;
5916
4942
  } & {
5917
4943
  date?: string | null | undefined;
5918
- text?: string;
5919
- }) | {
5920
- text: string;
5921
- }))) | ({
4944
+ }) | ({
5922
4945
  __TYPE__: "FileLink";
5923
- } & ({
4946
+ } & {
5924
4947
  kind: "file";
5925
- } & (({
5926
4948
  id: string;
5927
4949
  url: string;
5928
4950
  name: string;
5929
4951
  size: string;
5930
4952
  } & {
5931
4953
  date?: string | null | undefined;
5932
- text?: string;
5933
- }) | {
5934
- text: string;
5935
- }))) | ({
5936
- __TYPE__: "MediaLink";
5937
- } & {
5938
- kind: "media";
5939
- text: string;
5940
4954
  }) | ({
5941
4955
  __TYPE__: "DocumentLink";
5942
- } & (({
5943
- id: string;
5944
4956
  } & {
5945
- kind?: "document";
5946
- text?: string;
5947
- }) | {
5948
- kind: "document";
5949
- text: string;
5950
- })) | ({
4957
+ id: string;
4958
+ }) | ({
5951
4959
  __TYPE__: "ExternalLink";
5952
- } & (({
4960
+ } & {
5953
4961
  url: string;
5954
4962
  } & {
5955
4963
  kind?: "web";
@@ -5957,14 +4965,6 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5957
4965
  preview?: {
5958
4966
  title?: string;
5959
4967
  } | null | undefined;
5960
- text?: string;
5961
- }) | {
5962
- kind: "web";
5963
- text: string;
5964
- })) | ({
5965
- __TYPE__: "AnyLink";
5966
- } & {
5967
- text: string;
5968
4968
  });
5969
4969
  start: number;
5970
4970
  end: number;
@@ -6111,9 +5111,8 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6111
5111
  __TYPE__: "LinkContent";
6112
5112
  value: ({
6113
5113
  __TYPE__: "ImageLink";
6114
- } & ({
6115
- kind: "image";
6116
5114
  } & (({
5115
+ kind: "image";
6117
5116
  id: string;
6118
5117
  url: string;
6119
5118
  height: string;
@@ -6122,24 +5121,27 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6122
5121
  name: string;
6123
5122
  } & {
6124
5123
  date?: string | null | undefined;
5124
+ } & {
6125
5125
  text?: string;
6126
5126
  }) | {
5127
+ kind: "image";
6127
5128
  text: string;
6128
- }))) | ({
5129
+ })) | ({
6129
5130
  __TYPE__: "FileLink";
6130
- } & ({
6131
- kind: "file";
6132
5131
  } & (({
5132
+ kind: "file";
6133
5133
  id: string;
6134
5134
  url: string;
6135
5135
  name: string;
6136
5136
  size: string;
6137
5137
  } & {
6138
5138
  date?: string | null | undefined;
5139
+ } & {
6139
5140
  text?: string;
6140
5141
  }) | {
5142
+ kind: "file";
6141
5143
  text: string;
6142
- }))) | ({
5144
+ })) | ({
6143
5145
  __TYPE__: "MediaLink";
6144
5146
  } & {
6145
5147
  kind: "media";
@@ -6149,7 +5151,6 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6149
5151
  } & (({
6150
5152
  id: string;
6151
5153
  } & {
6152
- kind?: "document";
6153
5154
  text?: string;
6154
5155
  }) | {
6155
5156
  kind: "document";
@@ -6164,6 +5165,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6164
5165
  preview?: {
6165
5166
  title?: string;
6166
5167
  } | null | undefined;
5168
+ } & {
6167
5169
  text?: string;
6168
5170
  }) | {
6169
5171
  kind: "web";
@@ -6202,9 +5204,8 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6202
5204
  } & {
6203
5205
  linkTo?: ({
6204
5206
  __TYPE__: "ImageLink";
6205
- } & ({
5207
+ } & {
6206
5208
  kind: "image";
6207
- } & (({
6208
5209
  id: string;
6209
5210
  url: string;
6210
5211
  height: string;
@@ -6213,41 +5214,23 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6213
5214
  name: string;
6214
5215
  } & {
6215
5216
  date?: string | null | undefined;
6216
- text?: string;
6217
- }) | {
6218
- text: string;
6219
- }))) | ({
5217
+ }) | ({
6220
5218
  __TYPE__: "FileLink";
6221
- } & ({
5219
+ } & {
6222
5220
  kind: "file";
6223
- } & (({
6224
5221
  id: string;
6225
5222
  url: string;
6226
5223
  name: string;
6227
5224
  size: string;
6228
5225
  } & {
6229
5226
  date?: string | null | undefined;
6230
- text?: string;
6231
- }) | {
6232
- text: string;
6233
- }))) | ({
6234
- __TYPE__: "MediaLink";
6235
- } & {
6236
- kind: "media";
6237
- text: string;
6238
5227
  }) | ({
6239
5228
  __TYPE__: "DocumentLink";
6240
- } & (({
6241
- id: string;
6242
5229
  } & {
6243
- kind?: "document";
6244
- text?: string;
6245
- }) | {
6246
- kind: "document";
6247
- text: string;
6248
- })) | ({
5230
+ id: string;
5231
+ }) | ({
6249
5232
  __TYPE__: "ExternalLink";
6250
- } & (({
5233
+ } & {
6251
5234
  url: string;
6252
5235
  } & {
6253
5236
  kind?: "web";
@@ -6255,14 +5238,6 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6255
5238
  preview?: {
6256
5239
  title?: string;
6257
5240
  } | null | undefined;
6258
- text?: string;
6259
- }) | {
6260
- kind: "web";
6261
- text: string;
6262
- })) | ({
6263
- __TYPE__: "AnyLink";
6264
- } & {
6265
- text: string;
6266
5241
  }) | null | undefined;
6267
5242
  };
6268
5243
  } & {
@@ -6300,9 +5275,8 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6300
5275
  spans?: ({
6301
5276
  data: ({
6302
5277
  __TYPE__: "ImageLink";
6303
- } & ({
5278
+ } & {
6304
5279
  kind: "image";
6305
- } & (({
6306
5280
  id: string;
6307
5281
  url: string;
6308
5282
  height: string;
@@ -6311,41 +5285,23 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6311
5285
  name: string;
6312
5286
  } & {
6313
5287
  date?: string | null | undefined;
6314
- text?: string;
6315
- }) | {
6316
- text: string;
6317
- }))) | ({
5288
+ }) | ({
6318
5289
  __TYPE__: "FileLink";
6319
- } & ({
5290
+ } & {
6320
5291
  kind: "file";
6321
- } & (({
6322
5292
  id: string;
6323
5293
  url: string;
6324
5294
  name: string;
6325
5295
  size: string;
6326
5296
  } & {
6327
5297
  date?: string | null | undefined;
6328
- text?: string;
6329
- }) | {
6330
- text: string;
6331
- }))) | ({
6332
- __TYPE__: "MediaLink";
6333
- } & {
6334
- kind: "media";
6335
- text: string;
6336
5298
  }) | ({
6337
5299
  __TYPE__: "DocumentLink";
6338
- } & (({
6339
- id: string;
6340
5300
  } & {
6341
- kind?: "document";
6342
- text?: string;
6343
- }) | {
6344
- kind: "document";
6345
- text: string;
6346
- })) | ({
5301
+ id: string;
5302
+ }) | ({
6347
5303
  __TYPE__: "ExternalLink";
6348
- } & (({
5304
+ } & {
6349
5305
  url: string;
6350
5306
  } & {
6351
5307
  kind?: "web";
@@ -6353,14 +5309,6 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6353
5309
  preview?: {
6354
5310
  title?: string;
6355
5311
  } | null | undefined;
6356
- text?: string;
6357
- }) | {
6358
- kind: "web";
6359
- text: string;
6360
- })) | ({
6361
- __TYPE__: "AnyLink";
6362
- } & {
6363
- text: string;
6364
5312
  });
6365
5313
  start: number;
6366
5314
  end: number;
@@ -6501,9 +5449,8 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6501
5449
  __TYPE__: "LinkContent";
6502
5450
  value: ({
6503
5451
  __TYPE__: "ImageLink";
6504
- } & ({
6505
- kind: "image";
6506
5452
  } & (({
5453
+ kind: "image";
6507
5454
  id: string;
6508
5455
  url: string;
6509
5456
  height: string;
@@ -6512,24 +5459,27 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6512
5459
  name: string;
6513
5460
  } & {
6514
5461
  date?: string | null | undefined;
5462
+ } & {
6515
5463
  text?: string;
6516
5464
  }) | {
5465
+ kind: "image";
6517
5466
  text: string;
6518
- }))) | ({
5467
+ })) | ({
6519
5468
  __TYPE__: "FileLink";
6520
- } & ({
6521
- kind: "file";
6522
5469
  } & (({
5470
+ kind: "file";
6523
5471
  id: string;
6524
5472
  url: string;
6525
5473
  name: string;
6526
5474
  size: string;
6527
5475
  } & {
6528
5476
  date?: string | null | undefined;
5477
+ } & {
6529
5478
  text?: string;
6530
5479
  }) | {
5480
+ kind: "file";
6531
5481
  text: string;
6532
- }))) | ({
5482
+ })) | ({
6533
5483
  __TYPE__: "MediaLink";
6534
5484
  } & {
6535
5485
  kind: "media";
@@ -6539,7 +5489,6 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6539
5489
  } & (({
6540
5490
  id: string;
6541
5491
  } & {
6542
- kind?: "document";
6543
5492
  text?: string;
6544
5493
  }) | {
6545
5494
  kind: "document";
@@ -6554,6 +5503,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6554
5503
  preview?: {
6555
5504
  title?: string;
6556
5505
  } | null | undefined;
5506
+ } & {
6557
5507
  text?: string;
6558
5508
  }) | {
6559
5509
  kind: "web";
@@ -6592,9 +5542,8 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6592
5542
  } & {
6593
5543
  linkTo?: ({
6594
5544
  __TYPE__: "ImageLink";
6595
- } & ({
5545
+ } & {
6596
5546
  kind: "image";
6597
- } & (({
6598
5547
  id: string;
6599
5548
  url: string;
6600
5549
  height: string;
@@ -6603,41 +5552,23 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6603
5552
  name: string;
6604
5553
  } & {
6605
5554
  date?: string | null | undefined;
6606
- text?: string;
6607
- }) | {
6608
- text: string;
6609
- }))) | ({
5555
+ }) | ({
6610
5556
  __TYPE__: "FileLink";
6611
- } & ({
5557
+ } & {
6612
5558
  kind: "file";
6613
- } & (({
6614
5559
  id: string;
6615
5560
  url: string;
6616
5561
  name: string;
6617
5562
  size: string;
6618
5563
  } & {
6619
5564
  date?: string | null | undefined;
6620
- text?: string;
6621
- }) | {
6622
- text: string;
6623
- }))) | ({
6624
- __TYPE__: "MediaLink";
6625
- } & {
6626
- kind: "media";
6627
- text: string;
6628
5565
  }) | ({
6629
5566
  __TYPE__: "DocumentLink";
6630
- } & (({
6631
- id: string;
6632
5567
  } & {
6633
- kind?: "document";
6634
- text?: string;
6635
- }) | {
6636
- kind: "document";
6637
- text: string;
6638
- })) | ({
5568
+ id: string;
5569
+ }) | ({
6639
5570
  __TYPE__: "ExternalLink";
6640
- } & (({
5571
+ } & {
6641
5572
  url: string;
6642
5573
  } & {
6643
5574
  kind?: "web";
@@ -6645,14 +5576,6 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6645
5576
  preview?: {
6646
5577
  title?: string;
6647
5578
  } | null | undefined;
6648
- text?: string;
6649
- }) | {
6650
- kind: "web";
6651
- text: string;
6652
- })) | ({
6653
- __TYPE__: "AnyLink";
6654
- } & {
6655
- text: string;
6656
5579
  }) | null | undefined;
6657
5580
  };
6658
5581
  } & {
@@ -6690,9 +5613,8 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6690
5613
  spans?: ({
6691
5614
  data: ({
6692
5615
  __TYPE__: "ImageLink";
6693
- } & ({
5616
+ } & {
6694
5617
  kind: "image";
6695
- } & (({
6696
5618
  id: string;
6697
5619
  url: string;
6698
5620
  height: string;
@@ -6701,41 +5623,23 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6701
5623
  name: string;
6702
5624
  } & {
6703
5625
  date?: string | null | undefined;
6704
- text?: string;
6705
- }) | {
6706
- text: string;
6707
- }))) | ({
5626
+ }) | ({
6708
5627
  __TYPE__: "FileLink";
6709
- } & ({
5628
+ } & {
6710
5629
  kind: "file";
6711
- } & (({
6712
5630
  id: string;
6713
5631
  url: string;
6714
5632
  name: string;
6715
5633
  size: string;
6716
5634
  } & {
6717
5635
  date?: string | null | undefined;
6718
- text?: string;
6719
- }) | {
6720
- text: string;
6721
- }))) | ({
6722
- __TYPE__: "MediaLink";
6723
- } & {
6724
- kind: "media";
6725
- text: string;
6726
5636
  }) | ({
6727
5637
  __TYPE__: "DocumentLink";
6728
- } & (({
6729
- id: string;
6730
5638
  } & {
6731
- kind?: "document";
6732
- text?: string;
6733
- }) | {
6734
- kind: "document";
6735
- text: string;
6736
- })) | ({
5639
+ id: string;
5640
+ }) | ({
6737
5641
  __TYPE__: "ExternalLink";
6738
- } & (({
5642
+ } & {
6739
5643
  url: string;
6740
5644
  } & {
6741
5645
  kind?: "web";
@@ -6743,14 +5647,6 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6743
5647
  preview?: {
6744
5648
  title?: string;
6745
5649
  } | null | undefined;
6746
- text?: string;
6747
- }) | {
6748
- kind: "web";
6749
- text: string;
6750
- })) | ({
6751
- __TYPE__: "AnyLink";
6752
- } & {
6753
- text: string;
6754
5650
  });
6755
5651
  start: number;
6756
5652
  end: number;
@@ -6892,9 +5788,8 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6892
5788
  __TYPE__: "LinkContent";
6893
5789
  value: ({
6894
5790
  __TYPE__: "ImageLink";
6895
- } & ({
6896
- kind: "image";
6897
5791
  } & (({
5792
+ kind: "image";
6898
5793
  id: string;
6899
5794
  url: string;
6900
5795
  height: string;
@@ -6903,24 +5798,27 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6903
5798
  name: string;
6904
5799
  } & {
6905
5800
  date?: string | null | undefined;
5801
+ } & {
6906
5802
  text?: string;
6907
5803
  }) | {
5804
+ kind: "image";
6908
5805
  text: string;
6909
- }))) | ({
5806
+ })) | ({
6910
5807
  __TYPE__: "FileLink";
6911
- } & ({
6912
- kind: "file";
6913
5808
  } & (({
5809
+ kind: "file";
6914
5810
  id: string;
6915
5811
  url: string;
6916
5812
  name: string;
6917
5813
  size: string;
6918
5814
  } & {
6919
5815
  date?: string | null | undefined;
5816
+ } & {
6920
5817
  text?: string;
6921
5818
  }) | {
5819
+ kind: "file";
6922
5820
  text: string;
6923
- }))) | ({
5821
+ })) | ({
6924
5822
  __TYPE__: "MediaLink";
6925
5823
  } & {
6926
5824
  kind: "media";
@@ -6930,7 +5828,6 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6930
5828
  } & (({
6931
5829
  id: string;
6932
5830
  } & {
6933
- kind?: "document";
6934
5831
  text?: string;
6935
5832
  }) | {
6936
5833
  kind: "document";
@@ -6945,6 +5842,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6945
5842
  preview?: {
6946
5843
  title?: string;
6947
5844
  } | null | undefined;
5845
+ } & {
6948
5846
  text?: string;
6949
5847
  }) | {
6950
5848
  kind: "web";
@@ -6983,9 +5881,8 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6983
5881
  } & {
6984
5882
  linkTo?: ({
6985
5883
  __TYPE__: "ImageLink";
6986
- } & ({
5884
+ } & {
6987
5885
  kind: "image";
6988
- } & (({
6989
5886
  id: string;
6990
5887
  url: string;
6991
5888
  height: string;
@@ -6994,41 +5891,23 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6994
5891
  name: string;
6995
5892
  } & {
6996
5893
  date?: string | null | undefined;
6997
- text?: string;
6998
- }) | {
6999
- text: string;
7000
- }))) | ({
5894
+ }) | ({
7001
5895
  __TYPE__: "FileLink";
7002
- } & ({
5896
+ } & {
7003
5897
  kind: "file";
7004
- } & (({
7005
5898
  id: string;
7006
5899
  url: string;
7007
5900
  name: string;
7008
5901
  size: string;
7009
5902
  } & {
7010
5903
  date?: string | null | undefined;
7011
- text?: string;
7012
- }) | {
7013
- text: string;
7014
- }))) | ({
7015
- __TYPE__: "MediaLink";
7016
- } & {
7017
- kind: "media";
7018
- text: string;
7019
5904
  }) | ({
7020
5905
  __TYPE__: "DocumentLink";
7021
- } & (({
7022
- id: string;
7023
5906
  } & {
7024
- kind?: "document";
7025
- text?: string;
7026
- }) | {
7027
- kind: "document";
7028
- text: string;
7029
- })) | ({
5907
+ id: string;
5908
+ }) | ({
7030
5909
  __TYPE__: "ExternalLink";
7031
- } & (({
5910
+ } & {
7032
5911
  url: string;
7033
5912
  } & {
7034
5913
  kind?: "web";
@@ -7036,14 +5915,6 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7036
5915
  preview?: {
7037
5916
  title?: string;
7038
5917
  } | null | undefined;
7039
- text?: string;
7040
- }) | {
7041
- kind: "web";
7042
- text: string;
7043
- })) | ({
7044
- __TYPE__: "AnyLink";
7045
- } & {
7046
- text: string;
7047
5918
  }) | null | undefined;
7048
5919
  };
7049
5920
  } & {
@@ -7081,9 +5952,8 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7081
5952
  spans?: ({
7082
5953
  data: ({
7083
5954
  __TYPE__: "ImageLink";
7084
- } & ({
5955
+ } & {
7085
5956
  kind: "image";
7086
- } & (({
7087
5957
  id: string;
7088
5958
  url: string;
7089
5959
  height: string;
@@ -7092,41 +5962,23 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7092
5962
  name: string;
7093
5963
  } & {
7094
5964
  date?: string | null | undefined;
7095
- text?: string;
7096
- }) | {
7097
- text: string;
7098
- }))) | ({
5965
+ }) | ({
7099
5966
  __TYPE__: "FileLink";
7100
- } & ({
5967
+ } & {
7101
5968
  kind: "file";
7102
- } & (({
7103
5969
  id: string;
7104
5970
  url: string;
7105
5971
  name: string;
7106
5972
  size: string;
7107
5973
  } & {
7108
5974
  date?: string | null | undefined;
7109
- text?: string;
7110
- }) | {
7111
- text: string;
7112
- }))) | ({
7113
- __TYPE__: "MediaLink";
7114
- } & {
7115
- kind: "media";
7116
- text: string;
7117
5975
  }) | ({
7118
5976
  __TYPE__: "DocumentLink";
7119
- } & (({
7120
- id: string;
7121
5977
  } & {
7122
- kind?: "document";
7123
- text?: string;
7124
- }) | {
7125
- kind: "document";
7126
- text: string;
7127
- })) | ({
5978
+ id: string;
5979
+ }) | ({
7128
5980
  __TYPE__: "ExternalLink";
7129
- } & (({
5981
+ } & {
7130
5982
  url: string;
7131
5983
  } & {
7132
5984
  kind?: "web";
@@ -7134,14 +5986,6 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7134
5986
  preview?: {
7135
5987
  title?: string;
7136
5988
  } | null | undefined;
7137
- text?: string;
7138
- }) | {
7139
- kind: "web";
7140
- text: string;
7141
- })) | ({
7142
- __TYPE__: "AnyLink";
7143
- } & {
7144
- text: string;
7145
5989
  });
7146
5990
  start: number;
7147
5991
  end: number;
@@ -7285,9 +6129,8 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7285
6129
  __TYPE__: "LinkContent";
7286
6130
  value: ({
7287
6131
  __TYPE__: "ImageLink";
7288
- } & ({
7289
- kind: "image";
7290
6132
  } & (({
6133
+ kind: "image";
7291
6134
  id: string;
7292
6135
  url: string;
7293
6136
  height: string;
@@ -7296,24 +6139,27 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7296
6139
  name: string;
7297
6140
  } & {
7298
6141
  date?: string | null | undefined;
6142
+ } & {
7299
6143
  text?: string;
7300
6144
  }) | {
6145
+ kind: "image";
7301
6146
  text: string;
7302
- }))) | ({
6147
+ })) | ({
7303
6148
  __TYPE__: "FileLink";
7304
- } & ({
7305
- kind: "file";
7306
6149
  } & (({
6150
+ kind: "file";
7307
6151
  id: string;
7308
6152
  url: string;
7309
6153
  name: string;
7310
6154
  size: string;
7311
6155
  } & {
7312
6156
  date?: string | null | undefined;
6157
+ } & {
7313
6158
  text?: string;
7314
6159
  }) | {
6160
+ kind: "file";
7315
6161
  text: string;
7316
- }))) | ({
6162
+ })) | ({
7317
6163
  __TYPE__: "MediaLink";
7318
6164
  } & {
7319
6165
  kind: "media";
@@ -7323,7 +6169,6 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7323
6169
  } & (({
7324
6170
  id: string;
7325
6171
  } & {
7326
- kind?: "document";
7327
6172
  text?: string;
7328
6173
  }) | {
7329
6174
  kind: "document";
@@ -7338,6 +6183,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7338
6183
  preview?: {
7339
6184
  title?: string;
7340
6185
  } | null | undefined;
6186
+ } & {
7341
6187
  text?: string;
7342
6188
  }) | {
7343
6189
  kind: "web";
@@ -7376,9 +6222,8 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7376
6222
  } & {
7377
6223
  linkTo?: ({
7378
6224
  __TYPE__: "ImageLink";
7379
- } & ({
6225
+ } & {
7380
6226
  kind: "image";
7381
- } & (({
7382
6227
  id: string;
7383
6228
  url: string;
7384
6229
  height: string;
@@ -7387,41 +6232,23 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7387
6232
  name: string;
7388
6233
  } & {
7389
6234
  date?: string | null | undefined;
7390
- text?: string;
7391
- }) | {
7392
- text: string;
7393
- }))) | ({
6235
+ }) | ({
7394
6236
  __TYPE__: "FileLink";
7395
- } & ({
6237
+ } & {
7396
6238
  kind: "file";
7397
- } & (({
7398
6239
  id: string;
7399
6240
  url: string;
7400
6241
  name: string;
7401
6242
  size: string;
7402
6243
  } & {
7403
6244
  date?: string | null | undefined;
7404
- text?: string;
7405
- }) | {
7406
- text: string;
7407
- }))) | ({
7408
- __TYPE__: "MediaLink";
7409
- } & {
7410
- kind: "media";
7411
- text: string;
7412
6245
  }) | ({
7413
6246
  __TYPE__: "DocumentLink";
7414
- } & (({
7415
- id: string;
7416
6247
  } & {
7417
- kind?: "document";
7418
- text?: string;
7419
- }) | {
7420
- kind: "document";
7421
- text: string;
7422
- })) | ({
6248
+ id: string;
6249
+ }) | ({
7423
6250
  __TYPE__: "ExternalLink";
7424
- } & (({
6251
+ } & {
7425
6252
  url: string;
7426
6253
  } & {
7427
6254
  kind?: "web";
@@ -7429,14 +6256,6 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7429
6256
  preview?: {
7430
6257
  title?: string;
7431
6258
  } | null | undefined;
7432
- text?: string;
7433
- }) | {
7434
- kind: "web";
7435
- text: string;
7436
- })) | ({
7437
- __TYPE__: "AnyLink";
7438
- } & {
7439
- text: string;
7440
6259
  }) | null | undefined;
7441
6260
  };
7442
6261
  } & {
@@ -7474,9 +6293,8 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7474
6293
  spans?: ({
7475
6294
  data: ({
7476
6295
  __TYPE__: "ImageLink";
7477
- } & ({
6296
+ } & {
7478
6297
  kind: "image";
7479
- } & (({
7480
6298
  id: string;
7481
6299
  url: string;
7482
6300
  height: string;
@@ -7485,41 +6303,23 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7485
6303
  name: string;
7486
6304
  } & {
7487
6305
  date?: string | null | undefined;
7488
- text?: string;
7489
- }) | {
7490
- text: string;
7491
- }))) | ({
6306
+ }) | ({
7492
6307
  __TYPE__: "FileLink";
7493
- } & ({
6308
+ } & {
7494
6309
  kind: "file";
7495
- } & (({
7496
6310
  id: string;
7497
6311
  url: string;
7498
6312
  name: string;
7499
6313
  size: string;
7500
6314
  } & {
7501
6315
  date?: string | null | undefined;
7502
- text?: string;
7503
- }) | {
7504
- text: string;
7505
- }))) | ({
7506
- __TYPE__: "MediaLink";
7507
- } & {
7508
- kind: "media";
7509
- text: string;
7510
6316
  }) | ({
7511
6317
  __TYPE__: "DocumentLink";
7512
- } & (({
7513
- id: string;
7514
6318
  } & {
7515
- kind?: "document";
7516
- text?: string;
7517
- }) | {
7518
- kind: "document";
7519
- text: string;
7520
- })) | ({
6319
+ id: string;
6320
+ }) | ({
7521
6321
  __TYPE__: "ExternalLink";
7522
- } & (({
6322
+ } & {
7523
6323
  url: string;
7524
6324
  } & {
7525
6325
  kind?: "web";
@@ -7527,14 +6327,6 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7527
6327
  preview?: {
7528
6328
  title?: string;
7529
6329
  } | null | undefined;
7530
- text?: string;
7531
- }) | {
7532
- kind: "web";
7533
- text: string;
7534
- })) | ({
7535
- __TYPE__: "AnyLink";
7536
- } & {
7537
- text: string;
7538
6330
  });
7539
6331
  start: number;
7540
6332
  end: number;
@@ -7676,9 +6468,8 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7676
6468
  __TYPE__: "LinkContent";
7677
6469
  value: ({
7678
6470
  __TYPE__: "ImageLink";
7679
- } & ({
7680
- kind: "image";
7681
6471
  } & (({
6472
+ kind: "image";
7682
6473
  id: string;
7683
6474
  url: string;
7684
6475
  height: string;
@@ -7687,24 +6478,27 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7687
6478
  name: string;
7688
6479
  } & {
7689
6480
  date?: string | null | undefined;
6481
+ } & {
7690
6482
  text?: string;
7691
6483
  }) | {
6484
+ kind: "image";
7692
6485
  text: string;
7693
- }))) | ({
6486
+ })) | ({
7694
6487
  __TYPE__: "FileLink";
7695
- } & ({
7696
- kind: "file";
7697
6488
  } & (({
6489
+ kind: "file";
7698
6490
  id: string;
7699
6491
  url: string;
7700
6492
  name: string;
7701
6493
  size: string;
7702
6494
  } & {
7703
6495
  date?: string | null | undefined;
6496
+ } & {
7704
6497
  text?: string;
7705
6498
  }) | {
6499
+ kind: "file";
7706
6500
  text: string;
7707
- }))) | ({
6501
+ })) | ({
7708
6502
  __TYPE__: "MediaLink";
7709
6503
  } & {
7710
6504
  kind: "media";
@@ -7714,7 +6508,6 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7714
6508
  } & (({
7715
6509
  id: string;
7716
6510
  } & {
7717
- kind?: "document";
7718
6511
  text?: string;
7719
6512
  }) | {
7720
6513
  kind: "document";
@@ -7729,6 +6522,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7729
6522
  preview?: {
7730
6523
  title?: string;
7731
6524
  } | null | undefined;
6525
+ } & {
7732
6526
  text?: string;
7733
6527
  }) | {
7734
6528
  kind: "web";
@@ -7767,9 +6561,8 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7767
6561
  } & {
7768
6562
  linkTo?: ({
7769
6563
  __TYPE__: "ImageLink";
7770
- } & ({
6564
+ } & {
7771
6565
  kind: "image";
7772
- } & (({
7773
6566
  id: string;
7774
6567
  url: string;
7775
6568
  height: string;
@@ -7778,41 +6571,23 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7778
6571
  name: string;
7779
6572
  } & {
7780
6573
  date?: string | null | undefined;
7781
- text?: string;
7782
- }) | {
7783
- text: string;
7784
- }))) | ({
6574
+ }) | ({
7785
6575
  __TYPE__: "FileLink";
7786
- } & ({
6576
+ } & {
7787
6577
  kind: "file";
7788
- } & (({
7789
6578
  id: string;
7790
6579
  url: string;
7791
6580
  name: string;
7792
6581
  size: string;
7793
6582
  } & {
7794
6583
  date?: string | null | undefined;
7795
- text?: string;
7796
- }) | {
7797
- text: string;
7798
- }))) | ({
7799
- __TYPE__: "MediaLink";
7800
- } & {
7801
- kind: "media";
7802
- text: string;
7803
6584
  }) | ({
7804
6585
  __TYPE__: "DocumentLink";
7805
- } & (({
7806
- id: string;
7807
6586
  } & {
7808
- kind?: "document";
7809
- text?: string;
7810
- }) | {
7811
- kind: "document";
7812
- text: string;
7813
- })) | ({
6587
+ id: string;
6588
+ }) | ({
7814
6589
  __TYPE__: "ExternalLink";
7815
- } & (({
6590
+ } & {
7816
6591
  url: string;
7817
6592
  } & {
7818
6593
  kind?: "web";
@@ -7820,14 +6595,6 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7820
6595
  preview?: {
7821
6596
  title?: string;
7822
6597
  } | null | undefined;
7823
- text?: string;
7824
- }) | {
7825
- kind: "web";
7826
- text: string;
7827
- })) | ({
7828
- __TYPE__: "AnyLink";
7829
- } & {
7830
- text: string;
7831
6598
  }) | null | undefined;
7832
6599
  };
7833
6600
  } & {
@@ -7865,9 +6632,8 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7865
6632
  spans?: ({
7866
6633
  data: ({
7867
6634
  __TYPE__: "ImageLink";
7868
- } & ({
6635
+ } & {
7869
6636
  kind: "image";
7870
- } & (({
7871
6637
  id: string;
7872
6638
  url: string;
7873
6639
  height: string;
@@ -7876,41 +6642,23 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7876
6642
  name: string;
7877
6643
  } & {
7878
6644
  date?: string | null | undefined;
7879
- text?: string;
7880
- }) | {
7881
- text: string;
7882
- }))) | ({
6645
+ }) | ({
7883
6646
  __TYPE__: "FileLink";
7884
- } & ({
6647
+ } & {
7885
6648
  kind: "file";
7886
- } & (({
7887
6649
  id: string;
7888
6650
  url: string;
7889
6651
  name: string;
7890
6652
  size: string;
7891
6653
  } & {
7892
6654
  date?: string | null | undefined;
7893
- text?: string;
7894
- }) | {
7895
- text: string;
7896
- }))) | ({
7897
- __TYPE__: "MediaLink";
7898
- } & {
7899
- kind: "media";
7900
- text: string;
7901
6655
  }) | ({
7902
6656
  __TYPE__: "DocumentLink";
7903
- } & (({
7904
- id: string;
7905
6657
  } & {
7906
- kind?: "document";
7907
- text?: string;
7908
- }) | {
7909
- kind: "document";
7910
- text: string;
7911
- })) | ({
6658
+ id: string;
6659
+ }) | ({
7912
6660
  __TYPE__: "ExternalLink";
7913
- } & (({
6661
+ } & {
7914
6662
  url: string;
7915
6663
  } & {
7916
6664
  kind?: "web";
@@ -7918,14 +6666,6 @@ export declare function migrateDocument(document: Document, customType: StaticCu
7918
6666
  preview?: {
7919
6667
  title?: string;
7920
6668
  } | null | undefined;
7921
- text?: string;
7922
- }) | {
7923
- kind: "web";
7924
- text: string;
7925
- })) | ({
7926
- __TYPE__: "AnyLink";
7927
- } & {
7928
- text: string;
7929
6669
  });
7930
6670
  start: number;
7931
6671
  end: number;