@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,2721 @@
1
+ import { z } from 'zod';
2
+ /** One Block Definition at the version a Release froze, keyed by the type it defines. */
3
+ export declare const frozenBlockDefinitionSchema: z.ZodObject<{
4
+ version: z.ZodInt;
5
+ definition: z.ZodDiscriminatedUnion<[z.ZodObject<{
6
+ label: z.ZodString;
7
+ settings: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
8
+ type: z.ZodLiteral<"text">;
9
+ maxLength: z.ZodOptional<z.ZodInt>;
10
+ default: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
11
+ key: z.ZodString;
12
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
13
+ }, z.core.$strict>, z.ZodObject<{
14
+ type: z.ZodLiteral<"toggle">;
15
+ default: z.ZodOptional<z.ZodBoolean>;
16
+ key: z.ZodString;
17
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
18
+ }, z.core.$strict>, z.ZodObject<{
19
+ type: z.ZodLiteral<"select">;
20
+ options: z.ZodArray<z.ZodObject<{
21
+ value: z.ZodString;
22
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
23
+ }, z.core.$strict>>;
24
+ default: z.ZodOptional<z.ZodString>;
25
+ key: z.ZodString;
26
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
27
+ }, z.core.$strict>, z.ZodObject<{
28
+ type: z.ZodLiteral<"number">;
29
+ min: z.ZodOptional<z.ZodNumber>;
30
+ max: z.ZodOptional<z.ZodNumber>;
31
+ step: z.ZodOptional<z.ZodNumber>;
32
+ unit: z.ZodOptional<z.ZodString>;
33
+ default: z.ZodOptional<z.ZodNumber>;
34
+ key: z.ZodString;
35
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
36
+ }, z.core.$strict>, z.ZodObject<{
37
+ type: z.ZodLiteral<"color">;
38
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
39
+ token: z.ZodString;
40
+ }, z.core.$strict>]>>;
41
+ key: z.ZodString;
42
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
43
+ }, z.core.$strict>, z.ZodObject<{
44
+ type: z.ZodLiteral<"image">;
45
+ default: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
46
+ key: z.ZodString;
47
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
48
+ }, z.core.$strict>, z.ZodObject<{
49
+ type: z.ZodLiteral<"action">;
50
+ default: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
51
+ type: z.ZodLiteral<"open_screen">;
52
+ screenId: z.ZodUUID;
53
+ }, z.core.$strip>, z.ZodObject<{
54
+ type: z.ZodLiteral<"open_cart">;
55
+ }, z.core.$strip>, z.ZodObject<{
56
+ type: z.ZodLiteral<"open_url">;
57
+ url: z.ZodURL;
58
+ }, z.core.$strip>, z.ZodObject<{
59
+ type: z.ZodLiteral<"none">;
60
+ }, z.core.$strip>], "type">>;
61
+ key: z.ZodString;
62
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
63
+ }, z.core.$strict>, z.ZodObject<{
64
+ type: z.ZodLiteral<"rows">;
65
+ max: z.ZodInt;
66
+ fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
67
+ type: z.ZodLiteral<"text">;
68
+ maxLength: z.ZodOptional<z.ZodInt>;
69
+ default: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
70
+ key: z.ZodString;
71
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
72
+ }, z.core.$strict>, z.ZodObject<{
73
+ type: z.ZodLiteral<"toggle">;
74
+ default: z.ZodOptional<z.ZodBoolean>;
75
+ key: z.ZodString;
76
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
77
+ }, z.core.$strict>, z.ZodObject<{
78
+ type: z.ZodLiteral<"select">;
79
+ options: z.ZodArray<z.ZodObject<{
80
+ value: z.ZodString;
81
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
82
+ }, z.core.$strict>>;
83
+ default: z.ZodOptional<z.ZodString>;
84
+ key: z.ZodString;
85
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
86
+ }, z.core.$strict>, z.ZodObject<{
87
+ type: z.ZodLiteral<"number">;
88
+ min: z.ZodOptional<z.ZodNumber>;
89
+ max: z.ZodOptional<z.ZodNumber>;
90
+ step: z.ZodOptional<z.ZodNumber>;
91
+ unit: z.ZodOptional<z.ZodString>;
92
+ default: z.ZodOptional<z.ZodNumber>;
93
+ key: z.ZodString;
94
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
95
+ }, z.core.$strict>, z.ZodObject<{
96
+ type: z.ZodLiteral<"color">;
97
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
98
+ token: z.ZodString;
99
+ }, z.core.$strict>]>>;
100
+ key: z.ZodString;
101
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
102
+ }, z.core.$strict>, z.ZodObject<{
103
+ type: z.ZodLiteral<"image">;
104
+ default: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
105
+ key: z.ZodString;
106
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
107
+ }, z.core.$strict>, z.ZodObject<{
108
+ type: z.ZodLiteral<"action">;
109
+ default: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
110
+ type: z.ZodLiteral<"open_screen">;
111
+ screenId: z.ZodUUID;
112
+ }, z.core.$strip>, z.ZodObject<{
113
+ type: z.ZodLiteral<"open_cart">;
114
+ }, z.core.$strip>, z.ZodObject<{
115
+ type: z.ZodLiteral<"open_url">;
116
+ url: z.ZodURL;
117
+ }, z.core.$strip>, z.ZodObject<{
118
+ type: z.ZodLiteral<"none">;
119
+ }, z.core.$strip>], "type">>;
120
+ key: z.ZodString;
121
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
122
+ }, z.core.$strict>], "type">>;
123
+ key: z.ZodString;
124
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
125
+ }, z.core.$strict>, z.ZodObject<{
126
+ type: z.ZodLiteral<"section">;
127
+ key: z.ZodString;
128
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
129
+ }, z.core.$strict>], "type">>;
130
+ binding: z.ZodDiscriminatedUnion<[z.ZodObject<{
131
+ kind: z.ZodLiteral<"none">;
132
+ }, z.core.$strict>, z.ZodObject<{
133
+ kind: z.ZodLiteral<"product">;
134
+ targetForms: z.ZodArray<z.ZodEnum<{
135
+ literal: "literal";
136
+ subject: "subject";
137
+ }>>;
138
+ }, z.core.$strict>, z.ZodObject<{
139
+ kind: z.ZodLiteral<"products">;
140
+ targetForms: z.ZodArray<z.ZodEnum<{
141
+ literal: "literal";
142
+ subject: "subject";
143
+ }>>;
144
+ }, z.core.$strict>, z.ZodObject<{
145
+ kind: z.ZodLiteral<"collection">;
146
+ targetForms: z.ZodArray<z.ZodEnum<{
147
+ literal: "literal";
148
+ subject: "subject";
149
+ }>>;
150
+ }, z.core.$strict>, z.ZodObject<{
151
+ kind: z.ZodLiteral<"collections">;
152
+ targetForms: z.ZodArray<z.ZodEnum<{
153
+ literal: "literal";
154
+ }>>;
155
+ }, z.core.$strict>], "kind">;
156
+ placement: z.ZodObject<{
157
+ allowedScreenKinds: z.ZodNullable<z.ZodArray<z.ZodEnum<{
158
+ custom: "custom";
159
+ product: "product";
160
+ collection: "collection";
161
+ search: "search";
162
+ home: "home";
163
+ cart: "cart";
164
+ account: "account";
165
+ }>>>;
166
+ maxPerScreen: z.ZodNullable<z.ZodInt>;
167
+ }, z.core.$strict>;
168
+ kind: z.ZodLiteral<"composed">;
169
+ body: z.ZodType<import("./primitives.js").EnvelopePrimitiveNode, unknown, z.core.$ZodTypeInternals<import("./primitives.js").EnvelopePrimitiveNode, unknown>>;
170
+ }, z.core.$strict>, z.ZodObject<{
171
+ capabilities: z.ZodArray<z.ZodEnum<{
172
+ addToCart: "addToCart";
173
+ openCart: "openCart";
174
+ beginCheckout: "beginCheckout";
175
+ }>>;
176
+ rendererVersion: z.ZodInt;
177
+ heightHint: z.ZodOptional<z.ZodInt>;
178
+ label: z.ZodString;
179
+ settings: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
180
+ type: z.ZodLiteral<"text">;
181
+ maxLength: z.ZodOptional<z.ZodInt>;
182
+ default: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
183
+ key: z.ZodString;
184
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
185
+ }, z.core.$strict>, z.ZodObject<{
186
+ type: z.ZodLiteral<"toggle">;
187
+ default: z.ZodOptional<z.ZodBoolean>;
188
+ key: z.ZodString;
189
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
190
+ }, z.core.$strict>, z.ZodObject<{
191
+ type: z.ZodLiteral<"select">;
192
+ options: z.ZodArray<z.ZodObject<{
193
+ value: z.ZodString;
194
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
195
+ }, z.core.$strict>>;
196
+ default: z.ZodOptional<z.ZodString>;
197
+ key: z.ZodString;
198
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
199
+ }, z.core.$strict>, z.ZodObject<{
200
+ type: z.ZodLiteral<"number">;
201
+ min: z.ZodOptional<z.ZodNumber>;
202
+ max: z.ZodOptional<z.ZodNumber>;
203
+ step: z.ZodOptional<z.ZodNumber>;
204
+ unit: z.ZodOptional<z.ZodString>;
205
+ default: z.ZodOptional<z.ZodNumber>;
206
+ key: z.ZodString;
207
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
208
+ }, z.core.$strict>, z.ZodObject<{
209
+ type: z.ZodLiteral<"color">;
210
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
211
+ token: z.ZodString;
212
+ }, z.core.$strict>]>>;
213
+ key: z.ZodString;
214
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
215
+ }, z.core.$strict>, z.ZodObject<{
216
+ type: z.ZodLiteral<"image">;
217
+ default: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
218
+ key: z.ZodString;
219
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
220
+ }, z.core.$strict>, z.ZodObject<{
221
+ type: z.ZodLiteral<"action">;
222
+ default: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
223
+ type: z.ZodLiteral<"open_screen">;
224
+ screenId: z.ZodUUID;
225
+ }, z.core.$strip>, z.ZodObject<{
226
+ type: z.ZodLiteral<"open_cart">;
227
+ }, z.core.$strip>, z.ZodObject<{
228
+ type: z.ZodLiteral<"open_url">;
229
+ url: z.ZodURL;
230
+ }, z.core.$strip>, z.ZodObject<{
231
+ type: z.ZodLiteral<"none">;
232
+ }, z.core.$strip>], "type">>;
233
+ key: z.ZodString;
234
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
235
+ }, z.core.$strict>, z.ZodObject<{
236
+ type: z.ZodLiteral<"rows">;
237
+ max: z.ZodInt;
238
+ fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
239
+ type: z.ZodLiteral<"text">;
240
+ maxLength: z.ZodOptional<z.ZodInt>;
241
+ default: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
242
+ key: z.ZodString;
243
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
244
+ }, z.core.$strict>, z.ZodObject<{
245
+ type: z.ZodLiteral<"toggle">;
246
+ default: z.ZodOptional<z.ZodBoolean>;
247
+ key: z.ZodString;
248
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
249
+ }, z.core.$strict>, z.ZodObject<{
250
+ type: z.ZodLiteral<"select">;
251
+ options: z.ZodArray<z.ZodObject<{
252
+ value: z.ZodString;
253
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
254
+ }, z.core.$strict>>;
255
+ default: z.ZodOptional<z.ZodString>;
256
+ key: z.ZodString;
257
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
258
+ }, z.core.$strict>, z.ZodObject<{
259
+ type: z.ZodLiteral<"number">;
260
+ min: z.ZodOptional<z.ZodNumber>;
261
+ max: z.ZodOptional<z.ZodNumber>;
262
+ step: z.ZodOptional<z.ZodNumber>;
263
+ unit: z.ZodOptional<z.ZodString>;
264
+ default: z.ZodOptional<z.ZodNumber>;
265
+ key: z.ZodString;
266
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
267
+ }, z.core.$strict>, z.ZodObject<{
268
+ type: z.ZodLiteral<"color">;
269
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
270
+ token: z.ZodString;
271
+ }, z.core.$strict>]>>;
272
+ key: z.ZodString;
273
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
274
+ }, z.core.$strict>, z.ZodObject<{
275
+ type: z.ZodLiteral<"image">;
276
+ default: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
277
+ key: z.ZodString;
278
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
279
+ }, z.core.$strict>, z.ZodObject<{
280
+ type: z.ZodLiteral<"action">;
281
+ default: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
282
+ type: z.ZodLiteral<"open_screen">;
283
+ screenId: z.ZodUUID;
284
+ }, z.core.$strip>, z.ZodObject<{
285
+ type: z.ZodLiteral<"open_cart">;
286
+ }, z.core.$strip>, z.ZodObject<{
287
+ type: z.ZodLiteral<"open_url">;
288
+ url: z.ZodURL;
289
+ }, z.core.$strip>, z.ZodObject<{
290
+ type: z.ZodLiteral<"none">;
291
+ }, z.core.$strip>], "type">>;
292
+ key: z.ZodString;
293
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
294
+ }, z.core.$strict>], "type">>;
295
+ key: z.ZodString;
296
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
297
+ }, z.core.$strict>, z.ZodObject<{
298
+ type: z.ZodLiteral<"section">;
299
+ key: z.ZodString;
300
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
301
+ }, z.core.$strict>], "type">>;
302
+ binding: z.ZodDiscriminatedUnion<[z.ZodObject<{
303
+ kind: z.ZodLiteral<"none">;
304
+ }, z.core.$strict>, z.ZodObject<{
305
+ kind: z.ZodLiteral<"product">;
306
+ targetForms: z.ZodArray<z.ZodEnum<{
307
+ literal: "literal";
308
+ subject: "subject";
309
+ }>>;
310
+ }, z.core.$strict>, z.ZodObject<{
311
+ kind: z.ZodLiteral<"products">;
312
+ targetForms: z.ZodArray<z.ZodEnum<{
313
+ literal: "literal";
314
+ subject: "subject";
315
+ }>>;
316
+ }, z.core.$strict>, z.ZodObject<{
317
+ kind: z.ZodLiteral<"collection">;
318
+ targetForms: z.ZodArray<z.ZodEnum<{
319
+ literal: "literal";
320
+ subject: "subject";
321
+ }>>;
322
+ }, z.core.$strict>, z.ZodObject<{
323
+ kind: z.ZodLiteral<"collections">;
324
+ targetForms: z.ZodArray<z.ZodEnum<{
325
+ literal: "literal";
326
+ }>>;
327
+ }, z.core.$strict>], "kind">;
328
+ placement: z.ZodObject<{
329
+ allowedScreenKinds: z.ZodNullable<z.ZodArray<z.ZodEnum<{
330
+ custom: "custom";
331
+ product: "product";
332
+ collection: "collection";
333
+ search: "search";
334
+ home: "home";
335
+ cart: "cart";
336
+ account: "account";
337
+ }>>>;
338
+ maxPerScreen: z.ZodNullable<z.ZodInt>;
339
+ }, z.core.$strict>;
340
+ kind: z.ZodLiteral<"code">;
341
+ }, z.core.$strict>], "kind">;
342
+ }, z.core.$strict>;
343
+ /**
344
+ * The Composed Block definitions a screen's blocks name, frozen with the
345
+ * Release. A phone reads a definition from here and never fetches one on its
346
+ * own. Absent means the screen names no Composed Block, so a document written
347
+ * before the map existed still parses.
348
+ */
349
+ export declare const envelopeBlockDefinitionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
350
+ version: z.ZodInt;
351
+ definition: z.ZodDiscriminatedUnion<[z.ZodObject<{
352
+ label: z.ZodString;
353
+ settings: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
354
+ type: z.ZodLiteral<"text">;
355
+ maxLength: z.ZodOptional<z.ZodInt>;
356
+ default: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
357
+ key: z.ZodString;
358
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
359
+ }, z.core.$strict>, z.ZodObject<{
360
+ type: z.ZodLiteral<"toggle">;
361
+ default: z.ZodOptional<z.ZodBoolean>;
362
+ key: z.ZodString;
363
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
364
+ }, z.core.$strict>, z.ZodObject<{
365
+ type: z.ZodLiteral<"select">;
366
+ options: z.ZodArray<z.ZodObject<{
367
+ value: z.ZodString;
368
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
369
+ }, z.core.$strict>>;
370
+ default: z.ZodOptional<z.ZodString>;
371
+ key: z.ZodString;
372
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
373
+ }, z.core.$strict>, z.ZodObject<{
374
+ type: z.ZodLiteral<"number">;
375
+ min: z.ZodOptional<z.ZodNumber>;
376
+ max: z.ZodOptional<z.ZodNumber>;
377
+ step: z.ZodOptional<z.ZodNumber>;
378
+ unit: z.ZodOptional<z.ZodString>;
379
+ default: z.ZodOptional<z.ZodNumber>;
380
+ key: z.ZodString;
381
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
382
+ }, z.core.$strict>, z.ZodObject<{
383
+ type: z.ZodLiteral<"color">;
384
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
385
+ token: z.ZodString;
386
+ }, z.core.$strict>]>>;
387
+ key: z.ZodString;
388
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
389
+ }, z.core.$strict>, z.ZodObject<{
390
+ type: z.ZodLiteral<"image">;
391
+ default: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
392
+ key: z.ZodString;
393
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
394
+ }, z.core.$strict>, z.ZodObject<{
395
+ type: z.ZodLiteral<"action">;
396
+ default: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
397
+ type: z.ZodLiteral<"open_screen">;
398
+ screenId: z.ZodUUID;
399
+ }, z.core.$strip>, z.ZodObject<{
400
+ type: z.ZodLiteral<"open_cart">;
401
+ }, z.core.$strip>, z.ZodObject<{
402
+ type: z.ZodLiteral<"open_url">;
403
+ url: z.ZodURL;
404
+ }, z.core.$strip>, z.ZodObject<{
405
+ type: z.ZodLiteral<"none">;
406
+ }, z.core.$strip>], "type">>;
407
+ key: z.ZodString;
408
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
409
+ }, z.core.$strict>, z.ZodObject<{
410
+ type: z.ZodLiteral<"rows">;
411
+ max: z.ZodInt;
412
+ fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
413
+ type: z.ZodLiteral<"text">;
414
+ maxLength: z.ZodOptional<z.ZodInt>;
415
+ default: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
416
+ key: z.ZodString;
417
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
418
+ }, z.core.$strict>, z.ZodObject<{
419
+ type: z.ZodLiteral<"toggle">;
420
+ default: z.ZodOptional<z.ZodBoolean>;
421
+ key: z.ZodString;
422
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
423
+ }, z.core.$strict>, z.ZodObject<{
424
+ type: z.ZodLiteral<"select">;
425
+ options: z.ZodArray<z.ZodObject<{
426
+ value: z.ZodString;
427
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
428
+ }, z.core.$strict>>;
429
+ default: z.ZodOptional<z.ZodString>;
430
+ key: z.ZodString;
431
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
432
+ }, z.core.$strict>, z.ZodObject<{
433
+ type: z.ZodLiteral<"number">;
434
+ min: z.ZodOptional<z.ZodNumber>;
435
+ max: z.ZodOptional<z.ZodNumber>;
436
+ step: z.ZodOptional<z.ZodNumber>;
437
+ unit: z.ZodOptional<z.ZodString>;
438
+ default: z.ZodOptional<z.ZodNumber>;
439
+ key: z.ZodString;
440
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
441
+ }, z.core.$strict>, z.ZodObject<{
442
+ type: z.ZodLiteral<"color">;
443
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
444
+ token: z.ZodString;
445
+ }, z.core.$strict>]>>;
446
+ key: z.ZodString;
447
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
448
+ }, z.core.$strict>, z.ZodObject<{
449
+ type: z.ZodLiteral<"image">;
450
+ default: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
451
+ key: z.ZodString;
452
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
453
+ }, z.core.$strict>, z.ZodObject<{
454
+ type: z.ZodLiteral<"action">;
455
+ default: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
456
+ type: z.ZodLiteral<"open_screen">;
457
+ screenId: z.ZodUUID;
458
+ }, z.core.$strip>, z.ZodObject<{
459
+ type: z.ZodLiteral<"open_cart">;
460
+ }, z.core.$strip>, z.ZodObject<{
461
+ type: z.ZodLiteral<"open_url">;
462
+ url: z.ZodURL;
463
+ }, z.core.$strip>, z.ZodObject<{
464
+ type: z.ZodLiteral<"none">;
465
+ }, z.core.$strip>], "type">>;
466
+ key: z.ZodString;
467
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
468
+ }, z.core.$strict>], "type">>;
469
+ key: z.ZodString;
470
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
471
+ }, z.core.$strict>, z.ZodObject<{
472
+ type: z.ZodLiteral<"section">;
473
+ key: z.ZodString;
474
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
475
+ }, z.core.$strict>], "type">>;
476
+ binding: z.ZodDiscriminatedUnion<[z.ZodObject<{
477
+ kind: z.ZodLiteral<"none">;
478
+ }, z.core.$strict>, z.ZodObject<{
479
+ kind: z.ZodLiteral<"product">;
480
+ targetForms: z.ZodArray<z.ZodEnum<{
481
+ literal: "literal";
482
+ subject: "subject";
483
+ }>>;
484
+ }, z.core.$strict>, z.ZodObject<{
485
+ kind: z.ZodLiteral<"products">;
486
+ targetForms: z.ZodArray<z.ZodEnum<{
487
+ literal: "literal";
488
+ subject: "subject";
489
+ }>>;
490
+ }, z.core.$strict>, z.ZodObject<{
491
+ kind: z.ZodLiteral<"collection">;
492
+ targetForms: z.ZodArray<z.ZodEnum<{
493
+ literal: "literal";
494
+ subject: "subject";
495
+ }>>;
496
+ }, z.core.$strict>, z.ZodObject<{
497
+ kind: z.ZodLiteral<"collections">;
498
+ targetForms: z.ZodArray<z.ZodEnum<{
499
+ literal: "literal";
500
+ }>>;
501
+ }, z.core.$strict>], "kind">;
502
+ placement: z.ZodObject<{
503
+ allowedScreenKinds: z.ZodNullable<z.ZodArray<z.ZodEnum<{
504
+ custom: "custom";
505
+ product: "product";
506
+ collection: "collection";
507
+ search: "search";
508
+ home: "home";
509
+ cart: "cart";
510
+ account: "account";
511
+ }>>>;
512
+ maxPerScreen: z.ZodNullable<z.ZodInt>;
513
+ }, z.core.$strict>;
514
+ kind: z.ZodLiteral<"composed">;
515
+ body: z.ZodType<import("./primitives.js").EnvelopePrimitiveNode, unknown, z.core.$ZodTypeInternals<import("./primitives.js").EnvelopePrimitiveNode, unknown>>;
516
+ }, z.core.$strict>, z.ZodObject<{
517
+ capabilities: z.ZodArray<z.ZodEnum<{
518
+ addToCart: "addToCart";
519
+ openCart: "openCart";
520
+ beginCheckout: "beginCheckout";
521
+ }>>;
522
+ rendererVersion: z.ZodInt;
523
+ heightHint: z.ZodOptional<z.ZodInt>;
524
+ label: z.ZodString;
525
+ settings: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
526
+ type: z.ZodLiteral<"text">;
527
+ maxLength: z.ZodOptional<z.ZodInt>;
528
+ default: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
529
+ key: z.ZodString;
530
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
531
+ }, z.core.$strict>, z.ZodObject<{
532
+ type: z.ZodLiteral<"toggle">;
533
+ default: z.ZodOptional<z.ZodBoolean>;
534
+ key: z.ZodString;
535
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
536
+ }, z.core.$strict>, z.ZodObject<{
537
+ type: z.ZodLiteral<"select">;
538
+ options: z.ZodArray<z.ZodObject<{
539
+ value: z.ZodString;
540
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
541
+ }, z.core.$strict>>;
542
+ default: z.ZodOptional<z.ZodString>;
543
+ key: z.ZodString;
544
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
545
+ }, z.core.$strict>, z.ZodObject<{
546
+ type: z.ZodLiteral<"number">;
547
+ min: z.ZodOptional<z.ZodNumber>;
548
+ max: z.ZodOptional<z.ZodNumber>;
549
+ step: z.ZodOptional<z.ZodNumber>;
550
+ unit: z.ZodOptional<z.ZodString>;
551
+ default: z.ZodOptional<z.ZodNumber>;
552
+ key: z.ZodString;
553
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
554
+ }, z.core.$strict>, z.ZodObject<{
555
+ type: z.ZodLiteral<"color">;
556
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
557
+ token: z.ZodString;
558
+ }, z.core.$strict>]>>;
559
+ key: z.ZodString;
560
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
561
+ }, z.core.$strict>, z.ZodObject<{
562
+ type: z.ZodLiteral<"image">;
563
+ default: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
564
+ key: z.ZodString;
565
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
566
+ }, z.core.$strict>, z.ZodObject<{
567
+ type: z.ZodLiteral<"action">;
568
+ default: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
569
+ type: z.ZodLiteral<"open_screen">;
570
+ screenId: z.ZodUUID;
571
+ }, z.core.$strip>, z.ZodObject<{
572
+ type: z.ZodLiteral<"open_cart">;
573
+ }, z.core.$strip>, z.ZodObject<{
574
+ type: z.ZodLiteral<"open_url">;
575
+ url: z.ZodURL;
576
+ }, z.core.$strip>, z.ZodObject<{
577
+ type: z.ZodLiteral<"none">;
578
+ }, z.core.$strip>], "type">>;
579
+ key: z.ZodString;
580
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
581
+ }, z.core.$strict>, z.ZodObject<{
582
+ type: z.ZodLiteral<"rows">;
583
+ max: z.ZodInt;
584
+ fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
585
+ type: z.ZodLiteral<"text">;
586
+ maxLength: z.ZodOptional<z.ZodInt>;
587
+ default: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
588
+ key: z.ZodString;
589
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
590
+ }, z.core.$strict>, z.ZodObject<{
591
+ type: z.ZodLiteral<"toggle">;
592
+ default: z.ZodOptional<z.ZodBoolean>;
593
+ key: z.ZodString;
594
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
595
+ }, z.core.$strict>, z.ZodObject<{
596
+ type: z.ZodLiteral<"select">;
597
+ options: z.ZodArray<z.ZodObject<{
598
+ value: z.ZodString;
599
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
600
+ }, z.core.$strict>>;
601
+ default: z.ZodOptional<z.ZodString>;
602
+ key: z.ZodString;
603
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
604
+ }, z.core.$strict>, z.ZodObject<{
605
+ type: z.ZodLiteral<"number">;
606
+ min: z.ZodOptional<z.ZodNumber>;
607
+ max: z.ZodOptional<z.ZodNumber>;
608
+ step: z.ZodOptional<z.ZodNumber>;
609
+ unit: z.ZodOptional<z.ZodString>;
610
+ default: z.ZodOptional<z.ZodNumber>;
611
+ key: z.ZodString;
612
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
613
+ }, z.core.$strict>, z.ZodObject<{
614
+ type: z.ZodLiteral<"color">;
615
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
616
+ token: z.ZodString;
617
+ }, z.core.$strict>]>>;
618
+ key: z.ZodString;
619
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
620
+ }, z.core.$strict>, z.ZodObject<{
621
+ type: z.ZodLiteral<"image">;
622
+ default: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
623
+ key: z.ZodString;
624
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
625
+ }, z.core.$strict>, z.ZodObject<{
626
+ type: z.ZodLiteral<"action">;
627
+ default: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
628
+ type: z.ZodLiteral<"open_screen">;
629
+ screenId: z.ZodUUID;
630
+ }, z.core.$strip>, z.ZodObject<{
631
+ type: z.ZodLiteral<"open_cart">;
632
+ }, z.core.$strip>, z.ZodObject<{
633
+ type: z.ZodLiteral<"open_url">;
634
+ url: z.ZodURL;
635
+ }, z.core.$strip>, z.ZodObject<{
636
+ type: z.ZodLiteral<"none">;
637
+ }, z.core.$strip>], "type">>;
638
+ key: z.ZodString;
639
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
640
+ }, z.core.$strict>], "type">>;
641
+ key: z.ZodString;
642
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
643
+ }, z.core.$strict>, z.ZodObject<{
644
+ type: z.ZodLiteral<"section">;
645
+ key: z.ZodString;
646
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
647
+ }, z.core.$strict>], "type">>;
648
+ binding: z.ZodDiscriminatedUnion<[z.ZodObject<{
649
+ kind: z.ZodLiteral<"none">;
650
+ }, z.core.$strict>, z.ZodObject<{
651
+ kind: z.ZodLiteral<"product">;
652
+ targetForms: z.ZodArray<z.ZodEnum<{
653
+ literal: "literal";
654
+ subject: "subject";
655
+ }>>;
656
+ }, z.core.$strict>, z.ZodObject<{
657
+ kind: z.ZodLiteral<"products">;
658
+ targetForms: z.ZodArray<z.ZodEnum<{
659
+ literal: "literal";
660
+ subject: "subject";
661
+ }>>;
662
+ }, z.core.$strict>, z.ZodObject<{
663
+ kind: z.ZodLiteral<"collection">;
664
+ targetForms: z.ZodArray<z.ZodEnum<{
665
+ literal: "literal";
666
+ subject: "subject";
667
+ }>>;
668
+ }, z.core.$strict>, z.ZodObject<{
669
+ kind: z.ZodLiteral<"collections">;
670
+ targetForms: z.ZodArray<z.ZodEnum<{
671
+ literal: "literal";
672
+ }>>;
673
+ }, z.core.$strict>], "kind">;
674
+ placement: z.ZodObject<{
675
+ allowedScreenKinds: z.ZodNullable<z.ZodArray<z.ZodEnum<{
676
+ custom: "custom";
677
+ product: "product";
678
+ collection: "collection";
679
+ search: "search";
680
+ home: "home";
681
+ cart: "cart";
682
+ account: "account";
683
+ }>>>;
684
+ maxPerScreen: z.ZodNullable<z.ZodInt>;
685
+ }, z.core.$strict>;
686
+ kind: z.ZodLiteral<"code">;
687
+ }, z.core.$strict>], "kind">;
688
+ }, z.core.$strict>>;
689
+ /**
690
+ * Everything a Shell carries except the address it came from. The buyer's
691
+ * Shell names a release; the previewer's names a draft or a pinned release
692
+ * instead, and the runtime renders either from this one shape.
693
+ */
694
+ declare const shellBodySchema: z.ZodObject<{
695
+ schemaVersion: z.ZodLiteral<1>;
696
+ navigation: z.ZodObject<{
697
+ tabs: z.ZodArray<z.ZodObject<{
698
+ screenId: z.ZodUUID;
699
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
700
+ icon: z.ZodString;
701
+ }, z.core.$strip>>;
702
+ }, z.core.$strip>;
703
+ tokens: z.ZodObject<{
704
+ palette: z.ZodType<import("./tokens.js").TokenGroup, unknown, z.core.$ZodTypeInternals<import("./tokens.js").TokenGroup, unknown>>;
705
+ semantic: z.ZodType<import("./tokens.js").TokenGroup, unknown, z.core.$ZodTypeInternals<import("./tokens.js").TokenGroup, unknown>>;
706
+ component: z.ZodType<import("./tokens.js").TokenGroup, unknown, z.core.$ZodTypeInternals<import("./tokens.js").TokenGroup, unknown>>;
707
+ }, z.core.$strip>;
708
+ storefront: z.ZodObject<{
709
+ domain: z.ZodString;
710
+ publicToken: z.ZodString;
711
+ }, z.core.$strip>;
712
+ languages: z.ZodObject<{
713
+ default: z.ZodString;
714
+ supported: z.ZodArray<z.ZodString>;
715
+ }, z.core.$strip>;
716
+ home: z.ZodObject<{
717
+ id: z.ZodUUID;
718
+ kind: z.ZodEnum<{
719
+ custom: "custom";
720
+ product: "product";
721
+ collection: "collection";
722
+ search: "search";
723
+ home: "home";
724
+ cart: "cart";
725
+ account: "account";
726
+ }>;
727
+ slug: z.ZodOptional<z.ZodString>;
728
+ title: z.ZodRecord<z.ZodString, z.ZodString>;
729
+ blocks: z.ZodArray<z.ZodType<import("./blocks.js").Block, unknown, z.core.$ZodTypeInternals<import("./blocks.js").Block, unknown>>>;
730
+ }, z.core.$strip>;
731
+ assets: z.ZodDefault<z.ZodRecord<z.ZodUUID, z.ZodObject<{
732
+ kind: z.ZodEnum<{
733
+ image: "image";
734
+ video: "video";
735
+ }>;
736
+ url: z.ZodString;
737
+ width: z.ZodOptional<z.ZodNumber>;
738
+ height: z.ZodOptional<z.ZodNumber>;
739
+ placeholder: z.ZodOptional<z.ZodString>;
740
+ dominantColor: z.ZodOptional<z.ZodString>;
741
+ durationMs: z.ZodOptional<z.ZodNumber>;
742
+ renditions: z.ZodArray<z.ZodObject<{
743
+ url: z.ZodString;
744
+ width: z.ZodNumber;
745
+ height: z.ZodNumber;
746
+ }, z.core.$strip>>;
747
+ }, z.core.$strip>>>;
748
+ screens: z.ZodOptional<z.ZodArray<z.ZodObject<{
749
+ id: z.ZodUUID;
750
+ kind: z.ZodEnum<{
751
+ custom: "custom";
752
+ product: "product";
753
+ collection: "collection";
754
+ search: "search";
755
+ home: "home";
756
+ cart: "cart";
757
+ account: "account";
758
+ }>;
759
+ slug: z.ZodOptional<z.ZodString>;
760
+ }, z.core.$strip>>>;
761
+ disabledBlockTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
762
+ blockDefinitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
763
+ version: z.ZodInt;
764
+ definition: z.ZodDiscriminatedUnion<[z.ZodObject<{
765
+ label: z.ZodString;
766
+ settings: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
767
+ type: z.ZodLiteral<"text">;
768
+ maxLength: z.ZodOptional<z.ZodInt>;
769
+ default: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
770
+ key: z.ZodString;
771
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
772
+ }, z.core.$strict>, z.ZodObject<{
773
+ type: z.ZodLiteral<"toggle">;
774
+ default: z.ZodOptional<z.ZodBoolean>;
775
+ key: z.ZodString;
776
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
777
+ }, z.core.$strict>, z.ZodObject<{
778
+ type: z.ZodLiteral<"select">;
779
+ options: z.ZodArray<z.ZodObject<{
780
+ value: z.ZodString;
781
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
782
+ }, z.core.$strict>>;
783
+ default: z.ZodOptional<z.ZodString>;
784
+ key: z.ZodString;
785
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
786
+ }, z.core.$strict>, z.ZodObject<{
787
+ type: z.ZodLiteral<"number">;
788
+ min: z.ZodOptional<z.ZodNumber>;
789
+ max: z.ZodOptional<z.ZodNumber>;
790
+ step: z.ZodOptional<z.ZodNumber>;
791
+ unit: z.ZodOptional<z.ZodString>;
792
+ default: z.ZodOptional<z.ZodNumber>;
793
+ key: z.ZodString;
794
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
795
+ }, z.core.$strict>, z.ZodObject<{
796
+ type: z.ZodLiteral<"color">;
797
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
798
+ token: z.ZodString;
799
+ }, z.core.$strict>]>>;
800
+ key: z.ZodString;
801
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
802
+ }, z.core.$strict>, z.ZodObject<{
803
+ type: z.ZodLiteral<"image">;
804
+ default: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
805
+ key: z.ZodString;
806
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
807
+ }, z.core.$strict>, z.ZodObject<{
808
+ type: z.ZodLiteral<"action">;
809
+ default: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
810
+ type: z.ZodLiteral<"open_screen">;
811
+ screenId: z.ZodUUID;
812
+ }, z.core.$strip>, z.ZodObject<{
813
+ type: z.ZodLiteral<"open_cart">;
814
+ }, z.core.$strip>, z.ZodObject<{
815
+ type: z.ZodLiteral<"open_url">;
816
+ url: z.ZodURL;
817
+ }, z.core.$strip>, z.ZodObject<{
818
+ type: z.ZodLiteral<"none">;
819
+ }, z.core.$strip>], "type">>;
820
+ key: z.ZodString;
821
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
822
+ }, z.core.$strict>, z.ZodObject<{
823
+ type: z.ZodLiteral<"rows">;
824
+ max: z.ZodInt;
825
+ fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
826
+ type: z.ZodLiteral<"text">;
827
+ maxLength: z.ZodOptional<z.ZodInt>;
828
+ default: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
829
+ key: z.ZodString;
830
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
831
+ }, z.core.$strict>, z.ZodObject<{
832
+ type: z.ZodLiteral<"toggle">;
833
+ default: z.ZodOptional<z.ZodBoolean>;
834
+ key: z.ZodString;
835
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
836
+ }, z.core.$strict>, z.ZodObject<{
837
+ type: z.ZodLiteral<"select">;
838
+ options: z.ZodArray<z.ZodObject<{
839
+ value: z.ZodString;
840
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
841
+ }, z.core.$strict>>;
842
+ default: z.ZodOptional<z.ZodString>;
843
+ key: z.ZodString;
844
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
845
+ }, z.core.$strict>, z.ZodObject<{
846
+ type: z.ZodLiteral<"number">;
847
+ min: z.ZodOptional<z.ZodNumber>;
848
+ max: z.ZodOptional<z.ZodNumber>;
849
+ step: z.ZodOptional<z.ZodNumber>;
850
+ unit: z.ZodOptional<z.ZodString>;
851
+ default: z.ZodOptional<z.ZodNumber>;
852
+ key: z.ZodString;
853
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
854
+ }, z.core.$strict>, z.ZodObject<{
855
+ type: z.ZodLiteral<"color">;
856
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
857
+ token: z.ZodString;
858
+ }, z.core.$strict>]>>;
859
+ key: z.ZodString;
860
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
861
+ }, z.core.$strict>, z.ZodObject<{
862
+ type: z.ZodLiteral<"image">;
863
+ default: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
864
+ key: z.ZodString;
865
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
866
+ }, z.core.$strict>, z.ZodObject<{
867
+ type: z.ZodLiteral<"action">;
868
+ default: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
869
+ type: z.ZodLiteral<"open_screen">;
870
+ screenId: z.ZodUUID;
871
+ }, z.core.$strip>, z.ZodObject<{
872
+ type: z.ZodLiteral<"open_cart">;
873
+ }, z.core.$strip>, z.ZodObject<{
874
+ type: z.ZodLiteral<"open_url">;
875
+ url: z.ZodURL;
876
+ }, z.core.$strip>, z.ZodObject<{
877
+ type: z.ZodLiteral<"none">;
878
+ }, z.core.$strip>], "type">>;
879
+ key: z.ZodString;
880
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
881
+ }, z.core.$strict>], "type">>;
882
+ key: z.ZodString;
883
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
884
+ }, z.core.$strict>, z.ZodObject<{
885
+ type: z.ZodLiteral<"section">;
886
+ key: z.ZodString;
887
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
888
+ }, z.core.$strict>], "type">>;
889
+ binding: z.ZodDiscriminatedUnion<[z.ZodObject<{
890
+ kind: z.ZodLiteral<"none">;
891
+ }, z.core.$strict>, z.ZodObject<{
892
+ kind: z.ZodLiteral<"product">;
893
+ targetForms: z.ZodArray<z.ZodEnum<{
894
+ literal: "literal";
895
+ subject: "subject";
896
+ }>>;
897
+ }, z.core.$strict>, z.ZodObject<{
898
+ kind: z.ZodLiteral<"products">;
899
+ targetForms: z.ZodArray<z.ZodEnum<{
900
+ literal: "literal";
901
+ subject: "subject";
902
+ }>>;
903
+ }, z.core.$strict>, z.ZodObject<{
904
+ kind: z.ZodLiteral<"collection">;
905
+ targetForms: z.ZodArray<z.ZodEnum<{
906
+ literal: "literal";
907
+ subject: "subject";
908
+ }>>;
909
+ }, z.core.$strict>, z.ZodObject<{
910
+ kind: z.ZodLiteral<"collections">;
911
+ targetForms: z.ZodArray<z.ZodEnum<{
912
+ literal: "literal";
913
+ }>>;
914
+ }, z.core.$strict>], "kind">;
915
+ placement: z.ZodObject<{
916
+ allowedScreenKinds: z.ZodNullable<z.ZodArray<z.ZodEnum<{
917
+ custom: "custom";
918
+ product: "product";
919
+ collection: "collection";
920
+ search: "search";
921
+ home: "home";
922
+ cart: "cart";
923
+ account: "account";
924
+ }>>>;
925
+ maxPerScreen: z.ZodNullable<z.ZodInt>;
926
+ }, z.core.$strict>;
927
+ kind: z.ZodLiteral<"composed">;
928
+ body: z.ZodType<import("./primitives.js").EnvelopePrimitiveNode, unknown, z.core.$ZodTypeInternals<import("./primitives.js").EnvelopePrimitiveNode, unknown>>;
929
+ }, z.core.$strict>, z.ZodObject<{
930
+ capabilities: z.ZodArray<z.ZodEnum<{
931
+ addToCart: "addToCart";
932
+ openCart: "openCart";
933
+ beginCheckout: "beginCheckout";
934
+ }>>;
935
+ rendererVersion: z.ZodInt;
936
+ heightHint: z.ZodOptional<z.ZodInt>;
937
+ label: z.ZodString;
938
+ settings: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
939
+ type: z.ZodLiteral<"text">;
940
+ maxLength: z.ZodOptional<z.ZodInt>;
941
+ default: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
942
+ key: z.ZodString;
943
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
944
+ }, z.core.$strict>, z.ZodObject<{
945
+ type: z.ZodLiteral<"toggle">;
946
+ default: z.ZodOptional<z.ZodBoolean>;
947
+ key: z.ZodString;
948
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
949
+ }, z.core.$strict>, z.ZodObject<{
950
+ type: z.ZodLiteral<"select">;
951
+ options: z.ZodArray<z.ZodObject<{
952
+ value: z.ZodString;
953
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
954
+ }, z.core.$strict>>;
955
+ default: z.ZodOptional<z.ZodString>;
956
+ key: z.ZodString;
957
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
958
+ }, z.core.$strict>, z.ZodObject<{
959
+ type: z.ZodLiteral<"number">;
960
+ min: z.ZodOptional<z.ZodNumber>;
961
+ max: z.ZodOptional<z.ZodNumber>;
962
+ step: z.ZodOptional<z.ZodNumber>;
963
+ unit: z.ZodOptional<z.ZodString>;
964
+ default: z.ZodOptional<z.ZodNumber>;
965
+ key: z.ZodString;
966
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
967
+ }, z.core.$strict>, z.ZodObject<{
968
+ type: z.ZodLiteral<"color">;
969
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
970
+ token: z.ZodString;
971
+ }, z.core.$strict>]>>;
972
+ key: z.ZodString;
973
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
974
+ }, z.core.$strict>, z.ZodObject<{
975
+ type: z.ZodLiteral<"image">;
976
+ default: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
977
+ key: z.ZodString;
978
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
979
+ }, z.core.$strict>, z.ZodObject<{
980
+ type: z.ZodLiteral<"action">;
981
+ default: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
982
+ type: z.ZodLiteral<"open_screen">;
983
+ screenId: z.ZodUUID;
984
+ }, z.core.$strip>, z.ZodObject<{
985
+ type: z.ZodLiteral<"open_cart">;
986
+ }, z.core.$strip>, z.ZodObject<{
987
+ type: z.ZodLiteral<"open_url">;
988
+ url: z.ZodURL;
989
+ }, z.core.$strip>, z.ZodObject<{
990
+ type: z.ZodLiteral<"none">;
991
+ }, z.core.$strip>], "type">>;
992
+ key: z.ZodString;
993
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
994
+ }, z.core.$strict>, z.ZodObject<{
995
+ type: z.ZodLiteral<"rows">;
996
+ max: z.ZodInt;
997
+ fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
998
+ type: z.ZodLiteral<"text">;
999
+ maxLength: z.ZodOptional<z.ZodInt>;
1000
+ default: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1001
+ key: z.ZodString;
1002
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1003
+ }, z.core.$strict>, z.ZodObject<{
1004
+ type: z.ZodLiteral<"toggle">;
1005
+ default: z.ZodOptional<z.ZodBoolean>;
1006
+ key: z.ZodString;
1007
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1008
+ }, z.core.$strict>, z.ZodObject<{
1009
+ type: z.ZodLiteral<"select">;
1010
+ options: z.ZodArray<z.ZodObject<{
1011
+ value: z.ZodString;
1012
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1013
+ }, z.core.$strict>>;
1014
+ default: z.ZodOptional<z.ZodString>;
1015
+ key: z.ZodString;
1016
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1017
+ }, z.core.$strict>, z.ZodObject<{
1018
+ type: z.ZodLiteral<"number">;
1019
+ min: z.ZodOptional<z.ZodNumber>;
1020
+ max: z.ZodOptional<z.ZodNumber>;
1021
+ step: z.ZodOptional<z.ZodNumber>;
1022
+ unit: z.ZodOptional<z.ZodString>;
1023
+ default: z.ZodOptional<z.ZodNumber>;
1024
+ key: z.ZodString;
1025
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1026
+ }, z.core.$strict>, z.ZodObject<{
1027
+ type: z.ZodLiteral<"color">;
1028
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1029
+ token: z.ZodString;
1030
+ }, z.core.$strict>]>>;
1031
+ key: z.ZodString;
1032
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1033
+ }, z.core.$strict>, z.ZodObject<{
1034
+ type: z.ZodLiteral<"image">;
1035
+ default: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
1036
+ key: z.ZodString;
1037
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1038
+ }, z.core.$strict>, z.ZodObject<{
1039
+ type: z.ZodLiteral<"action">;
1040
+ default: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1041
+ type: z.ZodLiteral<"open_screen">;
1042
+ screenId: z.ZodUUID;
1043
+ }, z.core.$strip>, z.ZodObject<{
1044
+ type: z.ZodLiteral<"open_cart">;
1045
+ }, z.core.$strip>, z.ZodObject<{
1046
+ type: z.ZodLiteral<"open_url">;
1047
+ url: z.ZodURL;
1048
+ }, z.core.$strip>, z.ZodObject<{
1049
+ type: z.ZodLiteral<"none">;
1050
+ }, z.core.$strip>], "type">>;
1051
+ key: z.ZodString;
1052
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1053
+ }, z.core.$strict>], "type">>;
1054
+ key: z.ZodString;
1055
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1056
+ }, z.core.$strict>, z.ZodObject<{
1057
+ type: z.ZodLiteral<"section">;
1058
+ key: z.ZodString;
1059
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1060
+ }, z.core.$strict>], "type">>;
1061
+ binding: z.ZodDiscriminatedUnion<[z.ZodObject<{
1062
+ kind: z.ZodLiteral<"none">;
1063
+ }, z.core.$strict>, z.ZodObject<{
1064
+ kind: z.ZodLiteral<"product">;
1065
+ targetForms: z.ZodArray<z.ZodEnum<{
1066
+ literal: "literal";
1067
+ subject: "subject";
1068
+ }>>;
1069
+ }, z.core.$strict>, z.ZodObject<{
1070
+ kind: z.ZodLiteral<"products">;
1071
+ targetForms: z.ZodArray<z.ZodEnum<{
1072
+ literal: "literal";
1073
+ subject: "subject";
1074
+ }>>;
1075
+ }, z.core.$strict>, z.ZodObject<{
1076
+ kind: z.ZodLiteral<"collection">;
1077
+ targetForms: z.ZodArray<z.ZodEnum<{
1078
+ literal: "literal";
1079
+ subject: "subject";
1080
+ }>>;
1081
+ }, z.core.$strict>, z.ZodObject<{
1082
+ kind: z.ZodLiteral<"collections">;
1083
+ targetForms: z.ZodArray<z.ZodEnum<{
1084
+ literal: "literal";
1085
+ }>>;
1086
+ }, z.core.$strict>], "kind">;
1087
+ placement: z.ZodObject<{
1088
+ allowedScreenKinds: z.ZodNullable<z.ZodArray<z.ZodEnum<{
1089
+ custom: "custom";
1090
+ product: "product";
1091
+ collection: "collection";
1092
+ search: "search";
1093
+ home: "home";
1094
+ cart: "cart";
1095
+ account: "account";
1096
+ }>>>;
1097
+ maxPerScreen: z.ZodNullable<z.ZodInt>;
1098
+ }, z.core.$strict>;
1099
+ kind: z.ZodLiteral<"code">;
1100
+ }, z.core.$strict>], "kind">;
1101
+ }, z.core.$strict>>>;
1102
+ }, z.core.$strip>;
1103
+ /**
1104
+ * The one mutable document a device fetches. Everything else is addressed
1105
+ * by release and immutable. Envelopes are pure design: full locale objects,
1106
+ * never catalog data — the device resolves Bindings live from Shopify.
1107
+ */
1108
+ export declare const shellEnvelopeSchema: z.ZodObject<{
1109
+ schemaVersion: z.ZodLiteral<1>;
1110
+ navigation: z.ZodObject<{
1111
+ tabs: z.ZodArray<z.ZodObject<{
1112
+ screenId: z.ZodUUID;
1113
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1114
+ icon: z.ZodString;
1115
+ }, z.core.$strip>>;
1116
+ }, z.core.$strip>;
1117
+ tokens: z.ZodObject<{
1118
+ palette: z.ZodType<import("./tokens.js").TokenGroup, unknown, z.core.$ZodTypeInternals<import("./tokens.js").TokenGroup, unknown>>;
1119
+ semantic: z.ZodType<import("./tokens.js").TokenGroup, unknown, z.core.$ZodTypeInternals<import("./tokens.js").TokenGroup, unknown>>;
1120
+ component: z.ZodType<import("./tokens.js").TokenGroup, unknown, z.core.$ZodTypeInternals<import("./tokens.js").TokenGroup, unknown>>;
1121
+ }, z.core.$strip>;
1122
+ storefront: z.ZodObject<{
1123
+ domain: z.ZodString;
1124
+ publicToken: z.ZodString;
1125
+ }, z.core.$strip>;
1126
+ languages: z.ZodObject<{
1127
+ default: z.ZodString;
1128
+ supported: z.ZodArray<z.ZodString>;
1129
+ }, z.core.$strip>;
1130
+ home: z.ZodObject<{
1131
+ id: z.ZodUUID;
1132
+ kind: z.ZodEnum<{
1133
+ custom: "custom";
1134
+ product: "product";
1135
+ collection: "collection";
1136
+ search: "search";
1137
+ home: "home";
1138
+ cart: "cart";
1139
+ account: "account";
1140
+ }>;
1141
+ slug: z.ZodOptional<z.ZodString>;
1142
+ title: z.ZodRecord<z.ZodString, z.ZodString>;
1143
+ blocks: z.ZodArray<z.ZodType<import("./blocks.js").Block, unknown, z.core.$ZodTypeInternals<import("./blocks.js").Block, unknown>>>;
1144
+ }, z.core.$strip>;
1145
+ assets: z.ZodDefault<z.ZodRecord<z.ZodUUID, z.ZodObject<{
1146
+ kind: z.ZodEnum<{
1147
+ image: "image";
1148
+ video: "video";
1149
+ }>;
1150
+ url: z.ZodString;
1151
+ width: z.ZodOptional<z.ZodNumber>;
1152
+ height: z.ZodOptional<z.ZodNumber>;
1153
+ placeholder: z.ZodOptional<z.ZodString>;
1154
+ dominantColor: z.ZodOptional<z.ZodString>;
1155
+ durationMs: z.ZodOptional<z.ZodNumber>;
1156
+ renditions: z.ZodArray<z.ZodObject<{
1157
+ url: z.ZodString;
1158
+ width: z.ZodNumber;
1159
+ height: z.ZodNumber;
1160
+ }, z.core.$strip>>;
1161
+ }, z.core.$strip>>>;
1162
+ screens: z.ZodOptional<z.ZodArray<z.ZodObject<{
1163
+ id: z.ZodUUID;
1164
+ kind: z.ZodEnum<{
1165
+ custom: "custom";
1166
+ product: "product";
1167
+ collection: "collection";
1168
+ search: "search";
1169
+ home: "home";
1170
+ cart: "cart";
1171
+ account: "account";
1172
+ }>;
1173
+ slug: z.ZodOptional<z.ZodString>;
1174
+ }, z.core.$strip>>>;
1175
+ disabledBlockTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1176
+ blockDefinitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1177
+ version: z.ZodInt;
1178
+ definition: z.ZodDiscriminatedUnion<[z.ZodObject<{
1179
+ label: z.ZodString;
1180
+ settings: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1181
+ type: z.ZodLiteral<"text">;
1182
+ maxLength: z.ZodOptional<z.ZodInt>;
1183
+ default: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1184
+ key: z.ZodString;
1185
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1186
+ }, z.core.$strict>, z.ZodObject<{
1187
+ type: z.ZodLiteral<"toggle">;
1188
+ default: z.ZodOptional<z.ZodBoolean>;
1189
+ key: z.ZodString;
1190
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1191
+ }, z.core.$strict>, z.ZodObject<{
1192
+ type: z.ZodLiteral<"select">;
1193
+ options: z.ZodArray<z.ZodObject<{
1194
+ value: z.ZodString;
1195
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1196
+ }, z.core.$strict>>;
1197
+ default: z.ZodOptional<z.ZodString>;
1198
+ key: z.ZodString;
1199
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1200
+ }, z.core.$strict>, z.ZodObject<{
1201
+ type: z.ZodLiteral<"number">;
1202
+ min: z.ZodOptional<z.ZodNumber>;
1203
+ max: z.ZodOptional<z.ZodNumber>;
1204
+ step: z.ZodOptional<z.ZodNumber>;
1205
+ unit: z.ZodOptional<z.ZodString>;
1206
+ default: z.ZodOptional<z.ZodNumber>;
1207
+ key: z.ZodString;
1208
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1209
+ }, z.core.$strict>, z.ZodObject<{
1210
+ type: z.ZodLiteral<"color">;
1211
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1212
+ token: z.ZodString;
1213
+ }, z.core.$strict>]>>;
1214
+ key: z.ZodString;
1215
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1216
+ }, z.core.$strict>, z.ZodObject<{
1217
+ type: z.ZodLiteral<"image">;
1218
+ default: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
1219
+ key: z.ZodString;
1220
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1221
+ }, z.core.$strict>, z.ZodObject<{
1222
+ type: z.ZodLiteral<"action">;
1223
+ default: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1224
+ type: z.ZodLiteral<"open_screen">;
1225
+ screenId: z.ZodUUID;
1226
+ }, z.core.$strip>, z.ZodObject<{
1227
+ type: z.ZodLiteral<"open_cart">;
1228
+ }, z.core.$strip>, z.ZodObject<{
1229
+ type: z.ZodLiteral<"open_url">;
1230
+ url: z.ZodURL;
1231
+ }, z.core.$strip>, z.ZodObject<{
1232
+ type: z.ZodLiteral<"none">;
1233
+ }, z.core.$strip>], "type">>;
1234
+ key: z.ZodString;
1235
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1236
+ }, z.core.$strict>, z.ZodObject<{
1237
+ type: z.ZodLiteral<"rows">;
1238
+ max: z.ZodInt;
1239
+ fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1240
+ type: z.ZodLiteral<"text">;
1241
+ maxLength: z.ZodOptional<z.ZodInt>;
1242
+ default: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1243
+ key: z.ZodString;
1244
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1245
+ }, z.core.$strict>, z.ZodObject<{
1246
+ type: z.ZodLiteral<"toggle">;
1247
+ default: z.ZodOptional<z.ZodBoolean>;
1248
+ key: z.ZodString;
1249
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1250
+ }, z.core.$strict>, z.ZodObject<{
1251
+ type: z.ZodLiteral<"select">;
1252
+ options: z.ZodArray<z.ZodObject<{
1253
+ value: z.ZodString;
1254
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1255
+ }, z.core.$strict>>;
1256
+ default: z.ZodOptional<z.ZodString>;
1257
+ key: z.ZodString;
1258
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1259
+ }, z.core.$strict>, z.ZodObject<{
1260
+ type: z.ZodLiteral<"number">;
1261
+ min: z.ZodOptional<z.ZodNumber>;
1262
+ max: z.ZodOptional<z.ZodNumber>;
1263
+ step: z.ZodOptional<z.ZodNumber>;
1264
+ unit: z.ZodOptional<z.ZodString>;
1265
+ default: z.ZodOptional<z.ZodNumber>;
1266
+ key: z.ZodString;
1267
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1268
+ }, z.core.$strict>, z.ZodObject<{
1269
+ type: z.ZodLiteral<"color">;
1270
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1271
+ token: z.ZodString;
1272
+ }, z.core.$strict>]>>;
1273
+ key: z.ZodString;
1274
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1275
+ }, z.core.$strict>, z.ZodObject<{
1276
+ type: z.ZodLiteral<"image">;
1277
+ default: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
1278
+ key: z.ZodString;
1279
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1280
+ }, z.core.$strict>, z.ZodObject<{
1281
+ type: z.ZodLiteral<"action">;
1282
+ default: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1283
+ type: z.ZodLiteral<"open_screen">;
1284
+ screenId: z.ZodUUID;
1285
+ }, z.core.$strip>, z.ZodObject<{
1286
+ type: z.ZodLiteral<"open_cart">;
1287
+ }, z.core.$strip>, z.ZodObject<{
1288
+ type: z.ZodLiteral<"open_url">;
1289
+ url: z.ZodURL;
1290
+ }, z.core.$strip>, z.ZodObject<{
1291
+ type: z.ZodLiteral<"none">;
1292
+ }, z.core.$strip>], "type">>;
1293
+ key: z.ZodString;
1294
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1295
+ }, z.core.$strict>], "type">>;
1296
+ key: z.ZodString;
1297
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1298
+ }, z.core.$strict>, z.ZodObject<{
1299
+ type: z.ZodLiteral<"section">;
1300
+ key: z.ZodString;
1301
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1302
+ }, z.core.$strict>], "type">>;
1303
+ binding: z.ZodDiscriminatedUnion<[z.ZodObject<{
1304
+ kind: z.ZodLiteral<"none">;
1305
+ }, z.core.$strict>, z.ZodObject<{
1306
+ kind: z.ZodLiteral<"product">;
1307
+ targetForms: z.ZodArray<z.ZodEnum<{
1308
+ literal: "literal";
1309
+ subject: "subject";
1310
+ }>>;
1311
+ }, z.core.$strict>, z.ZodObject<{
1312
+ kind: z.ZodLiteral<"products">;
1313
+ targetForms: z.ZodArray<z.ZodEnum<{
1314
+ literal: "literal";
1315
+ subject: "subject";
1316
+ }>>;
1317
+ }, z.core.$strict>, z.ZodObject<{
1318
+ kind: z.ZodLiteral<"collection">;
1319
+ targetForms: z.ZodArray<z.ZodEnum<{
1320
+ literal: "literal";
1321
+ subject: "subject";
1322
+ }>>;
1323
+ }, z.core.$strict>, z.ZodObject<{
1324
+ kind: z.ZodLiteral<"collections">;
1325
+ targetForms: z.ZodArray<z.ZodEnum<{
1326
+ literal: "literal";
1327
+ }>>;
1328
+ }, z.core.$strict>], "kind">;
1329
+ placement: z.ZodObject<{
1330
+ allowedScreenKinds: z.ZodNullable<z.ZodArray<z.ZodEnum<{
1331
+ custom: "custom";
1332
+ product: "product";
1333
+ collection: "collection";
1334
+ search: "search";
1335
+ home: "home";
1336
+ cart: "cart";
1337
+ account: "account";
1338
+ }>>>;
1339
+ maxPerScreen: z.ZodNullable<z.ZodInt>;
1340
+ }, z.core.$strict>;
1341
+ kind: z.ZodLiteral<"composed">;
1342
+ body: z.ZodType<import("./primitives.js").EnvelopePrimitiveNode, unknown, z.core.$ZodTypeInternals<import("./primitives.js").EnvelopePrimitiveNode, unknown>>;
1343
+ }, z.core.$strict>, z.ZodObject<{
1344
+ capabilities: z.ZodArray<z.ZodEnum<{
1345
+ addToCart: "addToCart";
1346
+ openCart: "openCart";
1347
+ beginCheckout: "beginCheckout";
1348
+ }>>;
1349
+ rendererVersion: z.ZodInt;
1350
+ heightHint: z.ZodOptional<z.ZodInt>;
1351
+ label: z.ZodString;
1352
+ settings: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1353
+ type: z.ZodLiteral<"text">;
1354
+ maxLength: z.ZodOptional<z.ZodInt>;
1355
+ default: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1356
+ key: z.ZodString;
1357
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1358
+ }, z.core.$strict>, z.ZodObject<{
1359
+ type: z.ZodLiteral<"toggle">;
1360
+ default: z.ZodOptional<z.ZodBoolean>;
1361
+ key: z.ZodString;
1362
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1363
+ }, z.core.$strict>, z.ZodObject<{
1364
+ type: z.ZodLiteral<"select">;
1365
+ options: z.ZodArray<z.ZodObject<{
1366
+ value: z.ZodString;
1367
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1368
+ }, z.core.$strict>>;
1369
+ default: z.ZodOptional<z.ZodString>;
1370
+ key: z.ZodString;
1371
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1372
+ }, z.core.$strict>, z.ZodObject<{
1373
+ type: z.ZodLiteral<"number">;
1374
+ min: z.ZodOptional<z.ZodNumber>;
1375
+ max: z.ZodOptional<z.ZodNumber>;
1376
+ step: z.ZodOptional<z.ZodNumber>;
1377
+ unit: z.ZodOptional<z.ZodString>;
1378
+ default: z.ZodOptional<z.ZodNumber>;
1379
+ key: z.ZodString;
1380
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1381
+ }, z.core.$strict>, z.ZodObject<{
1382
+ type: z.ZodLiteral<"color">;
1383
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1384
+ token: z.ZodString;
1385
+ }, z.core.$strict>]>>;
1386
+ key: z.ZodString;
1387
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1388
+ }, z.core.$strict>, z.ZodObject<{
1389
+ type: z.ZodLiteral<"image">;
1390
+ default: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
1391
+ key: z.ZodString;
1392
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1393
+ }, z.core.$strict>, z.ZodObject<{
1394
+ type: z.ZodLiteral<"action">;
1395
+ default: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1396
+ type: z.ZodLiteral<"open_screen">;
1397
+ screenId: z.ZodUUID;
1398
+ }, z.core.$strip>, z.ZodObject<{
1399
+ type: z.ZodLiteral<"open_cart">;
1400
+ }, z.core.$strip>, z.ZodObject<{
1401
+ type: z.ZodLiteral<"open_url">;
1402
+ url: z.ZodURL;
1403
+ }, z.core.$strip>, z.ZodObject<{
1404
+ type: z.ZodLiteral<"none">;
1405
+ }, z.core.$strip>], "type">>;
1406
+ key: z.ZodString;
1407
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1408
+ }, z.core.$strict>, z.ZodObject<{
1409
+ type: z.ZodLiteral<"rows">;
1410
+ max: z.ZodInt;
1411
+ fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1412
+ type: z.ZodLiteral<"text">;
1413
+ maxLength: z.ZodOptional<z.ZodInt>;
1414
+ default: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1415
+ key: z.ZodString;
1416
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1417
+ }, z.core.$strict>, z.ZodObject<{
1418
+ type: z.ZodLiteral<"toggle">;
1419
+ default: z.ZodOptional<z.ZodBoolean>;
1420
+ key: z.ZodString;
1421
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1422
+ }, z.core.$strict>, z.ZodObject<{
1423
+ type: z.ZodLiteral<"select">;
1424
+ options: z.ZodArray<z.ZodObject<{
1425
+ value: z.ZodString;
1426
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1427
+ }, z.core.$strict>>;
1428
+ default: z.ZodOptional<z.ZodString>;
1429
+ key: z.ZodString;
1430
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1431
+ }, z.core.$strict>, z.ZodObject<{
1432
+ type: z.ZodLiteral<"number">;
1433
+ min: z.ZodOptional<z.ZodNumber>;
1434
+ max: z.ZodOptional<z.ZodNumber>;
1435
+ step: z.ZodOptional<z.ZodNumber>;
1436
+ unit: z.ZodOptional<z.ZodString>;
1437
+ default: z.ZodOptional<z.ZodNumber>;
1438
+ key: z.ZodString;
1439
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1440
+ }, z.core.$strict>, z.ZodObject<{
1441
+ type: z.ZodLiteral<"color">;
1442
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1443
+ token: z.ZodString;
1444
+ }, z.core.$strict>]>>;
1445
+ key: z.ZodString;
1446
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1447
+ }, z.core.$strict>, z.ZodObject<{
1448
+ type: z.ZodLiteral<"image">;
1449
+ default: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
1450
+ key: z.ZodString;
1451
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1452
+ }, z.core.$strict>, z.ZodObject<{
1453
+ type: z.ZodLiteral<"action">;
1454
+ default: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1455
+ type: z.ZodLiteral<"open_screen">;
1456
+ screenId: z.ZodUUID;
1457
+ }, z.core.$strip>, z.ZodObject<{
1458
+ type: z.ZodLiteral<"open_cart">;
1459
+ }, z.core.$strip>, z.ZodObject<{
1460
+ type: z.ZodLiteral<"open_url">;
1461
+ url: z.ZodURL;
1462
+ }, z.core.$strip>, z.ZodObject<{
1463
+ type: z.ZodLiteral<"none">;
1464
+ }, z.core.$strip>], "type">>;
1465
+ key: z.ZodString;
1466
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1467
+ }, z.core.$strict>], "type">>;
1468
+ key: z.ZodString;
1469
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1470
+ }, z.core.$strict>, z.ZodObject<{
1471
+ type: z.ZodLiteral<"section">;
1472
+ key: z.ZodString;
1473
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1474
+ }, z.core.$strict>], "type">>;
1475
+ binding: z.ZodDiscriminatedUnion<[z.ZodObject<{
1476
+ kind: z.ZodLiteral<"none">;
1477
+ }, z.core.$strict>, z.ZodObject<{
1478
+ kind: z.ZodLiteral<"product">;
1479
+ targetForms: z.ZodArray<z.ZodEnum<{
1480
+ literal: "literal";
1481
+ subject: "subject";
1482
+ }>>;
1483
+ }, z.core.$strict>, z.ZodObject<{
1484
+ kind: z.ZodLiteral<"products">;
1485
+ targetForms: z.ZodArray<z.ZodEnum<{
1486
+ literal: "literal";
1487
+ subject: "subject";
1488
+ }>>;
1489
+ }, z.core.$strict>, z.ZodObject<{
1490
+ kind: z.ZodLiteral<"collection">;
1491
+ targetForms: z.ZodArray<z.ZodEnum<{
1492
+ literal: "literal";
1493
+ subject: "subject";
1494
+ }>>;
1495
+ }, z.core.$strict>, z.ZodObject<{
1496
+ kind: z.ZodLiteral<"collections">;
1497
+ targetForms: z.ZodArray<z.ZodEnum<{
1498
+ literal: "literal";
1499
+ }>>;
1500
+ }, z.core.$strict>], "kind">;
1501
+ placement: z.ZodObject<{
1502
+ allowedScreenKinds: z.ZodNullable<z.ZodArray<z.ZodEnum<{
1503
+ custom: "custom";
1504
+ product: "product";
1505
+ collection: "collection";
1506
+ search: "search";
1507
+ home: "home";
1508
+ cart: "cart";
1509
+ account: "account";
1510
+ }>>>;
1511
+ maxPerScreen: z.ZodNullable<z.ZodInt>;
1512
+ }, z.core.$strict>;
1513
+ kind: z.ZodLiteral<"code">;
1514
+ }, z.core.$strict>], "kind">;
1515
+ }, z.core.$strict>>>;
1516
+ releaseId: z.ZodUUID;
1517
+ }, z.core.$strip>;
1518
+ /** One screen of one immutable release: same address, same bytes, forever. */
1519
+ export declare const screenEnvelopeSchema: z.ZodObject<{
1520
+ schemaVersion: z.ZodLiteral<1>;
1521
+ releaseId: z.ZodUUID;
1522
+ screen: z.ZodObject<{
1523
+ id: z.ZodUUID;
1524
+ kind: z.ZodEnum<{
1525
+ custom: "custom";
1526
+ product: "product";
1527
+ collection: "collection";
1528
+ search: "search";
1529
+ home: "home";
1530
+ cart: "cart";
1531
+ account: "account";
1532
+ }>;
1533
+ slug: z.ZodOptional<z.ZodString>;
1534
+ title: z.ZodRecord<z.ZodString, z.ZodString>;
1535
+ blocks: z.ZodArray<z.ZodType<import("./blocks.js").Block, unknown, z.core.$ZodTypeInternals<import("./blocks.js").Block, unknown>>>;
1536
+ }, z.core.$strip>;
1537
+ assets: z.ZodDefault<z.ZodRecord<z.ZodUUID, z.ZodObject<{
1538
+ kind: z.ZodEnum<{
1539
+ image: "image";
1540
+ video: "video";
1541
+ }>;
1542
+ url: z.ZodString;
1543
+ width: z.ZodOptional<z.ZodNumber>;
1544
+ height: z.ZodOptional<z.ZodNumber>;
1545
+ placeholder: z.ZodOptional<z.ZodString>;
1546
+ dominantColor: z.ZodOptional<z.ZodString>;
1547
+ durationMs: z.ZodOptional<z.ZodNumber>;
1548
+ renditions: z.ZodArray<z.ZodObject<{
1549
+ url: z.ZodString;
1550
+ width: z.ZodNumber;
1551
+ height: z.ZodNumber;
1552
+ }, z.core.$strip>>;
1553
+ }, z.core.$strip>>>;
1554
+ blockDefinitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1555
+ version: z.ZodInt;
1556
+ definition: z.ZodDiscriminatedUnion<[z.ZodObject<{
1557
+ label: z.ZodString;
1558
+ settings: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1559
+ type: z.ZodLiteral<"text">;
1560
+ maxLength: z.ZodOptional<z.ZodInt>;
1561
+ default: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1562
+ key: z.ZodString;
1563
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1564
+ }, z.core.$strict>, z.ZodObject<{
1565
+ type: z.ZodLiteral<"toggle">;
1566
+ default: z.ZodOptional<z.ZodBoolean>;
1567
+ key: z.ZodString;
1568
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1569
+ }, z.core.$strict>, z.ZodObject<{
1570
+ type: z.ZodLiteral<"select">;
1571
+ options: z.ZodArray<z.ZodObject<{
1572
+ value: z.ZodString;
1573
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1574
+ }, z.core.$strict>>;
1575
+ default: z.ZodOptional<z.ZodString>;
1576
+ key: z.ZodString;
1577
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1578
+ }, z.core.$strict>, z.ZodObject<{
1579
+ type: z.ZodLiteral<"number">;
1580
+ min: z.ZodOptional<z.ZodNumber>;
1581
+ max: z.ZodOptional<z.ZodNumber>;
1582
+ step: z.ZodOptional<z.ZodNumber>;
1583
+ unit: z.ZodOptional<z.ZodString>;
1584
+ default: z.ZodOptional<z.ZodNumber>;
1585
+ key: z.ZodString;
1586
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1587
+ }, z.core.$strict>, z.ZodObject<{
1588
+ type: z.ZodLiteral<"color">;
1589
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1590
+ token: z.ZodString;
1591
+ }, z.core.$strict>]>>;
1592
+ key: z.ZodString;
1593
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1594
+ }, z.core.$strict>, z.ZodObject<{
1595
+ type: z.ZodLiteral<"image">;
1596
+ default: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
1597
+ key: z.ZodString;
1598
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1599
+ }, z.core.$strict>, z.ZodObject<{
1600
+ type: z.ZodLiteral<"action">;
1601
+ default: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1602
+ type: z.ZodLiteral<"open_screen">;
1603
+ screenId: z.ZodUUID;
1604
+ }, z.core.$strip>, z.ZodObject<{
1605
+ type: z.ZodLiteral<"open_cart">;
1606
+ }, z.core.$strip>, z.ZodObject<{
1607
+ type: z.ZodLiteral<"open_url">;
1608
+ url: z.ZodURL;
1609
+ }, z.core.$strip>, z.ZodObject<{
1610
+ type: z.ZodLiteral<"none">;
1611
+ }, z.core.$strip>], "type">>;
1612
+ key: z.ZodString;
1613
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1614
+ }, z.core.$strict>, z.ZodObject<{
1615
+ type: z.ZodLiteral<"rows">;
1616
+ max: z.ZodInt;
1617
+ fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1618
+ type: z.ZodLiteral<"text">;
1619
+ maxLength: z.ZodOptional<z.ZodInt>;
1620
+ default: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1621
+ key: z.ZodString;
1622
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1623
+ }, z.core.$strict>, z.ZodObject<{
1624
+ type: z.ZodLiteral<"toggle">;
1625
+ default: z.ZodOptional<z.ZodBoolean>;
1626
+ key: z.ZodString;
1627
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1628
+ }, z.core.$strict>, z.ZodObject<{
1629
+ type: z.ZodLiteral<"select">;
1630
+ options: z.ZodArray<z.ZodObject<{
1631
+ value: z.ZodString;
1632
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1633
+ }, z.core.$strict>>;
1634
+ default: z.ZodOptional<z.ZodString>;
1635
+ key: z.ZodString;
1636
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1637
+ }, z.core.$strict>, z.ZodObject<{
1638
+ type: z.ZodLiteral<"number">;
1639
+ min: z.ZodOptional<z.ZodNumber>;
1640
+ max: z.ZodOptional<z.ZodNumber>;
1641
+ step: z.ZodOptional<z.ZodNumber>;
1642
+ unit: z.ZodOptional<z.ZodString>;
1643
+ default: z.ZodOptional<z.ZodNumber>;
1644
+ key: z.ZodString;
1645
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1646
+ }, z.core.$strict>, z.ZodObject<{
1647
+ type: z.ZodLiteral<"color">;
1648
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1649
+ token: z.ZodString;
1650
+ }, z.core.$strict>]>>;
1651
+ key: z.ZodString;
1652
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1653
+ }, z.core.$strict>, z.ZodObject<{
1654
+ type: z.ZodLiteral<"image">;
1655
+ default: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
1656
+ key: z.ZodString;
1657
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1658
+ }, z.core.$strict>, z.ZodObject<{
1659
+ type: z.ZodLiteral<"action">;
1660
+ default: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1661
+ type: z.ZodLiteral<"open_screen">;
1662
+ screenId: z.ZodUUID;
1663
+ }, z.core.$strip>, z.ZodObject<{
1664
+ type: z.ZodLiteral<"open_cart">;
1665
+ }, z.core.$strip>, z.ZodObject<{
1666
+ type: z.ZodLiteral<"open_url">;
1667
+ url: z.ZodURL;
1668
+ }, z.core.$strip>, z.ZodObject<{
1669
+ type: z.ZodLiteral<"none">;
1670
+ }, z.core.$strip>], "type">>;
1671
+ key: z.ZodString;
1672
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1673
+ }, z.core.$strict>], "type">>;
1674
+ key: z.ZodString;
1675
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1676
+ }, z.core.$strict>, z.ZodObject<{
1677
+ type: z.ZodLiteral<"section">;
1678
+ key: z.ZodString;
1679
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1680
+ }, z.core.$strict>], "type">>;
1681
+ binding: z.ZodDiscriminatedUnion<[z.ZodObject<{
1682
+ kind: z.ZodLiteral<"none">;
1683
+ }, z.core.$strict>, z.ZodObject<{
1684
+ kind: z.ZodLiteral<"product">;
1685
+ targetForms: z.ZodArray<z.ZodEnum<{
1686
+ literal: "literal";
1687
+ subject: "subject";
1688
+ }>>;
1689
+ }, z.core.$strict>, z.ZodObject<{
1690
+ kind: z.ZodLiteral<"products">;
1691
+ targetForms: z.ZodArray<z.ZodEnum<{
1692
+ literal: "literal";
1693
+ subject: "subject";
1694
+ }>>;
1695
+ }, z.core.$strict>, z.ZodObject<{
1696
+ kind: z.ZodLiteral<"collection">;
1697
+ targetForms: z.ZodArray<z.ZodEnum<{
1698
+ literal: "literal";
1699
+ subject: "subject";
1700
+ }>>;
1701
+ }, z.core.$strict>, z.ZodObject<{
1702
+ kind: z.ZodLiteral<"collections">;
1703
+ targetForms: z.ZodArray<z.ZodEnum<{
1704
+ literal: "literal";
1705
+ }>>;
1706
+ }, z.core.$strict>], "kind">;
1707
+ placement: z.ZodObject<{
1708
+ allowedScreenKinds: z.ZodNullable<z.ZodArray<z.ZodEnum<{
1709
+ custom: "custom";
1710
+ product: "product";
1711
+ collection: "collection";
1712
+ search: "search";
1713
+ home: "home";
1714
+ cart: "cart";
1715
+ account: "account";
1716
+ }>>>;
1717
+ maxPerScreen: z.ZodNullable<z.ZodInt>;
1718
+ }, z.core.$strict>;
1719
+ kind: z.ZodLiteral<"composed">;
1720
+ body: z.ZodType<import("./primitives.js").EnvelopePrimitiveNode, unknown, z.core.$ZodTypeInternals<import("./primitives.js").EnvelopePrimitiveNode, unknown>>;
1721
+ }, z.core.$strict>, z.ZodObject<{
1722
+ capabilities: z.ZodArray<z.ZodEnum<{
1723
+ addToCart: "addToCart";
1724
+ openCart: "openCart";
1725
+ beginCheckout: "beginCheckout";
1726
+ }>>;
1727
+ rendererVersion: z.ZodInt;
1728
+ heightHint: z.ZodOptional<z.ZodInt>;
1729
+ label: z.ZodString;
1730
+ settings: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1731
+ type: z.ZodLiteral<"text">;
1732
+ maxLength: z.ZodOptional<z.ZodInt>;
1733
+ default: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1734
+ key: z.ZodString;
1735
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1736
+ }, z.core.$strict>, z.ZodObject<{
1737
+ type: z.ZodLiteral<"toggle">;
1738
+ default: z.ZodOptional<z.ZodBoolean>;
1739
+ key: z.ZodString;
1740
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1741
+ }, z.core.$strict>, z.ZodObject<{
1742
+ type: z.ZodLiteral<"select">;
1743
+ options: z.ZodArray<z.ZodObject<{
1744
+ value: z.ZodString;
1745
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1746
+ }, z.core.$strict>>;
1747
+ default: z.ZodOptional<z.ZodString>;
1748
+ key: z.ZodString;
1749
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1750
+ }, z.core.$strict>, z.ZodObject<{
1751
+ type: z.ZodLiteral<"number">;
1752
+ min: z.ZodOptional<z.ZodNumber>;
1753
+ max: z.ZodOptional<z.ZodNumber>;
1754
+ step: z.ZodOptional<z.ZodNumber>;
1755
+ unit: z.ZodOptional<z.ZodString>;
1756
+ default: z.ZodOptional<z.ZodNumber>;
1757
+ key: z.ZodString;
1758
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1759
+ }, z.core.$strict>, z.ZodObject<{
1760
+ type: z.ZodLiteral<"color">;
1761
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1762
+ token: z.ZodString;
1763
+ }, z.core.$strict>]>>;
1764
+ key: z.ZodString;
1765
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1766
+ }, z.core.$strict>, z.ZodObject<{
1767
+ type: z.ZodLiteral<"image">;
1768
+ default: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
1769
+ key: z.ZodString;
1770
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1771
+ }, z.core.$strict>, z.ZodObject<{
1772
+ type: z.ZodLiteral<"action">;
1773
+ default: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1774
+ type: z.ZodLiteral<"open_screen">;
1775
+ screenId: z.ZodUUID;
1776
+ }, z.core.$strip>, z.ZodObject<{
1777
+ type: z.ZodLiteral<"open_cart">;
1778
+ }, z.core.$strip>, z.ZodObject<{
1779
+ type: z.ZodLiteral<"open_url">;
1780
+ url: z.ZodURL;
1781
+ }, z.core.$strip>, z.ZodObject<{
1782
+ type: z.ZodLiteral<"none">;
1783
+ }, z.core.$strip>], "type">>;
1784
+ key: z.ZodString;
1785
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1786
+ }, z.core.$strict>, z.ZodObject<{
1787
+ type: z.ZodLiteral<"rows">;
1788
+ max: z.ZodInt;
1789
+ fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1790
+ type: z.ZodLiteral<"text">;
1791
+ maxLength: z.ZodOptional<z.ZodInt>;
1792
+ default: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1793
+ key: z.ZodString;
1794
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1795
+ }, z.core.$strict>, z.ZodObject<{
1796
+ type: z.ZodLiteral<"toggle">;
1797
+ default: z.ZodOptional<z.ZodBoolean>;
1798
+ key: z.ZodString;
1799
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1800
+ }, z.core.$strict>, z.ZodObject<{
1801
+ type: z.ZodLiteral<"select">;
1802
+ options: z.ZodArray<z.ZodObject<{
1803
+ value: z.ZodString;
1804
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1805
+ }, z.core.$strict>>;
1806
+ default: z.ZodOptional<z.ZodString>;
1807
+ key: z.ZodString;
1808
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1809
+ }, z.core.$strict>, z.ZodObject<{
1810
+ type: z.ZodLiteral<"number">;
1811
+ min: z.ZodOptional<z.ZodNumber>;
1812
+ max: z.ZodOptional<z.ZodNumber>;
1813
+ step: z.ZodOptional<z.ZodNumber>;
1814
+ unit: z.ZodOptional<z.ZodString>;
1815
+ default: z.ZodOptional<z.ZodNumber>;
1816
+ key: z.ZodString;
1817
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1818
+ }, z.core.$strict>, z.ZodObject<{
1819
+ type: z.ZodLiteral<"color">;
1820
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1821
+ token: z.ZodString;
1822
+ }, z.core.$strict>]>>;
1823
+ key: z.ZodString;
1824
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1825
+ }, z.core.$strict>, z.ZodObject<{
1826
+ type: z.ZodLiteral<"image">;
1827
+ default: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
1828
+ key: z.ZodString;
1829
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1830
+ }, z.core.$strict>, z.ZodObject<{
1831
+ type: z.ZodLiteral<"action">;
1832
+ default: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1833
+ type: z.ZodLiteral<"open_screen">;
1834
+ screenId: z.ZodUUID;
1835
+ }, z.core.$strip>, z.ZodObject<{
1836
+ type: z.ZodLiteral<"open_cart">;
1837
+ }, z.core.$strip>, z.ZodObject<{
1838
+ type: z.ZodLiteral<"open_url">;
1839
+ url: z.ZodURL;
1840
+ }, z.core.$strip>, z.ZodObject<{
1841
+ type: z.ZodLiteral<"none">;
1842
+ }, z.core.$strip>], "type">>;
1843
+ key: z.ZodString;
1844
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1845
+ }, z.core.$strict>], "type">>;
1846
+ key: z.ZodString;
1847
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1848
+ }, z.core.$strict>, z.ZodObject<{
1849
+ type: z.ZodLiteral<"section">;
1850
+ key: z.ZodString;
1851
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1852
+ }, z.core.$strict>], "type">>;
1853
+ binding: z.ZodDiscriminatedUnion<[z.ZodObject<{
1854
+ kind: z.ZodLiteral<"none">;
1855
+ }, z.core.$strict>, z.ZodObject<{
1856
+ kind: z.ZodLiteral<"product">;
1857
+ targetForms: z.ZodArray<z.ZodEnum<{
1858
+ literal: "literal";
1859
+ subject: "subject";
1860
+ }>>;
1861
+ }, z.core.$strict>, z.ZodObject<{
1862
+ kind: z.ZodLiteral<"products">;
1863
+ targetForms: z.ZodArray<z.ZodEnum<{
1864
+ literal: "literal";
1865
+ subject: "subject";
1866
+ }>>;
1867
+ }, z.core.$strict>, z.ZodObject<{
1868
+ kind: z.ZodLiteral<"collection">;
1869
+ targetForms: z.ZodArray<z.ZodEnum<{
1870
+ literal: "literal";
1871
+ subject: "subject";
1872
+ }>>;
1873
+ }, z.core.$strict>, z.ZodObject<{
1874
+ kind: z.ZodLiteral<"collections">;
1875
+ targetForms: z.ZodArray<z.ZodEnum<{
1876
+ literal: "literal";
1877
+ }>>;
1878
+ }, z.core.$strict>], "kind">;
1879
+ placement: z.ZodObject<{
1880
+ allowedScreenKinds: z.ZodNullable<z.ZodArray<z.ZodEnum<{
1881
+ custom: "custom";
1882
+ product: "product";
1883
+ collection: "collection";
1884
+ search: "search";
1885
+ home: "home";
1886
+ cart: "cart";
1887
+ account: "account";
1888
+ }>>>;
1889
+ maxPerScreen: z.ZodNullable<z.ZodInt>;
1890
+ }, z.core.$strict>;
1891
+ kind: z.ZodLiteral<"code">;
1892
+ }, z.core.$strict>], "kind">;
1893
+ }, z.core.$strict>>>;
1894
+ }, z.core.$strip>;
1895
+ /**
1896
+ * What a preview session serves instead of a release address: the merchant's
1897
+ * live draft, or one frozen release it was pinned to. A pinned target names
1898
+ * its release by number, which is what a merchant calls it.
1899
+ */
1900
+ export declare const previewTargetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1901
+ kind: z.ZodLiteral<"draft">;
1902
+ releaseId: z.ZodNull;
1903
+ }, z.core.$strip>, z.ZodObject<{
1904
+ kind: z.ZodLiteral<"release">;
1905
+ releaseId: z.ZodUUID;
1906
+ releaseNumber: z.ZodNumber;
1907
+ label: z.ZodNullable<z.ZodString>;
1908
+ }, z.core.$strip>], "kind">;
1909
+ export declare const previewShellEnvelopeSchema: z.ZodObject<{
1910
+ schemaVersion: z.ZodLiteral<1>;
1911
+ navigation: z.ZodObject<{
1912
+ tabs: z.ZodArray<z.ZodObject<{
1913
+ screenId: z.ZodUUID;
1914
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1915
+ icon: z.ZodString;
1916
+ }, z.core.$strip>>;
1917
+ }, z.core.$strip>;
1918
+ tokens: z.ZodObject<{
1919
+ palette: z.ZodType<import("./tokens.js").TokenGroup, unknown, z.core.$ZodTypeInternals<import("./tokens.js").TokenGroup, unknown>>;
1920
+ semantic: z.ZodType<import("./tokens.js").TokenGroup, unknown, z.core.$ZodTypeInternals<import("./tokens.js").TokenGroup, unknown>>;
1921
+ component: z.ZodType<import("./tokens.js").TokenGroup, unknown, z.core.$ZodTypeInternals<import("./tokens.js").TokenGroup, unknown>>;
1922
+ }, z.core.$strip>;
1923
+ storefront: z.ZodObject<{
1924
+ domain: z.ZodString;
1925
+ publicToken: z.ZodString;
1926
+ }, z.core.$strip>;
1927
+ languages: z.ZodObject<{
1928
+ default: z.ZodString;
1929
+ supported: z.ZodArray<z.ZodString>;
1930
+ }, z.core.$strip>;
1931
+ home: z.ZodObject<{
1932
+ id: z.ZodUUID;
1933
+ kind: z.ZodEnum<{
1934
+ custom: "custom";
1935
+ product: "product";
1936
+ collection: "collection";
1937
+ search: "search";
1938
+ home: "home";
1939
+ cart: "cart";
1940
+ account: "account";
1941
+ }>;
1942
+ slug: z.ZodOptional<z.ZodString>;
1943
+ title: z.ZodRecord<z.ZodString, z.ZodString>;
1944
+ blocks: z.ZodArray<z.ZodType<import("./blocks.js").Block, unknown, z.core.$ZodTypeInternals<import("./blocks.js").Block, unknown>>>;
1945
+ }, z.core.$strip>;
1946
+ assets: z.ZodDefault<z.ZodRecord<z.ZodUUID, z.ZodObject<{
1947
+ kind: z.ZodEnum<{
1948
+ image: "image";
1949
+ video: "video";
1950
+ }>;
1951
+ url: z.ZodString;
1952
+ width: z.ZodOptional<z.ZodNumber>;
1953
+ height: z.ZodOptional<z.ZodNumber>;
1954
+ placeholder: z.ZodOptional<z.ZodString>;
1955
+ dominantColor: z.ZodOptional<z.ZodString>;
1956
+ durationMs: z.ZodOptional<z.ZodNumber>;
1957
+ renditions: z.ZodArray<z.ZodObject<{
1958
+ url: z.ZodString;
1959
+ width: z.ZodNumber;
1960
+ height: z.ZodNumber;
1961
+ }, z.core.$strip>>;
1962
+ }, z.core.$strip>>>;
1963
+ screens: z.ZodOptional<z.ZodArray<z.ZodObject<{
1964
+ id: z.ZodUUID;
1965
+ kind: z.ZodEnum<{
1966
+ custom: "custom";
1967
+ product: "product";
1968
+ collection: "collection";
1969
+ search: "search";
1970
+ home: "home";
1971
+ cart: "cart";
1972
+ account: "account";
1973
+ }>;
1974
+ slug: z.ZodOptional<z.ZodString>;
1975
+ }, z.core.$strip>>>;
1976
+ disabledBlockTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1977
+ blockDefinitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1978
+ version: z.ZodInt;
1979
+ definition: z.ZodDiscriminatedUnion<[z.ZodObject<{
1980
+ label: z.ZodString;
1981
+ settings: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1982
+ type: z.ZodLiteral<"text">;
1983
+ maxLength: z.ZodOptional<z.ZodInt>;
1984
+ default: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1985
+ key: z.ZodString;
1986
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1987
+ }, z.core.$strict>, z.ZodObject<{
1988
+ type: z.ZodLiteral<"toggle">;
1989
+ default: z.ZodOptional<z.ZodBoolean>;
1990
+ key: z.ZodString;
1991
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1992
+ }, z.core.$strict>, z.ZodObject<{
1993
+ type: z.ZodLiteral<"select">;
1994
+ options: z.ZodArray<z.ZodObject<{
1995
+ value: z.ZodString;
1996
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
1997
+ }, z.core.$strict>>;
1998
+ default: z.ZodOptional<z.ZodString>;
1999
+ key: z.ZodString;
2000
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2001
+ }, z.core.$strict>, z.ZodObject<{
2002
+ type: z.ZodLiteral<"number">;
2003
+ min: z.ZodOptional<z.ZodNumber>;
2004
+ max: z.ZodOptional<z.ZodNumber>;
2005
+ step: z.ZodOptional<z.ZodNumber>;
2006
+ unit: z.ZodOptional<z.ZodString>;
2007
+ default: z.ZodOptional<z.ZodNumber>;
2008
+ key: z.ZodString;
2009
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2010
+ }, z.core.$strict>, z.ZodObject<{
2011
+ type: z.ZodLiteral<"color">;
2012
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2013
+ token: z.ZodString;
2014
+ }, z.core.$strict>]>>;
2015
+ key: z.ZodString;
2016
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2017
+ }, z.core.$strict>, z.ZodObject<{
2018
+ type: z.ZodLiteral<"image">;
2019
+ default: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
2020
+ key: z.ZodString;
2021
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2022
+ }, z.core.$strict>, z.ZodObject<{
2023
+ type: z.ZodLiteral<"action">;
2024
+ default: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2025
+ type: z.ZodLiteral<"open_screen">;
2026
+ screenId: z.ZodUUID;
2027
+ }, z.core.$strip>, z.ZodObject<{
2028
+ type: z.ZodLiteral<"open_cart">;
2029
+ }, z.core.$strip>, z.ZodObject<{
2030
+ type: z.ZodLiteral<"open_url">;
2031
+ url: z.ZodURL;
2032
+ }, z.core.$strip>, z.ZodObject<{
2033
+ type: z.ZodLiteral<"none">;
2034
+ }, z.core.$strip>], "type">>;
2035
+ key: z.ZodString;
2036
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2037
+ }, z.core.$strict>, z.ZodObject<{
2038
+ type: z.ZodLiteral<"rows">;
2039
+ max: z.ZodInt;
2040
+ fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2041
+ type: z.ZodLiteral<"text">;
2042
+ maxLength: z.ZodOptional<z.ZodInt>;
2043
+ default: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2044
+ key: z.ZodString;
2045
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2046
+ }, z.core.$strict>, z.ZodObject<{
2047
+ type: z.ZodLiteral<"toggle">;
2048
+ default: z.ZodOptional<z.ZodBoolean>;
2049
+ key: z.ZodString;
2050
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2051
+ }, z.core.$strict>, z.ZodObject<{
2052
+ type: z.ZodLiteral<"select">;
2053
+ options: z.ZodArray<z.ZodObject<{
2054
+ value: z.ZodString;
2055
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2056
+ }, z.core.$strict>>;
2057
+ default: z.ZodOptional<z.ZodString>;
2058
+ key: z.ZodString;
2059
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2060
+ }, z.core.$strict>, z.ZodObject<{
2061
+ type: z.ZodLiteral<"number">;
2062
+ min: z.ZodOptional<z.ZodNumber>;
2063
+ max: z.ZodOptional<z.ZodNumber>;
2064
+ step: z.ZodOptional<z.ZodNumber>;
2065
+ unit: z.ZodOptional<z.ZodString>;
2066
+ default: z.ZodOptional<z.ZodNumber>;
2067
+ key: z.ZodString;
2068
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2069
+ }, z.core.$strict>, z.ZodObject<{
2070
+ type: z.ZodLiteral<"color">;
2071
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2072
+ token: z.ZodString;
2073
+ }, z.core.$strict>]>>;
2074
+ key: z.ZodString;
2075
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2076
+ }, z.core.$strict>, z.ZodObject<{
2077
+ type: z.ZodLiteral<"image">;
2078
+ default: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
2079
+ key: z.ZodString;
2080
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2081
+ }, z.core.$strict>, z.ZodObject<{
2082
+ type: z.ZodLiteral<"action">;
2083
+ default: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2084
+ type: z.ZodLiteral<"open_screen">;
2085
+ screenId: z.ZodUUID;
2086
+ }, z.core.$strip>, z.ZodObject<{
2087
+ type: z.ZodLiteral<"open_cart">;
2088
+ }, z.core.$strip>, z.ZodObject<{
2089
+ type: z.ZodLiteral<"open_url">;
2090
+ url: z.ZodURL;
2091
+ }, z.core.$strip>, z.ZodObject<{
2092
+ type: z.ZodLiteral<"none">;
2093
+ }, z.core.$strip>], "type">>;
2094
+ key: z.ZodString;
2095
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2096
+ }, z.core.$strict>], "type">>;
2097
+ key: z.ZodString;
2098
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2099
+ }, z.core.$strict>, z.ZodObject<{
2100
+ type: z.ZodLiteral<"section">;
2101
+ key: z.ZodString;
2102
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2103
+ }, z.core.$strict>], "type">>;
2104
+ binding: z.ZodDiscriminatedUnion<[z.ZodObject<{
2105
+ kind: z.ZodLiteral<"none">;
2106
+ }, z.core.$strict>, z.ZodObject<{
2107
+ kind: z.ZodLiteral<"product">;
2108
+ targetForms: z.ZodArray<z.ZodEnum<{
2109
+ literal: "literal";
2110
+ subject: "subject";
2111
+ }>>;
2112
+ }, z.core.$strict>, z.ZodObject<{
2113
+ kind: z.ZodLiteral<"products">;
2114
+ targetForms: z.ZodArray<z.ZodEnum<{
2115
+ literal: "literal";
2116
+ subject: "subject";
2117
+ }>>;
2118
+ }, z.core.$strict>, z.ZodObject<{
2119
+ kind: z.ZodLiteral<"collection">;
2120
+ targetForms: z.ZodArray<z.ZodEnum<{
2121
+ literal: "literal";
2122
+ subject: "subject";
2123
+ }>>;
2124
+ }, z.core.$strict>, z.ZodObject<{
2125
+ kind: z.ZodLiteral<"collections">;
2126
+ targetForms: z.ZodArray<z.ZodEnum<{
2127
+ literal: "literal";
2128
+ }>>;
2129
+ }, z.core.$strict>], "kind">;
2130
+ placement: z.ZodObject<{
2131
+ allowedScreenKinds: z.ZodNullable<z.ZodArray<z.ZodEnum<{
2132
+ custom: "custom";
2133
+ product: "product";
2134
+ collection: "collection";
2135
+ search: "search";
2136
+ home: "home";
2137
+ cart: "cart";
2138
+ account: "account";
2139
+ }>>>;
2140
+ maxPerScreen: z.ZodNullable<z.ZodInt>;
2141
+ }, z.core.$strict>;
2142
+ kind: z.ZodLiteral<"composed">;
2143
+ body: z.ZodType<import("./primitives.js").EnvelopePrimitiveNode, unknown, z.core.$ZodTypeInternals<import("./primitives.js").EnvelopePrimitiveNode, unknown>>;
2144
+ }, z.core.$strict>, z.ZodObject<{
2145
+ capabilities: z.ZodArray<z.ZodEnum<{
2146
+ addToCart: "addToCart";
2147
+ openCart: "openCart";
2148
+ beginCheckout: "beginCheckout";
2149
+ }>>;
2150
+ rendererVersion: z.ZodInt;
2151
+ heightHint: z.ZodOptional<z.ZodInt>;
2152
+ label: z.ZodString;
2153
+ settings: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2154
+ type: z.ZodLiteral<"text">;
2155
+ maxLength: z.ZodOptional<z.ZodInt>;
2156
+ default: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2157
+ key: z.ZodString;
2158
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2159
+ }, z.core.$strict>, z.ZodObject<{
2160
+ type: z.ZodLiteral<"toggle">;
2161
+ default: z.ZodOptional<z.ZodBoolean>;
2162
+ key: z.ZodString;
2163
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2164
+ }, z.core.$strict>, z.ZodObject<{
2165
+ type: z.ZodLiteral<"select">;
2166
+ options: z.ZodArray<z.ZodObject<{
2167
+ value: z.ZodString;
2168
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2169
+ }, z.core.$strict>>;
2170
+ default: z.ZodOptional<z.ZodString>;
2171
+ key: z.ZodString;
2172
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2173
+ }, z.core.$strict>, z.ZodObject<{
2174
+ type: z.ZodLiteral<"number">;
2175
+ min: z.ZodOptional<z.ZodNumber>;
2176
+ max: z.ZodOptional<z.ZodNumber>;
2177
+ step: z.ZodOptional<z.ZodNumber>;
2178
+ unit: z.ZodOptional<z.ZodString>;
2179
+ default: z.ZodOptional<z.ZodNumber>;
2180
+ key: z.ZodString;
2181
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2182
+ }, z.core.$strict>, z.ZodObject<{
2183
+ type: z.ZodLiteral<"color">;
2184
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2185
+ token: z.ZodString;
2186
+ }, z.core.$strict>]>>;
2187
+ key: z.ZodString;
2188
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2189
+ }, z.core.$strict>, z.ZodObject<{
2190
+ type: z.ZodLiteral<"image">;
2191
+ default: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
2192
+ key: z.ZodString;
2193
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2194
+ }, z.core.$strict>, z.ZodObject<{
2195
+ type: z.ZodLiteral<"action">;
2196
+ default: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2197
+ type: z.ZodLiteral<"open_screen">;
2198
+ screenId: z.ZodUUID;
2199
+ }, z.core.$strip>, z.ZodObject<{
2200
+ type: z.ZodLiteral<"open_cart">;
2201
+ }, z.core.$strip>, z.ZodObject<{
2202
+ type: z.ZodLiteral<"open_url">;
2203
+ url: z.ZodURL;
2204
+ }, z.core.$strip>, z.ZodObject<{
2205
+ type: z.ZodLiteral<"none">;
2206
+ }, z.core.$strip>], "type">>;
2207
+ key: z.ZodString;
2208
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2209
+ }, z.core.$strict>, z.ZodObject<{
2210
+ type: z.ZodLiteral<"rows">;
2211
+ max: z.ZodInt;
2212
+ fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2213
+ type: z.ZodLiteral<"text">;
2214
+ maxLength: z.ZodOptional<z.ZodInt>;
2215
+ default: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2216
+ key: z.ZodString;
2217
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2218
+ }, z.core.$strict>, z.ZodObject<{
2219
+ type: z.ZodLiteral<"toggle">;
2220
+ default: z.ZodOptional<z.ZodBoolean>;
2221
+ key: z.ZodString;
2222
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2223
+ }, z.core.$strict>, z.ZodObject<{
2224
+ type: z.ZodLiteral<"select">;
2225
+ options: z.ZodArray<z.ZodObject<{
2226
+ value: z.ZodString;
2227
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2228
+ }, z.core.$strict>>;
2229
+ default: z.ZodOptional<z.ZodString>;
2230
+ key: z.ZodString;
2231
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2232
+ }, z.core.$strict>, z.ZodObject<{
2233
+ type: z.ZodLiteral<"number">;
2234
+ min: z.ZodOptional<z.ZodNumber>;
2235
+ max: z.ZodOptional<z.ZodNumber>;
2236
+ step: z.ZodOptional<z.ZodNumber>;
2237
+ unit: z.ZodOptional<z.ZodString>;
2238
+ default: z.ZodOptional<z.ZodNumber>;
2239
+ key: z.ZodString;
2240
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2241
+ }, z.core.$strict>, z.ZodObject<{
2242
+ type: z.ZodLiteral<"color">;
2243
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2244
+ token: z.ZodString;
2245
+ }, z.core.$strict>]>>;
2246
+ key: z.ZodString;
2247
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2248
+ }, z.core.$strict>, z.ZodObject<{
2249
+ type: z.ZodLiteral<"image">;
2250
+ default: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
2251
+ key: z.ZodString;
2252
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2253
+ }, z.core.$strict>, z.ZodObject<{
2254
+ type: z.ZodLiteral<"action">;
2255
+ default: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2256
+ type: z.ZodLiteral<"open_screen">;
2257
+ screenId: z.ZodUUID;
2258
+ }, z.core.$strip>, z.ZodObject<{
2259
+ type: z.ZodLiteral<"open_cart">;
2260
+ }, z.core.$strip>, z.ZodObject<{
2261
+ type: z.ZodLiteral<"open_url">;
2262
+ url: z.ZodURL;
2263
+ }, z.core.$strip>, z.ZodObject<{
2264
+ type: z.ZodLiteral<"none">;
2265
+ }, z.core.$strip>], "type">>;
2266
+ key: z.ZodString;
2267
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2268
+ }, z.core.$strict>], "type">>;
2269
+ key: z.ZodString;
2270
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2271
+ }, z.core.$strict>, z.ZodObject<{
2272
+ type: z.ZodLiteral<"section">;
2273
+ key: z.ZodString;
2274
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2275
+ }, z.core.$strict>], "type">>;
2276
+ binding: z.ZodDiscriminatedUnion<[z.ZodObject<{
2277
+ kind: z.ZodLiteral<"none">;
2278
+ }, z.core.$strict>, z.ZodObject<{
2279
+ kind: z.ZodLiteral<"product">;
2280
+ targetForms: z.ZodArray<z.ZodEnum<{
2281
+ literal: "literal";
2282
+ subject: "subject";
2283
+ }>>;
2284
+ }, z.core.$strict>, z.ZodObject<{
2285
+ kind: z.ZodLiteral<"products">;
2286
+ targetForms: z.ZodArray<z.ZodEnum<{
2287
+ literal: "literal";
2288
+ subject: "subject";
2289
+ }>>;
2290
+ }, z.core.$strict>, z.ZodObject<{
2291
+ kind: z.ZodLiteral<"collection">;
2292
+ targetForms: z.ZodArray<z.ZodEnum<{
2293
+ literal: "literal";
2294
+ subject: "subject";
2295
+ }>>;
2296
+ }, z.core.$strict>, z.ZodObject<{
2297
+ kind: z.ZodLiteral<"collections">;
2298
+ targetForms: z.ZodArray<z.ZodEnum<{
2299
+ literal: "literal";
2300
+ }>>;
2301
+ }, z.core.$strict>], "kind">;
2302
+ placement: z.ZodObject<{
2303
+ allowedScreenKinds: z.ZodNullable<z.ZodArray<z.ZodEnum<{
2304
+ custom: "custom";
2305
+ product: "product";
2306
+ collection: "collection";
2307
+ search: "search";
2308
+ home: "home";
2309
+ cart: "cart";
2310
+ account: "account";
2311
+ }>>>;
2312
+ maxPerScreen: z.ZodNullable<z.ZodInt>;
2313
+ }, z.core.$strict>;
2314
+ kind: z.ZodLiteral<"code">;
2315
+ }, z.core.$strict>], "kind">;
2316
+ }, z.core.$strict>>>;
2317
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
2318
+ kind: z.ZodLiteral<"draft">;
2319
+ releaseId: z.ZodNull;
2320
+ }, z.core.$strip>, z.ZodObject<{
2321
+ kind: z.ZodLiteral<"release">;
2322
+ releaseId: z.ZodUUID;
2323
+ releaseNumber: z.ZodNumber;
2324
+ label: z.ZodNullable<z.ZodString>;
2325
+ }, z.core.$strip>], "kind">;
2326
+ signal: z.ZodString;
2327
+ }, z.core.$strip>;
2328
+ export declare const previewScreenEnvelopeSchema: z.ZodObject<{
2329
+ schemaVersion: z.ZodLiteral<1>;
2330
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
2331
+ kind: z.ZodLiteral<"draft">;
2332
+ releaseId: z.ZodNull;
2333
+ }, z.core.$strip>, z.ZodObject<{
2334
+ kind: z.ZodLiteral<"release">;
2335
+ releaseId: z.ZodUUID;
2336
+ releaseNumber: z.ZodNumber;
2337
+ label: z.ZodNullable<z.ZodString>;
2338
+ }, z.core.$strip>], "kind">;
2339
+ screen: z.ZodObject<{
2340
+ id: z.ZodUUID;
2341
+ kind: z.ZodEnum<{
2342
+ custom: "custom";
2343
+ product: "product";
2344
+ collection: "collection";
2345
+ search: "search";
2346
+ home: "home";
2347
+ cart: "cart";
2348
+ account: "account";
2349
+ }>;
2350
+ slug: z.ZodOptional<z.ZodString>;
2351
+ title: z.ZodRecord<z.ZodString, z.ZodString>;
2352
+ blocks: z.ZodArray<z.ZodType<import("./blocks.js").Block, unknown, z.core.$ZodTypeInternals<import("./blocks.js").Block, unknown>>>;
2353
+ }, z.core.$strip>;
2354
+ assets: z.ZodDefault<z.ZodRecord<z.ZodUUID, z.ZodObject<{
2355
+ kind: z.ZodEnum<{
2356
+ image: "image";
2357
+ video: "video";
2358
+ }>;
2359
+ url: z.ZodString;
2360
+ width: z.ZodOptional<z.ZodNumber>;
2361
+ height: z.ZodOptional<z.ZodNumber>;
2362
+ placeholder: z.ZodOptional<z.ZodString>;
2363
+ dominantColor: z.ZodOptional<z.ZodString>;
2364
+ durationMs: z.ZodOptional<z.ZodNumber>;
2365
+ renditions: z.ZodArray<z.ZodObject<{
2366
+ url: z.ZodString;
2367
+ width: z.ZodNumber;
2368
+ height: z.ZodNumber;
2369
+ }, z.core.$strip>>;
2370
+ }, z.core.$strip>>>;
2371
+ blockDefinitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2372
+ version: z.ZodInt;
2373
+ definition: z.ZodDiscriminatedUnion<[z.ZodObject<{
2374
+ label: z.ZodString;
2375
+ settings: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2376
+ type: z.ZodLiteral<"text">;
2377
+ maxLength: z.ZodOptional<z.ZodInt>;
2378
+ default: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2379
+ key: z.ZodString;
2380
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2381
+ }, z.core.$strict>, z.ZodObject<{
2382
+ type: z.ZodLiteral<"toggle">;
2383
+ default: z.ZodOptional<z.ZodBoolean>;
2384
+ key: z.ZodString;
2385
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2386
+ }, z.core.$strict>, z.ZodObject<{
2387
+ type: z.ZodLiteral<"select">;
2388
+ options: z.ZodArray<z.ZodObject<{
2389
+ value: z.ZodString;
2390
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2391
+ }, z.core.$strict>>;
2392
+ default: z.ZodOptional<z.ZodString>;
2393
+ key: z.ZodString;
2394
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2395
+ }, z.core.$strict>, z.ZodObject<{
2396
+ type: z.ZodLiteral<"number">;
2397
+ min: z.ZodOptional<z.ZodNumber>;
2398
+ max: z.ZodOptional<z.ZodNumber>;
2399
+ step: z.ZodOptional<z.ZodNumber>;
2400
+ unit: z.ZodOptional<z.ZodString>;
2401
+ default: z.ZodOptional<z.ZodNumber>;
2402
+ key: z.ZodString;
2403
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2404
+ }, z.core.$strict>, z.ZodObject<{
2405
+ type: z.ZodLiteral<"color">;
2406
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2407
+ token: z.ZodString;
2408
+ }, z.core.$strict>]>>;
2409
+ key: z.ZodString;
2410
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2411
+ }, z.core.$strict>, z.ZodObject<{
2412
+ type: z.ZodLiteral<"image">;
2413
+ default: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
2414
+ key: z.ZodString;
2415
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2416
+ }, z.core.$strict>, z.ZodObject<{
2417
+ type: z.ZodLiteral<"action">;
2418
+ default: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2419
+ type: z.ZodLiteral<"open_screen">;
2420
+ screenId: z.ZodUUID;
2421
+ }, z.core.$strip>, z.ZodObject<{
2422
+ type: z.ZodLiteral<"open_cart">;
2423
+ }, z.core.$strip>, z.ZodObject<{
2424
+ type: z.ZodLiteral<"open_url">;
2425
+ url: z.ZodURL;
2426
+ }, z.core.$strip>, z.ZodObject<{
2427
+ type: z.ZodLiteral<"none">;
2428
+ }, z.core.$strip>], "type">>;
2429
+ key: z.ZodString;
2430
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2431
+ }, z.core.$strict>, z.ZodObject<{
2432
+ type: z.ZodLiteral<"rows">;
2433
+ max: z.ZodInt;
2434
+ fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2435
+ type: z.ZodLiteral<"text">;
2436
+ maxLength: z.ZodOptional<z.ZodInt>;
2437
+ default: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2438
+ key: z.ZodString;
2439
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2440
+ }, z.core.$strict>, z.ZodObject<{
2441
+ type: z.ZodLiteral<"toggle">;
2442
+ default: z.ZodOptional<z.ZodBoolean>;
2443
+ key: z.ZodString;
2444
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2445
+ }, z.core.$strict>, z.ZodObject<{
2446
+ type: z.ZodLiteral<"select">;
2447
+ options: z.ZodArray<z.ZodObject<{
2448
+ value: z.ZodString;
2449
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2450
+ }, z.core.$strict>>;
2451
+ default: z.ZodOptional<z.ZodString>;
2452
+ key: z.ZodString;
2453
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2454
+ }, z.core.$strict>, z.ZodObject<{
2455
+ type: z.ZodLiteral<"number">;
2456
+ min: z.ZodOptional<z.ZodNumber>;
2457
+ max: z.ZodOptional<z.ZodNumber>;
2458
+ step: z.ZodOptional<z.ZodNumber>;
2459
+ unit: z.ZodOptional<z.ZodString>;
2460
+ default: z.ZodOptional<z.ZodNumber>;
2461
+ key: z.ZodString;
2462
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2463
+ }, z.core.$strict>, z.ZodObject<{
2464
+ type: z.ZodLiteral<"color">;
2465
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2466
+ token: z.ZodString;
2467
+ }, z.core.$strict>]>>;
2468
+ key: z.ZodString;
2469
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2470
+ }, z.core.$strict>, z.ZodObject<{
2471
+ type: z.ZodLiteral<"image">;
2472
+ default: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
2473
+ key: z.ZodString;
2474
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2475
+ }, z.core.$strict>, z.ZodObject<{
2476
+ type: z.ZodLiteral<"action">;
2477
+ default: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2478
+ type: z.ZodLiteral<"open_screen">;
2479
+ screenId: z.ZodUUID;
2480
+ }, z.core.$strip>, z.ZodObject<{
2481
+ type: z.ZodLiteral<"open_cart">;
2482
+ }, z.core.$strip>, z.ZodObject<{
2483
+ type: z.ZodLiteral<"open_url">;
2484
+ url: z.ZodURL;
2485
+ }, z.core.$strip>, z.ZodObject<{
2486
+ type: z.ZodLiteral<"none">;
2487
+ }, z.core.$strip>], "type">>;
2488
+ key: z.ZodString;
2489
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2490
+ }, z.core.$strict>], "type">>;
2491
+ key: z.ZodString;
2492
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2493
+ }, z.core.$strict>, z.ZodObject<{
2494
+ type: z.ZodLiteral<"section">;
2495
+ key: z.ZodString;
2496
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2497
+ }, z.core.$strict>], "type">>;
2498
+ binding: z.ZodDiscriminatedUnion<[z.ZodObject<{
2499
+ kind: z.ZodLiteral<"none">;
2500
+ }, z.core.$strict>, z.ZodObject<{
2501
+ kind: z.ZodLiteral<"product">;
2502
+ targetForms: z.ZodArray<z.ZodEnum<{
2503
+ literal: "literal";
2504
+ subject: "subject";
2505
+ }>>;
2506
+ }, z.core.$strict>, z.ZodObject<{
2507
+ kind: z.ZodLiteral<"products">;
2508
+ targetForms: z.ZodArray<z.ZodEnum<{
2509
+ literal: "literal";
2510
+ subject: "subject";
2511
+ }>>;
2512
+ }, z.core.$strict>, z.ZodObject<{
2513
+ kind: z.ZodLiteral<"collection">;
2514
+ targetForms: z.ZodArray<z.ZodEnum<{
2515
+ literal: "literal";
2516
+ subject: "subject";
2517
+ }>>;
2518
+ }, z.core.$strict>, z.ZodObject<{
2519
+ kind: z.ZodLiteral<"collections">;
2520
+ targetForms: z.ZodArray<z.ZodEnum<{
2521
+ literal: "literal";
2522
+ }>>;
2523
+ }, z.core.$strict>], "kind">;
2524
+ placement: z.ZodObject<{
2525
+ allowedScreenKinds: z.ZodNullable<z.ZodArray<z.ZodEnum<{
2526
+ custom: "custom";
2527
+ product: "product";
2528
+ collection: "collection";
2529
+ search: "search";
2530
+ home: "home";
2531
+ cart: "cart";
2532
+ account: "account";
2533
+ }>>>;
2534
+ maxPerScreen: z.ZodNullable<z.ZodInt>;
2535
+ }, z.core.$strict>;
2536
+ kind: z.ZodLiteral<"composed">;
2537
+ body: z.ZodType<import("./primitives.js").EnvelopePrimitiveNode, unknown, z.core.$ZodTypeInternals<import("./primitives.js").EnvelopePrimitiveNode, unknown>>;
2538
+ }, z.core.$strict>, z.ZodObject<{
2539
+ capabilities: z.ZodArray<z.ZodEnum<{
2540
+ addToCart: "addToCart";
2541
+ openCart: "openCart";
2542
+ beginCheckout: "beginCheckout";
2543
+ }>>;
2544
+ rendererVersion: z.ZodInt;
2545
+ heightHint: z.ZodOptional<z.ZodInt>;
2546
+ label: z.ZodString;
2547
+ settings: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2548
+ type: z.ZodLiteral<"text">;
2549
+ maxLength: z.ZodOptional<z.ZodInt>;
2550
+ default: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2551
+ key: z.ZodString;
2552
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2553
+ }, z.core.$strict>, z.ZodObject<{
2554
+ type: z.ZodLiteral<"toggle">;
2555
+ default: z.ZodOptional<z.ZodBoolean>;
2556
+ key: z.ZodString;
2557
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2558
+ }, z.core.$strict>, z.ZodObject<{
2559
+ type: z.ZodLiteral<"select">;
2560
+ options: z.ZodArray<z.ZodObject<{
2561
+ value: z.ZodString;
2562
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2563
+ }, z.core.$strict>>;
2564
+ default: z.ZodOptional<z.ZodString>;
2565
+ key: z.ZodString;
2566
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2567
+ }, z.core.$strict>, z.ZodObject<{
2568
+ type: z.ZodLiteral<"number">;
2569
+ min: z.ZodOptional<z.ZodNumber>;
2570
+ max: z.ZodOptional<z.ZodNumber>;
2571
+ step: z.ZodOptional<z.ZodNumber>;
2572
+ unit: z.ZodOptional<z.ZodString>;
2573
+ default: z.ZodOptional<z.ZodNumber>;
2574
+ key: z.ZodString;
2575
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2576
+ }, z.core.$strict>, z.ZodObject<{
2577
+ type: z.ZodLiteral<"color">;
2578
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2579
+ token: z.ZodString;
2580
+ }, z.core.$strict>]>>;
2581
+ key: z.ZodString;
2582
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2583
+ }, z.core.$strict>, z.ZodObject<{
2584
+ type: z.ZodLiteral<"image">;
2585
+ default: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
2586
+ key: z.ZodString;
2587
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2588
+ }, z.core.$strict>, z.ZodObject<{
2589
+ type: z.ZodLiteral<"action">;
2590
+ default: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2591
+ type: z.ZodLiteral<"open_screen">;
2592
+ screenId: z.ZodUUID;
2593
+ }, z.core.$strip>, z.ZodObject<{
2594
+ type: z.ZodLiteral<"open_cart">;
2595
+ }, z.core.$strip>, z.ZodObject<{
2596
+ type: z.ZodLiteral<"open_url">;
2597
+ url: z.ZodURL;
2598
+ }, z.core.$strip>, z.ZodObject<{
2599
+ type: z.ZodLiteral<"none">;
2600
+ }, z.core.$strip>], "type">>;
2601
+ key: z.ZodString;
2602
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2603
+ }, z.core.$strict>, z.ZodObject<{
2604
+ type: z.ZodLiteral<"rows">;
2605
+ max: z.ZodInt;
2606
+ fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2607
+ type: z.ZodLiteral<"text">;
2608
+ maxLength: z.ZodOptional<z.ZodInt>;
2609
+ default: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2610
+ key: z.ZodString;
2611
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2612
+ }, z.core.$strict>, z.ZodObject<{
2613
+ type: z.ZodLiteral<"toggle">;
2614
+ default: z.ZodOptional<z.ZodBoolean>;
2615
+ key: z.ZodString;
2616
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2617
+ }, z.core.$strict>, z.ZodObject<{
2618
+ type: z.ZodLiteral<"select">;
2619
+ options: z.ZodArray<z.ZodObject<{
2620
+ value: z.ZodString;
2621
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2622
+ }, z.core.$strict>>;
2623
+ default: z.ZodOptional<z.ZodString>;
2624
+ key: z.ZodString;
2625
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2626
+ }, z.core.$strict>, z.ZodObject<{
2627
+ type: z.ZodLiteral<"number">;
2628
+ min: z.ZodOptional<z.ZodNumber>;
2629
+ max: z.ZodOptional<z.ZodNumber>;
2630
+ step: z.ZodOptional<z.ZodNumber>;
2631
+ unit: z.ZodOptional<z.ZodString>;
2632
+ default: z.ZodOptional<z.ZodNumber>;
2633
+ key: z.ZodString;
2634
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2635
+ }, z.core.$strict>, z.ZodObject<{
2636
+ type: z.ZodLiteral<"color">;
2637
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2638
+ token: z.ZodString;
2639
+ }, z.core.$strict>]>>;
2640
+ key: z.ZodString;
2641
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2642
+ }, z.core.$strict>, z.ZodObject<{
2643
+ type: z.ZodLiteral<"image">;
2644
+ default: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
2645
+ key: z.ZodString;
2646
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2647
+ }, z.core.$strict>, z.ZodObject<{
2648
+ type: z.ZodLiteral<"action">;
2649
+ default: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2650
+ type: z.ZodLiteral<"open_screen">;
2651
+ screenId: z.ZodUUID;
2652
+ }, z.core.$strip>, z.ZodObject<{
2653
+ type: z.ZodLiteral<"open_cart">;
2654
+ }, z.core.$strip>, z.ZodObject<{
2655
+ type: z.ZodLiteral<"open_url">;
2656
+ url: z.ZodURL;
2657
+ }, z.core.$strip>, z.ZodObject<{
2658
+ type: z.ZodLiteral<"none">;
2659
+ }, z.core.$strip>], "type">>;
2660
+ key: z.ZodString;
2661
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2662
+ }, z.core.$strict>], "type">>;
2663
+ key: z.ZodString;
2664
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2665
+ }, z.core.$strict>, z.ZodObject<{
2666
+ type: z.ZodLiteral<"section">;
2667
+ key: z.ZodString;
2668
+ label: z.ZodRecord<z.ZodString, z.ZodString>;
2669
+ }, z.core.$strict>], "type">>;
2670
+ binding: z.ZodDiscriminatedUnion<[z.ZodObject<{
2671
+ kind: z.ZodLiteral<"none">;
2672
+ }, z.core.$strict>, z.ZodObject<{
2673
+ kind: z.ZodLiteral<"product">;
2674
+ targetForms: z.ZodArray<z.ZodEnum<{
2675
+ literal: "literal";
2676
+ subject: "subject";
2677
+ }>>;
2678
+ }, z.core.$strict>, z.ZodObject<{
2679
+ kind: z.ZodLiteral<"products">;
2680
+ targetForms: z.ZodArray<z.ZodEnum<{
2681
+ literal: "literal";
2682
+ subject: "subject";
2683
+ }>>;
2684
+ }, z.core.$strict>, z.ZodObject<{
2685
+ kind: z.ZodLiteral<"collection">;
2686
+ targetForms: z.ZodArray<z.ZodEnum<{
2687
+ literal: "literal";
2688
+ subject: "subject";
2689
+ }>>;
2690
+ }, z.core.$strict>, z.ZodObject<{
2691
+ kind: z.ZodLiteral<"collections">;
2692
+ targetForms: z.ZodArray<z.ZodEnum<{
2693
+ literal: "literal";
2694
+ }>>;
2695
+ }, z.core.$strict>], "kind">;
2696
+ placement: z.ZodObject<{
2697
+ allowedScreenKinds: z.ZodNullable<z.ZodArray<z.ZodEnum<{
2698
+ custom: "custom";
2699
+ product: "product";
2700
+ collection: "collection";
2701
+ search: "search";
2702
+ home: "home";
2703
+ cart: "cart";
2704
+ account: "account";
2705
+ }>>>;
2706
+ maxPerScreen: z.ZodNullable<z.ZodInt>;
2707
+ }, z.core.$strict>;
2708
+ kind: z.ZodLiteral<"code">;
2709
+ }, z.core.$strict>], "kind">;
2710
+ }, z.core.$strict>>>;
2711
+ }, z.core.$strip>;
2712
+ export type FrozenBlockDefinition = z.infer<typeof frozenBlockDefinitionSchema>;
2713
+ export type EnvelopeBlockDefinitions = z.infer<typeof envelopeBlockDefinitionsSchema>;
2714
+ export type ShellBody = z.infer<typeof shellBodySchema>;
2715
+ export type ShellEnvelope = z.infer<typeof shellEnvelopeSchema>;
2716
+ export type ScreenEnvelope = z.infer<typeof screenEnvelopeSchema>;
2717
+ export type PreviewTarget = z.infer<typeof previewTargetSchema>;
2718
+ export type PreviewShellEnvelope = z.infer<typeof previewShellEnvelopeSchema>;
2719
+ export type PreviewScreenEnvelope = z.infer<typeof previewScreenEnvelopeSchema>;
2720
+ export {};
2721
+ //# sourceMappingURL=envelope.d.ts.map