@viccy123/tapcli 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 (97) hide show
  1. package/dist/a2ui/index.d.ts +5 -0
  2. package/dist/a2ui/index.d.ts.map +1 -0
  3. package/dist/a2ui/index.js +4 -0
  4. package/dist/a2ui/index.js.map +1 -0
  5. package/dist/a2ui/schemas.d.ts +1953 -0
  6. package/dist/a2ui/schemas.d.ts.map +1 -0
  7. package/dist/a2ui/schemas.js +107 -0
  8. package/dist/a2ui/schemas.js.map +1 -0
  9. package/dist/a2ui/surface-manager.d.ts +21 -0
  10. package/dist/a2ui/surface-manager.d.ts.map +1 -0
  11. package/dist/a2ui/surface-manager.js +71 -0
  12. package/dist/a2ui/surface-manager.js.map +1 -0
  13. package/dist/a2ui/types.d.ts +50 -0
  14. package/dist/a2ui/types.d.ts.map +1 -0
  15. package/dist/a2ui/types.js +2 -0
  16. package/dist/a2ui/types.js.map +1 -0
  17. package/dist/ai/analyzer.d.ts +19 -0
  18. package/dist/ai/analyzer.d.ts.map +1 -0
  19. package/dist/ai/analyzer.js +87 -0
  20. package/dist/ai/analyzer.js.map +1 -0
  21. package/dist/ai/index.d.ts +6 -0
  22. package/dist/ai/index.d.ts.map +1 -0
  23. package/dist/ai/index.js +4 -0
  24. package/dist/ai/index.js.map +1 -0
  25. package/dist/ai/prompts.d.ts +5 -0
  26. package/dist/ai/prompts.d.ts.map +1 -0
  27. package/dist/ai/prompts.js +81 -0
  28. package/dist/ai/prompts.js.map +1 -0
  29. package/dist/ai/ui-generator.d.ts +14 -0
  30. package/dist/ai/ui-generator.d.ts.map +1 -0
  31. package/dist/ai/ui-generator.js +172 -0
  32. package/dist/ai/ui-generator.js.map +1 -0
  33. package/dist/auth/index.d.ts +2 -0
  34. package/dist/auth/index.d.ts.map +1 -0
  35. package/dist/auth/index.js +2 -0
  36. package/dist/auth/index.js.map +1 -0
  37. package/dist/auth/pairing.d.ts +18 -0
  38. package/dist/auth/pairing.d.ts.map +1 -0
  39. package/dist/auth/pairing.js +59 -0
  40. package/dist/auth/pairing.js.map +1 -0
  41. package/dist/config/index.d.ts +7 -0
  42. package/dist/config/index.d.ts.map +1 -0
  43. package/dist/config/index.js +31 -0
  44. package/dist/config/index.js.map +1 -0
  45. package/dist/config/schema.d.ts +89 -0
  46. package/dist/config/schema.d.ts.map +1 -0
  47. package/dist/config/schema.js +22 -0
  48. package/dist/config/schema.js.map +1 -0
  49. package/dist/index.d.ts +3 -0
  50. package/dist/index.d.ts.map +1 -0
  51. package/dist/index.js +34 -0
  52. package/dist/index.js.map +1 -0
  53. package/dist/protocol/index.d.ts +3 -0
  54. package/dist/protocol/index.d.ts.map +1 -0
  55. package/dist/protocol/index.js +3 -0
  56. package/dist/protocol/index.js.map +1 -0
  57. package/dist/protocol/schemas.d.ts +77 -0
  58. package/dist/protocol/schemas.d.ts.map +1 -0
  59. package/dist/protocol/schemas.js +18 -0
  60. package/dist/protocol/schemas.js.map +1 -0
  61. package/dist/protocol/types.d.ts +74 -0
  62. package/dist/protocol/types.d.ts.map +1 -0
  63. package/dist/protocol/types.js +2 -0
  64. package/dist/protocol/types.js.map +1 -0
  65. package/dist/pty/index.d.ts +5 -0
  66. package/dist/pty/index.d.ts.map +1 -0
  67. package/dist/pty/index.js +3 -0
  68. package/dist/pty/index.js.map +1 -0
  69. package/dist/pty/session.d.ts +17 -0
  70. package/dist/pty/session.d.ts.map +1 -0
  71. package/dist/pty/session.js +71 -0
  72. package/dist/pty/session.js.map +1 -0
  73. package/dist/pty/terminal-query-interceptor.d.ts +27 -0
  74. package/dist/pty/terminal-query-interceptor.d.ts.map +1 -0
  75. package/dist/pty/terminal-query-interceptor.js +63 -0
  76. package/dist/pty/terminal-query-interceptor.js.map +1 -0
  77. package/dist/pty/types.d.ts +13 -0
  78. package/dist/pty/types.d.ts.map +1 -0
  79. package/dist/pty/types.js +2 -0
  80. package/dist/pty/types.js.map +1 -0
  81. package/dist/server.d.ts +60 -0
  82. package/dist/server.d.ts.map +1 -0
  83. package/dist/server.js +524 -0
  84. package/dist/server.js.map +1 -0
  85. package/dist/transport/client.d.ts +26 -0
  86. package/dist/transport/client.d.ts.map +1 -0
  87. package/dist/transport/client.js +68 -0
  88. package/dist/transport/client.js.map +1 -0
  89. package/dist/transport/index.d.ts +5 -0
  90. package/dist/transport/index.d.ts.map +1 -0
  91. package/dist/transport/index.js +3 -0
  92. package/dist/transport/index.js.map +1 -0
  93. package/dist/transport/websocket.d.ts +25 -0
  94. package/dist/transport/websocket.d.ts.map +1 -0
  95. package/dist/transport/websocket.js +61 -0
  96. package/dist/transport/websocket.js.map +1 -0
  97. package/package.json +39 -0
