@prismicio/types-internal 2.7.0 → 2.9.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/lib/_internal/utils.d.ts +3 -2
  2. package/lib/content/Document.d.ts +1457 -149
  3. package/lib/content/LegacyContentCtx.d.ts +15 -0
  4. package/lib/content/fields/RepeatableContent.d.ts +236 -0
  5. package/lib/content/fields/RepeatableContent.js +97 -0
  6. package/lib/content/fields/WidgetContent.d.ts +1465 -157
  7. package/lib/content/fields/nestable/LinkContent.d.ts +55 -32
  8. package/lib/content/fields/nestable/LinkContent.js +25 -10
  9. package/lib/content/fields/nestable/NestableContent.d.ts +242 -24
  10. package/lib/content/fields/nestable/NestableContent.js +21 -2
  11. package/lib/content/fields/nestable/RichTextContent/Blocks.d.ts +106 -106
  12. package/lib/content/fields/nestable/RichTextContent/index.d.ts +20 -20
  13. package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +482 -46
  14. package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +84 -10
  15. package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +484 -48
  16. package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +242 -24
  17. package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +243 -25
  18. package/lib/content/fields/slices/Slice/index.d.ts +815 -85
  19. package/lib/content/fields/slices/SliceItem.d.ts +814 -84
  20. package/lib/content/fields/slices/SlicesContent.d.ts +1222 -132
  21. package/lib/customtypes/CustomType.d.ts +18 -0
  22. package/lib/customtypes/Section.d.ts +18 -0
  23. package/lib/customtypes/diff/SharedSlice.d.ts +8 -0
  24. package/lib/customtypes/diff/Variation.d.ts +8 -0
  25. package/lib/customtypes/widgets/Group.d.ts +6 -0
  26. package/lib/customtypes/widgets/Widget.d.ts +36 -0
  27. package/lib/customtypes/widgets/Widget.js +15 -0
  28. package/lib/customtypes/widgets/nestable/Link.d.ts +2 -0
  29. package/lib/customtypes/widgets/nestable/Link.js +5 -1
  30. package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +3 -1
  31. package/lib/customtypes/widgets/nestable/NestableWidget.js +18 -1
  32. package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +2 -0
  33. package/lib/customtypes/widgets/slices/LegacySlice.d.ts +2 -0
  34. package/lib/customtypes/widgets/slices/SharedSlice.d.ts +8 -0
  35. package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +6 -0
  36. package/lib/customtypes/widgets/slices/Slices.d.ts +28 -0
  37. package/package.json +1 -1
  38. package/src/_internal/utils.ts +3 -1
  39. package/src/content/fields/RepeatableContent.ts +156 -0
  40. package/src/content/fields/nestable/LinkContent.ts +26 -26
  41. package/src/content/fields/nestable/NestableContent.ts +28 -3
  42. package/src/customtypes/widgets/Widget.ts +15 -0
  43. package/src/customtypes/widgets/nestable/Link.ts +5 -1
  44. package/src/customtypes/widgets/nestable/NestableWidget.ts +34 -16
@@ -119,7 +119,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
119
119
  value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
120
120
  __TYPE__: t.LiteralC<"ImageLink">;
121
121
  }>>, t.UnionC<[t.IntersectionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
122
- kind: t.Type<"image", "image", unknown>;
122
+ kind: t.StringC;
123
123
  id: t.StringC;
124
124
  url: t.StringC;
125
125
  height: t.StringC;
@@ -136,7 +136,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
136
136
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
137
137
  __TYPE__: t.LiteralC<"FileLink">;
138
138
  }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
139
- kind: t.Type<"file", "file", unknown>;
139
+ kind: t.StringC;
140
140
  id: t.StringC;
141
141
  url: t.StringC;
142
142
  name: t.StringC;
@@ -214,7 +214,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
214
214
  linkTo: t.UnionC<[t.Type<({
215
215
  __TYPE__: "ImageLink";
216
216
  } & {
217
- kind: "image";
217
+ kind: string;
218
218
  id: string;
219
219
  url: string;
220
220
  height: string;
@@ -226,7 +226,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
226
226
  }) | ({
227
227
  __TYPE__: "FileLink";
228
228
  } & {
229
- kind: "file";
229
+ kind: string;
230
230
  id: string;
231
231
  url: string;
232
232
  name: string;
@@ -250,7 +250,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
250
250
  }), ({
251
251
  __TYPE__: "ImageLink";
252
252
  } & {
253
- kind: "image";
253
+ kind: string;
254
254
  id: string;
255
255
  url: string;
256
256
  height: string;
@@ -262,7 +262,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
262
262
  }) | ({
263
263
  __TYPE__: "FileLink";
264
264
  } & {
265
- kind: "file";
265
+ kind: string;
266
266
  id: string;
267
267
  url: string;
268
268
  name: string;
@@ -321,7 +321,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
321
321
  data: ({
322
322
  __TYPE__: "ImageLink";
323
323
  } & {
324
- kind: "image";
324
+ kind: string;
325
325
  id: string;
326
326
  url: string;
327
327
  height: string;
@@ -333,7 +333,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
333
333
  }) | ({
334
334
  __TYPE__: "FileLink";
335
335
  } & {
336
- kind: "file";
336
+ kind: string;
337
337
  id: string;
338
338
  url: string;
339
339
  name: string;
@@ -371,7 +371,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
371
371
  data: ({
372
372
  __TYPE__: "ImageLink";
373
373
  } & {
374
- kind: "image";
374
+ kind: string;
375
375
  id: string;
376
376
  url: string;
377
377
  height: string;
@@ -383,7 +383,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
383
383
  }) | ({
384
384
  __TYPE__: "FileLink";
385
385
  } & {
386
- kind: "file";
386
+ kind: string;
387
387
  id: string;
388
388
  url: string;
389
389
  name: string;
@@ -425,6 +425,80 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
425
425
  }>]>>]>>;
426
426
  }>>, t.ExactC<t.TypeC<{
427
427
  __TYPE__: t.LiteralC<"SeparatorContent">;
428
+ }>>, t.ExactC<t.TypeC<{
429
+ __TYPE__: t.LiteralC<"RepeatableContent">;
430
+ type: t.UnionC<[t.LiteralC<"Color">, t.LiteralC<"Boolean">, t.LiteralC<"Embed">, t.LiteralC<"GeoPoint">, t.LiteralC<"Date">, t.LiteralC<"Number">, t.LiteralC<"Range">, t.LiteralC<"StructuredText">, t.LiteralC<"Select">, t.LiteralC<"Separator">, t.LiteralC<"Text">, t.LiteralC<"Timestamp">, t.LiteralC<"Link">, t.LiteralC<"Image">, t.LiteralC<"IntegrationFields">]>;
431
+ value: t.ArrayC<t.ExactC<t.TypeC<{
432
+ __TYPE__: t.LiteralC<"LinkContent">;
433
+ value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
434
+ __TYPE__: t.LiteralC<"ImageLink">;
435
+ }>>, t.UnionC<[t.IntersectionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
436
+ kind: t.StringC;
437
+ id: t.StringC;
438
+ url: t.StringC;
439
+ height: t.StringC;
440
+ width: t.StringC;
441
+ size: t.StringC;
442
+ name: t.StringC;
443
+ }>>, t.ExactC<t.PartialC<{
444
+ date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
445
+ }>>]>, t.ExactC<t.PartialC<{
446
+ text: t.StringC;
447
+ }>>]>, t.ExactC<t.TypeC<{
448
+ kind: t.LiteralC<"image">;
449
+ text: t.StringC;
450
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
451
+ __TYPE__: t.LiteralC<"FileLink">;
452
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
453
+ kind: t.StringC;
454
+ id: t.StringC;
455
+ url: t.StringC;
456
+ name: t.StringC;
457
+ size: t.StringC;
458
+ }>, t.PartialC<{
459
+ date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
460
+ }>]>>, t.ExactC<t.PartialC<{
461
+ text: t.StringC;
462
+ }>>]>, t.ExactC<t.TypeC<{
463
+ kind: t.LiteralC<"file">;
464
+ text: t.StringC;
465
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
466
+ __TYPE__: t.LiteralC<"DocumentLink">;
467
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
468
+ id: t.Type<string, string, unknown>;
469
+ }>>, t.ExactC<t.PartialC<{
470
+ text: t.StringC;
471
+ }>>]>, t.ExactC<t.TypeC<{
472
+ kind: t.LiteralC<"document">;
473
+ text: t.StringC;
474
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
475
+ __TYPE__: t.LiteralC<"ExternalLink">;
476
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
477
+ url: t.StringC;
478
+ }>, t.PartialC<{
479
+ kind: t.LiteralC<"web">;
480
+ target: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
481
+ preview: t.UnionC<[t.Type<{
482
+ title?: string;
483
+ }, {
484
+ title?: string;
485
+ }, unknown>, t.NullC, t.UndefinedC]>;
486
+ }>]>>, t.ExactC<t.PartialC<{
487
+ text: t.StringC;
488
+ }>>]>, t.ExactC<t.TypeC<{
489
+ kind: t.LiteralC<"web">;
490
+ text: t.StringC;
491
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
492
+ __TYPE__: t.LiteralC<"MediaLink">;
493
+ }>>, t.ExactC<t.TypeC<{
494
+ kind: t.LiteralC<"media">;
495
+ text: t.StringC;
496
+ }>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
497
+ __TYPE__: t.LiteralC<"AnyLink">;
498
+ }>>, t.ExactC<t.TypeC<{
499
+ text: t.StringC;
500
+ }>>]>]>;
501
+ }>>>;
428
502
  }>>]>, t.TypeC<{
429
503
  __TYPE__: t.LiteralC<"UIDContent">;
430
504
  value: t.StringC;
@@ -551,7 +625,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
551
625
  value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
552
626
  __TYPE__: t.LiteralC<"ImageLink">;
553
627
  }>>, t.UnionC<[t.IntersectionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
554
- kind: t.Type<"image", "image", unknown>;
628
+ kind: t.StringC;
555
629
  id: t.StringC;
556
630
  url: t.StringC;
557
631
  height: t.StringC;
@@ -568,7 +642,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
568
642
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
569
643
  __TYPE__: t.LiteralC<"FileLink">;
570
644
  }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
571
- kind: t.Type<"file", "file", unknown>;
645
+ kind: t.StringC;
572
646
  id: t.StringC;
573
647
  url: t.StringC;
574
648
  name: t.StringC;
