@prismicio/types-internal 4.0.0-pr.6.e3136c3 → 4.0.0-pr.7.9dec8db

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 (164) hide show
  1. package/README.md +5 -5
  2. package/dist/content/codec/link.js +8 -8
  3. package/dist/content/codec/link.js.map +1 -1
  4. package/dist/content/codec/richText.js +2 -2
  5. package/dist/content/codec/richText.js.map +1 -1
  6. package/dist/content/document.d.ts +2 -3019
  7. package/dist/content/document.d.ts.map +1 -1
  8. package/dist/content/field.d.ts +1 -30
  9. package/dist/content/field.d.ts.map +1 -1
  10. package/dist/content/field.js.map +1 -1
  11. package/dist/content/group.d.ts +2 -1
  12. package/dist/content/group.d.ts.map +1 -1
  13. package/dist/content/group.js.map +1 -1
  14. package/dist/content/legacy/boolean.d.ts +1 -0
  15. package/dist/content/legacy/embed.d.ts +1 -0
  16. package/dist/content/legacy/empty.d.ts +1 -0
  17. package/dist/content/legacy/field.d.ts +1 -0
  18. package/dist/content/legacy/geopoint.d.ts +1 -0
  19. package/dist/content/legacy/group.d.ts +9 -0
  20. package/dist/content/legacy/group.d.ts.map +1 -0
  21. package/dist/content/legacy/group.js.map +1 -1
  22. package/dist/content/legacy/integrationField.d.ts +1 -0
  23. package/dist/content/legacy/link.d.ts +41 -0
  24. package/dist/content/legacy/link.d.ts.map +1 -0
  25. package/dist/content/legacy/link.js.map +1 -1
  26. package/dist/content/legacy/nestable.d.ts +1 -0
  27. package/dist/content/legacy/nestable.js.map +1 -1
  28. package/dist/content/legacy/repeatable.d.ts +1 -0
  29. package/dist/content/legacy/repeatable.js +2 -8
  30. package/dist/content/legacy/repeatable.js.map +1 -1
  31. package/dist/content/legacy/richText.d.ts +109 -0
  32. package/dist/content/legacy/richText.d.ts.map +1 -0
  33. package/dist/content/legacy/richText.js +3 -3
  34. package/dist/content/legacy/richText.js.map +1 -1
  35. package/dist/content/legacy/separator.d.ts +1 -0
  36. package/dist/content/legacy/slice.js +2 -3
  37. package/dist/content/legacy/slice.js.map +1 -1
  38. package/dist/content/legacy/table.d.ts +1 -0
  39. package/dist/content/link.d.ts +74 -99
  40. package/dist/content/link.d.ts.map +1 -1
  41. package/dist/content/link.js +2 -2
  42. package/dist/content/link.js.map +1 -1
  43. package/dist/content/nestable.d.ts +13 -749
  44. package/dist/content/nestable.d.ts.map +1 -1
  45. package/dist/content/nestable.js +1 -0
  46. package/dist/content/nestable.js.map +1 -1
  47. package/dist/content/repeatable.d.ts +3 -98
  48. package/dist/content/repeatable.d.ts.map +1 -1
  49. package/dist/content/richText.d.ts +81 -131
  50. package/dist/content/richText.d.ts.map +1 -1
  51. package/dist/content/richText.js +5 -4
  52. package/dist/content/richText.js.map +1 -1
  53. package/dist/content/slice.d.ts +6 -4509
  54. package/dist/content/slice.d.ts.map +1 -1
  55. package/dist/content/slice.js.map +1 -1
  56. package/dist/content/slices.d.ts +8 -6765
  57. package/dist/content/slices.d.ts.map +1 -1
  58. package/dist/content/table.d.ts +2 -134
  59. package/dist/content/table.d.ts.map +1 -1
  60. package/dist/content/widget.d.ts +5 -3020
  61. package/dist/content/widget.d.ts.map +1 -1
  62. package/dist/content/widget.js.map +1 -1
  63. package/dist/helpers/contentPath.js +1 -1
  64. package/dist/helpers/customTypeModel.d.ts +3 -2
  65. package/dist/helpers/customTypeModel.d.ts.map +1 -1
  66. package/dist/helpers/customTypeModel.js +31 -1
  67. package/dist/helpers/customTypeModel.js.map +1 -1
  68. package/dist/helpers/documentContent.d.ts +5 -10
  69. package/dist/helpers/documentContent.d.ts.map +1 -1
  70. package/dist/helpers/documentContent.js +18 -5
  71. package/dist/helpers/documentContent.js.map +1 -1
  72. package/dist/helpers/sliceContent.d.ts +12 -0
  73. package/dist/helpers/sliceContent.d.ts.map +1 -0
  74. package/dist/helpers/sliceContent.js +60 -0
  75. package/dist/helpers/sliceContent.js.map +1 -0
  76. package/dist/helpers/traverseContent.d.ts +21 -22
  77. package/dist/helpers/traverseContent.d.ts.map +1 -1
  78. package/dist/helpers/traverseContent.js +54 -22
  79. package/dist/helpers/traverseContent.js.map +1 -1
  80. package/dist/helpers/traverseContentWithModel.d.ts +20 -21
  81. package/dist/helpers/traverseContentWithModel.d.ts.map +1 -1
  82. package/dist/helpers/traverseContentWithModel.js +64 -38
  83. package/dist/helpers/traverseContentWithModel.js.map +1 -1
  84. package/dist/index.d.ts +26 -25
  85. package/dist/index.js +3 -1
  86. package/dist/io-ts.d.ts +3304 -70918
  87. package/dist/io-ts.d.ts.map +1 -1
  88. package/dist/io-ts.js +125 -122
  89. package/dist/io-ts.js.map +1 -1
  90. package/dist/model/customType.d.ts +3 -3329
  91. package/dist/model/customType.d.ts.map +1 -1
  92. package/dist/model/group.d.ts +391 -392
  93. package/dist/model/group.d.ts.map +1 -1
  94. package/dist/model/group.js.map +1 -1
  95. package/dist/model/image.d.ts +4 -4
  96. package/dist/model/image.js.map +1 -1
  97. package/dist/model/link.d.ts +18 -18
  98. package/dist/model/link.d.ts.map +1 -1
  99. package/dist/model/link.js +7 -7
  100. package/dist/model/link.js.map +1 -1
  101. package/dist/model/nestable.d.ts +17 -178
  102. package/dist/model/nestable.d.ts.map +1 -1
  103. package/dist/model/nestable.js +3 -3
  104. package/dist/model/nestable.js.map +1 -1
  105. package/dist/model/richText.d.ts +3 -7
  106. package/dist/model/richText.d.ts.map +1 -1
  107. package/dist/model/richText.js +4 -3
  108. package/dist/model/richText.js.map +1 -1
  109. package/dist/model/section.d.ts +3 -3329
  110. package/dist/model/section.d.ts.map +1 -1
  111. package/dist/model/select.d.ts +1 -1
  112. package/dist/model/select.js +1 -1
  113. package/dist/model/select.js.map +1 -1
  114. package/dist/model/slice.d.ts +861 -3800
  115. package/dist/model/slice.d.ts.map +1 -1
  116. package/dist/model/slice.js +7 -2
  117. package/dist/model/slice.js.map +1 -1
  118. package/dist/model/slices.d.ts +3 -2195
  119. package/dist/model/slices.d.ts.map +1 -1
  120. package/dist/model/table.d.ts +2 -1
  121. package/dist/model/table.d.ts.map +1 -1
  122. package/dist/model/table.js +9 -7
  123. package/dist/model/table.js.map +1 -1
  124. package/dist/model/widget.d.ts +14 -3339
  125. package/dist/model/widget.d.ts.map +1 -1
  126. package/dist/model/widget.js.map +1 -1
  127. package/dist/zod4.d.ts +1345 -34797
  128. package/dist/zod4.d.ts.map +1 -1
  129. package/dist/zod4.js +125 -122
  130. package/dist/zod4.js.map +1 -1
  131. package/package.json +3 -2
  132. package/src/content/codec/link.ts +8 -8
  133. package/src/content/codec/richText.ts +10 -6
  134. package/src/content/field.ts +9 -2
  135. package/src/content/group.ts +5 -2
  136. package/src/content/legacy/group.ts +12 -4
  137. package/src/content/legacy/link.ts +32 -9
  138. package/src/content/legacy/nestable.ts +26 -2
  139. package/src/content/legacy/repeatable.ts +3 -16
  140. package/src/content/legacy/richText.ts +40 -7
  141. package/src/content/legacy/slice.ts +8 -7
  142. package/src/content/legacy/widget.ts +6 -2
  143. package/src/content/link.ts +32 -9
  144. package/src/content/nestable.ts +42 -2
  145. package/src/content/richText.ts +31 -9
  146. package/src/content/slice.ts +2 -2
  147. package/src/content/widget.ts +6 -2
  148. package/src/helpers/customTypeModel.ts +44 -0
  149. package/src/helpers/documentContent.ts +45 -17
  150. package/src/helpers/sliceContent.ts +86 -0
  151. package/src/helpers/traverseContent.ts +108 -41
  152. package/src/helpers/traverseContentWithModel.ts +91 -60
  153. package/src/index.ts +5 -2
  154. package/src/io-ts.ts +166 -140
  155. package/src/model/group.ts +4 -1
  156. package/src/model/image.ts +1 -1
  157. package/src/model/link.ts +39 -45
  158. package/src/model/nestable.ts +33 -1
  159. package/src/model/richText.ts +2 -2
  160. package/src/model/select.ts +2 -2
  161. package/src/model/slice.ts +36 -9
  162. package/src/model/table.ts +11 -2
  163. package/src/model/widget.ts +8 -4
  164. package/src/zod4.ts +166 -140
