@caartzee/theme-sdk 0.0.0-stage → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (179) hide show
  1. package/README.md +222 -2
  2. package/dist/bin/caartzee-theme.js +9223 -0
  3. package/dist/lib/index.js +11614 -0
  4. package/dist/types/src/auth/credentials-store.d.ts +18 -0
  5. package/dist/types/src/auth/index.d.ts +2 -0
  6. package/dist/types/src/auth/oauth-client.d.ts +39 -0
  7. package/dist/types/src/blocks/block-contract.d.ts +242 -0
  8. package/dist/types/src/candy/compatibility-matrix.d.ts +10 -0
  9. package/dist/types/src/candy/context-builder.d.ts +31 -0
  10. package/dist/types/src/candy/engine.d.ts +69 -0
  11. package/dist/types/src/candy/filters.d.ts +32 -0
  12. package/dist/types/src/candy/ide-support.d.ts +20 -0
  13. package/dist/types/src/candy/index.d.ts +9 -0
  14. package/dist/types/src/candy/schema-parser.d.ts +13 -0
  15. package/dist/types/src/candy/security.d.ts +54 -0
  16. package/dist/types/src/candy/tags.d.ts +11 -0
  17. package/dist/types/src/candy/types.d.ts +185 -0
  18. package/dist/types/src/cli/caartzee-cli.d.ts +9 -0
  19. package/dist/types/src/cli/candy-mcp.d.ts +2 -0
  20. package/dist/types/src/cli/candy-tool-server.d.ts +39 -0
  21. package/dist/types/src/cli/index.d.ts +1 -0
  22. package/dist/types/src/cli/mcp/component-tools.d.ts +2 -0
  23. package/dist/types/src/cli/mcp/docs-tools.d.ts +89 -0
  24. package/dist/types/src/cli/mcp/editor-tools.d.ts +22 -0
  25. package/dist/types/src/cli/mcp/resources-and-prompts.d.ts +2 -0
  26. package/dist/types/src/cli/mcp/testing-tools.d.ts +54 -0
  27. package/dist/types/src/cli/sdk-client.d.ts +12 -0
  28. package/dist/types/src/contracts/category-selection.d.ts +15 -0
  29. package/dist/types/src/contracts/commerce.d.ts +282 -0
  30. package/dist/types/src/contracts/footer-builder.d.ts +125 -0
  31. package/dist/types/src/contracts/hooks.d.ts +37 -0
  32. package/dist/types/src/contracts/manifest.d.ts +3127 -0
  33. package/dist/types/src/contracts/navigation.d.ts +39 -0
  34. package/dist/types/src/contracts/order-tracking.d.ts +40 -0
  35. package/dist/types/src/contracts/page.d.ts +262 -0
  36. package/dist/types/src/contracts/storefront-content.d.ts +60 -0
  37. package/dist/types/src/contracts/style-document.d.ts +2 -0
  38. package/dist/types/src/contracts/styles.d.ts +2002 -0
  39. package/dist/types/src/contracts/theme.d.ts +35 -0
  40. package/dist/types/src/dev-server/catalog-preview.d.ts +25 -0
  41. package/dist/types/src/dev-server/dev-server.d.ts +25 -0
  42. package/dist/types/src/dev-server/index.d.ts +1 -0
  43. package/dist/types/src/dev-server/local-commerce-runtime.d.ts +76 -0
  44. package/dist/types/src/dev-server/local-editor-server.d.ts +22 -0
  45. package/dist/types/src/dev-server/theme-preview.d.ts +8 -0
  46. package/dist/types/src/index.d.ts +27 -0
  47. package/dist/types/src/mock/index.d.ts +10 -0
  48. package/dist/types/src/mock/mock-categories.d.ts +2 -0
  49. package/dist/types/src/mock/mock-commerce.d.ts +55 -0
  50. package/dist/types/src/mock/mock-customer.d.ts +47 -0
  51. package/dist/types/src/mock/mock-hooks.d.ts +2 -0
  52. package/dist/types/src/mock/mock-products.d.ts +3 -0
  53. package/dist/types/src/rendering/commerce-pages.d.ts +16 -0
  54. package/dist/types/src/rendering/raw-html.d.ts +12 -0
  55. package/dist/types/src/rendering/section-wrapper.d.ts +30 -0
  56. package/dist/types/src/scaffold/candy-starter-assets.d.ts +2 -0
  57. package/dist/types/src/scaffold/commerce-generator.d.ts +3 -0
  58. package/dist/types/src/scaffold/index.d.ts +2 -0
  59. package/dist/types/src/scaffold/template-generator.d.ts +21 -0
  60. package/dist/types/src/sections/section-contract.d.ts +350 -0
  61. package/dist/types/src/settings/global-settings.d.ts +25 -0
  62. package/dist/types/src/templates/json-template.d.ts +991 -0
  63. package/dist/types/src/validation/package-validator.d.ts +53 -0
  64. package/dist/types/src/validation/rich-text.d.ts +24 -0
  65. package/package.json +29 -3
  66. package/templates/commerce/README.md +165 -0
  67. package/templates/commerce/assets/theme.css +1 -0
  68. package/templates/commerce/manifest.json +1 -0
  69. package/templates/commerce/src/blocks/index.ts +184 -0
  70. package/templates/commerce/src/config/settings-defaults.ts +25 -0
  71. package/templates/commerce/src/config/settings-schema.ts +102 -0
  72. package/templates/commerce/src/index.ts +90 -0
  73. package/templates/commerce/src/layouts/default.ts +275 -0
  74. package/templates/commerce/src/manifest.ts +976 -0
  75. package/templates/commerce/src/pages/account/components.ts +369 -0
  76. package/templates/commerce/src/pages/account/tabs.ts +792 -0
  77. package/templates/commerce/src/pages/account.ts +55 -0
  78. package/templates/commerce/src/pages/campaign.ts +423 -0
  79. package/templates/commerce/src/pages/cart.ts +261 -0
  80. package/templates/commerce/src/pages/category-detail.ts +124 -0
  81. package/templates/commerce/src/pages/category-list.ts +87 -0
  82. package/templates/commerce/src/pages/checkout.ts +712 -0
  83. package/templates/commerce/src/pages/commerce.ts +45 -0
  84. package/templates/commerce/src/pages/home.ts +160 -0
  85. package/templates/commerce/src/pages/index.ts +99 -0
  86. package/templates/commerce/src/pages/login.ts +204 -0
  87. package/templates/commerce/src/pages/order-success.ts +80 -0
  88. package/templates/commerce/src/pages/product-detail.ts +489 -0
  89. package/templates/commerce/src/pages/product-list.ts +125 -0
  90. package/templates/commerce/src/pages/search.ts +88 -0
  91. package/templates/commerce/src/pages/signup.ts +253 -0
  92. package/templates/commerce/src/pages/status.ts +7 -0
  93. package/templates/commerce/src/pages/theme-layout.ts +491 -0
  94. package/templates/commerce/src/pages/track-order.ts +196 -0
  95. package/templates/commerce/src/pages/wishlist.ts +83 -0
  96. package/templates/commerce/src/sections/about-story.ts +117 -0
  97. package/templates/commerce/src/sections/announcement-bar.ts +101 -0
  98. package/templates/commerce/src/sections/banner-grid.ts +319 -0
  99. package/templates/commerce/src/sections/campaign-banners.ts +158 -0
  100. package/templates/commerce/src/sections/category-slider.ts +144 -0
  101. package/templates/commerce/src/sections/content-builder.ts +123 -0
  102. package/templates/commerce/src/sections/content-controls.ts +45 -0
  103. package/templates/commerce/src/sections/custom-form.ts +59 -0
  104. package/templates/commerce/src/sections/faq-accordion.ts +123 -0
  105. package/templates/commerce/src/sections/footer.ts +728 -0
  106. package/templates/commerce/src/sections/header.ts +439 -0
  107. package/templates/commerce/src/sections/hero-slider.ts +492 -0
  108. package/templates/commerce/src/sections/hero.ts +137 -0
  109. package/templates/commerce/src/sections/index.ts +102 -0
  110. package/templates/commerce/src/sections/mobile-slider.ts +102 -0
  111. package/templates/commerce/src/sections/newsletter.ts +43 -0
  112. package/templates/commerce/src/sections/product-grid.ts +191 -0
  113. package/templates/commerce/src/sections/raw-html.ts +1 -0
  114. package/templates/commerce/src/sections/rich-text.ts +26 -0
  115. package/templates/commerce/src/sections/services-features.ts +211 -0
  116. package/templates/commerce/src/sections/testimonials.ts +194 -0
  117. package/templates/commerce/src/snippets/product-card.ts +178 -0
  118. package/templates/commerce/src/snippets/product-price.ts +46 -0
  119. package/templates/commerce/src/snippets/responsive-image.ts +29 -0
  120. package/templates/commerce/src/styles.ts +477 -0
  121. package/templates/commerce/src/templates/404.json +26 -0
  122. package/templates/commerce/src/templates/account.json +17 -0
  123. package/templates/commerce/src/templates/cart.json +17 -0
  124. package/templates/commerce/src/templates/category.json +16 -0
  125. package/templates/commerce/src/templates/checkout.json +15 -0
  126. package/templates/commerce/src/templates/collection.json +16 -0
  127. package/templates/commerce/src/templates/index.json +180 -0
  128. package/templates/commerce/src/templates/login.json +17 -0
  129. package/templates/commerce/src/templates/order-success.json +17 -0
  130. package/templates/commerce/src/templates/page.json +17 -0
  131. package/templates/commerce/src/templates/product.json +17 -0
  132. package/templates/commerce/src/templates/search.json +18 -0
  133. package/templates/commerce/src/templates/signup.json +17 -0
  134. package/templates/commerce/src/templates/track-order.json +17 -0
  135. package/templates/commerce/src/templates/wishlist.json +17 -0
  136. package/templates/commerce/src/templates.ts +510 -0
  137. package/templates/commerce/src/tokens.ts +22 -0
  138. package/templates/theme-candy-boilerplate/.editorconfig +14 -0
  139. package/templates/theme-candy-boilerplate/.gitattributes +1 -0
  140. package/templates/theme-candy-boilerplate/.vscode/extensions.json +7 -0
  141. package/templates/theme-candy-boilerplate/.vscode/settings.json +17 -0
  142. package/templates/theme-candy-boilerplate/assets/theme.css +78 -0
  143. package/templates/theme-candy-boilerplate/assets/theme.js +7 -0
  144. package/templates/theme-candy-boilerplate/candy.config.json +40 -0
  145. package/templates/theme-candy-boilerplate/index.ts +39 -0
  146. package/templates/theme-candy-boilerplate/layout/theme.candy +25 -0
  147. package/templates/theme-candy-boilerplate/locales/en.default.json +37 -0
  148. package/templates/theme-candy-boilerplate/manifest.json +123 -0
  149. package/templates/theme-candy-boilerplate/package.json +16 -0
  150. package/templates/theme-candy-boilerplate/schemas/settings_schema.json +36 -0
  151. package/templates/theme-candy-boilerplate/sections/featured-products.candy +89 -0
  152. package/templates/theme-candy-boilerplate/sections/footer.candy +50 -0
  153. package/templates/theme-candy-boilerplate/sections/header.candy +116 -0
  154. package/templates/theme-candy-boilerplate/sections/hero-banner.candy +135 -0
  155. package/templates/theme-candy-boilerplate/sections/image-with-text.candy +85 -0
  156. package/templates/theme-candy-boilerplate/snippets/price.candy +19 -0
  157. package/templates/theme-candy-boilerplate/snippets/product-card.candy +43 -0
  158. package/templates/theme-candy-boilerplate/templates/404.candy +12 -0
  159. package/templates/theme-candy-boilerplate/templates/cart.candy +51 -0
  160. package/templates/theme-candy-boilerplate/templates/collection.candy +51 -0
  161. package/templates/theme-candy-boilerplate/templates/index.candy +7 -0
  162. package/templates/theme-candy-boilerplate/templates/page.candy +10 -0
  163. package/templates/theme-candy-boilerplate/templates/product.candy +59 -0
  164. package/templates/theme-candy-boilerplate/templates/search.candy +40 -0
  165. package/templates/vscode-candy/LICENSE +21 -0
  166. package/templates/vscode-candy/README.md +22 -0
  167. package/templates/vscode-candy/extension.js +689 -0
  168. package/templates/vscode-candy/icons/candy-dark.svg +23 -0
  169. package/templates/vscode-candy/icons/candy-light.svg +23 -0
  170. package/templates/vscode-candy/icons/candy-logo.png +0 -0
  171. package/templates/vscode-candy/icons/candy-sweet-dark.svg +23 -0
  172. package/templates/vscode-candy/icons/candy-sweet-light.svg +23 -0
  173. package/templates/vscode-candy/language-configuration.json +47 -0
  174. package/templates/vscode-candy/package.json +118 -0
  175. package/templates/vscode-candy/schemas/candy-config.schema.json +56 -0
  176. package/templates/vscode-candy/schemas/candy-settings.schema.json +70 -0
  177. package/templates/vscode-candy/snippets/candy.code-snippets +270 -0
  178. package/templates/vscode-candy/syntaxes/candy.tmLanguage.json +296 -0
  179. package/templates/vscode-candy/vim/ftdetect/candy.vim +5 -0