@@ -646,7 +720,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
646
720
  linkTo: t.UnionC<[t.Type<({
647
721
  __TYPE__: "ImageLink";
648
722
  } & {
649
- kind: "image";
723
+ kind: string;
650
724
  id: string;
651
725
  url: string;
652
726
  height: string;
@@ -658,7 +732,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
658
732
  }) | ({
659
733
  __TYPE__: "FileLink";
660
734
  } & {
661
- kind: "file";
735
+ kind: string;
662
736
  id: string;
663
737
  url: string;
664
738
  name: string;
@@ -682,7 +756,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
682
756
  }), ({
683
757
  __TYPE__: "ImageLink";
684
758
  } & {
685
- kind: "image";
759
+ kind: string;
686
760
  id: string;
687
761
  url: string;
688
762
  height: string;
@@ -694,7 +768,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
694
768
  }) | ({
695
769
  __TYPE__: "FileLink";
696
770
  } & {
697
- kind: "file";
771
+ kind: string;
698
772
  id: string;
699
773
  url: string;
700
774
  name: string;
@@ -753,7 +827,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
753
827
  data: ({
754
828
  __TYPE__: "ImageLink";
755
829
  } & {
756
- kind: "image";
830
+ kind: string;
757
831
  id: string;
758
832
  url: string;
759
833
  height: string;
@@ -765,7 +839,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
765
839
  }) | ({
766
840
  __TYPE__: "FileLink";
767
841
  } & {
768
- kind: "file";
842
+ kind: string;
769
843
  id: string;
770
844
  url: string;
771
845
  name: string;
@@ -803,7 +877,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
803
877
  data: ({
804
878
  __TYPE__: "ImageLink";
805
879
  } & {
806
- kind: "image";
880
+ kind: string;
807
881
  id: string;
808
882
  url: string;
809
883
  height: string;
@@ -815,7 +889,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
815
889
  }) | ({
816
890
  __TYPE__: "FileLink";
817
891
  } & {
818
- kind: "file";
892
+ kind: string;
819
893
  id: string;
820
894
  url: string;
821
895
  name: string;
@@ -857,6 +931,80 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
857
931
  }>]>>]>>;
858
932
  }>>, t.ExactC<t.TypeC<{
859
933
  __TYPE__: t.LiteralC<"SeparatorContent">;
934
+ }>>, t.ExactC<t.TypeC<{
935
+ __TYPE__: t.LiteralC<"RepeatableContent">;
936
+ type: t.UnionC<[t.LiteralC<"Color">, t.LiteralC<"Boolean">, t.LiteralC<"Embed">, t.LiteralC<"GeoPoint">, t.LiteralC<"Date">, t.LiteralC<"Number">, t.LiteralC<"Range">, t.LiteralC<"StructuredText">, t.LiteralC<"Select">, t.LiteralC<"Separator">, t.LiteralC<"Text">, t.LiteralC<"Timestamp">, t.LiteralC<"Link">, t.LiteralC<"Image">, t.LiteralC<"IntegrationFields">]>;
937
+ value: t.ArrayC<t.ExactC<t.TypeC<{
938
+ __TYPE__: t.LiteralC<"LinkContent">;
939
+ value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
940
+ __TYPE__: t.LiteralC<"ImageLink">;
941
+ }>>, t.UnionC<[t.IntersectionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
942
+ kind: t.StringC;
943
+ id: t.StringC;
944
+ url: t.StringC;
945
+ height: t.StringC;
946
+ width: t.StringC;
947
+ size: t.StringC;
948
+ name: t.StringC;
949
+ }>>, t.ExactC<t.PartialC<{
950
+ date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
951
+ }>>]>, t.ExactC<t.PartialC<{
952
+ text: t.StringC;
953
+ }>>]>, t.ExactC<t.TypeC<{
954
+ kind: t.LiteralC<"image">;
955
+ text: t.StringC;
956
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
957
+ __TYPE__: t.LiteralC<"FileLink">;
958
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
959
+ kind: t.StringC;
960
+ id: t.StringC;
961
+ url: t.StringC;
962
+ name: t.StringC;
963
+ size: t.StringC;
964
+ }>, t.PartialC<{
965
+ date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
966
+ }>]>>, t.ExactC<t.PartialC<{
967
+ text: t.StringC;
968
+ }>>]>, t.ExactC<t.TypeC<{
969
+ kind: t.LiteralC<"file">;
970
+ text: t.StringC;
971
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
972
+ __TYPE__: t.LiteralC<"DocumentLink">;
973
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
974
+ id: t.Type<string, string, unknown>;
975
+ }>>, t.ExactC<t.PartialC<{
976
+ text: t.StringC;
977
+ }>>]>, t.ExactC<t.TypeC<{
978
+ kind: t.LiteralC<"document">;
979
+ text: t.StringC;
980
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
981
+ __TYPE__: t.LiteralC<"ExternalLink">;
982
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
983
+ url: t.StringC;
984
+ }>, t.PartialC<{
985
+ kind: t.LiteralC<"web">;
986
+ target: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
987
+ preview: t.UnionC<[t.Type<{
988
+ title?: string;
989
+ }, {
990
+ title?: string;
991
+ }, unknown>, t.NullC, t.UndefinedC]>;
992
+ }>]>>, t.ExactC<t.PartialC<{
993
+ text: t.StringC;
994
+ }>>]>, t.ExactC<t.TypeC<{
995
+ kind: t.LiteralC<"web">;
996
+ text: t.StringC;
997
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
998
+ __TYPE__: t.LiteralC<"MediaLink">;
999
+ }>>, t.ExactC<t.TypeC<{
1000
+ kind: t.LiteralC<"media">;
1001
+ text: t.StringC;
1002
+ }>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1003
+ __TYPE__: t.LiteralC<"AnyLink">;
1004
+ }>>, t.ExactC<t.TypeC<{
1005
+ text: t.StringC;
1006
+ }>>]>]>;
1007
+ }>>>;
860
1008
  }>>]>>;
861
1009
  repeat: t.ArrayC<t.ExactC<t.TypeC<{
862
1010
  __TYPE__: t.LiteralC<"GroupItemContent">;
@@ -975,7 +1123,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
975
1123
  value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
976
1124
  __TYPE__: t.LiteralC<"ImageLink">;
977
1125
  }>>, t.UnionC<[t.IntersectionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
978
- kind: t.Type<"image", "image", unknown>;
1126
+ kind: t.StringC;
979
1127
  id: t.StringC;
980
1128
  url: t.StringC;
981
1129
  height: t.StringC;
@@ -992,7 +1140,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
992
1140
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
993
1141
  __TYPE__: t.LiteralC<"FileLink">;
994
1142
  }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
995
- kind: t.Type<"file", "file", unknown>;
1143
+ kind: t.StringC;
996
1144
  id: t.StringC;
997
1145
  url: t.StringC;
998
1146
  name: t.StringC;
@@ -1070,7 +1218,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1070
1218
  linkTo: t.UnionC<[t.Type<({
1071
1219
  __TYPE__: "ImageLink";
1072
1220
  } & {
1073
- kind: "image";
1221
+ kind: string;
1074
1222
  id: string;
1075
1223
  url: string;
1076
1224
  height: string;
@@ -1082,7 +1230,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1082
1230
  }) | ({
1083
1231
  __TYPE__: "FileLink";
1084
1232
  } & {
1085
- kind: "file";
1233
+ kind: string;
1086
1234
  id: string;
1087
1235
  url: string;
1088
1236
  name: string;
@@ -1106,7 +1254,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1106
1254
  }), ({
1107
1255
  __TYPE__: "ImageLink";
1108
1256
  } & {
1109
- kind: "image";
1257
+ kind: string;
1110
1258
  id: string;
1111
1259
  url: string;
1112
1260
  height: string;
@@ -1118,7 +1266,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1118
1266
  }) | ({
1119
1267
  __TYPE__: "FileLink";
1120
1268
  } & {
1121
- kind: "file";
1269
+ kind: string;
1122
1270
  id: string;
1123
1271
  url: string;
1124
1272
  name: string;
@@ -1177,7 +1325,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1177
1325
  data: ({
1178
1326
  __TYPE__: "ImageLink";
1179
1327
  } & {
1180
- kind: "image";
1328
+ kind: string;
1181
1329
  id: string;
1182
1330
  url: string;
1183
1331
  height: string;
@@ -1189,7 +1337,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1189
1337
  }) | ({
1190
1338
  __TYPE__: "FileLink";
1191
1339
  } & {
1192
- kind: "file";
1340
+ kind: string;
1193
1341
  id: string;
1194
1342
  url: string;
1195
1343
  name: string;
@@ -1227,7 +1375,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1227
1375
  data: ({
1228
1376
  __TYPE__: "ImageLink";
1229
1377
  } & {
1230
- kind: "image";
1378
+ kind: string;
1231
1379
  id: string;
1232
1380
  url: string;
1233
1381
  height: string;
@@ -1239,7 +1387,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1239
1387
  }) | ({
1240
1388
  __TYPE__: "FileLink";
1241
1389
  } & {
1242
- kind: "file";
1390
+ kind: string;
1243
1391
  id: string;
1244
1392
  url: string;
1245
1393
  name: string;
@@ -1281,6 +1429,80 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1281
1429
  }>]>>]>>;
1282
1430
  }>>, t.ExactC<t.TypeC<{
1283
1431
  __TYPE__: t.LiteralC<"SeparatorContent">;
1432
+ }>>, t.ExactC<t.TypeC<{
1433
+ __TYPE__: t.LiteralC<"RepeatableContent">;
1434
+ type: t.UnionC<[t.LiteralC<"Color">, t.LiteralC<"Boolean">, t.LiteralC<"Embed">, t.LiteralC<"GeoPoint">, t.LiteralC<"Date">, t.LiteralC<"Number">, t.LiteralC<"Range">, t.LiteralC<"StructuredText">, t.LiteralC<"Select">, t.LiteralC<"Separator">, t.LiteralC<"Text">, t.LiteralC<"Timestamp">, t.LiteralC<"Link">, t.LiteralC<"Image">, t.LiteralC<"IntegrationFields">]>;
1435
+ value: t.ArrayC<t.ExactC<t.TypeC<{
1436
+ __TYPE__: t.LiteralC<"LinkContent">;
1437
+ value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
1438
+ __TYPE__: t.LiteralC<"ImageLink">;
1439
+ }>>, t.UnionC<[t.IntersectionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
1440
+ kind: t.StringC;
1441
+ id: t.StringC;
1442
+ url: t.StringC;
1443
+ height: t.StringC;
1444
+ width: t.StringC;
1445
+ size: t.StringC;
1446
+ name: t.StringC;
1447
+ }>>, t.ExactC<t.PartialC<{
1448
+ date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1449
+ }>>]>, t.ExactC<t.PartialC<{
1450
+ text: t.StringC;
1451
+ }>>]>, t.ExactC<t.TypeC<{
1452
+ kind: t.LiteralC<"image">;
1453
+ text: t.StringC;
1454
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1455
+ __TYPE__: t.LiteralC<"FileLink">;
1456
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1457
+ kind: t.StringC;
1458
+ id: t.StringC;
1459
+ url: t.StringC;
1460
+ name: t.StringC;
1461
+ size: t.StringC;
1462
+ }>, t.PartialC<{
1463
+ date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1464
+ }>]>>, t.ExactC<t.PartialC<{
1465
+ text: t.StringC;
1466
+ }>>]>, t.ExactC<t.TypeC<{
1467
+ kind: t.LiteralC<"file">;
1468
+ text: t.StringC;
1469
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1470
+ __TYPE__: t.LiteralC<"DocumentLink">;
1471
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
1472
+ id: t.Type<string, string, unknown>;
1473
+ }>>, t.ExactC<t.PartialC<{
1474
+ text: t.StringC;
1475
+ }>>]>, t.ExactC<t.TypeC<{
1476
+ kind: t.LiteralC<"document">;
1477
+ text: t.StringC;
1478
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1479
+ __TYPE__: t.LiteralC<"ExternalLink">;
1480
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1481
+ url: t.StringC;
1482
+ }>, t.PartialC<{
1483
+ kind: t.LiteralC<"web">;
1484
+ target: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1485
+ preview: t.UnionC<[t.Type<{
1486
+ title?: string;
1487
+ }, {
1488
+ title?: string;
1489
+ }, unknown>, t.NullC, t.UndefinedC]>;
1490
+ }>]>>, t.ExactC<t.PartialC<{
1491
+ text: t.StringC;
1492
+ }>>]>, t.ExactC<t.TypeC<{
1493
+ kind: t.LiteralC<"web">;
1494
+ text: t.StringC;
1495
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1496
+ __TYPE__: t.LiteralC<"MediaLink">;
1497
+ }>>, t.ExactC<t.TypeC<{
1498
+ kind: t.LiteralC<"media">;
1499
+ text: t.StringC;
1500
+ }>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1501
+ __TYPE__: t.LiteralC<"AnyLink">;
1502
+ }>>, t.ExactC<t.TypeC<{
1503
+ text: t.StringC;
1504
+ }>>]>]>;
1505
+ }>>>;
1284
1506
  }>>]>, t.Type<import("./fields").GroupContent, import("./fields").GroupContent, unknown>]>]>>;
1285
1507
  }>>>;
1286
1508
  }>>, t.ExactC<t.TypeC<{
@@ -1401,7 +1623,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1401
1623
  value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
1402
1624
  __TYPE__: t.LiteralC<"ImageLink">;
1403
1625
  }>>, t.UnionC<[t.IntersectionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
1404
- kind: t.Type<"image", "image", unknown>;
1626
+ kind: t.StringC;
1405
1627
  id: t.StringC;
1406
1628
  url: t.StringC;
1407
1629
  height: t.StringC;
@@ -1418,7 +1640,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1418
1640
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1419
1641
  __TYPE__: t.LiteralC<"FileLink">;
1420
1642
  }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1421
- kind: t.Type<"file", "file", unknown>;
1643
+ kind: t.StringC;
1422
1644
  id: t.StringC;
1423
1645
  url: t.StringC;
1424
1646
  name: t.StringC;