package/src/zod4.ts CHANGED
@@ -1,160 +1,186 @@
1
1
  // Common
2
- import { AssetSchema } from "./common/asset"
3
- import { EmbedSchema } from "./common/embed"
4
- import { HexaColorCodeSchema } from "./common/hexaColorCode"
5
- import { NonEmptyStringSchema } from "./common/nonEmptyString"
6
- import { WidgetKeySchema } from "./common/widgetKey"
2
+ import { AssetSchema as rawAssetSchema } from "./common/asset"
3
+ import { EmbedSchema as rawEmbedSchema } from "./common/embed"
4
+ import { HexaColorCodeSchema as rawHexaColorCodeSchema } from "./common/hexaColorCode"
5
+ import { NonEmptyStringSchema as rawNonEmptyStringSchema } from "./common/nonEmptyString"
6
+ import { WidgetKeySchema as rawWidgetKeySchema } from "./common/widgetKey"
7
7
  // Content
8
- import { BooleanContentSchema } from "./content/boolean"
9
- import { DocumentContentSchema } from "./content/document"
10
- import { EmbedContentSchema } from "./content/embed"
11
- import { EmptyContentSchema } from "./content/empty"
8
+ import { BooleanContentSchema as rawBooleanContentSchema } from "./content/boolean"
9
+ import { DocumentContentSchema as rawDocumentContentSchema } from "./content/document"
10
+ import { EmbedContentSchema as rawEmbedContentSchema } from "./content/embed"
11
+ import { EmptyContentSchema as rawEmptyContentSchema } from "./content/empty"
12
12
  import {
13
- ColorContentSchema,
14
- DateContentSchema,
15
- NumberContentSchema,
16
- RangeContentSchema,
17
- SelectContentSchema,
18
- TextContentSchema,
19
- TimestampContentSchema,
20
- FieldContentSchema,
13
+ ColorContentSchema as rawColorContentSchema,
14
+ DateContentSchema as rawDateContentSchema,
15
+ NumberContentSchema as rawNumberContentSchema,
16
+ RangeContentSchema as rawRangeContentSchema,
17
+ SelectContentSchema as rawSelectContentSchema,
18
+ TextContentSchema as rawTextContentSchema,
19
+ TimestampContentSchema as rawTimestampContentSchema,
20
+ FieldContentSchema as rawFieldContentSchema,
21
21
  } from "./content/field"
