@prismicio/types-internal 2.2.0-traverse.alpha-1 → 2.2.0-traverse.alpha-3

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 (122) hide show
  1. package/lib/_internal/utils.d.ts +21 -4
  2. package/lib/_internal/utils.js +11 -0
  3. package/lib/content/Document.d.ts +2194 -13
  4. package/lib/content/Document.js +64 -36
  5. package/lib/content/fields/GroupContent.d.ts +6 -4
  6. package/lib/content/fields/GroupContent.js +13 -9
  7. package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +9 -6
  8. package/lib/content/fields/slices/Slice/CompositeSliceContent.js +61 -17
  9. package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +8 -6
  10. package/lib/content/fields/slices/Slice/SharedSliceContent.js +26 -18
  11. package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +11 -0
  12. package/lib/content/fields/slices/Slice/SimpleSliceContent.js +100 -1
  13. package/lib/content/fields/slices/SliceItem.d.ts +15 -0
  14. package/lib/content/fields/slices/SliceItem.js +15 -1
  15. package/lib/content/fields/slices/SlicesContent.d.ts +4 -3
  16. package/lib/content/fields/slices/SlicesContent.js +125 -60
  17. package/lib/customtypes/CustomType.d.ts +8 -1
  18. package/lib/customtypes/CustomType.js +18 -1
  19. package/lib/customtypes/Section.d.ts +3 -0
  20. package/lib/customtypes/diff/SharedSlice.d.ts +6 -0
  21. package/lib/customtypes/widgets/Widget.d.ts +3 -0
  22. package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +5 -0
  23. package/lib/customtypes/widgets/slices/SharedSlice.d.ts +8 -0
  24. package/lib/customtypes/widgets/slices/SharedSlice.js +3 -0
  25. package/lib/customtypes/widgets/slices/Slices.d.ts +6 -0
  26. package/lib/import/converters/fields/nestable/Image.d.ts +3 -1
  27. package/lib/import/converters/fields/nestable/Image.js +18 -2
  28. package/lib/import/converters/fields/nestable/Nestable.js +2 -0
  29. package/lib/import/converters/fields/nestable/RichText.d.ts +4 -0
  30. package/lib/import/converters/fields/nestable/RichText.js +55 -0
  31. package/lib/import/converters/fields/nestable/index.d.ts +1 -0
  32. package/lib/import/converters/fields/nestable/index.js +1 -0
  33. package/lib/import/validators/fields/ImportField.d.ts +6 -0
  34. package/lib/import/validators/fields/ImportSlices/SharedSlice/SharedSlice.js +1 -1
  35. package/lib/import/validators/fields/ImportSlices/SharedSlice/fields/SharedSliceType.js +1 -1
  36. package/lib/import/validators/fields/ImportSlices/SharedSlice/fields/SharedSliceVariation.js +1 -1
  37. package/lib/import/validators/fields/ImportSlices/SharedSlice/utils.d.ts +3 -0
  38. package/lib/import/validators/fields/nestable/Embed.d.ts +3 -0
  39. package/lib/import/validators/fields/nestable/Embed.js +3 -8
  40. package/lib/import/validators/fields/nestable/GeoPoint.js +2 -2
  41. package/lib/import/validators/fields/nestable/Image/default.d.ts +22 -0
  42. package/lib/import/validators/fields/nestable/Image/default.js +19 -0
  43. package/lib/import/validators/fields/nestable/Image/index.d.ts +19 -0
  44. package/lib/import/validators/fields/nestable/Image/index.js +22 -22
  45. package/lib/import/validators/fields/nestable/Image/merge.d.ts +23 -0
  46. package/lib/import/validators/fields/nestable/Image/{Decoder.js → merge.js} +18 -14
  47. package/lib/import/validators/fields/nestable/Image/{Validator.d.ts → validators.d.ts} +4 -2
  48. package/lib/import/validators/fields/nestable/Image/{Validator.js → validators.js} +7 -3
  49. package/lib/import/validators/fields/nestable/ImportRichText/ImportBlock.d.ts +6 -0
  50. package/lib/import/validators/fields/nestable/ImportRichText/ImportBlock.js +25 -0
  51. package/lib/import/validators/fields/nestable/ImportRichText/ImportRichText.d.ts +24 -0
  52. package/lib/import/validators/fields/nestable/ImportRichText/ImportRichText.js +26 -0
  53. package/lib/import/validators/fields/nestable/ImportRichText/blocks/ImportBlockType.d.ts +6 -0
  54. package/lib/import/validators/fields/nestable/ImportRichText/blocks/ImportBlockType.js +18 -0
  55. package/lib/import/validators/fields/nestable/ImportRichText/blocks/ImportEmbedBlock.d.ts +10 -0
  56. package/lib/import/validators/fields/nestable/ImportRichText/blocks/ImportEmbedBlock.js +11 -0
  57. package/lib/import/validators/fields/nestable/ImportRichText/blocks/ImportImageBlock.d.ts +8 -0
  58. package/lib/import/validators/fields/nestable/ImportRichText/blocks/ImportImageBlock.js +11 -0
  59. package/lib/import/validators/fields/nestable/ImportRichText/blocks/ImportTextBlock.d.ts +70 -0
  60. package/lib/import/validators/fields/nestable/ImportRichText/blocks/ImportTextBlock.js +43 -0
  61. package/lib/import/validators/fields/nestable/ImportRichText/blocks/Span.d.ts +65 -0
  62. package/lib/import/validators/fields/nestable/ImportRichText/blocks/Span.js +20 -0
  63. package/lib/import/validators/fields/nestable/ImportRichText/blocks/index.d.ts +4 -0
  64. package/lib/import/validators/fields/nestable/ImportRichText/blocks/index.js +7 -0
  65. package/lib/import/validators/fields/nestable/ImportRichText/blocks/spans/HyperlinkSpan.d.ts +24 -0
  66. package/lib/import/validators/fields/nestable/ImportRichText/blocks/spans/HyperlinkSpan.js +18 -0
  67. package/lib/import/validators/fields/nestable/ImportRichText/blocks/spans/SpanLocation.d.ts +5 -0
  68. package/lib/import/validators/fields/nestable/ImportRichText/blocks/spans/SpanLocation.js +10 -0
  69. package/lib/import/validators/fields/nestable/ImportRichText/blocks/spans/TextSpan.d.ts +17 -0
  70. package/lib/import/validators/fields/nestable/ImportRichText/blocks/spans/TextSpan.js +22 -0
  71. package/lib/import/validators/fields/nestable/ImportRichText/blocks/spans/index.d.ts +2 -0
  72. package/lib/import/validators/fields/nestable/ImportRichText/blocks/spans/index.js +5 -0
  73. package/lib/import/validators/fields/nestable/ImportRichText/index.d.ts +2 -0
  74. package/lib/import/validators/fields/nestable/ImportRichText/index.js +7 -0
  75. package/lib/import/validators/fields/nestable/Link.d.ts +21 -6
  76. package/lib/import/validators/fields/nestable/Link.js +8 -8
  77. package/lib/import/validators/fields/nestable/Nestable.d.ts +8 -1
  78. package/lib/import/validators/fields/nestable/Nestable.js +5 -1
  79. package/lib/import/validators/fields/nestable/index.d.ts +2 -1
  80. package/lib/import/validators/fields/nestable/index.js +4 -1
  81. package/package.json +1 -1
  82. package/src/_internal/utils.ts +63 -7
  83. package/src/content/Document.ts +106 -47
  84. package/src/content/fields/GroupContent.ts +25 -12
  85. package/src/content/fields/slices/Slice/CompositeSliceContent.ts +91 -22
  86. package/src/content/fields/slices/Slice/SharedSliceContent.ts +42 -26
  87. package/src/content/fields/slices/Slice/SimpleSliceContent.ts +144 -1
  88. package/src/content/fields/slices/SliceItem.ts +39 -3
  89. package/src/content/fields/slices/SlicesContent.ts +172 -67
  90. package/src/customtypes/CustomType.ts +23 -1
  91. package/src/customtypes/widgets/slices/CompositeSlice.ts +6 -0
  92. package/src/customtypes/widgets/slices/SharedSlice.ts +12 -0
  93. package/src/import/converters/fields/nestable/Image.ts +34 -4
  94. package/src/import/converters/fields/nestable/Nestable.ts +3 -0
  95. package/src/import/converters/fields/nestable/RichText.ts +62 -0
  96. package/src/import/converters/fields/nestable/index.ts +1 -0
  97. package/src/import/validators/fields/ImportSlices/SharedSlice/SharedSlice.ts +1 -1
  98. package/src/import/validators/fields/ImportSlices/SharedSlice/fields/SharedSliceType.ts +1 -1
  99. package/src/import/validators/fields/ImportSlices/SharedSlice/fields/SharedSliceVariation.ts +1 -1
  100. package/src/import/validators/fields/nestable/Embed.ts +4 -17
  101. package/src/import/validators/fields/nestable/GeoPoint.ts +2 -2
  102. package/src/import/validators/fields/nestable/Image/default.ts +25 -0
  103. package/src/import/validators/fields/nestable/Image/index.ts +34 -36
  104. package/src/import/validators/fields/nestable/Image/{Decoder.ts → merge.ts} +23 -20
  105. package/src/import/validators/fields/nestable/Image/{Validator.ts → validators.ts} +9 -2
  106. package/src/import/validators/fields/nestable/ImportRichText/ImportBlock.ts +39 -0
  107. package/src/import/validators/fields/nestable/ImportRichText/ImportRichText.ts +41 -0
  108. package/src/import/validators/fields/nestable/ImportRichText/blocks/ImportBlockType.ts +44 -0
  109. package/src/import/validators/fields/nestable/ImportRichText/blocks/ImportEmbedBlock.ts +13 -0
  110. package/src/import/validators/fields/nestable/ImportRichText/blocks/ImportImageBlock.ts +13 -0
  111. package/src/import/validators/fields/nestable/ImportRichText/blocks/ImportTextBlock.ts +56 -0
  112. package/src/import/validators/fields/nestable/ImportRichText/blocks/Span.ts +44 -0
  113. package/src/import/validators/fields/nestable/ImportRichText/blocks/index.ts +4 -0
  114. package/src/import/validators/fields/nestable/ImportRichText/blocks/spans/HyperlinkSpan.ts +24 -0
  115. package/src/import/validators/fields/nestable/ImportRichText/blocks/spans/SpanLocation.ts +8 -0
  116. package/src/import/validators/fields/nestable/ImportRichText/blocks/spans/TextSpan.ts +26 -0
  117. package/src/import/validators/fields/nestable/ImportRichText/blocks/spans/index.ts +2 -0
  118. package/src/import/validators/fields/nestable/ImportRichText/index.ts +2 -0
  119. package/src/import/validators/fields/nestable/Link.ts +18 -13
  120. package/src/import/validators/fields/nestable/Nestable.ts +6 -1
  121. package/src/import/validators/fields/nestable/index.ts +2 -1
  122. package/lib/import/validators/fields/nestable/Image/Decoder.d.ts +0 -26