@@ -1496,7 +1718,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1496
1718
  linkTo: t.UnionC<[t.Type<({
1497
1719
  __TYPE__: "ImageLink";
1498
1720
  } & {
1499
- kind: "image";
1721
+ kind: string;
1500
1722
  id: string;
1501
1723
  url: string;
1502
1724
  height: string;
@@ -1508,7 +1730,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1508
1730
  }) | ({
1509
1731
  __TYPE__: "FileLink";
1510
1732
  } & {
1511
- kind: "file";
1733
+ kind: string;
1512
1734
  id: string;
1513
1735
  url: string;
1514
1736
  name: string;
@@ -1532,7 +1754,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1532
1754
  }), ({
1533
1755
  __TYPE__: "ImageLink";
1534
1756
  } & {
1535
- kind: "image";
1757
+ kind: string;
1536
1758
  id: string;
1537
1759
  url: string;
1538
1760
  height: string;
@@ -1544,7 +1766,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1544
1766
  }) | ({
1545
1767
  __TYPE__: "FileLink";
1546
1768
  } & {
1547
- kind: "file";
1769
+ kind: string;
1548
1770
  id: string;
1549
1771
  url: string;
1550
1772
  name: string;
@@ -1603,7 +1825,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1603
1825
  data: ({
1604
1826
  __TYPE__: "ImageLink";
1605
1827
  } & {
1606
- kind: "image";
1828
+ kind: string;
1607
1829
  id: string;
1608
1830
  url: string;
1609
1831
  height: string;
@@ -1615,7 +1837,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1615
1837
  }) | ({
1616
1838
  __TYPE__: "FileLink";
1617
1839
  } & {
1618
- kind: "file";
1840
+ kind: string;
1619
1841
  id: string;
1620
1842
  url: string;
1621
1843
  name: string;
@@ -1653,7 +1875,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1653
1875
  data: ({
1654
1876
  __TYPE__: "ImageLink";
1655
1877
  } & {
1656
- kind: "image";
1878
+ kind: string;
1657
1879
  id: string;
1658
1880
  url: string;
1659
1881
  height: string;
@@ -1665,7 +1887,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1665
1887
  }) | ({
1666
1888
  __TYPE__: "FileLink";
1667
1889
  } & {
1668
- kind: "file";
1890
+ kind: string;
1669
1891
  id: string;
1670
1892
  url: string;
1671
1893
  name: string;
@@ -1707,6 +1929,80 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1707
1929
  }>]>>]>>;
1708
1930
  }>>, t.ExactC<t.TypeC<{
1709
1931
  __TYPE__: t.LiteralC<"SeparatorContent">;
1932
+ }>>, t.ExactC<t.TypeC<{
1933
+ __TYPE__: t.LiteralC<"RepeatableContent">;
1934
+ type: t.UnionC<[t.LiteralC<"Color">, t.LiteralC<"Boolean">, t.LiteralC<"Embed">, t.LiteralC<"GeoPoint">, t.LiteralC<"Date">, t.LiteralC<"Number">, t.LiteralC<"Range">, t.LiteralC<"StructuredText">, t.LiteralC<"Select">, t.LiteralC<"Separator">, t.LiteralC<"Text">, t.LiteralC<"Timestamp">, t.LiteralC<"Link">, t.LiteralC<"Image">, t.LiteralC<"IntegrationFields">]>;
1935
+ value: t.ArrayC<t.ExactC<t.TypeC<{
1936
+ __TYPE__: t.LiteralC<"LinkContent">;
1937
+ value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
1938
+ __TYPE__: t.LiteralC<"ImageLink">;
1939
+ }>>, t.UnionC<[t.IntersectionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
1940
+ kind: t.StringC;
1941
+ id: t.StringC;
1942
+ url: t.StringC;
1943
+ height: t.StringC;
1944
+ width: t.StringC;
1945
+ size: t.StringC;
1946
+ name: t.StringC;
1947
+ }>>, t.ExactC<t.PartialC<{
1948
+ date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1949
+ }>>]>, t.ExactC<t.PartialC<{
1950
+ text: t.StringC;
1951
+ }>>]>, t.ExactC<t.TypeC<{
1952
+ kind: t.LiteralC<"image">;
1953
+ text: t.StringC;
1954
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1955
+ __TYPE__: t.LiteralC<"FileLink">;
1956
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1957
+ kind: t.StringC;
1958
+ id: t.StringC;
1959
+ url: t.StringC;
1960
+ name: t.StringC;
1961
+ size: t.StringC;
1962
+ }>, t.PartialC<{
1963
+ date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1964
+ }>]>>, t.ExactC<t.PartialC<{
1965
+ text: t.StringC;
1966
+ }>>]>, t.ExactC<t.TypeC<{
1967
+ kind: t.LiteralC<"file">;
1968
+ text: t.StringC;
1969
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1970
+ __TYPE__: t.LiteralC<"DocumentLink">;
1971
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
1972
+ id: t.Type<string, string, unknown>;
1973
+ }>>, t.ExactC<t.PartialC<{
1974
+ text: t.StringC;
1975
+ }>>]>, t.ExactC<t.TypeC<{
1976
+ kind: t.LiteralC<"document">;
1977
+ text: t.StringC;
1978
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1979
+ __TYPE__: t.LiteralC<"ExternalLink">;
1980
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1981
+ url: t.StringC;
1982
+ }>, t.PartialC<{
1983
+ kind: t.LiteralC<"web">;
1984
+ target: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1985
+ preview: t.UnionC<[t.Type<{
1986
+ title?: string;
1987
+ }, {
1988
+ title?: string;
1989
+ }, unknown>, t.NullC, t.UndefinedC]>;
1990
+ }>]>>, t.ExactC<t.PartialC<{
1991
+ text: t.StringC;
1992
+ }>>]>, t.ExactC<t.TypeC<{
1993
+ kind: t.LiteralC<"web">;
1994
+ text: t.StringC;
1995
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1996
+ __TYPE__: t.LiteralC<"MediaLink">;
1997
+ }>>, t.ExactC<t.TypeC<{
1998
+ kind: t.LiteralC<"media">;
1999
+ text: t.StringC;
2000
+ }>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2001
+ __TYPE__: t.LiteralC<"AnyLink">;
2002
+ }>>, t.ExactC<t.TypeC<{
2003
+ text: t.StringC;
2004
+ }>>]>]>;
2005
+ }>>>;
1710
2006
  }>>]>, t.Type<import("./fields").GroupContent, import("./fields").GroupContent, unknown>]>>;
1711
2007
  items: t.ArrayC<t.ExactC<t.TypeC<{
1712
2008
  __TYPE__: t.LiteralC<"GroupItemContent">;
@@ -1825,7 +2121,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1825
2121
  value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
1826
2122
  __TYPE__: t.LiteralC<"ImageLink">;
1827
2123
  }>>, t.UnionC<[t.IntersectionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
1828
- kind: t.Type<"image", "image", unknown>;
2124
+ kind: t.StringC;
1829
2125
  id: t.StringC;
1830
2126
  url: t.StringC;
1831
2127
  height: t.StringC;
@@ -1842,7 +2138,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1842
2138
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1843
2139
  __TYPE__: t.LiteralC<"FileLink">;
1844
2140
  }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1845
- kind: t.Type<"file", "file", unknown>;
2141
+ kind: t.StringC;
1846
2142
  id: t.StringC;
1847
2143
  url: t.StringC;
1848
2144
  name: t.StringC;
@@ -1920,7 +2216,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1920
2216
  linkTo: t.UnionC<[t.Type<({
1921
2217
  __TYPE__: "ImageLink";
1922
2218
  } & {
1923
- kind: "image";
2219
+ kind: string;
1924
2220
  id: string;
1925
2221
  url: string;
1926
2222
  height: string;
@@ -1932,7 +2228,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1932
2228
  }) | ({
1933
2229
  __TYPE__: "FileLink";
1934
2230
  } & {
1935
- kind: "file";
2231
+ kind: string;
1936
2232
  id: string;
1937
2233
  url: string;
1938
2234
  name: string;
@@ -1956,7 +2252,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1956
2252
  }), ({
1957
2253
  __TYPE__: "ImageLink";
1958
2254
  } & {
1959
- kind: "image";
2255
+ kind: string;
1960
2256
  id: string;
1961
2257
  url: string;
1962
2258
  height: string;
@@ -1968,7 +2264,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1968
2264
  }) | ({
1969
2265
  __TYPE__: "FileLink";
1970
2266
  } & {
1971
- kind: "file";
2267
+ kind: string;
1972
2268
  id: string;
1973
2269
  url: string;
1974
2270
  name: string;
@@ -2027,7 +2323,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2027
2323
  data: ({
2028
2324
  __TYPE__: "ImageLink";
2029
2325
  } & {
2030
- kind: "image";
2326
+ kind: string;
2031
2327
  id: string;
2032
2328
  url: string;
2033
2329
  height: string;
@@ -2039,7 +2335,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2039
2335
  }) | ({
2040
2336
  __TYPE__: "FileLink";
2041
2337
  } & {
2042
- kind: "file";
2338
+ kind: string;
2043
2339
  id: string;
2044
2340
  url: string;
2045
2341
  name: string;
@@ -2077,7 +2373,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2077
2373
  data: ({
2078
2374
  __TYPE__: "ImageLink";
2079
2375
  } & {
2080
- kind: "image";
2376
+ kind: string;
2081
2377
  id: string;
2082
2378
  url: string;
2083
2379
  height: string;
@@ -2089,7 +2385,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2089
2385
  }) | ({
2090
2386
  __TYPE__: "FileLink";
2091
2387
  } & {
2092
- kind: "file";
2388
+ kind: string;
2093
2389
  id: string;
2094
2390
  url: string;
2095
2391
  name: string;
@@ -2131,6 +2427,80 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2131
2427
  }>]>>]>>;
2132
2428
  }>>, t.ExactC<t.TypeC<{
2133
2429
  __TYPE__: t.LiteralC<"SeparatorContent">;
2430
+ }>>, t.ExactC<t.TypeC<{
2431
+ __TYPE__: t.LiteralC<"RepeatableContent">;
2432
+ type: t.UnionC<[t.LiteralC<"Color">, t.LiteralC<"Boolean">, t.LiteralC<"Embed">, t.LiteralC<"GeoPoint">, t.LiteralC<"Date">, t.LiteralC<"Number">, t.LiteralC<"Range">, t.LiteralC<"StructuredText">, t.LiteralC<"Select">, t.LiteralC<"Separator">, t.LiteralC<"Text">, t.LiteralC<"Timestamp">, t.LiteralC<"Link">, t.LiteralC<"Image">, t.LiteralC<"IntegrationFields">]>;
2433
+ value: t.ArrayC<t.ExactC<t.TypeC<{
2434
+ __TYPE__: t.LiteralC<"LinkContent">;
2435
+ value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
2436
+ __TYPE__: t.LiteralC<"ImageLink">;
2437
+ }>>, t.UnionC<[t.IntersectionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
2438
+ kind: t.StringC;
2439
+ id: t.StringC;
2440
+ url: t.StringC;
2441
+ height: t.StringC;
2442
+ width: t.StringC;
2443
+ size: t.StringC;
2444
+ name: t.StringC;
2445
+ }>>, t.ExactC<t.PartialC<{
2446
+ date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2447
+ }>>]>, t.ExactC<t.PartialC<{
2448
+ text: t.StringC;
2449
+ }>>]>, t.ExactC<t.TypeC<{
2450
+ kind: t.LiteralC<"image">;
2451
+ text: t.StringC;
2452
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2453
+ __TYPE__: t.LiteralC<"FileLink">;
2454
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2455
+ kind: t.StringC;
2456
+ id: t.StringC;
2457
+ url: t.StringC;
2458
+ name: t.StringC;
2459
+ size: t.StringC;
2460
+ }>, t.PartialC<{
2461
+ date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2462
+ }>]>>, t.ExactC<t.PartialC<{
2463
+ text: t.StringC;
2464
+ }>>]>, t.ExactC<t.TypeC<{
2465
+ kind: t.LiteralC<"file">;
2466
+ text: t.StringC;
2467
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2468
+ __TYPE__: t.LiteralC<"DocumentLink">;
2469
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
2470
+ id: t.Type<string, string, unknown>;
2471
+ }>>, t.ExactC<t.PartialC<{
2472
+ text: t.StringC;
2473
+ }>>]>, t.ExactC<t.TypeC<{
2474
+ kind: t.LiteralC<"document">;
2475
+ text: t.StringC;
2476
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2477
+ __TYPE__: t.LiteralC<"ExternalLink">;
2478
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2479
+ url: t.StringC;
2480
+ }>, t.PartialC<{
2481
+ kind: t.LiteralC<"web">;
2482
+ target: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2483
+ preview: t.UnionC<[t.Type<{
2484
+ title?: string;
2485
+ }, {
2486
+ title?: string;
2487
+ }, unknown>, t.NullC, t.UndefinedC]>;
2488
+ }>]>>, t.ExactC<t.PartialC<{
2489
+ text: t.StringC;
2490
+ }>>]>, t.ExactC<t.TypeC<{
2491
+ kind: t.LiteralC<"web">;
2492
+ text: t.StringC;
2493
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2494
+ __TYPE__: t.LiteralC<"MediaLink">;
2495
+ }>>, t.ExactC<t.TypeC<{
2496
+ kind: t.LiteralC<"media">;
2497
+ text: t.StringC;
2498
+ }>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2499
+ __TYPE__: t.LiteralC<"AnyLink">;
2500
+ }>>, t.ExactC<t.TypeC<{
2501
+ text: t.StringC;
2502
+ }>>]>]>;
2503
+ }>>>;
2134
2504
  }>>]>, t.Type<import("./fields").GroupContent, import("./fields").GroupContent, unknown>]>]>>;
2135
2505
  }>>>;
2136
2506
  }>>, t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
@@ -2248,7 +2618,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2248
2618
  value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
2249
2619
  __TYPE__: t.LiteralC<"ImageLink">;
2250
2620
  }>>, t.UnionC<[t.IntersectionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
2251
- kind: t.Type<"image", "image", unknown>;
2621
+ kind: t.StringC;
2252
2622
  id: t.StringC;
2253
2623
  url: t.StringC;
2254
2624
  height: t.StringC;
@@ -2265,7 +2635,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2265
2635
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2266
2636
  __TYPE__: t.LiteralC<"FileLink">;
2267
2637
  }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2268
- kind: t.Type<"file", "file", unknown>;
2638
+ kind: t.StringC;
2269
2639
  id: t.StringC;
2270
2640
  url: t.StringC;
2271
2641
  name: t.StringC;