22
- import { GeoPointContentSchema } from "./content/geopoint"
23
- import { GroupContentSchema, GroupItemContentSchema } from "./content/group"
24
- import { ImageContentSchema } from "./content/image"
25
- import { IntegrationFieldContentSchema } from "./content/integrationField"
26
- import { LinkContentSchema } from "./content/link"
27
- import { NestableContentSchema } from "./content/nestable"
28
- import { RepeatableContentSchema } from "./content/repeatable"
29
- import { RichTextContentSchema } from "./content/richText"
30
- import { SeparatorContentSchema } from "./content/separator"
22
+ import { GeoPointContentSchema as rawGeoPointContentSchema } from "./content/geopoint"
31
23
  import {
32
- CompositeSliceContentSchema,
33
- LegacySliceContentSchema,
34
- SharedSliceContentSchema,
35
- SliceContentSchema,
24
+ GroupContentSchema as rawGroupContentSchema,
25
+ GroupItemContentSchema as rawGroupItemContentSchema,
26
+ } from "./content/group"
27
+ import { ImageContentSchema as rawImageContentSchema } from "./content/image"
28
+ import { IntegrationFieldContentSchema as rawIntegrationFieldContentSchema } from "./content/integrationField"
29
+ import { LinkContentSchema as rawLinkContentSchema } from "./content/link"
30
+ import { NestableContentSchema as rawNestableContentSchema } from "./content/nestable"
31
+ import { RepeatableContentSchema as rawRepeatableContentSchema } from "./content/repeatable"
32
+ import {
33
+ RichTextContentSchema as rawRichTextContentSchema,
34
+ RichTextContentBlockSchema as rawRichTextContentBlockSchema,
35
+ RichTextContentSpanSchema as rawRichTextContentSpanSchema,
36
+ } from "./content/richText"
37
+ import { SeparatorContentSchema as rawSeparatorContentSchema } from "./content/separator"
38
+ import {
39
+ CompositeSliceContentSchema as rawCompositeSliceContentSchema,
40
+ LegacySliceContentSchema as rawLegacySliceContentSchema,
41
+ SharedSliceContentSchema as rawSharedSliceContentSchema,
42
+ SliceContentSchema as rawSliceContentSchema,
36
43
  } from "./content/slice"