@@ -0,0 +1,1953 @@
1
+ import { z } from 'zod';
2
+ export declare const A2UIActionSchema: z.ZodObject<{
3
+ type: z.ZodString;
4
+ value: z.ZodOptional<z.ZodString>;
5
+ valuePath: z.ZodOptional<z.ZodString>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ type: string;
8
+ value?: string | undefined;
9
+ valuePath?: string | undefined;
10
+ }, {
11
+ type: string;
12
+ value?: string | undefined;
13
+ valuePath?: string | undefined;
14
+ }>;
15
+ export declare const ButtonPropertiesSchema: z.ZodObject<{
16
+ label: z.ZodString;
17
+ variant: z.ZodOptional<z.ZodEnum<["filled", "elevated", "outlined", "text"]>>;
18
+ disabled: z.ZodOptional<z.ZodBoolean>;
19
+ action: z.ZodObject<{
20
+ type: z.ZodString;
21
+ value: z.ZodOptional<z.ZodString>;
22
+ valuePath: z.ZodOptional<z.ZodString>;
23
+ }, "strip", z.ZodTypeAny, {
24
+ type: string;
25
+ value?: string | undefined;
26
+ valuePath?: string | undefined;
27
+ }, {
28
+ type: string;
29
+ value?: string | undefined;
30
+ valuePath?: string | undefined;
31
+ }>;
32
+ }, "strip", z.ZodTypeAny, {
33
+ action: {
34
+ type: string;
35
+ value?: string | undefined;
36
+ valuePath?: string | undefined;
37
+ };
38
+ label: string;
39
+ variant?: "text" | "filled" | "outlined" | "elevated" | undefined;
40
+ disabled?: boolean | undefined;
41
+ }, {
42
+ action: {
43
+ type: string;
44
+ value?: string | undefined;
45
+ valuePath?: string | undefined;
46
+ };
47
+ label: string;
48
+ variant?: "text" | "filled" | "outlined" | "elevated" | undefined;
49
+ disabled?: boolean | undefined;
50
+ }>;
51
+ export declare const TextFieldCheckSchema: z.ZodObject<{
52
+ type: z.ZodEnum<["required", "minLength", "maxLength", "pattern"]>;
53
+ value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
54
+ message: z.ZodOptional<z.ZodString>;
55
+ }, "strip", z.ZodTypeAny, {
56
+ type: "required" | "minLength" | "maxLength" | "pattern";
57
+ value?: string | number | undefined;
58
+ message?: string | undefined;
59
+ }, {
60
+ type: "required" | "minLength" | "maxLength" | "pattern";
61
+ value?: string | number | undefined;
62
+ message?: string | undefined;
63
+ }>;
64
+ export declare const TextFieldPropertiesSchema: z.ZodObject<{
65
+ label: z.ZodOptional<z.ZodString>;
66
+ placeholder: z.ZodOptional<z.ZodString>;
67
+ value: z.ZodOptional<z.ZodString>;
68
+ bindTo: z.ZodOptional<z.ZodString>;
69
+ multiline: z.ZodOptional<z.ZodBoolean>;
70
+ maxLines: z.ZodOptional<z.ZodNumber>;
71
+ checks: z.ZodOptional<z.ZodArray<z.ZodObject<{
72
+ type: z.ZodEnum<["required", "minLength", "maxLength", "pattern"]>;
73
+ value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
74
+ message: z.ZodOptional<z.ZodString>;
75
+ }, "strip", z.ZodTypeAny, {
76
+ type: "required" | "minLength" | "maxLength" | "pattern";
77
+ value?: string | number | undefined;
78
+ message?: string | undefined;
79
+ }, {
80
+ type: "required" | "minLength" | "maxLength" | "pattern";
81
+ value?: string | number | undefined;
82
+ message?: string | undefined;
83
+ }>, "many">>;
84
+ }, "strip", z.ZodTypeAny, {
85
+ value?: string | undefined;
86
+ label?: string | undefined;
87
+ bindTo?: string | undefined;
88
+ placeholder?: string | undefined;
89
+ multiline?: boolean | undefined;
90
+ maxLines?: number | undefined;
91
+ checks?: {
92
+ type: "required" | "minLength" | "maxLength" | "pattern";
93
+ value?: string | number | undefined;
94
+ message?: string | undefined;
95
+ }[] | undefined;
96
+ }, {
97
+ value?: string | undefined;
98
+ label?: string | undefined;
99
+ bindTo?: string | undefined;
100
+ placeholder?: string | undefined;
101
+ multiline?: boolean | undefined;
102
+ maxLines?: number | undefined;
103
+ checks?: {
104
+ type: "required" | "minLength" | "maxLength" | "pattern";
105
+ value?: string | number | undefined;
106
+ message?: string | undefined;
107
+ }[] | undefined;
108
+ }>;
109
+ export declare const ChoiceOptionSchema: z.ZodObject<{
110
+ id: z.ZodString;
111
+ label: z.ZodString;
112
+ description: z.ZodOptional<z.ZodString>;
113
+ }, "strip", z.ZodTypeAny, {
114
+ id: string;
115
+ label: string;
116
+ description?: string | undefined;
117
+ }, {
118
+ id: string;
119
+ label: string;
120
+ description?: string | undefined;
121
+ }>;
122
+ export declare const ChoicePickerPropertiesSchema: z.ZodObject<{
123
+ label: z.ZodOptional<z.ZodString>;
124
+ options: z.ZodArray<z.ZodObject<{
125
+ id: z.ZodString;
126
+ label: z.ZodString;
127
+ description: z.ZodOptional<z.ZodString>;
128
+ }, "strip", z.ZodTypeAny, {
129
+ id: string;
130
+ label: string;
131
+ description?: string | undefined;
132
+ }, {
133
+ id: string;
134
+ label: string;
135
+ description?: string | undefined;
136
+ }>, "many">;
137
+ mode: z.ZodEnum<["single", "multiple"]>;
138
+ selectedIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
139
+ bindTo: z.ZodOptional<z.ZodString>;
140
+ }, "strip", z.ZodTypeAny, {
141
+ options: {
142
+ id: string;
143
+ label: string;
144
+ description?: string | undefined;
145
+ }[];
146
+ mode: "single" | "multiple";
147
+ label?: string | undefined;
148
+ bindTo?: string | undefined;
149
+ selectedIds?: string[] | undefined;
150
+ }, {
151
+ options: {
152
+ id: string;
153
+ label: string;
154
+ description?: string | undefined;
155
+ }[];
156
+ mode: "single" | "multiple";
157
+ label?: string | undefined;
158
+ bindTo?: string | undefined;
159
+ selectedIds?: string[] | undefined;
160
+ }>;
161
+ export declare const TextPropertiesSchema: z.ZodObject<{
162
+ text: z.ZodString;
163
+ style: z.ZodOptional<z.ZodEnum<["headline", "title", "body", "label", "caption"]>>;
164
+ align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
165
+ markdown: z.ZodOptional<z.ZodBoolean>;
166
+ }, "strip", z.ZodTypeAny, {
167
+ text: string;
168
+ style?: "title" | "label" | "headline" | "body" | "caption" | undefined;
169
+ align?: "left" | "center" | "right" | undefined;
170
+ markdown?: boolean | undefined;
171
+ }, {
172
+ text: string;
173
+ style?: "title" | "label" | "headline" | "body" | "caption" | undefined;
174
+ align?: "left" | "center" | "right" | undefined;
175
+ markdown?: boolean | undefined;
176
+ }>;
177
+ export declare const CardPropertiesSchema: z.ZodObject<{
178
+ title: z.ZodOptional<z.ZodString>;
179
+ subtitle: z.ZodOptional<z.ZodString>;
180
+ }, "strip", z.ZodTypeAny, {
181
+ title?: string | undefined;
182
+ subtitle?: string | undefined;
183
+ }, {
184
+ title?: string | undefined;
185
+ subtitle?: string | undefined;
186
+ }>;
187
+ export declare const ComponentPropertiesMap: {
188
+ readonly button: z.ZodObject<{
189
+ label: z.ZodString;
190
+ variant: z.ZodOptional<z.ZodEnum<["filled", "elevated", "outlined", "text"]>>;
191
+ disabled: z.ZodOptional<z.ZodBoolean>;
192
+ action: z.ZodObject<{
193
+ type: z.ZodString;
194
+ value: z.ZodOptional<z.ZodString>;
195
+ valuePath: z.ZodOptional<z.ZodString>;
196
+ }, "strip", z.ZodTypeAny, {
197
+ type: string;
198
+ value?: string | undefined;
199
+ valuePath?: string | undefined;
200
+ }, {
201
+ type: string;
202
+ value?: string | undefined;
203
+ valuePath?: string | undefined;
204
+ }>;
205
+ }, "strip", z.ZodTypeAny, {
206
+ action: {
207
+ type: string;
208
+ value?: string | undefined;
209
+ valuePath?: string | undefined;
210
+ };
211
+ label: string;
212
+ variant?: "text" | "filled" | "outlined" | "elevated" | undefined;
213
+ disabled?: boolean | undefined;
214
+ }, {
215
+ action: {
216
+ type: string;
217
+ value?: string | undefined;
218
+ valuePath?: string | undefined;
219
+ };
220
+ label: string;
221
+ variant?: "text" | "filled" | "outlined" | "elevated" | undefined;
222
+ disabled?: boolean | undefined;
223
+ }>;
224
+ readonly textField: z.ZodObject<{
225
+ label: z.ZodOptional<z.ZodString>;
226
+ placeholder: z.ZodOptional<z.ZodString>;
227
+ value: z.ZodOptional<z.ZodString>;
228
+ bindTo: z.ZodOptional<z.ZodString>;
229
+ multiline: z.ZodOptional<z.ZodBoolean>;
230
+ maxLines: z.ZodOptional<z.ZodNumber>;
231
+ checks: z.ZodOptional<z.ZodArray<z.ZodObject<{
232
+ type: z.ZodEnum<["required", "minLength", "maxLength", "pattern"]>;
233
+ value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
234
+ message: z.ZodOptional<z.ZodString>;
235
+ }, "strip", z.ZodTypeAny, {
236
+ type: "required" | "minLength" | "maxLength" | "pattern";
237
+ value?: string | number | undefined;
238
+ message?: string | undefined;
239
+ }, {
240
+ type: "required" | "minLength" | "maxLength" | "pattern";
241
+ value?: string | number | undefined;
242
+ message?: string | undefined;
243
+ }>, "many">>;
244
+ }, "strip", z.ZodTypeAny, {
245
+ value?: string | undefined;
246
+ label?: string | undefined;
247
+ bindTo?: string | undefined;
248
+ placeholder?: string | undefined;
249
+ multiline?: boolean | undefined;
250
+ maxLines?: number | undefined;
251
+ checks?: {
252
+ type: "required" | "minLength" | "maxLength" | "pattern";
253
+ value?: string | number | undefined;
254
+ message?: string | undefined;
255
+ }[] | undefined;
256
+ }, {
257
+ value?: string | undefined;
258
+ label?: string | undefined;
259
+ bindTo?: string | undefined;
260
+ placeholder?: string | undefined;
261
+ multiline?: boolean | undefined;
262
+ maxLines?: number | undefined;
263
+ checks?: {
264
+ type: "required" | "minLength" | "maxLength" | "pattern";
265
+ value?: string | number | undefined;
266
+ message?: string | undefined;
267
+ }[] | undefined;
268
+ }>;
269
+ readonly choicePicker: z.ZodObject<{
270
+ label: z.ZodOptional<z.ZodString>;
271
+ options: z.ZodArray<z.ZodObject<{
272
+ id: z.ZodString;
273
+ label: z.ZodString;
274
+ description: z.ZodOptional<z.ZodString>;
275
+ }, "strip", z.ZodTypeAny, {
276
+ id: string;
277
+ label: string;
278
+ description?: string | undefined;
279
+ }, {
280
+ id: string;
281
+ label: string;
282
+ description?: string | undefined;
283
+ }>, "many">;
284
+ mode: z.ZodEnum<["single", "multiple"]>;
285
+ selectedIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
286
+ bindTo: z.ZodOptional<z.ZodString>;
287
+ }, "strip", z.ZodTypeAny, {
288
+ options: {
289
+ id: string;
290
+ label: string;
291
+ description?: string | undefined;
292
+ }[];
293
+ mode: "single" | "multiple";
294
+ label?: string | undefined;
295
+ bindTo?: string | undefined;
296
+ selectedIds?: string[] | undefined;
297
+ }, {
298
+ options: {
299
+ id: string;
300
+ label: string;
301
+ description?: string | undefined;
302
+ }[];
303
+ mode: "single" | "multiple";
304
+ label?: string | undefined;
305
+ bindTo?: string | undefined;
306
+ selectedIds?: string[] | undefined;
307
+ }>;
308
+ readonly text: z.ZodObject<{
309
+ text: z.ZodString;
310
+ style: z.ZodOptional<z.ZodEnum<["headline", "title", "body", "label", "caption"]>>;
311
+ align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
312
+ markdown: z.ZodOptional<z.ZodBoolean>;
313
+ }, "strip", z.ZodTypeAny, {
314
+ text: string;
315
+ style?: "title" | "label" | "headline" | "body" | "caption" | undefined;
316
+ align?: "left" | "center" | "right" | undefined;
317
+ markdown?: boolean | undefined;
318
+ }, {
319
+ text: string;
320
+ style?: "title" | "label" | "headline" | "body" | "caption" | undefined;
321
+ align?: "left" | "center" | "right" | undefined;
322
+ markdown?: boolean | undefined;
323
+ }>;
324
+ readonly card: z.ZodObject<{
325
+ title: z.ZodOptional<z.ZodString>;
326
+ subtitle: z.ZodOptional<z.ZodString>;
327
+ }, "strip", z.ZodTypeAny, {
328
+ title?: string | undefined;
329
+ subtitle?: string | undefined;
330
+ }, {
331
+ title?: string | undefined;
332
+ subtitle?: string | undefined;
333
+ }>;
334
+ };
335
+ export declare const A2UIComponentSchema: z.ZodObject<{
336
+ id: z.ZodString;
337
+ component: z.ZodEnum<["button", "textField", "choicePicker", "text", "card"]>;
338
+ parentId: z.ZodOptional<z.ZodString>;
339
+ properties: z.ZodUnion<[z.ZodObject<{
340
+ label: z.ZodString;
341
+ variant: z.ZodOptional<z.ZodEnum<["filled", "elevated", "outlined", "text"]>>;
342
+ disabled: z.ZodOptional<z.ZodBoolean>;
343
+ action: z.ZodObject<{
344
+ type: z.ZodString;
345
+ value: z.ZodOptional<z.ZodString>;
346
+ valuePath: z.ZodOptional<z.ZodString>;
347
+ }, "strip", z.ZodTypeAny, {
348
+ type: string;
349
+ value?: string | undefined;
350
+ valuePath?: string | undefined;
351
+ }, {
352
+ type: string;
353
+ value?: string | undefined;
354
+ valuePath?: string | undefined;
355
+ }>;
356
+ }, "strip", z.ZodTypeAny, {
357
+ action: {
358
+ type: string;
359
+ value?: string | undefined;
360
+ valuePath?: string | undefined;
361
+ };
362
+ label: string;
363
+ variant?: "text" | "filled" | "outlined" | "elevated" | undefined;
364
+ disabled?: boolean | undefined;
365
+ }, {
366
+ action: {
367
+ type: string;
368
+ value?: string | undefined;
369
+ valuePath?: string | undefined;
370
+ };
371
+ label: string;
372
+ variant?: "text" | "filled" | "outlined" | "elevated" | undefined;
373
+ disabled?: boolean | undefined;
374
+ }>, z.ZodObject<{
375
+ label: z.ZodOptional<z.ZodString>;
376
+ placeholder: z.ZodOptional<z.ZodString>;
377
+ value: z.ZodOptional<z.ZodString>;
378
+ bindTo: z.ZodOptional<z.ZodString>;
379
+ multiline: z.ZodOptional<z.ZodBoolean>;
380
+ maxLines: z.ZodOptional<z.ZodNumber>;
381
+ checks: z.ZodOptional<z.ZodArray<z.ZodObject<{
382
+ type: z.ZodEnum<["required", "minLength", "maxLength", "pattern"]>;
383
+ value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
384
+ message: z.ZodOptional<z.ZodString>;
385
+ }, "strip", z.ZodTypeAny, {
386
+ type: "required" | "minLength" | "maxLength" | "pattern";
387
+ value?: string | number | undefined;
388
+ message?: string | undefined;
389
+ }, {
390
+ type: "required" | "minLength" | "maxLength" | "pattern";
391
+ value?: string | number | undefined;
392
+ message?: string | undefined;
393
+ }>, "many">>;
394
+ }, "strip", z.ZodTypeAny, {
395
+ value?: string | undefined;
396
+ label?: string | undefined;
397
+ bindTo?: string | undefined;
398
+ placeholder?: string | undefined;
399
+ multiline?: boolean | undefined;
400
+ maxLines?: number | undefined;
401
+ checks?: {
402
+ type: "required" | "minLength" | "maxLength" | "pattern";
403
+ value?: string | number | undefined;
404
+ message?: string | undefined;
405
+ }[] | undefined;
406
+ }, {
407
+ value?: string | undefined;
408
+ label?: string | undefined;
409
+ bindTo?: string | undefined;
410
+ placeholder?: string | undefined;
411
+ multiline?: boolean | undefined;
412
+ maxLines?: number | undefined;
413
+ checks?: {
414
+ type: "required" | "minLength" | "maxLength" | "pattern";
415
+ value?: string | number | undefined;
416
+ message?: string | undefined;
417
+ }[] | undefined;
418
+ }>, z.ZodObject<{
419
+ label: z.ZodOptional<z.ZodString>;
420
+ options: z.ZodArray<z.ZodObject<{
421
+ id: z.ZodString;
422
+ label: z.ZodString;
423
+ description: z.ZodOptional<z.ZodString>;
424
+ }, "strip", z.ZodTypeAny, {
425
+ id: string;
426
+ label: string;
427
+ description?: string | undefined;
428
+ }, {
429
+ id: string;
430
+ label: string;
431
+ description?: string | undefined;
432
+ }>, "many">;
433
+ mode: z.ZodEnum<["single", "multiple"]>;
434
+ selectedIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
435
+ bindTo: z.ZodOptional<z.ZodString>;
436
+ }, "strip", z.ZodTypeAny, {
437
+ options: {
438
+ id: string;
439
+ label: string;
440
+ description?: string | undefined;
441
+ }[];
442
+ mode: "single" | "multiple";
443
+ label?: string | undefined;
444
+ bindTo?: string | undefined;
445
+ selectedIds?: string[] | undefined;
446
+ }, {
447
+ options: {
448
+ id: string;
449
+ label: string;
450
+ description?: string | undefined;
451
+ }[];
452
+ mode: "single" | "multiple";
453
+ label?: string | undefined;
454
+ bindTo?: string | undefined;
455
+ selectedIds?: string[] | undefined;
456
+ }>, z.ZodObject<{
457
+ text: z.ZodString;
458
+ style: z.ZodOptional<z.ZodEnum<["headline", "title", "body", "label", "caption"]>>;
459
+ align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
460
+ markdown: z.ZodOptional<z.ZodBoolean>;
461
+ }, "strip", z.ZodTypeAny, {
462
+ text: string;
463
+ style?: "title" | "label" | "headline" | "body" | "caption" | undefined;
464
+ align?: "left" | "center" | "right" | undefined;
465
+ markdown?: boolean | undefined;
466
+ }, {
467
+ text: string;
468
+ style?: "title" | "label" | "headline" | "body" | "caption" | undefined;
469
+ align?: "left" | "center" | "right" | undefined;
470
+ markdown?: boolean | undefined;
471
+ }>, z.ZodObject<{
472
+ title: z.ZodOptional<z.ZodString>;
473
+ subtitle: z.ZodOptional<z.ZodString>;
474
+ }, "strip", z.ZodTypeAny, {
475
+ title?: string | undefined;
476
+ subtitle?: string | undefined;
477
+ }, {
478
+ title?: string | undefined;
479
+ subtitle?: string | undefined;
480
+ }>]>;
481
+ }, "strip", z.ZodTypeAny, {
482
+ id: string;
483
+ component: "text" | "card" | "button" | "choicePicker" | "textField";
484
+ properties: {
485
+ action: {
486
+ type: string;
487
+ value?: string | undefined;
488
+ valuePath?: string | undefined;
489
+ };
490
+ label: string;
491
+ variant?: "text" | "filled" | "outlined" | "elevated" | undefined;
492
+ disabled?: boolean | undefined;
493
+ } | {
494
+ value?: string | undefined;
495
+ label?: string | undefined;
496
+ bindTo?: string | undefined;
497
+ placeholder?: string | undefined;
498
+ multiline?: boolean | undefined;
499
+ maxLines?: number | undefined;
500
+ checks?: {
501
+ type: "required" | "minLength" | "maxLength" | "pattern";
502
+ value?: string | number | undefined;
503
+ message?: string | undefined;
504
+ }[] | undefined;
505
+ } | {
506
+ options: {
507
+ id: string;
508
+ label: string;
509
+ description?: string | undefined;
510
+ }[];
511
+ mode: "single" | "multiple";
512
+ label?: string | undefined;
513
+ bindTo?: string | undefined;
514
+ selectedIds?: string[] | undefined;
515
+ } | {
516
+ text: string;
517
+ style?: "title" | "label" | "headline" | "body" | "caption" | undefined;
518
+ align?: "left" | "center" | "right" | undefined;
519
+ markdown?: boolean | undefined;
520
+ } | {
521
+ title?: string | undefined;
522
+ subtitle?: string | undefined;
523
+ };
524
+ parentId?: string | undefined;
525
+ }, {
526
+ id: string;
527
+ component: "text" | "card" | "button" | "choicePicker" | "textField";
528
+ properties: {
529
+ action: {
530
+ type: string;
531
+ value?: string | undefined;
532
+ valuePath?: string | undefined;
533
+ };
534
+ label: string;
535
+ variant?: "text" | "filled" | "outlined" | "elevated" | undefined;
536
+ disabled?: boolean | undefined;
537
+ } | {
538
+ value?: string | undefined;
539
+ label?: string | undefined;
540
+ bindTo?: string | undefined;
541
+ placeholder?: string | undefined;
542
+ multiline?: boolean | undefined;
543
+ maxLines?: number | undefined;
544
+ checks?: {
545
+ type: "required" | "minLength" | "maxLength" | "pattern";
546
+ value?: string | number | undefined;
547
+ message?: string | undefined;
548
+ }[] | undefined;
549
+ } | {
550
+ options: {
551
+ id: string;
552
+ label: string;
553
+ description?: string | undefined;
554
+ }[];
555
+ mode: "single" | "multiple";
556
+ label?: string | undefined;
557
+ bindTo?: string | undefined;
558
+ selectedIds?: string[] | undefined;
559
+ } | {
560
+ text: string;
561
+ style?: "title" | "label" | "headline" | "body" | "caption" | undefined;
562
+ align?: "left" | "center" | "right" | undefined;
563
+ markdown?: boolean | undefined;
564
+ } | {
565
+ title?: string | undefined;
566
+ subtitle?: string | undefined;
567
+ };
568
+ parentId?: string | undefined;
569
+ }>;
570
+ export declare const CreateSurfacePayloadSchema: z.ZodObject<{
571
+ action: z.ZodLiteral<"createSurface">;
572
+ catalogId: z.ZodString;
573
+ components: z.ZodOptional<z.ZodArray<z.ZodObject<{
574
+ id: z.ZodString;
575
+ component: z.ZodEnum<["button", "textField", "choicePicker", "text", "card"]>;
576
+ parentId: z.ZodOptional<z.ZodString>;
577
+ properties: z.ZodUnion<[z.ZodObject<{
578
+ label: z.ZodString;
579
+ variant: z.ZodOptional<z.ZodEnum<["filled", "elevated", "outlined", "text"]>>;
580
+ disabled: z.ZodOptional<z.ZodBoolean>;
581
+ action: z.ZodObject<{
582
+ type: z.ZodString;
583
+ value: z.ZodOptional<z.ZodString>;
584
+ valuePath: z.ZodOptional<z.ZodString>;
585
+ }, "strip", z.ZodTypeAny, {
586
+ type: string;
587
+ value?: string | undefined;
588
+ valuePath?: string | undefined;
589
+ }, {
590
+ type: string;
591
+ value?: string | undefined;
592
+ valuePath?: string | undefined;
593
+ }>;
594
+ }, "strip", z.ZodTypeAny, {
595
+ action: {
596
+ type: string;
597
+ value?: string | undefined;
598
+ valuePath?: string | undefined;
599
+ };
600
+ label: string;
601
+ variant?: "text" | "filled" | "outlined" | "elevated" | undefined;
602
+ disabled?: boolean | undefined;
603
+ }, {
604
+ action: {
605
+ type: string;
606
+ value?: string | undefined;
607
+ valuePath?: string | undefined;
608
+ };
609
+ label: string;
610
+ variant?: "text" | "filled" | "outlined" | "elevated" | undefined;
611
+ disabled?: boolean | undefined;
612
+ }>, z.ZodObject<{
613
+ label: z.ZodOptional<z.ZodString>;
614
+ placeholder: z.ZodOptional<z.ZodString>;
615
+ value: z.ZodOptional<z.ZodString>;
616
+ bindTo: z.ZodOptional<z.ZodString>;
617
+ multiline: z.ZodOptional<z.ZodBoolean>;
618
+ maxLines: z.ZodOptional<z.ZodNumber>;
619
+ checks: z.ZodOptional<z.ZodArray<z.ZodObject<{
620
+ type: z.ZodEnum<["required", "minLength", "maxLength", "pattern"]>;
621
+ value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
622
+ message: z.ZodOptional<z.ZodString>;
623
+ }, "strip", z.ZodTypeAny, {
624
+ type: "required" | "minLength" | "maxLength" | "pattern";
625
+ value?: string | number | undefined;
626
+ message?: string | undefined;
627
+ }, {
628
+ type: "required" | "minLength" | "maxLength" | "pattern";
629
+ value?: string | number | undefined;
630
+ message?: string | undefined;
631
+ }>, "many">>;
632
+ }, "strip", z.ZodTypeAny, {
633
+ value?: string | undefined;
634
+ label?: string | undefined;
635
+ bindTo?: string | undefined;
636
+ placeholder?: string | undefined;
637
+ multiline?: boolean | undefined;
638
+ maxLines?: number | undefined;
639
+ checks?: {
640
+ type: "required" | "minLength" | "maxLength" | "pattern";
641
+ value?: string | number | undefined;
642
+ message?: string | undefined;
643
+ }[] | undefined;
644
+ }, {
645
+ value?: string | undefined;
646
+ label?: string | undefined;
647
+ bindTo?: string | undefined;
648
+ placeholder?: string | undefined;
649
+ multiline?: boolean | undefined;
650
+ maxLines?: number | undefined;
651
+ checks?: {
652
+ type: "required" | "minLength" | "maxLength" | "pattern";
653
+ value?: string | number | undefined;
654
+ message?: string | undefined;
655
+ }[] | undefined;
656
+ }>, z.ZodObject<{
657
+ label: z.ZodOptional<z.ZodString>;
658
+ options: z.ZodArray<z.ZodObject<{
659
+ id: z.ZodString;
660
+ label: z.ZodString;
661
+ description: z.ZodOptional<z.ZodString>;
662
+ }, "strip", z.ZodTypeAny, {
663
+ id: string;
664
+ label: string;
665
+ description?: string | undefined;
666
+ }, {
667
+ id: string;
668
+ label: string;
669
+ description?: string | undefined;
670
+ }>, "many">;
671
+ mode: z.ZodEnum<["single", "multiple"]>;
672
+ selectedIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
673
+ bindTo: z.ZodOptional<z.ZodString>;
674
+ }, "strip", z.ZodTypeAny, {
675
+ options: {
676
+ id: string;
677
+ label: string;
678
+ description?: string | undefined;
679
+ }[];
680
+ mode: "single" | "multiple";
681
+ label?: string | undefined;
682
+ bindTo?: string | undefined;
683
+ selectedIds?: string[] | undefined;
684
+ }, {
685
+ options: {
686
+ id: string;
687
+ label: string;
688
+ description?: string | undefined;
689
+ }[];
690
+ mode: "single" | "multiple";
691
+ label?: string | undefined;
692
+ bindTo?: string | undefined;
693
+ selectedIds?: string[] | undefined;
694
+ }>, z.ZodObject<{
695
+ text: z.ZodString;
696
+ style: z.ZodOptional<z.ZodEnum<["headline", "title", "body", "label", "caption"]>>;
697
+ align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
698
+ markdown: z.ZodOptional<z.ZodBoolean>;
699
+ }, "strip", z.ZodTypeAny, {
700
+ text: string;
701
+ style?: "title" | "label" | "headline" | "body" | "caption" | undefined;
702
+ align?: "left" | "center" | "right" | undefined;
703
+ markdown?: boolean | undefined;
704
+ }, {
705
+ text: string;
706
+ style?: "title" | "label" | "headline" | "body" | "caption" | undefined;
707
+ align?: "left" | "center" | "right" | undefined;
708
+ markdown?: boolean | undefined;
709
+ }>, z.ZodObject<{
710
+ title: z.ZodOptional<z.ZodString>;
711
+ subtitle: z.ZodOptional<z.ZodString>;
712
+ }, "strip", z.ZodTypeAny, {
713
+ title?: string | undefined;
714
+ subtitle?: string | undefined;
715
+ }, {
716
+ title?: string | undefined;
717
+ subtitle?: string | undefined;
718
+ }>]>;
719
+ }, "strip", z.ZodTypeAny, {
720
+ id: string;
721
+ component: "text" | "card" | "button" | "choicePicker" | "textField";
722
+ properties: {
723
+ action: {
724
+ type: string;
725
+ value?: string | undefined;
726
+ valuePath?: string | undefined;
727
+ };
728
+ label: string;
729
+ variant?: "text" | "filled" | "outlined" | "elevated" | undefined;
730
+ disabled?: boolean | undefined;
731
+ } | {
732
+ value?: string | undefined;
733
+ label?: string | undefined;
734
+ bindTo?: string | undefined;
735
+ placeholder?: string | undefined;
736
+ multiline?: boolean | undefined;
737
+ maxLines?: number | undefined;
738
+ checks?: {
739
+ type: "required" | "minLength" | "maxLength" | "pattern";
740
+ value?: string | number | undefined;
741
+ message?: string | undefined;
742
+ }[] | undefined;
743
+ } | {
744
+ options: {
745
+ id: string;
746
+ label: string;
747
+ description?: string | undefined;
748
+ }[];
749
+ mode: "single" | "multiple";
750
+ label?: string | undefined;
751
+ bindTo?: string | undefined;
752
+ selectedIds?: string[] | undefined;
753
+ } | {
754
+ text: string;
755
+ style?: "title" | "label" | "headline" | "body" | "caption" | undefined;
756
+ align?: "left" | "center" | "right" | undefined;
757
+ markdown?: boolean | undefined;
758
+ } | {
759
+ title?: string | undefined;
760
+ subtitle?: string | undefined;
761
+ };
762
+ parentId?: string | undefined;
763
+ }, {
764
+ id: string;
765
+ component: "text" | "card" | "button" | "choicePicker" | "textField";
766
+ properties: {
767
+ action: {
768
+ type: string;
769
+ value?: string | undefined;
770
+ valuePath?: string | undefined;
771
+ };
772
+ label: string;
773
+ variant?: "text" | "filled" | "outlined" | "elevated" | undefined;
774
+ disabled?: boolean | undefined;
775
+ } | {
776
+ value?: string | undefined;
777
+ label?: string | undefined;
778
+ bindTo?: string | undefined;
779
+ placeholder?: string | undefined;
780
+ multiline?: boolean | undefined;
781
+ maxLines?: number | undefined;
782
+ checks?: {
783
+ type: "required" | "minLength" | "maxLength" | "pattern";
784
+ value?: string | number | undefined;
785
+ message?: string | undefined;
786
+ }[] | undefined;
787
+ } | {
788
+ options: {
789
+ id: string;
790
+ label: string;
791
+ description?: string | undefined;
792
+ }[];
793
+ mode: "single" | "multiple";
794
+ label?: string | undefined;
795
+ bindTo?: string | undefined;
796
+ selectedIds?: string[] | undefined;
797
+ } | {
798
+ text: string;
799
+ style?: "title" | "label" | "headline" | "body" | "caption" | undefined;
800
+ align?: "left" | "center" | "right" | undefined;
801
+ markdown?: boolean | undefined;
802
+ } | {
803
+ title?: string | undefined;
804
+ subtitle?: string | undefined;
805
+ };
806
+ parentId?: string | undefined;
807
+ }>, "many">>;
808
+ }, "strip", z.ZodTypeAny, {
809
+ action: "createSurface";
810
+ catalogId: string;
811
+ components?: {
812
+ id: string;
813
+ component: "text" | "card" | "button" | "choicePicker" | "textField";
814
+ properties: {
815
+ action: {
816
+ type: string;
817
+ value?: string | undefined;
818
+ valuePath?: string | undefined;
819
+ };
820
+ label: string;
821
+ variant?: "text" | "filled" | "outlined" | "elevated" | undefined;
822
+ disabled?: boolean | undefined;
823
+ } | {
824
+ value?: string | undefined;
825
+ label?: string | undefined;
826
+ bindTo?: string | undefined;
827
+ placeholder?: string | undefined;
828
+ multiline?: boolean | undefined;
829
+ maxLines?: number | undefined;
830
+ checks?: {
831
+ type: "required" | "minLength" | "maxLength" | "pattern";
832
+ value?: string | number | undefined;
833
+ message?: string | undefined;
834
+ }[] | undefined;
835
+ } | {
836
+ options: {
837
+ id: string;
838
+ label: string;
839
+ description?: string | undefined;
840
+ }[];
841
+ mode: "single" | "multiple";
842
+ label?: string | undefined;
843
+ bindTo?: string | undefined;
844
+ selectedIds?: string[] | undefined;
845
+ } | {
846
+ text: string;
847
+ style?: "title" | "label" | "headline" | "body" | "caption" | undefined;
848
+ align?: "left" | "center" | "right" | undefined;
849
+ markdown?: boolean | undefined;
850
+ } | {
851
+ title?: string | undefined;
852
+ subtitle?: string | undefined;
853
+ };
854
+ parentId?: string | undefined;
855
+ }[] | undefined;
856
+ }, {
857
+ action: "createSurface";
858
+ catalogId: string;
859
+ components?: {
860
+ id: string;
861
+ component: "text" | "card" | "button" | "choicePicker" | "textField";
862
+ properties: {
863
+ action: {
864
+ type: string;
865
+ value?: string | undefined;
866
+ valuePath?: string | undefined;
867
+ };
868
+ label: string;
869
+ variant?: "text" | "filled" | "outlined" | "elevated" | undefined;
870
+ disabled?: boolean | undefined;
871
+ } | {
872
+ value?: string | undefined;
873
+ label?: string | undefined;
874
+ bindTo?: string | undefined;
875
+ placeholder?: string | undefined;
876
+ multiline?: boolean | undefined;
877
+ maxLines?: number | undefined;
878
+ checks?: {
879
+ type: "required" | "minLength" | "maxLength" | "pattern";
880
+ value?: string | number | undefined;
881
+ message?: string | undefined;
882
+ }[] | undefined;
883
+ } | {
884
+ options: {
885
+ id: string;
886
+ label: string;
887
+ description?: string | undefined;
888
+ }[];
889
+ mode: "single" | "multiple";
890
+ label?: string | undefined;
891
+ bindTo?: string | undefined;
892
+ selectedIds?: string[] | undefined;
893
+ } | {
894
+ text: string;
895
+ style?: "title" | "label" | "headline" | "body" | "caption" | undefined;
896
+ align?: "left" | "center" | "right" | undefined;
897
+ markdown?: boolean | undefined;
898
+ } | {
899
+ title?: string | undefined;
900
+ subtitle?: string | undefined;
901
+ };
902
+ parentId?: string | undefined;
903
+ }[] | undefined;
904
+ }>;
905
+ export declare const UpdateComponentsPayloadSchema: z.ZodObject<{
906
+ action: z.ZodLiteral<"updateComponents">;
907
+ components: z.ZodArray<z.ZodObject<{
908
+ id: z.ZodString;
909
+ component: z.ZodEnum<["button", "textField", "choicePicker", "text", "card"]>;
910
+ parentId: z.ZodOptional<z.ZodString>;
911
+ properties: z.ZodUnion<[z.ZodObject<{
912
+ label: z.ZodString;
913
+ variant: z.ZodOptional<z.ZodEnum<["filled", "elevated", "outlined", "text"]>>;
914
+ disabled: z.ZodOptional<z.ZodBoolean>;
915
+ action: z.ZodObject<{
916
+ type: z.ZodString;
917
+ value: z.ZodOptional<z.ZodString>;
918
+ valuePath: z.ZodOptional<z.ZodString>;
919
+ }, "strip", z.ZodTypeAny, {
920
+ type: string;
921
+ value?: string | undefined;
922
+ valuePath?: string | undefined;
923
+ }, {
924
+ type: string;
925
+ value?: string | undefined;
926
+ valuePath?: string | undefined;
927
+ }>;
928
+ }, "strip", z.ZodTypeAny, {
929
+ action: {
930
+ type: string;
931
+ value?: string | undefined;
932
+ valuePath?: string | undefined;
933
+ };
934
+ label: string;
935
+ variant?: "text" | "filled" | "outlined" | "elevated" | undefined;
936
+ disabled?: boolean | undefined;
937
+ }, {
938
+ action: {
939
+ type: string;
940
+ value?: string | undefined;
941
+ valuePath?: string | undefined;
942
+ };
943
+ label: string;
944
+ variant?: "text" | "filled" | "outlined" | "elevated" | undefined;
945
+ disabled?: boolean | undefined;
946
+ }>, z.ZodObject<{
947
+ label: z.ZodOptional<z.ZodString>;
948
+ placeholder: z.ZodOptional<z.ZodString>;
949
+ value: z.ZodOptional<z.ZodString>;
950
+ bindTo: z.ZodOptional<z.ZodString>;
951
+ multiline: z.ZodOptional<z.ZodBoolean>;
952
+ maxLines: z.ZodOptional<z.ZodNumber>;
953
+ checks: z.ZodOptional<z.ZodArray<z.ZodObject<{
954
+ type: z.ZodEnum<["required", "minLength", "maxLength", "pattern"]>;
955
+ value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
956
+ message: z.ZodOptional<z.ZodString>;
957
+ }, "strip", z.ZodTypeAny, {
958
+ type: "required" | "minLength" | "maxLength" | "pattern";
959
+ value?: string | number | undefined;
960
+ message?: string | undefined;
961
+ }, {
962
+ type: "required" | "minLength" | "maxLength" | "pattern";
963
+ value?: string | number | undefined;
964
+ message?: string | undefined;
965
+ }>, "many">>;
966
+ }, "strip", z.ZodTypeAny, {
967
+ value?: string | undefined;
968
+ label?: string | undefined;
969
+ bindTo?: string | undefined;
970
+ placeholder?: string | undefined;
971
+ multiline?: boolean | undefined;
972
+ maxLines?: number | undefined;
973
+ checks?: {
974
+ type: "required" | "minLength" | "maxLength" | "pattern";
975
+ value?: string | number | undefined;
976
+ message?: string | undefined;
977
+ }[] | undefined;
978
+ }, {
979
+ value?: string | undefined;
980
+ label?: string | undefined;
981
+ bindTo?: string | undefined;
982
+ placeholder?: string | undefined;
983
+ multiline?: boolean | undefined;
984
+ maxLines?: number | undefined;
985
+ checks?: {
986
+ type: "required" | "minLength" | "maxLength" | "pattern";
987
+ value?: string | number | undefined;
988
+ message?: string | undefined;
989
+ }[] | undefined;
990
+ }>, z.ZodObject<{
991
+ label: z.ZodOptional<z.ZodString>;
992
+ options: z.ZodArray<z.ZodObject<{
993
+ id: z.ZodString;
994
+ label: z.ZodString;
995
+ description: z.ZodOptional<z.ZodString>;
996
+ }, "strip", z.ZodTypeAny, {
997
+ id: string;
998
+ label: string;
999
+ description?: string | undefined;
1000
+ }, {
1001
+ id: string;
1002
+ label: string;
1003
+ description?: string | undefined;
1004
+ }>, "many">;
1005
+ mode: z.ZodEnum<["single", "multiple"]>;
1006
+ selectedIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1007
+ bindTo: z.ZodOptional<z.ZodString>;
1008
+ }, "strip", z.ZodTypeAny, {
1009
+ options: {
1010
+ id: string;
1011
+ label: string;
1012
+ description?: string | undefined;
1013
+ }[];
1014
+ mode: "single" | "multiple";
1015
+ label?: string | undefined;
1016
+ bindTo?: string | undefined;
1017
+ selectedIds?: string[] | undefined;
1018
+ }, {
1019
+ options: {
1020
+ id: string;
1021
+ label: string;
1022
+ description?: string | undefined;
1023
+ }[];
1024
+ mode: "single" | "multiple";
1025
+ label?: string | undefined;
1026
+ bindTo?: string | undefined;
1027
+ selectedIds?: string[] | undefined;
1028
+ }>, z.ZodObject<{
1029
+ text: z.ZodString;
1030
+ style: z.ZodOptional<z.ZodEnum<["headline", "title", "body", "label", "caption"]>>;
1031
+ align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
1032
+ markdown: z.ZodOptional<z.ZodBoolean>;
1033
+ }, "strip", z.ZodTypeAny, {
1034
+ text: string;
1035
+ style?: "title" | "label" | "headline" | "body" | "caption" | undefined;
1036
+ align?: "left" | "center" | "right" | undefined;
1037
+ markdown?: boolean | undefined;
1038
+ }, {
1039
+ text: string;
1040
+ style?: "title" | "label" | "headline" | "body" | "caption" | undefined;
1041
+ align?: "left" | "center" | "right" | undefined;
1042
+ markdown?: boolean | undefined;
1043
+ }>, z.ZodObject<{
1044
+ title: z.ZodOptional<z.ZodString>;
1045
+ subtitle: z.ZodOptional<z.ZodString>;
1046
+ }, "strip", z.ZodTypeAny, {
1047
+ title?: string | undefined;
1048
+ subtitle?: string | undefined;
1049
+ }, {
1050
+ title?: string | undefined;
1051
+ subtitle?: string | undefined;
1052
+ }>]>;
1053
+ }, "strip", z.ZodTypeAny, {
1054
+ id: string;
1055
+ component: "text" | "card" | "button" | "choicePicker" | "textField";
1056
+ properties: {
1057
+ action: {
1058
+ type: string;
1059
+ value?: string | undefined;
1060
+ valuePath?: string | undefined;
1061
+ };
1062
+ label: string;
1063
+ variant?: "text" | "filled" | "outlined" | "elevated" | undefined;
1064
+ disabled?: boolean | undefined;
1065
+ } | {
1066
+ value?: string | undefined;
1067
+ label?: string | undefined;
1068
+ bindTo?: string | undefined;
1069
+ placeholder?: string | undefined;
1070
+ multiline?: boolean | undefined;
1071
+ maxLines?: number | undefined;
1072
+ checks?: {
1073
+ type: "required" | "minLength" | "maxLength" | "pattern";
1074
+ value?: string | number | undefined;
1075
+ message?: string | undefined;
1076
+ }[] | undefined;
1077
+ } | {
1078
+ options: {
1079
+ id: string;
1080
+ label: string;
1081
+ description?: string | undefined;
1082
+ }[];
1083
+ mode: "single" | "multiple";
1084
+ label?: string | undefined;
1085
+ bindTo?: string | undefined;
1086
+ selectedIds?: string[] | undefined;
1087
+ } | {
1088
+ text: string;
1089
+ style?: "title" | "label" | "headline" | "body" | "caption" | undefined;
1090
+ align?: "left" | "center" | "right" | undefined;
1091
+ markdown?: boolean | undefined;
1092
+ } | {
1093
+ title?: string | undefined;
1094
+ subtitle?: string | undefined;
1095
+ };
1096
+ parentId?: string | undefined;
1097
+ }, {
1098
+ id: string;
1099
+ component: "text" | "card" | "button" | "choicePicker" | "textField";
1100
+ properties: {
1101
+ action: {
1102
+ type: string;
1103
+ value?: string | undefined;
1104
+ valuePath?: string | undefined;
1105
+ };
1106
+ label: string;
1107
+ variant?: "text" | "filled" | "outlined" | "elevated" | undefined;
1108
+ disabled?: boolean | undefined;
1109
+ } | {
1110
+ value?: string | undefined;
1111
+ label?: string | undefined;
1112
+ bindTo?: string | undefined;
1113
+ placeholder?: string | undefined;
1114
+ multiline?: boolean | undefined;
1115
+ maxLines?: number | undefined;
1116
+ checks?: {
1117
+ type: "required" | "minLength" | "maxLength" | "pattern";
1118
+ value?: string | number | undefined;
1119
+ message?: string | undefined;
1120
+ }[] | undefined;
1121
+ } | {
1122
+ options: {
1123
+ id: string;
1124
+ label: string;
1125
+ description?: string | undefined;
1126
+ }[];
1127
+ mode: "single" | "multiple";
1128
+ label?: string | undefined;
1129
+ bindTo?: string | undefined;
1130
+ selectedIds?: string[] | undefined;
1131
+ } | {
1132
+ text: string;
1133
+ style?: "title" | "label" | "headline" | "body" | "caption" | undefined;
1134
+ align?: "left" | "center" | "right" | undefined;
1135
+ markdown?: boolean | undefined;
1136
+ } | {
1137
+ title?: string | undefined;
1138
+ subtitle?: string | undefined;
1139
+ };
1140
+ parentId?: string | undefined;
1141
+ }>, "many">;
1142
+ }, "strip", z.ZodTypeAny, {
1143
+ action: "updateComponents";
1144
+ components: {
1145
+ id: string;
1146
+ component: "text" | "card" | "button" | "choicePicker" | "textField";
1147
+ properties: {
1148
+ action: {
1149
+ type: string;
1150
+ value?: string | undefined;
1151
+ valuePath?: string | undefined;
1152
+ };
1153
+ label: string;
1154
+ variant?: "text" | "filled" | "outlined" | "elevated" | undefined;
1155
+ disabled?: boolean | undefined;
1156
+ } | {
1157
+ value?: string | undefined;
1158
+ label?: string | undefined;
1159
+ bindTo?: string | undefined;
1160
+ placeholder?: string | undefined;
1161
+ multiline?: boolean | undefined;
1162
+ maxLines?: number | undefined;
1163
+ checks?: {
1164
+ type: "required" | "minLength" | "maxLength" | "pattern";
1165
+ value?: string | number | undefined;
1166
+ message?: string | undefined;
1167
+ }[] | undefined;
1168
+ } | {
1169
+ options: {
1170
+ id: string;
1171
+ label: string;
1172
+ description?: string | undefined;
1173
+ }[];
1174
+ mode: "single" | "multiple";
1175
+ label?: string | undefined;
1176
+ bindTo?: string | undefined;
1177
+ selectedIds?: string[] | undefined;
1178
+ } | {
1179
+ text: string;
1180
+ style?: "title" | "label" | "headline" | "body" | "caption" | undefined;
1181
+ align?: "left" | "center" | "right" | undefined;
1182
+ markdown?: boolean | undefined;
1183
+ } | {
1184
+ title?: string | undefined;
1185
+ subtitle?: string | undefined;
1186
+ };
1187
+ parentId?: string | undefined;
1188
+ }[];
1189
+ }, {
1190
+ action: "updateComponents";
1191
+ components: {
1192
+ id: string;
1193
+ component: "text" | "card" | "button" | "choicePicker" | "textField";
1194
+ properties: {
1195
+ action: {
1196
+ type: string;
1197
+ value?: string | undefined;
1198
+ valuePath?: string | undefined;
1199
+ };
1200
+ label: string;
1201
+ variant?: "text" | "filled" | "outlined" | "elevated" | undefined;
1202
+ disabled?: boolean | undefined;
1203
+ } | {
1204
+ value?: string | undefined;
1205
+ label?: string | undefined;
1206
+ bindTo?: string | undefined;
1207
+ placeholder?: string | undefined;
1208
+ multiline?: boolean | undefined;
1209
+ maxLines?: number | undefined;
1210
+ checks?: {
1211
+ type: "required" | "minLength" | "maxLength" | "pattern";
1212
+ value?: string | number | undefined;
1213
+ message?: string | undefined;
1214
+ }[] | undefined;
1215
+ } | {
1216
+ options: {
1217
+ id: string;
1218
+ label: string;
1219
+ description?: string | undefined;
1220
+ }[];
1221
+ mode: "single" | "multiple";
1222
+ label?: string | undefined;
1223
+ bindTo?: string | undefined;
1224
+ selectedIds?: string[] | undefined;
1225
+ } | {
1226
+ text: string;
1227
+ style?: "title" | "label" | "headline" | "body" | "caption" | undefined;
1228
+ align?: "left" | "center" | "right" | undefined;
1229
+ markdown?: boolean | undefined;
1230
+ } | {
1231
+ title?: string | undefined;
1232
+ subtitle?: string | undefined;
1233
+ };
1234
+ parentId?: string | undefined;
1235
+ }[];
1236
+ }>;
1237
+ export declare const UpdateDataModelPayloadSchema: z.ZodObject<{
1238
+ action: z.ZodLiteral<"updateDataModel">;
1239
+ path: z.ZodOptional<z.ZodString>;
1240
+ data: z.ZodUnknown;
1241
+ }, "strip", z.ZodTypeAny, {
1242
+ action: "updateDataModel";
1243
+ path?: string | undefined;
1244
+ data?: unknown;
1245
+ }, {
1246
+ action: "updateDataModel";
1247
+ path?: string | undefined;
1248
+ data?: unknown;
1249
+ }>;
1250
+ export declare const DeleteSurfacePayloadSchema: z.ZodObject<{
1251
+ action: z.ZodLiteral<"deleteSurface">;
1252
+ }, "strip", z.ZodTypeAny, {
1253
+ action: "deleteSurface";
1254
+ }, {
1255
+ action: "deleteSurface";
1256
+ }>;
1257
+ export declare const A2UIPayloadSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
1258
+ action: z.ZodLiteral<"createSurface">;
1259
+ catalogId: z.ZodString;
1260
+ components: z.ZodOptional<z.ZodArray<z.ZodObject<{
1261
+ id: z.ZodString;
1262
+ component: z.ZodEnum<["button", "textField", "choicePicker", "text", "card"]>;
1263
+ parentId: z.ZodOptional<z.ZodString>;
1264
+ properties: z.ZodUnion<[z.ZodObject<{
1265
+ label: z.ZodString;
1266
+ variant: z.ZodOptional<z.ZodEnum<["filled", "elevated", "outlined", "text"]>>;
1267
+ disabled: z.ZodOptional<z.ZodBoolean>;
1268
+ action: z.ZodObject<{
1269
+ type: z.ZodString;
1270
+ value: z.ZodOptional<z.ZodString>;
1271
+ valuePath: z.ZodOptional<z.ZodString>;
1272
+ }, "strip", z.ZodTypeAny, {
1273
+ type: string;
1274
+ value?: string | undefined;
1275
+ valuePath?: string | undefined;
1276
+ }, {
1277
+ type: string;
1278
+ value?: string | undefined;
1279
+ valuePath?: string | undefined;
1280
+ }>;
1281
+ }, "strip", z.ZodTypeAny, {
1282
+ action: {
1283
+ type: string;
1284
+ value?: string | undefined;
1285
+ valuePath?: string | undefined;
1286
+ };
1287
+ label: string;
1288
+ variant?: "text" | "filled" | "outlined" | "elevated" | undefined;
1289
+ disabled?: boolean | undefined;
1290
+ }, {
1291
+ action: {
1292
+ type: string;
1293
+ value?: string | undefined;
1294
+ valuePath?: string | undefined;
1295
+ };
1296
+ label: string;
1297
+ variant?: "text" | "filled" | "outlined" | "elevated" | undefined;
1298
+ disabled?: boolean | undefined;
1299
+ }>, z.ZodObject<{
1300
+ label: z.ZodOptional<z.ZodString>;
1301
+ placeholder: z.ZodOptional<z.ZodString>;
1302
+ value: z.ZodOptional<z.ZodString>;
1303
+ bindTo: z.ZodOptional<z.ZodString>;
1304
+ multiline: z.ZodOptional<z.ZodBoolean>;
1305
+ maxLines: z.ZodOptional<z.ZodNumber>;
1306
+ checks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1307
+ type: z.ZodEnum<["required", "minLength", "maxLength", "pattern"]>;
1308
+ value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1309
+ message: z.ZodOptional<z.ZodString>;
1310
+ }, "strip", z.ZodTypeAny, {
1311
+ type: "required" | "minLength" | "maxLength" | "pattern";
1312
+ value?: string | number | undefined;
1313
+ message?: string | undefined;
1314
+ }, {
1315
+ type: "required" | "minLength" | "maxLength" | "pattern";
1316
+ value?: string | number | undefined;
1317
+ message?: string | undefined;
1318
+ }>, "many">>;
1319
+ }, "strip", z.ZodTypeAny, {
1320
+ value?: string | undefined;
1321
+ label?: string | undefined;
1322
+ bindTo?: string | undefined;
1323
+ placeholder?: string | undefined;
1324
+ multiline?: boolean | undefined;
1325
+ maxLines?: number | undefined;
1326
+ checks?: {
1327
+ type: "required" | "minLength" | "maxLength" | "pattern";
1328
+ value?: string | number | undefined;
1329
+ message?: string | undefined;
1330
+ }[] | undefined;
1331
+ }, {
1332
+ value?: string | undefined;
1333
+ label?: string | undefined;
1334
+ bindTo?: string | undefined;
1335
+ placeholder?: string | undefined;
1336
+ multiline?: boolean | undefined;
1337
+ maxLines?: number | undefined;
1338
+ checks?: {
1339
+ type: "required" | "minLength" | "maxLength" | "pattern";
1340
+ value?: string | number | undefined;
1341
+ message?: string | undefined;
1342
+ }[] | undefined;
1343
+ }>, z.ZodObject<{
1344
+ label: z.ZodOptional<z.ZodString>;
1345
+ options: z.ZodArray<z.ZodObject<{
1346
+ id: z.ZodString;
1347
+ label: z.ZodString;
1348
+ description: z.ZodOptional<z.ZodString>;
1349
+ }, "strip", z.ZodTypeAny, {
1350
+ id: string;
1351
+ label: string;
1352
+ description?: string | undefined;
1353
+ }, {
1354
+ id: string;
1355
+ label: string;
1356
+ description?: string | undefined;
1357
+ }>, "many">;
1358
+ mode: z.ZodEnum<["single", "multiple"]>;
1359
+ selectedIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1360
+ bindTo: z.ZodOptional<z.ZodString>;
1361
+ }, "strip", z.ZodTypeAny, {
1362
+ options: {
1363
+ id: string;
1364
+ label: string;
1365
+ description?: string | undefined;
1366
+ }[];
1367
+ mode: "single" | "multiple";
1368
+ label?: string | undefined;
1369
+ bindTo?: string | undefined;
1370
+ selectedIds?: string[] | undefined;
1371
+ }, {
1372
+ options: {
1373
+ id: string;
1374
+ label: string;
1375
+ description?: string | undefined;
1376
+ }[];
1377
+ mode: "single" | "multiple";
1378
+ label?: string | undefined;
1379
+ bindTo?: string | undefined;
1380
+ selectedIds?: string[] | undefined;
1381
+ }>, z.ZodObject<{
1382
+ text: z.ZodString;
1383
+ style: z.ZodOptional<z.ZodEnum<["headline", "title", "body", "label", "caption"]>>;
1384
+ align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
1385
+ markdown: z.ZodOptional<z.ZodBoolean>;
1386
+ }, "strip", z.ZodTypeAny, {
1387
+ text: string;
1388
+ style?: "title" | "label" | "headline" | "body" | "caption" | undefined;
1389
+ align?: "left" | "center" | "right" | undefined;
1390
+ markdown?: boolean | undefined;
1391
+ }, {
1392
+ text: string;
1393
+ style?: "title" | "label" | "headline" | "body" | "caption" | undefined;
1394
+ align?: "left" | "center" | "right" | undefined;
1395
+ markdown?: boolean | undefined;
1396
+ }>, z.ZodObject<{
1397
+ title: z.ZodOptional<z.ZodString>;
1398
+ subtitle: z.ZodOptional<z.ZodString>;
1399
+ }, "strip", z.ZodTypeAny, {
1400
+ title?: string | undefined;
1401
+ subtitle?: string | undefined;
1402
+ }, {
1403
+ title?: string | undefined;
1404
+ subtitle?: string | undefined;
1405
+ }>]>;
1406
+ }, "strip", z.ZodTypeAny, {
1407
+ id: string;
1408
+ component: "text" | "card" | "button" | "choicePicker" | "textField";
1409
+ properties: {
1410
+ action: {
1411
+ type: string;
1412
+ value?: string | undefined;
1413
+ valuePath?: string | undefined;
1414
+ };
1415
+ label: string;
1416
+ variant?: "text" | "filled" | "outlined" | "elevated" | undefined;
1417
+ disabled?: boolean | undefined;
1418
+ } | {
1419
+ value?: string | undefined;
1420
+ label?: string | undefined;
1421
+ bindTo?: string | undefined;
1422
+ placeholder?: string | undefined;
1423
+ multiline?: boolean | undefined;
1424
+ maxLines?: number | undefined;
1425
+ checks?: {
1426
+ type: "required" | "minLength" | "maxLength" | "pattern";
1427
+ value?: string | number | undefined;
1428
+ message?: string | undefined;
1429
+ }[] | undefined;
1430
+ } | {
1431
+ options: {
1432
+ id: string;
1433
+ label: string;
1434
+ description?: string | undefined;
1435
+ }[];
1436
+ mode: "single" | "multiple";
1437
+ label?: string | undefined;
1438
+ bindTo?: string | undefined;
1439
+ selectedIds?: string[] | undefined;
1440
+ } | {
1441
+ text: string;
1442
+ style?: "title" | "label" | "headline" | "body" | "caption" | undefined;
1443
+ align?: "left" | "center" | "right" | undefined;
1444
+ markdown?: boolean | undefined;
1445
+ } | {
1446
+ title?: string | undefined;
1447
+ subtitle?: string | undefined;
1448
+ };
1449
+ parentId?: string | undefined;
1450
+ }, {
1451
+ id: string;
1452
+ component: "text" | "card" | "button" | "choicePicker" | "textField";
1453
+ properties: {
1454
+ action: {
1455
+ type: string;
1456
+ value?: string | undefined;
1457
+ valuePath?: string | undefined;
1458
+ };
1459
+ label: string;
1460
+ variant?: "text" | "filled" | "outlined" | "elevated" | undefined;
1461
+ disabled?: boolean | undefined;
1462
+ } | {
1463
+ value?: string | undefined;
1464
+ label?: string | undefined;
1465
+ bindTo?: string | undefined;
1466
+ placeholder?: string | undefined;
1467
+ multiline?: boolean | undefined;
1468
+ maxLines?: number | undefined;
1469
+ checks?: {
1470
+ type: "required" | "minLength" | "maxLength" | "pattern";
1471
+ value?: string | number | undefined;
1472
+ message?: string | undefined;
1473
+ }[] | undefined;
1474
+ } | {
1475
+ options: {
1476
+ id: string;
1477
+ label: string;
1478
+ description?: string | undefined;
1479
+ }[];
1480
+ mode: "single" | "multiple";
1481
+ label?: string | undefined;
1482
+ bindTo?: string | undefined;
1483
+ selectedIds?: string[] | undefined;
1484
+ } | {
1485
+ text: string;
1486
+ style?: "title" | "label" | "headline" | "body" | "caption" | undefined;
1487
+ align?: "left" | "center" | "right" | undefined;
1488
+ markdown?: boolean | undefined;
1489
+ } | {
1490
+ title?: string | undefined;
1491
+ subtitle?: string | undefined;
1492
+ };
1493
+ parentId?: string | undefined;
1494
+ }>, "many">>;
1495
+ }, "strip", z.ZodTypeAny, {
1496
+ action: "createSurface";
1497
+ catalogId: string;
1498
+ components?: {
1499
+ id: string;
1500
+ component: "text" | "card" | "button" | "choicePicker" | "textField";
1501
+ properties: {
1502
+ action: {
1503
+ type: string;
1504
+ value?: string | undefined;
1505
+ valuePath?: string | undefined;
1506
+ };
1507
+ label: string;
1508
+ variant?: "text" | "filled" | "outlined" | "elevated" | undefined;
1509
+ disabled?: boolean | undefined;
1510
+ } | {
1511
+ value?: string | undefined;
1512
+ label?: string | undefined;
1513
+ bindTo?: string | undefined;
1514
+ placeholder?: string | undefined;
1515
+ multiline?: boolean | undefined;
1516
+ maxLines?: number | undefined;
1517
+ checks?: {
1518
+ type: "required" | "minLength" | "maxLength" | "pattern";
1519
+ value?: string | number | undefined;
1520
+ message?: string | undefined;
1521
+ }[] | undefined;
1522
+ } | {
1523
+ options: {
1524
+ id: string;
1525
+ label: string;
1526
+ description?: string | undefined;
1527
+ }[];
1528
+ mode: "single" | "multiple";
1529
+ label?: string | undefined;
1530
+ bindTo?: string | undefined;
1531
+ selectedIds?: string[] | undefined;
1532
+ } | {
1533
+ text: string;
1534
+ style?: "title" | "label" | "headline" | "body" | "caption" | undefined;
1535
+ align?: "left" | "center" | "right" | undefined;
1536
+ markdown?: boolean | undefined;
1537
+ } | {
1538
+ title?: string | undefined;
1539
+ subtitle?: string | undefined;
1540
+ };
1541
+ parentId?: string | undefined;
1542
+ }[] | undefined;
1543
+ }, {
1544
+ action: "createSurface";
1545
+ catalogId: string;
1546
+ components?: {
1547
+ id: string;
1548
+ component: "text" | "card" | "button" | "choicePicker" | "textField";
1549
+ properties: {
1550
+ action: {
1551
+ type: string;
1552
+ value?: string | undefined;
1553
+ valuePath?: string | undefined;
1554
+ };
1555
+ label: string;
1556
+ variant?: "text" | "filled" | "outlined" | "elevated" | undefined;
1557
+ disabled?: boolean | undefined;
1558
+ } | {
1559
+ value?: string | undefined;
1560
+ label?: string | undefined;
1561
+ bindTo?: string | undefined;
1562
+ placeholder?: string | undefined;
1563
+ multiline?: boolean | undefined;
1564
+ maxLines?: number | undefined;
1565
+ checks?: {
1566
+ type: "required" | "minLength" | "maxLength" | "pattern";
1567
+ value?: string | number | undefined;
1568
+ message?: string | undefined;
1569
+ }[] | undefined;
1570
+ } | {
1571
+ options: {
1572
+ id: string;
1573
+ label: string;
1574
+ description?: string | undefined;
1575
+ }[];
1576
+ mode: "single" | "multiple";
1577
+ label?: string | undefined;
1578
+ bindTo?: string | undefined;
1579
+ selectedIds?: string[] | undefined;
1580
+ } | {
1581
+ text: string;
1582
+ style?: "title" | "label" | "headline" | "body" | "caption" | undefined;
1583
+ align?: "left" | "center" | "right" | undefined;
1584
+ markdown?: boolean | undefined;
1585
+ } | {
1586
+ title?: string | undefined;
1587
+ subtitle?: string | undefined;
1588
+ };
1589
+ parentId?: string | undefined;
1590
+ }[] | undefined;
1591
+ }>, z.ZodObject<{
1592
+ action: z.ZodLiteral<"updateComponents">;
1593
+ components: z.ZodArray<z.ZodObject<{
1594
+ id: z.ZodString;
1595
+ component: z.ZodEnum<["button", "textField", "choicePicker", "text", "card"]>;
1596
+ parentId: z.ZodOptional<z.ZodString>;
1597
+ properties: z.ZodUnion<[z.ZodObject<{
1598
+ label: z.ZodString;
1599
+ variant: z.ZodOptional<z.ZodEnum<["filled", "elevated", "outlined", "text"]>>;
1600
+ disabled: z.ZodOptional<z.ZodBoolean>;
1601
+ action: z.ZodObject<{
1602
+ type: z.ZodString;
1603
+ value: z.ZodOptional<z.ZodString>;
1604
+ valuePath: z.ZodOptional<z.ZodString>;
1605
+ }, "strip", z.ZodTypeAny, {
1606
+ type: string;
1607
+ value?: string | undefined;
1608
+ valuePath?: string | undefined;
1609
+ }, {
1610
+ type: string;
1611
+ value?: string | undefined;
1612
+ valuePath?: string | undefined;
1613
+ }>;
1614
+ }, "strip", z.ZodTypeAny, {
1615
+ action: {
1616
+ type: string;
1617
+ value?: string | undefined;
1618
+ valuePath?: string | undefined;
1619
+ };
1620
+ label: string;
1621
+ variant?: "text" | "filled" | "outlined" | "elevated" | undefined;
1622
+ disabled?: boolean | undefined;
1623
+ }, {
1624
+ action: {
1625
+ type: string;
1626
+ value?: string | undefined;
1627
+ valuePath?: string | undefined;
1628
+ };
1629
+ label: string;
1630
+ variant?: "text" | "filled" | "outlined" | "elevated" | undefined;
1631
+ disabled?: boolean | undefined;
1632
+ }>, z.ZodObject<{
1633
+ label: z.ZodOptional<z.ZodString>;
1634
+ placeholder: z.ZodOptional<z.ZodString>;
1635
+ value: z.ZodOptional<z.ZodString>;
1636
+ bindTo: z.ZodOptional<z.ZodString>;
1637
+ multiline: z.ZodOptional<z.ZodBoolean>;
1638
+ maxLines: z.ZodOptional<z.ZodNumber>;
1639
+ checks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1640
+ type: z.ZodEnum<["required", "minLength", "maxLength", "pattern"]>;
1641
+ value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1642
+ message: z.ZodOptional<z.ZodString>;
1643
+ }, "strip", z.ZodTypeAny, {
1644
+ type: "required" | "minLength" | "maxLength" | "pattern";
1645
+ value?: string | number | undefined;
1646
+ message?: string | undefined;
1647
+ }, {
1648
+ type: "required" | "minLength" | "maxLength" | "pattern";
1649
+ value?: string | number | undefined;
1650
+ message?: string | undefined;
1651
+ }>, "many">>;
1652
+ }, "strip", z.ZodTypeAny, {
1653
+ value?: string | undefined;
1654
+ label?: string | undefined;
1655
+ bindTo?: string | undefined;
1656
+ placeholder?: string | undefined;
1657
+ multiline?: boolean | undefined;
1658
+ maxLines?: number | undefined;
1659
+ checks?: {
1660
+ type: "required" | "minLength" | "maxLength" | "pattern";
1661
+ value?: string | number | undefined;
1662
+ message?: string | undefined;
1663
+ }[] | undefined;
1664
+ }, {
1665
+ value?: string | undefined;
1666
+ label?: string | undefined;
1667
+ bindTo?: string | undefined;
1668
+ placeholder?: string | undefined;
1669
+ multiline?: boolean | undefined;
1670
+ maxLines?: number | undefined;
1671
+ checks?: {
1672
+ type: "required" | "minLength" | "maxLength" | "pattern";
1673
+ value?: string | number | undefined;
1674
+ message?: string | undefined;
1675
+ }[] | undefined;
1676
+ }>, z.ZodObject<{
1677
+ label: z.ZodOptional<z.ZodString>;
1678
+ options: z.ZodArray<z.ZodObject<{
1679
+ id: z.ZodString;
1680
+ label: z.ZodString;
1681
+ description: z.ZodOptional<z.ZodString>;
1682
+ }, "strip", z.ZodTypeAny, {
1683
+ id: string;
1684
+ label: string;
1685
+ description?: string | undefined;
1686
+ }, {
1687
+ id: string;
1688
+ label: string;
1689
+ description?: string | undefined;
1690
+ }>, "many">;
1691
+ mode: z.ZodEnum<["single", "multiple"]>;
1692
+ selectedIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1693
+ bindTo: z.ZodOptional<z.ZodString>;
1694
+ }, "strip", z.ZodTypeAny, {
1695
+ options: {
1696
+ id: string;
1697
+ label: string;
1698
+ description?: string | undefined;
1699
+ }[];
1700
+ mode: "single" | "multiple";
1701
+ label?: string | undefined;
1702
+ bindTo?: string | undefined;
1703
+ selectedIds?: string[] | undefined;
1704
+ }, {
1705
+ options: {
1706
+ id: string;
1707
+ label: string;
1708
+ description?: string | undefined;
1709
+ }[];
1710
+ mode: "single" | "multiple";
1711
+ label?: string | undefined;
1712
+ bindTo?: string | undefined;
1713
+ selectedIds?: string[] | undefined;
1714
+ }>, z.ZodObject<{
1715
+ text: z.ZodString;
1716
+ style: z.ZodOptional<z.ZodEnum<["headline", "title", "body", "label", "caption"]>>;
1717
+ align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
1718
+ markdown: z.ZodOptional<z.ZodBoolean>;
1719
+ }, "strip", z.ZodTypeAny, {
1720
+ text: string;
1721
+ style?: "title" | "label" | "headline" | "body" | "caption" | undefined;
1722
+ align?: "left" | "center" | "right" | undefined;
1723
+ markdown?: boolean | undefined;
1724
+ }, {
1725
+ text: string;
1726
+ style?: "title" | "label" | "headline" | "body" | "caption" | undefined;
1727
+ align?: "left" | "center" | "right" | undefined;
1728
+ markdown?: boolean | undefined;
1729
+ }>, z.ZodObject<{
1730
+ title: z.ZodOptional<z.ZodString>;
1731
+ subtitle: z.ZodOptional<z.ZodString>;
1732
+ }, "strip", z.ZodTypeAny, {
1733
+ title?: string | undefined;
1734
+ subtitle?: string | undefined;
1735
+ }, {
1736
+ title?: string | undefined;
1737
+ subtitle?: string | undefined;
1738
+ }>]>;
1739
+ }, "strip", z.ZodTypeAny, {
1740
+ id: string;
1741
+ component: "text" | "card" | "button" | "choicePicker" | "textField";
1742
+ properties: {
1743
+ action: {
1744
+ type: string;
1745
+ value?: string | undefined;
1746
+ valuePath?: string | undefined;
1747
+ };
1748
+ label: string;
1749
+ variant?: "text" | "filled" | "outlined" | "elevated" | undefined;
1750
+ disabled?: boolean | undefined;
1751
+ } | {
1752
+ value?: string | undefined;
1753
+ label?: string | undefined;
1754
+ bindTo?: string | undefined;
1755
+ placeholder?: string | undefined;
1756
+ multiline?: boolean | undefined;
1757
+ maxLines?: number | undefined;
1758
+ checks?: {
1759
+ type: "required" | "minLength" | "maxLength" | "pattern";
1760
+ value?: string | number | undefined;
1761
+ message?: string | undefined;
1762
+ }[] | undefined;
1763
+ } | {
1764
+ options: {
1765
+ id: string;
1766
+ label: string;
1767
+ description?: string | undefined;
1768
+ }[];
1769
+ mode: "single" | "multiple";
1770
+ label?: string | undefined;
1771
+ bindTo?: string | undefined;
1772
+ selectedIds?: string[] | undefined;
1773
+ } | {
1774
+ text: string;
1775
+ style?: "title" | "label" | "headline" | "body" | "caption" | undefined;
1776
+ align?: "left" | "center" | "right" | undefined;
1777
+ markdown?: boolean | undefined;
1778
+ } | {
1779
+ title?: string | undefined;
1780
+ subtitle?: string | undefined;
1781
+ };
1782
+ parentId?: string | undefined;
1783
+ }, {
1784
+ id: string;
1785
+ component: "text" | "card" | "button" | "choicePicker" | "textField";
1786
+ properties: {
1787
+ action: {
1788
+ type: string;
1789
+ value?: string | undefined;
1790
+ valuePath?: string | undefined;
1791
+ };
1792
+ label: string;
1793
+ variant?: "text" | "filled" | "outlined" | "elevated" | undefined;
1794
+ disabled?: boolean | undefined;
1795
+ } | {
1796
+ value?: string | undefined;
1797
+ label?: string | undefined;
1798
+ bindTo?: string | undefined;
1799
+ placeholder?: string | undefined;
1800
+ multiline?: boolean | undefined;
1801
+ maxLines?: number | undefined;
1802
+ checks?: {
1803
+ type: "required" | "minLength" | "maxLength" | "pattern";
1804
+ value?: string | number | undefined;
1805
+ message?: string | undefined;
1806
+ }[] | undefined;
1807
+ } | {
1808
+ options: {
1809
+ id: string;
1810
+ label: string;
1811
+ description?: string | undefined;
1812
+ }[];
1813
+ mode: "single" | "multiple";
1814
+ label?: string | undefined;
1815
+ bindTo?: string | undefined;
1816
+ selectedIds?: string[] | undefined;
1817
+ } | {
1818
+ text: string;
1819
+ style?: "title" | "label" | "headline" | "body" | "caption" | undefined;
1820
+ align?: "left" | "center" | "right" | undefined;
1821
+ markdown?: boolean | undefined;
1822
+ } | {
1823
+ title?: string | undefined;
1824
+ subtitle?: string | undefined;
1825
+ };
1826
+ parentId?: string | undefined;
1827
+ }>, "many">;
1828
+ }, "strip", z.ZodTypeAny, {
1829
+ action: "updateComponents";
1830
+ components: {
1831
+ id: string;
1832
+ component: "text" | "card" | "button" | "choicePicker" | "textField";
1833
+ properties: {
1834
+ action: {
1835
+ type: string;
1836
+ value?: string | undefined;
1837
+ valuePath?: string | undefined;
1838
+ };
1839
+ label: string;
1840
+ variant?: "text" | "filled" | "outlined" | "elevated" | undefined;
1841
+ disabled?: boolean | undefined;
1842
+ } | {
1843
+ value?: string | undefined;
1844
+ label?: string | undefined;
1845
+ bindTo?: string | undefined;
1846
+ placeholder?: string | undefined;
1847
+ multiline?: boolean | undefined;
1848
+ maxLines?: number | undefined;
1849
+ checks?: {
1850
+ type: "required" | "minLength" | "maxLength" | "pattern";
1851
+ value?: string | number | undefined;
1852
+ message?: string | undefined;
1853
+ }[] | undefined;
1854
+ } | {
1855
+ options: {
1856
+ id: string;
1857
+ label: string;
1858
+ description?: string | undefined;
1859
+ }[];
1860
+ mode: "single" | "multiple";
1861
+ label?: string | undefined;
1862
+ bindTo?: string | undefined;
1863
+ selectedIds?: string[] | undefined;
1864
+ } | {
1865
+ text: string;
1866
+ style?: "title" | "label" | "headline" | "body" | "caption" | undefined;
1867
+ align?: "left" | "center" | "right" | undefined;
1868
+ markdown?: boolean | undefined;
1869
+ } | {
1870
+ title?: string | undefined;
1871
+ subtitle?: string | undefined;
1872
+ };
1873
+ parentId?: string | undefined;
1874
+ }[];
1875
+ }, {
1876
+ action: "updateComponents";
1877
+ components: {
1878
+ id: string;
1879
+ component: "text" | "card" | "button" | "choicePicker" | "textField";
1880
+ properties: {
1881
+ action: {
1882
+ type: string;
1883
+ value?: string | undefined;
1884
+ valuePath?: string | undefined;
1885
+ };
1886
+ label: string;
1887
+ variant?: "text" | "filled" | "outlined" | "elevated" | undefined;
1888
+ disabled?: boolean | undefined;
1889
+ } | {
1890
+ value?: string | undefined;
1891
+ label?: string | undefined;
1892
+ bindTo?: string | undefined;
1893
+ placeholder?: string | undefined;
1894
+ multiline?: boolean | undefined;
1895
+ maxLines?: number | undefined;
1896
+ checks?: {
1897
+ type: "required" | "minLength" | "maxLength" | "pattern";
1898
+ value?: string | number | undefined;
1899
+ message?: string | undefined;
1900
+ }[] | undefined;
1901
+ } | {
1902
+ options: {
1903
+ id: string;
1904
+ label: string;
1905
+ description?: string | undefined;
1906
+ }[];
1907
+ mode: "single" | "multiple";
1908
+ label?: string | undefined;
1909
+ bindTo?: string | undefined;
1910
+ selectedIds?: string[] | undefined;
1911
+ } | {
1912
+ text: string;
1913
+ style?: "title" | "label" | "headline" | "body" | "caption" | undefined;
1914
+ align?: "left" | "center" | "right" | undefined;
1915
+ markdown?: boolean | undefined;
1916
+ } | {
1917
+ title?: string | undefined;
1918
+ subtitle?: string | undefined;
1919
+ };
1920
+ parentId?: string | undefined;
1921
+ }[];
1922
+ }>, z.ZodObject<{
1923
+ action: z.ZodLiteral<"updateDataModel">;
1924
+ path: z.ZodOptional<z.ZodString>;
1925
+ data: z.ZodUnknown;
1926
+ }, "strip", z.ZodTypeAny, {
1927
+ action: "updateDataModel";
1928
+ path?: string | undefined;
1929
+ data?: unknown;
1930
+ }, {
1931
+ action: "updateDataModel";
1932
+ path?: string | undefined;
1933
+ data?: unknown;
1934
+ }>, z.ZodObject<{
1935
+ action: z.ZodLiteral<"deleteSurface">;
1936
+ }, "strip", z.ZodTypeAny, {
1937
+ action: "deleteSurface";
1938
+ }, {
1939
+ action: "deleteSurface";
1940
+ }>]>;
1941
+ export declare const ActionDataSchema: z.ZodObject<{
1942
+ actionId: z.ZodString;
1943
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1944
+ }, "strip", z.ZodTypeAny, {
1945
+ data: Record<string, unknown>;
1946
+ actionId: string;
1947
+ }, {
1948
+ data: Record<string, unknown>;
1949
+ actionId: string;
1950
+ }>;
1951
+ export type ValidatedA2UIPayload = z.infer<typeof A2UIPayloadSchema>;
1952
+ export type ValidatedActionData = z.infer<typeof ActionDataSchema>;
1953
+ //# sourceMappingURL=schemas.d.ts.map