@@ -2343,7 +2713,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2343
2713
  linkTo: t.UnionC<[t.Type<({
2344
2714
  __TYPE__: "ImageLink";
2345
2715
  } & {
2346
- kind: "image";
2716
+ kind: string;
2347
2717
  id: string;
2348
2718
  url: string;
2349
2719
  height: string;
@@ -2355,7 +2725,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2355
2725
  }) | ({
2356
2726
  __TYPE__: "FileLink";
2357
2727
  } & {
2358
- kind: "file";
2728
+ kind: string;
2359
2729
  id: string;
2360
2730
  url: string;
2361
2731
  name: string;
@@ -2379,7 +2749,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2379
2749
  }), ({
2380
2750
  __TYPE__: "ImageLink";
2381
2751
  } & {
2382
- kind: "image";
2752
+ kind: string;
2383
2753
  id: string;
2384
2754
  url: string;
2385
2755
  height: string;
@@ -2391,7 +2761,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2391
2761
  }) | ({
2392
2762
  __TYPE__: "FileLink";
2393
2763
  } & {
2394
- kind: "file";
2764
+ kind: string;
2395
2765
  id: string;
2396
2766
  url: string;
2397
2767
  name: string;
@@ -2450,7 +2820,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2450
2820
  data: ({
2451
2821
  __TYPE__: "ImageLink";
2452
2822
  } & {
2453
- kind: "image";
2823
+ kind: string;
2454
2824
  id: string;
2455
2825
  url: string;
2456
2826
  height: string;
@@ -2462,7 +2832,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2462
2832
  }) | ({
2463
2833
  __TYPE__: "FileLink";
2464
2834
  } & {
2465
- kind: "file";
2835
+ kind: string;
2466
2836
  id: string;
2467
2837
  url: string;
2468
2838
  name: string;
@@ -2500,7 +2870,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2500
2870
  data: ({
2501
2871
  __TYPE__: "ImageLink";
2502
2872
  } & {
2503
- kind: "image";
2873
+ kind: string;
2504
2874
  id: string;
2505
2875
  url: string;
2506
2876
  height: string;
@@ -2512,7 +2882,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2512
2882
  }) | ({
2513
2883
  __TYPE__: "FileLink";
2514
2884
  } & {
2515
- kind: "file";
2885
+ kind: string;
2516
2886
  id: string;
2517
2887
  url: string;
2518
2888
  name: string;
@@ -2554,12 +2924,86 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2554
2924
  }>]>>]>>;
2555
2925
  }>>, t.ExactC<t.TypeC<{
2556
2926
  __TYPE__: t.LiteralC<"SeparatorContent">;
2557
- }>>]>, t.Type<import("./fields").GroupContent, import("./fields").GroupContent, unknown>]>]>;
2558
- }>>;
2559
- }>]>>;
2560
- export declare type Document = t.TypeOf<typeof Document>;
2561
- declare const legacyDocReader: t.RecordC<t.Type<string, string, unknown>, t.UnknownC>;
2562
- declare type DocumentLegacy = t.TypeOf<typeof legacyDocReader>;
2927
+ }>>, t.ExactC<t.TypeC<{
2928
+ __TYPE__: t.LiteralC<"RepeatableContent">;
2929
+ type: t.UnionC<[t.LiteralC<"Color">, t.LiteralC<"Boolean">, t.LiteralC<"Embed">, t.LiteralC<"GeoPoint">, t.LiteralC<"Date">, t.LiteralC<"Number">, t.LiteralC<"Range">, t.LiteralC<"StructuredText">, t.LiteralC<"Select">, t.LiteralC<"Separator">, t.LiteralC<"Text">, t.LiteralC<"Timestamp">, t.LiteralC<"Link">, t.LiteralC<"Image">, t.LiteralC<"IntegrationFields">]>;
2930
+ value: t.ArrayC<t.ExactC<t.TypeC<{
2931
+ __TYPE__: t.LiteralC<"LinkContent">;
2932
+ value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
2933
+ __TYPE__: t.LiteralC<"ImageLink">;
2934
+ }>>, t.UnionC<[t.IntersectionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
2935
+ kind: t.StringC;
2936
+ id: t.StringC;
2937
+ url: t.StringC;
2938
+ height: t.StringC;
2939
+ width: t.StringC;
2940
+ size: t.StringC;
2941
+ name: t.StringC;
2942
+ }>>, t.ExactC<t.PartialC<{
2943
+ date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2944
+ }>>]>, t.ExactC<t.PartialC<{
2945
+ text: t.StringC;
2946
+ }>>]>, t.ExactC<t.TypeC<{
2947
+ kind: t.LiteralC<"image">;
2948
+ text: t.StringC;
2949
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2950
+ __TYPE__: t.LiteralC<"FileLink">;
2951
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2952
+ kind: t.StringC;
2953
+ id: t.StringC;
2954
+ url: t.StringC;
2955
+ name: t.StringC;
2956
+ size: t.StringC;
2957
+ }>, t.PartialC<{
2958
+ date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2959
+ }>]>>, t.ExactC<t.PartialC<{
2960
+ text: t.StringC;
2961
+ }>>]>, t.ExactC<t.TypeC<{
2962
+ kind: t.LiteralC<"file">;
2963
+ text: t.StringC;
2964
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2965
+ __TYPE__: t.LiteralC<"DocumentLink">;
2966
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
2967
+ id: t.Type<string, string, unknown>;
2968
+ }>>, t.ExactC<t.PartialC<{
2969
+ text: t.StringC;
2970
+ }>>]>, t.ExactC<t.TypeC<{
2971
+ kind: t.LiteralC<"document">;
2972
+ text: t.StringC;
2973
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2974
+ __TYPE__: t.LiteralC<"ExternalLink">;
2975
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2976
+ url: t.StringC;
2977
+ }>, t.PartialC<{
2978
+ kind: t.LiteralC<"web">;
2979
+ target: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2980
+ preview: t.UnionC<[t.Type<{
2981
+ title?: string;
2982
+ }, {
2983
+ title?: string;
2984
+ }, unknown>, t.NullC, t.UndefinedC]>;
2985
+ }>]>>, t.ExactC<t.PartialC<{
2986
+ text: t.StringC;
2987
+ }>>]>, t.ExactC<t.TypeC<{
2988
+ kind: t.LiteralC<"web">;
2989
+ text: t.StringC;
2990
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2991
+ __TYPE__: t.LiteralC<"MediaLink">;
2992
+ }>>, t.ExactC<t.TypeC<{
2993
+ kind: t.LiteralC<"media">;
2994
+ text: t.StringC;
2995
+ }>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2996
+ __TYPE__: t.LiteralC<"AnyLink">;
2997
+ }>>, t.ExactC<t.TypeC<{
2998
+ text: t.StringC;
2999
+ }>>]>]>;
3000
+ }>>>;
3001
+ }>>]>, t.Type<import("./fields").GroupContent, import("./fields").GroupContent, unknown>]>]>;
3002
+ }>>;
3003
+ }>]>>;
3004
+ export declare type Document = t.TypeOf<typeof Document>;
3005
+ declare const legacyDocReader: t.RecordC<t.Type<string, string, unknown>, t.UnknownC>;
3006
+ declare type DocumentLegacy = t.TypeOf<typeof legacyDocReader>;
2563
3007
  declare function extractMetadata(data: {
2564
3008
  [p: string]: unknown;
2565
3009
  }): {
@@ -2574,7 +3018,7 @@ declare function parseLegacyDocument(legacyDoc: unknown, customType: StaticCusto
2574
3018
  }): Document | undefined;
2575
3019
  declare function encodeToLegacyDocument(document: Document): DocumentLegacy;