37
44
  import {
38
- LegacySliceItemContentSchema,
39
- CompositeSliceItemContentSchema,
40
- SharedSliceItemContentSchema,
41
- SliceItemContentSchema,
42
- SlicesContentSchema,
45
+ LegacySliceItemContentSchema as rawLegacySliceItemContentSchema,
46
+ CompositeSliceItemContentSchema as rawCompositeSliceItemContentSchema,
47
+ SharedSliceItemContentSchema as rawSharedSliceItemContentSchema,
48
+ SliceItemContentSchema as rawSliceItemContentSchema,
49
+ SlicesContentSchema as rawSlicesContentSchema,
43
50
  } from "./content/slices"
44
- import { TableContentSchema } from "./content/table"
45
- import { UIDContentSchema } from "./content/uid"
46
- import { WidgetContentSchema } from "./content/widget"
51
+ import { TableContentSchema as rawTableContentSchema } from "./content/table"
52
+ import { UIDContentSchema as rawUIDContentSchema } from "./content/uid"
53
+ import { WidgetContentSchema as rawWidgetContentSchema } from "./content/widget"
47
54
  // Model
48
- import { BooleanModelSchema } from "./model/boolean"
49
- import { ColorModelSchema } from "./model/color"
50
- import { StaticCustomTypeModelSchema, CustomTypeModelSchema } from "./model/customType"
51
- import { DateModelSchema } from "./model/date"
52
- import { EmbedModelSchema } from "./model/embed"
53
- import { GeoPointModelSchema } from "./model/geopoint"
54
- import { GroupModelSchema, NestedGroupModelSchema } from "./model/group"
55
- import { ImageModelSchema } from "./model/image"
56
- import { IntegrationFieldModelSchema } from "./model/integrationField"
57
- import { LinkModelSchema } from "./model/link"
58
- import { NestableModelSchema } from "./model/nestable"
59
- import { NumberModelSchema } from "./model/number"
60
- import { RangeModelSchema } from "./model/range"
61
- import { RichTextModelSchema } from "./model/richText"
62
- import { StaticSectionModelSchema, DynamicSectionModelSchema } from "./model/section"
63
- import { SelectModelSchema } from "./model/select"
64
- import { SeparatorModelSchema } from "./model/separator"
55
+ import { BooleanModelSchema as rawBooleanModelSchema } from "./model/boolean"
56
+ import { ColorModelSchema as rawColorModelSchema } from "./model/color"
57
+ import {
58
+ StaticCustomTypeModelSchema as rawStaticCustomTypeModelSchema,
59
+ CustomTypeModelSchema as rawCustomTypeModelSchema,
60
+ } from "./model/customType"
61
+ import { DateModelSchema as rawDateModelSchema } from "./model/date"
62
+ import { EmbedModelSchema as rawEmbedModelSchema } from "./model/embed"
63
+ import { GeoPointModelSchema as rawGeoPointModelSchema } from "./model/geopoint"
64
+ import {
65
+ GroupModelSchema as rawGroupModelSchema,
66
+ NestedGroupModelSchema as rawNestedGroupModelSchema,
67
+ } from "./model/group"
68
+ import { ImageModelSchema as rawImageModelSchema } from "./model/image"
69
+ import { IntegrationFieldModelSchema as rawIntegrationFieldModelSchema } from "./model/integrationField"
70
+ import { LinkModelSchema as rawLinkModelSchema } from "./model/link"
71
+ import { NestableModelSchema as rawNestableModelSchema } from "./model/nestable"
72
+ import { NumberModelSchema as rawNumberModelSchema } from "./model/number"
73
+ import { RangeModelSchema as rawRangeModelSchema } from "./model/range"
74
+ import { RichTextModelSchema as rawRichTextModelSchema } from "./model/richText"
65
75
  import {
66
- LegacySliceModelSchema,
67
- CompositeSliceModelSchema,
68
- SharedSliceModelSchema,
69
- SharedSliceRefModelSchema,
70
- StaticSliceModelSchema,
71
- DynamicSliceModelSchema,
76
+ StaticSectionModelSchema as rawStaticSectionModelSchema,
77
+ DynamicSectionModelSchema as rawDynamicSectionModelSchema,
78
+ } from "./model/section"
79
+ import { SelectModelSchema as rawSelectModelSchema } from "./model/select"
80
+ import { SeparatorModelSchema as rawSeparatorModelSchema } from "./model/separator"
81
+ import {
82
+ LegacySliceModelSchema as rawLegacySliceModelSchema,
83
+ CompositeSliceModelSchema as rawCompositeSliceModelSchema,
84
+ SharedSliceModelSchema as rawSharedSliceModelSchema,
85
+ SharedSliceRefModelSchema as rawSharedSliceRefModelSchema,
86
+ StaticSliceModelSchema as rawStaticSliceModelSchema,
87
+ DynamicSliceModelSchema as rawDynamicSliceModelSchema,
88
+ SliceContentModelSchema as rawSliceContentModelSchema,
72
89
  } from "./model/slice"
