@shoplix-ai/sdui-schema 1.0.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 (110) hide show
  1. package/LICENSE +21 -0
  2. package/dist/action.d.ts +26 -0
  3. package/dist/action.d.ts.map +1 -0
  4. package/dist/action.js +27 -0
  5. package/dist/action.js.map +1 -0
  6. package/dist/assets.d.ts +80 -0
  7. package/dist/assets.d.ts.map +1 -0
  8. package/dist/assets.js +101 -0
  9. package/dist/assets.js.map +1 -0
  10. package/dist/binding.d.ts +144 -0
  11. package/dist/binding.d.ts.map +1 -0
  12. package/dist/binding.js +80 -0
  13. package/dist/binding.js.map +1 -0
  14. package/dist/block-definition.d.ts +1639 -0
  15. package/dist/block-definition.d.ts.map +1 -0
  16. package/dist/block-definition.js +527 -0
  17. package/dist/block-definition.js.map +1 -0
  18. package/dist/block-type-id.d.ts +15 -0
  19. package/dist/block-type-id.d.ts.map +1 -0
  20. package/dist/block-type-id.js +43 -0
  21. package/dist/block-type-id.js.map +1 -0
  22. package/dist/block-type.d.ts +21 -0
  23. package/dist/block-type.d.ts.map +1 -0
  24. package/dist/block-type.js +24 -0
  25. package/dist/block-type.js.map +1 -0
  26. package/dist/blocks.d.ts +922 -0
  27. package/dist/blocks.d.ts.map +1 -0
  28. package/dist/blocks.js +353 -0
  29. package/dist/blocks.js.map +1 -0
  30. package/dist/definition-validator.d.ts +47 -0
  31. package/dist/definition-validator.d.ts.map +1 -0
  32. package/dist/definition-validator.js +340 -0
  33. package/dist/definition-validator.js.map +1 -0
  34. package/dist/display.d.ts +139 -0
  35. package/dist/display.d.ts.map +1 -0
  36. package/dist/display.js +118 -0
  37. package/dist/display.js.map +1 -0
  38. package/dist/envelope.d.ts +2721 -0
  39. package/dist/envelope.d.ts.map +1 -0
  40. package/dist/envelope.js +116 -0
  41. package/dist/envelope.js.map +1 -0
  42. package/dist/icons.d.ts +10 -0
  43. package/dist/icons.d.ts.map +1 -0
  44. package/dist/icons.js +49 -0
  45. package/dist/icons.js.map +1 -0
  46. package/dist/index.d.ts +38 -0
  47. package/dist/index.d.ts.map +1 -0
  48. package/dist/index.js +20 -0
  49. package/dist/index.js.map +1 -0
  50. package/dist/locale.d.ts +11 -0
  51. package/dist/locale.d.ts.map +1 -0
  52. package/dist/locale.js +15 -0
  53. package/dist/locale.js.map +1 -0
  54. package/dist/manifest.d.ts +28 -0
  55. package/dist/manifest.d.ts.map +1 -0
  56. package/dist/manifest.js +242 -0
  57. package/dist/manifest.js.map +1 -0
  58. package/dist/parse.d.ts +33 -0
  59. package/dist/parse.d.ts.map +1 -0
  60. package/dist/parse.js +61 -0
  61. package/dist/parse.js.map +1 -0
  62. package/dist/path.d.ts +3 -0
  63. package/dist/path.d.ts.map +1 -0
  64. package/dist/path.js +14 -0
  65. package/dist/path.js.map +1 -0
  66. package/dist/primitives.d.ts +1206 -0
  67. package/dist/primitives.d.ts.map +1 -0
  68. package/dist/primitives.js +631 -0
  69. package/dist/primitives.js.map +1 -0
  70. package/dist/props.d.ts +9 -0
  71. package/dist/props.d.ts.map +1 -0
  72. package/dist/props.js +12 -0
  73. package/dist/props.js.map +1 -0
  74. package/dist/screen.d.ts +57 -0
  75. package/dist/screen.d.ts.map +1 -0
  76. package/dist/screen.js +76 -0
  77. package/dist/screen.js.map +1 -0
  78. package/dist/starters/electronics.d.ts +3 -0
  79. package/dist/starters/electronics.d.ts.map +1 -0
  80. package/dist/starters/electronics.js +235 -0
  81. package/dist/starters/electronics.js.map +1 -0
  82. package/dist/starters/fashion.d.ts +3 -0
  83. package/dist/starters/fashion.d.ts.map +1 -0
  84. package/dist/starters/fashion.js +232 -0
  85. package/dist/starters/fashion.js.map +1 -0
  86. package/dist/starters/index.d.ts +5 -0
  87. package/dist/starters/index.d.ts.map +1 -0
  88. package/dist/starters/index.js +10 -0
  89. package/dist/starters/index.js.map +1 -0
  90. package/dist/starters/minimal.d.ts +3 -0
  91. package/dist/starters/minimal.d.ts.map +1 -0
  92. package/dist/starters/minimal.js +232 -0
  93. package/dist/starters/minimal.js.map +1 -0
  94. package/dist/starters/starter-seed.d.ts +17 -0
  95. package/dist/starters/starter-seed.d.ts.map +1 -0
  96. package/dist/starters/starter-seed.js +2 -0
  97. package/dist/starters/starter-seed.js.map +1 -0
  98. package/dist/theme.d.ts +54 -0
  99. package/dist/theme.d.ts.map +1 -0
  100. package/dist/theme.js +68 -0
  101. package/dist/theme.js.map +1 -0
  102. package/dist/tokens.d.ts +115 -0
  103. package/dist/tokens.d.ts.map +1 -0
  104. package/dist/tokens.js +349 -0
  105. package/dist/tokens.js.map +1 -0
  106. package/dist/version.d.ts +11 -0
  107. package/dist/version.d.ts.map +1 -0
  108. package/dist/version.js +10 -0
  109. package/dist/version.js.map +1 -0
  110. package/package.json +50 -0