2576
3020
  export declare const DocumentLegacy: {
2577
- _codec: (allTypes?: Map<string, "Boolean" | "Color" | "Date" | "Embed" | "GeoPoint" | "Image" | "IntegrationFields" | "Link" | "Number" | "Range" | "StructuredText" | "Select" | "Separator" | "Text" | "Timestamp" | "Group" | "Slice" | "SharedSlice" | "Choice" | "Slices" | "UID"> | undefined) => t.Type<{
3021
+ _codec: (allTypes?: Map<string, "Boolean" | "Color" | "Date" | "Embed" | "GeoPoint" | "Image" | "IntegrationFields" | "Link" | "Number" | "Range" | "StructuredText" | "Select" | "Separator" | "Text" | "Timestamp" | "Group" | "Slice" | "SharedSlice" | "Choice" | "Slices" | "UID" | "Repeatable.Color" | "Repeatable.Boolean" | "Repeatable.Number" | "Repeatable.Embed" | "Repeatable.GeoPoint" | "Repeatable.Date" | "Repeatable.Range" | "Repeatable.StructuredText" | "Repeatable.Select" | "Repeatable.Separator" | "Repeatable.Text" | "Repeatable.Timestamp" | "Repeatable.Link" | "Repeatable.Image" | "Repeatable.IntegrationFields"> | undefined) => t.Type<{
2578
3022
  [x: string]: {
2579
3023
  type: string;
2580
3024
  __TYPE__: "EmptyContent";
@@ -2692,7 +3136,7 @@ export declare const DocumentLegacy: {
2692
3136
  value: ({
2693
3137
  __TYPE__: "ImageLink";
2694
3138
  } & (({
2695
- kind: "image";
3139
+ kind: string;
2696
3140
  id: string;
2697
3141
  url: string;
2698
3142
  height: string;
@@ -2709,7 +3153,7 @@ export declare const DocumentLegacy: {
2709
3153
  })) | ({
2710
3154
  __TYPE__: "FileLink";
2711
3155
  } & (({
2712
- kind: "file";
3156
+ kind: string;
2713
3157
  id: string;
2714
3158
  url: string;
2715
3159
  name: string;
@@ -2756,6 +3200,78 @@ export declare const DocumentLegacy: {
2756
3200
  text: string;
2757
3201
  });
2758
3202
  } | {
3203
+ __TYPE__: "RepeatableContent";
3204
+ type: "Boolean" | "Color" | "Date" | "Embed" | "GeoPoint" | "Image" | "IntegrationFields" | "Link" | "Number" | "Range" | "StructuredText" | "Select" | "Separator" | "Text" | "Timestamp";
3205
+ value: {
3206
+ __TYPE__: "LinkContent";
3207
+ value: ({
3208
+ __TYPE__: "ImageLink";
3209
+ } & (({
3210
+ kind: string;
3211
+ id: string;
3212
+ url: string;
3213
+ height: string;
3214
+ width: string;
3215
+ size: string;
3216
+ name: string;
3217
+ } & {
3218
+ date?: string | null | undefined;
3219
+ } & {
3220
+ text?: string;
3221
+ }) | {
3222
+ kind: "image";
3223
+ text: string;
3224
+ })) | ({
3225
+ __TYPE__: "FileLink";
3226
+ } & (({
3227
+ kind: string;
3228
+ id: string;
3229
+ url: string;
3230
+ name: string;
3231
+ size: string;
3232
+ } & {
3233
+ date?: string | null | undefined;
3234
+ } & {
3235
+ text?: string;
3236
+ }) | {
3237
+ kind: "file";
3238
+ text: string;
3239
+ })) | ({
3240
+ __TYPE__: "MediaLink";
3241
+ } & {
3242
+ kind: "media";
3243
+ text: string;
3244
+ }) | ({
3245
+ __TYPE__: "DocumentLink";
3246
+ } & (({
3247
+ id: string;
3248
+ } & {
3249
+ text?: string;
3250
+ }) | {
3251
+ kind: "document";
3252
+ text: string;
3253
+ })) | ({
3254
+ __TYPE__: "ExternalLink";
3255
+ } & (({
3256
+ url: string;
3257
+ } & {
3258
+ kind?: "web";
3259
+ target?: string | null | undefined;
3260
+ preview?: {
3261
+ title?: string;
3262
+ } | null | undefined;
3263
+ } & {
3264
+ text?: string;
3265
+ }) | {
3266
+ kind: "web";
3267
+ text: string;
3268
+ })) | ({
3269
+ __TYPE__: "AnyLink";
3270
+ } & {
3271
+ text: string;
3272
+ });
3273
+ }[];
3274
+ } | import("./fields").GroupContent | {
2759
3275
  __TYPE__: "StructuredTextContent";
2760
3276
  value: (({
2761
3277
  type: "image";
@@ -2785,7 +3301,7 @@ export declare const DocumentLegacy: {
2785
3301
  linkTo?: ({
2786
3302
  __TYPE__: "ImageLink";
2787
3303
  } & {
2788
- kind: "image";
3304
+ kind: string;
2789
3305
  id: string;
2790
3306
  url: string;
2791
3307
  height: string;
@@ -2797,7 +3313,7 @@ export declare const DocumentLegacy: {
2797
3313
  }) | ({
2798
3314
  __TYPE__: "FileLink";
2799
3315
  } & {
2800
- kind: "file";
3316
+ kind: string;
2801
3317
  id: string;
2802
3318
  url: string;
2803
3319
  name: string;
@@ -2856,7 +3372,7 @@ export declare const DocumentLegacy: {
2856
3372
  data: ({
2857
3373
  __TYPE__: "ImageLink";
2858
3374
  } & {
2859
- kind: "image";
3375
+ kind: string;
2860
3376
  id: string;
2861
3377
  url: string;
2862
3378
  height: string;
@@ -2868,7 +3384,7 @@ export declare const DocumentLegacy: {
2868
3384
  }) | ({
2869
3385
  __TYPE__: "FileLink";
2870
3386
  } & {
2871
- kind: "file";
3387
+ kind: string;
2872
3388
  id: string;
2873
3389
  url: string;
2874
3390
  name: string;
@@ -2910,7 +3426,7 @@ export declare const DocumentLegacy: {
2910
3426
  }))[];
2911
3427
  } | {
2912
3428
  __TYPE__: "SeparatorContent";
2913
- } | import("./fields").GroupContent | {
3429
+ } | {
2914
3430
  __TYPE__: "UIDContent";
2915
3431
  value: string;
2916
3432
  } | {
@@ -3036,7 +3552,7 @@ export declare const DocumentLegacy: {
3036
3552
  value: ({
3037
3553
  __TYPE__: "ImageLink";
3038
3554
  } & (({
3039
- kind: "image";
3555
+ kind: string;
3040
3556
  id: string;
3041
3557
  url: string;
3042
3558
  height: string;
@@ -3053,7 +3569,7 @@ export declare const DocumentLegacy: {
3053
3569
  })) | ({
3054
3570
  __TYPE__: "FileLink";
3055
3571
  } & (({
3056
- kind: "file";
3572
+ kind: string;
3057
3573
  id: string;
3058
3574
  url: string;
3059
3575
  name: string;
@@ -3100,6 +3616,78 @@ export declare const DocumentLegacy: {
3100
3616
  text: string;
3101
3617
  });
3102
3618
  } | {
3619
+ __TYPE__: "RepeatableContent";
3620
+ type: "Boolean" | "Color" | "Date" | "Embed" | "GeoPoint" | "Image" | "IntegrationFields" | "Link" | "Number" | "Range" | "StructuredText" | "Select" | "Separator" | "Text" | "Timestamp";
3621
+ value: {
3622
+ __TYPE__: "LinkContent";
3623
+ value: ({
3624
+ __TYPE__: "ImageLink";
3625
+ } & (({
3626
+ kind: string;
3627
+ id: string;
3628
+ url: string;
3629
+ height: string;
3630
+ width: string;
3631
+ size: string;
3632
+ name: string;
3633
+ } & {
3634
+ date?: string | null | undefined;
3635
+ } & {
3636
+ text?: string;
3637
+ }) | {
3638
+ kind: "image";
3639
+ text: string;
3640
+ })) | ({
3641
+ __TYPE__: "FileLink";
3642
+ } & (({
3643
+ kind: string;
3644
+ id: string;
3645
+ url: string;
3646
+ name: string;
3647
+ size: string;
3648
+ } & {
3649
+ date?: string | null | undefined;
3650
+ } & {
3651
+ text?: string;
3652
+ }) | {
3653
+ kind: "file";
3654
+ text: string;
3655
+ })) | ({
3656
+ __TYPE__: "MediaLink";
3657
+ } & {
3658
+ kind: "media";
3659
+ text: string;
3660
+ }) | ({
3661
+ __TYPE__: "DocumentLink";
3662
+ } & (({
3663
+ id: string;
3664
+ } & {
3665
+ text?: string;
3666
+ }) | {
3667
+ kind: "document";
3668
+ text: string;
3669
+ })) | ({
3670
+ __TYPE__: "ExternalLink";
3671
+ } & (({
3672
+ url: string;
3673
+ } & {
3674
+ kind?: "web";
3675
+ target?: string | null | undefined;
3676
+ preview?: {
3677
+ title?: string;
3678
+ } | null | undefined;
3679
+ } & {
3680
+ text?: string;
3681
+ }) | {
3682
+ kind: "web";
3683
+ text: string;
3684
+ })) | ({
3685
+ __TYPE__: "AnyLink";
3686
+ } & {
3687
+ text: string;
3688
+ });
3689
+ }[];
3690
+ } | import("./fields").GroupContent | {
3103
3691
  __TYPE__: "StructuredTextContent";
3104
3692
  value: (({
3105
3693
  type: "image";
@@ -3129,7 +3717,7 @@ export declare const DocumentLegacy: {
3129
3717
  linkTo?: ({
3130
3718
  __TYPE__: "ImageLink";
3131
3719
  } & {
3132
- kind: "image";
3720
+ kind: string;
3133
3721
  id: string;
3134
3722
  url: string;
3135
3723
  height: string;
@@ -3141,7 +3729,7 @@ export declare const DocumentLegacy: {
3141
3729
  }) | ({
3142
3730
  __TYPE__: "FileLink";
3143
3731
  } & {
3144
- kind: "file";
3732
+ kind: string;
3145
3733
  id: string;
3146
3734
  url: string;
3147
3735
  name: string;
@@ -3200,7 +3788,7 @@ export declare const DocumentLegacy: {
3200
3788
  data: ({
3201
3789
  __TYPE__: "ImageLink";
3202
3790
  } & {
3203
- kind: "image";
3791
+ kind: string;
3204
3792
  id: string;
3205
3793
  url: string;
3206
3794
  height: string;
@@ -3212,7 +3800,7 @@ export declare const DocumentLegacy: {
3212
3800
  }) | ({
3213
3801
  __TYPE__: "FileLink";
3214
3802
  } & {
3215
- kind: "file";
3803
+ kind: string;
3216
3804
  id: string;
3217
3805
  url: string;
3218
3806
  name: string;
@@ -3254,7 +3842,7 @@ export declare const DocumentLegacy: {
3254
3842
  }))[];
3255
3843
  } | {
3256
3844
  __TYPE__: "SeparatorContent";
3257
- } | import("./fields").GroupContent | {
3845
+ } | {
3258
3846
  __TYPE__: "CompositeSliceContent";
3259
3847
  nonRepeat: {
3260
3848
  [x: string]: {
@@ -3374,7 +3962,7 @@ export declare const DocumentLegacy: {
3374
3962
  value: ({
3375
3963
  __TYPE__: "ImageLink";
3376
3964
  } & (({
3377
- kind: "image";
3965
+ kind: string;
3378
3966
  id: string;
3379
3967
  url: string;
3380
3968
  height: string;
@@ -3391,7 +3979,7 @@ export declare const DocumentLegacy: {
3391
3979
  })) | ({
3392
3980
  __TYPE__: "FileLink";
3393
3981
  } & (({
3394
- kind: "file";
3982
+ kind: string;
3395
3983
  id: string;
3396
3984
  url: string;
3397
3985
  name: string;
@@ -3437,6 +4025,78 @@ export declare const DocumentLegacy: {
3437
4025
  } & {
3438
4026
  text: string;
3439
4027
  });
4028
+ } | {
4029
+ __TYPE__: "RepeatableContent";
4030
+ type: "Boolean" | "Color" | "Date" | "Embed" | "GeoPoint" | "Image" | "IntegrationFields" | "Link" | "Number" | "Range" | "StructuredText" | "Select" | "Separator" | "Text" | "Timestamp";
4031
+ value: {
4032
+ __TYPE__: "LinkContent";
4033
+ value: ({
4034
+ __TYPE__: "ImageLink";
4035
+ } & (({
4036
+ kind: string;
4037
+ id: string;
4038
+ url: string;
4039
+ height: string;
4040
+ width: string;
4041
+ size: string;
4042
+ name: string;
4043
+ } & {
4044
+ date?: string | null | undefined;
4045
+ } & {
4046
+ text?: string;
4047
+ }) | {
4048
+ kind: "image";
4049
+ text: string;
4050
+ })) | ({
4051
+ __TYPE__: "FileLink";
4052
+ } & (({
4053
+ kind: string;
4054
+ id: string;
4055
+ url: string;
4056
+ name: string;
4057
+ size: string;
4058
+ } & {
4059
+ date?: string | null | undefined;
4060
+ } & {
4061
+ text?: string;
4062
+ }) | {
4063
+ kind: "file";
4064
+ text: string;
4065
+ })) | ({
4066
+ __TYPE__: "MediaLink";
4067
+ } & {
4068
+ kind: "media";
4069
+ text: string;
4070
+ }) | ({
4071
+ __TYPE__: "DocumentLink";
4072
+ } & (({
4073
+ id: string;
4074
+ } & {
4075
+ text?: string;
4076
+ }) | {
4077
+ kind: "document";
4078
+ text: string;
4079
+ })) | ({
4080
+ __TYPE__: "ExternalLink";
4081
+ } & (({
4082
+ url: string;
4083
+ } & {
4084
+ kind?: "web";
4085
+ target?: string | null | undefined;
4086
+ preview?: {
4087
+ title?: string;
4088
+ } | null | undefined;
4089
+ } & {
4090
+ text?: string;
4091
+ }) | {
4092
+ kind: "web";
4093
+ text: string;
4094
+ })) | ({
4095
+ __TYPE__: "AnyLink";
4096
+ } & {
4097
+ text: string;
4098
+ });
4099
+ }[];
3440
4100
  } | {
3441
4101
  __TYPE__: "StructuredTextContent";
3442
4102
  value: (({
@@ -3467,7 +4127,7 @@ export declare const DocumentLegacy: {
3467
4127
  linkTo?: ({
3468
4128
  __TYPE__: "ImageLink";
3469
4129
  } & {
3470
- kind: "image";
4130
+ kind: string;
3471
4131
  id: string;
3472
4132
  url: string;
3473
4133
  height: string;
@@ -3479,7 +4139,7 @@ export declare const DocumentLegacy: {
3479
4139
  }) | ({
3480
4140
  __TYPE__: "FileLink";
3481
4141
  } & {
3482
- kind: "file";
4142
+ kind: string;
3483
4143
  id: string;
3484
4144
  url: string;
3485
4145
  name: string;
@@ -3538,7 +4198,7 @@ export declare const DocumentLegacy: {
3538
4198
  data: ({
3539
4199
  __TYPE__: "ImageLink";
3540
4200
  } & {
3541
- kind: "image";
4201
+ kind: string;
3542
4202
  id: string;
3543
4203
  url: string;
3544
4204
  height: string;
@@ -3550,7 +4210,7 @@ export declare const DocumentLegacy: {
3550
4210
  }) | ({
3551
4211
  __TYPE__: "FileLink";
3552
4212
  } & {
3553
- kind: "file";
4213
+ kind: string;
3554
4214
  id: string;
3555
4215
  url: string;
3556
4216
  name: string;
@@ -3713,7 +4373,7 @@ export declare const DocumentLegacy: {
3713
4373
  value: ({
3714
4374
  __TYPE__: "ImageLink";
3715
4375
  } & (({
3716
- kind: "image";
4376
+ kind: string;
3717
4377
  id: string;
3718
4378
  url: string;
3719
4379
  height: string;
@@ -3730,7 +4390,7 @@ export declare const DocumentLegacy: {
3730
4390
  })) | ({
3731
4391
  __TYPE__: "FileLink";
3732
4392
  } & (({
3733
- kind: "file";
4393
+ kind: string;
3734
4394
  id: string;
3735
4395
  url: string;
3736
4396
  name: string;
@@ -3777,6 +4437,78 @@ export declare const DocumentLegacy: {
3777
4437
  text: string;
3778
4438
  });
3779
4439
  } | {
4440
+ __TYPE__: "RepeatableContent";
4441
+ type: "Boolean" | "Color" | "Date" | "Embed" | "GeoPoint" | "Image" | "IntegrationFields" | "Link" | "Number" | "Range" | "StructuredText" | "Select" | "Separator" | "Text" | "Timestamp";
4442
+ value: {
4443
+ __TYPE__: "LinkContent";
4444
+ value: ({
4445
+ __TYPE__: "ImageLink";
4446
+ } & (({
4447
+ kind: string;
4448
+ id: string;
4449
+ url: string;
4450
+ height: string;
4451
+ width: string;
4452
+ size: string;
4453
+ name: string;
4454
+ } & {
4455
+ date?: string | null | undefined;
4456
+ } & {
4457
+ text?: string;
4458
+ }) | {
4459
+ kind: "image";
4460
+ text: string;
4461
+ })) | ({
4462
+ __TYPE__: "FileLink";
4463
+ } & (({
4464
+ kind: string;
4465
+ id: string;
4466
+ url: string;
4467
+ name: string;
4468
+ size: string;
4469
+ } & {
4470
+ date?: string | null | undefined;
4471
+ } & {
4472
+ text?: string;
4473
+ }) | {
4474
+ kind: "file";
4475
+ text: string;
4476
+ })) | ({
4477
+ __TYPE__: "MediaLink";
4478
+ } & {
4479
+ kind: "media";
4480
+ text: string;
4481
+ }) | ({
4482
+ __TYPE__: "DocumentLink";
4483
+ } & (({
4484
+ id: string;
4485
+ } & {
4486
+ text?: string;
4487
+ }) | {
4488
+ kind: "document";
4489
+ text: string;
4490
+ })) | ({
4491
+ __TYPE__: "ExternalLink";
4492
+ } & (({
4493
+ url: string;
4494
+ } & {
4495
+ kind?: "web";
4496
+ target?: string | null | undefined;
4497
+ preview?: {
4498
+ title?: string;
4499
+ } | null | undefined;
4500
+ } & {
4501
+ text?: string;
4502
+ }) | {
4503
+ kind: "web";
4504
+ text: string;
4505
+ })) | ({
4506
+ __TYPE__: "AnyLink";
4507
+ } & {
4508
+ text: string;
4509
+ });
4510
+ }[];
4511
+ } | import("./fields").GroupContent | {
3780
4512
  __TYPE__: "StructuredTextContent";
3781
4513
  value: (({
3782
4514
  type: "image";
@@ -3806,7 +4538,7 @@ export declare const DocumentLegacy: {
3806
4538
  linkTo?: ({
3807
4539
  __TYPE__: "ImageLink";
3808
4540
  } & {
3809
- kind: "image";
4541
+ kind: string;
3810
4542
  id: string;
3811
4543
  url: string;
3812
4544
  height: string;
@@ -3818,7 +4550,7 @@ export declare const DocumentLegacy: {
3818
4550
  }) | ({
3819
4551
  __TYPE__: "FileLink";
3820
4552
  } & {
3821
- kind: "file";
4553
+ kind: string;
3822
4554
  id: string;
3823
4555
  url: string;
3824
4556
  name: string;
@@ -3877,7 +4609,7 @@ export declare const DocumentLegacy: {
3877
4609
  data: ({
3878
4610
  __TYPE__: "ImageLink";
3879
4611
  } & {
3880
- kind: "image";
4612
+ kind: string;
3881
4613
  id: string;
3882
4614
  url: string;
3883
4615
  height: string;
@@ -3889,7 +4621,7 @@ export declare const DocumentLegacy: {
3889
4621
  }) | ({
3890
4622
  __TYPE__: "FileLink";
3891
4623
  } & {
3892
- kind: "file";
4624
+ kind: string;
3893
4625
  id: string;
3894
4626
  url: string;
3895
4627
  name: string;
@@ -3931,7 +4663,7 @@ export declare const DocumentLegacy: {
3931
4663
  }))[];
3932
4664
  } | {
3933
4665
  __TYPE__: "SeparatorContent";
3934
- } | import("./fields").GroupContent][];
4666
+ }][];
3935
4667
  }[];
3936
4668
  } | {
3937
4669
  __TYPE__: "SharedSliceContent";
@@ -4054,7 +4786,7 @@ export declare const DocumentLegacy: {
4054
4786
  value: ({
4055
4787
  __TYPE__: "ImageLink";
4056
4788
  } & (({
4057
- kind: "image";
4789
+ kind: string;
4058
4790
  id: string;
4059
4791
  url: string;
4060
4792
  height: string;
@@ -4071,7 +4803,7 @@ export declare const DocumentLegacy: {
4071
4803
  })) | ({
4072
4804
  __TYPE__: "FileLink";
4073
4805
  } & (({
4074
- kind: "file";
4806
+ kind: string;
4075
4807
  id: string;
4076
4808
  url: string;
4077
4809
  name: string;
@@ -4118,6 +4850,78 @@ export declare const DocumentLegacy: {
4118
4850
  text: string;
4119
4851
  });
4120
4852
  } | {
4853
+ __TYPE__: "RepeatableContent";
4854
+ type: "Boolean" | "Color" | "Date" | "Embed" | "GeoPoint" | "Image" | "IntegrationFields" | "Link" | "Number" | "Range" | "StructuredText" | "Select" | "Separator" | "Text" | "Timestamp";
4855
+ value: {
4856
+ __TYPE__: "LinkContent";
4857
+ value: ({
4858
+ __TYPE__: "ImageLink";
4859
+ } & (({
4860
+ kind: string;
4861
+ id: string;
4862
+ url: string;
4863
+ height: string;
4864
+ width: string;
4865
+ size: string;
4866
+ name: string;
4867
+ } & {
4868
+ date?: string | null | undefined;
4869
+ } & {
4870
+ text?: string;
4871
+ }) | {
4872
+ kind: "image";
4873
+ text: string;
4874
+ })) | ({
4875
+ __TYPE__: "FileLink";
4876
+ } & (({
4877
+ kind: string;
4878
+ id: string;
4879
+ url: string;
4880
+ name: string;
4881
+ size: string;
4882
+ } & {
4883
+ date?: string | null | undefined;
4884
+ } & {
4885
+ text?: string;
4886
+ }) | {
4887
+ kind: "file";
4888
+ text: string;
4889
+ })) | ({
4890
+ __TYPE__: "MediaLink";
4891
+ } & {
4892
+ kind: "media";
4893
+ text: string;
4894
+ }) | ({
4895
+ __TYPE__: "DocumentLink";
4896
+ } & (({
4897
+ id: string;
4898
+ } & {
4899
+ text?: string;
4900
+ }) | {
4901
+ kind: "document";
4902
+ text: string;
4903
+ })) | ({
4904
+ __TYPE__: "ExternalLink";
4905
+ } & (({
4906
+ url: string;
4907
+ } & {
4908
+ kind?: "web";
4909
+ target?: string | null | undefined;
4910
+ preview?: {
4911
+ title?: string;
4912
+ } | null | undefined;
4913
+ } & {
4914
+ text?: string;
4915
+ }) | {
4916
+ kind: "web";
4917
+ text: string;
4918
+ })) | ({
4919
+ __TYPE__: "AnyLink";
4920
+ } & {
4921
+ text: string;
4922
+ });
4923
+ }[];
4924
+ } | import("./fields").GroupContent | {
4121
4925
  __TYPE__: "StructuredTextContent";
4122
4926
  value: (({
4123
4927
  type: "image";
@@ -4147,7 +4951,7 @@ export declare const DocumentLegacy: {
4147
4951
  linkTo?: ({
4148
4952
  __TYPE__: "ImageLink";
4149
4953
  } & {
4150
- kind: "image";
4954
+ kind: string;
4151
4955
  id: string;
4152
4956
  url: string;
4153
4957
  height: string;
@@ -4159,7 +4963,7 @@ export declare const DocumentLegacy: {
4159
4963
  }) | ({
4160
4964
  __TYPE__: "FileLink";
4161
4965
  } & {
4162
- kind: "file";
4966
+ kind: string;
4163
4967
  id: string;
4164
4968
  url: string;
4165
4969
  name: string;
@@ -4218,7 +5022,7 @@ export declare const DocumentLegacy: {
4218
5022
  data: ({
4219
5023
  __TYPE__: "ImageLink";
4220
5024
  } & {
4221
- kind: "image";
5025
+ kind: string;
4222
5026
  id: string;
4223
5027
  url: string;
4224
5028
  height: string;
@@ -4230,7 +5034,7 @@ export declare const DocumentLegacy: {
4230
5034
  }) | ({
4231
5035
  __TYPE__: "FileLink";
4232
5036
  } & {
4233
- kind: "file";
5037
+ kind: string;
4234
5038
  id: string;
4235
5039
  url: string;
4236
5040
  name: string;
@@ -4272,7 +5076,7 @@ export declare const DocumentLegacy: {
4272
5076
  }))[];
4273
5077
  } | {
4274
5078
  __TYPE__: "SeparatorContent";
4275
- } | import("./fields").GroupContent;
5079
+ };
4276
5080
  };
4277
5081
  items: {
4278
5082
  __TYPE__: "GroupItemContent";
@@ -4393,7 +5197,7 @@ export declare const DocumentLegacy: {
4393
5197
  value: ({
4394
5198
  __TYPE__: "ImageLink";
4395
5199
  } & (({
4396
- kind: "image";
5200
+ kind: string;
4397
5201
  id: string;
4398
5202
  url: string;
4399
5203
  height: string;
@@ -4410,7 +5214,7 @@ export declare const DocumentLegacy: {
4410
5214
  })) | ({
4411
5215
  __TYPE__: "FileLink";
4412
5216
  } & (({
4413
- kind: "file";
5217
+ kind: string;
4414
5218
  id: string;
4415
5219
  url: string;
4416
5220
  name: string;
@@ -4457,6 +5261,78 @@ export declare const DocumentLegacy: {
4457
5261
  text: string;
4458
5262
  });
4459
5263
  } | {
5264
+ __TYPE__: "RepeatableContent";
5265
+ type: "Boolean" | "Color" | "Date" | "Embed" | "GeoPoint" | "Image" | "IntegrationFields" | "Link" | "Number" | "Range" | "StructuredText" | "Select" | "Separator" | "Text" | "Timestamp";
5266
+ value: {
5267
+ __TYPE__: "LinkContent";
5268
+ value: ({
5269
+ __TYPE__: "ImageLink";
5270
+ } & (({
5271
+ kind: string;
5272
+ id: string;
5273
+ url: string;
5274
+ height: string;
5275
+ width: string;
5276
+ size: string;
5277
+ name: string;
5278
+ } & {
5279
+ date?: string | null | undefined;
5280
+ } & {
5281
+ text?: string;
5282
+ }) | {
5283
+ kind: "image";
5284
+ text: string;
5285
+ })) | ({
5286
+ __TYPE__: "FileLink";
5287
+ } & (({
5288
+ kind: string;
5289
+ id: string;
5290
+ url: string;
5291
+ name: string;
5292
+ size: string;
5293
+ } & {
5294
+ date?: string | null | undefined;
5295
+ } & {
5296
+ text?: string;
5297
+ }) | {
5298
+ kind: "file";
5299
+ text: string;
5300
+ })) | ({
5301
+ __TYPE__: "MediaLink";
5302
+ } & {
5303
+ kind: "media";
5304
+ text: string;
5305
+ }) | ({
5306
+ __TYPE__: "DocumentLink";
5307
+ } & (({
5308
+ id: string;
5309
+ } & {
5310
+ text?: string;
5311
+ }) | {
5312
+ kind: "document";
5313
+ text: string;
5314
+ })) | ({
5315
+ __TYPE__: "ExternalLink";
5316
+ } & (({
5317
+ url: string;
5318
+ } & {
5319
+ kind?: "web";
5320
+ target?: string | null | undefined;
5321
+ preview?: {
5322
+ title?: string;
5323
+ } | null | undefined;
5324
+ } & {
5325
+ text?: string;
5326
+ }) | {
5327
+ kind: "web";
5328
+ text: string;
5329
+ })) | ({
5330
+ __TYPE__: "AnyLink";
5331
+ } & {
5332
+ text: string;
5333
+ });
5334
+ }[];
5335
+ } | import("./fields").GroupContent | {
4460
5336
  __TYPE__: "StructuredTextContent";
4461
5337
  value: (({
4462
5338
  type: "image";
@@ -4486,7 +5362,7 @@ export declare const DocumentLegacy: {
4486
5362
  linkTo?: ({
4487
5363
  __TYPE__: "ImageLink";
4488
5364
  } & {
4489
- kind: "image";
5365
+ kind: string;
4490
5366
  id: string;
4491
5367
  url: string;
4492
5368
  height: string;
@@ -4498,7 +5374,7 @@ export declare const DocumentLegacy: {
4498
5374
  }) | ({
4499
5375
  __TYPE__: "FileLink";
4500
5376
  } & {
4501
- kind: "file";
5377
+ kind: string;
4502
5378
  id: string;
4503
5379
  url: string;
4504
5380
  name: string;
@@ -4557,7 +5433,7 @@ export declare const DocumentLegacy: {
4557
5433
  data: ({
4558
5434
  __TYPE__: "ImageLink";
4559
5435
  } & {
4560
- kind: "image";
5436
+ kind: string;
4561
5437
  id: string;
4562
5438
  url: string;
4563
5439
  height: string;
@@ -4569,7 +5445,7 @@ export declare const DocumentLegacy: {
4569
5445
  }) | ({
4570
5446
  __TYPE__: "FileLink";
4571
5447
  } & {
4572
- kind: "file";
5448
+ kind: string;
4573
5449
  id: string;
4574
5450
  url: string;
4575
5451
  name: string;
@@ -4611,7 +5487,7 @@ export declare const DocumentLegacy: {
4611
5487
  }))[];
4612
5488
  } | {
4613
5489
  __TYPE__: "SeparatorContent";
4614
- } | import("./fields").GroupContent][];
5490
+ }][];
4615
5491
  }[];
4616
5492
  };
4617
5493
  }[];
@@ -4768,7 +5644,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
4768
5644
  value: ({
4769
5645
  __TYPE__: "ImageLink";
4770
5646
  } & (({
4771
- kind: "image";
5647
+ kind: string;
4772
5648
  id: string;
4773
5649
  url: string;
4774
5650
  height: string;
@@ -4785,7 +5661,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
4785
5661
  })) | ({
4786
5662
  __TYPE__: "FileLink";
4787
5663
  } & (({
4788
- kind: "file";
5664
+ kind: string;
4789
5665
  id: string;
4790
5666
  url: string;
4791
5667
  name: string;
@@ -4832,6 +5708,78 @@ export declare function migrateDocument(document: Document, customType: StaticCu
4832
5708
  text: string;
4833
5709
  });
4834
5710
  } | {
5711
+ __TYPE__: "RepeatableContent";
5712
+ type: "Boolean" | "Color" | "Date" | "Embed" | "GeoPoint" | "Image" | "IntegrationFields" | "Link" | "Number" | "Range" | "StructuredText" | "Select" | "Separator" | "Text" | "Timestamp";
5713
+ value: {
5714
+ __TYPE__: "LinkContent";
5715
+ value: ({
5716
+ __TYPE__: "ImageLink";
5717
+ } & (({
5718
+ kind: string;
5719
+ id: string;
5720
+ url: string;
5721
+ height: string;
5722
+ width: string;
5723
+ size: string;
5724
+ name: string;
5725
+ } & {
5726
+ date?: string | null | undefined;
5727
+ } & {
5728
+ text?: string;
5729
+ }) | {
5730
+ kind: "image";
5731
+ text: string;
5732
+ })) | ({
5733
+ __TYPE__: "FileLink";
5734
+ } & (({
5735
+ kind: string;
5736
+ id: string;
5737
+ url: string;
5738
+ name: string;
5739
+ size: string;
5740
+ } & {
5741
+ date?: string | null | undefined;
5742
+ } & {
5743
+ text?: string;
5744
+ }) | {
5745
+ kind: "file";
5746
+ text: string;
5747
+ })) | ({
5748
+ __TYPE__: "MediaLink";
5749
+ } & {
5750
+ kind: "media";
5751
+ text: string;
5752
+ }) | ({
5753
+ __TYPE__: "DocumentLink";
5754
+ } & (({
5755
+ id: string;
5756
+ } & {
5757
+ text?: string;
5758
+ }) | {
5759
+ kind: "document";
5760
+ text: string;
5761
+ })) | ({
5762
+ __TYPE__: "ExternalLink";
5763
+ } & (({
5764
+ url: string;
5765
+ } & {
5766
+ kind?: "web";
5767
+ target?: string | null | undefined;
5768
+ preview?: {
5769
+ title?: string;
5770
+ } | null | undefined;
5771
+ } & {
5772
+ text?: string;
5773
+ }) | {
5774
+ kind: "web";
5775
+ text: string;
5776
+ })) | ({
5777
+ __TYPE__: "AnyLink";
5778
+ } & {
5779
+ text: string;
5780
+ });
5781
+ }[];
5782
+ } | import("./fields").GroupContent | {
4835
5783
  __TYPE__: "StructuredTextContent";
4836
5784
  value: (({
4837
5785
  type: "image";
@@ -4861,7 +5809,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
4861
5809
  linkTo?: ({
4862
5810
  __TYPE__: "ImageLink";
4863
5811
  } & {
4864
- kind: "image";
5812
+ kind: string;
4865
5813
  id: string;
4866
5814
  url: string;
4867
5815
  height: string;
@@ -4873,7 +5821,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
4873
5821
  }) | ({
4874
5822
  __TYPE__: "FileLink";
4875
5823
  } & {
4876
- kind: "file";
5824
+ kind: string;
4877
5825
  id: string;
4878
5826
  url: string;
4879
5827
  name: string;
@@ -4932,7 +5880,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
4932
5880
  data: ({
4933
5881
  __TYPE__: "ImageLink";
4934
5882
  } & {
4935
- kind: "image";
5883
+ kind: string;
4936
5884
  id: string;
4937
5885
  url: string;
4938
5886
  height: string;
@@ -4944,7 +5892,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
4944
5892
  }) | ({
4945
5893
  __TYPE__: "FileLink";
4946
5894
  } & {
4947
- kind: "file";
5895
+ kind: string;
4948
5896
  id: string;
4949
5897
  url: string;
4950
5898
  name: string;
@@ -4986,7 +5934,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
4986
5934
  }))[];
4987
5935
  } | {
4988
5936
  __TYPE__: "SeparatorContent";
4989
- } | import("./fields").GroupContent | {
5937
+ } | {
4990
5938
  __TYPE__: "UIDContent";
4991
5939
  value: string;
4992
5940
  } | {
@@ -5112,7 +6060,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5112
6060
  value: ({
5113
6061
  __TYPE__: "ImageLink";
5114
6062
  } & (({
5115
- kind: "image";
6063
+ kind: string;
5116
6064
  id: string;
5117
6065
  url: string;
5118
6066
  height: string;
@@ -5129,7 +6077,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5129
6077
  })) | ({
5130
6078
  __TYPE__: "FileLink";
5131
6079
  } & (({
5132
- kind: "file";
6080
+ kind: string;
5133
6081
  id: string;
5134
6082
  url: string;
5135
6083
  name: string;
@@ -5176,6 +6124,78 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5176
6124
  text: string;
5177
6125
  });
5178
6126
  } | {
6127
+ __TYPE__: "RepeatableContent";
6128
+ type: "Boolean" | "Color" | "Date" | "Embed" | "GeoPoint" | "Image" | "IntegrationFields" | "Link" | "Number" | "Range" | "StructuredText" | "Select" | "Separator" | "Text" | "Timestamp";
6129
+ value: {
6130
+ __TYPE__: "LinkContent";
6131
+ value: ({
6132
+ __TYPE__: "ImageLink";
6133
+ } & (({
6134
+ kind: string;
6135
+ id: string;
6136
+ url: string;
6137
+ height: string;
6138
+ width: string;
6139
+ size: string;
6140
+ name: string;
6141
+ } & {
6142
+ date?: string | null | undefined;
6143
+ } & {
6144
+ text?: string;
6145
+ }) | {
6146
+ kind: "image";
6147
+ text: string;
6148
+ })) | ({
6149
+ __TYPE__: "FileLink";
6150
+ } & (({
6151
+ kind: string;
6152
+ id: string;
6153
+ url: string;
6154
+ name: string;
6155
+ size: string;
6156
+ } & {
6157
+ date?: string | null | undefined;
6158
+ } & {
6159
+ text?: string;
6160
+ }) | {
6161
+ kind: "file";
6162
+ text: string;
6163
+ })) | ({
6164
+ __TYPE__: "MediaLink";
6165
+ } & {
6166
+ kind: "media";
6167
+ text: string;
6168
+ }) | ({
6169
+ __TYPE__: "DocumentLink";
6170
+ } & (({
6171
+ id: string;
6172
+ } & {
6173
+ text?: string;
6174
+ }) | {
6175
+ kind: "document";
6176
+ text: string;
6177
+ })) | ({
6178
+ __TYPE__: "ExternalLink";
6179
+ } & (({
6180
+ url: string;
6181
+ } & {
6182
+ kind?: "web";
6183
+ target?: string | null | undefined;
6184
+ preview?: {
6185
+ title?: string;
6186
+ } | null | undefined;
6187
+ } & {
6188
+ text?: string;
6189
+ }) | {
6190
+ kind: "web";
6191
+ text: string;
6192
+ })) | ({
6193
+ __TYPE__: "AnyLink";
6194
+ } & {
6195
+ text: string;
6196
+ });
6197
+ }[];
6198
+ } | import("./fields").GroupContent | {
5179
6199
  __TYPE__: "StructuredTextContent";
5180
6200
  value: (({
5181
6201
  type: "image";
@@ -5205,7 +6225,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5205
6225
  linkTo?: ({
5206
6226
  __TYPE__: "ImageLink";
5207
6227
  } & {
5208
- kind: "image";
6228
+ kind: string;
5209
6229
  id: string;
5210
6230
  url: string;
5211
6231
  height: string;
@@ -5217,7 +6237,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5217
6237
  }) | ({
5218
6238
  __TYPE__: "FileLink";
5219
6239
  } & {
5220
- kind: "file";
6240
+ kind: string;
5221
6241
  id: string;
5222
6242
  url: string;
5223
6243
  name: string;
@@ -5276,7 +6296,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5276
6296
  data: ({
5277
6297
  __TYPE__: "ImageLink";
5278
6298
  } & {
5279
- kind: "image";
6299
+ kind: string;
5280
6300
  id: string;
5281
6301
  url: string;
5282
6302
  height: string;
@@ -5288,7 +6308,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5288
6308
  }) | ({
5289
6309
  __TYPE__: "FileLink";
5290
6310
  } & {
5291
- kind: "file";
6311
+ kind: string;
5292
6312
  id: string;
5293
6313
  url: string;
5294
6314
  name: string;
@@ -5330,7 +6350,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5330
6350
  }))[];
5331
6351
  } | {
5332
6352
  __TYPE__: "SeparatorContent";
5333
- } | import("./fields").GroupContent | {
6353
+ } | {
5334
6354
  __TYPE__: "CompositeSliceContent";
5335
6355
  nonRepeat: {
5336
6356
  [x: string]: {
@@ -5450,7 +6470,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5450
6470
  value: ({
5451
6471
  __TYPE__: "ImageLink";
5452
6472
  } & (({
5453
- kind: "image";
6473
+ kind: string;
5454
6474
  id: string;
5455
6475
  url: string;
5456
6476
  height: string;
@@ -5467,7 +6487,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5467
6487
  })) | ({
5468
6488
  __TYPE__: "FileLink";
5469
6489
  } & (({
5470
- kind: "file";
6490
+ kind: string;
5471
6491
  id: string;
5472
6492
  url: string;
5473
6493
  name: string;
@@ -5513,6 +6533,78 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5513
6533
  } & {
5514
6534
  text: string;
5515
6535
  });
6536
+ } | {
6537
+ __TYPE__: "RepeatableContent";
6538
+ type: "Boolean" | "Color" | "Date" | "Embed" | "GeoPoint" | "Image" | "IntegrationFields" | "Link" | "Number" | "Range" | "StructuredText" | "Select" | "Separator" | "Text" | "Timestamp";
6539
+ value: {
6540
+ __TYPE__: "LinkContent";
6541
+ value: ({
6542
+ __TYPE__: "ImageLink";
6543
+ } & (({
6544
+ kind: string;
6545
+ id: string;
6546
+ url: string;
6547
+ height: string;
6548
+ width: string;
6549
+ size: string;
6550
+ name: string;
6551
+ } & {
6552
+ date?: string | null | undefined;
6553
+ } & {
6554
+ text?: string;
6555
+ }) | {
6556
+ kind: "image";
6557
+ text: string;
6558
+ })) | ({
6559
+ __TYPE__: "FileLink";
6560
+ } & (({
6561
+ kind: string;
6562
+ id: string;
6563
+ url: string;
6564
+ name: string;
6565
+ size: string;
6566
+ } & {
6567
+ date?: string | null | undefined;
6568
+ } & {
6569
+ text?: string;
6570
+ }) | {
6571
+ kind: "file";
6572
+ text: string;
6573
+ })) | ({
6574
+ __TYPE__: "MediaLink";
6575
+ } & {
6576
+ kind: "media";
6577
+ text: string;
6578
+ }) | ({
6579
+ __TYPE__: "DocumentLink";
6580
+ } & (({
6581
+ id: string;
6582
+ } & {
6583
+ text?: string;
6584
+ }) | {
6585
+ kind: "document";
6586
+ text: string;
6587
+ })) | ({
6588
+ __TYPE__: "ExternalLink";
6589
+ } & (({
6590
+ url: string;
6591
+ } & {
6592
+ kind?: "web";
6593
+ target?: string | null | undefined;
6594
+ preview?: {
6595
+ title?: string;
6596
+ } | null | undefined;
6597
+ } & {
6598
+ text?: string;
6599
+ }) | {
6600
+ kind: "web";
6601
+ text: string;
6602
+ })) | ({
6603
+ __TYPE__: "AnyLink";
6604
+ } & {
6605
+ text: string;
6606
+ });
6607
+ }[];
5516
6608
  } | {
5517
6609
  __TYPE__: "StructuredTextContent";
5518
6610
  value: (({
@@ -5543,7 +6635,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5543
6635
  linkTo?: ({
5544
6636
  __TYPE__: "ImageLink";
5545
6637
  } & {
5546
- kind: "image";
6638
+ kind: string;
5547
6639
  id: string;
5548
6640
  url: string;
5549
6641
  height: string;
@@ -5555,7 +6647,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5555
6647
  }) | ({
5556
6648
  __TYPE__: "FileLink";
5557
6649
  } & {
5558
- kind: "file";
6650
+ kind: string;
5559
6651
  id: string;
5560
6652
  url: string;
5561
6653
  name: string;
@@ -5614,7 +6706,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5614
6706
  data: ({
5615
6707
  __TYPE__: "ImageLink";
5616
6708
  } & {
5617
- kind: "image";
6709
+ kind: string;
5618
6710
  id: string;
5619
6711
  url: string;
5620
6712
  height: string;
@@ -5626,7 +6718,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5626
6718
  }) | ({
5627
6719
  __TYPE__: "FileLink";
5628
6720
  } & {
5629
- kind: "file";
6721
+ kind: string;
5630
6722
  id: string;
5631
6723
  url: string;
5632
6724
  name: string;
@@ -5789,7 +6881,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5789
6881
  value: ({
5790
6882
  __TYPE__: "ImageLink";
5791
6883
  } & (({
5792
- kind: "image";
6884
+ kind: string;
5793
6885
  id: string;
5794
6886
  url: string;
5795
6887
  height: string;
@@ -5806,7 +6898,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5806
6898
  })) | ({
5807
6899
  __TYPE__: "FileLink";
5808
6900
  } & (({
5809
- kind: "file";
6901
+ kind: string;
5810
6902
  id: string;
5811
6903
  url: string;
5812
6904
  name: string;
@@ -5853,6 +6945,78 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5853
6945
  text: string;
5854
6946
  });
5855
6947
  } | {
6948
+ __TYPE__: "RepeatableContent";
6949
+ type: "Boolean" | "Color" | "Date" | "Embed" | "GeoPoint" | "Image" | "IntegrationFields" | "Link" | "Number" | "Range" | "StructuredText" | "Select" | "Separator" | "Text" | "Timestamp";
6950
+ value: {
6951
+ __TYPE__: "LinkContent";
6952
+ value: ({
6953
+ __TYPE__: "ImageLink";
6954
+ } & (({
6955
+ kind: string;
6956
+ id: string;
6957
+ url: string;
6958
+ height: string;
6959
+ width: string;
6960
+ size: string;
6961
+ name: string;
6962
+ } & {
6963
+ date?: string | null | undefined;
6964
+ } & {
6965
+ text?: string;
6966
+ }) | {
6967
+ kind: "image";
6968
+ text: string;
6969
+ })) | ({
6970
+ __TYPE__: "FileLink";
6971
+ } & (({
6972
+ kind: string;
6973
+ id: string;
6974
+ url: string;
6975
+ name: string;
6976
+ size: string;
6977
+ } & {
6978
+ date?: string | null | undefined;
6979
+ } & {
6980
+ text?: string;
6981
+ }) | {
6982
+ kind: "file";
6983
+ text: string;
6984
+ })) | ({
6985
+ __TYPE__: "MediaLink";
6986
+ } & {
6987
+ kind: "media";
6988
+ text: string;
6989
+ }) | ({
6990
+ __TYPE__: "DocumentLink";
6991
+ } & (({
6992
+ id: string;
6993
+ } & {
6994
+ text?: string;
6995
+ }) | {
6996
+ kind: "document";
6997
+ text: string;
6998
+ })) | ({
6999
+ __TYPE__: "ExternalLink";
7000
+ } & (({
7001
+ url: string;
7002
+ } & {
7003
+ kind?: "web";
7004
+ target?: string | null | undefined;
7005
+ preview?: {
7006
+ title?: string;
7007
+ } | null | undefined;
7008
+ } & {
7009
+ text?: string;
7010
+ }) | {
7011
+ kind: "web";
7012
+ text: string;
7013
+ })) | ({
7014
+ __TYPE__: "AnyLink";
7015
+ } & {
7016
+ text: string;
7017
+ });
7018
+ }[];
7019
+ } | import("./fields").GroupContent | {
5856
7020
  __TYPE__: "StructuredTextContent";
5857
7021
  value: (({
5858
7022
  type: "image";
@@ -5882,7 +7046,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5882
7046
  linkTo?: ({
5883
7047
  __TYPE__: "ImageLink";
5884
7048
  } & {
5885
- kind: "image";
7049
+ kind: string;
5886
7050
  id: string;
5887
7051
  url: string;
5888
7052
  height: string;
@@ -5894,7 +7058,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5894
7058
  }) | ({
5895
7059
  __TYPE__: "FileLink";
5896
7060
  } & {
5897
- kind: "file";
7061
+ kind: string;
5898
7062
  id: string;
5899
7063
  url: string;
5900
7064
  name: string;
@@ -5953,7 +7117,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5953
7117
  data: ({
5954
7118
  __TYPE__: "ImageLink";
5955
7119
  } & {
5956
- kind: "image";
7120
+ kind: string;
5957
7121
  id: string;
5958
7122
  url: string;
5959
7123
  height: string;
@@ -5965,7 +7129,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
5965
7129
  }) | ({
5966
7130
  __TYPE__: "FileLink";
5967
7131
  } & {
5968
- kind: "file";
7132
+ kind: string;
5969
7133
  id: string;
5970
7134
  url: string;
5971
7135
  name: string;
@@ -6007,7 +7171,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6007
7171
  }))[];
6008
7172
  } | {
6009
7173
  __TYPE__: "SeparatorContent";
6010
- } | import("./fields").GroupContent][];
7174
+ }][];
6011
7175
  }[];
6012
7176
  } | {
6013
7177
  __TYPE__: "SharedSliceContent";
@@ -6130,7 +7294,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6130
7294
  value: ({
6131
7295
  __TYPE__: "ImageLink";
6132
7296
  } & (({
6133
- kind: "image";
7297
+ kind: string;
6134
7298
  id: string;
6135
7299
  url: string;
6136
7300
  height: string;
@@ -6147,7 +7311,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6147
7311
  })) | ({
6148
7312
  __TYPE__: "FileLink";
6149
7313
  } & (({
6150
- kind: "file";
7314
+ kind: string;
6151
7315
  id: string;
6152
7316
  url: string;
6153
7317
  name: string;
@@ -6194,6 +7358,78 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6194
7358
  text: string;
6195
7359
  });
6196
7360
  } | {
7361
+ __TYPE__: "RepeatableContent";
7362
+ type: "Boolean" | "Color" | "Date" | "Embed" | "GeoPoint" | "Image" | "IntegrationFields" | "Link" | "Number" | "Range" | "StructuredText" | "Select" | "Separator" | "Text" | "Timestamp";
7363
+ value: {
7364
+ __TYPE__: "LinkContent";
7365
+ value: ({
7366
+ __TYPE__: "ImageLink";
7367
+ } & (({
7368
+ kind: string;
7369
+ id: string;
7370
+ url: string;
7371
+ height: string;
7372
+ width: string;
7373
+ size: string;
7374
+ name: string;
7375
+ } & {
7376
+ date?: string | null | undefined;
7377
+ } & {
7378
+ text?: string;
7379
+ }) | {
7380
+ kind: "image";
7381
+ text: string;
7382
+ })) | ({
7383
+ __TYPE__: "FileLink";
7384
+ } & (({
7385
+ kind: string;
7386
+ id: string;
7387
+ url: string;
7388
+ name: string;
7389
+ size: string;
7390
+ } & {
7391
+ date?: string | null | undefined;
7392
+ } & {
7393
+ text?: string;
7394
+ }) | {
7395
+ kind: "file";
7396
+ text: string;
7397
+ })) | ({
7398
+ __TYPE__: "MediaLink";
7399
+ } & {
7400
+ kind: "media";
7401
+ text: string;
7402
+ }) | ({
7403
+ __TYPE__: "DocumentLink";
7404
+ } & (({
7405
+ id: string;
7406
+ } & {
7407
+ text?: string;
7408
+ }) | {
7409
+ kind: "document";
7410
+ text: string;
7411
+ })) | ({
7412
+ __TYPE__: "ExternalLink";
7413
+ } & (({
7414
+ url: string;
7415
+ } & {
7416
+ kind?: "web";
7417
+ target?: string | null | undefined;
7418
+ preview?: {
7419
+ title?: string;
7420
+ } | null | undefined;
7421
+ } & {
7422
+ text?: string;
7423
+ }) | {
7424
+ kind: "web";
7425
+ text: string;
7426
+ })) | ({
7427
+ __TYPE__: "AnyLink";
7428
+ } & {
7429
+ text: string;
7430
+ });
7431
+ }[];
7432
+ } | import("./fields").GroupContent | {
6197
7433
  __TYPE__: "StructuredTextContent";
6198
7434
  value: (({
6199
7435
  type: "image";
@@ -6223,7 +7459,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6223
7459
  linkTo?: ({
6224
7460
  __TYPE__: "ImageLink";
6225
7461
  } & {
6226
- kind: "image";
7462
+ kind: string;
6227
7463
  id: string;
6228
7464
  url: string;
6229
7465
  height: string;
@@ -6235,7 +7471,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6235
7471
  }) | ({
6236
7472
  __TYPE__: "FileLink";
6237
7473
  } & {
6238
- kind: "file";
7474
+ kind: string;
6239
7475
  id: string;
6240
7476
  url: string;
6241
7477
  name: string;
@@ -6294,7 +7530,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6294
7530
  data: ({
6295
7531
  __TYPE__: "ImageLink";
6296
7532
  } & {
6297
- kind: "image";
7533
+ kind: string;
6298
7534
  id: string;
6299
7535
  url: string;
6300
7536
  height: string;
@@ -6306,7 +7542,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6306
7542
  }) | ({
6307
7543
  __TYPE__: "FileLink";
6308
7544
  } & {
6309
- kind: "file";
7545
+ kind: string;
6310
7546
  id: string;
6311
7547
  url: string;
6312
7548
  name: string;
@@ -6348,7 +7584,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6348
7584
  }))[];
6349
7585
  } | {
6350
7586
  __TYPE__: "SeparatorContent";
6351
- } | import("./fields").GroupContent;
7587
+ };
6352
7588
  };
6353
7589
  items: {
6354
7590
  __TYPE__: "GroupItemContent";
@@ -6469,7 +7705,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6469
7705
  value: ({
6470
7706
  __TYPE__: "ImageLink";
6471
7707
  } & (({
6472
- kind: "image";
7708
+ kind: string;
6473
7709
  id: string;
6474
7710
  url: string;
6475
7711
  height: string;
@@ -6486,7 +7722,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6486
7722
  })) | ({
6487
7723
  __TYPE__: "FileLink";
6488
7724
  } & (({
6489
- kind: "file";
7725
+ kind: string;
6490
7726
  id: string;
6491
7727
  url: string;
6492
7728
  name: string;
@@ -6533,6 +7769,78 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6533
7769
  text: string;
6534
7770
  });
6535
7771
  } | {
7772
+ __TYPE__: "RepeatableContent";
7773
+ type: "Boolean" | "Color" | "Date" | "Embed" | "GeoPoint" | "Image" | "IntegrationFields" | "Link" | "Number" | "Range" | "StructuredText" | "Select" | "Separator" | "Text" | "Timestamp";
7774
+ value: {
7775
+ __TYPE__: "LinkContent";
7776
+ value: ({
7777
+ __TYPE__: "ImageLink";
7778
+ } & (({
7779
+ kind: string;
7780
+ id: string;
7781
+ url: string;
7782
+ height: string;
7783
+ width: string;
7784
+ size: string;
7785
+ name: string;
7786
+ } & {
7787
+ date?: string | null | undefined;
7788
+ } & {
7789
+ text?: string;
7790
+ }) | {
7791
+ kind: "image";
7792
+ text: string;
7793
+ })) | ({
7794
+ __TYPE__: "FileLink";
7795
+ } & (({
7796
+ kind: string;
7797
+ id: string;
7798
+ url: string;
7799
+ name: string;
7800
+ size: string;
7801
+ } & {
7802
+ date?: string | null | undefined;
7803
+ } & {
7804
+ text?: string;
7805
+ }) | {
7806
+ kind: "file";
7807
+ text: string;
7808
+ })) | ({
7809
+ __TYPE__: "MediaLink";
7810
+ } & {
7811
+ kind: "media";
7812
+ text: string;
7813
+ }) | ({
7814
+ __TYPE__: "DocumentLink";
7815
+ } & (({
7816
+ id: string;
7817
+ } & {
7818
+ text?: string;
7819
+ }) | {
7820
+ kind: "document";
7821
+ text: string;
7822
+ })) | ({
7823
+ __TYPE__: "ExternalLink";
7824
+ } & (({
7825
+ url: string;
7826
+ } & {
7827
+ kind?: "web";
7828
+ target?: string | null | undefined;
7829
+ preview?: {
7830
+ title?: string;
7831
+ } | null | undefined;
7832
+ } & {
7833
+ text?: string;
7834
+ }) | {
7835
+ kind: "web";
7836
+ text: string;
7837
+ })) | ({
7838
+ __TYPE__: "AnyLink";
7839
+ } & {
7840
+ text: string;
7841
+ });
7842
+ }[];
7843
+ } | import("./fields").GroupContent | {
6536
7844
  __TYPE__: "StructuredTextContent";
6537
7845
  value: (({
6538
7846
  type: "image";
@@ -6562,7 +7870,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6562
7870
  linkTo?: ({
6563
7871
  __TYPE__: "ImageLink";
6564
7872
  } & {
6565
- kind: "image";
7873
+ kind: string;
6566
7874
  id: string;
6567
7875
  url: string;
6568
7876
  height: string;
@@ -6574,7 +7882,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6574
7882
  }) | ({
6575
7883
  __TYPE__: "FileLink";
6576
7884
  } & {
6577
- kind: "file";
7885
+ kind: string;
6578
7886
  id: string;
6579
7887
  url: string;
6580
7888
  name: string;
@@ -6633,7 +7941,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6633
7941
  data: ({
6634
7942
  __TYPE__: "ImageLink";
6635
7943
  } & {
6636
- kind: "image";
7944
+ kind: string;
6637
7945
  id: string;
6638
7946
  url: string;
6639
7947
  height: string;
@@ -6645,7 +7953,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6645
7953
  }) | ({
6646
7954
  __TYPE__: "FileLink";
6647
7955
  } & {
6648
- kind: "file";
7956
+ kind: string;
6649
7957
  id: string;
6650
7958
  url: string;
6651
7959
  name: string;
@@ -6687,7 +7995,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
6687
7995
  }))[];
6688
7996
  } | {
6689
7997
  __TYPE__: "SeparatorContent";
6690
- } | import("./fields").GroupContent][];
7998
+ }][];
6691
7999
  }[];
6692
8000
  };
6693
8001
  }[];