73
- import { DynamicSlicesModelSchema, StaticSlicesModelSchema } from "./model/slices"
74
- import { TableModelSchema } from "./model/table"
75
- import { TextModelSchema } from "./model/text"
76
- import { TimestampModelSchema } from "./model/timestamp"
77
- import { UIDModelSchema } from "./model/uid"
78
- import { StaticWidgetModelSchema, DynamicWidgetModelSchema } from "./model/widget"
90
+ import {
91
+ DynamicSlicesModelSchema as rawDynamicSlicesModelSchema,
92
+ StaticSlicesModelSchema as rawStaticSlicesModelSchema,
93
+ } from "./model/slices"
94
+ import { TableModelSchema as rawTableModelSchema } from "./model/table"
95
+ import { TextModelSchema as rawTextModelSchema } from "./model/text"
96
+ import { TimestampModelSchema as rawTimestampModelSchema } from "./model/timestamp"
97
+ import { UIDModelSchema as rawUIDModelSchema } from "./model/uid"
98
+ import {
99
+ StaticWidgetModelSchema as rawStaticWidgetModelSchema,
100
+ DynamicWidgetModelSchema as rawDynamicWidgetModelSchema,
101
+ } from "./model/widget"
79
102
 
80
103
  // Common
81
- export const Asset = toZod4(AssetSchema)
82
- export const Embed = toZod4(EmbedSchema)
83
- export const HexaColorCode = toZod4(HexaColorCodeSchema)
84
- export const NonEmptyString = toZod4(NonEmptyStringSchema)
85
- export const WidgetKey = toZod4(WidgetKeySchema)
104
+ export const AssetSchema = toZod4(rawAssetSchema)
105
+ export const EmbedSchema = toZod4(rawEmbedSchema)
106
+ export const HexaColorCodeSchema = toZod4(rawHexaColorCodeSchema)
107
+ export const NonEmptyStringSchema = toZod4(rawNonEmptyStringSchema)
108
+ export const WidgetKeySchema = toZod4(rawWidgetKeySchema)
86
109
 