@@ -0,0 +1,3127 @@
1
+ import { z } from 'zod';
2
+ export declare const SettingTypeSchema: z.ZodEnum<["text", "textarea", "richtext", "inline_richtext", "header", "paragraph", "number", "boolean", "checkbox", "radio", "color", "image", "image_picker", "select", "range", "url", "json", "code", "javascript", "category_list", "product_picker", "collection_picker", "font", "spacing"]>;
3
+ export type SettingType = z.infer<typeof SettingTypeSchema>;
4
+ export declare const SettingSelectOptionSchema: z.ZodObject<{
5
+ label: z.ZodString;
6
+ value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ value: string | number | boolean;
9
+ label: string;
10
+ }, {
11
+ value: string | number | boolean;
12
+ label: string;
13
+ }>;
14
+ export type SettingSelectOption = z.infer<typeof SettingSelectOptionSchema>;
15
+ export declare const SettingFieldSchema: z.ZodObject<{
16
+ id: z.ZodString;
17
+ type: z.ZodEnum<["text", "textarea", "richtext", "inline_richtext", "header", "paragraph", "number", "boolean", "checkbox", "radio", "color", "image", "image_picker", "select", "range", "url", "json", "code", "javascript", "category_list", "product_picker", "collection_picker", "font", "spacing"]>;
18
+ label: z.ZodString;
19
+ default: z.ZodOptional<z.ZodUnknown>;
20
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
21
+ label: z.ZodString;
22
+ value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>;
23
+ }, "strip", z.ZodTypeAny, {
24
+ value: string | number | boolean;
25
+ label: string;
26
+ }, {
27
+ value: string | number | boolean;
28
+ label: string;
29
+ }>, "many">>;
30
+ min: z.ZodOptional<z.ZodNumber>;
31
+ max: z.ZodOptional<z.ZodNumber>;
32
+ step: z.ZodOptional<z.ZodNumber>;
33
+ required: z.ZodOptional<z.ZodBoolean>;
34
+ placeholder: z.ZodOptional<z.ZodString>;
35
+ }, "strip", z.ZodTypeAny, {
36
+ id: string;
37
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
38
+ label: string;
39
+ options?: {
40
+ value: string | number | boolean;
41
+ label: string;
42
+ }[] | undefined;
43
+ default?: unknown;
44
+ min?: number | undefined;
45
+ max?: number | undefined;
46
+ step?: number | undefined;
47
+ required?: boolean | undefined;
48
+ placeholder?: string | undefined;
49
+ }, {
50
+ id: string;
51
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
52
+ label: string;
53
+ options?: {
54
+ value: string | number | boolean;
55
+ label: string;
56
+ }[] | undefined;
57
+ default?: unknown;
58
+ min?: number | undefined;
59
+ max?: number | undefined;
60
+ step?: number | undefined;
61
+ required?: boolean | undefined;
62
+ placeholder?: string | undefined;
63
+ }>;
64
+ export type SettingField = z.infer<typeof SettingFieldSchema>;
65
+ export declare const BlockManifestSchema: z.ZodObject<{
66
+ type: z.ZodString;
67
+ label: z.ZodString;
68
+ max: z.ZodOptional<z.ZodNumber>;
69
+ settings: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
70
+ id: z.ZodString;
71
+ type: z.ZodEnum<["text", "textarea", "richtext", "inline_richtext", "header", "paragraph", "number", "boolean", "checkbox", "radio", "color", "image", "image_picker", "select", "range", "url", "json", "code", "javascript", "category_list", "product_picker", "collection_picker", "font", "spacing"]>;
72
+ label: z.ZodString;
73
+ default: z.ZodOptional<z.ZodUnknown>;
74
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
75
+ label: z.ZodString;
76
+ value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>;
77
+ }, "strip", z.ZodTypeAny, {
78
+ value: string | number | boolean;
79
+ label: string;
80
+ }, {
81
+ value: string | number | boolean;
82
+ label: string;
83
+ }>, "many">>;
84
+ min: z.ZodOptional<z.ZodNumber>;
85
+ max: z.ZodOptional<z.ZodNumber>;
86
+ step: z.ZodOptional<z.ZodNumber>;
87
+ required: z.ZodOptional<z.ZodBoolean>;
88
+ placeholder: z.ZodOptional<z.ZodString>;
89
+ }, "strip", z.ZodTypeAny, {
90
+ id: string;
91
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
92
+ label: string;
93
+ options?: {
94
+ value: string | number | boolean;
95
+ label: string;
96
+ }[] | undefined;
97
+ default?: unknown;
98
+ min?: number | undefined;
99
+ max?: number | undefined;
100
+ step?: number | undefined;
101
+ required?: boolean | undefined;
102
+ placeholder?: string | undefined;
103
+ }, {
104
+ id: string;
105
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
106
+ label: string;
107
+ options?: {
108
+ value: string | number | boolean;
109
+ label: string;
110
+ }[] | undefined;
111
+ default?: unknown;
112
+ min?: number | undefined;
113
+ max?: number | undefined;
114
+ step?: number | undefined;
115
+ required?: boolean | undefined;
116
+ placeholder?: string | undefined;
117
+ }>, "many">>>;
118
+ }, "strip", z.ZodTypeAny, {
119
+ type: string;
120
+ settings: {
121
+ id: string;
122
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
123
+ label: string;
124
+ options?: {
125
+ value: string | number | boolean;
126
+ label: string;
127
+ }[] | undefined;
128
+ default?: unknown;
129
+ min?: number | undefined;
130
+ max?: number | undefined;
131
+ step?: number | undefined;
132
+ required?: boolean | undefined;
133
+ placeholder?: string | undefined;
134
+ }[];
135
+ label: string;
136
+ max?: number | undefined;
137
+ }, {
138
+ type: string;
139
+ label: string;
140
+ settings?: {
141
+ id: string;
142
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
143
+ label: string;
144
+ options?: {
145
+ value: string | number | boolean;
146
+ label: string;
147
+ }[] | undefined;
148
+ default?: unknown;
149
+ min?: number | undefined;
150
+ max?: number | undefined;
151
+ step?: number | undefined;
152
+ required?: boolean | undefined;
153
+ placeholder?: string | undefined;
154
+ }[] | undefined;
155
+ max?: number | undefined;
156
+ }>;
157
+ export type BlockManifest = z.infer<typeof BlockManifestSchema>;
158
+ export declare const PresetBlockSchema: z.ZodObject<{
159
+ type: z.ZodString;
160
+ settings: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
161
+ }, "strip", z.ZodTypeAny, {
162
+ type: string;
163
+ settings: Record<string, unknown>;
164
+ }, {
165
+ type: string;
166
+ settings?: Record<string, unknown> | undefined;
167
+ }>;
168
+ export type PresetBlock = z.infer<typeof PresetBlockSchema>;
169
+ export declare const SectionPresetSchema: z.ZodObject<{
170
+ name: z.ZodString;
171
+ label: z.ZodOptional<z.ZodString>;
172
+ isDefault: z.ZodOptional<z.ZodBoolean>;
173
+ settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
174
+ blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{
175
+ type: z.ZodString;
176
+ settings: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
177
+ }, "strip", z.ZodTypeAny, {
178
+ type: string;
179
+ settings: Record<string, unknown>;
180
+ }, {
181
+ type: string;
182
+ settings?: Record<string, unknown> | undefined;
183
+ }>, "many">>;
184
+ }, "strip", z.ZodTypeAny, {
185
+ name: string;
186
+ settings?: Record<string, unknown> | undefined;
187
+ blocks?: {
188
+ type: string;
189
+ settings: Record<string, unknown>;
190
+ }[] | undefined;
191
+ label?: string | undefined;
192
+ isDefault?: boolean | undefined;
193
+ }, {
194
+ name: string;
195
+ settings?: Record<string, unknown> | undefined;
196
+ blocks?: {
197
+ type: string;
198
+ settings?: Record<string, unknown> | undefined;
199
+ }[] | undefined;
200
+ label?: string | undefined;
201
+ isDefault?: boolean | undefined;
202
+ }>;
203
+ export type SectionPreset = z.infer<typeof SectionPresetSchema>;
204
+ export declare const SectionManifestSchema: z.ZodObject<{
205
+ type: z.ZodString;
206
+ label: z.ZodString;
207
+ category: z.ZodOptional<z.ZodString>;
208
+ maxBlocks: z.ZodOptional<z.ZodNumber>;
209
+ allowedBlocks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
210
+ allowedRegions: z.ZodOptional<z.ZodArray<z.ZodEnum<["header", "body", "footer"]>, "many">>;
211
+ settings: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
212
+ id: z.ZodString;
213
+ type: z.ZodEnum<["text", "textarea", "richtext", "inline_richtext", "header", "paragraph", "number", "boolean", "checkbox", "radio", "color", "image", "image_picker", "select", "range", "url", "json", "code", "javascript", "category_list", "product_picker", "collection_picker", "font", "spacing"]>;
214
+ label: z.ZodString;
215
+ default: z.ZodOptional<z.ZodUnknown>;
216
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
217
+ label: z.ZodString;
218
+ value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>;
219
+ }, "strip", z.ZodTypeAny, {
220
+ value: string | number | boolean;
221
+ label: string;
222
+ }, {
223
+ value: string | number | boolean;
224
+ label: string;
225
+ }>, "many">>;
226
+ min: z.ZodOptional<z.ZodNumber>;
227
+ max: z.ZodOptional<z.ZodNumber>;
228
+ step: z.ZodOptional<z.ZodNumber>;
229
+ required: z.ZodOptional<z.ZodBoolean>;
230
+ placeholder: z.ZodOptional<z.ZodString>;
231
+ }, "strip", z.ZodTypeAny, {
232
+ id: string;
233
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
234
+ label: string;
235
+ options?: {
236
+ value: string | number | boolean;
237
+ label: string;
238
+ }[] | undefined;
239
+ default?: unknown;
240
+ min?: number | undefined;
241
+ max?: number | undefined;
242
+ step?: number | undefined;
243
+ required?: boolean | undefined;
244
+ placeholder?: string | undefined;
245
+ }, {
246
+ id: string;
247
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
248
+ label: string;
249
+ options?: {
250
+ value: string | number | boolean;
251
+ label: string;
252
+ }[] | undefined;
253
+ default?: unknown;
254
+ min?: number | undefined;
255
+ max?: number | undefined;
256
+ step?: number | undefined;
257
+ required?: boolean | undefined;
258
+ placeholder?: string | undefined;
259
+ }>, "many">>>;
260
+ blocks: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
261
+ type: z.ZodString;
262
+ label: z.ZodString;
263
+ max: z.ZodOptional<z.ZodNumber>;
264
+ settings: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
265
+ id: z.ZodString;
266
+ type: z.ZodEnum<["text", "textarea", "richtext", "inline_richtext", "header", "paragraph", "number", "boolean", "checkbox", "radio", "color", "image", "image_picker", "select", "range", "url", "json", "code", "javascript", "category_list", "product_picker", "collection_picker", "font", "spacing"]>;
267
+ label: z.ZodString;
268
+ default: z.ZodOptional<z.ZodUnknown>;
269
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
270
+ label: z.ZodString;
271
+ value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>;
272
+ }, "strip", z.ZodTypeAny, {
273
+ value: string | number | boolean;
274
+ label: string;
275
+ }, {
276
+ value: string | number | boolean;
277
+ label: string;
278
+ }>, "many">>;
279
+ min: z.ZodOptional<z.ZodNumber>;
280
+ max: z.ZodOptional<z.ZodNumber>;
281
+ step: z.ZodOptional<z.ZodNumber>;
282
+ required: z.ZodOptional<z.ZodBoolean>;
283
+ placeholder: z.ZodOptional<z.ZodString>;
284
+ }, "strip", z.ZodTypeAny, {
285
+ id: string;
286
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
287
+ label: string;
288
+ options?: {
289
+ value: string | number | boolean;
290
+ label: string;
291
+ }[] | undefined;
292
+ default?: unknown;
293
+ min?: number | undefined;
294
+ max?: number | undefined;
295
+ step?: number | undefined;
296
+ required?: boolean | undefined;
297
+ placeholder?: string | undefined;
298
+ }, {
299
+ id: string;
300
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
301
+ label: string;
302
+ options?: {
303
+ value: string | number | boolean;
304
+ label: string;
305
+ }[] | undefined;
306
+ default?: unknown;
307
+ min?: number | undefined;
308
+ max?: number | undefined;
309
+ step?: number | undefined;
310
+ required?: boolean | undefined;
311
+ placeholder?: string | undefined;
312
+ }>, "many">>>;
313
+ }, "strip", z.ZodTypeAny, {
314
+ type: string;
315
+ settings: {
316
+ id: string;
317
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
318
+ label: string;
319
+ options?: {
320
+ value: string | number | boolean;
321
+ label: string;
322
+ }[] | undefined;
323
+ default?: unknown;
324
+ min?: number | undefined;
325
+ max?: number | undefined;
326
+ step?: number | undefined;
327
+ required?: boolean | undefined;
328
+ placeholder?: string | undefined;
329
+ }[];
330
+ label: string;
331
+ max?: number | undefined;
332
+ }, {
333
+ type: string;
334
+ label: string;
335
+ settings?: {
336
+ id: string;
337
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
338
+ label: string;
339
+ options?: {
340
+ value: string | number | boolean;
341
+ label: string;
342
+ }[] | undefined;
343
+ default?: unknown;
344
+ min?: number | undefined;
345
+ max?: number | undefined;
346
+ step?: number | undefined;
347
+ required?: boolean | undefined;
348
+ placeholder?: string | undefined;
349
+ }[] | undefined;
350
+ max?: number | undefined;
351
+ }>, "many">>>;
352
+ presets: z.ZodOptional<z.ZodArray<z.ZodObject<{
353
+ name: z.ZodString;
354
+ label: z.ZodOptional<z.ZodString>;
355
+ isDefault: z.ZodOptional<z.ZodBoolean>;
356
+ settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
357
+ blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{
358
+ type: z.ZodString;
359
+ settings: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
360
+ }, "strip", z.ZodTypeAny, {
361
+ type: string;
362
+ settings: Record<string, unknown>;
363
+ }, {
364
+ type: string;
365
+ settings?: Record<string, unknown> | undefined;
366
+ }>, "many">>;
367
+ }, "strip", z.ZodTypeAny, {
368
+ name: string;
369
+ settings?: Record<string, unknown> | undefined;
370
+ blocks?: {
371
+ type: string;
372
+ settings: Record<string, unknown>;
373
+ }[] | undefined;
374
+ label?: string | undefined;
375
+ isDefault?: boolean | undefined;
376
+ }, {
377
+ name: string;
378
+ settings?: Record<string, unknown> | undefined;
379
+ blocks?: {
380
+ type: string;
381
+ settings?: Record<string, unknown> | undefined;
382
+ }[] | undefined;
383
+ label?: string | undefined;
384
+ isDefault?: boolean | undefined;
385
+ }>, "many">>;
386
+ }, "strip", z.ZodTypeAny, {
387
+ type: string;
388
+ settings: {
389
+ id: string;
390
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
391
+ label: string;
392
+ options?: {
393
+ value: string | number | boolean;
394
+ label: string;
395
+ }[] | undefined;
396
+ default?: unknown;
397
+ min?: number | undefined;
398
+ max?: number | undefined;
399
+ step?: number | undefined;
400
+ required?: boolean | undefined;
401
+ placeholder?: string | undefined;
402
+ }[];
403
+ blocks: {
404
+ type: string;
405
+ settings: {
406
+ id: string;
407
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
408
+ label: string;
409
+ options?: {
410
+ value: string | number | boolean;
411
+ label: string;
412
+ }[] | undefined;
413
+ default?: unknown;
414
+ min?: number | undefined;
415
+ max?: number | undefined;
416
+ step?: number | undefined;
417
+ required?: boolean | undefined;
418
+ placeholder?: string | undefined;
419
+ }[];
420
+ label: string;
421
+ max?: number | undefined;
422
+ }[];
423
+ label: string;
424
+ category?: string | undefined;
425
+ maxBlocks?: number | undefined;
426
+ allowedBlocks?: string[] | undefined;
427
+ allowedRegions?: ("body" | "header" | "footer")[] | undefined;
428
+ presets?: {
429
+ name: string;
430
+ settings?: Record<string, unknown> | undefined;
431
+ blocks?: {
432
+ type: string;
433
+ settings: Record<string, unknown>;
434
+ }[] | undefined;
435
+ label?: string | undefined;
436
+ isDefault?: boolean | undefined;
437
+ }[] | undefined;
438
+ }, {
439
+ type: string;
440
+ label: string;
441
+ settings?: {
442
+ id: string;
443
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
444
+ label: string;
445
+ options?: {
446
+ value: string | number | boolean;
447
+ label: string;
448
+ }[] | undefined;
449
+ default?: unknown;
450
+ min?: number | undefined;
451
+ max?: number | undefined;
452
+ step?: number | undefined;
453
+ required?: boolean | undefined;
454
+ placeholder?: string | undefined;
455
+ }[] | undefined;
456
+ blocks?: {
457
+ type: string;
458
+ label: string;
459
+ settings?: {
460
+ id: string;
461
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
462
+ label: string;
463
+ options?: {
464
+ value: string | number | boolean;
465
+ label: string;
466
+ }[] | undefined;
467
+ default?: unknown;
468
+ min?: number | undefined;
469
+ max?: number | undefined;
470
+ step?: number | undefined;
471
+ required?: boolean | undefined;
472
+ placeholder?: string | undefined;
473
+ }[] | undefined;
474
+ max?: number | undefined;
475
+ }[] | undefined;
476
+ category?: string | undefined;
477
+ maxBlocks?: number | undefined;
478
+ allowedBlocks?: string[] | undefined;
479
+ allowedRegions?: ("body" | "header" | "footer")[] | undefined;
480
+ presets?: {
481
+ name: string;
482
+ settings?: Record<string, unknown> | undefined;
483
+ blocks?: {
484
+ type: string;
485
+ settings?: Record<string, unknown> | undefined;
486
+ }[] | undefined;
487
+ label?: string | undefined;
488
+ isDefault?: boolean | undefined;
489
+ }[] | undefined;
490
+ }>;
491
+ export type SectionManifest = z.infer<typeof SectionManifestSchema>;
492
+ export declare const GLOBAL_SECTION_SETTINGS: SettingField[];
493
+ export declare const RAW_HTML_SECTION_MANIFEST: SectionManifest;
494
+ export declare function withGlobalSettings(settings?: SettingField[]): SettingField[];
495
+ export declare const PageTypeEnum: z.ZodEnum<["home", "product-list", "product-detail", "category-list", "category-detail", "search", "custom-page", "not-found", "error", "cart", "checkout", "order-success", "track-order", "login", "signup", "account", "wishlist", "blog-list", "blog-detail", "policy", "digital-list", "digital-detail", "cart-recovery", "order-detail", "offers", "campaign"]>;
496
+ export type PageType = z.infer<typeof PageTypeEnum>;
497
+ export declare const ThemeDesignTokensSchema: z.ZodObject<{
498
+ colors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
499
+ typography: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
500
+ spacing: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
501
+ borderRadius: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
502
+ customCss: z.ZodOptional<z.ZodString>;
503
+ }, "strip", z.ZodTypeAny, {
504
+ spacing?: Record<string, string> | undefined;
505
+ colors?: Record<string, string> | undefined;
506
+ typography?: Record<string, string> | undefined;
507
+ borderRadius?: Record<string, string> | undefined;
508
+ customCss?: string | undefined;
509
+ }, {
510
+ spacing?: Record<string, string> | undefined;
511
+ colors?: Record<string, string> | undefined;
512
+ typography?: Record<string, string> | undefined;
513
+ borderRadius?: Record<string, string> | undefined;
514
+ customCss?: string | undefined;
515
+ }>;
516
+ export type ThemeDesignTokens = z.infer<typeof ThemeDesignTokensSchema>;
517
+ export declare const SettingControlCategorySchema: z.ZodObject<{
518
+ name: z.ZodString;
519
+ label: z.ZodString;
520
+ description: z.ZodOptional<z.ZodString>;
521
+ settings: z.ZodArray<z.ZodObject<{
522
+ id: z.ZodString;
523
+ type: z.ZodEnum<["text", "textarea", "richtext", "inline_richtext", "header", "paragraph", "number", "boolean", "checkbox", "radio", "color", "image", "image_picker", "select", "range", "url", "json", "code", "javascript", "category_list", "product_picker", "collection_picker", "font", "spacing"]>;
524
+ label: z.ZodString;
525
+ default: z.ZodOptional<z.ZodUnknown>;
526
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
527
+ label: z.ZodString;
528
+ value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>;
529
+ }, "strip", z.ZodTypeAny, {
530
+ value: string | number | boolean;
531
+ label: string;
532
+ }, {
533
+ value: string | number | boolean;
534
+ label: string;
535
+ }>, "many">>;
536
+ min: z.ZodOptional<z.ZodNumber>;
537
+ max: z.ZodOptional<z.ZodNumber>;
538
+ step: z.ZodOptional<z.ZodNumber>;
539
+ required: z.ZodOptional<z.ZodBoolean>;
540
+ placeholder: z.ZodOptional<z.ZodString>;
541
+ }, "strip", z.ZodTypeAny, {
542
+ id: string;
543
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
544
+ label: string;
545
+ options?: {
546
+ value: string | number | boolean;
547
+ label: string;
548
+ }[] | undefined;
549
+ default?: unknown;
550
+ min?: number | undefined;
551
+ max?: number | undefined;
552
+ step?: number | undefined;
553
+ required?: boolean | undefined;
554
+ placeholder?: string | undefined;
555
+ }, {
556
+ id: string;
557
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
558
+ label: string;
559
+ options?: {
560
+ value: string | number | boolean;
561
+ label: string;
562
+ }[] | undefined;
563
+ default?: unknown;
564
+ min?: number | undefined;
565
+ max?: number | undefined;
566
+ step?: number | undefined;
567
+ required?: boolean | undefined;
568
+ placeholder?: string | undefined;
569
+ }>, "many">;
570
+ }, "strip", z.ZodTypeAny, {
571
+ settings: {
572
+ id: string;
573
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
574
+ label: string;
575
+ options?: {
576
+ value: string | number | boolean;
577
+ label: string;
578
+ }[] | undefined;
579
+ default?: unknown;
580
+ min?: number | undefined;
581
+ max?: number | undefined;
582
+ step?: number | undefined;
583
+ required?: boolean | undefined;
584
+ placeholder?: string | undefined;
585
+ }[];
586
+ name: string;
587
+ label: string;
588
+ description?: string | undefined;
589
+ }, {
590
+ settings: {
591
+ id: string;
592
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
593
+ label: string;
594
+ options?: {
595
+ value: string | number | boolean;
596
+ label: string;
597
+ }[] | undefined;
598
+ default?: unknown;
599
+ min?: number | undefined;
600
+ max?: number | undefined;
601
+ step?: number | undefined;
602
+ required?: boolean | undefined;
603
+ placeholder?: string | undefined;
604
+ }[];
605
+ name: string;
606
+ label: string;
607
+ description?: string | undefined;
608
+ }>;
609
+ export type SettingControlCategory = z.infer<typeof SettingControlCategorySchema>;
610
+ export declare const GlobalThemeSettingsSchema: z.ZodObject<{
611
+ categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
612
+ name: z.ZodString;
613
+ label: z.ZodString;
614
+ description: z.ZodOptional<z.ZodString>;
615
+ settings: z.ZodArray<z.ZodObject<{
616
+ id: z.ZodString;
617
+ type: z.ZodEnum<["text", "textarea", "richtext", "inline_richtext", "header", "paragraph", "number", "boolean", "checkbox", "radio", "color", "image", "image_picker", "select", "range", "url", "json", "code", "javascript", "category_list", "product_picker", "collection_picker", "font", "spacing"]>;
618
+ label: z.ZodString;
619
+ default: z.ZodOptional<z.ZodUnknown>;
620
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
621
+ label: z.ZodString;
622
+ value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>;
623
+ }, "strip", z.ZodTypeAny, {
624
+ value: string | number | boolean;
625
+ label: string;
626
+ }, {
627
+ value: string | number | boolean;
628
+ label: string;
629
+ }>, "many">>;
630
+ min: z.ZodOptional<z.ZodNumber>;
631
+ max: z.ZodOptional<z.ZodNumber>;
632
+ step: z.ZodOptional<z.ZodNumber>;
633
+ required: z.ZodOptional<z.ZodBoolean>;
634
+ placeholder: z.ZodOptional<z.ZodString>;
635
+ }, "strip", z.ZodTypeAny, {
636
+ id: string;
637
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
638
+ label: string;
639
+ options?: {
640
+ value: string | number | boolean;
641
+ label: string;
642
+ }[] | undefined;
643
+ default?: unknown;
644
+ min?: number | undefined;
645
+ max?: number | undefined;
646
+ step?: number | undefined;
647
+ required?: boolean | undefined;
648
+ placeholder?: string | undefined;
649
+ }, {
650
+ id: string;
651
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
652
+ label: string;
653
+ options?: {
654
+ value: string | number | boolean;
655
+ label: string;
656
+ }[] | undefined;
657
+ default?: unknown;
658
+ min?: number | undefined;
659
+ max?: number | undefined;
660
+ step?: number | undefined;
661
+ required?: boolean | undefined;
662
+ placeholder?: string | undefined;
663
+ }>, "many">;
664
+ }, "strip", z.ZodTypeAny, {
665
+ settings: {
666
+ id: string;
667
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
668
+ label: string;
669
+ options?: {
670
+ value: string | number | boolean;
671
+ label: string;
672
+ }[] | undefined;
673
+ default?: unknown;
674
+ min?: number | undefined;
675
+ max?: number | undefined;
676
+ step?: number | undefined;
677
+ required?: boolean | undefined;
678
+ placeholder?: string | undefined;
679
+ }[];
680
+ name: string;
681
+ label: string;
682
+ description?: string | undefined;
683
+ }, {
684
+ settings: {
685
+ id: string;
686
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
687
+ label: string;
688
+ options?: {
689
+ value: string | number | boolean;
690
+ label: string;
691
+ }[] | undefined;
692
+ default?: unknown;
693
+ min?: number | undefined;
694
+ max?: number | undefined;
695
+ step?: number | undefined;
696
+ required?: boolean | undefined;
697
+ placeholder?: string | undefined;
698
+ }[];
699
+ name: string;
700
+ label: string;
701
+ description?: string | undefined;
702
+ }>, "many">>;
703
+ settings: z.ZodOptional<z.ZodArray<z.ZodObject<{
704
+ id: z.ZodString;
705
+ type: z.ZodEnum<["text", "textarea", "richtext", "inline_richtext", "header", "paragraph", "number", "boolean", "checkbox", "radio", "color", "image", "image_picker", "select", "range", "url", "json", "code", "javascript", "category_list", "product_picker", "collection_picker", "font", "spacing"]>;
706
+ label: z.ZodString;
707
+ default: z.ZodOptional<z.ZodUnknown>;
708
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
709
+ label: z.ZodString;
710
+ value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>;
711
+ }, "strip", z.ZodTypeAny, {
712
+ value: string | number | boolean;
713
+ label: string;
714
+ }, {
715
+ value: string | number | boolean;
716
+ label: string;
717
+ }>, "many">>;
718
+ min: z.ZodOptional<z.ZodNumber>;
719
+ max: z.ZodOptional<z.ZodNumber>;
720
+ step: z.ZodOptional<z.ZodNumber>;
721
+ required: z.ZodOptional<z.ZodBoolean>;
722
+ placeholder: z.ZodOptional<z.ZodString>;
723
+ }, "strip", z.ZodTypeAny, {
724
+ id: string;
725
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
726
+ label: string;
727
+ options?: {
728
+ value: string | number | boolean;
729
+ label: string;
730
+ }[] | undefined;
731
+ default?: unknown;
732
+ min?: number | undefined;
733
+ max?: number | undefined;
734
+ step?: number | undefined;
735
+ required?: boolean | undefined;
736
+ placeholder?: string | undefined;
737
+ }, {
738
+ id: string;
739
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
740
+ label: string;
741
+ options?: {
742
+ value: string | number | boolean;
743
+ label: string;
744
+ }[] | undefined;
745
+ default?: unknown;
746
+ min?: number | undefined;
747
+ max?: number | undefined;
748
+ step?: number | undefined;
749
+ required?: boolean | undefined;
750
+ placeholder?: string | undefined;
751
+ }>, "many">>;
752
+ }, "strip", z.ZodTypeAny, {
753
+ settings?: {
754
+ id: string;
755
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
756
+ label: string;
757
+ options?: {
758
+ value: string | number | boolean;
759
+ label: string;
760
+ }[] | undefined;
761
+ default?: unknown;
762
+ min?: number | undefined;
763
+ max?: number | undefined;
764
+ step?: number | undefined;
765
+ required?: boolean | undefined;
766
+ placeholder?: string | undefined;
767
+ }[] | undefined;
768
+ categories?: {
769
+ settings: {
770
+ id: string;
771
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
772
+ label: string;
773
+ options?: {
774
+ value: string | number | boolean;
775
+ label: string;
776
+ }[] | undefined;
777
+ default?: unknown;
778
+ min?: number | undefined;
779
+ max?: number | undefined;
780
+ step?: number | undefined;
781
+ required?: boolean | undefined;
782
+ placeholder?: string | undefined;
783
+ }[];
784
+ name: string;
785
+ label: string;
786
+ description?: string | undefined;
787
+ }[] | undefined;
788
+ }, {
789
+ settings?: {
790
+ id: string;
791
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
792
+ label: string;
793
+ options?: {
794
+ value: string | number | boolean;
795
+ label: string;
796
+ }[] | undefined;
797
+ default?: unknown;
798
+ min?: number | undefined;
799
+ max?: number | undefined;
800
+ step?: number | undefined;
801
+ required?: boolean | undefined;
802
+ placeholder?: string | undefined;
803
+ }[] | undefined;
804
+ categories?: {
805
+ settings: {
806
+ id: string;
807
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
808
+ label: string;
809
+ options?: {
810
+ value: string | number | boolean;
811
+ label: string;
812
+ }[] | undefined;
813
+ default?: unknown;
814
+ min?: number | undefined;
815
+ max?: number | undefined;
816
+ step?: number | undefined;
817
+ required?: boolean | undefined;
818
+ placeholder?: string | undefined;
819
+ }[];
820
+ name: string;
821
+ label: string;
822
+ description?: string | undefined;
823
+ }[] | undefined;
824
+ }>;
825
+ export type GlobalThemeSettings = z.infer<typeof GlobalThemeSettingsSchema>;
826
+ export declare const ThemeManifestSchema: z.ZodObject<{
827
+ slug: z.ZodString;
828
+ name: z.ZodString;
829
+ version: z.ZodString;
830
+ engine: z.ZodOptional<z.ZodEnum<["typescript", "candy"]>>;
831
+ engineVersion: z.ZodDefault<z.ZodString>;
832
+ description: z.ZodOptional<z.ZodString>;
833
+ author: z.ZodOptional<z.ZodString>;
834
+ previewImage: z.ZodOptional<z.ZodString>;
835
+ ready: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
836
+ supportedPageTypes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<["home", "product-list", "product-detail", "category-list", "category-detail", "search", "custom-page", "not-found", "error", "cart", "checkout", "order-success", "track-order", "login", "signup", "account", "wishlist", "blog-list", "blog-detail", "policy", "digital-list", "digital-detail", "cart-recovery", "order-detail", "offers", "campaign"]>, "many">>>;
837
+ regions: z.ZodDefault<z.ZodArray<z.ZodEnum<["header", "body", "footer"]>, "many">>;
838
+ sections: z.ZodArray<z.ZodObject<{
839
+ type: z.ZodString;
840
+ label: z.ZodString;
841
+ category: z.ZodOptional<z.ZodString>;
842
+ maxBlocks: z.ZodOptional<z.ZodNumber>;
843
+ allowedBlocks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
844
+ allowedRegions: z.ZodOptional<z.ZodArray<z.ZodEnum<["header", "body", "footer"]>, "many">>;
845
+ settings: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
846
+ id: z.ZodString;
847
+ type: z.ZodEnum<["text", "textarea", "richtext", "inline_richtext", "header", "paragraph", "number", "boolean", "checkbox", "radio", "color", "image", "image_picker", "select", "range", "url", "json", "code", "javascript", "category_list", "product_picker", "collection_picker", "font", "spacing"]>;
848
+ label: z.ZodString;
849
+ default: z.ZodOptional<z.ZodUnknown>;
850
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
851
+ label: z.ZodString;
852
+ value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>;
853
+ }, "strip", z.ZodTypeAny, {
854
+ value: string | number | boolean;
855
+ label: string;
856
+ }, {
857
+ value: string | number | boolean;
858
+ label: string;
859
+ }>, "many">>;
860
+ min: z.ZodOptional<z.ZodNumber>;
861
+ max: z.ZodOptional<z.ZodNumber>;
862
+ step: z.ZodOptional<z.ZodNumber>;
863
+ required: z.ZodOptional<z.ZodBoolean>;
864
+ placeholder: z.ZodOptional<z.ZodString>;
865
+ }, "strip", z.ZodTypeAny, {
866
+ id: string;
867
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
868
+ label: string;
869
+ options?: {
870
+ value: string | number | boolean;
871
+ label: string;
872
+ }[] | undefined;
873
+ default?: unknown;
874
+ min?: number | undefined;
875
+ max?: number | undefined;
876
+ step?: number | undefined;
877
+ required?: boolean | undefined;
878
+ placeholder?: string | undefined;
879
+ }, {
880
+ id: string;
881
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
882
+ label: string;
883
+ options?: {
884
+ value: string | number | boolean;
885
+ label: string;
886
+ }[] | undefined;
887
+ default?: unknown;
888
+ min?: number | undefined;
889
+ max?: number | undefined;
890
+ step?: number | undefined;
891
+ required?: boolean | undefined;
892
+ placeholder?: string | undefined;
893
+ }>, "many">>>;
894
+ blocks: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
895
+ type: z.ZodString;
896
+ label: z.ZodString;
897
+ max: z.ZodOptional<z.ZodNumber>;
898
+ settings: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
899
+ id: z.ZodString;
900
+ type: z.ZodEnum<["text", "textarea", "richtext", "inline_richtext", "header", "paragraph", "number", "boolean", "checkbox", "radio", "color", "image", "image_picker", "select", "range", "url", "json", "code", "javascript", "category_list", "product_picker", "collection_picker", "font", "spacing"]>;
901
+ label: z.ZodString;
902
+ default: z.ZodOptional<z.ZodUnknown>;
903
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
904
+ label: z.ZodString;
905
+ value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>;
906
+ }, "strip", z.ZodTypeAny, {
907
+ value: string | number | boolean;
908
+ label: string;
909
+ }, {
910
+ value: string | number | boolean;
911
+ label: string;
912
+ }>, "many">>;
913
+ min: z.ZodOptional<z.ZodNumber>;
914
+ max: z.ZodOptional<z.ZodNumber>;
915
+ step: z.ZodOptional<z.ZodNumber>;
916
+ required: z.ZodOptional<z.ZodBoolean>;
917
+ placeholder: z.ZodOptional<z.ZodString>;
918
+ }, "strip", z.ZodTypeAny, {
919
+ id: string;
920
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
921
+ label: string;
922
+ options?: {
923
+ value: string | number | boolean;
924
+ label: string;
925
+ }[] | undefined;
926
+ default?: unknown;
927
+ min?: number | undefined;
928
+ max?: number | undefined;
929
+ step?: number | undefined;
930
+ required?: boolean | undefined;
931
+ placeholder?: string | undefined;
932
+ }, {
933
+ id: string;
934
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
935
+ label: string;
936
+ options?: {
937
+ value: string | number | boolean;
938
+ label: string;
939
+ }[] | undefined;
940
+ default?: unknown;
941
+ min?: number | undefined;
942
+ max?: number | undefined;
943
+ step?: number | undefined;
944
+ required?: boolean | undefined;
945
+ placeholder?: string | undefined;
946
+ }>, "many">>>;
947
+ }, "strip", z.ZodTypeAny, {
948
+ type: string;
949
+ settings: {
950
+ id: string;
951
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
952
+ label: string;
953
+ options?: {
954
+ value: string | number | boolean;
955
+ label: string;
956
+ }[] | undefined;
957
+ default?: unknown;
958
+ min?: number | undefined;
959
+ max?: number | undefined;
960
+ step?: number | undefined;
961
+ required?: boolean | undefined;
962
+ placeholder?: string | undefined;
963
+ }[];
964
+ label: string;
965
+ max?: number | undefined;
966
+ }, {
967
+ type: string;
968
+ label: string;
969
+ settings?: {
970
+ id: string;
971
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
972
+ label: string;
973
+ options?: {
974
+ value: string | number | boolean;
975
+ label: string;
976
+ }[] | undefined;
977
+ default?: unknown;
978
+ min?: number | undefined;
979
+ max?: number | undefined;
980
+ step?: number | undefined;
981
+ required?: boolean | undefined;
982
+ placeholder?: string | undefined;
983
+ }[] | undefined;
984
+ max?: number | undefined;
985
+ }>, "many">>>;
986
+ presets: z.ZodOptional<z.ZodArray<z.ZodObject<{
987
+ name: z.ZodString;
988
+ label: z.ZodOptional<z.ZodString>;
989
+ isDefault: z.ZodOptional<z.ZodBoolean>;
990
+ settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
991
+ blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{
992
+ type: z.ZodString;
993
+ settings: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
994
+ }, "strip", z.ZodTypeAny, {
995
+ type: string;
996
+ settings: Record<string, unknown>;
997
+ }, {
998
+ type: string;
999
+ settings?: Record<string, unknown> | undefined;
1000
+ }>, "many">>;
1001
+ }, "strip", z.ZodTypeAny, {
1002
+ name: string;
1003
+ settings?: Record<string, unknown> | undefined;
1004
+ blocks?: {
1005
+ type: string;
1006
+ settings: Record<string, unknown>;
1007
+ }[] | undefined;
1008
+ label?: string | undefined;
1009
+ isDefault?: boolean | undefined;
1010
+ }, {
1011
+ name: string;
1012
+ settings?: Record<string, unknown> | undefined;
1013
+ blocks?: {
1014
+ type: string;
1015
+ settings?: Record<string, unknown> | undefined;
1016
+ }[] | undefined;
1017
+ label?: string | undefined;
1018
+ isDefault?: boolean | undefined;
1019
+ }>, "many">>;
1020
+ }, "strip", z.ZodTypeAny, {
1021
+ type: string;
1022
+ settings: {
1023
+ id: string;
1024
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
1025
+ label: string;
1026
+ options?: {
1027
+ value: string | number | boolean;
1028
+ label: string;
1029
+ }[] | undefined;
1030
+ default?: unknown;
1031
+ min?: number | undefined;
1032
+ max?: number | undefined;
1033
+ step?: number | undefined;
1034
+ required?: boolean | undefined;
1035
+ placeholder?: string | undefined;
1036
+ }[];
1037
+ blocks: {
1038
+ type: string;
1039
+ settings: {
1040
+ id: string;
1041
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
1042
+ label: string;
1043
+ options?: {
1044
+ value: string | number | boolean;
1045
+ label: string;
1046
+ }[] | undefined;
1047
+ default?: unknown;
1048
+ min?: number | undefined;
1049
+ max?: number | undefined;
1050
+ step?: number | undefined;
1051
+ required?: boolean | undefined;
1052
+ placeholder?: string | undefined;
1053
+ }[];
1054
+ label: string;
1055
+ max?: number | undefined;
1056
+ }[];
1057
+ label: string;
1058
+ category?: string | undefined;
1059
+ maxBlocks?: number | undefined;
1060
+ allowedBlocks?: string[] | undefined;
1061
+ allowedRegions?: ("body" | "header" | "footer")[] | undefined;
1062
+ presets?: {
1063
+ name: string;
1064
+ settings?: Record<string, unknown> | undefined;
1065
+ blocks?: {
1066
+ type: string;
1067
+ settings: Record<string, unknown>;
1068
+ }[] | undefined;
1069
+ label?: string | undefined;
1070
+ isDefault?: boolean | undefined;
1071
+ }[] | undefined;
1072
+ }, {
1073
+ type: string;
1074
+ label: string;
1075
+ settings?: {
1076
+ id: string;
1077
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
1078
+ label: string;
1079
+ options?: {
1080
+ value: string | number | boolean;
1081
+ label: string;
1082
+ }[] | undefined;
1083
+ default?: unknown;
1084
+ min?: number | undefined;
1085
+ max?: number | undefined;
1086
+ step?: number | undefined;
1087
+ required?: boolean | undefined;
1088
+ placeholder?: string | undefined;
1089
+ }[] | undefined;
1090
+ blocks?: {
1091
+ type: string;
1092
+ label: string;
1093
+ settings?: {
1094
+ id: string;
1095
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
1096
+ label: string;
1097
+ options?: {
1098
+ value: string | number | boolean;
1099
+ label: string;
1100
+ }[] | undefined;
1101
+ default?: unknown;
1102
+ min?: number | undefined;
1103
+ max?: number | undefined;
1104
+ step?: number | undefined;
1105
+ required?: boolean | undefined;
1106
+ placeholder?: string | undefined;
1107
+ }[] | undefined;
1108
+ max?: number | undefined;
1109
+ }[] | undefined;
1110
+ category?: string | undefined;
1111
+ maxBlocks?: number | undefined;
1112
+ allowedBlocks?: string[] | undefined;
1113
+ allowedRegions?: ("body" | "header" | "footer")[] | undefined;
1114
+ presets?: {
1115
+ name: string;
1116
+ settings?: Record<string, unknown> | undefined;
1117
+ blocks?: {
1118
+ type: string;
1119
+ settings?: Record<string, unknown> | undefined;
1120
+ }[] | undefined;
1121
+ label?: string | undefined;
1122
+ isDefault?: boolean | undefined;
1123
+ }[] | undefined;
1124
+ }>, "many">;
1125
+ tokens: z.ZodOptional<z.ZodObject<{
1126
+ colors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1127
+ typography: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1128
+ spacing: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1129
+ borderRadius: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1130
+ customCss: z.ZodOptional<z.ZodString>;
1131
+ }, "strip", z.ZodTypeAny, {
1132
+ spacing?: Record<string, string> | undefined;
1133
+ colors?: Record<string, string> | undefined;
1134
+ typography?: Record<string, string> | undefined;
1135
+ borderRadius?: Record<string, string> | undefined;
1136
+ customCss?: string | undefined;
1137
+ }, {
1138
+ spacing?: Record<string, string> | undefined;
1139
+ colors?: Record<string, string> | undefined;
1140
+ typography?: Record<string, string> | undefined;
1141
+ borderRadius?: Record<string, string> | undefined;
1142
+ customCss?: string | undefined;
1143
+ }>>;
1144
+ blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1145
+ type: z.ZodString;
1146
+ label: z.ZodString;
1147
+ max: z.ZodOptional<z.ZodNumber>;
1148
+ settings: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1149
+ id: z.ZodString;
1150
+ type: z.ZodEnum<["text", "textarea", "richtext", "inline_richtext", "header", "paragraph", "number", "boolean", "checkbox", "radio", "color", "image", "image_picker", "select", "range", "url", "json", "code", "javascript", "category_list", "product_picker", "collection_picker", "font", "spacing"]>;
1151
+ label: z.ZodString;
1152
+ default: z.ZodOptional<z.ZodUnknown>;
1153
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
1154
+ label: z.ZodString;
1155
+ value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>;
1156
+ }, "strip", z.ZodTypeAny, {
1157
+ value: string | number | boolean;
1158
+ label: string;
1159
+ }, {
1160
+ value: string | number | boolean;
1161
+ label: string;
1162
+ }>, "many">>;
1163
+ min: z.ZodOptional<z.ZodNumber>;
1164
+ max: z.ZodOptional<z.ZodNumber>;
1165
+ step: z.ZodOptional<z.ZodNumber>;
1166
+ required: z.ZodOptional<z.ZodBoolean>;
1167
+ placeholder: z.ZodOptional<z.ZodString>;
1168
+ }, "strip", z.ZodTypeAny, {
1169
+ id: string;
1170
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
1171
+ label: string;
1172
+ options?: {
1173
+ value: string | number | boolean;
1174
+ label: string;
1175
+ }[] | undefined;
1176
+ default?: unknown;
1177
+ min?: number | undefined;
1178
+ max?: number | undefined;
1179
+ step?: number | undefined;
1180
+ required?: boolean | undefined;
1181
+ placeholder?: string | undefined;
1182
+ }, {
1183
+ id: string;
1184
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
1185
+ label: string;
1186
+ options?: {
1187
+ value: string | number | boolean;
1188
+ label: string;
1189
+ }[] | undefined;
1190
+ default?: unknown;
1191
+ min?: number | undefined;
1192
+ max?: number | undefined;
1193
+ step?: number | undefined;
1194
+ required?: boolean | undefined;
1195
+ placeholder?: string | undefined;
1196
+ }>, "many">>>;
1197
+ }, "strip", z.ZodTypeAny, {
1198
+ type: string;
1199
+ settings: {
1200
+ id: string;
1201
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
1202
+ label: string;
1203
+ options?: {
1204
+ value: string | number | boolean;
1205
+ label: string;
1206
+ }[] | undefined;
1207
+ default?: unknown;
1208
+ min?: number | undefined;
1209
+ max?: number | undefined;
1210
+ step?: number | undefined;
1211
+ required?: boolean | undefined;
1212
+ placeholder?: string | undefined;
1213
+ }[];
1214
+ label: string;
1215
+ max?: number | undefined;
1216
+ }, {
1217
+ type: string;
1218
+ label: string;
1219
+ settings?: {
1220
+ id: string;
1221
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
1222
+ label: string;
1223
+ options?: {
1224
+ value: string | number | boolean;
1225
+ label: string;
1226
+ }[] | undefined;
1227
+ default?: unknown;
1228
+ min?: number | undefined;
1229
+ max?: number | undefined;
1230
+ step?: number | undefined;
1231
+ required?: boolean | undefined;
1232
+ placeholder?: string | undefined;
1233
+ }[] | undefined;
1234
+ max?: number | undefined;
1235
+ }>, "many">>;
1236
+ globalSettingsSchema: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1237
+ categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
1238
+ name: z.ZodString;
1239
+ label: z.ZodString;
1240
+ description: z.ZodOptional<z.ZodString>;
1241
+ settings: z.ZodArray<z.ZodObject<{
1242
+ id: z.ZodString;
1243
+ type: z.ZodEnum<["text", "textarea", "richtext", "inline_richtext", "header", "paragraph", "number", "boolean", "checkbox", "radio", "color", "image", "image_picker", "select", "range", "url", "json", "code", "javascript", "category_list", "product_picker", "collection_picker", "font", "spacing"]>;
1244
+ label: z.ZodString;
1245
+ default: z.ZodOptional<z.ZodUnknown>;
1246
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
1247
+ label: z.ZodString;
1248
+ value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>;
1249
+ }, "strip", z.ZodTypeAny, {
1250
+ value: string | number | boolean;
1251
+ label: string;
1252
+ }, {
1253
+ value: string | number | boolean;
1254
+ label: string;
1255
+ }>, "many">>;
1256
+ min: z.ZodOptional<z.ZodNumber>;
1257
+ max: z.ZodOptional<z.ZodNumber>;
1258
+ step: z.ZodOptional<z.ZodNumber>;
1259
+ required: z.ZodOptional<z.ZodBoolean>;
1260
+ placeholder: z.ZodOptional<z.ZodString>;
1261
+ }, "strip", z.ZodTypeAny, {
1262
+ id: string;
1263
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
1264
+ label: string;
1265
+ options?: {
1266
+ value: string | number | boolean;
1267
+ label: string;
1268
+ }[] | undefined;
1269
+ default?: unknown;
1270
+ min?: number | undefined;
1271
+ max?: number | undefined;
1272
+ step?: number | undefined;
1273
+ required?: boolean | undefined;
1274
+ placeholder?: string | undefined;
1275
+ }, {
1276
+ id: string;
1277
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
1278
+ label: string;
1279
+ options?: {
1280
+ value: string | number | boolean;
1281
+ label: string;
1282
+ }[] | undefined;
1283
+ default?: unknown;
1284
+ min?: number | undefined;
1285
+ max?: number | undefined;
1286
+ step?: number | undefined;
1287
+ required?: boolean | undefined;
1288
+ placeholder?: string | undefined;
1289
+ }>, "many">;
1290
+ }, "strip", z.ZodTypeAny, {
1291
+ settings: {
1292
+ id: string;
1293
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
1294
+ label: string;
1295
+ options?: {
1296
+ value: string | number | boolean;
1297
+ label: string;
1298
+ }[] | undefined;
1299
+ default?: unknown;
1300
+ min?: number | undefined;
1301
+ max?: number | undefined;
1302
+ step?: number | undefined;
1303
+ required?: boolean | undefined;
1304
+ placeholder?: string | undefined;
1305
+ }[];
1306
+ name: string;
1307
+ label: string;
1308
+ description?: string | undefined;
1309
+ }, {
1310
+ settings: {
1311
+ id: string;
1312
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
1313
+ label: string;
1314
+ options?: {
1315
+ value: string | number | boolean;
1316
+ label: string;
1317
+ }[] | undefined;
1318
+ default?: unknown;
1319
+ min?: number | undefined;
1320
+ max?: number | undefined;
1321
+ step?: number | undefined;
1322
+ required?: boolean | undefined;
1323
+ placeholder?: string | undefined;
1324
+ }[];
1325
+ name: string;
1326
+ label: string;
1327
+ description?: string | undefined;
1328
+ }>, "many">>;
1329
+ settings: z.ZodOptional<z.ZodArray<z.ZodObject<{
1330
+ id: z.ZodString;
1331
+ type: z.ZodEnum<["text", "textarea", "richtext", "inline_richtext", "header", "paragraph", "number", "boolean", "checkbox", "radio", "color", "image", "image_picker", "select", "range", "url", "json", "code", "javascript", "category_list", "product_picker", "collection_picker", "font", "spacing"]>;
1332
+ label: z.ZodString;
1333
+ default: z.ZodOptional<z.ZodUnknown>;
1334
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
1335
+ label: z.ZodString;
1336
+ value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>;
1337
+ }, "strip", z.ZodTypeAny, {
1338
+ value: string | number | boolean;
1339
+ label: string;
1340
+ }, {
1341
+ value: string | number | boolean;
1342
+ label: string;
1343
+ }>, "many">>;
1344
+ min: z.ZodOptional<z.ZodNumber>;
1345
+ max: z.ZodOptional<z.ZodNumber>;
1346
+ step: z.ZodOptional<z.ZodNumber>;
1347
+ required: z.ZodOptional<z.ZodBoolean>;
1348
+ placeholder: z.ZodOptional<z.ZodString>;
1349
+ }, "strip", z.ZodTypeAny, {
1350
+ id: string;
1351
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
1352
+ label: string;
1353
+ options?: {
1354
+ value: string | number | boolean;
1355
+ label: string;
1356
+ }[] | undefined;
1357
+ default?: unknown;
1358
+ min?: number | undefined;
1359
+ max?: number | undefined;
1360
+ step?: number | undefined;
1361
+ required?: boolean | undefined;
1362
+ placeholder?: string | undefined;
1363
+ }, {
1364
+ id: string;
1365
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
1366
+ label: string;
1367
+ options?: {
1368
+ value: string | number | boolean;
1369
+ label: string;
1370
+ }[] | undefined;
1371
+ default?: unknown;
1372
+ min?: number | undefined;
1373
+ max?: number | undefined;
1374
+ step?: number | undefined;
1375
+ required?: boolean | undefined;
1376
+ placeholder?: string | undefined;
1377
+ }>, "many">>;
1378
+ }, "strip", z.ZodTypeAny, {
1379
+ settings?: {
1380
+ id: string;
1381
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
1382
+ label: string;
1383
+ options?: {
1384
+ value: string | number | boolean;
1385
+ label: string;
1386
+ }[] | undefined;
1387
+ default?: unknown;
1388
+ min?: number | undefined;
1389
+ max?: number | undefined;
1390
+ step?: number | undefined;
1391
+ required?: boolean | undefined;
1392
+ placeholder?: string | undefined;
1393
+ }[] | undefined;
1394
+ categories?: {
1395
+ settings: {
1396
+ id: string;
1397
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
1398
+ label: string;
1399
+ options?: {
1400
+ value: string | number | boolean;
1401
+ label: string;
1402
+ }[] | undefined;
1403
+ default?: unknown;
1404
+ min?: number | undefined;
1405
+ max?: number | undefined;
1406
+ step?: number | undefined;
1407
+ required?: boolean | undefined;
1408
+ placeholder?: string | undefined;
1409
+ }[];
1410
+ name: string;
1411
+ label: string;
1412
+ description?: string | undefined;
1413
+ }[] | undefined;
1414
+ }, {
1415
+ settings?: {
1416
+ id: string;
1417
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
1418
+ label: string;
1419
+ options?: {
1420
+ value: string | number | boolean;
1421
+ label: string;
1422
+ }[] | undefined;
1423
+ default?: unknown;
1424
+ min?: number | undefined;
1425
+ max?: number | undefined;
1426
+ step?: number | undefined;
1427
+ required?: boolean | undefined;
1428
+ placeholder?: string | undefined;
1429
+ }[] | undefined;
1430
+ categories?: {
1431
+ settings: {
1432
+ id: string;
1433
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
1434
+ label: string;
1435
+ options?: {
1436
+ value: string | number | boolean;
1437
+ label: string;
1438
+ }[] | undefined;
1439
+ default?: unknown;
1440
+ min?: number | undefined;
1441
+ max?: number | undefined;
1442
+ step?: number | undefined;
1443
+ required?: boolean | undefined;
1444
+ placeholder?: string | undefined;
1445
+ }[];
1446
+ name: string;
1447
+ label: string;
1448
+ description?: string | undefined;
1449
+ }[] | undefined;
1450
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
1451
+ templates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
1452
+ schemaVersion: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1453
+ name: z.ZodOptional<z.ZodString>;
1454
+ layout: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1455
+ wrapper: z.ZodOptional<z.ZodString>;
1456
+ sections: z.ZodRecord<z.ZodString, z.ZodObject<{
1457
+ id: z.ZodOptional<z.ZodString>;
1458
+ type: z.ZodString;
1459
+ disabled: z.ZodOptional<z.ZodBoolean>;
1460
+ settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1461
+ styles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1462
+ blocks: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodObject<{
1463
+ id: z.ZodOptional<z.ZodString>;
1464
+ type: z.ZodString;
1465
+ disabled: z.ZodOptional<z.ZodBoolean>;
1466
+ settings: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1467
+ styles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1468
+ }, "strip", z.ZodTypeAny, {
1469
+ type: string;
1470
+ settings: Record<string, unknown>;
1471
+ id?: string | undefined;
1472
+ disabled?: boolean | undefined;
1473
+ styles?: Record<string, unknown> | undefined;
1474
+ }, {
1475
+ type: string;
1476
+ id?: string | undefined;
1477
+ disabled?: boolean | undefined;
1478
+ settings?: Record<string, unknown> | undefined;
1479
+ styles?: Record<string, unknown> | undefined;
1480
+ }>>, z.ZodArray<z.ZodObject<{
1481
+ id: z.ZodOptional<z.ZodString>;
1482
+ type: z.ZodString;
1483
+ disabled: z.ZodOptional<z.ZodBoolean>;
1484
+ settings: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1485
+ styles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1486
+ }, "strip", z.ZodTypeAny, {
1487
+ type: string;
1488
+ settings: Record<string, unknown>;
1489
+ id?: string | undefined;
1490
+ disabled?: boolean | undefined;
1491
+ styles?: Record<string, unknown> | undefined;
1492
+ }, {
1493
+ type: string;
1494
+ id?: string | undefined;
1495
+ disabled?: boolean | undefined;
1496
+ settings?: Record<string, unknown> | undefined;
1497
+ styles?: Record<string, unknown> | undefined;
1498
+ }>, "many">]>>;
1499
+ block_order: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1500
+ blockOrder: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1501
+ }, "strip", z.ZodTypeAny, {
1502
+ type: string;
1503
+ id?: string | undefined;
1504
+ disabled?: boolean | undefined;
1505
+ settings?: Record<string, unknown> | undefined;
1506
+ styles?: Record<string, unknown> | undefined;
1507
+ blocks?: Record<string, {
1508
+ type: string;
1509
+ settings: Record<string, unknown>;
1510
+ id?: string | undefined;
1511
+ disabled?: boolean | undefined;
1512
+ styles?: Record<string, unknown> | undefined;
1513
+ }> | {
1514
+ type: string;
1515
+ settings: Record<string, unknown>;
1516
+ id?: string | undefined;
1517
+ disabled?: boolean | undefined;
1518
+ styles?: Record<string, unknown> | undefined;
1519
+ }[] | undefined;
1520
+ block_order?: string[] | undefined;
1521
+ blockOrder?: string[] | undefined;
1522
+ }, {
1523
+ type: string;
1524
+ id?: string | undefined;
1525
+ disabled?: boolean | undefined;
1526
+ settings?: Record<string, unknown> | undefined;
1527
+ styles?: Record<string, unknown> | undefined;
1528
+ blocks?: Record<string, {
1529
+ type: string;
1530
+ id?: string | undefined;
1531
+ disabled?: boolean | undefined;
1532
+ settings?: Record<string, unknown> | undefined;
1533
+ styles?: Record<string, unknown> | undefined;
1534
+ }> | {
1535
+ type: string;
1536
+ id?: string | undefined;
1537
+ disabled?: boolean | undefined;
1538
+ settings?: Record<string, unknown> | undefined;
1539
+ styles?: Record<string, unknown> | undefined;
1540
+ }[] | undefined;
1541
+ block_order?: string[] | undefined;
1542
+ blockOrder?: string[] | undefined;
1543
+ }>>;
1544
+ order: z.ZodArray<z.ZodString, "many">;
1545
+ }, "strip", z.ZodTypeAny, {
1546
+ schemaVersion: number;
1547
+ layout: string;
1548
+ sections: Record<string, {
1549
+ type: string;
1550
+ id?: string | undefined;
1551
+ disabled?: boolean | undefined;
1552
+ settings?: Record<string, unknown> | undefined;
1553
+ styles?: Record<string, unknown> | undefined;
1554
+ blocks?: Record<string, {
1555
+ type: string;
1556
+ settings: Record<string, unknown>;
1557
+ id?: string | undefined;
1558
+ disabled?: boolean | undefined;
1559
+ styles?: Record<string, unknown> | undefined;
1560
+ }> | {
1561
+ type: string;
1562
+ settings: Record<string, unknown>;
1563
+ id?: string | undefined;
1564
+ disabled?: boolean | undefined;
1565
+ styles?: Record<string, unknown> | undefined;
1566
+ }[] | undefined;
1567
+ block_order?: string[] | undefined;
1568
+ blockOrder?: string[] | undefined;
1569
+ }>;
1570
+ order: string[];
1571
+ name?: string | undefined;
1572
+ wrapper?: string | undefined;
1573
+ }, {
1574
+ sections: Record<string, {
1575
+ type: string;
1576
+ id?: string | undefined;
1577
+ disabled?: boolean | undefined;
1578
+ settings?: Record<string, unknown> | undefined;
1579
+ styles?: Record<string, unknown> | undefined;
1580
+ blocks?: Record<string, {
1581
+ type: string;
1582
+ id?: string | undefined;
1583
+ disabled?: boolean | undefined;
1584
+ settings?: Record<string, unknown> | undefined;
1585
+ styles?: Record<string, unknown> | undefined;
1586
+ }> | {
1587
+ type: string;
1588
+ id?: string | undefined;
1589
+ disabled?: boolean | undefined;
1590
+ settings?: Record<string, unknown> | undefined;
1591
+ styles?: Record<string, unknown> | undefined;
1592
+ }[] | undefined;
1593
+ block_order?: string[] | undefined;
1594
+ blockOrder?: string[] | undefined;
1595
+ }>;
1596
+ order: string[];
1597
+ schemaVersion?: number | undefined;
1598
+ name?: string | undefined;
1599
+ layout?: string | undefined;
1600
+ wrapper?: string | undefined;
1601
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
1602
+ layouts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
1603
+ schemaVersion: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1604
+ name: z.ZodOptional<z.ZodString>;
1605
+ supportedRegions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1606
+ regions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
1607
+ sections: z.ZodRecord<z.ZodString, z.ZodObject<{
1608
+ id: z.ZodOptional<z.ZodString>;
1609
+ type: z.ZodString;
1610
+ disabled: z.ZodOptional<z.ZodBoolean>;
1611
+ settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1612
+ styles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1613
+ blocks: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodObject<{
1614
+ id: z.ZodOptional<z.ZodString>;
1615
+ type: z.ZodString;
1616
+ disabled: z.ZodOptional<z.ZodBoolean>;
1617
+ settings: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1618
+ styles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1619
+ }, "strip", z.ZodTypeAny, {
1620
+ type: string;
1621
+ settings: Record<string, unknown>;
1622
+ id?: string | undefined;
1623
+ disabled?: boolean | undefined;
1624
+ styles?: Record<string, unknown> | undefined;
1625
+ }, {
1626
+ type: string;
1627
+ id?: string | undefined;
1628
+ disabled?: boolean | undefined;
1629
+ settings?: Record<string, unknown> | undefined;
1630
+ styles?: Record<string, unknown> | undefined;
1631
+ }>>, z.ZodArray<z.ZodObject<{
1632
+ id: z.ZodOptional<z.ZodString>;
1633
+ type: z.ZodString;
1634
+ disabled: z.ZodOptional<z.ZodBoolean>;
1635
+ settings: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1636
+ styles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1637
+ }, "strip", z.ZodTypeAny, {
1638
+ type: string;
1639
+ settings: Record<string, unknown>;
1640
+ id?: string | undefined;
1641
+ disabled?: boolean | undefined;
1642
+ styles?: Record<string, unknown> | undefined;
1643
+ }, {
1644
+ type: string;
1645
+ id?: string | undefined;
1646
+ disabled?: boolean | undefined;
1647
+ settings?: Record<string, unknown> | undefined;
1648
+ styles?: Record<string, unknown> | undefined;
1649
+ }>, "many">]>>;
1650
+ block_order: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1651
+ blockOrder: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1652
+ }, "strip", z.ZodTypeAny, {
1653
+ type: string;
1654
+ id?: string | undefined;
1655
+ disabled?: boolean | undefined;
1656
+ settings?: Record<string, unknown> | undefined;
1657
+ styles?: Record<string, unknown> | undefined;
1658
+ blocks?: Record<string, {
1659
+ type: string;
1660
+ settings: Record<string, unknown>;
1661
+ id?: string | undefined;
1662
+ disabled?: boolean | undefined;
1663
+ styles?: Record<string, unknown> | undefined;
1664
+ }> | {
1665
+ type: string;
1666
+ settings: Record<string, unknown>;
1667
+ id?: string | undefined;
1668
+ disabled?: boolean | undefined;
1669
+ styles?: Record<string, unknown> | undefined;
1670
+ }[] | undefined;
1671
+ block_order?: string[] | undefined;
1672
+ blockOrder?: string[] | undefined;
1673
+ }, {
1674
+ type: string;
1675
+ id?: string | undefined;
1676
+ disabled?: boolean | undefined;
1677
+ settings?: Record<string, unknown> | undefined;
1678
+ styles?: Record<string, unknown> | undefined;
1679
+ blocks?: Record<string, {
1680
+ type: string;
1681
+ id?: string | undefined;
1682
+ disabled?: boolean | undefined;
1683
+ settings?: Record<string, unknown> | undefined;
1684
+ styles?: Record<string, unknown> | undefined;
1685
+ }> | {
1686
+ type: string;
1687
+ id?: string | undefined;
1688
+ disabled?: boolean | undefined;
1689
+ settings?: Record<string, unknown> | undefined;
1690
+ styles?: Record<string, unknown> | undefined;
1691
+ }[] | undefined;
1692
+ block_order?: string[] | undefined;
1693
+ blockOrder?: string[] | undefined;
1694
+ }>>;
1695
+ order: z.ZodArray<z.ZodString, "many">;
1696
+ }, "strip", z.ZodTypeAny, {
1697
+ sections: Record<string, {
1698
+ type: string;
1699
+ id?: string | undefined;
1700
+ disabled?: boolean | undefined;
1701
+ settings?: Record<string, unknown> | undefined;
1702
+ styles?: Record<string, unknown> | undefined;
1703
+ blocks?: Record<string, {
1704
+ type: string;
1705
+ settings: Record<string, unknown>;
1706
+ id?: string | undefined;
1707
+ disabled?: boolean | undefined;
1708
+ styles?: Record<string, unknown> | undefined;
1709
+ }> | {
1710
+ type: string;
1711
+ settings: Record<string, unknown>;
1712
+ id?: string | undefined;
1713
+ disabled?: boolean | undefined;
1714
+ styles?: Record<string, unknown> | undefined;
1715
+ }[] | undefined;
1716
+ block_order?: string[] | undefined;
1717
+ blockOrder?: string[] | undefined;
1718
+ }>;
1719
+ order: string[];
1720
+ }, {
1721
+ sections: Record<string, {
1722
+ type: string;
1723
+ id?: string | undefined;
1724
+ disabled?: boolean | undefined;
1725
+ settings?: Record<string, unknown> | undefined;
1726
+ styles?: Record<string, unknown> | undefined;
1727
+ blocks?: Record<string, {
1728
+ type: string;
1729
+ id?: string | undefined;
1730
+ disabled?: boolean | undefined;
1731
+ settings?: Record<string, unknown> | undefined;
1732
+ styles?: Record<string, unknown> | undefined;
1733
+ }> | {
1734
+ type: string;
1735
+ id?: string | undefined;
1736
+ disabled?: boolean | undefined;
1737
+ settings?: Record<string, unknown> | undefined;
1738
+ styles?: Record<string, unknown> | undefined;
1739
+ }[] | undefined;
1740
+ block_order?: string[] | undefined;
1741
+ blockOrder?: string[] | undefined;
1742
+ }>;
1743
+ order: string[];
1744
+ }>, z.ZodArray<z.ZodString, "many">]>>>;
1745
+ sections: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1746
+ id: z.ZodOptional<z.ZodString>;
1747
+ type: z.ZodString;
1748
+ disabled: z.ZodOptional<z.ZodBoolean>;
1749
+ settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1750
+ styles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1751
+ blocks: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodObject<{
1752
+ id: z.ZodOptional<z.ZodString>;
1753
+ type: z.ZodString;
1754
+ disabled: z.ZodOptional<z.ZodBoolean>;
1755
+ settings: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1756
+ styles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1757
+ }, "strip", z.ZodTypeAny, {
1758
+ type: string;
1759
+ settings: Record<string, unknown>;
1760
+ id?: string | undefined;
1761
+ disabled?: boolean | undefined;
1762
+ styles?: Record<string, unknown> | undefined;
1763
+ }, {
1764
+ type: string;
1765
+ id?: string | undefined;
1766
+ disabled?: boolean | undefined;
1767
+ settings?: Record<string, unknown> | undefined;
1768
+ styles?: Record<string, unknown> | undefined;
1769
+ }>>, z.ZodArray<z.ZodObject<{
1770
+ id: z.ZodOptional<z.ZodString>;
1771
+ type: z.ZodString;
1772
+ disabled: z.ZodOptional<z.ZodBoolean>;
1773
+ settings: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1774
+ styles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1775
+ }, "strip", z.ZodTypeAny, {
1776
+ type: string;
1777
+ settings: Record<string, unknown>;
1778
+ id?: string | undefined;
1779
+ disabled?: boolean | undefined;
1780
+ styles?: Record<string, unknown> | undefined;
1781
+ }, {
1782
+ type: string;
1783
+ id?: string | undefined;
1784
+ disabled?: boolean | undefined;
1785
+ settings?: Record<string, unknown> | undefined;
1786
+ styles?: Record<string, unknown> | undefined;
1787
+ }>, "many">]>>;
1788
+ block_order: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1789
+ blockOrder: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1790
+ }, "strip", z.ZodTypeAny, {
1791
+ type: string;
1792
+ id?: string | undefined;
1793
+ disabled?: boolean | undefined;
1794
+ settings?: Record<string, unknown> | undefined;
1795
+ styles?: Record<string, unknown> | undefined;
1796
+ blocks?: Record<string, {
1797
+ type: string;
1798
+ settings: Record<string, unknown>;
1799
+ id?: string | undefined;
1800
+ disabled?: boolean | undefined;
1801
+ styles?: Record<string, unknown> | undefined;
1802
+ }> | {
1803
+ type: string;
1804
+ settings: Record<string, unknown>;
1805
+ id?: string | undefined;
1806
+ disabled?: boolean | undefined;
1807
+ styles?: Record<string, unknown> | undefined;
1808
+ }[] | undefined;
1809
+ block_order?: string[] | undefined;
1810
+ blockOrder?: string[] | undefined;
1811
+ }, {
1812
+ type: string;
1813
+ id?: string | undefined;
1814
+ disabled?: boolean | undefined;
1815
+ settings?: Record<string, unknown> | undefined;
1816
+ styles?: Record<string, unknown> | undefined;
1817
+ blocks?: Record<string, {
1818
+ type: string;
1819
+ id?: string | undefined;
1820
+ disabled?: boolean | undefined;
1821
+ settings?: Record<string, unknown> | undefined;
1822
+ styles?: Record<string, unknown> | undefined;
1823
+ }> | {
1824
+ type: string;
1825
+ id?: string | undefined;
1826
+ disabled?: boolean | undefined;
1827
+ settings?: Record<string, unknown> | undefined;
1828
+ styles?: Record<string, unknown> | undefined;
1829
+ }[] | undefined;
1830
+ block_order?: string[] | undefined;
1831
+ blockOrder?: string[] | undefined;
1832
+ }>>>;
1833
+ order: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1834
+ }, "strip", z.ZodTypeAny, {
1835
+ schemaVersion: number;
1836
+ name?: string | undefined;
1837
+ sections?: Record<string, {
1838
+ type: string;
1839
+ id?: string | undefined;
1840
+ disabled?: boolean | undefined;
1841
+ settings?: Record<string, unknown> | undefined;
1842
+ styles?: Record<string, unknown> | undefined;
1843
+ blocks?: Record<string, {
1844
+ type: string;
1845
+ settings: Record<string, unknown>;
1846
+ id?: string | undefined;
1847
+ disabled?: boolean | undefined;
1848
+ styles?: Record<string, unknown> | undefined;
1849
+ }> | {
1850
+ type: string;
1851
+ settings: Record<string, unknown>;
1852
+ id?: string | undefined;
1853
+ disabled?: boolean | undefined;
1854
+ styles?: Record<string, unknown> | undefined;
1855
+ }[] | undefined;
1856
+ block_order?: string[] | undefined;
1857
+ blockOrder?: string[] | undefined;
1858
+ }> | undefined;
1859
+ order?: string[] | undefined;
1860
+ supportedRegions?: string[] | undefined;
1861
+ regions?: Record<string, string[] | {
1862
+ sections: Record<string, {
1863
+ type: string;
1864
+ id?: string | undefined;
1865
+ disabled?: boolean | undefined;
1866
+ settings?: Record<string, unknown> | undefined;
1867
+ styles?: Record<string, unknown> | undefined;
1868
+ blocks?: Record<string, {
1869
+ type: string;
1870
+ settings: Record<string, unknown>;
1871
+ id?: string | undefined;
1872
+ disabled?: boolean | undefined;
1873
+ styles?: Record<string, unknown> | undefined;
1874
+ }> | {
1875
+ type: string;
1876
+ settings: Record<string, unknown>;
1877
+ id?: string | undefined;
1878
+ disabled?: boolean | undefined;
1879
+ styles?: Record<string, unknown> | undefined;
1880
+ }[] | undefined;
1881
+ block_order?: string[] | undefined;
1882
+ blockOrder?: string[] | undefined;
1883
+ }>;
1884
+ order: string[];
1885
+ }> | undefined;
1886
+ }, {
1887
+ schemaVersion?: number | undefined;
1888
+ name?: string | undefined;
1889
+ sections?: Record<string, {
1890
+ type: string;
1891
+ id?: string | undefined;
1892
+ disabled?: boolean | undefined;
1893
+ settings?: Record<string, unknown> | undefined;
1894
+ styles?: Record<string, unknown> | undefined;
1895
+ blocks?: Record<string, {
1896
+ type: string;
1897
+ id?: string | undefined;
1898
+ disabled?: boolean | undefined;
1899
+ settings?: Record<string, unknown> | undefined;
1900
+ styles?: Record<string, unknown> | undefined;
1901
+ }> | {
1902
+ type: string;
1903
+ id?: string | undefined;
1904
+ disabled?: boolean | undefined;
1905
+ settings?: Record<string, unknown> | undefined;
1906
+ styles?: Record<string, unknown> | undefined;
1907
+ }[] | undefined;
1908
+ block_order?: string[] | undefined;
1909
+ blockOrder?: string[] | undefined;
1910
+ }> | undefined;
1911
+ order?: string[] | undefined;
1912
+ supportedRegions?: string[] | undefined;
1913
+ regions?: Record<string, string[] | {
1914
+ sections: Record<string, {
1915
+ type: string;
1916
+ id?: string | undefined;
1917
+ disabled?: boolean | undefined;
1918
+ settings?: Record<string, unknown> | undefined;
1919
+ styles?: Record<string, unknown> | undefined;
1920
+ blocks?: Record<string, {
1921
+ type: string;
1922
+ id?: string | undefined;
1923
+ disabled?: boolean | undefined;
1924
+ settings?: Record<string, unknown> | undefined;
1925
+ styles?: Record<string, unknown> | undefined;
1926
+ }> | {
1927
+ type: string;
1928
+ id?: string | undefined;
1929
+ disabled?: boolean | undefined;
1930
+ settings?: Record<string, unknown> | undefined;
1931
+ styles?: Record<string, unknown> | undefined;
1932
+ }[] | undefined;
1933
+ block_order?: string[] | undefined;
1934
+ blockOrder?: string[] | undefined;
1935
+ }>;
1936
+ order: string[];
1937
+ }> | undefined;
1938
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
1939
+ capabilities: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodRecord<z.ZodString, z.ZodBoolean>]>>;
1940
+ defaultGlobalSettings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1941
+ defaultLayout: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1942
+ schemaVersion: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1943
+ name: z.ZodOptional<z.ZodString>;
1944
+ supportedRegions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1945
+ regions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
1946
+ sections: z.ZodRecord<z.ZodString, z.ZodObject<{
1947
+ id: z.ZodOptional<z.ZodString>;
1948
+ type: z.ZodString;
1949
+ disabled: z.ZodOptional<z.ZodBoolean>;
1950
+ settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1951
+ styles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1952
+ blocks: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodObject<{
1953
+ id: z.ZodOptional<z.ZodString>;
1954
+ type: z.ZodString;
1955
+ disabled: z.ZodOptional<z.ZodBoolean>;
1956
+ settings: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1957
+ styles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1958
+ }, "strip", z.ZodTypeAny, {
1959
+ type: string;
1960
+ settings: Record<string, unknown>;
1961
+ id?: string | undefined;
1962
+ disabled?: boolean | undefined;
1963
+ styles?: Record<string, unknown> | undefined;
1964
+ }, {
1965
+ type: string;
1966
+ id?: string | undefined;
1967
+ disabled?: boolean | undefined;
1968
+ settings?: Record<string, unknown> | undefined;
1969
+ styles?: Record<string, unknown> | undefined;
1970
+ }>>, z.ZodArray<z.ZodObject<{
1971
+ id: z.ZodOptional<z.ZodString>;
1972
+ type: z.ZodString;
1973
+ disabled: z.ZodOptional<z.ZodBoolean>;
1974
+ settings: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1975
+ styles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1976
+ }, "strip", z.ZodTypeAny, {
1977
+ type: string;
1978
+ settings: Record<string, unknown>;
1979
+ id?: string | undefined;
1980
+ disabled?: boolean | undefined;
1981
+ styles?: Record<string, unknown> | undefined;
1982
+ }, {
1983
+ type: string;
1984
+ id?: string | undefined;
1985
+ disabled?: boolean | undefined;
1986
+ settings?: Record<string, unknown> | undefined;
1987
+ styles?: Record<string, unknown> | undefined;
1988
+ }>, "many">]>>;
1989
+ block_order: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1990
+ blockOrder: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1991
+ }, "strip", z.ZodTypeAny, {
1992
+ type: string;
1993
+ id?: string | undefined;
1994
+ disabled?: boolean | undefined;
1995
+ settings?: Record<string, unknown> | undefined;
1996
+ styles?: Record<string, unknown> | undefined;
1997
+ blocks?: Record<string, {
1998
+ type: string;
1999
+ settings: Record<string, unknown>;
2000
+ id?: string | undefined;
2001
+ disabled?: boolean | undefined;
2002
+ styles?: Record<string, unknown> | undefined;
2003
+ }> | {
2004
+ type: string;
2005
+ settings: Record<string, unknown>;
2006
+ id?: string | undefined;
2007
+ disabled?: boolean | undefined;
2008
+ styles?: Record<string, unknown> | undefined;
2009
+ }[] | undefined;
2010
+ block_order?: string[] | undefined;
2011
+ blockOrder?: string[] | undefined;
2012
+ }, {
2013
+ type: string;
2014
+ id?: string | undefined;
2015
+ disabled?: boolean | undefined;
2016
+ settings?: Record<string, unknown> | undefined;
2017
+ styles?: Record<string, unknown> | undefined;
2018
+ blocks?: Record<string, {
2019
+ type: string;
2020
+ id?: string | undefined;
2021
+ disabled?: boolean | undefined;
2022
+ settings?: Record<string, unknown> | undefined;
2023
+ styles?: Record<string, unknown> | undefined;
2024
+ }> | {
2025
+ type: string;
2026
+ id?: string | undefined;
2027
+ disabled?: boolean | undefined;
2028
+ settings?: Record<string, unknown> | undefined;
2029
+ styles?: Record<string, unknown> | undefined;
2030
+ }[] | undefined;
2031
+ block_order?: string[] | undefined;
2032
+ blockOrder?: string[] | undefined;
2033
+ }>>;
2034
+ order: z.ZodArray<z.ZodString, "many">;
2035
+ }, "strip", z.ZodTypeAny, {
2036
+ sections: Record<string, {
2037
+ type: string;
2038
+ id?: string | undefined;
2039
+ disabled?: boolean | undefined;
2040
+ settings?: Record<string, unknown> | undefined;
2041
+ styles?: Record<string, unknown> | undefined;
2042
+ blocks?: Record<string, {
2043
+ type: string;
2044
+ settings: Record<string, unknown>;
2045
+ id?: string | undefined;
2046
+ disabled?: boolean | undefined;
2047
+ styles?: Record<string, unknown> | undefined;
2048
+ }> | {
2049
+ type: string;
2050
+ settings: Record<string, unknown>;
2051
+ id?: string | undefined;
2052
+ disabled?: boolean | undefined;
2053
+ styles?: Record<string, unknown> | undefined;
2054
+ }[] | undefined;
2055
+ block_order?: string[] | undefined;
2056
+ blockOrder?: string[] | undefined;
2057
+ }>;
2058
+ order: string[];
2059
+ }, {
2060
+ sections: Record<string, {
2061
+ type: string;
2062
+ id?: string | undefined;
2063
+ disabled?: boolean | undefined;
2064
+ settings?: Record<string, unknown> | undefined;
2065
+ styles?: Record<string, unknown> | undefined;
2066
+ blocks?: Record<string, {
2067
+ type: string;
2068
+ id?: string | undefined;
2069
+ disabled?: boolean | undefined;
2070
+ settings?: Record<string, unknown> | undefined;
2071
+ styles?: Record<string, unknown> | undefined;
2072
+ }> | {
2073
+ type: string;
2074
+ id?: string | undefined;
2075
+ disabled?: boolean | undefined;
2076
+ settings?: Record<string, unknown> | undefined;
2077
+ styles?: Record<string, unknown> | undefined;
2078
+ }[] | undefined;
2079
+ block_order?: string[] | undefined;
2080
+ blockOrder?: string[] | undefined;
2081
+ }>;
2082
+ order: string[];
2083
+ }>, z.ZodArray<z.ZodString, "many">]>>>;
2084
+ sections: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2085
+ id: z.ZodOptional<z.ZodString>;
2086
+ type: z.ZodString;
2087
+ disabled: z.ZodOptional<z.ZodBoolean>;
2088
+ settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2089
+ styles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2090
+ blocks: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodObject<{
2091
+ id: z.ZodOptional<z.ZodString>;
2092
+ type: z.ZodString;
2093
+ disabled: z.ZodOptional<z.ZodBoolean>;
2094
+ settings: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2095
+ styles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2096
+ }, "strip", z.ZodTypeAny, {
2097
+ type: string;
2098
+ settings: Record<string, unknown>;
2099
+ id?: string | undefined;
2100
+ disabled?: boolean | undefined;
2101
+ styles?: Record<string, unknown> | undefined;
2102
+ }, {
2103
+ type: string;
2104
+ id?: string | undefined;
2105
+ disabled?: boolean | undefined;
2106
+ settings?: Record<string, unknown> | undefined;
2107
+ styles?: Record<string, unknown> | undefined;
2108
+ }>>, z.ZodArray<z.ZodObject<{
2109
+ id: z.ZodOptional<z.ZodString>;
2110
+ type: z.ZodString;
2111
+ disabled: z.ZodOptional<z.ZodBoolean>;
2112
+ settings: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2113
+ styles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2114
+ }, "strip", z.ZodTypeAny, {
2115
+ type: string;
2116
+ settings: Record<string, unknown>;
2117
+ id?: string | undefined;
2118
+ disabled?: boolean | undefined;
2119
+ styles?: Record<string, unknown> | undefined;
2120
+ }, {
2121
+ type: string;
2122
+ id?: string | undefined;
2123
+ disabled?: boolean | undefined;
2124
+ settings?: Record<string, unknown> | undefined;
2125
+ styles?: Record<string, unknown> | undefined;
2126
+ }>, "many">]>>;
2127
+ block_order: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2128
+ blockOrder: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2129
+ }, "strip", z.ZodTypeAny, {
2130
+ type: string;
2131
+ id?: string | undefined;
2132
+ disabled?: boolean | undefined;
2133
+ settings?: Record<string, unknown> | undefined;
2134
+ styles?: Record<string, unknown> | undefined;
2135
+ blocks?: Record<string, {
2136
+ type: string;
2137
+ settings: Record<string, unknown>;
2138
+ id?: string | undefined;
2139
+ disabled?: boolean | undefined;
2140
+ styles?: Record<string, unknown> | undefined;
2141
+ }> | {
2142
+ type: string;
2143
+ settings: Record<string, unknown>;
2144
+ id?: string | undefined;
2145
+ disabled?: boolean | undefined;
2146
+ styles?: Record<string, unknown> | undefined;
2147
+ }[] | undefined;
2148
+ block_order?: string[] | undefined;
2149
+ blockOrder?: string[] | undefined;
2150
+ }, {
2151
+ type: string;
2152
+ id?: string | undefined;
2153
+ disabled?: boolean | undefined;
2154
+ settings?: Record<string, unknown> | undefined;
2155
+ styles?: Record<string, unknown> | undefined;
2156
+ blocks?: Record<string, {
2157
+ type: string;
2158
+ id?: string | undefined;
2159
+ disabled?: boolean | undefined;
2160
+ settings?: Record<string, unknown> | undefined;
2161
+ styles?: Record<string, unknown> | undefined;
2162
+ }> | {
2163
+ type: string;
2164
+ id?: string | undefined;
2165
+ disabled?: boolean | undefined;
2166
+ settings?: Record<string, unknown> | undefined;
2167
+ styles?: Record<string, unknown> | undefined;
2168
+ }[] | undefined;
2169
+ block_order?: string[] | undefined;
2170
+ blockOrder?: string[] | undefined;
2171
+ }>>>;
2172
+ order: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2173
+ }, "strip", z.ZodTypeAny, {
2174
+ schemaVersion: number;
2175
+ name?: string | undefined;
2176
+ sections?: Record<string, {
2177
+ type: string;
2178
+ id?: string | undefined;
2179
+ disabled?: boolean | undefined;
2180
+ settings?: Record<string, unknown> | undefined;
2181
+ styles?: Record<string, unknown> | undefined;
2182
+ blocks?: Record<string, {
2183
+ type: string;
2184
+ settings: Record<string, unknown>;
2185
+ id?: string | undefined;
2186
+ disabled?: boolean | undefined;
2187
+ styles?: Record<string, unknown> | undefined;
2188
+ }> | {
2189
+ type: string;
2190
+ settings: Record<string, unknown>;
2191
+ id?: string | undefined;
2192
+ disabled?: boolean | undefined;
2193
+ styles?: Record<string, unknown> | undefined;
2194
+ }[] | undefined;
2195
+ block_order?: string[] | undefined;
2196
+ blockOrder?: string[] | undefined;
2197
+ }> | undefined;
2198
+ order?: string[] | undefined;
2199
+ supportedRegions?: string[] | undefined;
2200
+ regions?: Record<string, string[] | {
2201
+ sections: Record<string, {
2202
+ type: string;
2203
+ id?: string | undefined;
2204
+ disabled?: boolean | undefined;
2205
+ settings?: Record<string, unknown> | undefined;
2206
+ styles?: Record<string, unknown> | undefined;
2207
+ blocks?: Record<string, {
2208
+ type: string;
2209
+ settings: Record<string, unknown>;
2210
+ id?: string | undefined;
2211
+ disabled?: boolean | undefined;
2212
+ styles?: Record<string, unknown> | undefined;
2213
+ }> | {
2214
+ type: string;
2215
+ settings: Record<string, unknown>;
2216
+ id?: string | undefined;
2217
+ disabled?: boolean | undefined;
2218
+ styles?: Record<string, unknown> | undefined;
2219
+ }[] | undefined;
2220
+ block_order?: string[] | undefined;
2221
+ blockOrder?: string[] | undefined;
2222
+ }>;
2223
+ order: string[];
2224
+ }> | undefined;
2225
+ }, {
2226
+ schemaVersion?: number | undefined;
2227
+ name?: string | undefined;
2228
+ sections?: Record<string, {
2229
+ type: string;
2230
+ id?: string | undefined;
2231
+ disabled?: boolean | undefined;
2232
+ settings?: Record<string, unknown> | undefined;
2233
+ styles?: Record<string, unknown> | undefined;
2234
+ blocks?: Record<string, {
2235
+ type: string;
2236
+ id?: string | undefined;
2237
+ disabled?: boolean | undefined;
2238
+ settings?: Record<string, unknown> | undefined;
2239
+ styles?: Record<string, unknown> | undefined;
2240
+ }> | {
2241
+ type: string;
2242
+ id?: string | undefined;
2243
+ disabled?: boolean | undefined;
2244
+ settings?: Record<string, unknown> | undefined;
2245
+ styles?: Record<string, unknown> | undefined;
2246
+ }[] | undefined;
2247
+ block_order?: string[] | undefined;
2248
+ blockOrder?: string[] | undefined;
2249
+ }> | undefined;
2250
+ order?: string[] | undefined;
2251
+ supportedRegions?: string[] | undefined;
2252
+ regions?: Record<string, string[] | {
2253
+ sections: Record<string, {
2254
+ type: string;
2255
+ id?: string | undefined;
2256
+ disabled?: boolean | undefined;
2257
+ settings?: Record<string, unknown> | undefined;
2258
+ styles?: Record<string, unknown> | undefined;
2259
+ blocks?: Record<string, {
2260
+ type: string;
2261
+ id?: string | undefined;
2262
+ disabled?: boolean | undefined;
2263
+ settings?: Record<string, unknown> | undefined;
2264
+ styles?: Record<string, unknown> | undefined;
2265
+ }> | {
2266
+ type: string;
2267
+ id?: string | undefined;
2268
+ disabled?: boolean | undefined;
2269
+ settings?: Record<string, unknown> | undefined;
2270
+ styles?: Record<string, unknown> | undefined;
2271
+ }[] | undefined;
2272
+ block_order?: string[] | undefined;
2273
+ blockOrder?: string[] | undefined;
2274
+ }>;
2275
+ order: string[];
2276
+ }> | undefined;
2277
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
2278
+ defaultPages: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
2279
+ schemaVersion: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2280
+ name: z.ZodOptional<z.ZodString>;
2281
+ layout: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2282
+ wrapper: z.ZodOptional<z.ZodString>;
2283
+ sections: z.ZodRecord<z.ZodString, z.ZodObject<{
2284
+ id: z.ZodOptional<z.ZodString>;
2285
+ type: z.ZodString;
2286
+ disabled: z.ZodOptional<z.ZodBoolean>;
2287
+ settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2288
+ styles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2289
+ blocks: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodObject<{
2290
+ id: z.ZodOptional<z.ZodString>;
2291
+ type: z.ZodString;
2292
+ disabled: z.ZodOptional<z.ZodBoolean>;
2293
+ settings: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2294
+ styles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2295
+ }, "strip", z.ZodTypeAny, {
2296
+ type: string;
2297
+ settings: Record<string, unknown>;
2298
+ id?: string | undefined;
2299
+ disabled?: boolean | undefined;
2300
+ styles?: Record<string, unknown> | undefined;
2301
+ }, {
2302
+ type: string;
2303
+ id?: string | undefined;
2304
+ disabled?: boolean | undefined;
2305
+ settings?: Record<string, unknown> | undefined;
2306
+ styles?: Record<string, unknown> | undefined;
2307
+ }>>, z.ZodArray<z.ZodObject<{
2308
+ id: z.ZodOptional<z.ZodString>;
2309
+ type: z.ZodString;
2310
+ disabled: z.ZodOptional<z.ZodBoolean>;
2311
+ settings: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2312
+ styles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2313
+ }, "strip", z.ZodTypeAny, {
2314
+ type: string;
2315
+ settings: Record<string, unknown>;
2316
+ id?: string | undefined;
2317
+ disabled?: boolean | undefined;
2318
+ styles?: Record<string, unknown> | undefined;
2319
+ }, {
2320
+ type: string;
2321
+ id?: string | undefined;
2322
+ disabled?: boolean | undefined;
2323
+ settings?: Record<string, unknown> | undefined;
2324
+ styles?: Record<string, unknown> | undefined;
2325
+ }>, "many">]>>;
2326
+ block_order: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2327
+ blockOrder: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2328
+ }, "strip", z.ZodTypeAny, {
2329
+ type: string;
2330
+ id?: string | undefined;
2331
+ disabled?: boolean | undefined;
2332
+ settings?: Record<string, unknown> | undefined;
2333
+ styles?: Record<string, unknown> | undefined;
2334
+ blocks?: Record<string, {
2335
+ type: string;
2336
+ settings: Record<string, unknown>;
2337
+ id?: string | undefined;
2338
+ disabled?: boolean | undefined;
2339
+ styles?: Record<string, unknown> | undefined;
2340
+ }> | {
2341
+ type: string;
2342
+ settings: Record<string, unknown>;
2343
+ id?: string | undefined;
2344
+ disabled?: boolean | undefined;
2345
+ styles?: Record<string, unknown> | undefined;
2346
+ }[] | undefined;
2347
+ block_order?: string[] | undefined;
2348
+ blockOrder?: string[] | undefined;
2349
+ }, {
2350
+ type: string;
2351
+ id?: string | undefined;
2352
+ disabled?: boolean | undefined;
2353
+ settings?: Record<string, unknown> | undefined;
2354
+ styles?: Record<string, unknown> | undefined;
2355
+ blocks?: Record<string, {
2356
+ type: string;
2357
+ id?: string | undefined;
2358
+ disabled?: boolean | undefined;
2359
+ settings?: Record<string, unknown> | undefined;
2360
+ styles?: Record<string, unknown> | undefined;
2361
+ }> | {
2362
+ type: string;
2363
+ id?: string | undefined;
2364
+ disabled?: boolean | undefined;
2365
+ settings?: Record<string, unknown> | undefined;
2366
+ styles?: Record<string, unknown> | undefined;
2367
+ }[] | undefined;
2368
+ block_order?: string[] | undefined;
2369
+ blockOrder?: string[] | undefined;
2370
+ }>>;
2371
+ order: z.ZodArray<z.ZodString, "many">;
2372
+ }, "strip", z.ZodTypeAny, {
2373
+ schemaVersion: number;
2374
+ layout: string;
2375
+ sections: Record<string, {
2376
+ type: string;
2377
+ id?: string | undefined;
2378
+ disabled?: boolean | undefined;
2379
+ settings?: Record<string, unknown> | undefined;
2380
+ styles?: Record<string, unknown> | undefined;
2381
+ blocks?: Record<string, {
2382
+ type: string;
2383
+ settings: Record<string, unknown>;
2384
+ id?: string | undefined;
2385
+ disabled?: boolean | undefined;
2386
+ styles?: Record<string, unknown> | undefined;
2387
+ }> | {
2388
+ type: string;
2389
+ settings: Record<string, unknown>;
2390
+ id?: string | undefined;
2391
+ disabled?: boolean | undefined;
2392
+ styles?: Record<string, unknown> | undefined;
2393
+ }[] | undefined;
2394
+ block_order?: string[] | undefined;
2395
+ blockOrder?: string[] | undefined;
2396
+ }>;
2397
+ order: string[];
2398
+ name?: string | undefined;
2399
+ wrapper?: string | undefined;
2400
+ }, {
2401
+ sections: Record<string, {
2402
+ type: string;
2403
+ id?: string | undefined;
2404
+ disabled?: boolean | undefined;
2405
+ settings?: Record<string, unknown> | undefined;
2406
+ styles?: Record<string, unknown> | undefined;
2407
+ blocks?: Record<string, {
2408
+ type: string;
2409
+ id?: string | undefined;
2410
+ disabled?: boolean | undefined;
2411
+ settings?: Record<string, unknown> | undefined;
2412
+ styles?: Record<string, unknown> | undefined;
2413
+ }> | {
2414
+ type: string;
2415
+ id?: string | undefined;
2416
+ disabled?: boolean | undefined;
2417
+ settings?: Record<string, unknown> | undefined;
2418
+ styles?: Record<string, unknown> | undefined;
2419
+ }[] | undefined;
2420
+ block_order?: string[] | undefined;
2421
+ blockOrder?: string[] | undefined;
2422
+ }>;
2423
+ order: string[];
2424
+ schemaVersion?: number | undefined;
2425
+ name?: string | undefined;
2426
+ layout?: string | undefined;
2427
+ wrapper?: string | undefined;
2428
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
2429
+ assets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2430
+ locales: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
2431
+ dataCollections: z.ZodOptional<z.ZodArray<z.ZodObject<{
2432
+ slug: z.ZodString;
2433
+ name: z.ZodString;
2434
+ description: z.ZodOptional<z.ZodString>;
2435
+ ownerType: z.ZodOptional<z.ZodEnum<["store", "product", "category", "customer", "order"]>>;
2436
+ readAccess: z.ZodOptional<z.ZodEnum<["admin_only", "customer_own", "public"]>>;
2437
+ writeAccess: z.ZodOptional<z.ZodEnum<["admin_only", "customer_auth", "public"]>>;
2438
+ uniqueField: z.ZodOptional<z.ZodString>;
2439
+ fieldsSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
2440
+ key: z.ZodString;
2441
+ label: z.ZodString;
2442
+ type: z.ZodOptional<z.ZodEnum<["string", "email", "number", "boolean", "url", "date", "json"]>>;
2443
+ required: z.ZodOptional<z.ZodBoolean>;
2444
+ }, "strip", z.ZodTypeAny, {
2445
+ key: string;
2446
+ label: string;
2447
+ type?: "string" | "number" | "boolean" | "date" | "url" | "json" | "email" | undefined;
2448
+ required?: boolean | undefined;
2449
+ }, {
2450
+ key: string;
2451
+ label: string;
2452
+ type?: "string" | "number" | "boolean" | "date" | "url" | "json" | "email" | undefined;
2453
+ required?: boolean | undefined;
2454
+ }>, "many">>;
2455
+ webhookEvents: z.ZodOptional<z.ZodBoolean>;
2456
+ maxEntries: z.ZodOptional<z.ZodNumber>;
2457
+ }, "strip", z.ZodTypeAny, {
2458
+ name: string;
2459
+ slug: string;
2460
+ description?: string | undefined;
2461
+ ownerType?: "product" | "order" | "category" | "store" | "customer" | undefined;
2462
+ readAccess?: "admin_only" | "customer_own" | "public" | undefined;
2463
+ writeAccess?: "admin_only" | "public" | "customer_auth" | undefined;
2464
+ uniqueField?: string | undefined;
2465
+ fieldsSchema?: {
2466
+ key: string;
2467
+ label: string;
2468
+ type?: "string" | "number" | "boolean" | "date" | "url" | "json" | "email" | undefined;
2469
+ required?: boolean | undefined;
2470
+ }[] | undefined;
2471
+ webhookEvents?: boolean | undefined;
2472
+ maxEntries?: number | undefined;
2473
+ }, {
2474
+ name: string;
2475
+ slug: string;
2476
+ description?: string | undefined;
2477
+ ownerType?: "product" | "order" | "category" | "store" | "customer" | undefined;
2478
+ readAccess?: "admin_only" | "customer_own" | "public" | undefined;
2479
+ writeAccess?: "admin_only" | "public" | "customer_auth" | undefined;
2480
+ uniqueField?: string | undefined;
2481
+ fieldsSchema?: {
2482
+ key: string;
2483
+ label: string;
2484
+ type?: "string" | "number" | "boolean" | "date" | "url" | "json" | "email" | undefined;
2485
+ required?: boolean | undefined;
2486
+ }[] | undefined;
2487
+ webhookEvents?: boolean | undefined;
2488
+ maxEntries?: number | undefined;
2489
+ }>, "many">>;
2490
+ }, "strip", z.ZodTypeAny, {
2491
+ name: string;
2492
+ sections: {
2493
+ type: string;
2494
+ settings: {
2495
+ id: string;
2496
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
2497
+ label: string;
2498
+ options?: {
2499
+ value: string | number | boolean;
2500
+ label: string;
2501
+ }[] | undefined;
2502
+ default?: unknown;
2503
+ min?: number | undefined;
2504
+ max?: number | undefined;
2505
+ step?: number | undefined;
2506
+ required?: boolean | undefined;
2507
+ placeholder?: string | undefined;
2508
+ }[];
2509
+ blocks: {
2510
+ type: string;
2511
+ settings: {
2512
+ id: string;
2513
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
2514
+ label: string;
2515
+ options?: {
2516
+ value: string | number | boolean;
2517
+ label: string;
2518
+ }[] | undefined;
2519
+ default?: unknown;
2520
+ min?: number | undefined;
2521
+ max?: number | undefined;
2522
+ step?: number | undefined;
2523
+ required?: boolean | undefined;
2524
+ placeholder?: string | undefined;
2525
+ }[];
2526
+ label: string;
2527
+ max?: number | undefined;
2528
+ }[];
2529
+ label: string;
2530
+ category?: string | undefined;
2531
+ maxBlocks?: number | undefined;
2532
+ allowedBlocks?: string[] | undefined;
2533
+ allowedRegions?: ("body" | "header" | "footer")[] | undefined;
2534
+ presets?: {
2535
+ name: string;
2536
+ settings?: Record<string, unknown> | undefined;
2537
+ blocks?: {
2538
+ type: string;
2539
+ settings: Record<string, unknown>;
2540
+ }[] | undefined;
2541
+ label?: string | undefined;
2542
+ isDefault?: boolean | undefined;
2543
+ }[] | undefined;
2544
+ }[];
2545
+ regions: ("body" | "header" | "footer")[];
2546
+ slug: string;
2547
+ version: string;
2548
+ engineVersion: string;
2549
+ ready: boolean;
2550
+ supportedPageTypes: ("home" | "product-list" | "product-detail" | "category-list" | "category-detail" | "campaign" | "search" | "custom-page" | "not-found" | "error" | "cart" | "checkout" | "order-success" | "track-order" | "login" | "signup" | "account" | "blog-list" | "blog-detail" | "policy" | "digital-list" | "digital-detail" | "cart-recovery" | "order-detail" | "offers" | "wishlist")[];
2551
+ blocks?: {
2552
+ type: string;
2553
+ settings: {
2554
+ id: string;
2555
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
2556
+ label: string;
2557
+ options?: {
2558
+ value: string | number | boolean;
2559
+ label: string;
2560
+ }[] | undefined;
2561
+ default?: unknown;
2562
+ min?: number | undefined;
2563
+ max?: number | undefined;
2564
+ step?: number | undefined;
2565
+ required?: boolean | undefined;
2566
+ placeholder?: string | undefined;
2567
+ }[];
2568
+ label: string;
2569
+ max?: number | undefined;
2570
+ }[] | undefined;
2571
+ description?: string | undefined;
2572
+ engine?: "typescript" | "candy" | undefined;
2573
+ author?: string | undefined;
2574
+ previewImage?: string | undefined;
2575
+ tokens?: {
2576
+ spacing?: Record<string, string> | undefined;
2577
+ colors?: Record<string, string> | undefined;
2578
+ typography?: Record<string, string> | undefined;
2579
+ borderRadius?: Record<string, string> | undefined;
2580
+ customCss?: string | undefined;
2581
+ } | undefined;
2582
+ globalSettingsSchema?: Record<string, unknown> | {
2583
+ settings?: {
2584
+ id: string;
2585
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
2586
+ label: string;
2587
+ options?: {
2588
+ value: string | number | boolean;
2589
+ label: string;
2590
+ }[] | undefined;
2591
+ default?: unknown;
2592
+ min?: number | undefined;
2593
+ max?: number | undefined;
2594
+ step?: number | undefined;
2595
+ required?: boolean | undefined;
2596
+ placeholder?: string | undefined;
2597
+ }[] | undefined;
2598
+ categories?: {
2599
+ settings: {
2600
+ id: string;
2601
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
2602
+ label: string;
2603
+ options?: {
2604
+ value: string | number | boolean;
2605
+ label: string;
2606
+ }[] | undefined;
2607
+ default?: unknown;
2608
+ min?: number | undefined;
2609
+ max?: number | undefined;
2610
+ step?: number | undefined;
2611
+ required?: boolean | undefined;
2612
+ placeholder?: string | undefined;
2613
+ }[];
2614
+ name: string;
2615
+ label: string;
2616
+ description?: string | undefined;
2617
+ }[] | undefined;
2618
+ } | undefined;
2619
+ templates?: Record<string, Record<string, unknown> | {
2620
+ schemaVersion: number;
2621
+ layout: string;
2622
+ sections: Record<string, {
2623
+ type: string;
2624
+ id?: string | undefined;
2625
+ disabled?: boolean | undefined;
2626
+ settings?: Record<string, unknown> | undefined;
2627
+ styles?: Record<string, unknown> | undefined;
2628
+ blocks?: Record<string, {
2629
+ type: string;
2630
+ settings: Record<string, unknown>;
2631
+ id?: string | undefined;
2632
+ disabled?: boolean | undefined;
2633
+ styles?: Record<string, unknown> | undefined;
2634
+ }> | {
2635
+ type: string;
2636
+ settings: Record<string, unknown>;
2637
+ id?: string | undefined;
2638
+ disabled?: boolean | undefined;
2639
+ styles?: Record<string, unknown> | undefined;
2640
+ }[] | undefined;
2641
+ block_order?: string[] | undefined;
2642
+ blockOrder?: string[] | undefined;
2643
+ }>;
2644
+ order: string[];
2645
+ name?: string | undefined;
2646
+ wrapper?: string | undefined;
2647
+ }> | undefined;
2648
+ layouts?: Record<string, Record<string, unknown> | {
2649
+ schemaVersion: number;
2650
+ name?: string | undefined;
2651
+ sections?: Record<string, {
2652
+ type: string;
2653
+ id?: string | undefined;
2654
+ disabled?: boolean | undefined;
2655
+ settings?: Record<string, unknown> | undefined;
2656
+ styles?: Record<string, unknown> | undefined;
2657
+ blocks?: Record<string, {
2658
+ type: string;
2659
+ settings: Record<string, unknown>;
2660
+ id?: string | undefined;
2661
+ disabled?: boolean | undefined;
2662
+ styles?: Record<string, unknown> | undefined;
2663
+ }> | {
2664
+ type: string;
2665
+ settings: Record<string, unknown>;
2666
+ id?: string | undefined;
2667
+ disabled?: boolean | undefined;
2668
+ styles?: Record<string, unknown> | undefined;
2669
+ }[] | undefined;
2670
+ block_order?: string[] | undefined;
2671
+ blockOrder?: string[] | undefined;
2672
+ }> | undefined;
2673
+ order?: string[] | undefined;
2674
+ supportedRegions?: string[] | undefined;
2675
+ regions?: Record<string, string[] | {
2676
+ sections: Record<string, {
2677
+ type: string;
2678
+ id?: string | undefined;
2679
+ disabled?: boolean | undefined;
2680
+ settings?: Record<string, unknown> | undefined;
2681
+ styles?: Record<string, unknown> | undefined;
2682
+ blocks?: Record<string, {
2683
+ type: string;
2684
+ settings: Record<string, unknown>;
2685
+ id?: string | undefined;
2686
+ disabled?: boolean | undefined;
2687
+ styles?: Record<string, unknown> | undefined;
2688
+ }> | {
2689
+ type: string;
2690
+ settings: Record<string, unknown>;
2691
+ id?: string | undefined;
2692
+ disabled?: boolean | undefined;
2693
+ styles?: Record<string, unknown> | undefined;
2694
+ }[] | undefined;
2695
+ block_order?: string[] | undefined;
2696
+ blockOrder?: string[] | undefined;
2697
+ }>;
2698
+ order: string[];
2699
+ }> | undefined;
2700
+ }> | undefined;
2701
+ capabilities?: string[] | Record<string, boolean> | undefined;
2702
+ defaultGlobalSettings?: Record<string, unknown> | undefined;
2703
+ defaultLayout?: Record<string, unknown> | {
2704
+ schemaVersion: number;
2705
+ name?: string | undefined;
2706
+ sections?: Record<string, {
2707
+ type: string;
2708
+ id?: string | undefined;
2709
+ disabled?: boolean | undefined;
2710
+ settings?: Record<string, unknown> | undefined;
2711
+ styles?: Record<string, unknown> | undefined;
2712
+ blocks?: Record<string, {
2713
+ type: string;
2714
+ settings: Record<string, unknown>;
2715
+ id?: string | undefined;
2716
+ disabled?: boolean | undefined;
2717
+ styles?: Record<string, unknown> | undefined;
2718
+ }> | {
2719
+ type: string;
2720
+ settings: Record<string, unknown>;
2721
+ id?: string | undefined;
2722
+ disabled?: boolean | undefined;
2723
+ styles?: Record<string, unknown> | undefined;
2724
+ }[] | undefined;
2725
+ block_order?: string[] | undefined;
2726
+ blockOrder?: string[] | undefined;
2727
+ }> | undefined;
2728
+ order?: string[] | undefined;
2729
+ supportedRegions?: string[] | undefined;
2730
+ regions?: Record<string, string[] | {
2731
+ sections: Record<string, {
2732
+ type: string;
2733
+ id?: string | undefined;
2734
+ disabled?: boolean | undefined;
2735
+ settings?: Record<string, unknown> | undefined;
2736
+ styles?: Record<string, unknown> | undefined;
2737
+ blocks?: Record<string, {
2738
+ type: string;
2739
+ settings: Record<string, unknown>;
2740
+ id?: string | undefined;
2741
+ disabled?: boolean | undefined;
2742
+ styles?: Record<string, unknown> | undefined;
2743
+ }> | {
2744
+ type: string;
2745
+ settings: Record<string, unknown>;
2746
+ id?: string | undefined;
2747
+ disabled?: boolean | undefined;
2748
+ styles?: Record<string, unknown> | undefined;
2749
+ }[] | undefined;
2750
+ block_order?: string[] | undefined;
2751
+ blockOrder?: string[] | undefined;
2752
+ }>;
2753
+ order: string[];
2754
+ }> | undefined;
2755
+ } | undefined;
2756
+ defaultPages?: Record<string, Record<string, unknown> | {
2757
+ schemaVersion: number;
2758
+ layout: string;
2759
+ sections: Record<string, {
2760
+ type: string;
2761
+ id?: string | undefined;
2762
+ disabled?: boolean | undefined;
2763
+ settings?: Record<string, unknown> | undefined;
2764
+ styles?: Record<string, unknown> | undefined;
2765
+ blocks?: Record<string, {
2766
+ type: string;
2767
+ settings: Record<string, unknown>;
2768
+ id?: string | undefined;
2769
+ disabled?: boolean | undefined;
2770
+ styles?: Record<string, unknown> | undefined;
2771
+ }> | {
2772
+ type: string;
2773
+ settings: Record<string, unknown>;
2774
+ id?: string | undefined;
2775
+ disabled?: boolean | undefined;
2776
+ styles?: Record<string, unknown> | undefined;
2777
+ }[] | undefined;
2778
+ block_order?: string[] | undefined;
2779
+ blockOrder?: string[] | undefined;
2780
+ }>;
2781
+ order: string[];
2782
+ name?: string | undefined;
2783
+ wrapper?: string | undefined;
2784
+ }> | undefined;
2785
+ assets?: Record<string, string> | undefined;
2786
+ locales?: Record<string, Record<string, string>> | undefined;
2787
+ dataCollections?: {
2788
+ name: string;
2789
+ slug: string;
2790
+ description?: string | undefined;
2791
+ ownerType?: "product" | "order" | "category" | "store" | "customer" | undefined;
2792
+ readAccess?: "admin_only" | "customer_own" | "public" | undefined;
2793
+ writeAccess?: "admin_only" | "public" | "customer_auth" | undefined;
2794
+ uniqueField?: string | undefined;
2795
+ fieldsSchema?: {
2796
+ key: string;
2797
+ label: string;
2798
+ type?: "string" | "number" | "boolean" | "date" | "url" | "json" | "email" | undefined;
2799
+ required?: boolean | undefined;
2800
+ }[] | undefined;
2801
+ webhookEvents?: boolean | undefined;
2802
+ maxEntries?: number | undefined;
2803
+ }[] | undefined;
2804
+ }, {
2805
+ name: string;
2806
+ sections: {
2807
+ type: string;
2808
+ label: string;
2809
+ settings?: {
2810
+ id: string;
2811
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
2812
+ label: string;
2813
+ options?: {
2814
+ value: string | number | boolean;
2815
+ label: string;
2816
+ }[] | undefined;
2817
+ default?: unknown;
2818
+ min?: number | undefined;
2819
+ max?: number | undefined;
2820
+ step?: number | undefined;
2821
+ required?: boolean | undefined;
2822
+ placeholder?: string | undefined;
2823
+ }[] | undefined;
2824
+ blocks?: {
2825
+ type: string;
2826
+ label: string;
2827
+ settings?: {
2828
+ id: string;
2829
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
2830
+ label: string;
2831
+ options?: {
2832
+ value: string | number | boolean;
2833
+ label: string;
2834
+ }[] | undefined;
2835
+ default?: unknown;
2836
+ min?: number | undefined;
2837
+ max?: number | undefined;
2838
+ step?: number | undefined;
2839
+ required?: boolean | undefined;
2840
+ placeholder?: string | undefined;
2841
+ }[] | undefined;
2842
+ max?: number | undefined;
2843
+ }[] | undefined;
2844
+ category?: string | undefined;
2845
+ maxBlocks?: number | undefined;
2846
+ allowedBlocks?: string[] | undefined;
2847
+ allowedRegions?: ("body" | "header" | "footer")[] | undefined;
2848
+ presets?: {
2849
+ name: string;
2850
+ settings?: Record<string, unknown> | undefined;
2851
+ blocks?: {
2852
+ type: string;
2853
+ settings?: Record<string, unknown> | undefined;
2854
+ }[] | undefined;
2855
+ label?: string | undefined;
2856
+ isDefault?: boolean | undefined;
2857
+ }[] | undefined;
2858
+ }[];
2859
+ slug: string;
2860
+ version: string;
2861
+ blocks?: {
2862
+ type: string;
2863
+ label: string;
2864
+ settings?: {
2865
+ id: string;
2866
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
2867
+ label: string;
2868
+ options?: {
2869
+ value: string | number | boolean;
2870
+ label: string;
2871
+ }[] | undefined;
2872
+ default?: unknown;
2873
+ min?: number | undefined;
2874
+ max?: number | undefined;
2875
+ step?: number | undefined;
2876
+ required?: boolean | undefined;
2877
+ placeholder?: string | undefined;
2878
+ }[] | undefined;
2879
+ max?: number | undefined;
2880
+ }[] | undefined;
2881
+ regions?: ("body" | "header" | "footer")[] | undefined;
2882
+ description?: string | undefined;
2883
+ engine?: "typescript" | "candy" | undefined;
2884
+ engineVersion?: string | undefined;
2885
+ author?: string | undefined;
2886
+ previewImage?: string | undefined;
2887
+ ready?: boolean | undefined;
2888
+ supportedPageTypes?: ("home" | "product-list" | "product-detail" | "category-list" | "category-detail" | "campaign" | "search" | "custom-page" | "not-found" | "error" | "cart" | "checkout" | "order-success" | "track-order" | "login" | "signup" | "account" | "blog-list" | "blog-detail" | "policy" | "digital-list" | "digital-detail" | "cart-recovery" | "order-detail" | "offers" | "wishlist")[] | undefined;
2889
+ tokens?: {
2890
+ spacing?: Record<string, string> | undefined;
2891
+ colors?: Record<string, string> | undefined;
2892
+ typography?: Record<string, string> | undefined;
2893
+ borderRadius?: Record<string, string> | undefined;
2894
+ customCss?: string | undefined;
2895
+ } | undefined;
2896
+ globalSettingsSchema?: Record<string, unknown> | {
2897
+ settings?: {
2898
+ id: string;
2899
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
2900
+ label: string;
2901
+ options?: {
2902
+ value: string | number | boolean;
2903
+ label: string;
2904
+ }[] | undefined;
2905
+ default?: unknown;
2906
+ min?: number | undefined;
2907
+ max?: number | undefined;
2908
+ step?: number | undefined;
2909
+ required?: boolean | undefined;
2910
+ placeholder?: string | undefined;
2911
+ }[] | undefined;
2912
+ categories?: {
2913
+ settings: {
2914
+ id: string;
2915
+ type: "number" | "boolean" | "code" | "header" | "text" | "textarea" | "richtext" | "inline_richtext" | "paragraph" | "checkbox" | "radio" | "color" | "image" | "image_picker" | "select" | "range" | "url" | "json" | "javascript" | "category_list" | "product_picker" | "collection_picker" | "font" | "spacing";
2916
+ label: string;
2917
+ options?: {
2918
+ value: string | number | boolean;
2919
+ label: string;
2920
+ }[] | undefined;
2921
+ default?: unknown;
2922
+ min?: number | undefined;
2923
+ max?: number | undefined;
2924
+ step?: number | undefined;
2925
+ required?: boolean | undefined;
2926
+ placeholder?: string | undefined;
2927
+ }[];
2928
+ name: string;
2929
+ label: string;
2930
+ description?: string | undefined;
2931
+ }[] | undefined;
2932
+ } | undefined;
2933
+ templates?: Record<string, Record<string, unknown> | {
2934
+ sections: Record<string, {
2935
+ type: string;
2936
+ id?: string | undefined;
2937
+ disabled?: boolean | undefined;
2938
+ settings?: Record<string, unknown> | undefined;
2939
+ styles?: Record<string, unknown> | undefined;
2940
+ blocks?: Record<string, {
2941
+ type: string;
2942
+ id?: string | undefined;
2943
+ disabled?: boolean | undefined;
2944
+ settings?: Record<string, unknown> | undefined;
2945
+ styles?: Record<string, unknown> | undefined;
2946
+ }> | {
2947
+ type: string;
2948
+ id?: string | undefined;
2949
+ disabled?: boolean | undefined;
2950
+ settings?: Record<string, unknown> | undefined;
2951
+ styles?: Record<string, unknown> | undefined;
2952
+ }[] | undefined;
2953
+ block_order?: string[] | undefined;
2954
+ blockOrder?: string[] | undefined;
2955
+ }>;
2956
+ order: string[];
2957
+ schemaVersion?: number | undefined;
2958
+ name?: string | undefined;
2959
+ layout?: string | undefined;
2960
+ wrapper?: string | undefined;
2961
+ }> | undefined;
2962
+ layouts?: Record<string, Record<string, unknown> | {
2963
+ schemaVersion?: number | undefined;
2964
+ name?: string | undefined;
2965
+ sections?: Record<string, {
2966
+ type: string;
2967
+ id?: string | undefined;
2968
+ disabled?: boolean | undefined;
2969
+ settings?: Record<string, unknown> | undefined;
2970
+ styles?: Record<string, unknown> | undefined;
2971
+ blocks?: Record<string, {
2972
+ type: string;
2973
+ id?: string | undefined;
2974
+ disabled?: boolean | undefined;
2975
+ settings?: Record<string, unknown> | undefined;
2976
+ styles?: Record<string, unknown> | undefined;
2977
+ }> | {
2978
+ type: string;
2979
+ id?: string | undefined;
2980
+ disabled?: boolean | undefined;
2981
+ settings?: Record<string, unknown> | undefined;
2982
+ styles?: Record<string, unknown> | undefined;
2983
+ }[] | undefined;
2984
+ block_order?: string[] | undefined;
2985
+ blockOrder?: string[] | undefined;
2986
+ }> | undefined;
2987
+ order?: string[] | undefined;
2988
+ supportedRegions?: string[] | undefined;
2989
+ regions?: Record<string, string[] | {
2990
+ sections: Record<string, {
2991
+ type: string;
2992
+ id?: string | undefined;
2993
+ disabled?: boolean | undefined;
2994
+ settings?: Record<string, unknown> | undefined;
2995
+ styles?: Record<string, unknown> | undefined;
2996
+ blocks?: Record<string, {
2997
+ type: string;
2998
+ id?: string | undefined;
2999
+ disabled?: boolean | undefined;
3000
+ settings?: Record<string, unknown> | undefined;
3001
+ styles?: Record<string, unknown> | undefined;
3002
+ }> | {
3003
+ type: string;
3004
+ id?: string | undefined;
3005
+ disabled?: boolean | undefined;
3006
+ settings?: Record<string, unknown> | undefined;
3007
+ styles?: Record<string, unknown> | undefined;
3008
+ }[] | undefined;
3009
+ block_order?: string[] | undefined;
3010
+ blockOrder?: string[] | undefined;
3011
+ }>;
3012
+ order: string[];
3013
+ }> | undefined;
3014
+ }> | undefined;
3015
+ capabilities?: string[] | Record<string, boolean> | undefined;
3016
+ defaultGlobalSettings?: Record<string, unknown> | undefined;
3017
+ defaultLayout?: Record<string, unknown> | {
3018
+ schemaVersion?: number | undefined;
3019
+ name?: string | undefined;
3020
+ sections?: Record<string, {
3021
+ type: string;
3022
+ id?: string | undefined;
3023
+ disabled?: boolean | undefined;
3024
+ settings?: Record<string, unknown> | undefined;
3025
+ styles?: Record<string, unknown> | undefined;
3026
+ blocks?: Record<string, {
3027
+ type: string;
3028
+ id?: string | undefined;
3029
+ disabled?: boolean | undefined;
3030
+ settings?: Record<string, unknown> | undefined;
3031
+ styles?: Record<string, unknown> | undefined;
3032
+ }> | {
3033
+ type: string;
3034
+ id?: string | undefined;
3035
+ disabled?: boolean | undefined;
3036
+ settings?: Record<string, unknown> | undefined;
3037
+ styles?: Record<string, unknown> | undefined;
3038
+ }[] | undefined;
3039
+ block_order?: string[] | undefined;
3040
+ blockOrder?: string[] | undefined;
3041
+ }> | undefined;
3042
+ order?: string[] | undefined;
3043
+ supportedRegions?: string[] | undefined;
3044
+ regions?: Record<string, string[] | {
3045
+ sections: Record<string, {
3046
+ type: string;
3047
+ id?: string | undefined;
3048
+ disabled?: boolean | undefined;
3049
+ settings?: Record<string, unknown> | undefined;
3050
+ styles?: Record<string, unknown> | undefined;
3051
+ blocks?: Record<string, {
3052
+ type: string;
3053
+ id?: string | undefined;
3054
+ disabled?: boolean | undefined;
3055
+ settings?: Record<string, unknown> | undefined;
3056
+ styles?: Record<string, unknown> | undefined;
3057
+ }> | {
3058
+ type: string;
3059
+ id?: string | undefined;
3060
+ disabled?: boolean | undefined;
3061
+ settings?: Record<string, unknown> | undefined;
3062
+ styles?: Record<string, unknown> | undefined;
3063
+ }[] | undefined;
3064
+ block_order?: string[] | undefined;
3065
+ blockOrder?: string[] | undefined;
3066
+ }>;
3067
+ order: string[];
3068
+ }> | undefined;
3069
+ } | undefined;
3070
+ defaultPages?: Record<string, Record<string, unknown> | {
3071
+ sections: Record<string, {
3072
+ type: string;
3073
+ id?: string | undefined;
3074
+ disabled?: boolean | undefined;
3075
+ settings?: Record<string, unknown> | undefined;
3076
+ styles?: Record<string, unknown> | undefined;
3077
+ blocks?: Record<string, {
3078
+ type: string;
3079
+ id?: string | undefined;
3080
+ disabled?: boolean | undefined;
3081
+ settings?: Record<string, unknown> | undefined;
3082
+ styles?: Record<string, unknown> | undefined;
3083
+ }> | {
3084
+ type: string;
3085
+ id?: string | undefined;
3086
+ disabled?: boolean | undefined;
3087
+ settings?: Record<string, unknown> | undefined;
3088
+ styles?: Record<string, unknown> | undefined;
3089
+ }[] | undefined;
3090
+ block_order?: string[] | undefined;
3091
+ blockOrder?: string[] | undefined;
3092
+ }>;
3093
+ order: string[];
3094
+ schemaVersion?: number | undefined;
3095
+ name?: string | undefined;
3096
+ layout?: string | undefined;
3097
+ wrapper?: string | undefined;
3098
+ }> | undefined;
3099
+ assets?: Record<string, string> | undefined;
3100
+ locales?: Record<string, Record<string, string>> | undefined;
3101
+ dataCollections?: {
3102
+ name: string;
3103
+ slug: string;
3104
+ description?: string | undefined;
3105
+ ownerType?: "product" | "order" | "category" | "store" | "customer" | undefined;
3106
+ readAccess?: "admin_only" | "customer_own" | "public" | undefined;
3107
+ writeAccess?: "admin_only" | "public" | "customer_auth" | undefined;
3108
+ uniqueField?: string | undefined;
3109
+ fieldsSchema?: {
3110
+ key: string;
3111
+ label: string;
3112
+ type?: "string" | "number" | "boolean" | "date" | "url" | "json" | "email" | undefined;
3113
+ required?: boolean | undefined;
3114
+ }[] | undefined;
3115
+ webhookEvents?: boolean | undefined;
3116
+ maxEntries?: number | undefined;
3117
+ }[] | undefined;
3118
+ }>;
3119
+ export type ThemeManifest = z.infer<typeof ThemeManifestSchema>;
3120
+ /**
3121
+ * Strict runtime validator for Theme Manifest contracts.
3122
+ * Rejects duplicate IDs, invalid references, missing required properties, and unsupported versions.
3123
+ */
3124
+ export declare function validateManifestContracts(manifest: ThemeManifest): {
3125
+ valid: boolean;
3126
+ errors: string[];
3127
+ };