@@ -1,8 +1,8 @@
1
1
  import * as t from "io-ts";
2
- import { type TraverseContentFn, ContentPath } from "../_internal/utils";
2
+ import { ContentPath, TraverseSliceContentFn, TraverseWidgetContentFn } from "../_internal/utils";
3
3
  import { WidgetKey } from "../common";
4
- import { type StaticCustomType } from "../customtypes";
5
- import { SliceContent, WidgetContent } from "./fields";
4
+ import { type StaticWidget } from "../customtypes";
5
+ import { WidgetContent } from "./fields";
6
6
  import { FieldOrSliceType, WithTypes } from "./LegacyContentCtx";
7
7
  export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.UnionC<[t.ExactC<t.TypeC<{
8
8
  __TYPE__: t.LiteralC<"GroupContentType">;
@@ -2454,7 +2454,10 @@ declare function extractMetadata(data: {
2454
2454
  slugs: ReadonlyArray<string>;
2455
2455
  uid: string | undefined;
2456
2456
  };
2457
- declare function parseLegacyDocument(legacyDoc: unknown): Document | undefined;
2457
+ declare function parseLegacyDocument(legacyDoc: unknown, customType: {
2458
+ customTypeId: string;
2459
+ fields: Record<string, StaticWidget>;
2460
+ }): Document | undefined;
2458
2461
  declare function encodeToLegacyDocument(document: Document): DocumentLegacy;
2459
2462
  export declare const DocumentLegacy: {
2460
2463
  _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<{
@@ -4643,13 +4646,2191 @@ export declare const DocumentLegacy: {
4643
4646
  * @param transform: A user function that provides a way to transform any kind of content wherever it is in a structured Prismic object content.
4644
4647
  * @returns a transformed document with the user's transformation applied with the transform function
4645
4648
  */
4646
- export declare function traverseDocument(document: Document, model?: StaticCustomType): (transform: TraverseContentFn) => Document;
4647
- /**
4648
- * The goal is to be able to collect all widgets or slices of a given type at any level of nesting inside a prismic content
4649
- *
4650
- * @param document parsed prismic content
4651
- * @param is typeguard to match specifically the type of widget we want to collect
4652
- * @returns a record containing the path of the widget as key and the typed collected content as value
4653
- */
4654
- export declare function collectWidgets<W extends WidgetContent | SliceContent>(document: Document, is: (content: WidgetContent | SliceContent, path: ContentPath) => content is W): Record<string, W>;
4649
+ export declare function traverseDocument({ document, model, }: {
4650
+ document: Document;
4651
+ model?: {
4652
+ customTypeId: string;
4653
+ fields: Record<string, StaticWidget>;
4654
+ };
4655
+ }): ({ transformWidget, transformSlice, }: {
4656
+ transformWidget?: TraverseWidgetContentFn;
4657
+ transformSlice?: TraverseSliceContentFn;
4658
+ }) => Document;
4659
+ export declare function collectWidgets<W extends WidgetContent>(document: Document, is: (content: WidgetContent, path: ContentPath) => content is W): Record<string, W>;
4660
+ export declare function migrateDocument(document: Document, customType: {
4661
+ customTypeId: string;
4662
+ fields: Record<string, StaticWidget>;
4663
+ }): {
4664
+ [x: string]: {
4665
+ type: string;
4666
+ __TYPE__: "EmptyContent";
4667
+ } | {
4668
+ __TYPE__: "BooleanContent";
4669
+ value: boolean;
4670
+ } | ({
4671
+ embed_url: string;
4672
+ type: string;
4673
+ } & {
4674
+ version?: string | number | null;
4675
+ title?: string | null | undefined;
4676
+ author_name?: string | null | undefined;
4677
+ author_url?: string | null | undefined;
4678
+ provider_name?: string | null | undefined;
4679
+ provider_url?: string | null | undefined;
4680
+ cache_age?: string | number | null;
4681
+ thumbnail_url?: string | null | undefined;
4682
+ thumbnail_width?: number | null | undefined;
4683
+ thumbnail_height?: number | null | undefined;
4684
+ html?: string | null | undefined;
4685
+ } & {
4686
+ __TYPE__: "EmbedContent";
4687
+ all: unknown;
4688
+ }) | {
4689
+ type: "Color";
4690
+ value: string;
4691
+ __TYPE__: "FieldContent";
4692
+ } | {
4693
+ type: "Date";
4694
+ value: string;
4695
+ __TYPE__: "FieldContent";
4696
+ } | {
4697
+ type: "Number";
4698
+ value: string;
4699
+ __TYPE__: "FieldContent";
4700
+ } | {
4701
+ type: "Range";
4702
+ value: string;
4703
+ __TYPE__: "FieldContent";
4704
+ } | {
4705
+ type: "Select";
4706
+ value: string;
4707
+ __TYPE__: "FieldContent";
4708
+ } | {
4709
+ type: "Text";
4710
+ value: string;
4711
+ __TYPE__: "FieldContent";
4712
+ } | {
4713
+ type: "Timestamp";
4714
+ value: string;
4715
+ __TYPE__: "FieldContent";
4716
+ } | ({
4717
+ position: {
4718
+ lat: number;
4719
+ lng: number;
4720
+ };
4721
+ } & {
4722
+ __TYPE__: "GeoPointContent";
4723
+ }) | ({
4724
+ origin: {
4725
+ id: string;
4726
+ url: string;
4727
+ width: number;
4728
+ height: number;
4729
+ };
4730
+ width: number;
4731
+ height: number;
4732
+ edit: {
4733
+ zoom: number;
4734
+ crop: {
4735
+ x: number;
4736
+ y: number;
4737
+ };
4738
+ background: string;
4739
+ };
4740
+ } & {
4741
+ url?: string;
4742
+ credits?: string | null;
4743
+ alt?: string | null;
4744
+ provider?: string | null | undefined;
4745
+ } & {
4746
+ thumbnails?: {
4747
+ [x: string]: {
4748
+ origin: {
4749
+ id: string;
4750
+ url: string;
4751
+ width: number;
4752
+ height: number;
4753
+ };
4754
+ width: number;
4755
+ height: number;
4756
+ edit: {
4757
+ zoom: number;
4758
+ crop: {
4759
+ x: number;
4760
+ y: number;
4761
+ };
4762
+ background: string;
4763
+ };
4764
+ } & {
4765
+ url?: string;
4766
+ credits?: string | null;
4767
+ alt?: string | null;
4768
+ provider?: string | null | undefined;
4769
+ };
4770
+ };
4771
+ } & {
4772
+ __TYPE__: "ImageContent";
4773
+ }) | {
4774
+ __TYPE__: "IntegrationFieldsContent";
4775
+ value: string;
4776
+ } | {
4777
+ __TYPE__: "LinkContent";
4778
+ value: ({
4779
+ __TYPE__: "ImageLink";
4780
+ } & {
4781
+ id: string;
4782
+ url: string;
4783
+ height: string;
4784
+ width: string;
4785
+ size: string;
4786
+ name: string;
4787
+ kind: string;
4788
+ } & {
4789
+ date?: string | null | undefined;
4790
+ }) | ({
4791
+ id: string;
4792
+ url: string;
4793
+ name: string;
4794
+ kind: string;
4795
+ size: string;
4796
+ } & {
4797
+ date?: string | null | undefined;
4798
+ } & {
4799
+ __TYPE__: "FileLink";
4800
+ } & {
4801
+ size?: string;
4802
+ }) | ({
4803
+ __TYPE__: "DocumentLink";
4804
+ } & {
4805
+ id: string;
4806
+ }) | ({
4807
+ __TYPE__: "ExternalLink";
4808
+ } & {
4809
+ url: string;
4810
+ } & {
4811
+ kind?: "web";
4812
+ target?: string | null | undefined;
4813
+ preview?: {
4814
+ title?: string;
4815
+ } | null | undefined;
4816
+ });
4817
+ } | {
4818
+ __TYPE__: "StructuredTextContent";
4819
+ value: (({
4820
+ type: "image";
4821
+ data: {
4822
+ origin: {
4823
+ id: string;
4824
+ url: string;
4825
+ width: number;
4826
+ height: number;
4827
+ };
4828
+ width: number;
4829
+ height: number;
4830
+ edit: {
4831
+ zoom: number;
4832
+ crop: {
4833
+ x: number;
4834
+ y: number;
4835
+ };
4836
+ background: string;
4837
+ };
4838
+ } & {
4839
+ url?: string;
4840
+ credits?: string | null;
4841
+ alt?: string | null;
4842
+ provider?: string | null | undefined;
4843
+ } & {
4844
+ linkTo?: ({
4845
+ __TYPE__: "ImageLink";
4846
+ } & {
4847
+ id: string;
4848
+ url: string;
4849
+ height: string;
4850
+ width: string;
4851
+ size: string;
4852
+ name: string;
4853
+ kind: string;
4854
+ } & {
4855
+ date?: string | null | undefined;
4856
+ }) | ({
4857
+ id: string;
4858
+ url: string;
4859
+ name: string;
4860
+ kind: string;
4861
+ size: string;
4862
+ } & {
4863
+ date?: string | null | undefined;
4864
+ } & {
4865
+ __TYPE__: "FileLink";
4866
+ } & {
4867
+ size?: string;
4868
+ }) | ({
4869
+ __TYPE__: "DocumentLink";
4870
+ } & {
4871
+ id: string;
4872
+ }) | ({
4873
+ __TYPE__: "ExternalLink";
4874
+ } & {
4875
+ url: string;
4876
+ } & {
4877
+ kind?: "web";
4878
+ target?: string | null | undefined;
4879
+ preview?: {
4880
+ title?: string;
4881
+ } | null | undefined;
4882
+ }) | null | undefined;
4883
+ };
4884
+ } & {
4885
+ label?: string | null | undefined;
4886
+ direction?: string | null | undefined;
4887
+ }) | ({
4888
+ type: "embed";
4889
+ data: {
4890
+ embed_url: string;
4891
+ type: string;
4892
+ } & {
4893
+ version?: string | number | null;
4894
+ title?: string | null | undefined;
4895
+ author_name?: string | null | undefined;
4896
+ author_url?: string | null | undefined;
4897
+ provider_name?: string | null | undefined;
4898
+ provider_url?: string | null | undefined;
4899
+ cache_age?: string | number | null;
4900
+ thumbnail_url?: string | null | undefined;
4901
+ thumbnail_width?: number | null | undefined;
4902
+ thumbnail_height?: number | null | undefined;
4903
+ html?: string | null | undefined;
4904
+ } & {
4905
+ __TYPE__: "EmbedContent";
4906
+ all: unknown;
4907
+ };
4908
+ } & {
4909
+ label?: string | null | undefined;
4910
+ direction?: string | null | undefined;
4911
+ }) | ({
4912
+ type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
4913
+ content: {
4914
+ text: string;
4915
+ } & {
4916
+ spans?: ({
4917
+ data?: unknown;
4918
+ } & {
4919
+ start: number;
4920
+ end: number;
4921
+ type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
4922
+ })[];
4923
+ };
4924
+ } & {
4925
+ label?: string;
4926
+ direction?: string;
4927
+ }))[];
4928
+ } | {
4929
+ __TYPE__: "SeparatorContent";
4930
+ } | {
4931
+ __TYPE__: "GroupContentType";
4932
+ value: {
4933
+ __TYPE__: "GroupItemContent";
4934
+ value: [string, {
4935
+ type: string;
4936
+ __TYPE__: "EmptyContent";
4937
+ } | {
4938
+ __TYPE__: "BooleanContent";
4939
+ value: boolean;
4940
+ } | ({
4941
+ embed_url: string;
4942
+ type: string;
4943
+ } & {
4944
+ version?: string | number | null;
4945
+ title?: string | null | undefined;
4946
+ author_name?: string | null | undefined;
4947
+ author_url?: string | null | undefined;
4948
+ provider_name?: string | null | undefined;
4949
+ provider_url?: string | null | undefined;
4950
+ cache_age?: string | number | null;
4951
+ thumbnail_url?: string | null | undefined;
4952
+ thumbnail_width?: number | null | undefined;
4953
+ thumbnail_height?: number | null | undefined;
4954
+ html?: string | null | undefined;
4955
+ } & {
4956
+ __TYPE__: "EmbedContent";
4957
+ all: unknown;
4958
+ }) | {
4959
+ type: "Color";
4960
+ value: string;
4961
+ __TYPE__: "FieldContent";
4962
+ } | {
4963
+ type: "Date";
4964
+ value: string;
4965
+ __TYPE__: "FieldContent";
4966
+ } | {
4967
+ type: "Number";
4968
+ value: string;
4969
+ __TYPE__: "FieldContent";
4970
+ } | {
4971
+ type: "Range";
4972
+ value: string;
4973
+ __TYPE__: "FieldContent";
4974
+ } | {
4975
+ type: "Select";
4976
+ value: string;
4977
+ __TYPE__: "FieldContent";
4978
+ } | {
4979
+ type: "Text";
4980
+ value: string;
4981
+ __TYPE__: "FieldContent";
4982
+ } | {
4983
+ type: "Timestamp";
4984
+ value: string;
4985
+ __TYPE__: "FieldContent";
4986
+ } | ({
4987
+ position: {
4988
+ lat: number;
4989
+ lng: number;
4990
+ };
4991
+ } & {
4992
+ __TYPE__: "GeoPointContent";
4993
+ }) | ({
4994
+ origin: {
4995
+ id: string;
4996
+ url: string;
4997
+ width: number;
4998
+ height: number;
4999
+ };
5000
+ width: number;
5001
+ height: number;
5002
+ edit: {
5003
+ zoom: number;
5004
+ crop: {
5005
+ x: number;
5006
+ y: number;
5007
+ };
5008
+ background: string;
5009
+ };
5010
+ } & {
5011
+ url?: string;
5012
+ credits?: string | null;
5013
+ alt?: string | null;
5014
+ provider?: string | null | undefined;
5015
+ } & {
5016
+ thumbnails?: {
5017
+ [x: string]: {
5018
+ origin: {
5019
+ id: string;
5020
+ url: string;
5021
+ width: number;
5022
+ height: number;
5023
+ };
5024
+ width: number;
5025
+ height: number;
5026
+ edit: {
5027
+ zoom: number;
5028
+ crop: {
5029
+ x: number;
5030
+ y: number;
5031
+ };
5032
+ background: string;
5033
+ };
5034
+ } & {
5035
+ url?: string;
5036
+ credits?: string | null;
5037
+ alt?: string | null;
5038
+ provider?: string | null | undefined;
5039
+ };
5040
+ };
5041
+ } & {
5042
+ __TYPE__: "ImageContent";
5043
+ }) | {
5044
+ __TYPE__: "IntegrationFieldsContent";
5045
+ value: string;
5046
+ } | {
5047
+ __TYPE__: "LinkContent";
5048
+ value: ({
5049
+ __TYPE__: "ImageLink";
5050
+ } & {
5051
+ id: string;
5052
+ url: string;
5053
+ height: string;
5054
+ width: string;
5055
+ size: string;
5056
+ name: string;
5057
+ kind: string;
5058
+ } & {
5059
+ date?: string | null | undefined;
5060
+ }) | ({
5061
+ id: string;
5062
+ url: string;
5063
+ name: string;
5064
+ kind: string;
5065
+ size: string;
5066
+ } & {
5067
+ date?: string | null | undefined;
5068
+ } & {
5069
+ __TYPE__: "FileLink";
5070
+ } & {
5071
+ size?: string;
5072
+ }) | ({
5073
+ __TYPE__: "DocumentLink";
5074
+ } & {
5075
+ id: string;
5076
+ }) | ({
5077
+ __TYPE__: "ExternalLink";
5078
+ } & {
5079
+ url: string;
5080
+ } & {
5081
+ kind?: "web";
5082
+ target?: string | null | undefined;
5083
+ preview?: {
5084
+ title?: string;
5085
+ } | null | undefined;
5086
+ });
5087
+ } | {
5088
+ __TYPE__: "StructuredTextContent";
5089
+ value: (({
5090
+ type: "image";
5091
+ data: {
5092
+ origin: {
5093
+ id: string;
5094
+ url: string;
5095
+ width: number;
5096
+ height: number;
5097
+ };
5098
+ width: number;
5099
+ height: number;
5100
+ edit: {
5101
+ zoom: number;
5102
+ crop: {
5103
+ x: number;
5104
+ y: number;
5105
+ };
5106
+ background: string;
5107
+ };
5108
+ } & {
5109
+ url?: string;
5110
+ credits?: string | null;
5111
+ alt?: string | null;
5112
+ provider?: string | null | undefined;
5113
+ } & {
5114
+ linkTo?: ({
5115
+ __TYPE__: "ImageLink";
5116
+ } & {
5117
+ id: string;
5118
+ url: string;
5119
+ height: string;
5120
+ width: string;
5121
+ size: string;
5122
+ name: string;
5123
+ kind: string;
5124
+ } & {
5125
+ date?: string | null | undefined;
5126
+ }) | ({
5127
+ id: string;
5128
+ url: string;
5129
+ name: string;
5130
+ kind: string;
5131
+ size: string;
5132
+ } & {
5133
+ date?: string | null | undefined;
5134
+ } & {
5135
+ __TYPE__: "FileLink";
5136
+ } & {
5137
+ size?: string;
5138
+ }) | ({
5139
+ __TYPE__: "DocumentLink";
5140
+ } & {
5141
+ id: string;
5142
+ }) | ({
5143
+ __TYPE__: "ExternalLink";
5144
+ } & {
5145
+ url: string;
5146
+ } & {
5147
+ kind?: "web";
5148
+ target?: string | null | undefined;
5149
+ preview?: {
5150
+ title?: string;
5151
+ } | null | undefined;
5152
+ }) | null | undefined;
5153
+ };
5154
+ } & {
5155
+ label?: string | null | undefined;
5156
+ direction?: string | null | undefined;
5157
+ }) | ({
5158
+ type: "embed";
5159
+ data: {
5160
+ embed_url: string;
5161
+ type: string;
5162
+ } & {
5163
+ version?: string | number | null;
5164
+ title?: string | null | undefined;
5165
+ author_name?: string | null | undefined;
5166
+ author_url?: string | null | undefined;
5167
+ provider_name?: string | null | undefined;
5168
+ provider_url?: string | null | undefined;
5169
+ cache_age?: string | number | null;
5170
+ thumbnail_url?: string | null | undefined;
5171
+ thumbnail_width?: number | null | undefined;
5172
+ thumbnail_height?: number | null | undefined;
5173
+ html?: string | null | undefined;
5174
+ } & {
5175
+ __TYPE__: "EmbedContent";
5176
+ all: unknown;
5177
+ };
5178
+ } & {
5179
+ label?: string | null | undefined;
5180
+ direction?: string | null | undefined;
5181
+ }) | ({
5182
+ type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
5183
+ content: {
5184
+ text: string;
5185
+ } & {
5186
+ spans?: ({
5187
+ data?: unknown;
5188
+ } & {
5189
+ start: number;
5190
+ end: number;
5191
+ type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
5192
+ })[];
5193
+ };
5194
+ } & {
5195
+ label?: string;
5196
+ direction?: string;
5197
+ }))[];
5198
+ } | {
5199
+ __TYPE__: "SeparatorContent";
5200
+ }][];
5201
+ }[];
5202
+ } | {
5203
+ __TYPE__: "UIDContent";
5204
+ value: string;
5205
+ } | {
5206
+ __TYPE__: "SliceContentType";
5207
+ value: {
5208
+ key: string;
5209
+ name: string;
5210
+ maybeLabel: string | undefined;
5211
+ widget: {
5212
+ type: string;
5213
+ __TYPE__: "EmptyContent";
5214
+ } | {
5215
+ __TYPE__: "BooleanContent";
5216
+ value: boolean;
5217
+ } | ({
5218
+ embed_url: string;
5219
+ type: string;
5220
+ } & {
5221
+ version?: string | number | null;
5222
+ title?: string | null | undefined;
5223
+ author_name?: string | null | undefined;
5224
+ author_url?: string | null | undefined;
5225
+ provider_name?: string | null | undefined;
5226
+ provider_url?: string | null | undefined;
5227
+ cache_age?: string | number | null;
5228
+ thumbnail_url?: string | null | undefined;
5229
+ thumbnail_width?: number | null | undefined;
5230
+ thumbnail_height?: number | null | undefined;
5231
+ html?: string | null | undefined;
5232
+ } & {
5233
+ __TYPE__: "EmbedContent";
5234
+ all: unknown;
5235
+ }) | {
5236
+ type: "Color";
5237
+ value: string;
5238
+ __TYPE__: "FieldContent";
5239
+ } | {
5240
+ type: "Date";
5241
+ value: string;
5242
+ __TYPE__: "FieldContent";
5243
+ } | {
5244
+ type: "Number";
5245
+ value: string;
5246
+ __TYPE__: "FieldContent";
5247
+ } | {
5248
+ type: "Range";
5249
+ value: string;
5250
+ __TYPE__: "FieldContent";
5251
+ } | {
5252
+ type: "Select";
5253
+ value: string;
5254
+ __TYPE__: "FieldContent";
5255
+ } | {
5256
+ type: "Text";
5257
+ value: string;
5258
+ __TYPE__: "FieldContent";
5259
+ } | {
5260
+ type: "Timestamp";
5261
+ value: string;
5262
+ __TYPE__: "FieldContent";
5263
+ } | ({
5264
+ position: {
5265
+ lat: number;
5266
+ lng: number;
5267
+ };
5268
+ } & {
5269
+ __TYPE__: "GeoPointContent";
5270
+ }) | ({
5271
+ origin: {
5272
+ id: string;
5273
+ url: string;
5274
+ width: number;
5275
+ height: number;
5276
+ };
5277
+ width: number;
5278
+ height: number;
5279
+ edit: {
5280
+ zoom: number;
5281
+ crop: {
5282
+ x: number;
5283
+ y: number;
5284
+ };
5285
+ background: string;
5286
+ };
5287
+ } & {
5288
+ url?: string;
5289
+ credits?: string | null;
5290
+ alt?: string | null;
5291
+ provider?: string | null | undefined;
5292
+ } & {
5293
+ thumbnails?: {
5294
+ [x: string]: {
5295
+ origin: {
5296
+ id: string;
5297
+ url: string;
5298
+ width: number;
5299
+ height: number;
5300
+ };
5301
+ width: number;
5302
+ height: number;
5303
+ edit: {
5304
+ zoom: number;
5305
+ crop: {
5306
+ x: number;
5307
+ y: number;
5308
+ };
5309
+ background: string;
5310
+ };
5311
+ } & {
5312
+ url?: string;
5313
+ credits?: string | null;
5314
+ alt?: string | null;
5315
+ provider?: string | null | undefined;
5316
+ };
5317
+ };
5318
+ } & {
5319
+ __TYPE__: "ImageContent";
5320
+ }) | {
5321
+ __TYPE__: "IntegrationFieldsContent";
5322
+ value: string;
5323
+ } | {
5324
+ __TYPE__: "LinkContent";
5325
+ value: ({
5326
+ __TYPE__: "ImageLink";
5327
+ } & {
5328
+ id: string;
5329
+ url: string;
5330
+ height: string;
5331
+ width: string;
5332
+ size: string;
5333
+ name: string;
5334
+ kind: string;
5335
+ } & {
5336
+ date?: string | null | undefined;
5337
+ }) | ({
5338
+ id: string;
5339
+ url: string;
5340
+ name: string;
5341
+ kind: string;
5342
+ size: string;
5343
+ } & {
5344
+ date?: string | null | undefined;
5345
+ } & {
5346
+ __TYPE__: "FileLink";
5347
+ } & {
5348
+ size?: string;
5349
+ }) | ({
5350
+ __TYPE__: "DocumentLink";
5351
+ } & {
5352
+ id: string;
5353
+ }) | ({
5354
+ __TYPE__: "ExternalLink";
5355
+ } & {
5356
+ url: string;
5357
+ } & {
5358
+ kind?: "web";
5359
+ target?: string | null | undefined;
5360
+ preview?: {
5361
+ title?: string;
5362
+ } | null | undefined;
5363
+ });
5364
+ } | {
5365
+ __TYPE__: "StructuredTextContent";
5366
+ value: (({
5367
+ type: "image";
5368
+ data: {
5369
+ origin: {
5370
+ id: string;
5371
+ url: string;
5372
+ width: number;
5373
+ height: number;
5374
+ };
5375
+ width: number;
5376
+ height: number;
5377
+ edit: {
5378
+ zoom: number;
5379
+ crop: {
5380
+ x: number;
5381
+ y: number;
5382
+ };
5383
+ background: string;
5384
+ };
5385
+ } & {
5386
+ url?: string;
5387
+ credits?: string | null;
5388
+ alt?: string | null;
5389
+ provider?: string | null | undefined;
5390
+ } & {
5391
+ linkTo?: ({
5392
+ __TYPE__: "ImageLink";
5393
+ } & {
5394
+ id: string;
5395
+ url: string;
5396
+ height: string;
5397
+ width: string;
5398
+ size: string;
5399
+ name: string;
5400
+ kind: string;
5401
+ } & {
5402
+ date?: string | null | undefined;
5403
+ }) | ({
5404
+ id: string;
5405
+ url: string;
5406
+ name: string;
5407
+ kind: string;
5408
+ size: string;
5409
+ } & {
5410
+ date?: string | null | undefined;
5411
+ } & {
5412
+ __TYPE__: "FileLink";
5413
+ } & {
5414
+ size?: string;
5415
+ }) | ({
5416
+ __TYPE__: "DocumentLink";
5417
+ } & {
5418
+ id: string;
5419
+ }) | ({
5420
+ __TYPE__: "ExternalLink";
5421
+ } & {
5422
+ url: string;
5423
+ } & {
5424
+ kind?: "web";
5425
+ target?: string | null | undefined;
5426
+ preview?: {
5427
+ title?: string;
5428
+ } | null | undefined;
5429
+ }) | null | undefined;
5430
+ };
5431
+ } & {
5432
+ label?: string | null | undefined;
5433
+ direction?: string | null | undefined;
5434
+ }) | ({
5435
+ type: "embed";
5436
+ data: {
5437
+ embed_url: string;
5438
+ type: string;
5439
+ } & {
5440
+ version?: string | number | null;
5441
+ title?: string | null | undefined;
5442
+ author_name?: string | null | undefined;
5443
+ author_url?: string | null | undefined;
5444
+ provider_name?: string | null | undefined;
5445
+ provider_url?: string | null | undefined;
5446
+ cache_age?: string | number | null;
5447
+ thumbnail_url?: string | null | undefined;
5448
+ thumbnail_width?: number | null | undefined;
5449
+ thumbnail_height?: number | null | undefined;
5450
+ html?: string | null | undefined;
5451
+ } & {
5452
+ __TYPE__: "EmbedContent";
5453
+ all: unknown;
5454
+ };
5455
+ } & {
5456
+ label?: string | null | undefined;
5457
+ direction?: string | null | undefined;
5458
+ }) | ({
5459
+ type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
5460
+ content: {
5461
+ text: string;
5462
+ } & {
5463
+ spans?: ({
5464
+ data?: unknown;
5465
+ } & {
5466
+ start: number;
5467
+ end: number;
5468
+ type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
5469
+ })[];
5470
+ };
5471
+ } & {
5472
+ label?: string;
5473
+ direction?: string;
5474
+ }))[];
5475
+ } | {
5476
+ __TYPE__: "SeparatorContent";
5477
+ } | {
5478
+ __TYPE__: "GroupContentType";
5479
+ value: {
5480
+ __TYPE__: "GroupItemContent";
5481
+ value: [string, {
5482
+ type: string;
5483
+ __TYPE__: "EmptyContent";
5484
+ } | {
5485
+ __TYPE__: "BooleanContent";
5486
+ value: boolean;
5487
+ } | ({
5488
+ embed_url: string;
5489
+ type: string;
5490
+ } & {
5491
+ version?: string | number | null;
5492
+ title?: string | null | undefined;
5493
+ author_name?: string | null | undefined;
5494
+ author_url?: string | null | undefined;
5495
+ provider_name?: string | null | undefined;
5496
+ provider_url?: string | null | undefined;
5497
+ cache_age?: string | number | null;
5498
+ thumbnail_url?: string | null | undefined;
5499
+ thumbnail_width?: number | null | undefined;
5500
+ thumbnail_height?: number | null | undefined;
5501
+ html?: string | null | undefined;
5502
+ } & {
5503
+ __TYPE__: "EmbedContent";
5504
+ all: unknown;
5505
+ }) | {
5506
+ type: "Color";
5507
+ value: string;
5508
+ __TYPE__: "FieldContent";
5509
+ } | {
5510
+ type: "Date";
5511
+ value: string;
5512
+ __TYPE__: "FieldContent";
5513
+ } | {
5514
+ type: "Number";
5515
+ value: string;
5516
+ __TYPE__: "FieldContent";
5517
+ } | {
5518
+ type: "Range";
5519
+ value: string;
5520
+ __TYPE__: "FieldContent";
5521
+ } | {
5522
+ type: "Select";
5523
+ value: string;
5524
+ __TYPE__: "FieldContent";
5525
+ } | {
5526
+ type: "Text";
5527
+ value: string;
5528
+ __TYPE__: "FieldContent";
5529
+ } | {
5530
+ type: "Timestamp";
5531
+ value: string;
5532
+ __TYPE__: "FieldContent";
5533
+ } | ({
5534
+ position: {
5535
+ lat: number;
5536
+ lng: number;
5537
+ };
5538
+ } & {
5539
+ __TYPE__: "GeoPointContent";
5540
+ }) | ({
5541
+ origin: {
5542
+ id: string;
5543
+ url: string;
5544
+ width: number;
5545
+ height: number;
5546
+ };
5547
+ width: number;
5548
+ height: number;
5549
+ edit: {
5550
+ zoom: number;
5551
+ crop: {
5552
+ x: number;
5553
+ y: number;
5554
+ };
5555
+ background: string;
5556
+ };
5557
+ } & {
5558
+ url?: string;
5559
+ credits?: string | null;
5560
+ alt?: string | null;
5561
+ provider?: string | null | undefined;
5562
+ } & {
5563
+ thumbnails?: {
5564
+ [x: string]: {
5565
+ origin: {
5566
+ id: string;
5567
+ url: string;
5568
+ width: number;
5569
+ height: number;
5570
+ };
5571
+ width: number;
5572
+ height: number;
5573
+ edit: {
5574
+ zoom: number;
5575
+ crop: {
5576
+ x: number;
5577
+ y: number;
5578
+ };
5579
+ background: string;
5580
+ };
5581
+ } & {
5582
+ url?: string;
5583
+ credits?: string | null;
5584
+ alt?: string | null;
5585
+ provider?: string | null | undefined;
5586
+ };
5587
+ };
5588
+ } & {
5589
+ __TYPE__: "ImageContent";
5590
+ }) | {
5591
+ __TYPE__: "IntegrationFieldsContent";
5592
+ value: string;
5593
+ } | {
5594
+ __TYPE__: "LinkContent";
5595
+ value: ({
5596
+ __TYPE__: "ImageLink";
5597
+ } & {
5598
+ id: string;
5599
+ url: string;
5600
+ height: string;
5601
+ width: string;
5602
+ size: string;
5603
+ name: string;
5604
+ kind: string;
5605
+ } & {
5606
+ date?: string | null | undefined;
5607
+ }) | ({
5608
+ id: string;
5609
+ url: string;
5610
+ name: string;
5611
+ kind: string;
5612
+ size: string;
5613
+ } & {
5614
+ date?: string | null | undefined;
5615
+ } & {
5616
+ __TYPE__: "FileLink";
5617
+ } & {
5618
+ size?: string;
5619
+ }) | ({
5620
+ __TYPE__: "DocumentLink";
5621
+ } & {
5622
+ id: string;
5623
+ }) | ({
5624
+ __TYPE__: "ExternalLink";
5625
+ } & {
5626
+ url: string;
5627
+ } & {
5628
+ kind?: "web";
5629
+ target?: string | null | undefined;
5630
+ preview?: {
5631
+ title?: string;
5632
+ } | null | undefined;
5633
+ });
5634
+ } | {
5635
+ __TYPE__: "StructuredTextContent";
5636
+ value: (({
5637
+ type: "image";
5638
+ data: {
5639
+ origin: {
5640
+ id: string;
5641
+ url: string;
5642
+ width: number;
5643
+ height: number;
5644
+ };
5645
+ width: number;
5646
+ height: number;
5647
+ edit: {
5648
+ zoom: number;
5649
+ crop: {
5650
+ x: number;
5651
+ y: number;
5652
+ };
5653
+ background: string;
5654
+ };
5655
+ } & {
5656
+ url?: string;
5657
+ credits?: string | null;
5658
+ alt?: string | null;
5659
+ provider?: string | null | undefined;
5660
+ } & {
5661
+ linkTo?: ({
5662
+ __TYPE__: "ImageLink";
5663
+ } & {
5664
+ id: string;
5665
+ url: string;
5666
+ height: string;
5667
+ width: string;
5668
+ size: string;
5669
+ name: string;
5670
+ kind: string;
5671
+ } & {
5672
+ date?: string | null | undefined;
5673
+ }) | ({
5674
+ id: string;
5675
+ url: string;
5676
+ name: string;
5677
+ kind: string;
5678
+ size: string;
5679
+ } & {
5680
+ date?: string | null | undefined;
5681
+ } & {
5682
+ __TYPE__: "FileLink";
5683
+ } & {
5684
+ size?: string;
5685
+ }) | ({
5686
+ __TYPE__: "DocumentLink";
5687
+ } & {
5688
+ id: string;
5689
+ }) | ({
5690
+ __TYPE__: "ExternalLink";
5691
+ } & {
5692
+ url: string;
5693
+ } & {
5694
+ kind?: "web";
5695
+ target?: string | null | undefined;
5696
+ preview?: {
5697
+ title?: string;
5698
+ } | null | undefined;
5699
+ }) | null | undefined;
5700
+ };
5701
+ } & {
5702
+ label?: string | null | undefined;
5703
+ direction?: string | null | undefined;
5704
+ }) | ({
5705
+ type: "embed";
5706
+ data: {
5707
+ embed_url: string;
5708
+ type: string;
5709
+ } & {
5710
+ version?: string | number | null;
5711
+ title?: string | null | undefined;
5712
+ author_name?: string | null | undefined;
5713
+ author_url?: string | null | undefined;
5714
+ provider_name?: string | null | undefined;
5715
+ provider_url?: string | null | undefined;
5716
+ cache_age?: string | number | null;
5717
+ thumbnail_url?: string | null | undefined;
5718
+ thumbnail_width?: number | null | undefined;
5719
+ thumbnail_height?: number | null | undefined;
5720
+ html?: string | null | undefined;
5721
+ } & {
5722
+ __TYPE__: "EmbedContent";
5723
+ all: unknown;
5724
+ };
5725
+ } & {
5726
+ label?: string | null | undefined;
5727
+ direction?: string | null | undefined;
5728
+ }) | ({
5729
+ type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
5730
+ content: {
5731
+ text: string;
5732
+ } & {
5733
+ spans?: ({
5734
+ data?: unknown;
5735
+ } & {
5736
+ start: number;
5737
+ end: number;
5738
+ type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
5739
+ })[];
5740
+ };
5741
+ } & {
5742
+ label?: string;
5743
+ direction?: string;
5744
+ }))[];
5745
+ } | {
5746
+ __TYPE__: "SeparatorContent";
5747
+ }][];
5748
+ }[];
5749
+ } | {
5750
+ __TYPE__: "CompositeSliceContent";
5751
+ nonRepeat: {
5752
+ [x: string]: {
5753
+ type: string;
5754
+ __TYPE__: "EmptyContent";
5755
+ } | {
5756
+ __TYPE__: "BooleanContent";
5757
+ value: boolean;
5758
+ } | ({
5759
+ embed_url: string;
5760
+ type: string;
5761
+ } & {
5762
+ version?: string | number | null;
5763
+ title?: string | null | undefined;
5764
+ author_name?: string | null | undefined;
5765
+ author_url?: string | null | undefined;
5766
+ provider_name?: string | null | undefined;
5767
+ provider_url?: string | null | undefined;
5768
+ cache_age?: string | number | null;
5769
+ thumbnail_url?: string | null | undefined;
5770
+ thumbnail_width?: number | null | undefined;
5771
+ thumbnail_height?: number | null | undefined;
5772
+ html?: string | null | undefined;
5773
+ } & {
5774
+ __TYPE__: "EmbedContent";
5775
+ all: unknown;
5776
+ }) | {
5777
+ type: "Color";
5778
+ value: string;
5779
+ __TYPE__: "FieldContent";
5780
+ } | {
5781
+ type: "Date";
5782
+ value: string;
5783
+ __TYPE__: "FieldContent";
5784
+ } | {
5785
+ type: "Number";
5786
+ value: string;
5787
+ __TYPE__: "FieldContent";
5788
+ } | {
5789
+ type: "Range";
5790
+ value: string;
5791
+ __TYPE__: "FieldContent";
5792
+ } | {
5793
+ type: "Select";
5794
+ value: string;
5795
+ __TYPE__: "FieldContent";
5796
+ } | {
5797
+ type: "Text";
5798
+ value: string;
5799
+ __TYPE__: "FieldContent";
5800
+ } | {
5801
+ type: "Timestamp";
5802
+ value: string;
5803
+ __TYPE__: "FieldContent";
5804
+ } | ({
5805
+ position: {
5806
+ lat: number;
5807
+ lng: number;
5808
+ };
5809
+ } & {
5810
+ __TYPE__: "GeoPointContent";
5811
+ }) | ({
5812
+ origin: {
5813
+ id: string;
5814
+ url: string;
5815
+ width: number;
5816
+ height: number;
5817
+ };
5818
+ width: number;
5819
+ height: number;
5820
+ edit: {
5821
+ zoom: number;
5822
+ crop: {
5823
+ x: number;
5824
+ y: number;
5825
+ };
5826
+ background: string;
5827
+ };
5828
+ } & {
5829
+ url?: string;
5830
+ credits?: string | null;
5831
+ alt?: string | null;
5832
+ provider?: string | null | undefined;
5833
+ } & {
5834
+ thumbnails?: {
5835
+ [x: string]: {
5836
+ origin: {
5837
+ id: string;
5838
+ url: string;
5839
+ width: number;
5840
+ height: number;
5841
+ };
5842
+ width: number;
5843
+ height: number;
5844
+ edit: {
5845
+ zoom: number;
5846
+ crop: {
5847
+ x: number;
5848
+ y: number;
5849
+ };
5850
+ background: string;
5851
+ };
5852
+ } & {
5853
+ url?: string;
5854
+ credits?: string | null;
5855
+ alt?: string | null;
5856
+ provider?: string | null | undefined;
5857
+ };
5858
+ };
5859
+ } & {
5860
+ __TYPE__: "ImageContent";
5861
+ }) | {
5862
+ __TYPE__: "IntegrationFieldsContent";
5863
+ value: string;
5864
+ } | {
5865
+ __TYPE__: "LinkContent";
5866
+ value: ({
5867
+ __TYPE__: "ImageLink";
5868
+ } & {
5869
+ id: string;
5870
+ url: string;
5871
+ height: string;
5872
+ width: string;
5873
+ size: string;
5874
+ name: string;
5875
+ kind: string;
5876
+ } & {
5877
+ date?: string | null | undefined;
5878
+ }) | ({
5879
+ id: string;
5880
+ url: string;
5881
+ name: string;
5882
+ kind: string;
5883
+ size: string;
5884
+ } & {
5885
+ date?: string | null | undefined;
5886
+ } & {
5887
+ __TYPE__: "FileLink";
5888
+ } & {
5889
+ size?: string;
5890
+ }) | ({
5891
+ __TYPE__: "DocumentLink";
5892
+ } & {
5893
+ id: string;
5894
+ }) | ({
5895
+ __TYPE__: "ExternalLink";
5896
+ } & {
5897
+ url: string;
5898
+ } & {
5899
+ kind?: "web";
5900
+ target?: string | null | undefined;
5901
+ preview?: {
5902
+ title?: string;
5903
+ } | null | undefined;
5904
+ });
5905
+ } | {
5906
+ __TYPE__: "StructuredTextContent";
5907
+ value: (({
5908
+ type: "image";
5909
+ data: {
5910
+ origin: {
5911
+ id: string;
5912
+ url: string;
5913
+ width: number;
5914
+ height: number;
5915
+ };
5916
+ width: number;
5917
+ height: number;
5918
+ edit: {
5919
+ zoom: number;
5920
+ crop: {
5921
+ x: number;
5922
+ y: number;
5923
+ };
5924
+ background: string;
5925
+ };
5926
+ } & {
5927
+ url?: string;
5928
+ credits?: string | null;
5929
+ alt?: string | null;
5930
+ provider?: string | null | undefined;
5931
+ } & {
5932
+ linkTo?: ({
5933
+ __TYPE__: "ImageLink";
5934
+ } & {
5935
+ id: string;
5936
+ url: string;
5937
+ height: string;
5938
+ width: string;
5939
+ size: string;
5940
+ name: string;
5941
+ kind: string;
5942
+ } & {
5943
+ date?: string | null | undefined;
5944
+ }) | ({
5945
+ id: string;
5946
+ url: string;
5947
+ name: string;
5948
+ kind: string;
5949
+ size: string;
5950
+ } & {
5951
+ date?: string | null | undefined;
5952
+ } & {
5953
+ __TYPE__: "FileLink";
5954
+ } & {
5955
+ size?: string;
5956
+ }) | ({
5957
+ __TYPE__: "DocumentLink";
5958
+ } & {
5959
+ id: string;
5960
+ }) | ({
5961
+ __TYPE__: "ExternalLink";
5962
+ } & {
5963
+ url: string;
5964
+ } & {
5965
+ kind?: "web";
5966
+ target?: string | null | undefined;
5967
+ preview?: {
5968
+ title?: string;
5969
+ } | null | undefined;
5970
+ }) | null | undefined;
5971
+ };
5972
+ } & {
5973
+ label?: string | null | undefined;
5974
+ direction?: string | null | undefined;
5975
+ }) | ({
5976
+ type: "embed";
5977
+ data: {
5978
+ embed_url: string;
5979
+ type: string;
5980
+ } & {
5981
+ version?: string | number | null;
5982
+ title?: string | null | undefined;
5983
+ author_name?: string | null | undefined;
5984
+ author_url?: string | null | undefined;
5985
+ provider_name?: string | null | undefined;
5986
+ provider_url?: string | null | undefined;
5987
+ cache_age?: string | number | null;
5988
+ thumbnail_url?: string | null | undefined;
5989
+ thumbnail_width?: number | null | undefined;
5990
+ thumbnail_height?: number | null | undefined;
5991
+ html?: string | null | undefined;
5992
+ } & {
5993
+ __TYPE__: "EmbedContent";
5994
+ all: unknown;
5995
+ };
5996
+ } & {
5997
+ label?: string | null | undefined;
5998
+ direction?: string | null | undefined;
5999
+ }) | ({
6000
+ type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
6001
+ content: {
6002
+ text: string;
6003
+ } & {
6004
+ spans?: ({
6005
+ data?: unknown;
6006
+ } & {
6007
+ start: number;
6008
+ end: number;
6009
+ type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
6010
+ })[];
6011
+ };
6012
+ } & {
6013
+ label?: string;
6014
+ direction?: string;
6015
+ }))[];
6016
+ } | {
6017
+ __TYPE__: "SeparatorContent";
6018
+ };
6019
+ };
6020
+ repeat: {
6021
+ __TYPE__: "GroupItemContent";
6022
+ value: [string, {
6023
+ type: string;
6024
+ __TYPE__: "EmptyContent";
6025
+ } | {
6026
+ __TYPE__: "BooleanContent";
6027
+ value: boolean;
6028
+ } | ({
6029
+ embed_url: string;
6030
+ type: string;
6031
+ } & {
6032
+ version?: string | number | null;
6033
+ title?: string | null | undefined;
6034
+ author_name?: string | null | undefined;
6035
+ author_url?: string | null | undefined;
6036
+ provider_name?: string | null | undefined;
6037
+ provider_url?: string | null | undefined;
6038
+ cache_age?: string | number | null;
6039
+ thumbnail_url?: string | null | undefined;
6040
+ thumbnail_width?: number | null | undefined;
6041
+ thumbnail_height?: number | null | undefined;
6042
+ html?: string | null | undefined;
6043
+ } & {
6044
+ __TYPE__: "EmbedContent";
6045
+ all: unknown;
6046
+ }) | {
6047
+ type: "Color";
6048
+ value: string;
6049
+ __TYPE__: "FieldContent";
6050
+ } | {
6051
+ type: "Date";
6052
+ value: string;
6053
+ __TYPE__: "FieldContent";
6054
+ } | {
6055
+ type: "Number";
6056
+ value: string;
6057
+ __TYPE__: "FieldContent";
6058
+ } | {
6059
+ type: "Range";
6060
+ value: string;
6061
+ __TYPE__: "FieldContent";
6062
+ } | {
6063
+ type: "Select";
6064
+ value: string;
6065
+ __TYPE__: "FieldContent";
6066
+ } | {
6067
+ type: "Text";
6068
+ value: string;
6069
+ __TYPE__: "FieldContent";
6070
+ } | {
6071
+ type: "Timestamp";
6072
+ value: string;
6073
+ __TYPE__: "FieldContent";
6074
+ } | ({
6075
+ position: {
6076
+ lat: number;
6077
+ lng: number;
6078
+ };
6079
+ } & {
6080
+ __TYPE__: "GeoPointContent";
6081
+ }) | ({
6082
+ origin: {
6083
+ id: string;
6084
+ url: string;
6085
+ width: number;
6086
+ height: number;
6087
+ };
6088
+ width: number;
6089
+ height: number;
6090
+ edit: {
6091
+ zoom: number;
6092
+ crop: {
6093
+ x: number;
6094
+ y: number;
6095
+ };
6096
+ background: string;
6097
+ };
6098
+ } & {
6099
+ url?: string;
6100
+ credits?: string | null;
6101
+ alt?: string | null;
6102
+ provider?: string | null | undefined;
6103
+ } & {
6104
+ thumbnails?: {
6105
+ [x: string]: {
6106
+ origin: {
6107
+ id: string;
6108
+ url: string;
6109
+ width: number;
6110
+ height: number;
6111
+ };
6112
+ width: number;
6113
+ height: number;
6114
+ edit: {
6115
+ zoom: number;
6116
+ crop: {
6117
+ x: number;
6118
+ y: number;
6119
+ };
6120
+ background: string;
6121
+ };
6122
+ } & {
6123
+ url?: string;
6124
+ credits?: string | null;
6125
+ alt?: string | null;
6126
+ provider?: string | null | undefined;
6127
+ };
6128
+ };
6129
+ } & {
6130
+ __TYPE__: "ImageContent";
6131
+ }) | {
6132
+ __TYPE__: "IntegrationFieldsContent";
6133
+ value: string;
6134
+ } | {
6135
+ __TYPE__: "LinkContent";
6136
+ value: ({
6137
+ __TYPE__: "ImageLink";
6138
+ } & {
6139
+ id: string;
6140
+ url: string;
6141
+ height: string;
6142
+ width: string;
6143
+ size: string;
6144
+ name: string;
6145
+ kind: string;
6146
+ } & {
6147
+ date?: string | null | undefined;
6148
+ }) | ({
6149
+ id: string;
6150
+ url: string;
6151
+ name: string;
6152
+ kind: string;
6153
+ size: string;
6154
+ } & {
6155
+ date?: string | null | undefined;
6156
+ } & {
6157
+ __TYPE__: "FileLink";
6158
+ } & {
6159
+ size?: string;
6160
+ }) | ({
6161
+ __TYPE__: "DocumentLink";
6162
+ } & {
6163
+ id: string;
6164
+ }) | ({
6165
+ __TYPE__: "ExternalLink";
6166
+ } & {
6167
+ url: string;
6168
+ } & {
6169
+ kind?: "web";
6170
+ target?: string | null | undefined;
6171
+ preview?: {
6172
+ title?: string;
6173
+ } | null | undefined;
6174
+ });
6175
+ } | {
6176
+ __TYPE__: "StructuredTextContent";
6177
+ value: (({
6178
+ type: "image";
6179
+ data: {
6180
+ origin: {
6181
+ id: string;
6182
+ url: string;
6183
+ width: number;
6184
+ height: number;
6185
+ };
6186
+ width: number;
6187
+ height: number;
6188
+ edit: {
6189
+ zoom: number;
6190
+ crop: {
6191
+ x: number;
6192
+ y: number;
6193
+ };
6194
+ background: string;
6195
+ };
6196
+ } & {
6197
+ url?: string;
6198
+ credits?: string | null;
6199
+ alt?: string | null;
6200
+ provider?: string | null | undefined;
6201
+ } & {
6202
+ linkTo?: ({
6203
+ __TYPE__: "ImageLink";
6204
+ } & {
6205
+ id: string;
6206
+ url: string;
6207
+ height: string;
6208
+ width: string;
6209
+ size: string;
6210
+ name: string;
6211
+ kind: string;
6212
+ } & {
6213
+ date?: string | null | undefined;
6214
+ }) | ({
6215
+ id: string;
6216
+ url: string;
6217
+ name: string;
6218
+ kind: string;
6219
+ size: string;
6220
+ } & {
6221
+ date?: string | null | undefined;
6222
+ } & {
6223
+ __TYPE__: "FileLink";
6224
+ } & {
6225
+ size?: string;
6226
+ }) | ({
6227
+ __TYPE__: "DocumentLink";
6228
+ } & {
6229
+ id: string;
6230
+ }) | ({
6231
+ __TYPE__: "ExternalLink";
6232
+ } & {
6233
+ url: string;
6234
+ } & {
6235
+ kind?: "web";
6236
+ target?: string | null | undefined;
6237
+ preview?: {
6238
+ title?: string;
6239
+ } | null | undefined;
6240
+ }) | null | undefined;
6241
+ };
6242
+ } & {
6243
+ label?: string | null | undefined;
6244
+ direction?: string | null | undefined;
6245
+ }) | ({
6246
+ type: "embed";
6247
+ data: {
6248
+ embed_url: string;
6249
+ type: string;
6250
+ } & {
6251
+ version?: string | number | null;
6252
+ title?: string | null | undefined;
6253
+ author_name?: string | null | undefined;
6254
+ author_url?: string | null | undefined;
6255
+ provider_name?: string | null | undefined;
6256
+ provider_url?: string | null | undefined;
6257
+ cache_age?: string | number | null;
6258
+ thumbnail_url?: string | null | undefined;
6259
+ thumbnail_width?: number | null | undefined;
6260
+ thumbnail_height?: number | null | undefined;
6261
+ html?: string | null | undefined;
6262
+ } & {
6263
+ __TYPE__: "EmbedContent";
6264
+ all: unknown;
6265
+ };
6266
+ } & {
6267
+ label?: string | null | undefined;
6268
+ direction?: string | null | undefined;
6269
+ }) | ({
6270
+ type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
6271
+ content: {
6272
+ text: string;
6273
+ } & {
6274
+ spans?: ({
6275
+ data?: unknown;
6276
+ } & {
6277
+ start: number;
6278
+ end: number;
6279
+ type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
6280
+ })[];
6281
+ };
6282
+ } & {
6283
+ label?: string;
6284
+ direction?: string;
6285
+ }))[];
6286
+ } | {
6287
+ __TYPE__: "SeparatorContent";
6288
+ }][];
6289
+ }[];
6290
+ } | {
6291
+ __TYPE__: "SharedSliceContent";
6292
+ variation: string;
6293
+ primary: {
6294
+ [x: string]: {
6295
+ type: string;
6296
+ __TYPE__: "EmptyContent";
6297
+ } | {
6298
+ __TYPE__: "BooleanContent";
6299
+ value: boolean;
6300
+ } | ({
6301
+ embed_url: string;
6302
+ type: string;
6303
+ } & {
6304
+ version?: string | number | null;
6305
+ title?: string | null | undefined;
6306
+ author_name?: string | null | undefined;
6307
+ author_url?: string | null | undefined;
6308
+ provider_name?: string | null | undefined;
6309
+ provider_url?: string | null | undefined;
6310
+ cache_age?: string | number | null;
6311
+ thumbnail_url?: string | null | undefined;
6312
+ thumbnail_width?: number | null | undefined;
6313
+ thumbnail_height?: number | null | undefined;
6314
+ html?: string | null | undefined;
6315
+ } & {
6316
+ __TYPE__: "EmbedContent";
6317
+ all: unknown;
6318
+ }) | {
6319
+ type: "Color";
6320
+ value: string;
6321
+ __TYPE__: "FieldContent";
6322
+ } | {
6323
+ type: "Date";
6324
+ value: string;
6325
+ __TYPE__: "FieldContent";
6326
+ } | {
6327
+ type: "Number";
6328
+ value: string;
6329
+ __TYPE__: "FieldContent";
6330
+ } | {
6331
+ type: "Range";
6332
+ value: string;
6333
+ __TYPE__: "FieldContent";
6334
+ } | {
6335
+ type: "Select";
6336
+ value: string;
6337
+ __TYPE__: "FieldContent";
6338
+ } | {
6339
+ type: "Text";
6340
+ value: string;
6341
+ __TYPE__: "FieldContent";
6342
+ } | {
6343
+ type: "Timestamp";
6344
+ value: string;
6345
+ __TYPE__: "FieldContent";
6346
+ } | ({
6347
+ position: {
6348
+ lat: number;
6349
+ lng: number;
6350
+ };
6351
+ } & {
6352
+ __TYPE__: "GeoPointContent";
6353
+ }) | ({
6354
+ origin: {
6355
+ id: string;
6356
+ url: string;
6357
+ width: number;
6358
+ height: number;
6359
+ };
6360
+ width: number;
6361
+ height: number;
6362
+ edit: {
6363
+ zoom: number;
6364
+ crop: {
6365
+ x: number;
6366
+ y: number;
6367
+ };
6368
+ background: string;
6369
+ };
6370
+ } & {
6371
+ url?: string;
6372
+ credits?: string | null;
6373
+ alt?: string | null;
6374
+ provider?: string | null | undefined;
6375
+ } & {
6376
+ thumbnails?: {
6377
+ [x: string]: {
6378
+ origin: {
6379
+ id: string;
6380
+ url: string;
6381
+ width: number;
6382
+ height: number;
6383
+ };
6384
+ width: number;
6385
+ height: number;
6386
+ edit: {
6387
+ zoom: number;
6388
+ crop: {
6389
+ x: number;
6390
+ y: number;
6391
+ };
6392
+ background: string;
6393
+ };
6394
+ } & {
6395
+ url?: string;
6396
+ credits?: string | null;
6397
+ alt?: string | null;
6398
+ provider?: string | null | undefined;
6399
+ };
6400
+ };
6401
+ } & {
6402
+ __TYPE__: "ImageContent";
6403
+ }) | {
6404
+ __TYPE__: "IntegrationFieldsContent";
6405
+ value: string;
6406
+ } | {
6407
+ __TYPE__: "LinkContent";
6408
+ value: ({
6409
+ __TYPE__: "ImageLink";
6410
+ } & {
6411
+ id: string;
6412
+ url: string;
6413
+ height: string;
6414
+ width: string;
6415
+ size: string;
6416
+ name: string;
6417
+ kind: string;
6418
+ } & {
6419
+ date?: string | null | undefined;
6420
+ }) | ({
6421
+ id: string;
6422
+ url: string;
6423
+ name: string;
6424
+ kind: string;
6425
+ size: string;
6426
+ } & {
6427
+ date?: string | null | undefined;
6428
+ } & {
6429
+ __TYPE__: "FileLink";
6430
+ } & {
6431
+ size?: string;
6432
+ }) | ({
6433
+ __TYPE__: "DocumentLink";
6434
+ } & {
6435
+ id: string;
6436
+ }) | ({
6437
+ __TYPE__: "ExternalLink";
6438
+ } & {
6439
+ url: string;
6440
+ } & {
6441
+ kind?: "web";
6442
+ target?: string | null | undefined;
6443
+ preview?: {
6444
+ title?: string;
6445
+ } | null | undefined;
6446
+ });
6447
+ } | {
6448
+ __TYPE__: "StructuredTextContent";
6449
+ value: (({
6450
+ type: "image";
6451
+ data: {
6452
+ origin: {
6453
+ id: string;
6454
+ url: string;
6455
+ width: number;
6456
+ height: number;
6457
+ };
6458
+ width: number;
6459
+ height: number;
6460
+ edit: {
6461
+ zoom: number;
6462
+ crop: {
6463
+ x: number;
6464
+ y: number;
6465
+ };
6466
+ background: string;
6467
+ };
6468
+ } & {
6469
+ url?: string;
6470
+ credits?: string | null;
6471
+ alt?: string | null;
6472
+ provider?: string | null | undefined;
6473
+ } & {
6474
+ linkTo?: ({
6475
+ __TYPE__: "ImageLink";
6476
+ } & {
6477
+ id: string;
6478
+ url: string;
6479
+ height: string;
6480
+ width: string;
6481
+ size: string;
6482
+ name: string;
6483
+ kind: string;
6484
+ } & {
6485
+ date?: string | null | undefined;
6486
+ }) | ({
6487
+ id: string;
6488
+ url: string;
6489
+ name: string;
6490
+ kind: string;
6491
+ size: string;
6492
+ } & {
6493
+ date?: string | null | undefined;
6494
+ } & {
6495
+ __TYPE__: "FileLink";
6496
+ } & {
6497
+ size?: string;
6498
+ }) | ({
6499
+ __TYPE__: "DocumentLink";
6500
+ } & {
6501
+ id: string;
6502
+ }) | ({
6503
+ __TYPE__: "ExternalLink";
6504
+ } & {
6505
+ url: string;
6506
+ } & {
6507
+ kind?: "web";
6508
+ target?: string | null | undefined;
6509
+ preview?: {
6510
+ title?: string;
6511
+ } | null | undefined;
6512
+ }) | null | undefined;
6513
+ };
6514
+ } & {
6515
+ label?: string | null | undefined;
6516
+ direction?: string | null | undefined;
6517
+ }) | ({
6518
+ type: "embed";
6519
+ data: {
6520
+ embed_url: string;
6521
+ type: string;
6522
+ } & {
6523
+ version?: string | number | null;
6524
+ title?: string | null | undefined;
6525
+ author_name?: string | null | undefined;
6526
+ author_url?: string | null | undefined;
6527
+ provider_name?: string | null | undefined;
6528
+ provider_url?: string | null | undefined;
6529
+ cache_age?: string | number | null;
6530
+ thumbnail_url?: string | null | undefined;
6531
+ thumbnail_width?: number | null | undefined;
6532
+ thumbnail_height?: number | null | undefined;
6533
+ html?: string | null | undefined;
6534
+ } & {
6535
+ __TYPE__: "EmbedContent";
6536
+ all: unknown;
6537
+ };
6538
+ } & {
6539
+ label?: string | null | undefined;
6540
+ direction?: string | null | undefined;
6541
+ }) | ({
6542
+ type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
6543
+ content: {
6544
+ text: string;
6545
+ } & {
6546
+ spans?: ({
6547
+ data?: unknown;
6548
+ } & {
6549
+ start: number;
6550
+ end: number;
6551
+ type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
6552
+ })[];
6553
+ };
6554
+ } & {
6555
+ label?: string;
6556
+ direction?: string;
6557
+ }))[];
6558
+ } | {
6559
+ __TYPE__: "SeparatorContent";
6560
+ };
6561
+ };
6562
+ items: {
6563
+ __TYPE__: "GroupItemContent";
6564
+ value: [string, {
6565
+ type: string;
6566
+ __TYPE__: "EmptyContent";
6567
+ } | {
6568
+ __TYPE__: "BooleanContent";
6569
+ value: boolean;
6570
+ } | ({
6571
+ embed_url: string;
6572
+ type: string;
6573
+ } & {
6574
+ version?: string | number | null;
6575
+ title?: string | null | undefined;
6576
+ author_name?: string | null | undefined;
6577
+ author_url?: string | null | undefined;
6578
+ provider_name?: string | null | undefined;
6579
+ provider_url?: string | null | undefined;
6580
+ cache_age?: string | number | null;
6581
+ thumbnail_url?: string | null | undefined;
6582
+ thumbnail_width?: number | null | undefined;
6583
+ thumbnail_height?: number | null | undefined;
6584
+ html?: string | null | undefined;
6585
+ } & {
6586
+ __TYPE__: "EmbedContent";
6587
+ all: unknown;
6588
+ }) | {
6589
+ type: "Color";
6590
+ value: string;
6591
+ __TYPE__: "FieldContent";
6592
+ } | {
6593
+ type: "Date";
6594
+ value: string;
6595
+ __TYPE__: "FieldContent";
6596
+ } | {
6597
+ type: "Number";
6598
+ value: string;
6599
+ __TYPE__: "FieldContent";
6600
+ } | {
6601
+ type: "Range";
6602
+ value: string;
6603
+ __TYPE__: "FieldContent";
6604
+ } | {
6605
+ type: "Select";
6606
+ value: string;
6607
+ __TYPE__: "FieldContent";
6608
+ } | {
6609
+ type: "Text";
6610
+ value: string;
6611
+ __TYPE__: "FieldContent";
6612
+ } | {
6613
+ type: "Timestamp";
6614
+ value: string;
6615
+ __TYPE__: "FieldContent";
6616
+ } | ({
6617
+ position: {
6618
+ lat: number;
6619
+ lng: number;
6620
+ };
6621
+ } & {
6622
+ __TYPE__: "GeoPointContent";
6623
+ }) | ({
6624
+ origin: {
6625
+ id: string;
6626
+ url: string;
6627
+ width: number;
6628
+ height: number;
6629
+ };
6630
+ width: number;
6631
+ height: number;
6632
+ edit: {
6633
+ zoom: number;
6634
+ crop: {
6635
+ x: number;
6636
+ y: number;
6637
+ };
6638
+ background: string;
6639
+ };
6640
+ } & {
6641
+ url?: string;
6642
+ credits?: string | null;
6643
+ alt?: string | null;
6644
+ provider?: string | null | undefined;
6645
+ } & {
6646
+ thumbnails?: {
6647
+ [x: string]: {
6648
+ origin: {
6649
+ id: string;
6650
+ url: string;
6651
+ width: number;
6652
+ height: number;
6653
+ };
6654
+ width: number;
6655
+ height: number;
6656
+ edit: {
6657
+ zoom: number;
6658
+ crop: {
6659
+ x: number;
6660
+ y: number;
6661
+ };
6662
+ background: string;
6663
+ };
6664
+ } & {
6665
+ url?: string;
6666
+ credits?: string | null;
6667
+ alt?: string | null;
6668
+ provider?: string | null | undefined;
6669
+ };
6670
+ };
6671
+ } & {
6672
+ __TYPE__: "ImageContent";
6673
+ }) | {
6674
+ __TYPE__: "IntegrationFieldsContent";
6675
+ value: string;
6676
+ } | {
6677
+ __TYPE__: "LinkContent";
6678
+ value: ({
6679
+ __TYPE__: "ImageLink";
6680
+ } & {
6681
+ id: string;
6682
+ url: string;
6683
+ height: string;
6684
+ width: string;
6685
+ size: string;
6686
+ name: string;
6687
+ kind: string;
6688
+ } & {
6689
+ date?: string | null | undefined;
6690
+ }) | ({
6691
+ id: string;
6692
+ url: string;
6693
+ name: string;
6694
+ kind: string;
6695
+ size: string;
6696
+ } & {
6697
+ date?: string | null | undefined;
6698
+ } & {
6699
+ __TYPE__: "FileLink";
6700
+ } & {
6701
+ size?: string;
6702
+ }) | ({
6703
+ __TYPE__: "DocumentLink";
6704
+ } & {
6705
+ id: string;
6706
+ }) | ({
6707
+ __TYPE__: "ExternalLink";
6708
+ } & {
6709
+ url: string;
6710
+ } & {
6711
+ kind?: "web";
6712
+ target?: string | null | undefined;
6713
+ preview?: {
6714
+ title?: string;
6715
+ } | null | undefined;
6716
+ });
6717
+ } | {
6718
+ __TYPE__: "StructuredTextContent";
6719
+ value: (({
6720
+ type: "image";
6721
+ data: {
6722
+ origin: {
6723
+ id: string;
6724
+ url: string;
6725
+ width: number;
6726
+ height: number;
6727
+ };
6728
+ width: number;
6729
+ height: number;
6730
+ edit: {
6731
+ zoom: number;
6732
+ crop: {
6733
+ x: number;
6734
+ y: number;
6735
+ };
6736
+ background: string;
6737
+ };
6738
+ } & {
6739
+ url?: string;
6740
+ credits?: string | null;
6741
+ alt?: string | null;
6742
+ provider?: string | null | undefined;
6743
+ } & {
6744
+ linkTo?: ({
6745
+ __TYPE__: "ImageLink";
6746
+ } & {
6747
+ id: string;
6748
+ url: string;
6749
+ height: string;
6750
+ width: string;
6751
+ size: string;
6752
+ name: string;
6753
+ kind: string;
6754
+ } & {
6755
+ date?: string | null | undefined;
6756
+ }) | ({
6757
+ id: string;
6758
+ url: string;
6759
+ name: string;
6760
+ kind: string;
6761
+ size: string;
6762
+ } & {
6763
+ date?: string | null | undefined;
6764
+ } & {
6765
+ __TYPE__: "FileLink";
6766
+ } & {
6767
+ size?: string;
6768
+ }) | ({
6769
+ __TYPE__: "DocumentLink";
6770
+ } & {
6771
+ id: string;
6772
+ }) | ({
6773
+ __TYPE__: "ExternalLink";
6774
+ } & {
6775
+ url: string;
6776
+ } & {
6777
+ kind?: "web";
6778
+ target?: string | null | undefined;
6779
+ preview?: {
6780
+ title?: string;
6781
+ } | null | undefined;
6782
+ }) | null | undefined;
6783
+ };
6784
+ } & {
6785
+ label?: string | null | undefined;
6786
+ direction?: string | null | undefined;
6787
+ }) | ({
6788
+ type: "embed";
6789
+ data: {
6790
+ embed_url: string;
6791
+ type: string;
6792
+ } & {
6793
+ version?: string | number | null;
6794
+ title?: string | null | undefined;
6795
+ author_name?: string | null | undefined;
6796
+ author_url?: string | null | undefined;
6797
+ provider_name?: string | null | undefined;
6798
+ provider_url?: string | null | undefined;
6799
+ cache_age?: string | number | null;
6800
+ thumbnail_url?: string | null | undefined;
6801
+ thumbnail_width?: number | null | undefined;
6802
+ thumbnail_height?: number | null | undefined;
6803
+ html?: string | null | undefined;
6804
+ } & {
6805
+ __TYPE__: "EmbedContent";
6806
+ all: unknown;
6807
+ };
6808
+ } & {
6809
+ label?: string | null | undefined;
6810
+ direction?: string | null | undefined;
6811
+ }) | ({
6812
+ type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
6813
+ content: {
6814
+ text: string;
6815
+ } & {
6816
+ spans?: ({
6817
+ data?: unknown;
6818
+ } & {
6819
+ start: number;
6820
+ end: number;
6821
+ type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
6822
+ })[];
6823
+ };
6824
+ } & {
6825
+ label?: string;
6826
+ direction?: string;
6827
+ }))[];
6828
+ } | {
6829
+ __TYPE__: "SeparatorContent";
6830
+ }][];
6831
+ }[];
6832
+ };
6833
+ }[];
6834
+ };
6835
+ };
4655
6836
  export {};