87
110
  // Content
88
- export const BooleanContent = toZod4(BooleanContentSchema)
89
- export const ColorContent = toZod4(ColorContentSchema)
90
- export const DateContent = toZod4(DateContentSchema)
91
- export const EmptyContent = toZod4(EmptyContentSchema)
92
- export const GeoPointContent = toZod4(GeoPointContentSchema)
93
- export const LinkContent = toZod4(LinkContentSchema)
94
- export const NumberContent = toZod4(NumberContentSchema)
95
- export const RangeContent = toZod4(RangeContentSchema)
96
- export const SelectContent = toZod4(SelectContentSchema)
97
- export const SeparatorContent = toZod4(SeparatorContentSchema)
98
- export const SharedSliceContent = toZod4(SharedSliceContentSchema)
99
- export const TextContent = toZod4(TextContentSchema)
100
- export const TimestampContent = toZod4(TimestampContentSchema)
101
- export const FieldContent = toZod4(FieldContentSchema)
102
- export const UIDContent = toZod4(UIDContentSchema)
103
- export const IntegrationFieldContent = toZod4(IntegrationFieldContentSchema)
104
- export const EmbedContent = toZod4(EmbedContentSchema)
105
- export const ImageContent = toZod4(ImageContentSchema)
106
- export const RichTextContent = toZod4(RichTextContentSchema)
107
- export const TableContent = toZod4(TableContentSchema)
108
- export const RepeatableContent = toZod4(RepeatableContentSchema)
109
- export const NestableContent = toZod4(NestableContentSchema)
110
- export const GroupContent = toZod4(GroupContentSchema)
111
- export const GroupItemContent = toZod4(GroupItemContentSchema)
112
- export const CompositeSliceContent = toZod4(CompositeSliceContentSchema)
113
- export const LegacySliceContent = toZod4(LegacySliceContentSchema)
114
- export const SliceContent = toZod4(SliceContentSchema)
115
- export const LegacySliceItemContent = toZod4(LegacySliceItemContentSchema)
116
- export const CompositeSliceItemContent = toZod4(CompositeSliceItemContentSchema)
117
- export const SharedSliceItemContent = toZod4(SharedSliceItemContentSchema)
118
- export const SliceItemContent = toZod4(SliceItemContentSchema)
119
- export const SlicesContent = toZod4(SlicesContentSchema)
120
- export const WidgetContent = toZod4(WidgetContentSchema)
121
- export const DocumentContent = toZod4(DocumentContentSchema)
111
+ export const BooleanContentSchema = toZod4(rawBooleanContentSchema)
112
+ export const ColorContentSchema = toZod4(rawColorContentSchema)
113
+ export const DateContentSchema = toZod4(rawDateContentSchema)
114
+ export const EmptyContentSchema = toZod4(rawEmptyContentSchema)
115
+ export const GeoPointContentSchema = toZod4(rawGeoPointContentSchema)
116
+ export const LinkContentSchema = toZod4(rawLinkContentSchema)
117
+ export const NumberContentSchema = toZod4(rawNumberContentSchema)
118
+ export const RangeContentSchema = toZod4(rawRangeContentSchema)
119
+ export const SelectContentSchema = toZod4(rawSelectContentSchema)
120
+ export const SeparatorContentSchema = toZod4(rawSeparatorContentSchema)
121
+ export const SharedSliceContentSchema = toZod4(rawSharedSliceContentSchema)
122
+ export const TextContentSchema = toZod4(rawTextContentSchema)
123
+ export const TimestampContentSchema = toZod4(rawTimestampContentSchema)
124
+ export const FieldContentSchema = toZod4(rawFieldContentSchema)
125
+ export const UIDContentSchema = toZod4(rawUIDContentSchema)
126
+ export const IntegrationFieldContentSchema = toZod4(rawIntegrationFieldContentSchema)
127
+ export const EmbedContentSchema = toZod4(rawEmbedContentSchema)
128
+ export const ImageContentSchema = toZod4(rawImageContentSchema)
129
+ export const RichTextContentSchema = toZod4(rawRichTextContentSchema)
130
+ export const RichTextContentBlockSchema = toZod4(rawRichTextContentBlockSchema)
131
+ export const RichTextContentSpanSchema = toZod4(rawRichTextContentSpanSchema)
132
+ export const TableContentSchema = toZod4(rawTableContentSchema)
133
+ export const RepeatableContentSchema = toZod4(rawRepeatableContentSchema)
134
+ export const NestableContentSchema = toZod4(rawNestableContentSchema)
135
+ export const GroupContentSchema = toZod4(rawGroupContentSchema)
136
+ export const GroupItemContentSchema = toZod4(rawGroupItemContentSchema)
137
+ export const CompositeSliceContentSchema = toZod4(rawCompositeSliceContentSchema)
138
+ export const LegacySliceContentSchema = toZod4(rawLegacySliceContentSchema)
139
+ export const SliceContentSchema = toZod4(rawSliceContentSchema)
140
+ export const LegacySliceItemContentSchema = toZod4(rawLegacySliceItemContentSchema)
141
+ export const CompositeSliceItemContentSchema = toZod4(rawCompositeSliceItemContentSchema)
142
+ export const SharedSliceItemContentSchema = toZod4(rawSharedSliceItemContentSchema)
143
+ export const SliceItemContentSchema = toZod4(rawSliceItemContentSchema)
144
+ export const SlicesContentSchema = toZod4(rawSlicesContentSchema)
145
+ export const WidgetContentSchema = toZod4(rawWidgetContentSchema)
146
+ export const DocumentContentSchema = toZod4(rawDocumentContentSchema)
122
147
 