@@ -0,0 +1,1639 @@
1
+ import { z } from 'zod';
2
+ import type { AssetReference } from './assets.js';
3
+ import { type BindingTargetForm } from './binding.js';
4
+ import { type EnvelopePrimitiveNode, type PrimitiveNode } from './primitives.js';
5
+ /** The closed set of what a merchant can set on a Composed Block. */
6
+ export declare const SETTING_TYPES: readonly ["text", "toggle", "select", "number", "color", "image", "action", "rows", "section"];
7
+ export type SettingType = (typeof SETTING_TYPES)[number];
8
+ /** The types a repeatable row may hold: the leaves, never another rows or a header. */
9
+ export declare const ROW_FIELD_TYPES: readonly ["text", "toggle", "select", "number", "color", "image", "action"];
10
+ export type RowFieldType = (typeof ROW_FIELD_TYPES)[number];
11
+ /** A color the merchant chose: a token role by default, a custom hex when they insist. */
12
+ export declare const colorChoiceSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
13
+ token: z.ZodString;
14
+ }, z.core.$strict>]>;
15
+ export type ColorChoice = z.infer<typeof colorChoiceSchema>;
16
+ export declare const textSettingSchema: z.ZodObject<{
17
+ type: z.ZodLiteral<"text">;
18
+ maxLength: z.ZodOptional<z.ZodInt>;
19
+ default: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
20
+ key: z.ZodString;
21
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
22
+ }, z.core.$strict>;
23
+ export declare const toggleSettingSchema: z.ZodObject<{
24
+ type: z.ZodLiteral<"toggle">;
25
+ default: z.ZodOptional<z.ZodBoolean>;
26
+ key: z.ZodString;
27
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
28
+ }, z.core.$strict>;
29
+ export declare const selectSettingSchema: z.ZodObject<{
30
+ type: z.ZodLiteral<"select">;
31
+ options: z.ZodArray<z.ZodObject<{
32
+ value: z.ZodString;
33
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
34
+ }, z.core.$strict>>;
35
+ default: z.ZodOptional<z.ZodString>;
36
+ key: z.ZodString;
37
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
38
+ }, z.core.$strict>;
39
+ export declare const numberSettingSchema: z.ZodObject<{
40
+ type: z.ZodLiteral<"number">;
41
+ min: z.ZodOptional<z.ZodNumber>;
42
+ max: z.ZodOptional<z.ZodNumber>;
43
+ step: z.ZodOptional<z.ZodNumber>;
44
+ unit: z.ZodOptional<z.ZodString>;
45
+ default: z.ZodOptional<z.ZodNumber>;
46
+ key: z.ZodString;
47
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
48
+ }, z.core.$strict>;
49
+ export declare const colorSettingSchema: z.ZodObject<{
50
+ type: z.ZodLiteral<"color">;
51
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
52
+ token: z.ZodString;
53
+ }, z.core.$strict>]>>;
54
+ key: z.ZodString;
55
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
56
+ }, z.core.$strict>;
57
+ /** One asset out of the Shop's library; null until the merchant picks one. */
58
+ export declare const imageSettingSchema: z.ZodObject<{
59
+ type: z.ZodLiteral<"image">;
60
+ default: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
61
+ key: z.ZodString;
62
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
63
+ }, z.core.$strict>;
64
+ /** Where a tap goes, from the same closed action set a platform block carries. */
65
+ export declare const actionSettingSchema: z.ZodObject<{
66
+ type: z.ZodLiteral<"action">;
67
+ default: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
68
+ type: z.ZodLiteral<"open_screen">;
69
+ screenId: z.ZodUUID;
70
+ }, z.core.$strip>, z.ZodObject<{
71
+ type: z.ZodLiteral<"open_cart">;
72
+ }, z.core.$strip>, z.ZodObject<{
73
+ type: z.ZodLiteral<"open_url">;
74
+ url: z.ZodURL;
75
+ }, z.core.$strip>, z.ZodObject<{
76
+ type: z.ZodLiteral<"none">;
77
+ }, z.core.$strip>], "type">>;
78
+ key: z.ZodString;
79
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
80
+ }, z.core.$strict>;
81
+ /** A heading in the panel, grouping the settings under it. It carries no value. */
82
+ export declare const sectionSettingSchema: z.ZodObject<{
83
+ type: z.ZodLiteral<"section">;
84
+ key: z.ZodString;
85
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
86
+ }, z.core.$strict>;
87
+ export declare const rowFieldSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
88
+ type: z.ZodLiteral<"text">;
89
+ maxLength: z.ZodOptional<z.ZodInt>;
90
+ default: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
91
+ key: z.ZodString;
92
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
93
+ }, z.core.$strict>, z.ZodObject<{
94
+ type: z.ZodLiteral<"toggle">;
95
+ default: z.ZodOptional<z.ZodBoolean>;
96
+ key: z.ZodString;
97
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
98
+ }, z.core.$strict>, z.ZodObject<{
99
+ type: z.ZodLiteral<"select">;
100
+ options: z.ZodArray<z.ZodObject<{
101
+ value: z.ZodString;
102
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
103
+ }, z.core.$strict>>;
104
+ default: z.ZodOptional<z.ZodString>;
105
+ key: z.ZodString;
106
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
107
+ }, z.core.$strict>, z.ZodObject<{
108
+ type: z.ZodLiteral<"number">;
109
+ min: z.ZodOptional<z.ZodNumber>;
110
+ max: z.ZodOptional<z.ZodNumber>;
111
+ step: z.ZodOptional<z.ZodNumber>;
112
+ unit: z.ZodOptional<z.ZodString>;
113
+ default: z.ZodOptional<z.ZodNumber>;
114
+ key: z.ZodString;
115
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
116
+ }, z.core.$strict>, z.ZodObject<{
117
+ type: z.ZodLiteral<"color">;
118
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
119
+ token: z.ZodString;
120
+ }, z.core.$strict>]>>;
121
+ key: z.ZodString;
122
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
123
+ }, z.core.$strict>, z.ZodObject<{
124
+ type: z.ZodLiteral<"image">;
125
+ default: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
126
+ key: z.ZodString;
127
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
128
+ }, z.core.$strict>, z.ZodObject<{
129
+ type: z.ZodLiteral<"action">;
130
+ default: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
131
+ type: z.ZodLiteral<"open_screen">;
132
+ screenId: z.ZodUUID;
133
+ }, z.core.$strip>, z.ZodObject<{
134
+ type: z.ZodLiteral<"open_cart">;
135
+ }, z.core.$strip>, z.ZodObject<{
136
+ type: z.ZodLiteral<"open_url">;
137
+ url: z.ZodURL;
138
+ }, z.core.$strip>, z.ZodObject<{
139
+ type: z.ZodLiteral<"none">;
140
+ }, z.core.$strip>], "type">>;
141
+ key: z.ZodString;
142
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
143
+ }, z.core.$strict>], "type">;
144
+ /**
145
+ * A repeatable group of the leaf types with a ceiling on how many rows the
146
+ * merchant may add. The ceiling itself is held against the platform's own
147
+ * maximum where every other limit is held, so raising it is one number in one
148
+ * place rather than a schema change.
149
+ */
150
+ export declare const rowsSettingSchema: z.ZodObject<{
151
+ type: z.ZodLiteral<"rows">;
152
+ max: z.ZodInt;
153
+ fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
154
+ type: z.ZodLiteral<"text">;
155
+ maxLength: z.ZodOptional<z.ZodInt>;
156
+ default: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
157
+ key: z.ZodString;
158
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
159
+ }, z.core.$strict>, z.ZodObject<{
160
+ type: z.ZodLiteral<"toggle">;
161
+ default: z.ZodOptional<z.ZodBoolean>;
162
+ key: z.ZodString;
163
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
164
+ }, z.core.$strict>, z.ZodObject<{
165
+ type: z.ZodLiteral<"select">;
166
+ options: z.ZodArray<z.ZodObject<{
167
+ value: z.ZodString;
168
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
169
+ }, z.core.$strict>>;
170
+ default: z.ZodOptional<z.ZodString>;
171
+ key: z.ZodString;
172
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
173
+ }, z.core.$strict>, z.ZodObject<{
174
+ type: z.ZodLiteral<"number">;
175
+ min: z.ZodOptional<z.ZodNumber>;
176
+ max: z.ZodOptional<z.ZodNumber>;
177
+ step: z.ZodOptional<z.ZodNumber>;
178
+ unit: z.ZodOptional<z.ZodString>;
179
+ default: z.ZodOptional<z.ZodNumber>;
180
+ key: z.ZodString;
181
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
182
+ }, z.core.$strict>, z.ZodObject<{
183
+ type: z.ZodLiteral<"color">;
184
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
185
+ token: z.ZodString;
186
+ }, z.core.$strict>]>>;
187
+ key: z.ZodString;
188
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
189
+ }, z.core.$strict>, z.ZodObject<{
190
+ type: z.ZodLiteral<"image">;
191
+ default: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
192
+ key: z.ZodString;
193
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
194
+ }, z.core.$strict>, z.ZodObject<{
195
+ type: z.ZodLiteral<"action">;
196
+ default: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
197
+ type: z.ZodLiteral<"open_screen">;
198
+ screenId: z.ZodUUID;
199
+ }, z.core.$strip>, z.ZodObject<{
200
+ type: z.ZodLiteral<"open_cart">;
201
+ }, z.core.$strip>, z.ZodObject<{
202
+ type: z.ZodLiteral<"open_url">;
203
+ url: z.ZodURL;
204
+ }, z.core.$strip>, z.ZodObject<{
205
+ type: z.ZodLiteral<"none">;
206
+ }, z.core.$strip>], "type">>;
207
+ key: z.ZodString;
208
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
209
+ }, z.core.$strict>], "type">>;
210
+ key: z.ZodString;
211
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
212
+ }, z.core.$strict>;
213
+ export declare const blockSettingSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
214
+ type: z.ZodLiteral<"text">;
215
+ maxLength: z.ZodOptional<z.ZodInt>;
216
+ default: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
217
+ key: z.ZodString;
218
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
219
+ }, z.core.$strict>, z.ZodObject<{
220
+ type: z.ZodLiteral<"toggle">;
221
+ default: z.ZodOptional<z.ZodBoolean>;
222
+ key: z.ZodString;
223
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
224
+ }, z.core.$strict>, z.ZodObject<{
225
+ type: z.ZodLiteral<"select">;
226
+ options: z.ZodArray<z.ZodObject<{
227
+ value: z.ZodString;
228
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
229
+ }, z.core.$strict>>;
230
+ default: z.ZodOptional<z.ZodString>;
231
+ key: z.ZodString;
232
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
233
+ }, z.core.$strict>, z.ZodObject<{
234
+ type: z.ZodLiteral<"number">;
235
+ min: z.ZodOptional<z.ZodNumber>;
236
+ max: z.ZodOptional<z.ZodNumber>;
237
+ step: z.ZodOptional<z.ZodNumber>;
238
+ unit: z.ZodOptional<z.ZodString>;
239
+ default: z.ZodOptional<z.ZodNumber>;
240
+ key: z.ZodString;
241
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
242
+ }, z.core.$strict>, z.ZodObject<{
243
+ type: z.ZodLiteral<"color">;
244
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
245
+ token: z.ZodString;
246
+ }, z.core.$strict>]>>;
247
+ key: z.ZodString;
248
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
249
+ }, z.core.$strict>, z.ZodObject<{
250
+ type: z.ZodLiteral<"image">;
251
+ default: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
252
+ key: z.ZodString;
253
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
254
+ }, z.core.$strict>, z.ZodObject<{
255
+ type: z.ZodLiteral<"action">;
256
+ default: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
257
+ type: z.ZodLiteral<"open_screen">;
258
+ screenId: z.ZodUUID;
259
+ }, z.core.$strip>, z.ZodObject<{
260
+ type: z.ZodLiteral<"open_cart">;
261
+ }, z.core.$strip>, z.ZodObject<{
262
+ type: z.ZodLiteral<"open_url">;
263
+ url: z.ZodURL;
264
+ }, z.core.$strip>, z.ZodObject<{
265
+ type: z.ZodLiteral<"none">;
266
+ }, z.core.$strip>], "type">>;
267
+ key: z.ZodString;
268
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
269
+ }, z.core.$strict>, z.ZodObject<{
270
+ type: z.ZodLiteral<"rows">;
271
+ max: z.ZodInt;
272
+ fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
273
+ type: z.ZodLiteral<"text">;
274
+ maxLength: z.ZodOptional<z.ZodInt>;
275
+ default: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
276
+ key: z.ZodString;
277
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
278
+ }, z.core.$strict>, z.ZodObject<{
279
+ type: z.ZodLiteral<"toggle">;
280
+ default: z.ZodOptional<z.ZodBoolean>;
281
+ key: z.ZodString;
282
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
283
+ }, z.core.$strict>, z.ZodObject<{
284
+ type: z.ZodLiteral<"select">;
285
+ options: z.ZodArray<z.ZodObject<{
286
+ value: z.ZodString;
287
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
288
+ }, z.core.$strict>>;
289
+ default: z.ZodOptional<z.ZodString>;
290
+ key: z.ZodString;
291
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
292
+ }, z.core.$strict>, z.ZodObject<{
293
+ type: z.ZodLiteral<"number">;
294
+ min: z.ZodOptional<z.ZodNumber>;
295
+ max: z.ZodOptional<z.ZodNumber>;
296
+ step: z.ZodOptional<z.ZodNumber>;
297
+ unit: z.ZodOptional<z.ZodString>;
298
+ default: z.ZodOptional<z.ZodNumber>;
299
+ key: z.ZodString;
300
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
301
+ }, z.core.$strict>, z.ZodObject<{
302
+ type: z.ZodLiteral<"color">;
303
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
304
+ token: z.ZodString;
305
+ }, z.core.$strict>]>>;
306
+ key: z.ZodString;
307
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
308
+ }, z.core.$strict>, z.ZodObject<{
309
+ type: z.ZodLiteral<"image">;
310
+ default: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
311
+ key: z.ZodString;
312
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
313
+ }, z.core.$strict>, z.ZodObject<{
314
+ type: z.ZodLiteral<"action">;
315
+ default: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
316
+ type: z.ZodLiteral<"open_screen">;
317
+ screenId: z.ZodUUID;
318
+ }, z.core.$strip>, z.ZodObject<{
319
+ type: z.ZodLiteral<"open_cart">;
320
+ }, z.core.$strip>, z.ZodObject<{
321
+ type: z.ZodLiteral<"open_url">;
322
+ url: z.ZodURL;
323
+ }, z.core.$strip>, z.ZodObject<{
324
+ type: z.ZodLiteral<"none">;
325
+ }, z.core.$strip>], "type">>;
326
+ key: z.ZodString;
327
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
328
+ }, z.core.$strict>], "type">>;
329
+ key: z.ZodString;
330
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
331
+ }, z.core.$strict>, z.ZodObject<{
332
+ type: z.ZodLiteral<"section">;
333
+ key: z.ZodString;
334
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
335
+ }, z.core.$strict>], "type">;
336
+ export type TextSetting = z.infer<typeof textSettingSchema>;
337
+ export type ToggleSetting = z.infer<typeof toggleSettingSchema>;
338
+ export type SelectSetting = z.infer<typeof selectSettingSchema>;
339
+ export type NumberSetting = z.infer<typeof numberSettingSchema>;
340
+ export type ColorSetting = z.infer<typeof colorSettingSchema>;
341
+ export type ImageSetting = z.infer<typeof imageSettingSchema>;
342
+ export type ActionSetting = z.infer<typeof actionSettingSchema>;
343
+ export type SectionSetting = z.infer<typeof sectionSettingSchema>;
344
+ export type RowFieldSetting = z.infer<typeof rowFieldSchema>;
345
+ export type RowsSetting = z.infer<typeof rowsSettingSchema>;
346
+ export type BlockSetting = z.infer<typeof blockSettingSchema>;
347
+ /** A header names a group; it never names a value, so nothing may read it. */
348
+ export declare function carriesValue(setting: BlockSetting): boolean;
349
+ /** The Binding kinds a Private Block Type may declare, beside declaring none. */
350
+ export declare const BLOCK_BINDING_KINDS: readonly ["product", "products", "collection", "collections"];
351
+ export type BlockBindingKind = (typeof BLOCK_BINDING_KINDS)[number];
352
+ /**
353
+ * Products and collections are never settings: the Binding slot is declared
354
+ * here, apart from them, with the kind and the target forms it accepts. The
355
+ * shape mirrors a platform block's manifest entry, so the pickers, the Screen
356
+ * Subject rules, the publish-time live check and the per-screen batched
357
+ * request work for a Shop's own block unchanged. A collections Binding names
358
+ * ids only, so it never accepts the subject form.
359
+ */
360
+ export declare const blockBindingDeclarationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
361
+ kind: z.ZodLiteral<"none">;
362
+ }, z.core.$strict>, z.ZodObject<{
363
+ kind: z.ZodLiteral<"product">;
364
+ targetForms: z.ZodArray<z.ZodEnum<{
365
+ literal: "literal";
366
+ subject: "subject";
367
+ }>>;
368
+ }, z.core.$strict>, z.ZodObject<{
369
+ kind: z.ZodLiteral<"products">;
370
+ targetForms: z.ZodArray<z.ZodEnum<{
371
+ literal: "literal";
372
+ subject: "subject";
373
+ }>>;
374
+ }, z.core.$strict>, z.ZodObject<{
375
+ kind: z.ZodLiteral<"collection">;
376
+ targetForms: z.ZodArray<z.ZodEnum<{
377
+ literal: "literal";
378
+ subject: "subject";
379
+ }>>;
380
+ }, z.core.$strict>, z.ZodObject<{
381
+ kind: z.ZodLiteral<"collections">;
382
+ targetForms: z.ZodArray<z.ZodEnum<{
383
+ literal: "literal";
384
+ }>>;
385
+ }, z.core.$strict>], "kind">;
386
+ export type BlockBindingDeclaration = z.infer<typeof blockBindingDeclarationSchema>;
387
+ /** The declaration as the ladder and the palette read it; null when the block binds nothing. */
388
+ export declare function declaredBinding(declaration: BlockBindingDeclaration): {
389
+ kind: BlockBindingKind;
390
+ targetForms: readonly BindingTargetForm[];
391
+ } | null;
392
+ export declare const blockPlacementSchema: z.ZodObject<{
393
+ allowedScreenKinds: z.ZodNullable<z.ZodArray<z.ZodEnum<{
394
+ custom: "custom";
395
+ product: "product";
396
+ collection: "collection";
397
+ search: "search";
398
+ home: "home";
399
+ cart: "cart";
400
+ account: "account";
401
+ }>>>;
402
+ maxPerScreen: z.ZodNullable<z.ZodInt>;
403
+ }, z.core.$strict>;
404
+ export type BlockPlacement = z.infer<typeof blockPlacementSchema>;
405
+ /**
406
+ * The closed capability set a Code Block may declare. It is code on the phone,
407
+ * never document content, and it does not grow without a new contract major:
408
+ * the contract package pins its own list to this one.
409
+ */
410
+ export declare const BLOCK_CAPABILITY_NAMES: readonly ["addToCart", "openCart", "beginCheckout"];
411
+ export type BlockCapabilityName = (typeof BLOCK_CAPABILITY_NAMES)[number];
412
+ /**
413
+ * The versioned description of a Composed Block: what the merchant sets, what
414
+ * the block binds, where it may stand, and the body of Primitives it draws.
415
+ */
416
+ export declare const composedBlockDefinitionSchema: z.ZodObject<{
417
+ body: z.ZodType<PrimitiveNode, unknown, z.core.$ZodTypeInternals<PrimitiveNode, unknown>>;
418
+ label: z.ZodString;
419
+ settings: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
420
+ type: z.ZodLiteral<"text">;
421
+ maxLength: z.ZodOptional<z.ZodInt>;
422
+ default: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
423
+ key: z.ZodString;
424
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
425
+ }, z.core.$strict>, z.ZodObject<{
426
+ type: z.ZodLiteral<"toggle">;
427
+ default: z.ZodOptional<z.ZodBoolean>;
428
+ key: z.ZodString;
429
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
430
+ }, z.core.$strict>, z.ZodObject<{
431
+ type: z.ZodLiteral<"select">;
432
+ options: z.ZodArray<z.ZodObject<{
433
+ value: z.ZodString;
434
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
435
+ }, z.core.$strict>>;
436
+ default: z.ZodOptional<z.ZodString>;
437
+ key: z.ZodString;
438
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
439
+ }, z.core.$strict>, z.ZodObject<{
440
+ type: z.ZodLiteral<"number">;
441
+ min: z.ZodOptional<z.ZodNumber>;
442
+ max: z.ZodOptional<z.ZodNumber>;
443
+ step: z.ZodOptional<z.ZodNumber>;
444
+ unit: z.ZodOptional<z.ZodString>;
445
+ default: z.ZodOptional<z.ZodNumber>;
446
+ key: z.ZodString;
447
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
448
+ }, z.core.$strict>, z.ZodObject<{
449
+ type: z.ZodLiteral<"color">;
450
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
451
+ token: z.ZodString;
452
+ }, z.core.$strict>]>>;
453
+ key: z.ZodString;
454
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
455
+ }, z.core.$strict>, z.ZodObject<{
456
+ type: z.ZodLiteral<"image">;
457
+ default: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
458
+ key: z.ZodString;
459
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
460
+ }, z.core.$strict>, z.ZodObject<{
461
+ type: z.ZodLiteral<"action">;
462
+ default: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
463
+ type: z.ZodLiteral<"open_screen">;
464
+ screenId: z.ZodUUID;
465
+ }, z.core.$strip>, z.ZodObject<{
466
+ type: z.ZodLiteral<"open_cart">;
467
+ }, z.core.$strip>, z.ZodObject<{
468
+ type: z.ZodLiteral<"open_url">;
469
+ url: z.ZodURL;
470
+ }, z.core.$strip>, z.ZodObject<{
471
+ type: z.ZodLiteral<"none">;
472
+ }, z.core.$strip>], "type">>;
473
+ key: z.ZodString;
474
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
475
+ }, z.core.$strict>, z.ZodObject<{
476
+ type: z.ZodLiteral<"rows">;
477
+ max: z.ZodInt;
478
+ fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
479
+ type: z.ZodLiteral<"text">;
480
+ maxLength: z.ZodOptional<z.ZodInt>;
481
+ default: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
482
+ key: z.ZodString;
483
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
484
+ }, z.core.$strict>, z.ZodObject<{
485
+ type: z.ZodLiteral<"toggle">;
486
+ default: z.ZodOptional<z.ZodBoolean>;
487
+ key: z.ZodString;
488
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
489
+ }, z.core.$strict>, z.ZodObject<{
490
+ type: z.ZodLiteral<"select">;
491
+ options: z.ZodArray<z.ZodObject<{
492
+ value: z.ZodString;
493
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
494
+ }, z.core.$strict>>;
495
+ default: z.ZodOptional<z.ZodString>;
496
+ key: z.ZodString;
497
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
498
+ }, z.core.$strict>, z.ZodObject<{
499
+ type: z.ZodLiteral<"number">;
500
+ min: z.ZodOptional<z.ZodNumber>;
501
+ max: z.ZodOptional<z.ZodNumber>;
502
+ step: z.ZodOptional<z.ZodNumber>;
503
+ unit: z.ZodOptional<z.ZodString>;
504
+ default: z.ZodOptional<z.ZodNumber>;
505
+ key: z.ZodString;
506
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
507
+ }, z.core.$strict>, z.ZodObject<{
508
+ type: z.ZodLiteral<"color">;
509
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
510
+ token: z.ZodString;
511
+ }, z.core.$strict>]>>;
512
+ key: z.ZodString;
513
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
514
+ }, z.core.$strict>, z.ZodObject<{
515
+ type: z.ZodLiteral<"image">;
516
+ default: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
517
+ key: z.ZodString;
518
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
519
+ }, z.core.$strict>, z.ZodObject<{
520
+ type: z.ZodLiteral<"action">;
521
+ default: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
522
+ type: z.ZodLiteral<"open_screen">;
523
+ screenId: z.ZodUUID;
524
+ }, z.core.$strip>, z.ZodObject<{
525
+ type: z.ZodLiteral<"open_cart">;
526
+ }, z.core.$strip>, z.ZodObject<{
527
+ type: z.ZodLiteral<"open_url">;
528
+ url: z.ZodURL;
529
+ }, z.core.$strip>, z.ZodObject<{
530
+ type: z.ZodLiteral<"none">;
531
+ }, z.core.$strip>], "type">>;
532
+ key: z.ZodString;
533
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
534
+ }, z.core.$strict>], "type">>;
535
+ key: z.ZodString;
536
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
537
+ }, z.core.$strict>, z.ZodObject<{
538
+ type: z.ZodLiteral<"section">;
539
+ key: z.ZodString;
540
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
541
+ }, z.core.$strict>], "type">>;
542
+ binding: z.ZodDiscriminatedUnion<[z.ZodObject<{
543
+ kind: z.ZodLiteral<"none">;
544
+ }, z.core.$strict>, z.ZodObject<{
545
+ kind: z.ZodLiteral<"product">;
546
+ targetForms: z.ZodArray<z.ZodEnum<{
547
+ literal: "literal";
548
+ subject: "subject";
549
+ }>>;
550
+ }, z.core.$strict>, z.ZodObject<{
551
+ kind: z.ZodLiteral<"products">;
552
+ targetForms: z.ZodArray<z.ZodEnum<{
553
+ literal: "literal";
554
+ subject: "subject";
555
+ }>>;
556
+ }, z.core.$strict>, z.ZodObject<{
557
+ kind: z.ZodLiteral<"collection">;
558
+ targetForms: z.ZodArray<z.ZodEnum<{
559
+ literal: "literal";
560
+ subject: "subject";
561
+ }>>;
562
+ }, z.core.$strict>, z.ZodObject<{
563
+ kind: z.ZodLiteral<"collections">;
564
+ targetForms: z.ZodArray<z.ZodEnum<{
565
+ literal: "literal";
566
+ }>>;
567
+ }, z.core.$strict>], "kind">;
568
+ placement: z.ZodObject<{
569
+ allowedScreenKinds: z.ZodNullable<z.ZodArray<z.ZodEnum<{
570
+ custom: "custom";
571
+ product: "product";
572
+ collection: "collection";
573
+ search: "search";
574
+ home: "home";
575
+ cart: "cart";
576
+ account: "account";
577
+ }>>>;
578
+ maxPerScreen: z.ZodNullable<z.ZodInt>;
579
+ }, z.core.$strict>;
580
+ kind: z.ZodLiteral<"composed">;
581
+ }, z.core.$strict>;
582
+ /**
583
+ * The versioned description of a Code Block: the same settings, Binding and
584
+ * placement, the capabilities its renderer may reach for, the version of that
585
+ * renderer, and a height hint for the canvas card. No body ever: the code is
586
+ * compiled into the Shop's app and reaches phones on the code train alone.
587
+ */
588
+ export declare const codeBlockDefinitionSchema: z.ZodObject<{
589
+ capabilities: z.ZodArray<z.ZodEnum<{
590
+ addToCart: "addToCart";
591
+ openCart: "openCart";
592
+ beginCheckout: "beginCheckout";
593
+ }>>;
594
+ rendererVersion: z.ZodInt;
595
+ heightHint: z.ZodOptional<z.ZodInt>;
596
+ label: z.ZodString;
597
+ settings: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
598
+ type: z.ZodLiteral<"text">;
599
+ maxLength: z.ZodOptional<z.ZodInt>;
600
+ default: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
601
+ key: z.ZodString;
602
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
603
+ }, z.core.$strict>, z.ZodObject<{
604
+ type: z.ZodLiteral<"toggle">;
605
+ default: z.ZodOptional<z.ZodBoolean>;
606
+ key: z.ZodString;
607
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
608
+ }, z.core.$strict>, z.ZodObject<{
609
+ type: z.ZodLiteral<"select">;
610
+ options: z.ZodArray<z.ZodObject<{
611
+ value: z.ZodString;
612
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
613
+ }, z.core.$strict>>;
614
+ default: z.ZodOptional<z.ZodString>;
615
+ key: z.ZodString;
616
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
617
+ }, z.core.$strict>, z.ZodObject<{
618
+ type: z.ZodLiteral<"number">;
619
+ min: z.ZodOptional<z.ZodNumber>;
620
+ max: z.ZodOptional<z.ZodNumber>;
621
+ step: z.ZodOptional<z.ZodNumber>;
622
+ unit: z.ZodOptional<z.ZodString>;
623
+ default: z.ZodOptional<z.ZodNumber>;
624
+ key: z.ZodString;
625
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
626
+ }, z.core.$strict>, z.ZodObject<{
627
+ type: z.ZodLiteral<"color">;
628
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
629
+ token: z.ZodString;
630
+ }, z.core.$strict>]>>;
631
+ key: z.ZodString;
632
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
633
+ }, z.core.$strict>, z.ZodObject<{
634
+ type: z.ZodLiteral<"image">;
635
+ default: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
636
+ key: z.ZodString;
637
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
638
+ }, z.core.$strict>, z.ZodObject<{
639
+ type: z.ZodLiteral<"action">;
640
+ default: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
641
+ type: z.ZodLiteral<"open_screen">;
642
+ screenId: z.ZodUUID;
643
+ }, z.core.$strip>, z.ZodObject<{
644
+ type: z.ZodLiteral<"open_cart">;
645
+ }, z.core.$strip>, z.ZodObject<{
646
+ type: z.ZodLiteral<"open_url">;
647
+ url: z.ZodURL;
648
+ }, z.core.$strip>, z.ZodObject<{
649
+ type: z.ZodLiteral<"none">;
650
+ }, z.core.$strip>], "type">>;
651
+ key: z.ZodString;
652
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
653
+ }, z.core.$strict>, z.ZodObject<{
654
+ type: z.ZodLiteral<"rows">;
655
+ max: z.ZodInt;
656
+ fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
657
+ type: z.ZodLiteral<"text">;
658
+ maxLength: z.ZodOptional<z.ZodInt>;
659
+ default: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
660
+ key: z.ZodString;
661
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
662
+ }, z.core.$strict>, z.ZodObject<{
663
+ type: z.ZodLiteral<"toggle">;
664
+ default: z.ZodOptional<z.ZodBoolean>;
665
+ key: z.ZodString;
666
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
667
+ }, z.core.$strict>, z.ZodObject<{
668
+ type: z.ZodLiteral<"select">;
669
+ options: z.ZodArray<z.ZodObject<{
670
+ value: z.ZodString;
671
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
672
+ }, z.core.$strict>>;
673
+ default: z.ZodOptional<z.ZodString>;
674
+ key: z.ZodString;
675
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
676
+ }, z.core.$strict>, z.ZodObject<{
677
+ type: z.ZodLiteral<"number">;
678
+ min: z.ZodOptional<z.ZodNumber>;
679
+ max: z.ZodOptional<z.ZodNumber>;
680
+ step: z.ZodOptional<z.ZodNumber>;
681
+ unit: z.ZodOptional<z.ZodString>;
682
+ default: z.ZodOptional<z.ZodNumber>;
683
+ key: z.ZodString;
684
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
685
+ }, z.core.$strict>, z.ZodObject<{
686
+ type: z.ZodLiteral<"color">;
687
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
688
+ token: z.ZodString;
689
+ }, z.core.$strict>]>>;
690
+ key: z.ZodString;
691
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
692
+ }, z.core.$strict>, z.ZodObject<{
693
+ type: z.ZodLiteral<"image">;
694
+ default: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
695
+ key: z.ZodString;
696
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
697
+ }, z.core.$strict>, z.ZodObject<{
698
+ type: z.ZodLiteral<"action">;
699
+ default: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
700
+ type: z.ZodLiteral<"open_screen">;
701
+ screenId: z.ZodUUID;
702
+ }, z.core.$strip>, z.ZodObject<{
703
+ type: z.ZodLiteral<"open_cart">;
704
+ }, z.core.$strip>, z.ZodObject<{
705
+ type: z.ZodLiteral<"open_url">;
706
+ url: z.ZodURL;
707
+ }, z.core.$strip>, z.ZodObject<{
708
+ type: z.ZodLiteral<"none">;
709
+ }, z.core.$strip>], "type">>;
710
+ key: z.ZodString;
711
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
712
+ }, z.core.$strict>], "type">>;
713
+ key: z.ZodString;
714
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
715
+ }, z.core.$strict>, z.ZodObject<{
716
+ type: z.ZodLiteral<"section">;
717
+ key: z.ZodString;
718
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
719
+ }, z.core.$strict>], "type">>;
720
+ binding: z.ZodDiscriminatedUnion<[z.ZodObject<{
721
+ kind: z.ZodLiteral<"none">;
722
+ }, z.core.$strict>, z.ZodObject<{
723
+ kind: z.ZodLiteral<"product">;
724
+ targetForms: z.ZodArray<z.ZodEnum<{
725
+ literal: "literal";
726
+ subject: "subject";
727
+ }>>;
728
+ }, z.core.$strict>, z.ZodObject<{
729
+ kind: z.ZodLiteral<"products">;
730
+ targetForms: z.ZodArray<z.ZodEnum<{
731
+ literal: "literal";
732
+ subject: "subject";
733
+ }>>;
734
+ }, z.core.$strict>, z.ZodObject<{
735
+ kind: z.ZodLiteral<"collection">;
736
+ targetForms: z.ZodArray<z.ZodEnum<{
737
+ literal: "literal";
738
+ subject: "subject";
739
+ }>>;
740
+ }, z.core.$strict>, z.ZodObject<{
741
+ kind: z.ZodLiteral<"collections">;
742
+ targetForms: z.ZodArray<z.ZodEnum<{
743
+ literal: "literal";
744
+ }>>;
745
+ }, z.core.$strict>], "kind">;
746
+ placement: z.ZodObject<{
747
+ allowedScreenKinds: z.ZodNullable<z.ZodArray<z.ZodEnum<{
748
+ custom: "custom";
749
+ product: "product";
750
+ collection: "collection";
751
+ search: "search";
752
+ home: "home";
753
+ cart: "cart";
754
+ account: "account";
755
+ }>>>;
756
+ maxPerScreen: z.ZodNullable<z.ZodInt>;
757
+ }, z.core.$strict>;
758
+ kind: z.ZodLiteral<"code">;
759
+ }, z.core.$strict>;
760
+ export declare const blockDefinitionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
761
+ body: z.ZodType<PrimitiveNode, unknown, z.core.$ZodTypeInternals<PrimitiveNode, unknown>>;
762
+ label: z.ZodString;
763
+ settings: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
764
+ type: z.ZodLiteral<"text">;
765
+ maxLength: z.ZodOptional<z.ZodInt>;
766
+ default: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
767
+ key: z.ZodString;
768
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
769
+ }, z.core.$strict>, z.ZodObject<{
770
+ type: z.ZodLiteral<"toggle">;
771
+ default: z.ZodOptional<z.ZodBoolean>;
772
+ key: z.ZodString;
773
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
774
+ }, z.core.$strict>, z.ZodObject<{
775
+ type: z.ZodLiteral<"select">;
776
+ options: z.ZodArray<z.ZodObject<{
777
+ value: z.ZodString;
778
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
779
+ }, z.core.$strict>>;
780
+ default: z.ZodOptional<z.ZodString>;
781
+ key: z.ZodString;
782
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
783
+ }, z.core.$strict>, z.ZodObject<{
784
+ type: z.ZodLiteral<"number">;
785
+ min: z.ZodOptional<z.ZodNumber>;
786
+ max: z.ZodOptional<z.ZodNumber>;
787
+ step: z.ZodOptional<z.ZodNumber>;
788
+ unit: z.ZodOptional<z.ZodString>;
789
+ default: z.ZodOptional<z.ZodNumber>;
790
+ key: z.ZodString;
791
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
792
+ }, z.core.$strict>, z.ZodObject<{
793
+ type: z.ZodLiteral<"color">;
794
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
795
+ token: z.ZodString;
796
+ }, z.core.$strict>]>>;
797
+ key: z.ZodString;
798
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
799
+ }, z.core.$strict>, z.ZodObject<{
800
+ type: z.ZodLiteral<"image">;
801
+ default: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
802
+ key: z.ZodString;
803
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
804
+ }, z.core.$strict>, z.ZodObject<{
805
+ type: z.ZodLiteral<"action">;
806
+ default: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
807
+ type: z.ZodLiteral<"open_screen">;
808
+ screenId: z.ZodUUID;
809
+ }, z.core.$strip>, z.ZodObject<{
810
+ type: z.ZodLiteral<"open_cart">;
811
+ }, z.core.$strip>, z.ZodObject<{
812
+ type: z.ZodLiteral<"open_url">;
813
+ url: z.ZodURL;
814
+ }, z.core.$strip>, z.ZodObject<{
815
+ type: z.ZodLiteral<"none">;
816
+ }, z.core.$strip>], "type">>;
817
+ key: z.ZodString;
818
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
819
+ }, z.core.$strict>, z.ZodObject<{
820
+ type: z.ZodLiteral<"rows">;
821
+ max: z.ZodInt;
822
+ fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
823
+ type: z.ZodLiteral<"text">;
824
+ maxLength: z.ZodOptional<z.ZodInt>;
825
+ default: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
826
+ key: z.ZodString;
827
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
828
+ }, z.core.$strict>, z.ZodObject<{
829
+ type: z.ZodLiteral<"toggle">;
830
+ default: z.ZodOptional<z.ZodBoolean>;
831
+ key: z.ZodString;
832
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
833
+ }, z.core.$strict>, z.ZodObject<{
834
+ type: z.ZodLiteral<"select">;
835
+ options: z.ZodArray<z.ZodObject<{
836
+ value: z.ZodString;
837
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
838
+ }, z.core.$strict>>;
839
+ default: z.ZodOptional<z.ZodString>;
840
+ key: z.ZodString;
841
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
842
+ }, z.core.$strict>, z.ZodObject<{
843
+ type: z.ZodLiteral<"number">;
844
+ min: z.ZodOptional<z.ZodNumber>;
845
+ max: z.ZodOptional<z.ZodNumber>;
846
+ step: z.ZodOptional<z.ZodNumber>;
847
+ unit: z.ZodOptional<z.ZodString>;
848
+ default: z.ZodOptional<z.ZodNumber>;
849
+ key: z.ZodString;
850
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
851
+ }, z.core.$strict>, z.ZodObject<{
852
+ type: z.ZodLiteral<"color">;
853
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
854
+ token: z.ZodString;
855
+ }, z.core.$strict>]>>;
856
+ key: z.ZodString;
857
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
858
+ }, z.core.$strict>, z.ZodObject<{
859
+ type: z.ZodLiteral<"image">;
860
+ default: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
861
+ key: z.ZodString;
862
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
863
+ }, z.core.$strict>, z.ZodObject<{
864
+ type: z.ZodLiteral<"action">;
865
+ default: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
866
+ type: z.ZodLiteral<"open_screen">;
867
+ screenId: z.ZodUUID;
868
+ }, z.core.$strip>, z.ZodObject<{
869
+ type: z.ZodLiteral<"open_cart">;
870
+ }, z.core.$strip>, z.ZodObject<{
871
+ type: z.ZodLiteral<"open_url">;
872
+ url: z.ZodURL;
873
+ }, z.core.$strip>, z.ZodObject<{
874
+ type: z.ZodLiteral<"none">;
875
+ }, z.core.$strip>], "type">>;
876
+ key: z.ZodString;
877
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
878
+ }, z.core.$strict>], "type">>;
879
+ key: z.ZodString;
880
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
881
+ }, z.core.$strict>, z.ZodObject<{
882
+ type: z.ZodLiteral<"section">;
883
+ key: z.ZodString;
884
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
885
+ }, z.core.$strict>], "type">>;
886
+ binding: z.ZodDiscriminatedUnion<[z.ZodObject<{
887
+ kind: z.ZodLiteral<"none">;
888
+ }, z.core.$strict>, z.ZodObject<{
889
+ kind: z.ZodLiteral<"product">;
890
+ targetForms: z.ZodArray<z.ZodEnum<{
891
+ literal: "literal";
892
+ subject: "subject";
893
+ }>>;
894
+ }, z.core.$strict>, z.ZodObject<{
895
+ kind: z.ZodLiteral<"products">;
896
+ targetForms: z.ZodArray<z.ZodEnum<{
897
+ literal: "literal";
898
+ subject: "subject";
899
+ }>>;
900
+ }, z.core.$strict>, z.ZodObject<{
901
+ kind: z.ZodLiteral<"collection">;
902
+ targetForms: z.ZodArray<z.ZodEnum<{
903
+ literal: "literal";
904
+ subject: "subject";
905
+ }>>;
906
+ }, z.core.$strict>, z.ZodObject<{
907
+ kind: z.ZodLiteral<"collections">;
908
+ targetForms: z.ZodArray<z.ZodEnum<{
909
+ literal: "literal";
910
+ }>>;
911
+ }, z.core.$strict>], "kind">;
912
+ placement: z.ZodObject<{
913
+ allowedScreenKinds: z.ZodNullable<z.ZodArray<z.ZodEnum<{
914
+ custom: "custom";
915
+ product: "product";
916
+ collection: "collection";
917
+ search: "search";
918
+ home: "home";
919
+ cart: "cart";
920
+ account: "account";
921
+ }>>>;
922
+ maxPerScreen: z.ZodNullable<z.ZodInt>;
923
+ }, z.core.$strict>;
924
+ kind: z.ZodLiteral<"composed">;
925
+ }, z.core.$strict>, z.ZodObject<{
926
+ capabilities: z.ZodArray<z.ZodEnum<{
927
+ addToCart: "addToCart";
928
+ openCart: "openCart";
929
+ beginCheckout: "beginCheckout";
930
+ }>>;
931
+ rendererVersion: z.ZodInt;
932
+ heightHint: z.ZodOptional<z.ZodInt>;
933
+ label: z.ZodString;
934
+ settings: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
935
+ type: z.ZodLiteral<"text">;
936
+ maxLength: z.ZodOptional<z.ZodInt>;
937
+ default: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
938
+ key: z.ZodString;
939
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
940
+ }, z.core.$strict>, z.ZodObject<{
941
+ type: z.ZodLiteral<"toggle">;
942
+ default: z.ZodOptional<z.ZodBoolean>;
943
+ key: z.ZodString;
944
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
945
+ }, z.core.$strict>, z.ZodObject<{
946
+ type: z.ZodLiteral<"select">;
947
+ options: z.ZodArray<z.ZodObject<{
948
+ value: z.ZodString;
949
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
950
+ }, z.core.$strict>>;
951
+ default: z.ZodOptional<z.ZodString>;
952
+ key: z.ZodString;
953
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
954
+ }, z.core.$strict>, z.ZodObject<{
955
+ type: z.ZodLiteral<"number">;
956
+ min: z.ZodOptional<z.ZodNumber>;
957
+ max: z.ZodOptional<z.ZodNumber>;
958
+ step: z.ZodOptional<z.ZodNumber>;
959
+ unit: z.ZodOptional<z.ZodString>;
960
+ default: z.ZodOptional<z.ZodNumber>;
961
+ key: z.ZodString;
962
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
963
+ }, z.core.$strict>, z.ZodObject<{
964
+ type: z.ZodLiteral<"color">;
965
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
966
+ token: z.ZodString;
967
+ }, z.core.$strict>]>>;
968
+ key: z.ZodString;
969
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
970
+ }, z.core.$strict>, z.ZodObject<{
971
+ type: z.ZodLiteral<"image">;
972
+ default: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
973
+ key: z.ZodString;
974
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
975
+ }, z.core.$strict>, z.ZodObject<{
976
+ type: z.ZodLiteral<"action">;
977
+ default: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
978
+ type: z.ZodLiteral<"open_screen">;
979
+ screenId: z.ZodUUID;
980
+ }, z.core.$strip>, z.ZodObject<{
981
+ type: z.ZodLiteral<"open_cart">;
982
+ }, z.core.$strip>, z.ZodObject<{
983
+ type: z.ZodLiteral<"open_url">;
984
+ url: z.ZodURL;
985
+ }, z.core.$strip>, z.ZodObject<{
986
+ type: z.ZodLiteral<"none">;
987
+ }, z.core.$strip>], "type">>;
988
+ key: z.ZodString;
989
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
990
+ }, z.core.$strict>, z.ZodObject<{
991
+ type: z.ZodLiteral<"rows">;
992
+ max: z.ZodInt;
993
+ fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
994
+ type: z.ZodLiteral<"text">;
995
+ maxLength: z.ZodOptional<z.ZodInt>;
996
+ default: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
997
+ key: z.ZodString;
998
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
999
+ }, z.core.$strict>, z.ZodObject<{
1000
+ type: z.ZodLiteral<"toggle">;
1001
+ default: z.ZodOptional<z.ZodBoolean>;
1002
+ key: z.ZodString;
1003
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1004
+ }, z.core.$strict>, z.ZodObject<{
1005
+ type: z.ZodLiteral<"select">;
1006
+ options: z.ZodArray<z.ZodObject<{
1007
+ value: z.ZodString;
1008
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1009
+ }, z.core.$strict>>;
1010
+ default: z.ZodOptional<z.ZodString>;
1011
+ key: z.ZodString;
1012
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1013
+ }, z.core.$strict>, z.ZodObject<{
1014
+ type: z.ZodLiteral<"number">;
1015
+ min: z.ZodOptional<z.ZodNumber>;
1016
+ max: z.ZodOptional<z.ZodNumber>;
1017
+ step: z.ZodOptional<z.ZodNumber>;
1018
+ unit: z.ZodOptional<z.ZodString>;
1019
+ default: z.ZodOptional<z.ZodNumber>;
1020
+ key: z.ZodString;
1021
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1022
+ }, z.core.$strict>, z.ZodObject<{
1023
+ type: z.ZodLiteral<"color">;
1024
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1025
+ token: z.ZodString;
1026
+ }, z.core.$strict>]>>;
1027
+ key: z.ZodString;
1028
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1029
+ }, z.core.$strict>, z.ZodObject<{
1030
+ type: z.ZodLiteral<"image">;
1031
+ default: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
1032
+ key: z.ZodString;
1033
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1034
+ }, z.core.$strict>, z.ZodObject<{
1035
+ type: z.ZodLiteral<"action">;
1036
+ default: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1037
+ type: z.ZodLiteral<"open_screen">;
1038
+ screenId: z.ZodUUID;
1039
+ }, z.core.$strip>, z.ZodObject<{
1040
+ type: z.ZodLiteral<"open_cart">;
1041
+ }, z.core.$strip>, z.ZodObject<{
1042
+ type: z.ZodLiteral<"open_url">;
1043
+ url: z.ZodURL;
1044
+ }, z.core.$strip>, z.ZodObject<{
1045
+ type: z.ZodLiteral<"none">;
1046
+ }, z.core.$strip>], "type">>;
1047
+ key: z.ZodString;
1048
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1049
+ }, z.core.$strict>], "type">>;
1050
+ key: z.ZodString;
1051
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1052
+ }, z.core.$strict>, z.ZodObject<{
1053
+ type: z.ZodLiteral<"section">;
1054
+ key: z.ZodString;
1055
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1056
+ }, z.core.$strict>], "type">>;
1057
+ binding: z.ZodDiscriminatedUnion<[z.ZodObject<{
1058
+ kind: z.ZodLiteral<"none">;
1059
+ }, z.core.$strict>, z.ZodObject<{
1060
+ kind: z.ZodLiteral<"product">;
1061
+ targetForms: z.ZodArray<z.ZodEnum<{
1062
+ literal: "literal";
1063
+ subject: "subject";
1064
+ }>>;
1065
+ }, z.core.$strict>, z.ZodObject<{
1066
+ kind: z.ZodLiteral<"products">;
1067
+ targetForms: z.ZodArray<z.ZodEnum<{
1068
+ literal: "literal";
1069
+ subject: "subject";
1070
+ }>>;
1071
+ }, z.core.$strict>, z.ZodObject<{
1072
+ kind: z.ZodLiteral<"collection">;
1073
+ targetForms: z.ZodArray<z.ZodEnum<{
1074
+ literal: "literal";
1075
+ subject: "subject";
1076
+ }>>;
1077
+ }, z.core.$strict>, z.ZodObject<{
1078
+ kind: z.ZodLiteral<"collections">;
1079
+ targetForms: z.ZodArray<z.ZodEnum<{
1080
+ literal: "literal";
1081
+ }>>;
1082
+ }, z.core.$strict>], "kind">;
1083
+ placement: z.ZodObject<{
1084
+ allowedScreenKinds: z.ZodNullable<z.ZodArray<z.ZodEnum<{
1085
+ custom: "custom";
1086
+ product: "product";
1087
+ collection: "collection";
1088
+ search: "search";
1089
+ home: "home";
1090
+ cart: "cart";
1091
+ account: "account";
1092
+ }>>>;
1093
+ maxPerScreen: z.ZodNullable<z.ZodInt>;
1094
+ }, z.core.$strict>;
1095
+ kind: z.ZodLiteral<"code">;
1096
+ }, z.core.$strict>], "kind">;
1097
+ export type ComposedBlockDefinition = z.infer<typeof composedBlockDefinitionSchema> & {
1098
+ body: PrimitiveNode;
1099
+ };
1100
+ export type CodeBlockDefinition = z.infer<typeof codeBlockDefinitionSchema>;
1101
+ export type BlockDefinition = ComposedBlockDefinition | CodeBlockDefinition;
1102
+ export type BlockDefinitionKind = BlockDefinition['kind'];
1103
+ /** A definition as a Release froze it: unlike the push schema, an unknown Primitive is kept. */
1104
+ export declare const envelopeComposedBlockDefinitionSchema: z.ZodObject<{
1105
+ label: z.ZodString;
1106
+ settings: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1107
+ type: z.ZodLiteral<"text">;
1108
+ maxLength: z.ZodOptional<z.ZodInt>;
1109
+ default: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1110
+ key: z.ZodString;
1111
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1112
+ }, z.core.$strict>, z.ZodObject<{
1113
+ type: z.ZodLiteral<"toggle">;
1114
+ default: z.ZodOptional<z.ZodBoolean>;
1115
+ key: z.ZodString;
1116
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1117
+ }, z.core.$strict>, z.ZodObject<{
1118
+ type: z.ZodLiteral<"select">;
1119
+ options: z.ZodArray<z.ZodObject<{
1120
+ value: z.ZodString;
1121
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1122
+ }, z.core.$strict>>;
1123
+ default: z.ZodOptional<z.ZodString>;
1124
+ key: z.ZodString;
1125
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1126
+ }, z.core.$strict>, z.ZodObject<{
1127
+ type: z.ZodLiteral<"number">;
1128
+ min: z.ZodOptional<z.ZodNumber>;
1129
+ max: z.ZodOptional<z.ZodNumber>;
1130
+ step: z.ZodOptional<z.ZodNumber>;
1131
+ unit: z.ZodOptional<z.ZodString>;
1132
+ default: z.ZodOptional<z.ZodNumber>;
1133
+ key: z.ZodString;
1134
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1135
+ }, z.core.$strict>, z.ZodObject<{
1136
+ type: z.ZodLiteral<"color">;
1137
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1138
+ token: z.ZodString;
1139
+ }, z.core.$strict>]>>;
1140
+ key: z.ZodString;
1141
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1142
+ }, z.core.$strict>, z.ZodObject<{
1143
+ type: z.ZodLiteral<"image">;
1144
+ default: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
1145
+ key: z.ZodString;
1146
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1147
+ }, z.core.$strict>, z.ZodObject<{
1148
+ type: z.ZodLiteral<"action">;
1149
+ default: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1150
+ type: z.ZodLiteral<"open_screen">;
1151
+ screenId: z.ZodUUID;
1152
+ }, z.core.$strip>, z.ZodObject<{
1153
+ type: z.ZodLiteral<"open_cart">;
1154
+ }, z.core.$strip>, z.ZodObject<{
1155
+ type: z.ZodLiteral<"open_url">;
1156
+ url: z.ZodURL;
1157
+ }, z.core.$strip>, z.ZodObject<{
1158
+ type: z.ZodLiteral<"none">;
1159
+ }, z.core.$strip>], "type">>;
1160
+ key: z.ZodString;
1161
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1162
+ }, z.core.$strict>, z.ZodObject<{
1163
+ type: z.ZodLiteral<"rows">;
1164
+ max: z.ZodInt;
1165
+ fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1166
+ type: z.ZodLiteral<"text">;
1167
+ maxLength: z.ZodOptional<z.ZodInt>;
1168
+ default: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1169
+ key: z.ZodString;
1170
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1171
+ }, z.core.$strict>, z.ZodObject<{
1172
+ type: z.ZodLiteral<"toggle">;
1173
+ default: z.ZodOptional<z.ZodBoolean>;
1174
+ key: z.ZodString;
1175
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1176
+ }, z.core.$strict>, z.ZodObject<{
1177
+ type: z.ZodLiteral<"select">;
1178
+ options: z.ZodArray<z.ZodObject<{
1179
+ value: z.ZodString;
1180
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1181
+ }, z.core.$strict>>;
1182
+ default: z.ZodOptional<z.ZodString>;
1183
+ key: z.ZodString;
1184
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1185
+ }, z.core.$strict>, z.ZodObject<{
1186
+ type: z.ZodLiteral<"number">;
1187
+ min: z.ZodOptional<z.ZodNumber>;
1188
+ max: z.ZodOptional<z.ZodNumber>;
1189
+ step: z.ZodOptional<z.ZodNumber>;
1190
+ unit: z.ZodOptional<z.ZodString>;
1191
+ default: z.ZodOptional<z.ZodNumber>;
1192
+ key: z.ZodString;
1193
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1194
+ }, z.core.$strict>, z.ZodObject<{
1195
+ type: z.ZodLiteral<"color">;
1196
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1197
+ token: z.ZodString;
1198
+ }, z.core.$strict>]>>;
1199
+ key: z.ZodString;
1200
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1201
+ }, z.core.$strict>, z.ZodObject<{
1202
+ type: z.ZodLiteral<"image">;
1203
+ default: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
1204
+ key: z.ZodString;
1205
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1206
+ }, z.core.$strict>, z.ZodObject<{
1207
+ type: z.ZodLiteral<"action">;
1208
+ default: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1209
+ type: z.ZodLiteral<"open_screen">;
1210
+ screenId: z.ZodUUID;
1211
+ }, z.core.$strip>, z.ZodObject<{
1212
+ type: z.ZodLiteral<"open_cart">;
1213
+ }, z.core.$strip>, z.ZodObject<{
1214
+ type: z.ZodLiteral<"open_url">;
1215
+ url: z.ZodURL;
1216
+ }, z.core.$strip>, z.ZodObject<{
1217
+ type: z.ZodLiteral<"none">;
1218
+ }, z.core.$strip>], "type">>;
1219
+ key: z.ZodString;
1220
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1221
+ }, z.core.$strict>], "type">>;
1222
+ key: z.ZodString;
1223
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1224
+ }, z.core.$strict>, z.ZodObject<{
1225
+ type: z.ZodLiteral<"section">;
1226
+ key: z.ZodString;
1227
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1228
+ }, z.core.$strict>], "type">>;
1229
+ binding: z.ZodDiscriminatedUnion<[z.ZodObject<{
1230
+ kind: z.ZodLiteral<"none">;
1231
+ }, z.core.$strict>, z.ZodObject<{
1232
+ kind: z.ZodLiteral<"product">;
1233
+ targetForms: z.ZodArray<z.ZodEnum<{
1234
+ literal: "literal";
1235
+ subject: "subject";
1236
+ }>>;
1237
+ }, z.core.$strict>, z.ZodObject<{
1238
+ kind: z.ZodLiteral<"products">;
1239
+ targetForms: z.ZodArray<z.ZodEnum<{
1240
+ literal: "literal";
1241
+ subject: "subject";
1242
+ }>>;
1243
+ }, z.core.$strict>, z.ZodObject<{
1244
+ kind: z.ZodLiteral<"collection">;
1245
+ targetForms: z.ZodArray<z.ZodEnum<{
1246
+ literal: "literal";
1247
+ subject: "subject";
1248
+ }>>;
1249
+ }, z.core.$strict>, z.ZodObject<{
1250
+ kind: z.ZodLiteral<"collections">;
1251
+ targetForms: z.ZodArray<z.ZodEnum<{
1252
+ literal: "literal";
1253
+ }>>;
1254
+ }, z.core.$strict>], "kind">;
1255
+ placement: z.ZodObject<{
1256
+ allowedScreenKinds: z.ZodNullable<z.ZodArray<z.ZodEnum<{
1257
+ custom: "custom";
1258
+ product: "product";
1259
+ collection: "collection";
1260
+ search: "search";
1261
+ home: "home";
1262
+ cart: "cart";
1263
+ account: "account";
1264
+ }>>>;
1265
+ maxPerScreen: z.ZodNullable<z.ZodInt>;
1266
+ }, z.core.$strict>;
1267
+ kind: z.ZodLiteral<"composed">;
1268
+ body: z.ZodType<EnvelopePrimitiveNode, unknown, z.core.$ZodTypeInternals<EnvelopePrimitiveNode, unknown>>;
1269
+ }, z.core.$strict>;
1270
+ export declare const envelopeBlockDefinitionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1271
+ label: z.ZodString;
1272
+ settings: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1273
+ type: z.ZodLiteral<"text">;
1274
+ maxLength: z.ZodOptional<z.ZodInt>;
1275
+ default: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1276
+ key: z.ZodString;
1277
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1278
+ }, z.core.$strict>, z.ZodObject<{
1279
+ type: z.ZodLiteral<"toggle">;
1280
+ default: z.ZodOptional<z.ZodBoolean>;
1281
+ key: z.ZodString;
1282
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1283
+ }, z.core.$strict>, z.ZodObject<{
1284
+ type: z.ZodLiteral<"select">;
1285
+ options: z.ZodArray<z.ZodObject<{
1286
+ value: z.ZodString;
1287
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1288
+ }, z.core.$strict>>;
1289
+ default: z.ZodOptional<z.ZodString>;
1290
+ key: z.ZodString;
1291
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1292
+ }, z.core.$strict>, z.ZodObject<{
1293
+ type: z.ZodLiteral<"number">;
1294
+ min: z.ZodOptional<z.ZodNumber>;
1295
+ max: z.ZodOptional<z.ZodNumber>;
1296
+ step: z.ZodOptional<z.ZodNumber>;
1297
+ unit: z.ZodOptional<z.ZodString>;
1298
+ default: z.ZodOptional<z.ZodNumber>;
1299
+ key: z.ZodString;
1300
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1301
+ }, z.core.$strict>, z.ZodObject<{
1302
+ type: z.ZodLiteral<"color">;
1303
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1304
+ token: z.ZodString;
1305
+ }, z.core.$strict>]>>;
1306
+ key: z.ZodString;
1307
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1308
+ }, z.core.$strict>, z.ZodObject<{
1309
+ type: z.ZodLiteral<"image">;
1310
+ default: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
1311
+ key: z.ZodString;
1312
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1313
+ }, z.core.$strict>, z.ZodObject<{
1314
+ type: z.ZodLiteral<"action">;
1315
+ default: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1316
+ type: z.ZodLiteral<"open_screen">;
1317
+ screenId: z.ZodUUID;
1318
+ }, z.core.$strip>, z.ZodObject<{
1319
+ type: z.ZodLiteral<"open_cart">;
1320
+ }, z.core.$strip>, z.ZodObject<{
1321
+ type: z.ZodLiteral<"open_url">;
1322
+ url: z.ZodURL;
1323
+ }, z.core.$strip>, z.ZodObject<{
1324
+ type: z.ZodLiteral<"none">;
1325
+ }, z.core.$strip>], "type">>;
1326
+ key: z.ZodString;
1327
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1328
+ }, z.core.$strict>, z.ZodObject<{
1329
+ type: z.ZodLiteral<"rows">;
1330
+ max: z.ZodInt;
1331
+ fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1332
+ type: z.ZodLiteral<"text">;
1333
+ maxLength: z.ZodOptional<z.ZodInt>;
1334
+ default: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1335
+ key: z.ZodString;
1336
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1337
+ }, z.core.$strict>, z.ZodObject<{
1338
+ type: z.ZodLiteral<"toggle">;
1339
+ default: z.ZodOptional<z.ZodBoolean>;
1340
+ key: z.ZodString;
1341
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1342
+ }, z.core.$strict>, z.ZodObject<{
1343
+ type: z.ZodLiteral<"select">;
1344
+ options: z.ZodArray<z.ZodObject<{
1345
+ value: z.ZodString;
1346
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1347
+ }, z.core.$strict>>;
1348
+ default: z.ZodOptional<z.ZodString>;
1349
+ key: z.ZodString;
1350
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1351
+ }, z.core.$strict>, z.ZodObject<{
1352
+ type: z.ZodLiteral<"number">;
1353
+ min: z.ZodOptional<z.ZodNumber>;
1354
+ max: z.ZodOptional<z.ZodNumber>;
1355
+ step: z.ZodOptional<z.ZodNumber>;
1356
+ unit: z.ZodOptional<z.ZodString>;
1357
+ default: z.ZodOptional<z.ZodNumber>;
1358
+ key: z.ZodString;
1359
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1360
+ }, z.core.$strict>, z.ZodObject<{
1361
+ type: z.ZodLiteral<"color">;
1362
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1363
+ token: z.ZodString;
1364
+ }, z.core.$strict>]>>;
1365
+ key: z.ZodString;
1366
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1367
+ }, z.core.$strict>, z.ZodObject<{
1368
+ type: z.ZodLiteral<"image">;
1369
+ default: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
1370
+ key: z.ZodString;
1371
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1372
+ }, z.core.$strict>, z.ZodObject<{
1373
+ type: z.ZodLiteral<"action">;
1374
+ default: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1375
+ type: z.ZodLiteral<"open_screen">;
1376
+ screenId: z.ZodUUID;
1377
+ }, z.core.$strip>, z.ZodObject<{
1378
+ type: z.ZodLiteral<"open_cart">;
1379
+ }, z.core.$strip>, z.ZodObject<{
1380
+ type: z.ZodLiteral<"open_url">;
1381
+ url: z.ZodURL;
1382
+ }, z.core.$strip>, z.ZodObject<{
1383
+ type: z.ZodLiteral<"none">;
1384
+ }, z.core.$strip>], "type">>;
1385
+ key: z.ZodString;
1386
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1387
+ }, z.core.$strict>], "type">>;
1388
+ key: z.ZodString;
1389
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1390
+ }, z.core.$strict>, z.ZodObject<{
1391
+ type: z.ZodLiteral<"section">;
1392
+ key: z.ZodString;
1393
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1394
+ }, z.core.$strict>], "type">>;
1395
+ binding: z.ZodDiscriminatedUnion<[z.ZodObject<{
1396
+ kind: z.ZodLiteral<"none">;
1397
+ }, z.core.$strict>, z.ZodObject<{
1398
+ kind: z.ZodLiteral<"product">;
1399
+ targetForms: z.ZodArray<z.ZodEnum<{
1400
+ literal: "literal";
1401
+ subject: "subject";
1402
+ }>>;
1403
+ }, z.core.$strict>, z.ZodObject<{
1404
+ kind: z.ZodLiteral<"products">;
1405
+ targetForms: z.ZodArray<z.ZodEnum<{
1406
+ literal: "literal";
1407
+ subject: "subject";
1408
+ }>>;
1409
+ }, z.core.$strict>, z.ZodObject<{
1410
+ kind: z.ZodLiteral<"collection">;
1411
+ targetForms: z.ZodArray<z.ZodEnum<{
1412
+ literal: "literal";
1413
+ subject: "subject";
1414
+ }>>;
1415
+ }, z.core.$strict>, z.ZodObject<{
1416
+ kind: z.ZodLiteral<"collections">;
1417
+ targetForms: z.ZodArray<z.ZodEnum<{
1418
+ literal: "literal";
1419
+ }>>;
1420
+ }, z.core.$strict>], "kind">;
1421
+ placement: z.ZodObject<{
1422
+ allowedScreenKinds: z.ZodNullable<z.ZodArray<z.ZodEnum<{
1423
+ custom: "custom";
1424
+ product: "product";
1425
+ collection: "collection";
1426
+ search: "search";
1427
+ home: "home";
1428
+ cart: "cart";
1429
+ account: "account";
1430
+ }>>>;
1431
+ maxPerScreen: z.ZodNullable<z.ZodInt>;
1432
+ }, z.core.$strict>;
1433
+ kind: z.ZodLiteral<"composed">;
1434
+ body: z.ZodType<EnvelopePrimitiveNode, unknown, z.core.$ZodTypeInternals<EnvelopePrimitiveNode, unknown>>;
1435
+ }, z.core.$strict>, z.ZodObject<{
1436
+ capabilities: z.ZodArray<z.ZodEnum<{
1437
+ addToCart: "addToCart";
1438
+ openCart: "openCart";
1439
+ beginCheckout: "beginCheckout";
1440
+ }>>;
1441
+ rendererVersion: z.ZodInt;
1442
+ heightHint: z.ZodOptional<z.ZodInt>;
1443
+ label: z.ZodString;
1444
+ settings: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1445
+ type: z.ZodLiteral<"text">;
1446
+ maxLength: z.ZodOptional<z.ZodInt>;
1447
+ default: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1448
+ key: z.ZodString;
1449
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1450
+ }, z.core.$strict>, z.ZodObject<{
1451
+ type: z.ZodLiteral<"toggle">;
1452
+ default: z.ZodOptional<z.ZodBoolean>;
1453
+ key: z.ZodString;
1454
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1455
+ }, z.core.$strict>, z.ZodObject<{
1456
+ type: z.ZodLiteral<"select">;
1457
+ options: z.ZodArray<z.ZodObject<{
1458
+ value: z.ZodString;
1459
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1460
+ }, z.core.$strict>>;
1461
+ default: z.ZodOptional<z.ZodString>;
1462
+ key: z.ZodString;
1463
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1464
+ }, z.core.$strict>, z.ZodObject<{
1465
+ type: z.ZodLiteral<"number">;
1466
+ min: z.ZodOptional<z.ZodNumber>;
1467
+ max: z.ZodOptional<z.ZodNumber>;
1468
+ step: z.ZodOptional<z.ZodNumber>;
1469
+ unit: z.ZodOptional<z.ZodString>;
1470
+ default: z.ZodOptional<z.ZodNumber>;
1471
+ key: z.ZodString;
1472
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1473
+ }, z.core.$strict>, z.ZodObject<{
1474
+ type: z.ZodLiteral<"color">;
1475
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1476
+ token: z.ZodString;
1477
+ }, z.core.$strict>]>>;
1478
+ key: z.ZodString;
1479
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1480
+ }, z.core.$strict>, z.ZodObject<{
1481
+ type: z.ZodLiteral<"image">;
1482
+ default: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
1483
+ key: z.ZodString;
1484
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1485
+ }, z.core.$strict>, z.ZodObject<{
1486
+ type: z.ZodLiteral<"action">;
1487
+ default: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1488
+ type: z.ZodLiteral<"open_screen">;
1489
+ screenId: z.ZodUUID;
1490
+ }, z.core.$strip>, z.ZodObject<{
1491
+ type: z.ZodLiteral<"open_cart">;
1492
+ }, z.core.$strip>, z.ZodObject<{
1493
+ type: z.ZodLiteral<"open_url">;
1494
+ url: z.ZodURL;
1495
+ }, z.core.$strip>, z.ZodObject<{
1496
+ type: z.ZodLiteral<"none">;
1497
+ }, z.core.$strip>], "type">>;
1498
+ key: z.ZodString;
1499
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1500
+ }, z.core.$strict>, z.ZodObject<{
1501
+ type: z.ZodLiteral<"rows">;
1502
+ max: z.ZodInt;
1503
+ fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1504
+ type: z.ZodLiteral<"text">;
1505
+ maxLength: z.ZodOptional<z.ZodInt>;
1506
+ default: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1507
+ key: z.ZodString;
1508
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1509
+ }, z.core.$strict>, z.ZodObject<{
1510
+ type: z.ZodLiteral<"toggle">;
1511
+ default: z.ZodOptional<z.ZodBoolean>;
1512
+ key: z.ZodString;
1513
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1514
+ }, z.core.$strict>, z.ZodObject<{
1515
+ type: z.ZodLiteral<"select">;
1516
+ options: z.ZodArray<z.ZodObject<{
1517
+ value: z.ZodString;
1518
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1519
+ }, z.core.$strict>>;
1520
+ default: z.ZodOptional<z.ZodString>;
1521
+ key: z.ZodString;
1522
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1523
+ }, z.core.$strict>, z.ZodObject<{
1524
+ type: z.ZodLiteral<"number">;
1525
+ min: z.ZodOptional<z.ZodNumber>;
1526
+ max: z.ZodOptional<z.ZodNumber>;
1527
+ step: z.ZodOptional<z.ZodNumber>;
1528
+ unit: z.ZodOptional<z.ZodString>;
1529
+ default: z.ZodOptional<z.ZodNumber>;
1530
+ key: z.ZodString;
1531
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1532
+ }, z.core.$strict>, z.ZodObject<{
1533
+ type: z.ZodLiteral<"color">;
1534
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1535
+ token: z.ZodString;
1536
+ }, z.core.$strict>]>>;
1537
+ key: z.ZodString;
1538
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1539
+ }, z.core.$strict>, z.ZodObject<{
1540
+ type: z.ZodLiteral<"image">;
1541
+ default: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
1542
+ key: z.ZodString;
1543
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1544
+ }, z.core.$strict>, z.ZodObject<{
1545
+ type: z.ZodLiteral<"action">;
1546
+ default: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1547
+ type: z.ZodLiteral<"open_screen">;
1548
+ screenId: z.ZodUUID;
1549
+ }, z.core.$strip>, z.ZodObject<{
1550
+ type: z.ZodLiteral<"open_cart">;
1551
+ }, z.core.$strip>, z.ZodObject<{
1552
+ type: z.ZodLiteral<"open_url">;
1553
+ url: z.ZodURL;
1554
+ }, z.core.$strip>, z.ZodObject<{
1555
+ type: z.ZodLiteral<"none">;
1556
+ }, z.core.$strip>], "type">>;
1557
+ key: z.ZodString;
1558
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1559
+ }, z.core.$strict>], "type">>;
1560
+ key: z.ZodString;
1561
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1562
+ }, z.core.$strict>, z.ZodObject<{
1563
+ type: z.ZodLiteral<"section">;
1564
+ key: z.ZodString;
1565
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1566
+ }, z.core.$strict>], "type">>;
1567
+ binding: z.ZodDiscriminatedUnion<[z.ZodObject<{
1568
+ kind: z.ZodLiteral<"none">;
1569
+ }, z.core.$strict>, z.ZodObject<{
1570
+ kind: z.ZodLiteral<"product">;
1571
+ targetForms: z.ZodArray<z.ZodEnum<{
1572
+ literal: "literal";
1573
+ subject: "subject";
1574
+ }>>;
1575
+ }, z.core.$strict>, z.ZodObject<{
1576
+ kind: z.ZodLiteral<"products">;
1577
+ targetForms: z.ZodArray<z.ZodEnum<{
1578
+ literal: "literal";
1579
+ subject: "subject";
1580
+ }>>;
1581
+ }, z.core.$strict>, z.ZodObject<{
1582
+ kind: z.ZodLiteral<"collection">;
1583
+ targetForms: z.ZodArray<z.ZodEnum<{
1584
+ literal: "literal";
1585
+ subject: "subject";
1586
+ }>>;
1587
+ }, z.core.$strict>, z.ZodObject<{
1588
+ kind: z.ZodLiteral<"collections">;
1589
+ targetForms: z.ZodArray<z.ZodEnum<{
1590
+ literal: "literal";
1591
+ }>>;
1592
+ }, z.core.$strict>], "kind">;
1593
+ placement: z.ZodObject<{
1594
+ allowedScreenKinds: z.ZodNullable<z.ZodArray<z.ZodEnum<{
1595
+ custom: "custom";
1596
+ product: "product";
1597
+ collection: "collection";
1598
+ search: "search";
1599
+ home: "home";
1600
+ cart: "cart";
1601
+ account: "account";
1602
+ }>>>;
1603
+ maxPerScreen: z.ZodNullable<z.ZodInt>;
1604
+ }, z.core.$strict>;
1605
+ kind: z.ZodLiteral<"code">;
1606
+ }, z.core.$strict>], "kind">;
1607
+ export type EnvelopeComposedBlockDefinition = Omit<ComposedBlockDefinition, 'body'> & {
1608
+ body: EnvelopePrimitiveNode;
1609
+ };
1610
+ export type EnvelopeBlockDefinition = EnvelopeComposedBlockDefinition | CodeBlockDefinition;
1611
+ /** The one problem a caller maps to a limit code of its own; everything else is a plain refusal. */
1612
+ export type SettingValueIssueCode = 'rows_over_max';
1613
+ export interface SettingValueIssue {
1614
+ readonly path: string;
1615
+ readonly message: string;
1616
+ readonly code?: SettingValueIssueCode;
1617
+ }
1618
+ /**
1619
+ * A placed Composed Block's props held against its live definition: every
1620
+ * setting present, nothing undeclared, each value in its setting's shape.
1621
+ */
1622
+ export declare function composedBlockPropsIssues(settings: readonly BlockSetting[], props: unknown): SettingValueIssue[];
1623
+ /**
1624
+ * The props of a placed Composed Block as a JSON Schema, generated from the
1625
+ * same zod rules the validator applies, for an editor completing a mock or
1626
+ * a props file by hand.
1627
+ */
1628
+ export declare function describeComposedBlockProps(settings: readonly BlockSetting[]): Record<string, unknown>;
1629
+ /** The props a fresh drop starts with: each setting's default, or the plainest value it accepts. */
1630
+ export declare function defaultComposedBlockProps(settings: readonly BlockSetting[]): Record<string, unknown>;
1631
+ /** What one fresh row of a repeatable setting holds, so the panel can add one. */
1632
+ export declare function defaultRowValue(setting: RowsSetting): Record<string, unknown>;
1633
+ /**
1634
+ * Every asset a placed Composed Block's props name, rows included, each with
1635
+ * the prop path that names it — so a refusal can point the merchant at the
1636
+ * field they still have to fill.
1637
+ */
1638
+ export declare function composedPropAssetReferences(settings: readonly BlockSetting[], props: unknown): readonly AssetReference[];
1639
+ //# sourceMappingURL=block-definition.d.ts.map