123
148
  // Model
124
- export const BooleanModel = toZod4(BooleanModelSchema)
125
- export const ColorModel = toZod4(ColorModelSchema)
126
- export const DateModel = toZod4(DateModelSchema)
127
- export const EmbedModel = toZod4(EmbedModelSchema)
128
- export const GeoPointModel = toZod4(GeoPointModelSchema)
129
- export const ImageModel = toZod4(ImageModelSchema)
130
- export const IntegrationFieldModel = toZod4(IntegrationFieldModelSchema)
131
- export const LinkModel = toZod4(LinkModelSchema)
132
- export const NestableModel = toZod4(NestableModelSchema)
133
- export const NumberModel = toZod4(NumberModelSchema)
134
- export const RangeModel = toZod4(RangeModelSchema)
135
- export const RichTextModel = toZod4(RichTextModelSchema)
136
- export const SelectModel = toZod4(SelectModelSchema)
137
- export const SeparatorModel = toZod4(SeparatorModelSchema)
138
- export const SharedSliceModel = toZod4(SharedSliceModelSchema)
139
- export const TableModel = toZod4(TableModelSchema)
140
- export const TextModel = toZod4(TextModelSchema)
141
- export const TimestampModel = toZod4(TimestampModelSchema)
142
- export const UIDModel = toZod4(UIDModelSchema)
143
- export const GroupModel = toZod4(GroupModelSchema)
144
- export const NestedGroupModel = toZod4(NestedGroupModelSchema)
145
- export const SharedSliceRefModel = toZod4(SharedSliceRefModelSchema)
146
- export const CompositeSliceModel = toZod4(CompositeSliceModelSchema)
147
- export const LegacySliceModel = toZod4(LegacySliceModelSchema)
148
- export const DynamicSliceModel = toZod4(DynamicSliceModelSchema)
149
- export const StaticSliceModel = toZod4(StaticSliceModelSchema)
150
- export const DynamicSlicesModel = toZod4(DynamicSlicesModelSchema)
151
- export const StaticSlicesModel = toZod4(StaticSlicesModelSchema)
152
- export const StaticWidgetModel = toZod4(StaticWidgetModelSchema)
153
- export const DynamicWidgetModel = toZod4(DynamicWidgetModelSchema)
154
- export const StaticSectionModel = toZod4(StaticSectionModelSchema)
155
- export const DynamicSectionModel = toZod4(DynamicSectionModelSchema)
156
- export const StaticCustomTypeModel = toZod4(StaticCustomTypeModelSchema)
157
- export const CustomTypeModel = toZod4(CustomTypeModelSchema)
149
+ export const BooleanModelSchema = toZod4(rawBooleanModelSchema)
150
+ export const ColorModelSchema = toZod4(rawColorModelSchema)
151
+ export const DateModelSchema = toZod4(rawDateModelSchema)
152
+ export const EmbedModelSchema = toZod4(rawEmbedModelSchema)
153
+ export const GeoPointModelSchema = toZod4(rawGeoPointModelSchema)
154
+ export const ImageModelSchema = toZod4(rawImageModelSchema)
155
+ export const IntegrationFieldModelSchema = toZod4(rawIntegrationFieldModelSchema)
156
+ export const LinkModelSchema = toZod4(rawLinkModelSchema)
157
+ export const NestableModelSchema = toZod4(rawNestableModelSchema)
158
+ export const NumberModelSchema = toZod4(rawNumberModelSchema)
159
+ export const RangeModelSchema = toZod4(rawRangeModelSchema)
160
+ export const RichTextModelSchema = toZod4(rawRichTextModelSchema)
161
+ export const SelectModelSchema = toZod4(rawSelectModelSchema)
162
+ export const SeparatorModelSchema = toZod4(rawSeparatorModelSchema)
163
+ export const SharedSliceModelSchema = toZod4(rawSharedSliceModelSchema)
164
+ export const TableModelSchema = toZod4(rawTableModelSchema)
165
+ export const TextModelSchema = toZod4(rawTextModelSchema)
166
+ export const TimestampModelSchema = toZod4(rawTimestampModelSchema)
167
+ export const UIDModelSchema = toZod4(rawUIDModelSchema)
168
+ export const GroupModelSchema = toZod4(rawGroupModelSchema)
169
+ export const NestedGroupModelSchema = toZod4(rawNestedGroupModelSchema)
170
+ export const SharedSliceRefModelSchema = toZod4(rawSharedSliceRefModelSchema)
171
+ export const CompositeSliceModelSchema = toZod4(rawCompositeSliceModelSchema)
172
+ export const LegacySliceModelSchema = toZod4(rawLegacySliceModelSchema)
173
+ export const DynamicSliceModelSchema = toZod4(rawDynamicSliceModelSchema)
174
+ export const StaticSliceModelSchema = toZod4(rawStaticSliceModelSchema)
175
+ export const SliceContentModelSchema = toZod4(rawSliceContentModelSchema)
176
+ export const DynamicSlicesModelSchema = toZod4(rawDynamicSlicesModelSchema)
177
+ export const StaticSlicesModelSchema = toZod4(rawStaticSlicesModelSchema)
178
+ export const StaticWidgetModelSchema = toZod4(rawStaticWidgetModelSchema)
179
+ export const DynamicWidgetModelSchema = toZod4(rawDynamicWidgetModelSchema)
180
+ export const StaticSectionModelSchema = toZod4(rawStaticSectionModelSchema)
181
+ export const DynamicSectionModelSchema = toZod4(rawDynamicSectionModelSchema)
182
+ export const StaticCustomTypeModelSchema = toZod4(rawStaticCustomTypeModelSchema)
183
+ export const CustomTypeModelSchema = toZod4(rawCustomTypeModelSchema)
158
184
 
159
185
  function toZod4<T>(type: T): T {
160
186
  return type