@vcp-dev/contracts 0.6.4 → 0.6.6

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.
@@ -0,0 +1,2854 @@
1
+ import { z } from "zod";
2
+ import { type SiteLocale } from "./site-locale.js";
3
+ export declare const FORM_SPEC_MULTISTEP_MIN_RUNTIME_VERSION = 2;
4
+ export declare const FormDefinitionIdSchema: z.ZodString;
5
+ export declare const FormBlockIdSchema: z.ZodString;
6
+ export declare const FormDesignOperationIdSchema: z.ZodString;
7
+ export declare const FormFieldNameSchema: z.ZodString;
8
+ export declare const FormOptionValueSchema: z.ZodString;
9
+ export declare const FormSpecBindingSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
10
+ status: z.ZodLiteral<"unbound">;
11
+ form_code: z.ZodNull;
12
+ }, z.core.$strict>, z.ZodObject<{
13
+ status: z.ZodLiteral<"bound">;
14
+ form_code: z.ZodString;
15
+ }, z.core.$strict>, z.ZodObject<{
16
+ status: z.ZodLiteral<"missing">;
17
+ form_code: z.ZodString;
18
+ }, z.core.$strict>], "status">;
19
+ export type FormSpecBinding = z.infer<typeof FormSpecBindingSchema>;
20
+ export declare const FormSpecOptionSchema: z.ZodObject<{
21
+ value: z.ZodString;
22
+ label: z.ZodString;
23
+ }, z.core.$strict>;
24
+ export type FormSpecOption = z.infer<typeof FormSpecOptionSchema>;
25
+ export declare const FormSpecFieldNodeSchema: z.ZodObject<{
26
+ kind: z.ZodLiteral<"field">;
27
+ field_name: z.ZodString;
28
+ type: z.ZodEnum<{
29
+ number: "number";
30
+ boolean: "boolean";
31
+ date: "date";
32
+ text: "text";
33
+ email: "email";
34
+ select: "select";
35
+ multiselect: "multiselect";
36
+ textarea: "textarea";
37
+ phone: "phone";
38
+ radio: "radio";
39
+ }>;
40
+ label: z.ZodString;
41
+ required: z.ZodBoolean;
42
+ span: z.ZodEnum<{
43
+ full: "full";
44
+ half: "half";
45
+ }>;
46
+ options: z.ZodArray<z.ZodObject<{
47
+ value: z.ZodString;
48
+ label: z.ZodString;
49
+ }, z.core.$strict>>;
50
+ }, z.core.$strict>;
51
+ export type FormSpecFieldNode = z.infer<typeof FormSpecFieldNodeSchema>;
52
+ /** A step break starts the next step; the first step is implicit. */
53
+ export declare const FormSpecStepBreakNodeSchema: z.ZodObject<{
54
+ kind: z.ZodLiteral<"step-break">;
55
+ step_id: z.ZodString;
56
+ }, z.core.$strict>;
57
+ export type FormSpecStepBreakNode = z.infer<typeof FormSpecStepBreakNodeSchema>;
58
+ export declare const FormSpecNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
59
+ kind: z.ZodLiteral<"field">;
60
+ field_name: z.ZodString;
61
+ type: z.ZodEnum<{
62
+ number: "number";
63
+ boolean: "boolean";
64
+ date: "date";
65
+ text: "text";
66
+ email: "email";
67
+ select: "select";
68
+ multiselect: "multiselect";
69
+ textarea: "textarea";
70
+ phone: "phone";
71
+ radio: "radio";
72
+ }>;
73
+ label: z.ZodString;
74
+ required: z.ZodBoolean;
75
+ span: z.ZodEnum<{
76
+ full: "full";
77
+ half: "half";
78
+ }>;
79
+ options: z.ZodArray<z.ZodObject<{
80
+ value: z.ZodString;
81
+ label: z.ZodString;
82
+ }, z.core.$strict>>;
83
+ }, z.core.$strict>, z.ZodObject<{
84
+ kind: z.ZodLiteral<"step-break">;
85
+ step_id: z.ZodString;
86
+ }, z.core.$strict>], "kind">;
87
+ export type FormSpecNode = z.infer<typeof FormSpecNodeSchema>;
88
+ export declare const FormSpecV1Schema: z.ZodObject<{
89
+ schema_version: z.ZodLiteral<1>;
90
+ min_runtime_version: z.ZodNumber;
91
+ form_definition_id: z.ZodString;
92
+ binding: z.ZodDiscriminatedUnion<[z.ZodObject<{
93
+ status: z.ZodLiteral<"unbound">;
94
+ form_code: z.ZodNull;
95
+ }, z.core.$strict>, z.ZodObject<{
96
+ status: z.ZodLiteral<"bound">;
97
+ form_code: z.ZodString;
98
+ }, z.core.$strict>, z.ZodObject<{
99
+ status: z.ZodLiteral<"missing">;
100
+ form_code: z.ZodString;
101
+ }, z.core.$strict>], "status">;
102
+ content_locale: z.ZodEnum<{
103
+ id: "id";
104
+ "zh-CN": "zh-CN";
105
+ "zh-HK": "zh-HK";
106
+ "zh-TW": "zh-TW";
107
+ "en-US": "en-US";
108
+ "en-GB": "en-GB";
109
+ "ja-JP": "ja-JP";
110
+ "ko-KR": "ko-KR";
111
+ "es-ES": "es-ES";
112
+ "fr-FR": "fr-FR";
113
+ "de-DE": "de-DE";
114
+ "pt-PT": "pt-PT";
115
+ "ru-RU": "ru-RU";
116
+ "ar-SA": "ar-SA";
117
+ "id-ID": "id-ID";
118
+ "vi-VN": "vi-VN";
119
+ "th-TH": "th-TH";
120
+ "it-IT": "it-IT";
121
+ "nl-NL": "nl-NL";
122
+ "tr-TR": "tr-TR";
123
+ "pl-PL": "pl-PL";
124
+ "uk-UA": "uk-UA";
125
+ "cs-CZ": "cs-CZ";
126
+ "sk-SK": "sk-SK";
127
+ "hu-HU": "hu-HU";
128
+ "ro-RO": "ro-RO";
129
+ "el-GR": "el-GR";
130
+ "sv-SE": "sv-SE";
131
+ "da-DK": "da-DK";
132
+ "fi-FI": "fi-FI";
133
+ "hr-HR": "hr-HR";
134
+ "lt-LT": "lt-LT";
135
+ "lv-LV": "lv-LV";
136
+ "et-EE": "et-EE";
137
+ "ga-IE": "ga-IE";
138
+ "mt-MT": "mt-MT";
139
+ "ka-GE": "ka-GE";
140
+ "fa-IR": "fa-IR";
141
+ "bn-BD": "bn-BD";
142
+ "ta-IN": "ta-IN";
143
+ "si-LK": "si-LK";
144
+ "ms-MY": "ms-MY";
145
+ "fil-PH": "fil-PH";
146
+ "my-MM": "my-MM";
147
+ "km-KH": "km-KH";
148
+ "lo-LA": "lo-LA";
149
+ "mn-MN": "mn-MN";
150
+ "kk-KZ": "kk-KZ";
151
+ en: "en";
152
+ ja: "ja";
153
+ es: "es";
154
+ fr: "fr";
155
+ de: "de";
156
+ ko: "ko";
157
+ pt: "pt";
158
+ "pt-BR": "pt-BR";
159
+ it: "it";
160
+ ru: "ru";
161
+ ar: "ar";
162
+ hi: "hi";
163
+ vi: "vi";
164
+ th: "th";
165
+ tr: "tr";
166
+ nl: "nl";
167
+ pl: "pl";
168
+ uk: "uk";
169
+ sv: "sv";
170
+ da: "da";
171
+ fi: "fi";
172
+ no: "no";
173
+ cs: "cs";
174
+ el: "el";
175
+ hu: "hu";
176
+ ro: "ro";
177
+ he: "he";
178
+ ms: "ms";
179
+ fil: "fil";
180
+ bn: "bn";
181
+ ta: "ta";
182
+ ca: "ca";
183
+ sk: "sk";
184
+ hr: "hr";
185
+ bg: "bg";
186
+ lt: "lt";
187
+ lv: "lv";
188
+ et: "et";
189
+ fa: "fa";
190
+ sw: "sw";
191
+ sr: "sr";
192
+ is: "is";
193
+ }>;
194
+ features: z.ZodObject<{
195
+ multistep: z.ZodBoolean;
196
+ }, z.core.$strict>;
197
+ copy: z.ZodObject<{
198
+ title: z.ZodString;
199
+ description: z.ZodString;
200
+ submit_button: z.ZodString;
201
+ success_message: z.ZodString;
202
+ error_message: z.ZodString;
203
+ }, z.core.$strict>;
204
+ layout: z.ZodObject<{
205
+ columns: z.ZodEnum<{
206
+ one: "one";
207
+ two: "two";
208
+ }>;
209
+ }, z.core.$strict>;
210
+ nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
211
+ kind: z.ZodLiteral<"field">;
212
+ field_name: z.ZodString;
213
+ type: z.ZodEnum<{
214
+ number: "number";
215
+ boolean: "boolean";
216
+ date: "date";
217
+ text: "text";
218
+ email: "email";
219
+ select: "select";
220
+ multiselect: "multiselect";
221
+ textarea: "textarea";
222
+ phone: "phone";
223
+ radio: "radio";
224
+ }>;
225
+ label: z.ZodString;
226
+ required: z.ZodBoolean;
227
+ span: z.ZodEnum<{
228
+ full: "full";
229
+ half: "half";
230
+ }>;
231
+ options: z.ZodArray<z.ZodObject<{
232
+ value: z.ZodString;
233
+ label: z.ZodString;
234
+ }, z.core.$strict>>;
235
+ }, z.core.$strict>, z.ZodObject<{
236
+ kind: z.ZodLiteral<"step-break">;
237
+ step_id: z.ZodString;
238
+ }, z.core.$strict>], "kind">>;
239
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
240
+ kind: z.ZodLiteral<"custom">;
241
+ }, z.core.$strict>, z.ZodObject<{
242
+ kind: z.ZodLiteral<"template">;
243
+ slug: z.ZodString;
244
+ version: z.ZodString;
245
+ }, z.core.$strict>], "kind">;
246
+ retired: z.ZodObject<{
247
+ fields: z.ZodArray<z.ZodObject<{
248
+ field_name: z.ZodString;
249
+ type: z.ZodEnum<{
250
+ number: "number";
251
+ boolean: "boolean";
252
+ date: "date";
253
+ text: "text";
254
+ email: "email";
255
+ select: "select";
256
+ multiselect: "multiselect";
257
+ textarea: "textarea";
258
+ phone: "phone";
259
+ radio: "radio";
260
+ }>;
261
+ last_label: z.ZodString;
262
+ }, z.core.$strict>>;
263
+ options: z.ZodArray<z.ZodObject<{
264
+ field_name: z.ZodString;
265
+ value: z.ZodString;
266
+ last_label: z.ZodString;
267
+ }, z.core.$strict>>;
268
+ }, z.core.$strict>;
269
+ compatibility: z.ZodObject<{
270
+ standardization_version: z.ZodNumber;
271
+ diagnostics: z.ZodArray<z.ZodString>;
272
+ }, z.core.$strict>;
273
+ }, z.core.$strict>;
274
+ export type FormSpecV1 = z.infer<typeof FormSpecV1Schema>;
275
+ export type FormSpecIdentityTransitionIssue = {
276
+ code: "FIELD_IDENTITY_CHANGED";
277
+ field_name: string;
278
+ } | {
279
+ code: "FIELD_TYPE_CHANGED";
280
+ field_name: string;
281
+ } | {
282
+ code: "FIELD_RETIREMENT_MISSING";
283
+ field_name: string;
284
+ } | {
285
+ code: "OPTION_RETIREMENT_MISSING";
286
+ field_name: string;
287
+ value: string;
288
+ };
289
+ /** Compares two valid specs; labels, order, required and span are intentionally mutable. */
290
+ export declare function validateFormSpecIdentityTransition(before: FormSpecV1, after: FormSpecV1): FormSpecIdentityTransitionIssue[];
291
+ export declare const FormTemplateTextSchema: z.ZodObject<{
292
+ english: z.ZodString;
293
+ translations: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
294
+ "zh-CN": "zh-CN";
295
+ "zh-HK": "zh-HK";
296
+ "zh-TW": "zh-TW";
297
+ "en-US": "en-US";
298
+ "en-GB": "en-GB";
299
+ "ja-JP": "ja-JP";
300
+ "ko-KR": "ko-KR";
301
+ "es-ES": "es-ES";
302
+ "fr-FR": "fr-FR";
303
+ "de-DE": "de-DE";
304
+ "pt-PT": "pt-PT";
305
+ "ru-RU": "ru-RU";
306
+ "ar-SA": "ar-SA";
307
+ "id-ID": "id-ID";
308
+ "vi-VN": "vi-VN";
309
+ "th-TH": "th-TH";
310
+ "it-IT": "it-IT";
311
+ "nl-NL": "nl-NL";
312
+ "tr-TR": "tr-TR";
313
+ "pl-PL": "pl-PL";
314
+ "uk-UA": "uk-UA";
315
+ "cs-CZ": "cs-CZ";
316
+ "sk-SK": "sk-SK";
317
+ "hu-HU": "hu-HU";
318
+ "ro-RO": "ro-RO";
319
+ "el-GR": "el-GR";
320
+ "sv-SE": "sv-SE";
321
+ "da-DK": "da-DK";
322
+ "fi-FI": "fi-FI";
323
+ "hr-HR": "hr-HR";
324
+ "lt-LT": "lt-LT";
325
+ "lv-LV": "lv-LV";
326
+ "et-EE": "et-EE";
327
+ "ga-IE": "ga-IE";
328
+ "mt-MT": "mt-MT";
329
+ "ka-GE": "ka-GE";
330
+ "fa-IR": "fa-IR";
331
+ "bn-BD": "bn-BD";
332
+ "ta-IN": "ta-IN";
333
+ "si-LK": "si-LK";
334
+ "ms-MY": "ms-MY";
335
+ "fil-PH": "fil-PH";
336
+ "my-MM": "my-MM";
337
+ "km-KH": "km-KH";
338
+ "lo-LA": "lo-LA";
339
+ "mn-MN": "mn-MN";
340
+ "kk-KZ": "kk-KZ";
341
+ }> & z.core.$partial, z.ZodString>>;
342
+ }, z.core.$strict>;
343
+ export type FormTemplateText = z.infer<typeof FormTemplateTextSchema>;
344
+ export declare const FORM_TEMPLATE_CATEGORY_SLUGS: readonly ["lead-generation", "trial-and-samples", "quote-and-commerce", "appointments-and-visits", "resources-and-subscriptions", "service-and-channel"];
345
+ export declare const FORM_TEMPLATE_CATEGORY_COUNTS: readonly [1, 1, 1, 1, 1, 1];
346
+ export declare const FormTemplateCategorySlugSchema: z.ZodEnum<{
347
+ "lead-generation": "lead-generation";
348
+ "trial-and-samples": "trial-and-samples";
349
+ "quote-and-commerce": "quote-and-commerce";
350
+ "appointments-and-visits": "appointments-and-visits";
351
+ "resources-and-subscriptions": "resources-and-subscriptions";
352
+ "service-and-channel": "service-and-channel";
353
+ }>;
354
+ export type FormTemplateCategorySlug = z.infer<typeof FormTemplateCategorySlugSchema>;
355
+ export declare const FormTemplateCategoryV1Schema: z.ZodObject<{
356
+ schema_version: z.ZodLiteral<1>;
357
+ slug: z.ZodEnum<{
358
+ "lead-generation": "lead-generation";
359
+ "trial-and-samples": "trial-and-samples";
360
+ "quote-and-commerce": "quote-and-commerce";
361
+ "appointments-and-visits": "appointments-and-visits";
362
+ "resources-and-subscriptions": "resources-and-subscriptions";
363
+ "service-and-channel": "service-and-channel";
364
+ }>;
365
+ name: z.ZodObject<{
366
+ english: z.ZodString;
367
+ translations: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
368
+ "zh-CN": "zh-CN";
369
+ "zh-HK": "zh-HK";
370
+ "zh-TW": "zh-TW";
371
+ "en-US": "en-US";
372
+ "en-GB": "en-GB";
373
+ "ja-JP": "ja-JP";
374
+ "ko-KR": "ko-KR";
375
+ "es-ES": "es-ES";
376
+ "fr-FR": "fr-FR";
377
+ "de-DE": "de-DE";
378
+ "pt-PT": "pt-PT";
379
+ "ru-RU": "ru-RU";
380
+ "ar-SA": "ar-SA";
381
+ "id-ID": "id-ID";
382
+ "vi-VN": "vi-VN";
383
+ "th-TH": "th-TH";
384
+ "it-IT": "it-IT";
385
+ "nl-NL": "nl-NL";
386
+ "tr-TR": "tr-TR";
387
+ "pl-PL": "pl-PL";
388
+ "uk-UA": "uk-UA";
389
+ "cs-CZ": "cs-CZ";
390
+ "sk-SK": "sk-SK";
391
+ "hu-HU": "hu-HU";
392
+ "ro-RO": "ro-RO";
393
+ "el-GR": "el-GR";
394
+ "sv-SE": "sv-SE";
395
+ "da-DK": "da-DK";
396
+ "fi-FI": "fi-FI";
397
+ "hr-HR": "hr-HR";
398
+ "lt-LT": "lt-LT";
399
+ "lv-LV": "lv-LV";
400
+ "et-EE": "et-EE";
401
+ "ga-IE": "ga-IE";
402
+ "mt-MT": "mt-MT";
403
+ "ka-GE": "ka-GE";
404
+ "fa-IR": "fa-IR";
405
+ "bn-BD": "bn-BD";
406
+ "ta-IN": "ta-IN";
407
+ "si-LK": "si-LK";
408
+ "ms-MY": "ms-MY";
409
+ "fil-PH": "fil-PH";
410
+ "my-MM": "my-MM";
411
+ "km-KH": "km-KH";
412
+ "lo-LA": "lo-LA";
413
+ "mn-MN": "mn-MN";
414
+ "kk-KZ": "kk-KZ";
415
+ }> & z.core.$partial, z.ZodString>>;
416
+ }, z.core.$strict>;
417
+ template_count: z.ZodNumber;
418
+ }, z.core.$strict>;
419
+ export type FormTemplateCategoryV1 = z.infer<typeof FormTemplateCategoryV1Schema>;
420
+ export declare const FormTemplateV1Schema: z.ZodObject<{
421
+ schema_version: z.ZodLiteral<1>;
422
+ slug: z.ZodString;
423
+ version: z.ZodString;
424
+ category: z.ZodEnum<{
425
+ "lead-generation": "lead-generation";
426
+ "trial-and-samples": "trial-and-samples";
427
+ "quote-and-commerce": "quote-and-commerce";
428
+ "appointments-and-visits": "appointments-and-visits";
429
+ "resources-and-subscriptions": "resources-and-subscriptions";
430
+ "service-and-channel": "service-and-channel";
431
+ }>;
432
+ copy: z.ZodObject<{
433
+ title: z.ZodObject<{
434
+ english: z.ZodString;
435
+ translations: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
436
+ "zh-CN": "zh-CN";
437
+ "zh-HK": "zh-HK";
438
+ "zh-TW": "zh-TW";
439
+ "en-US": "en-US";
440
+ "en-GB": "en-GB";
441
+ "ja-JP": "ja-JP";
442
+ "ko-KR": "ko-KR";
443
+ "es-ES": "es-ES";
444
+ "fr-FR": "fr-FR";
445
+ "de-DE": "de-DE";
446
+ "pt-PT": "pt-PT";
447
+ "ru-RU": "ru-RU";
448
+ "ar-SA": "ar-SA";
449
+ "id-ID": "id-ID";
450
+ "vi-VN": "vi-VN";
451
+ "th-TH": "th-TH";
452
+ "it-IT": "it-IT";
453
+ "nl-NL": "nl-NL";
454
+ "tr-TR": "tr-TR";
455
+ "pl-PL": "pl-PL";
456
+ "uk-UA": "uk-UA";
457
+ "cs-CZ": "cs-CZ";
458
+ "sk-SK": "sk-SK";
459
+ "hu-HU": "hu-HU";
460
+ "ro-RO": "ro-RO";
461
+ "el-GR": "el-GR";
462
+ "sv-SE": "sv-SE";
463
+ "da-DK": "da-DK";
464
+ "fi-FI": "fi-FI";
465
+ "hr-HR": "hr-HR";
466
+ "lt-LT": "lt-LT";
467
+ "lv-LV": "lv-LV";
468
+ "et-EE": "et-EE";
469
+ "ga-IE": "ga-IE";
470
+ "mt-MT": "mt-MT";
471
+ "ka-GE": "ka-GE";
472
+ "fa-IR": "fa-IR";
473
+ "bn-BD": "bn-BD";
474
+ "ta-IN": "ta-IN";
475
+ "si-LK": "si-LK";
476
+ "ms-MY": "ms-MY";
477
+ "fil-PH": "fil-PH";
478
+ "my-MM": "my-MM";
479
+ "km-KH": "km-KH";
480
+ "lo-LA": "lo-LA";
481
+ "mn-MN": "mn-MN";
482
+ "kk-KZ": "kk-KZ";
483
+ }> & z.core.$partial, z.ZodString>>;
484
+ }, z.core.$strict>;
485
+ description: z.ZodObject<{
486
+ english: z.ZodString;
487
+ translations: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
488
+ "zh-CN": "zh-CN";
489
+ "zh-HK": "zh-HK";
490
+ "zh-TW": "zh-TW";
491
+ "en-US": "en-US";
492
+ "en-GB": "en-GB";
493
+ "ja-JP": "ja-JP";
494
+ "ko-KR": "ko-KR";
495
+ "es-ES": "es-ES";
496
+ "fr-FR": "fr-FR";
497
+ "de-DE": "de-DE";
498
+ "pt-PT": "pt-PT";
499
+ "ru-RU": "ru-RU";
500
+ "ar-SA": "ar-SA";
501
+ "id-ID": "id-ID";
502
+ "vi-VN": "vi-VN";
503
+ "th-TH": "th-TH";
504
+ "it-IT": "it-IT";
505
+ "nl-NL": "nl-NL";
506
+ "tr-TR": "tr-TR";
507
+ "pl-PL": "pl-PL";
508
+ "uk-UA": "uk-UA";
509
+ "cs-CZ": "cs-CZ";
510
+ "sk-SK": "sk-SK";
511
+ "hu-HU": "hu-HU";
512
+ "ro-RO": "ro-RO";
513
+ "el-GR": "el-GR";
514
+ "sv-SE": "sv-SE";
515
+ "da-DK": "da-DK";
516
+ "fi-FI": "fi-FI";
517
+ "hr-HR": "hr-HR";
518
+ "lt-LT": "lt-LT";
519
+ "lv-LV": "lv-LV";
520
+ "et-EE": "et-EE";
521
+ "ga-IE": "ga-IE";
522
+ "mt-MT": "mt-MT";
523
+ "ka-GE": "ka-GE";
524
+ "fa-IR": "fa-IR";
525
+ "bn-BD": "bn-BD";
526
+ "ta-IN": "ta-IN";
527
+ "si-LK": "si-LK";
528
+ "ms-MY": "ms-MY";
529
+ "fil-PH": "fil-PH";
530
+ "my-MM": "my-MM";
531
+ "km-KH": "km-KH";
532
+ "lo-LA": "lo-LA";
533
+ "mn-MN": "mn-MN";
534
+ "kk-KZ": "kk-KZ";
535
+ }> & z.core.$partial, z.ZodString>>;
536
+ }, z.core.$strict>;
537
+ submit_button: z.ZodObject<{
538
+ english: z.ZodString;
539
+ translations: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
540
+ "zh-CN": "zh-CN";
541
+ "zh-HK": "zh-HK";
542
+ "zh-TW": "zh-TW";
543
+ "en-US": "en-US";
544
+ "en-GB": "en-GB";
545
+ "ja-JP": "ja-JP";
546
+ "ko-KR": "ko-KR";
547
+ "es-ES": "es-ES";
548
+ "fr-FR": "fr-FR";
549
+ "de-DE": "de-DE";
550
+ "pt-PT": "pt-PT";
551
+ "ru-RU": "ru-RU";
552
+ "ar-SA": "ar-SA";
553
+ "id-ID": "id-ID";
554
+ "vi-VN": "vi-VN";
555
+ "th-TH": "th-TH";
556
+ "it-IT": "it-IT";
557
+ "nl-NL": "nl-NL";
558
+ "tr-TR": "tr-TR";
559
+ "pl-PL": "pl-PL";
560
+ "uk-UA": "uk-UA";
561
+ "cs-CZ": "cs-CZ";
562
+ "sk-SK": "sk-SK";
563
+ "hu-HU": "hu-HU";
564
+ "ro-RO": "ro-RO";
565
+ "el-GR": "el-GR";
566
+ "sv-SE": "sv-SE";
567
+ "da-DK": "da-DK";
568
+ "fi-FI": "fi-FI";
569
+ "hr-HR": "hr-HR";
570
+ "lt-LT": "lt-LT";
571
+ "lv-LV": "lv-LV";
572
+ "et-EE": "et-EE";
573
+ "ga-IE": "ga-IE";
574
+ "mt-MT": "mt-MT";
575
+ "ka-GE": "ka-GE";
576
+ "fa-IR": "fa-IR";
577
+ "bn-BD": "bn-BD";
578
+ "ta-IN": "ta-IN";
579
+ "si-LK": "si-LK";
580
+ "ms-MY": "ms-MY";
581
+ "fil-PH": "fil-PH";
582
+ "my-MM": "my-MM";
583
+ "km-KH": "km-KH";
584
+ "lo-LA": "lo-LA";
585
+ "mn-MN": "mn-MN";
586
+ "kk-KZ": "kk-KZ";
587
+ }> & z.core.$partial, z.ZodString>>;
588
+ }, z.core.$strict>;
589
+ success_message: z.ZodObject<{
590
+ english: z.ZodString;
591
+ translations: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
592
+ "zh-CN": "zh-CN";
593
+ "zh-HK": "zh-HK";
594
+ "zh-TW": "zh-TW";
595
+ "en-US": "en-US";
596
+ "en-GB": "en-GB";
597
+ "ja-JP": "ja-JP";
598
+ "ko-KR": "ko-KR";
599
+ "es-ES": "es-ES";
600
+ "fr-FR": "fr-FR";
601
+ "de-DE": "de-DE";
602
+ "pt-PT": "pt-PT";
603
+ "ru-RU": "ru-RU";
604
+ "ar-SA": "ar-SA";
605
+ "id-ID": "id-ID";
606
+ "vi-VN": "vi-VN";
607
+ "th-TH": "th-TH";
608
+ "it-IT": "it-IT";
609
+ "nl-NL": "nl-NL";
610
+ "tr-TR": "tr-TR";
611
+ "pl-PL": "pl-PL";
612
+ "uk-UA": "uk-UA";
613
+ "cs-CZ": "cs-CZ";
614
+ "sk-SK": "sk-SK";
615
+ "hu-HU": "hu-HU";
616
+ "ro-RO": "ro-RO";
617
+ "el-GR": "el-GR";
618
+ "sv-SE": "sv-SE";
619
+ "da-DK": "da-DK";
620
+ "fi-FI": "fi-FI";
621
+ "hr-HR": "hr-HR";
622
+ "lt-LT": "lt-LT";
623
+ "lv-LV": "lv-LV";
624
+ "et-EE": "et-EE";
625
+ "ga-IE": "ga-IE";
626
+ "mt-MT": "mt-MT";
627
+ "ka-GE": "ka-GE";
628
+ "fa-IR": "fa-IR";
629
+ "bn-BD": "bn-BD";
630
+ "ta-IN": "ta-IN";
631
+ "si-LK": "si-LK";
632
+ "ms-MY": "ms-MY";
633
+ "fil-PH": "fil-PH";
634
+ "my-MM": "my-MM";
635
+ "km-KH": "km-KH";
636
+ "lo-LA": "lo-LA";
637
+ "mn-MN": "mn-MN";
638
+ "kk-KZ": "kk-KZ";
639
+ }> & z.core.$partial, z.ZodString>>;
640
+ }, z.core.$strict>;
641
+ error_message: z.ZodObject<{
642
+ english: z.ZodString;
643
+ translations: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
644
+ "zh-CN": "zh-CN";
645
+ "zh-HK": "zh-HK";
646
+ "zh-TW": "zh-TW";
647
+ "en-US": "en-US";
648
+ "en-GB": "en-GB";
649
+ "ja-JP": "ja-JP";
650
+ "ko-KR": "ko-KR";
651
+ "es-ES": "es-ES";
652
+ "fr-FR": "fr-FR";
653
+ "de-DE": "de-DE";
654
+ "pt-PT": "pt-PT";
655
+ "ru-RU": "ru-RU";
656
+ "ar-SA": "ar-SA";
657
+ "id-ID": "id-ID";
658
+ "vi-VN": "vi-VN";
659
+ "th-TH": "th-TH";
660
+ "it-IT": "it-IT";
661
+ "nl-NL": "nl-NL";
662
+ "tr-TR": "tr-TR";
663
+ "pl-PL": "pl-PL";
664
+ "uk-UA": "uk-UA";
665
+ "cs-CZ": "cs-CZ";
666
+ "sk-SK": "sk-SK";
667
+ "hu-HU": "hu-HU";
668
+ "ro-RO": "ro-RO";
669
+ "el-GR": "el-GR";
670
+ "sv-SE": "sv-SE";
671
+ "da-DK": "da-DK";
672
+ "fi-FI": "fi-FI";
673
+ "hr-HR": "hr-HR";
674
+ "lt-LT": "lt-LT";
675
+ "lv-LV": "lv-LV";
676
+ "et-EE": "et-EE";
677
+ "ga-IE": "ga-IE";
678
+ "mt-MT": "mt-MT";
679
+ "ka-GE": "ka-GE";
680
+ "fa-IR": "fa-IR";
681
+ "bn-BD": "bn-BD";
682
+ "ta-IN": "ta-IN";
683
+ "si-LK": "si-LK";
684
+ "ms-MY": "ms-MY";
685
+ "fil-PH": "fil-PH";
686
+ "my-MM": "my-MM";
687
+ "km-KH": "km-KH";
688
+ "lo-LA": "lo-LA";
689
+ "mn-MN": "mn-MN";
690
+ "kk-KZ": "kk-KZ";
691
+ }> & z.core.$partial, z.ZodString>>;
692
+ }, z.core.$strict>;
693
+ }, z.core.$strict>;
694
+ layout: z.ZodObject<{
695
+ columns: z.ZodEnum<{
696
+ one: "one";
697
+ two: "two";
698
+ }>;
699
+ }, z.core.$strict>;
700
+ fields: z.ZodArray<z.ZodObject<{
701
+ template_field_key: z.ZodString;
702
+ type: z.ZodEnum<{
703
+ number: "number";
704
+ boolean: "boolean";
705
+ date: "date";
706
+ text: "text";
707
+ email: "email";
708
+ select: "select";
709
+ multiselect: "multiselect";
710
+ textarea: "textarea";
711
+ phone: "phone";
712
+ radio: "radio";
713
+ }>;
714
+ label: z.ZodObject<{
715
+ english: z.ZodString;
716
+ translations: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
717
+ "zh-CN": "zh-CN";
718
+ "zh-HK": "zh-HK";
719
+ "zh-TW": "zh-TW";
720
+ "en-US": "en-US";
721
+ "en-GB": "en-GB";
722
+ "ja-JP": "ja-JP";
723
+ "ko-KR": "ko-KR";
724
+ "es-ES": "es-ES";
725
+ "fr-FR": "fr-FR";
726
+ "de-DE": "de-DE";
727
+ "pt-PT": "pt-PT";
728
+ "ru-RU": "ru-RU";
729
+ "ar-SA": "ar-SA";
730
+ "id-ID": "id-ID";
731
+ "vi-VN": "vi-VN";
732
+ "th-TH": "th-TH";
733
+ "it-IT": "it-IT";
734
+ "nl-NL": "nl-NL";
735
+ "tr-TR": "tr-TR";
736
+ "pl-PL": "pl-PL";
737
+ "uk-UA": "uk-UA";
738
+ "cs-CZ": "cs-CZ";
739
+ "sk-SK": "sk-SK";
740
+ "hu-HU": "hu-HU";
741
+ "ro-RO": "ro-RO";
742
+ "el-GR": "el-GR";
743
+ "sv-SE": "sv-SE";
744
+ "da-DK": "da-DK";
745
+ "fi-FI": "fi-FI";
746
+ "hr-HR": "hr-HR";
747
+ "lt-LT": "lt-LT";
748
+ "lv-LV": "lv-LV";
749
+ "et-EE": "et-EE";
750
+ "ga-IE": "ga-IE";
751
+ "mt-MT": "mt-MT";
752
+ "ka-GE": "ka-GE";
753
+ "fa-IR": "fa-IR";
754
+ "bn-BD": "bn-BD";
755
+ "ta-IN": "ta-IN";
756
+ "si-LK": "si-LK";
757
+ "ms-MY": "ms-MY";
758
+ "fil-PH": "fil-PH";
759
+ "my-MM": "my-MM";
760
+ "km-KH": "km-KH";
761
+ "lo-LA": "lo-LA";
762
+ "mn-MN": "mn-MN";
763
+ "kk-KZ": "kk-KZ";
764
+ }> & z.core.$partial, z.ZodString>>;
765
+ }, z.core.$strict>;
766
+ required: z.ZodBoolean;
767
+ span: z.ZodEnum<{
768
+ full: "full";
769
+ half: "half";
770
+ }>;
771
+ options: z.ZodArray<z.ZodObject<{
772
+ template_option_key: z.ZodString;
773
+ label: z.ZodObject<{
774
+ english: z.ZodString;
775
+ translations: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
776
+ "zh-CN": "zh-CN";
777
+ "zh-HK": "zh-HK";
778
+ "zh-TW": "zh-TW";
779
+ "en-US": "en-US";
780
+ "en-GB": "en-GB";
781
+ "ja-JP": "ja-JP";
782
+ "ko-KR": "ko-KR";
783
+ "es-ES": "es-ES";
784
+ "fr-FR": "fr-FR";
785
+ "de-DE": "de-DE";
786
+ "pt-PT": "pt-PT";
787
+ "ru-RU": "ru-RU";
788
+ "ar-SA": "ar-SA";
789
+ "id-ID": "id-ID";
790
+ "vi-VN": "vi-VN";
791
+ "th-TH": "th-TH";
792
+ "it-IT": "it-IT";
793
+ "nl-NL": "nl-NL";
794
+ "tr-TR": "tr-TR";
795
+ "pl-PL": "pl-PL";
796
+ "uk-UA": "uk-UA";
797
+ "cs-CZ": "cs-CZ";
798
+ "sk-SK": "sk-SK";
799
+ "hu-HU": "hu-HU";
800
+ "ro-RO": "ro-RO";
801
+ "el-GR": "el-GR";
802
+ "sv-SE": "sv-SE";
803
+ "da-DK": "da-DK";
804
+ "fi-FI": "fi-FI";
805
+ "hr-HR": "hr-HR";
806
+ "lt-LT": "lt-LT";
807
+ "lv-LV": "lv-LV";
808
+ "et-EE": "et-EE";
809
+ "ga-IE": "ga-IE";
810
+ "mt-MT": "mt-MT";
811
+ "ka-GE": "ka-GE";
812
+ "fa-IR": "fa-IR";
813
+ "bn-BD": "bn-BD";
814
+ "ta-IN": "ta-IN";
815
+ "si-LK": "si-LK";
816
+ "ms-MY": "ms-MY";
817
+ "fil-PH": "fil-PH";
818
+ "my-MM": "my-MM";
819
+ "km-KH": "km-KH";
820
+ "lo-LA": "lo-LA";
821
+ "mn-MN": "mn-MN";
822
+ "kk-KZ": "kk-KZ";
823
+ }> & z.core.$partial, z.ZodString>>;
824
+ }, z.core.$strict>;
825
+ }, z.core.$strict>>;
826
+ }, z.core.$strict>>;
827
+ step_breaks: z.ZodOptional<z.ZodArray<z.ZodObject<{
828
+ template_step_key: z.ZodString;
829
+ after_field_key: z.ZodString;
830
+ }, z.core.$strict>>>;
831
+ }, z.core.$strict>;
832
+ export type FormTemplateV1 = z.infer<typeof FormTemplateV1Schema>;
833
+ export declare const FormTemplateCatalogResponseSchema: z.ZodObject<{
834
+ schema_version: z.ZodLiteral<1>;
835
+ visibility: z.ZodEnum<{
836
+ internal: "internal";
837
+ public: "public";
838
+ }>;
839
+ categories: z.ZodArray<z.ZodObject<{
840
+ schema_version: z.ZodLiteral<1>;
841
+ slug: z.ZodEnum<{
842
+ "lead-generation": "lead-generation";
843
+ "trial-and-samples": "trial-and-samples";
844
+ "quote-and-commerce": "quote-and-commerce";
845
+ "appointments-and-visits": "appointments-and-visits";
846
+ "resources-and-subscriptions": "resources-and-subscriptions";
847
+ "service-and-channel": "service-and-channel";
848
+ }>;
849
+ name: z.ZodObject<{
850
+ english: z.ZodString;
851
+ translations: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
852
+ "zh-CN": "zh-CN";
853
+ "zh-HK": "zh-HK";
854
+ "zh-TW": "zh-TW";
855
+ "en-US": "en-US";
856
+ "en-GB": "en-GB";
857
+ "ja-JP": "ja-JP";
858
+ "ko-KR": "ko-KR";
859
+ "es-ES": "es-ES";
860
+ "fr-FR": "fr-FR";
861
+ "de-DE": "de-DE";
862
+ "pt-PT": "pt-PT";
863
+ "ru-RU": "ru-RU";
864
+ "ar-SA": "ar-SA";
865
+ "id-ID": "id-ID";
866
+ "vi-VN": "vi-VN";
867
+ "th-TH": "th-TH";
868
+ "it-IT": "it-IT";
869
+ "nl-NL": "nl-NL";
870
+ "tr-TR": "tr-TR";
871
+ "pl-PL": "pl-PL";
872
+ "uk-UA": "uk-UA";
873
+ "cs-CZ": "cs-CZ";
874
+ "sk-SK": "sk-SK";
875
+ "hu-HU": "hu-HU";
876
+ "ro-RO": "ro-RO";
877
+ "el-GR": "el-GR";
878
+ "sv-SE": "sv-SE";
879
+ "da-DK": "da-DK";
880
+ "fi-FI": "fi-FI";
881
+ "hr-HR": "hr-HR";
882
+ "lt-LT": "lt-LT";
883
+ "lv-LV": "lv-LV";
884
+ "et-EE": "et-EE";
885
+ "ga-IE": "ga-IE";
886
+ "mt-MT": "mt-MT";
887
+ "ka-GE": "ka-GE";
888
+ "fa-IR": "fa-IR";
889
+ "bn-BD": "bn-BD";
890
+ "ta-IN": "ta-IN";
891
+ "si-LK": "si-LK";
892
+ "ms-MY": "ms-MY";
893
+ "fil-PH": "fil-PH";
894
+ "my-MM": "my-MM";
895
+ "km-KH": "km-KH";
896
+ "lo-LA": "lo-LA";
897
+ "mn-MN": "mn-MN";
898
+ "kk-KZ": "kk-KZ";
899
+ }> & z.core.$partial, z.ZodString>>;
900
+ }, z.core.$strict>;
901
+ template_count: z.ZodNumber;
902
+ }, z.core.$strict>>;
903
+ templates: z.ZodArray<z.ZodObject<{
904
+ schema_version: z.ZodLiteral<1>;
905
+ slug: z.ZodString;
906
+ version: z.ZodString;
907
+ category: z.ZodEnum<{
908
+ "lead-generation": "lead-generation";
909
+ "trial-and-samples": "trial-and-samples";
910
+ "quote-and-commerce": "quote-and-commerce";
911
+ "appointments-and-visits": "appointments-and-visits";
912
+ "resources-and-subscriptions": "resources-and-subscriptions";
913
+ "service-and-channel": "service-and-channel";
914
+ }>;
915
+ copy: z.ZodObject<{
916
+ title: z.ZodObject<{
917
+ english: z.ZodString;
918
+ translations: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
919
+ "zh-CN": "zh-CN";
920
+ "zh-HK": "zh-HK";
921
+ "zh-TW": "zh-TW";
922
+ "en-US": "en-US";
923
+ "en-GB": "en-GB";
924
+ "ja-JP": "ja-JP";
925
+ "ko-KR": "ko-KR";
926
+ "es-ES": "es-ES";
927
+ "fr-FR": "fr-FR";
928
+ "de-DE": "de-DE";
929
+ "pt-PT": "pt-PT";
930
+ "ru-RU": "ru-RU";
931
+ "ar-SA": "ar-SA";
932
+ "id-ID": "id-ID";
933
+ "vi-VN": "vi-VN";
934
+ "th-TH": "th-TH";
935
+ "it-IT": "it-IT";
936
+ "nl-NL": "nl-NL";
937
+ "tr-TR": "tr-TR";
938
+ "pl-PL": "pl-PL";
939
+ "uk-UA": "uk-UA";
940
+ "cs-CZ": "cs-CZ";
941
+ "sk-SK": "sk-SK";
942
+ "hu-HU": "hu-HU";
943
+ "ro-RO": "ro-RO";
944
+ "el-GR": "el-GR";
945
+ "sv-SE": "sv-SE";
946
+ "da-DK": "da-DK";
947
+ "fi-FI": "fi-FI";
948
+ "hr-HR": "hr-HR";
949
+ "lt-LT": "lt-LT";
950
+ "lv-LV": "lv-LV";
951
+ "et-EE": "et-EE";
952
+ "ga-IE": "ga-IE";
953
+ "mt-MT": "mt-MT";
954
+ "ka-GE": "ka-GE";
955
+ "fa-IR": "fa-IR";
956
+ "bn-BD": "bn-BD";
957
+ "ta-IN": "ta-IN";
958
+ "si-LK": "si-LK";
959
+ "ms-MY": "ms-MY";
960
+ "fil-PH": "fil-PH";
961
+ "my-MM": "my-MM";
962
+ "km-KH": "km-KH";
963
+ "lo-LA": "lo-LA";
964
+ "mn-MN": "mn-MN";
965
+ "kk-KZ": "kk-KZ";
966
+ }> & z.core.$partial, z.ZodString>>;
967
+ }, z.core.$strict>;
968
+ description: z.ZodObject<{
969
+ english: z.ZodString;
970
+ translations: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
971
+ "zh-CN": "zh-CN";
972
+ "zh-HK": "zh-HK";
973
+ "zh-TW": "zh-TW";
974
+ "en-US": "en-US";
975
+ "en-GB": "en-GB";
976
+ "ja-JP": "ja-JP";
977
+ "ko-KR": "ko-KR";
978
+ "es-ES": "es-ES";
979
+ "fr-FR": "fr-FR";
980
+ "de-DE": "de-DE";
981
+ "pt-PT": "pt-PT";
982
+ "ru-RU": "ru-RU";
983
+ "ar-SA": "ar-SA";
984
+ "id-ID": "id-ID";
985
+ "vi-VN": "vi-VN";
986
+ "th-TH": "th-TH";
987
+ "it-IT": "it-IT";
988
+ "nl-NL": "nl-NL";
989
+ "tr-TR": "tr-TR";
990
+ "pl-PL": "pl-PL";
991
+ "uk-UA": "uk-UA";
992
+ "cs-CZ": "cs-CZ";
993
+ "sk-SK": "sk-SK";
994
+ "hu-HU": "hu-HU";
995
+ "ro-RO": "ro-RO";
996
+ "el-GR": "el-GR";
997
+ "sv-SE": "sv-SE";
998
+ "da-DK": "da-DK";
999
+ "fi-FI": "fi-FI";
1000
+ "hr-HR": "hr-HR";
1001
+ "lt-LT": "lt-LT";
1002
+ "lv-LV": "lv-LV";
1003
+ "et-EE": "et-EE";
1004
+ "ga-IE": "ga-IE";
1005
+ "mt-MT": "mt-MT";
1006
+ "ka-GE": "ka-GE";
1007
+ "fa-IR": "fa-IR";
1008
+ "bn-BD": "bn-BD";
1009
+ "ta-IN": "ta-IN";
1010
+ "si-LK": "si-LK";
1011
+ "ms-MY": "ms-MY";
1012
+ "fil-PH": "fil-PH";
1013
+ "my-MM": "my-MM";
1014
+ "km-KH": "km-KH";
1015
+ "lo-LA": "lo-LA";
1016
+ "mn-MN": "mn-MN";
1017
+ "kk-KZ": "kk-KZ";
1018
+ }> & z.core.$partial, z.ZodString>>;
1019
+ }, z.core.$strict>;
1020
+ submit_button: z.ZodObject<{
1021
+ english: z.ZodString;
1022
+ translations: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
1023
+ "zh-CN": "zh-CN";
1024
+ "zh-HK": "zh-HK";
1025
+ "zh-TW": "zh-TW";
1026
+ "en-US": "en-US";
1027
+ "en-GB": "en-GB";
1028
+ "ja-JP": "ja-JP";
1029
+ "ko-KR": "ko-KR";
1030
+ "es-ES": "es-ES";
1031
+ "fr-FR": "fr-FR";
1032
+ "de-DE": "de-DE";
1033
+ "pt-PT": "pt-PT";
1034
+ "ru-RU": "ru-RU";
1035
+ "ar-SA": "ar-SA";
1036
+ "id-ID": "id-ID";
1037
+ "vi-VN": "vi-VN";
1038
+ "th-TH": "th-TH";
1039
+ "it-IT": "it-IT";
1040
+ "nl-NL": "nl-NL";
1041
+ "tr-TR": "tr-TR";
1042
+ "pl-PL": "pl-PL";
1043
+ "uk-UA": "uk-UA";
1044
+ "cs-CZ": "cs-CZ";
1045
+ "sk-SK": "sk-SK";
1046
+ "hu-HU": "hu-HU";
1047
+ "ro-RO": "ro-RO";
1048
+ "el-GR": "el-GR";
1049
+ "sv-SE": "sv-SE";
1050
+ "da-DK": "da-DK";
1051
+ "fi-FI": "fi-FI";
1052
+ "hr-HR": "hr-HR";
1053
+ "lt-LT": "lt-LT";
1054
+ "lv-LV": "lv-LV";
1055
+ "et-EE": "et-EE";
1056
+ "ga-IE": "ga-IE";
1057
+ "mt-MT": "mt-MT";
1058
+ "ka-GE": "ka-GE";
1059
+ "fa-IR": "fa-IR";
1060
+ "bn-BD": "bn-BD";
1061
+ "ta-IN": "ta-IN";
1062
+ "si-LK": "si-LK";
1063
+ "ms-MY": "ms-MY";
1064
+ "fil-PH": "fil-PH";
1065
+ "my-MM": "my-MM";
1066
+ "km-KH": "km-KH";
1067
+ "lo-LA": "lo-LA";
1068
+ "mn-MN": "mn-MN";
1069
+ "kk-KZ": "kk-KZ";
1070
+ }> & z.core.$partial, z.ZodString>>;
1071
+ }, z.core.$strict>;
1072
+ success_message: z.ZodObject<{
1073
+ english: z.ZodString;
1074
+ translations: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
1075
+ "zh-CN": "zh-CN";
1076
+ "zh-HK": "zh-HK";
1077
+ "zh-TW": "zh-TW";
1078
+ "en-US": "en-US";
1079
+ "en-GB": "en-GB";
1080
+ "ja-JP": "ja-JP";
1081
+ "ko-KR": "ko-KR";
1082
+ "es-ES": "es-ES";
1083
+ "fr-FR": "fr-FR";
1084
+ "de-DE": "de-DE";
1085
+ "pt-PT": "pt-PT";
1086
+ "ru-RU": "ru-RU";
1087
+ "ar-SA": "ar-SA";
1088
+ "id-ID": "id-ID";
1089
+ "vi-VN": "vi-VN";
1090
+ "th-TH": "th-TH";
1091
+ "it-IT": "it-IT";
1092
+ "nl-NL": "nl-NL";
1093
+ "tr-TR": "tr-TR";
1094
+ "pl-PL": "pl-PL";
1095
+ "uk-UA": "uk-UA";
1096
+ "cs-CZ": "cs-CZ";
1097
+ "sk-SK": "sk-SK";
1098
+ "hu-HU": "hu-HU";
1099
+ "ro-RO": "ro-RO";
1100
+ "el-GR": "el-GR";
1101
+ "sv-SE": "sv-SE";
1102
+ "da-DK": "da-DK";
1103
+ "fi-FI": "fi-FI";
1104
+ "hr-HR": "hr-HR";
1105
+ "lt-LT": "lt-LT";
1106
+ "lv-LV": "lv-LV";
1107
+ "et-EE": "et-EE";
1108
+ "ga-IE": "ga-IE";
1109
+ "mt-MT": "mt-MT";
1110
+ "ka-GE": "ka-GE";
1111
+ "fa-IR": "fa-IR";
1112
+ "bn-BD": "bn-BD";
1113
+ "ta-IN": "ta-IN";
1114
+ "si-LK": "si-LK";
1115
+ "ms-MY": "ms-MY";
1116
+ "fil-PH": "fil-PH";
1117
+ "my-MM": "my-MM";
1118
+ "km-KH": "km-KH";
1119
+ "lo-LA": "lo-LA";
1120
+ "mn-MN": "mn-MN";
1121
+ "kk-KZ": "kk-KZ";
1122
+ }> & z.core.$partial, z.ZodString>>;
1123
+ }, z.core.$strict>;
1124
+ error_message: z.ZodObject<{
1125
+ english: z.ZodString;
1126
+ translations: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
1127
+ "zh-CN": "zh-CN";
1128
+ "zh-HK": "zh-HK";
1129
+ "zh-TW": "zh-TW";
1130
+ "en-US": "en-US";
1131
+ "en-GB": "en-GB";
1132
+ "ja-JP": "ja-JP";
1133
+ "ko-KR": "ko-KR";
1134
+ "es-ES": "es-ES";
1135
+ "fr-FR": "fr-FR";
1136
+ "de-DE": "de-DE";
1137
+ "pt-PT": "pt-PT";
1138
+ "ru-RU": "ru-RU";
1139
+ "ar-SA": "ar-SA";
1140
+ "id-ID": "id-ID";
1141
+ "vi-VN": "vi-VN";
1142
+ "th-TH": "th-TH";
1143
+ "it-IT": "it-IT";
1144
+ "nl-NL": "nl-NL";
1145
+ "tr-TR": "tr-TR";
1146
+ "pl-PL": "pl-PL";
1147
+ "uk-UA": "uk-UA";
1148
+ "cs-CZ": "cs-CZ";
1149
+ "sk-SK": "sk-SK";
1150
+ "hu-HU": "hu-HU";
1151
+ "ro-RO": "ro-RO";
1152
+ "el-GR": "el-GR";
1153
+ "sv-SE": "sv-SE";
1154
+ "da-DK": "da-DK";
1155
+ "fi-FI": "fi-FI";
1156
+ "hr-HR": "hr-HR";
1157
+ "lt-LT": "lt-LT";
1158
+ "lv-LV": "lv-LV";
1159
+ "et-EE": "et-EE";
1160
+ "ga-IE": "ga-IE";
1161
+ "mt-MT": "mt-MT";
1162
+ "ka-GE": "ka-GE";
1163
+ "fa-IR": "fa-IR";
1164
+ "bn-BD": "bn-BD";
1165
+ "ta-IN": "ta-IN";
1166
+ "si-LK": "si-LK";
1167
+ "ms-MY": "ms-MY";
1168
+ "fil-PH": "fil-PH";
1169
+ "my-MM": "my-MM";
1170
+ "km-KH": "km-KH";
1171
+ "lo-LA": "lo-LA";
1172
+ "mn-MN": "mn-MN";
1173
+ "kk-KZ": "kk-KZ";
1174
+ }> & z.core.$partial, z.ZodString>>;
1175
+ }, z.core.$strict>;
1176
+ }, z.core.$strict>;
1177
+ layout: z.ZodObject<{
1178
+ columns: z.ZodEnum<{
1179
+ one: "one";
1180
+ two: "two";
1181
+ }>;
1182
+ }, z.core.$strict>;
1183
+ fields: z.ZodArray<z.ZodObject<{
1184
+ template_field_key: z.ZodString;
1185
+ type: z.ZodEnum<{
1186
+ number: "number";
1187
+ boolean: "boolean";
1188
+ date: "date";
1189
+ text: "text";
1190
+ email: "email";
1191
+ select: "select";
1192
+ multiselect: "multiselect";
1193
+ textarea: "textarea";
1194
+ phone: "phone";
1195
+ radio: "radio";
1196
+ }>;
1197
+ label: z.ZodObject<{
1198
+ english: z.ZodString;
1199
+ translations: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
1200
+ "zh-CN": "zh-CN";
1201
+ "zh-HK": "zh-HK";
1202
+ "zh-TW": "zh-TW";
1203
+ "en-US": "en-US";
1204
+ "en-GB": "en-GB";
1205
+ "ja-JP": "ja-JP";
1206
+ "ko-KR": "ko-KR";
1207
+ "es-ES": "es-ES";
1208
+ "fr-FR": "fr-FR";
1209
+ "de-DE": "de-DE";
1210
+ "pt-PT": "pt-PT";
1211
+ "ru-RU": "ru-RU";
1212
+ "ar-SA": "ar-SA";
1213
+ "id-ID": "id-ID";
1214
+ "vi-VN": "vi-VN";
1215
+ "th-TH": "th-TH";
1216
+ "it-IT": "it-IT";
1217
+ "nl-NL": "nl-NL";
1218
+ "tr-TR": "tr-TR";
1219
+ "pl-PL": "pl-PL";
1220
+ "uk-UA": "uk-UA";
1221
+ "cs-CZ": "cs-CZ";
1222
+ "sk-SK": "sk-SK";
1223
+ "hu-HU": "hu-HU";
1224
+ "ro-RO": "ro-RO";
1225
+ "el-GR": "el-GR";
1226
+ "sv-SE": "sv-SE";
1227
+ "da-DK": "da-DK";
1228
+ "fi-FI": "fi-FI";
1229
+ "hr-HR": "hr-HR";
1230
+ "lt-LT": "lt-LT";
1231
+ "lv-LV": "lv-LV";
1232
+ "et-EE": "et-EE";
1233
+ "ga-IE": "ga-IE";
1234
+ "mt-MT": "mt-MT";
1235
+ "ka-GE": "ka-GE";
1236
+ "fa-IR": "fa-IR";
1237
+ "bn-BD": "bn-BD";
1238
+ "ta-IN": "ta-IN";
1239
+ "si-LK": "si-LK";
1240
+ "ms-MY": "ms-MY";
1241
+ "fil-PH": "fil-PH";
1242
+ "my-MM": "my-MM";
1243
+ "km-KH": "km-KH";
1244
+ "lo-LA": "lo-LA";
1245
+ "mn-MN": "mn-MN";
1246
+ "kk-KZ": "kk-KZ";
1247
+ }> & z.core.$partial, z.ZodString>>;
1248
+ }, z.core.$strict>;
1249
+ required: z.ZodBoolean;
1250
+ span: z.ZodEnum<{
1251
+ full: "full";
1252
+ half: "half";
1253
+ }>;
1254
+ options: z.ZodArray<z.ZodObject<{
1255
+ template_option_key: z.ZodString;
1256
+ label: z.ZodObject<{
1257
+ english: z.ZodString;
1258
+ translations: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
1259
+ "zh-CN": "zh-CN";
1260
+ "zh-HK": "zh-HK";
1261
+ "zh-TW": "zh-TW";
1262
+ "en-US": "en-US";
1263
+ "en-GB": "en-GB";
1264
+ "ja-JP": "ja-JP";
1265
+ "ko-KR": "ko-KR";
1266
+ "es-ES": "es-ES";
1267
+ "fr-FR": "fr-FR";
1268
+ "de-DE": "de-DE";
1269
+ "pt-PT": "pt-PT";
1270
+ "ru-RU": "ru-RU";
1271
+ "ar-SA": "ar-SA";
1272
+ "id-ID": "id-ID";
1273
+ "vi-VN": "vi-VN";
1274
+ "th-TH": "th-TH";
1275
+ "it-IT": "it-IT";
1276
+ "nl-NL": "nl-NL";
1277
+ "tr-TR": "tr-TR";
1278
+ "pl-PL": "pl-PL";
1279
+ "uk-UA": "uk-UA";
1280
+ "cs-CZ": "cs-CZ";
1281
+ "sk-SK": "sk-SK";
1282
+ "hu-HU": "hu-HU";
1283
+ "ro-RO": "ro-RO";
1284
+ "el-GR": "el-GR";
1285
+ "sv-SE": "sv-SE";
1286
+ "da-DK": "da-DK";
1287
+ "fi-FI": "fi-FI";
1288
+ "hr-HR": "hr-HR";
1289
+ "lt-LT": "lt-LT";
1290
+ "lv-LV": "lv-LV";
1291
+ "et-EE": "et-EE";
1292
+ "ga-IE": "ga-IE";
1293
+ "mt-MT": "mt-MT";
1294
+ "ka-GE": "ka-GE";
1295
+ "fa-IR": "fa-IR";
1296
+ "bn-BD": "bn-BD";
1297
+ "ta-IN": "ta-IN";
1298
+ "si-LK": "si-LK";
1299
+ "ms-MY": "ms-MY";
1300
+ "fil-PH": "fil-PH";
1301
+ "my-MM": "my-MM";
1302
+ "km-KH": "km-KH";
1303
+ "lo-LA": "lo-LA";
1304
+ "mn-MN": "mn-MN";
1305
+ "kk-KZ": "kk-KZ";
1306
+ }> & z.core.$partial, z.ZodString>>;
1307
+ }, z.core.$strict>;
1308
+ }, z.core.$strict>>;
1309
+ }, z.core.$strict>>;
1310
+ step_breaks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1311
+ template_step_key: z.ZodString;
1312
+ after_field_key: z.ZodString;
1313
+ }, z.core.$strict>>>;
1314
+ }, z.core.$strict>>;
1315
+ }, z.core.$strict>;
1316
+ export type FormTemplateCatalogResponse = z.infer<typeof FormTemplateCatalogResponseSchema>;
1317
+ export declare function resolveFormTemplateText(text: FormTemplateText, locale: SiteLocale): string;
1318
+ export declare const CMS_FORM_FIELD_TYPES: readonly ["Text", "Summary", "Email", "Phone", "DropdownSelection", "RadioButton", "Checkbox", "Boolean", "Date", "Num"];
1319
+ export type CmsFormFieldType = (typeof CMS_FORM_FIELD_TYPES)[number];
1320
+ export declare const FORM_SPEC_FIELD_TYPE_TO_CMS: {
1321
+ readonly text: "Text";
1322
+ readonly textarea: "Summary";
1323
+ readonly email: "Email";
1324
+ readonly phone: "Phone";
1325
+ readonly select: "DropdownSelection";
1326
+ readonly radio: "RadioButton";
1327
+ readonly multiselect: "Checkbox";
1328
+ readonly boolean: "Boolean";
1329
+ readonly date: "Date";
1330
+ readonly number: "Num";
1331
+ };
1332
+ export declare const CmsFormSchemaProjectionSchema: z.ZodObject<{
1333
+ version: z.ZodLiteral<1>;
1334
+ locale: z.ZodEnum<{
1335
+ id: "id";
1336
+ "zh-CN": "zh-CN";
1337
+ "zh-HK": "zh-HK";
1338
+ "zh-TW": "zh-TW";
1339
+ "en-US": "en-US";
1340
+ "en-GB": "en-GB";
1341
+ "ja-JP": "ja-JP";
1342
+ "ko-KR": "ko-KR";
1343
+ "es-ES": "es-ES";
1344
+ "fr-FR": "fr-FR";
1345
+ "de-DE": "de-DE";
1346
+ "pt-PT": "pt-PT";
1347
+ "ru-RU": "ru-RU";
1348
+ "ar-SA": "ar-SA";
1349
+ "id-ID": "id-ID";
1350
+ "vi-VN": "vi-VN";
1351
+ "th-TH": "th-TH";
1352
+ "it-IT": "it-IT";
1353
+ "nl-NL": "nl-NL";
1354
+ "tr-TR": "tr-TR";
1355
+ "pl-PL": "pl-PL";
1356
+ "uk-UA": "uk-UA";
1357
+ "cs-CZ": "cs-CZ";
1358
+ "sk-SK": "sk-SK";
1359
+ "hu-HU": "hu-HU";
1360
+ "ro-RO": "ro-RO";
1361
+ "el-GR": "el-GR";
1362
+ "sv-SE": "sv-SE";
1363
+ "da-DK": "da-DK";
1364
+ "fi-FI": "fi-FI";
1365
+ "hr-HR": "hr-HR";
1366
+ "lt-LT": "lt-LT";
1367
+ "lv-LV": "lv-LV";
1368
+ "et-EE": "et-EE";
1369
+ "ga-IE": "ga-IE";
1370
+ "mt-MT": "mt-MT";
1371
+ "ka-GE": "ka-GE";
1372
+ "fa-IR": "fa-IR";
1373
+ "bn-BD": "bn-BD";
1374
+ "ta-IN": "ta-IN";
1375
+ "si-LK": "si-LK";
1376
+ "ms-MY": "ms-MY";
1377
+ "fil-PH": "fil-PH";
1378
+ "my-MM": "my-MM";
1379
+ "km-KH": "km-KH";
1380
+ "lo-LA": "lo-LA";
1381
+ "mn-MN": "mn-MN";
1382
+ "kk-KZ": "kk-KZ";
1383
+ en: "en";
1384
+ ja: "ja";
1385
+ es: "es";
1386
+ fr: "fr";
1387
+ de: "de";
1388
+ ko: "ko";
1389
+ pt: "pt";
1390
+ "pt-BR": "pt-BR";
1391
+ it: "it";
1392
+ ru: "ru";
1393
+ ar: "ar";
1394
+ hi: "hi";
1395
+ vi: "vi";
1396
+ th: "th";
1397
+ tr: "tr";
1398
+ nl: "nl";
1399
+ pl: "pl";
1400
+ uk: "uk";
1401
+ sv: "sv";
1402
+ da: "da";
1403
+ fi: "fi";
1404
+ no: "no";
1405
+ cs: "cs";
1406
+ el: "el";
1407
+ hu: "hu";
1408
+ ro: "ro";
1409
+ he: "he";
1410
+ ms: "ms";
1411
+ fil: "fil";
1412
+ bn: "bn";
1413
+ ta: "ta";
1414
+ ca: "ca";
1415
+ sk: "sk";
1416
+ hr: "hr";
1417
+ bg: "bg";
1418
+ lt: "lt";
1419
+ lv: "lv";
1420
+ et: "et";
1421
+ fa: "fa";
1422
+ sw: "sw";
1423
+ sr: "sr";
1424
+ is: "is";
1425
+ }>;
1426
+ fields: z.ZodArray<z.ZodObject<{
1427
+ field_name: z.ZodString;
1428
+ field_type: z.ZodEnum<{
1429
+ Text: "Text";
1430
+ Summary: "Summary";
1431
+ Email: "Email";
1432
+ Phone: "Phone";
1433
+ DropdownSelection: "DropdownSelection";
1434
+ RadioButton: "RadioButton";
1435
+ Checkbox: "Checkbox";
1436
+ Boolean: "Boolean";
1437
+ Date: "Date";
1438
+ Num: "Num";
1439
+ }>;
1440
+ field_label: z.ZodString;
1441
+ is_required: z.ZodBoolean;
1442
+ sort_order: z.ZodNumber;
1443
+ options: z.ZodArray<z.ZodObject<{
1444
+ value: z.ZodString;
1445
+ label: z.ZodString;
1446
+ }, z.core.$strict>>;
1447
+ }, z.core.$strict>>;
1448
+ }, z.core.$strict>;
1449
+ export type CmsFormSchemaProjection = z.infer<typeof CmsFormSchemaProjectionSchema>;
1450
+ export declare function projectFormSpecToCmsSchema(spec: FormSpecV1): CmsFormSchemaProjection;
1451
+ export declare const FormDesignHashSchema: z.ZodString;
1452
+ export type FormDesignHash = z.infer<typeof FormDesignHashSchema>;
1453
+ export declare const FormDesignAffectedFilesSchema: z.ZodArray<z.ZodObject<{
1454
+ path: z.ZodString;
1455
+ content_hash: z.ZodNullable<z.ZodString>;
1456
+ }, z.core.$strict>>;
1457
+ export type FormDesignAffectedFiles = z.infer<typeof FormDesignAffectedFilesSchema>;
1458
+ export declare const FormDesignStandardizationSchema: z.ZodObject<{
1459
+ grade: z.ZodEnum<{
1460
+ standard: "standard";
1461
+ A: "A";
1462
+ B: "B";
1463
+ C: "C";
1464
+ }>;
1465
+ required: z.ZodBoolean;
1466
+ pending_confirmations: z.ZodArray<z.ZodObject<{
1467
+ item_id: z.ZodString;
1468
+ field_name: z.ZodOptional<z.ZodString>;
1469
+ kind: z.ZodEnum<{
1470
+ layout: "layout";
1471
+ field_type: "field_type";
1472
+ field_label: "field_label";
1473
+ form_copy: "form_copy";
1474
+ field_required: "field_required";
1475
+ field_options: "field_options";
1476
+ }>;
1477
+ message: z.ZodString;
1478
+ }, z.core.$strict>>;
1479
+ }, z.core.$strict>;
1480
+ export type FormDesignStandardization = z.infer<typeof FormDesignStandardizationSchema>;
1481
+ export declare const FormDesignOperationFingerprintInputSchema: z.ZodObject<{
1482
+ site_id: z.ZodString;
1483
+ form_definition_id: z.ZodString;
1484
+ base_snapshot_id: z.ZodString;
1485
+ expected_form_spec_hash: z.ZodString;
1486
+ expected_cms_schema_hash: z.ZodNullable<z.ZodString>;
1487
+ draft_form_spec_hash: z.ZodString;
1488
+ desired_cms_schema_hash: z.ZodString;
1489
+ affected_files_hash: z.ZodString;
1490
+ shared_reference_hash: z.ZodString;
1491
+ shared_reference_count: z.ZodNumber;
1492
+ confirm_shared_update: z.ZodBoolean;
1493
+ recreate_missing_binding: z.ZodBoolean;
1494
+ standardization: z.ZodObject<{
1495
+ grade: z.ZodEnum<{
1496
+ standard: "standard";
1497
+ A: "A";
1498
+ B: "B";
1499
+ C: "C";
1500
+ }>;
1501
+ required: z.ZodBoolean;
1502
+ pending_confirmations: z.ZodArray<z.ZodObject<{
1503
+ item_id: z.ZodString;
1504
+ field_name: z.ZodOptional<z.ZodString>;
1505
+ kind: z.ZodEnum<{
1506
+ layout: "layout";
1507
+ field_type: "field_type";
1508
+ field_label: "field_label";
1509
+ form_copy: "form_copy";
1510
+ field_required: "field_required";
1511
+ field_options: "field_options";
1512
+ }>;
1513
+ message: z.ZodString;
1514
+ }, z.core.$strict>>;
1515
+ }, z.core.$strict>;
1516
+ confirm_standardization: z.ZodBoolean;
1517
+ }, z.core.$strict>;
1518
+ export type FormDesignOperationFingerprintInput = z.infer<typeof FormDesignOperationFingerprintInputSchema>;
1519
+ export declare const FormDesignSharedImpactSchema: z.ZodObject<{
1520
+ reference_hash: z.ZodString;
1521
+ page_count: z.ZodNumber;
1522
+ block_count: z.ZodNumber;
1523
+ }, z.core.$strict>;
1524
+ export declare const FormDesignOpenResponseSchema: z.ZodObject<{
1525
+ site_id: z.ZodString;
1526
+ form_block_id: z.ZodString;
1527
+ base_snapshot_id: z.ZodString;
1528
+ form_spec: z.ZodObject<{
1529
+ schema_version: z.ZodLiteral<1>;
1530
+ min_runtime_version: z.ZodNumber;
1531
+ form_definition_id: z.ZodString;
1532
+ binding: z.ZodDiscriminatedUnion<[z.ZodObject<{
1533
+ status: z.ZodLiteral<"unbound">;
1534
+ form_code: z.ZodNull;
1535
+ }, z.core.$strict>, z.ZodObject<{
1536
+ status: z.ZodLiteral<"bound">;
1537
+ form_code: z.ZodString;
1538
+ }, z.core.$strict>, z.ZodObject<{
1539
+ status: z.ZodLiteral<"missing">;
1540
+ form_code: z.ZodString;
1541
+ }, z.core.$strict>], "status">;
1542
+ content_locale: z.ZodEnum<{
1543
+ id: "id";
1544
+ "zh-CN": "zh-CN";
1545
+ "zh-HK": "zh-HK";
1546
+ "zh-TW": "zh-TW";
1547
+ "en-US": "en-US";
1548
+ "en-GB": "en-GB";
1549
+ "ja-JP": "ja-JP";
1550
+ "ko-KR": "ko-KR";
1551
+ "es-ES": "es-ES";
1552
+ "fr-FR": "fr-FR";
1553
+ "de-DE": "de-DE";
1554
+ "pt-PT": "pt-PT";
1555
+ "ru-RU": "ru-RU";
1556
+ "ar-SA": "ar-SA";
1557
+ "id-ID": "id-ID";
1558
+ "vi-VN": "vi-VN";
1559
+ "th-TH": "th-TH";
1560
+ "it-IT": "it-IT";
1561
+ "nl-NL": "nl-NL";
1562
+ "tr-TR": "tr-TR";
1563
+ "pl-PL": "pl-PL";
1564
+ "uk-UA": "uk-UA";
1565
+ "cs-CZ": "cs-CZ";
1566
+ "sk-SK": "sk-SK";
1567
+ "hu-HU": "hu-HU";
1568
+ "ro-RO": "ro-RO";
1569
+ "el-GR": "el-GR";
1570
+ "sv-SE": "sv-SE";
1571
+ "da-DK": "da-DK";
1572
+ "fi-FI": "fi-FI";
1573
+ "hr-HR": "hr-HR";
1574
+ "lt-LT": "lt-LT";
1575
+ "lv-LV": "lv-LV";
1576
+ "et-EE": "et-EE";
1577
+ "ga-IE": "ga-IE";
1578
+ "mt-MT": "mt-MT";
1579
+ "ka-GE": "ka-GE";
1580
+ "fa-IR": "fa-IR";
1581
+ "bn-BD": "bn-BD";
1582
+ "ta-IN": "ta-IN";
1583
+ "si-LK": "si-LK";
1584
+ "ms-MY": "ms-MY";
1585
+ "fil-PH": "fil-PH";
1586
+ "my-MM": "my-MM";
1587
+ "km-KH": "km-KH";
1588
+ "lo-LA": "lo-LA";
1589
+ "mn-MN": "mn-MN";
1590
+ "kk-KZ": "kk-KZ";
1591
+ en: "en";
1592
+ ja: "ja";
1593
+ es: "es";
1594
+ fr: "fr";
1595
+ de: "de";
1596
+ ko: "ko";
1597
+ pt: "pt";
1598
+ "pt-BR": "pt-BR";
1599
+ it: "it";
1600
+ ru: "ru";
1601
+ ar: "ar";
1602
+ hi: "hi";
1603
+ vi: "vi";
1604
+ th: "th";
1605
+ tr: "tr";
1606
+ nl: "nl";
1607
+ pl: "pl";
1608
+ uk: "uk";
1609
+ sv: "sv";
1610
+ da: "da";
1611
+ fi: "fi";
1612
+ no: "no";
1613
+ cs: "cs";
1614
+ el: "el";
1615
+ hu: "hu";
1616
+ ro: "ro";
1617
+ he: "he";
1618
+ ms: "ms";
1619
+ fil: "fil";
1620
+ bn: "bn";
1621
+ ta: "ta";
1622
+ ca: "ca";
1623
+ sk: "sk";
1624
+ hr: "hr";
1625
+ bg: "bg";
1626
+ lt: "lt";
1627
+ lv: "lv";
1628
+ et: "et";
1629
+ fa: "fa";
1630
+ sw: "sw";
1631
+ sr: "sr";
1632
+ is: "is";
1633
+ }>;
1634
+ features: z.ZodObject<{
1635
+ multistep: z.ZodBoolean;
1636
+ }, z.core.$strict>;
1637
+ copy: z.ZodObject<{
1638
+ title: z.ZodString;
1639
+ description: z.ZodString;
1640
+ submit_button: z.ZodString;
1641
+ success_message: z.ZodString;
1642
+ error_message: z.ZodString;
1643
+ }, z.core.$strict>;
1644
+ layout: z.ZodObject<{
1645
+ columns: z.ZodEnum<{
1646
+ one: "one";
1647
+ two: "two";
1648
+ }>;
1649
+ }, z.core.$strict>;
1650
+ nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1651
+ kind: z.ZodLiteral<"field">;
1652
+ field_name: z.ZodString;
1653
+ type: z.ZodEnum<{
1654
+ number: "number";
1655
+ boolean: "boolean";
1656
+ date: "date";
1657
+ text: "text";
1658
+ email: "email";
1659
+ select: "select";
1660
+ multiselect: "multiselect";
1661
+ textarea: "textarea";
1662
+ phone: "phone";
1663
+ radio: "radio";
1664
+ }>;
1665
+ label: z.ZodString;
1666
+ required: z.ZodBoolean;
1667
+ span: z.ZodEnum<{
1668
+ full: "full";
1669
+ half: "half";
1670
+ }>;
1671
+ options: z.ZodArray<z.ZodObject<{
1672
+ value: z.ZodString;
1673
+ label: z.ZodString;
1674
+ }, z.core.$strict>>;
1675
+ }, z.core.$strict>, z.ZodObject<{
1676
+ kind: z.ZodLiteral<"step-break">;
1677
+ step_id: z.ZodString;
1678
+ }, z.core.$strict>], "kind">>;
1679
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
1680
+ kind: z.ZodLiteral<"custom">;
1681
+ }, z.core.$strict>, z.ZodObject<{
1682
+ kind: z.ZodLiteral<"template">;
1683
+ slug: z.ZodString;
1684
+ version: z.ZodString;
1685
+ }, z.core.$strict>], "kind">;
1686
+ retired: z.ZodObject<{
1687
+ fields: z.ZodArray<z.ZodObject<{
1688
+ field_name: z.ZodString;
1689
+ type: z.ZodEnum<{
1690
+ number: "number";
1691
+ boolean: "boolean";
1692
+ date: "date";
1693
+ text: "text";
1694
+ email: "email";
1695
+ select: "select";
1696
+ multiselect: "multiselect";
1697
+ textarea: "textarea";
1698
+ phone: "phone";
1699
+ radio: "radio";
1700
+ }>;
1701
+ last_label: z.ZodString;
1702
+ }, z.core.$strict>>;
1703
+ options: z.ZodArray<z.ZodObject<{
1704
+ field_name: z.ZodString;
1705
+ value: z.ZodString;
1706
+ last_label: z.ZodString;
1707
+ }, z.core.$strict>>;
1708
+ }, z.core.$strict>;
1709
+ compatibility: z.ZodObject<{
1710
+ standardization_version: z.ZodNumber;
1711
+ diagnostics: z.ZodArray<z.ZodString>;
1712
+ }, z.core.$strict>;
1713
+ }, z.core.$strict>;
1714
+ runtime_upgrade_required: z.ZodBoolean;
1715
+ expected_form_spec_hash: z.ZodString;
1716
+ expected_cms_schema_hash: z.ZodNullable<z.ZodString>;
1717
+ affected_files_hash: z.ZodString;
1718
+ shared_impact: z.ZodObject<{
1719
+ reference_hash: z.ZodString;
1720
+ page_count: z.ZodNumber;
1721
+ block_count: z.ZodNumber;
1722
+ }, z.core.$strict>;
1723
+ standardization: z.ZodObject<{
1724
+ grade: z.ZodEnum<{
1725
+ standard: "standard";
1726
+ A: "A";
1727
+ B: "B";
1728
+ C: "C";
1729
+ }>;
1730
+ required: z.ZodBoolean;
1731
+ pending_confirmations: z.ZodArray<z.ZodObject<{
1732
+ item_id: z.ZodString;
1733
+ field_name: z.ZodOptional<z.ZodString>;
1734
+ kind: z.ZodEnum<{
1735
+ layout: "layout";
1736
+ field_type: "field_type";
1737
+ field_label: "field_label";
1738
+ form_copy: "form_copy";
1739
+ field_required: "field_required";
1740
+ field_options: "field_options";
1741
+ }>;
1742
+ message: z.ZodString;
1743
+ }, z.core.$strict>>;
1744
+ }, z.core.$strict>;
1745
+ }, z.core.$strict>;
1746
+ export type FormDesignOpenResponse = z.infer<typeof FormDesignOpenResponseSchema>;
1747
+ export declare const FormDesignSaveRequestSchema: z.ZodObject<{
1748
+ operation_id: z.ZodString;
1749
+ operation_fingerprint: z.ZodString;
1750
+ site_id: z.ZodString;
1751
+ form_definition_id: z.ZodString;
1752
+ base_snapshot_id: z.ZodString;
1753
+ expected_form_spec_hash: z.ZodString;
1754
+ expected_cms_schema_hash: z.ZodNullable<z.ZodString>;
1755
+ draft_form_spec: z.ZodObject<{
1756
+ schema_version: z.ZodLiteral<1>;
1757
+ min_runtime_version: z.ZodNumber;
1758
+ form_definition_id: z.ZodString;
1759
+ binding: z.ZodDiscriminatedUnion<[z.ZodObject<{
1760
+ status: z.ZodLiteral<"unbound">;
1761
+ form_code: z.ZodNull;
1762
+ }, z.core.$strict>, z.ZodObject<{
1763
+ status: z.ZodLiteral<"bound">;
1764
+ form_code: z.ZodString;
1765
+ }, z.core.$strict>, z.ZodObject<{
1766
+ status: z.ZodLiteral<"missing">;
1767
+ form_code: z.ZodString;
1768
+ }, z.core.$strict>], "status">;
1769
+ content_locale: z.ZodEnum<{
1770
+ id: "id";
1771
+ "zh-CN": "zh-CN";
1772
+ "zh-HK": "zh-HK";
1773
+ "zh-TW": "zh-TW";
1774
+ "en-US": "en-US";
1775
+ "en-GB": "en-GB";
1776
+ "ja-JP": "ja-JP";
1777
+ "ko-KR": "ko-KR";
1778
+ "es-ES": "es-ES";
1779
+ "fr-FR": "fr-FR";
1780
+ "de-DE": "de-DE";
1781
+ "pt-PT": "pt-PT";
1782
+ "ru-RU": "ru-RU";
1783
+ "ar-SA": "ar-SA";
1784
+ "id-ID": "id-ID";
1785
+ "vi-VN": "vi-VN";
1786
+ "th-TH": "th-TH";
1787
+ "it-IT": "it-IT";
1788
+ "nl-NL": "nl-NL";
1789
+ "tr-TR": "tr-TR";
1790
+ "pl-PL": "pl-PL";
1791
+ "uk-UA": "uk-UA";
1792
+ "cs-CZ": "cs-CZ";
1793
+ "sk-SK": "sk-SK";
1794
+ "hu-HU": "hu-HU";
1795
+ "ro-RO": "ro-RO";
1796
+ "el-GR": "el-GR";
1797
+ "sv-SE": "sv-SE";
1798
+ "da-DK": "da-DK";
1799
+ "fi-FI": "fi-FI";
1800
+ "hr-HR": "hr-HR";
1801
+ "lt-LT": "lt-LT";
1802
+ "lv-LV": "lv-LV";
1803
+ "et-EE": "et-EE";
1804
+ "ga-IE": "ga-IE";
1805
+ "mt-MT": "mt-MT";
1806
+ "ka-GE": "ka-GE";
1807
+ "fa-IR": "fa-IR";
1808
+ "bn-BD": "bn-BD";
1809
+ "ta-IN": "ta-IN";
1810
+ "si-LK": "si-LK";
1811
+ "ms-MY": "ms-MY";
1812
+ "fil-PH": "fil-PH";
1813
+ "my-MM": "my-MM";
1814
+ "km-KH": "km-KH";
1815
+ "lo-LA": "lo-LA";
1816
+ "mn-MN": "mn-MN";
1817
+ "kk-KZ": "kk-KZ";
1818
+ en: "en";
1819
+ ja: "ja";
1820
+ es: "es";
1821
+ fr: "fr";
1822
+ de: "de";
1823
+ ko: "ko";
1824
+ pt: "pt";
1825
+ "pt-BR": "pt-BR";
1826
+ it: "it";
1827
+ ru: "ru";
1828
+ ar: "ar";
1829
+ hi: "hi";
1830
+ vi: "vi";
1831
+ th: "th";
1832
+ tr: "tr";
1833
+ nl: "nl";
1834
+ pl: "pl";
1835
+ uk: "uk";
1836
+ sv: "sv";
1837
+ da: "da";
1838
+ fi: "fi";
1839
+ no: "no";
1840
+ cs: "cs";
1841
+ el: "el";
1842
+ hu: "hu";
1843
+ ro: "ro";
1844
+ he: "he";
1845
+ ms: "ms";
1846
+ fil: "fil";
1847
+ bn: "bn";
1848
+ ta: "ta";
1849
+ ca: "ca";
1850
+ sk: "sk";
1851
+ hr: "hr";
1852
+ bg: "bg";
1853
+ lt: "lt";
1854
+ lv: "lv";
1855
+ et: "et";
1856
+ fa: "fa";
1857
+ sw: "sw";
1858
+ sr: "sr";
1859
+ is: "is";
1860
+ }>;
1861
+ features: z.ZodObject<{
1862
+ multistep: z.ZodBoolean;
1863
+ }, z.core.$strict>;
1864
+ copy: z.ZodObject<{
1865
+ title: z.ZodString;
1866
+ description: z.ZodString;
1867
+ submit_button: z.ZodString;
1868
+ success_message: z.ZodString;
1869
+ error_message: z.ZodString;
1870
+ }, z.core.$strict>;
1871
+ layout: z.ZodObject<{
1872
+ columns: z.ZodEnum<{
1873
+ one: "one";
1874
+ two: "two";
1875
+ }>;
1876
+ }, z.core.$strict>;
1877
+ nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1878
+ kind: z.ZodLiteral<"field">;
1879
+ field_name: z.ZodString;
1880
+ type: z.ZodEnum<{
1881
+ number: "number";
1882
+ boolean: "boolean";
1883
+ date: "date";
1884
+ text: "text";
1885
+ email: "email";
1886
+ select: "select";
1887
+ multiselect: "multiselect";
1888
+ textarea: "textarea";
1889
+ phone: "phone";
1890
+ radio: "radio";
1891
+ }>;
1892
+ label: z.ZodString;
1893
+ required: z.ZodBoolean;
1894
+ span: z.ZodEnum<{
1895
+ full: "full";
1896
+ half: "half";
1897
+ }>;
1898
+ options: z.ZodArray<z.ZodObject<{
1899
+ value: z.ZodString;
1900
+ label: z.ZodString;
1901
+ }, z.core.$strict>>;
1902
+ }, z.core.$strict>, z.ZodObject<{
1903
+ kind: z.ZodLiteral<"step-break">;
1904
+ step_id: z.ZodString;
1905
+ }, z.core.$strict>], "kind">>;
1906
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
1907
+ kind: z.ZodLiteral<"custom">;
1908
+ }, z.core.$strict>, z.ZodObject<{
1909
+ kind: z.ZodLiteral<"template">;
1910
+ slug: z.ZodString;
1911
+ version: z.ZodString;
1912
+ }, z.core.$strict>], "kind">;
1913
+ retired: z.ZodObject<{
1914
+ fields: z.ZodArray<z.ZodObject<{
1915
+ field_name: z.ZodString;
1916
+ type: z.ZodEnum<{
1917
+ number: "number";
1918
+ boolean: "boolean";
1919
+ date: "date";
1920
+ text: "text";
1921
+ email: "email";
1922
+ select: "select";
1923
+ multiselect: "multiselect";
1924
+ textarea: "textarea";
1925
+ phone: "phone";
1926
+ radio: "radio";
1927
+ }>;
1928
+ last_label: z.ZodString;
1929
+ }, z.core.$strict>>;
1930
+ options: z.ZodArray<z.ZodObject<{
1931
+ field_name: z.ZodString;
1932
+ value: z.ZodString;
1933
+ last_label: z.ZodString;
1934
+ }, z.core.$strict>>;
1935
+ }, z.core.$strict>;
1936
+ compatibility: z.ZodObject<{
1937
+ standardization_version: z.ZodNumber;
1938
+ diagnostics: z.ZodArray<z.ZodString>;
1939
+ }, z.core.$strict>;
1940
+ }, z.core.$strict>;
1941
+ draft_form_spec_hash: z.ZodString;
1942
+ desired_cms_schema_hash: z.ZodString;
1943
+ affected_files_hash: z.ZodString;
1944
+ shared_impact: z.ZodObject<{
1945
+ reference_hash: z.ZodString;
1946
+ page_count: z.ZodNumber;
1947
+ block_count: z.ZodNumber;
1948
+ }, z.core.$strict>;
1949
+ confirm_shared_update: z.ZodBoolean;
1950
+ recreate_missing_binding: z.ZodBoolean;
1951
+ standardization: z.ZodObject<{
1952
+ grade: z.ZodEnum<{
1953
+ standard: "standard";
1954
+ A: "A";
1955
+ B: "B";
1956
+ C: "C";
1957
+ }>;
1958
+ required: z.ZodBoolean;
1959
+ pending_confirmations: z.ZodArray<z.ZodObject<{
1960
+ item_id: z.ZodString;
1961
+ field_name: z.ZodOptional<z.ZodString>;
1962
+ kind: z.ZodEnum<{
1963
+ layout: "layout";
1964
+ field_type: "field_type";
1965
+ field_label: "field_label";
1966
+ form_copy: "form_copy";
1967
+ field_required: "field_required";
1968
+ field_options: "field_options";
1969
+ }>;
1970
+ message: z.ZodString;
1971
+ }, z.core.$strict>>;
1972
+ }, z.core.$strict>;
1973
+ confirm_standardization: z.ZodBoolean;
1974
+ }, z.core.$strict>;
1975
+ export type FormDesignSaveRequest = z.infer<typeof FormDesignSaveRequestSchema>;
1976
+ export declare const FORM_DESIGN_OPERATION_STAGES: readonly ["created", "validated", "binding_reserved", "candidate_ready", "cms_applied", "snapshot_promoted", "committed", "compensating", "recovery_required", "failed"];
1977
+ export declare const FormDesignOperationStageSchema: z.ZodEnum<{
1978
+ failed: "failed";
1979
+ created: "created";
1980
+ validated: "validated";
1981
+ binding_reserved: "binding_reserved";
1982
+ candidate_ready: "candidate_ready";
1983
+ cms_applied: "cms_applied";
1984
+ snapshot_promoted: "snapshot_promoted";
1985
+ committed: "committed";
1986
+ compensating: "compensating";
1987
+ recovery_required: "recovery_required";
1988
+ }>;
1989
+ export type FormDesignOperationStage = z.infer<typeof FormDesignOperationStageSchema>;
1990
+ export declare const FORM_DESIGN_OPERATION_STATUSES: readonly ["pending", "running", "succeeded", "failed", "recovery_required"];
1991
+ export declare const FormDesignOperationStatusSchema: z.ZodEnum<{
1992
+ failed: "failed";
1993
+ pending: "pending";
1994
+ recovery_required: "recovery_required";
1995
+ running: "running";
1996
+ succeeded: "succeeded";
1997
+ }>;
1998
+ export type FormDesignOperationStatus = z.infer<typeof FormDesignOperationStatusSchema>;
1999
+ export declare const FORM_DESIGN_FAILURE_STAGES: readonly ["candidate_abandon", "snapshot_reconcile", "cms_restore"];
2000
+ export declare const FormDesignFailureStageSchema: z.ZodEnum<{
2001
+ candidate_abandon: "candidate_abandon";
2002
+ snapshot_reconcile: "snapshot_reconcile";
2003
+ cms_restore: "cms_restore";
2004
+ }>;
2005
+ export type FormDesignFailureStage = z.infer<typeof FormDesignFailureStageSchema>;
2006
+ export declare const FORM_DESIGN_ERROR_CODES: readonly ["FORM_DESIGN_INVALID", "FORM_DESIGN_UNSUPPORTED", "FORM_DESIGN_STANDARDIZATION_AGENT_REQUIRED", "FORM_DESIGN_STANDARDIZATION_UNSUPPORTED", "FORM_DESIGN_FEATURE_NOT_ENABLED", "FORM_DESIGN_PERMISSION_DENIED", "FORM_DESIGN_LOCKED", "FORM_DESIGN_CODE_CONFLICT", "FORM_DESIGN_CMS_CONFLICT", "FORM_DESIGN_CMS_SCHEMA_MISMATCH", "FORM_DESIGN_CMS_NOT_FOUND", "FORM_DESIGN_BINDING_MISSING", "FORM_DESIGN_OPERATION_CONFLICT", "FORM_DESIGN_CMS_UNAVAILABLE", "FORM_DESIGN_PATCH_FAILED", "FORM_DESIGN_COMPENSATION_FAILED", "FORM_DESIGN_RECOVERY_REQUIRED"];
2007
+ export declare const FormDesignErrorCodeSchema: z.ZodEnum<{
2008
+ FORM_DESIGN_INVALID: "FORM_DESIGN_INVALID";
2009
+ FORM_DESIGN_UNSUPPORTED: "FORM_DESIGN_UNSUPPORTED";
2010
+ FORM_DESIGN_STANDARDIZATION_AGENT_REQUIRED: "FORM_DESIGN_STANDARDIZATION_AGENT_REQUIRED";
2011
+ FORM_DESIGN_STANDARDIZATION_UNSUPPORTED: "FORM_DESIGN_STANDARDIZATION_UNSUPPORTED";
2012
+ FORM_DESIGN_FEATURE_NOT_ENABLED: "FORM_DESIGN_FEATURE_NOT_ENABLED";
2013
+ FORM_DESIGN_PERMISSION_DENIED: "FORM_DESIGN_PERMISSION_DENIED";
2014
+ FORM_DESIGN_LOCKED: "FORM_DESIGN_LOCKED";
2015
+ FORM_DESIGN_CODE_CONFLICT: "FORM_DESIGN_CODE_CONFLICT";
2016
+ FORM_DESIGN_CMS_CONFLICT: "FORM_DESIGN_CMS_CONFLICT";
2017
+ FORM_DESIGN_CMS_SCHEMA_MISMATCH: "FORM_DESIGN_CMS_SCHEMA_MISMATCH";
2018
+ FORM_DESIGN_CMS_NOT_FOUND: "FORM_DESIGN_CMS_NOT_FOUND";
2019
+ FORM_DESIGN_BINDING_MISSING: "FORM_DESIGN_BINDING_MISSING";
2020
+ FORM_DESIGN_OPERATION_CONFLICT: "FORM_DESIGN_OPERATION_CONFLICT";
2021
+ FORM_DESIGN_CMS_UNAVAILABLE: "FORM_DESIGN_CMS_UNAVAILABLE";
2022
+ FORM_DESIGN_PATCH_FAILED: "FORM_DESIGN_PATCH_FAILED";
2023
+ FORM_DESIGN_COMPENSATION_FAILED: "FORM_DESIGN_COMPENSATION_FAILED";
2024
+ FORM_DESIGN_RECOVERY_REQUIRED: "FORM_DESIGN_RECOVERY_REQUIRED";
2025
+ }>;
2026
+ export type FormDesignErrorCode = z.infer<typeof FormDesignErrorCodeSchema>;
2027
+ export declare const FormDesignOperationNextActionSchema: z.ZodEnum<{
2028
+ wait: "wait";
2029
+ resume: "resume";
2030
+ retry_new_operation: "retry_new_operation";
2031
+ manual_recovery: "manual_recovery";
2032
+ none: "none";
2033
+ }>;
2034
+ export declare const FormDesignPreviewRefreshStatusSchema: z.ZodEnum<{
2035
+ failed: "failed";
2036
+ pending: "pending";
2037
+ succeeded: "succeeded";
2038
+ not_started: "not_started";
2039
+ }>;
2040
+ export declare const FormDesignOperationSchema: z.ZodObject<{
2041
+ operation_id: z.ZodString;
2042
+ operation_fingerprint: z.ZodString;
2043
+ site_id: z.ZodString;
2044
+ form_definition_id: z.ZodString;
2045
+ stage: z.ZodEnum<{
2046
+ failed: "failed";
2047
+ created: "created";
2048
+ validated: "validated";
2049
+ binding_reserved: "binding_reserved";
2050
+ candidate_ready: "candidate_ready";
2051
+ cms_applied: "cms_applied";
2052
+ snapshot_promoted: "snapshot_promoted";
2053
+ committed: "committed";
2054
+ compensating: "compensating";
2055
+ recovery_required: "recovery_required";
2056
+ }>;
2057
+ status: z.ZodEnum<{
2058
+ failed: "failed";
2059
+ pending: "pending";
2060
+ recovery_required: "recovery_required";
2061
+ running: "running";
2062
+ succeeded: "succeeded";
2063
+ }>;
2064
+ base_snapshot_id: z.ZodString;
2065
+ candidate_snapshot_id: z.ZodNullable<z.ZodString>;
2066
+ before_form_code: z.ZodNullable<z.ZodString>;
2067
+ materialized_form_code: z.ZodNullable<z.ZodString>;
2068
+ expected_form_spec_hash: z.ZodString;
2069
+ draft_form_spec_hash: z.ZodString;
2070
+ materialized_form_spec_hash: z.ZodNullable<z.ZodString>;
2071
+ expected_cms_schema_hash: z.ZodNullable<z.ZodString>;
2072
+ desired_cms_schema_hash: z.ZodString;
2073
+ retry_count: z.ZodNumber;
2074
+ failure_stage: z.ZodNullable<z.ZodEnum<{
2075
+ candidate_abandon: "candidate_abandon";
2076
+ snapshot_reconcile: "snapshot_reconcile";
2077
+ cms_restore: "cms_restore";
2078
+ }>>;
2079
+ last_error_code: z.ZodNullable<z.ZodEnum<{
2080
+ FORM_DESIGN_INVALID: "FORM_DESIGN_INVALID";
2081
+ FORM_DESIGN_UNSUPPORTED: "FORM_DESIGN_UNSUPPORTED";
2082
+ FORM_DESIGN_STANDARDIZATION_AGENT_REQUIRED: "FORM_DESIGN_STANDARDIZATION_AGENT_REQUIRED";
2083
+ FORM_DESIGN_STANDARDIZATION_UNSUPPORTED: "FORM_DESIGN_STANDARDIZATION_UNSUPPORTED";
2084
+ FORM_DESIGN_FEATURE_NOT_ENABLED: "FORM_DESIGN_FEATURE_NOT_ENABLED";
2085
+ FORM_DESIGN_PERMISSION_DENIED: "FORM_DESIGN_PERMISSION_DENIED";
2086
+ FORM_DESIGN_LOCKED: "FORM_DESIGN_LOCKED";
2087
+ FORM_DESIGN_CODE_CONFLICT: "FORM_DESIGN_CODE_CONFLICT";
2088
+ FORM_DESIGN_CMS_CONFLICT: "FORM_DESIGN_CMS_CONFLICT";
2089
+ FORM_DESIGN_CMS_SCHEMA_MISMATCH: "FORM_DESIGN_CMS_SCHEMA_MISMATCH";
2090
+ FORM_DESIGN_CMS_NOT_FOUND: "FORM_DESIGN_CMS_NOT_FOUND";
2091
+ FORM_DESIGN_BINDING_MISSING: "FORM_DESIGN_BINDING_MISSING";
2092
+ FORM_DESIGN_OPERATION_CONFLICT: "FORM_DESIGN_OPERATION_CONFLICT";
2093
+ FORM_DESIGN_CMS_UNAVAILABLE: "FORM_DESIGN_CMS_UNAVAILABLE";
2094
+ FORM_DESIGN_PATCH_FAILED: "FORM_DESIGN_PATCH_FAILED";
2095
+ FORM_DESIGN_COMPENSATION_FAILED: "FORM_DESIGN_COMPENSATION_FAILED";
2096
+ FORM_DESIGN_RECOVERY_REQUIRED: "FORM_DESIGN_RECOVERY_REQUIRED";
2097
+ }>>;
2098
+ retryable: z.ZodBoolean;
2099
+ next_action: z.ZodEnum<{
2100
+ wait: "wait";
2101
+ resume: "resume";
2102
+ retry_new_operation: "retry_new_operation";
2103
+ manual_recovery: "manual_recovery";
2104
+ none: "none";
2105
+ }>;
2106
+ preview_refresh_status: z.ZodEnum<{
2107
+ failed: "failed";
2108
+ pending: "pending";
2109
+ succeeded: "succeeded";
2110
+ not_started: "not_started";
2111
+ }>;
2112
+ created_at: z.ZodString;
2113
+ updated_at: z.ZodString;
2114
+ }, z.core.$strict>;
2115
+ export type FormDesignOperation = z.infer<typeof FormDesignOperationSchema>;
2116
+ export declare const FormDesignOperationResponseSchema: z.ZodObject<{
2117
+ operation: z.ZodObject<{
2118
+ operation_id: z.ZodString;
2119
+ operation_fingerprint: z.ZodString;
2120
+ site_id: z.ZodString;
2121
+ form_definition_id: z.ZodString;
2122
+ stage: z.ZodEnum<{
2123
+ failed: "failed";
2124
+ created: "created";
2125
+ validated: "validated";
2126
+ binding_reserved: "binding_reserved";
2127
+ candidate_ready: "candidate_ready";
2128
+ cms_applied: "cms_applied";
2129
+ snapshot_promoted: "snapshot_promoted";
2130
+ committed: "committed";
2131
+ compensating: "compensating";
2132
+ recovery_required: "recovery_required";
2133
+ }>;
2134
+ status: z.ZodEnum<{
2135
+ failed: "failed";
2136
+ pending: "pending";
2137
+ recovery_required: "recovery_required";
2138
+ running: "running";
2139
+ succeeded: "succeeded";
2140
+ }>;
2141
+ base_snapshot_id: z.ZodString;
2142
+ candidate_snapshot_id: z.ZodNullable<z.ZodString>;
2143
+ before_form_code: z.ZodNullable<z.ZodString>;
2144
+ materialized_form_code: z.ZodNullable<z.ZodString>;
2145
+ expected_form_spec_hash: z.ZodString;
2146
+ draft_form_spec_hash: z.ZodString;
2147
+ materialized_form_spec_hash: z.ZodNullable<z.ZodString>;
2148
+ expected_cms_schema_hash: z.ZodNullable<z.ZodString>;
2149
+ desired_cms_schema_hash: z.ZodString;
2150
+ retry_count: z.ZodNumber;
2151
+ failure_stage: z.ZodNullable<z.ZodEnum<{
2152
+ candidate_abandon: "candidate_abandon";
2153
+ snapshot_reconcile: "snapshot_reconcile";
2154
+ cms_restore: "cms_restore";
2155
+ }>>;
2156
+ last_error_code: z.ZodNullable<z.ZodEnum<{
2157
+ FORM_DESIGN_INVALID: "FORM_DESIGN_INVALID";
2158
+ FORM_DESIGN_UNSUPPORTED: "FORM_DESIGN_UNSUPPORTED";
2159
+ FORM_DESIGN_STANDARDIZATION_AGENT_REQUIRED: "FORM_DESIGN_STANDARDIZATION_AGENT_REQUIRED";
2160
+ FORM_DESIGN_STANDARDIZATION_UNSUPPORTED: "FORM_DESIGN_STANDARDIZATION_UNSUPPORTED";
2161
+ FORM_DESIGN_FEATURE_NOT_ENABLED: "FORM_DESIGN_FEATURE_NOT_ENABLED";
2162
+ FORM_DESIGN_PERMISSION_DENIED: "FORM_DESIGN_PERMISSION_DENIED";
2163
+ FORM_DESIGN_LOCKED: "FORM_DESIGN_LOCKED";
2164
+ FORM_DESIGN_CODE_CONFLICT: "FORM_DESIGN_CODE_CONFLICT";
2165
+ FORM_DESIGN_CMS_CONFLICT: "FORM_DESIGN_CMS_CONFLICT";
2166
+ FORM_DESIGN_CMS_SCHEMA_MISMATCH: "FORM_DESIGN_CMS_SCHEMA_MISMATCH";
2167
+ FORM_DESIGN_CMS_NOT_FOUND: "FORM_DESIGN_CMS_NOT_FOUND";
2168
+ FORM_DESIGN_BINDING_MISSING: "FORM_DESIGN_BINDING_MISSING";
2169
+ FORM_DESIGN_OPERATION_CONFLICT: "FORM_DESIGN_OPERATION_CONFLICT";
2170
+ FORM_DESIGN_CMS_UNAVAILABLE: "FORM_DESIGN_CMS_UNAVAILABLE";
2171
+ FORM_DESIGN_PATCH_FAILED: "FORM_DESIGN_PATCH_FAILED";
2172
+ FORM_DESIGN_COMPENSATION_FAILED: "FORM_DESIGN_COMPENSATION_FAILED";
2173
+ FORM_DESIGN_RECOVERY_REQUIRED: "FORM_DESIGN_RECOVERY_REQUIRED";
2174
+ }>>;
2175
+ retryable: z.ZodBoolean;
2176
+ next_action: z.ZodEnum<{
2177
+ wait: "wait";
2178
+ resume: "resume";
2179
+ retry_new_operation: "retry_new_operation";
2180
+ manual_recovery: "manual_recovery";
2181
+ none: "none";
2182
+ }>;
2183
+ preview_refresh_status: z.ZodEnum<{
2184
+ failed: "failed";
2185
+ pending: "pending";
2186
+ succeeded: "succeeded";
2187
+ not_started: "not_started";
2188
+ }>;
2189
+ created_at: z.ZodString;
2190
+ updated_at: z.ZodString;
2191
+ }, z.core.$strict>;
2192
+ }, z.core.$strict>;
2193
+ export type FormDesignOperationResponse = z.infer<typeof FormDesignOperationResponseSchema>;
2194
+ export declare const FormDesignSaveResponseSchema: z.ZodObject<{
2195
+ operation: z.ZodObject<{
2196
+ operation_id: z.ZodString;
2197
+ operation_fingerprint: z.ZodString;
2198
+ site_id: z.ZodString;
2199
+ form_definition_id: z.ZodString;
2200
+ stage: z.ZodEnum<{
2201
+ failed: "failed";
2202
+ created: "created";
2203
+ validated: "validated";
2204
+ binding_reserved: "binding_reserved";
2205
+ candidate_ready: "candidate_ready";
2206
+ cms_applied: "cms_applied";
2207
+ snapshot_promoted: "snapshot_promoted";
2208
+ committed: "committed";
2209
+ compensating: "compensating";
2210
+ recovery_required: "recovery_required";
2211
+ }>;
2212
+ status: z.ZodEnum<{
2213
+ failed: "failed";
2214
+ pending: "pending";
2215
+ recovery_required: "recovery_required";
2216
+ running: "running";
2217
+ succeeded: "succeeded";
2218
+ }>;
2219
+ base_snapshot_id: z.ZodString;
2220
+ candidate_snapshot_id: z.ZodNullable<z.ZodString>;
2221
+ before_form_code: z.ZodNullable<z.ZodString>;
2222
+ materialized_form_code: z.ZodNullable<z.ZodString>;
2223
+ expected_form_spec_hash: z.ZodString;
2224
+ draft_form_spec_hash: z.ZodString;
2225
+ materialized_form_spec_hash: z.ZodNullable<z.ZodString>;
2226
+ expected_cms_schema_hash: z.ZodNullable<z.ZodString>;
2227
+ desired_cms_schema_hash: z.ZodString;
2228
+ retry_count: z.ZodNumber;
2229
+ failure_stage: z.ZodNullable<z.ZodEnum<{
2230
+ candidate_abandon: "candidate_abandon";
2231
+ snapshot_reconcile: "snapshot_reconcile";
2232
+ cms_restore: "cms_restore";
2233
+ }>>;
2234
+ last_error_code: z.ZodNullable<z.ZodEnum<{
2235
+ FORM_DESIGN_INVALID: "FORM_DESIGN_INVALID";
2236
+ FORM_DESIGN_UNSUPPORTED: "FORM_DESIGN_UNSUPPORTED";
2237
+ FORM_DESIGN_STANDARDIZATION_AGENT_REQUIRED: "FORM_DESIGN_STANDARDIZATION_AGENT_REQUIRED";
2238
+ FORM_DESIGN_STANDARDIZATION_UNSUPPORTED: "FORM_DESIGN_STANDARDIZATION_UNSUPPORTED";
2239
+ FORM_DESIGN_FEATURE_NOT_ENABLED: "FORM_DESIGN_FEATURE_NOT_ENABLED";
2240
+ FORM_DESIGN_PERMISSION_DENIED: "FORM_DESIGN_PERMISSION_DENIED";
2241
+ FORM_DESIGN_LOCKED: "FORM_DESIGN_LOCKED";
2242
+ FORM_DESIGN_CODE_CONFLICT: "FORM_DESIGN_CODE_CONFLICT";
2243
+ FORM_DESIGN_CMS_CONFLICT: "FORM_DESIGN_CMS_CONFLICT";
2244
+ FORM_DESIGN_CMS_SCHEMA_MISMATCH: "FORM_DESIGN_CMS_SCHEMA_MISMATCH";
2245
+ FORM_DESIGN_CMS_NOT_FOUND: "FORM_DESIGN_CMS_NOT_FOUND";
2246
+ FORM_DESIGN_BINDING_MISSING: "FORM_DESIGN_BINDING_MISSING";
2247
+ FORM_DESIGN_OPERATION_CONFLICT: "FORM_DESIGN_OPERATION_CONFLICT";
2248
+ FORM_DESIGN_CMS_UNAVAILABLE: "FORM_DESIGN_CMS_UNAVAILABLE";
2249
+ FORM_DESIGN_PATCH_FAILED: "FORM_DESIGN_PATCH_FAILED";
2250
+ FORM_DESIGN_COMPENSATION_FAILED: "FORM_DESIGN_COMPENSATION_FAILED";
2251
+ FORM_DESIGN_RECOVERY_REQUIRED: "FORM_DESIGN_RECOVERY_REQUIRED";
2252
+ }>>;
2253
+ retryable: z.ZodBoolean;
2254
+ next_action: z.ZodEnum<{
2255
+ wait: "wait";
2256
+ resume: "resume";
2257
+ retry_new_operation: "retry_new_operation";
2258
+ manual_recovery: "manual_recovery";
2259
+ none: "none";
2260
+ }>;
2261
+ preview_refresh_status: z.ZodEnum<{
2262
+ failed: "failed";
2263
+ pending: "pending";
2264
+ succeeded: "succeeded";
2265
+ not_started: "not_started";
2266
+ }>;
2267
+ created_at: z.ZodString;
2268
+ updated_at: z.ZodString;
2269
+ }, z.core.$strict>;
2270
+ }, z.core.$strict>;
2271
+ export declare const FormDesignQueryResponseSchema: z.ZodObject<{
2272
+ operation: z.ZodObject<{
2273
+ operation_id: z.ZodString;
2274
+ operation_fingerprint: z.ZodString;
2275
+ site_id: z.ZodString;
2276
+ form_definition_id: z.ZodString;
2277
+ stage: z.ZodEnum<{
2278
+ failed: "failed";
2279
+ created: "created";
2280
+ validated: "validated";
2281
+ binding_reserved: "binding_reserved";
2282
+ candidate_ready: "candidate_ready";
2283
+ cms_applied: "cms_applied";
2284
+ snapshot_promoted: "snapshot_promoted";
2285
+ committed: "committed";
2286
+ compensating: "compensating";
2287
+ recovery_required: "recovery_required";
2288
+ }>;
2289
+ status: z.ZodEnum<{
2290
+ failed: "failed";
2291
+ pending: "pending";
2292
+ recovery_required: "recovery_required";
2293
+ running: "running";
2294
+ succeeded: "succeeded";
2295
+ }>;
2296
+ base_snapshot_id: z.ZodString;
2297
+ candidate_snapshot_id: z.ZodNullable<z.ZodString>;
2298
+ before_form_code: z.ZodNullable<z.ZodString>;
2299
+ materialized_form_code: z.ZodNullable<z.ZodString>;
2300
+ expected_form_spec_hash: z.ZodString;
2301
+ draft_form_spec_hash: z.ZodString;
2302
+ materialized_form_spec_hash: z.ZodNullable<z.ZodString>;
2303
+ expected_cms_schema_hash: z.ZodNullable<z.ZodString>;
2304
+ desired_cms_schema_hash: z.ZodString;
2305
+ retry_count: z.ZodNumber;
2306
+ failure_stage: z.ZodNullable<z.ZodEnum<{
2307
+ candidate_abandon: "candidate_abandon";
2308
+ snapshot_reconcile: "snapshot_reconcile";
2309
+ cms_restore: "cms_restore";
2310
+ }>>;
2311
+ last_error_code: z.ZodNullable<z.ZodEnum<{
2312
+ FORM_DESIGN_INVALID: "FORM_DESIGN_INVALID";
2313
+ FORM_DESIGN_UNSUPPORTED: "FORM_DESIGN_UNSUPPORTED";
2314
+ FORM_DESIGN_STANDARDIZATION_AGENT_REQUIRED: "FORM_DESIGN_STANDARDIZATION_AGENT_REQUIRED";
2315
+ FORM_DESIGN_STANDARDIZATION_UNSUPPORTED: "FORM_DESIGN_STANDARDIZATION_UNSUPPORTED";
2316
+ FORM_DESIGN_FEATURE_NOT_ENABLED: "FORM_DESIGN_FEATURE_NOT_ENABLED";
2317
+ FORM_DESIGN_PERMISSION_DENIED: "FORM_DESIGN_PERMISSION_DENIED";
2318
+ FORM_DESIGN_LOCKED: "FORM_DESIGN_LOCKED";
2319
+ FORM_DESIGN_CODE_CONFLICT: "FORM_DESIGN_CODE_CONFLICT";
2320
+ FORM_DESIGN_CMS_CONFLICT: "FORM_DESIGN_CMS_CONFLICT";
2321
+ FORM_DESIGN_CMS_SCHEMA_MISMATCH: "FORM_DESIGN_CMS_SCHEMA_MISMATCH";
2322
+ FORM_DESIGN_CMS_NOT_FOUND: "FORM_DESIGN_CMS_NOT_FOUND";
2323
+ FORM_DESIGN_BINDING_MISSING: "FORM_DESIGN_BINDING_MISSING";
2324
+ FORM_DESIGN_OPERATION_CONFLICT: "FORM_DESIGN_OPERATION_CONFLICT";
2325
+ FORM_DESIGN_CMS_UNAVAILABLE: "FORM_DESIGN_CMS_UNAVAILABLE";
2326
+ FORM_DESIGN_PATCH_FAILED: "FORM_DESIGN_PATCH_FAILED";
2327
+ FORM_DESIGN_COMPENSATION_FAILED: "FORM_DESIGN_COMPENSATION_FAILED";
2328
+ FORM_DESIGN_RECOVERY_REQUIRED: "FORM_DESIGN_RECOVERY_REQUIRED";
2329
+ }>>;
2330
+ retryable: z.ZodBoolean;
2331
+ next_action: z.ZodEnum<{
2332
+ wait: "wait";
2333
+ resume: "resume";
2334
+ retry_new_operation: "retry_new_operation";
2335
+ manual_recovery: "manual_recovery";
2336
+ none: "none";
2337
+ }>;
2338
+ preview_refresh_status: z.ZodEnum<{
2339
+ failed: "failed";
2340
+ pending: "pending";
2341
+ succeeded: "succeeded";
2342
+ not_started: "not_started";
2343
+ }>;
2344
+ created_at: z.ZodString;
2345
+ updated_at: z.ZodString;
2346
+ }, z.core.$strict>;
2347
+ }, z.core.$strict>;
2348
+ export type FormDesignSaveResponse = FormDesignOperationResponse;
2349
+ export type FormDesignQueryResponse = FormDesignOperationResponse;
2350
+ export declare const FormDesignResumeRequestSchema: z.ZodObject<{
2351
+ operation_fingerprint: z.ZodString;
2352
+ }, z.core.$strict>;
2353
+ export type FormDesignResumeRequest = z.infer<typeof FormDesignResumeRequestSchema>;
2354
+ export declare const FormDesignResumeResponseSchema: z.ZodObject<{
2355
+ operation: z.ZodObject<{
2356
+ operation_id: z.ZodString;
2357
+ operation_fingerprint: z.ZodString;
2358
+ site_id: z.ZodString;
2359
+ form_definition_id: z.ZodString;
2360
+ stage: z.ZodEnum<{
2361
+ failed: "failed";
2362
+ created: "created";
2363
+ validated: "validated";
2364
+ binding_reserved: "binding_reserved";
2365
+ candidate_ready: "candidate_ready";
2366
+ cms_applied: "cms_applied";
2367
+ snapshot_promoted: "snapshot_promoted";
2368
+ committed: "committed";
2369
+ compensating: "compensating";
2370
+ recovery_required: "recovery_required";
2371
+ }>;
2372
+ status: z.ZodEnum<{
2373
+ failed: "failed";
2374
+ pending: "pending";
2375
+ recovery_required: "recovery_required";
2376
+ running: "running";
2377
+ succeeded: "succeeded";
2378
+ }>;
2379
+ base_snapshot_id: z.ZodString;
2380
+ candidate_snapshot_id: z.ZodNullable<z.ZodString>;
2381
+ before_form_code: z.ZodNullable<z.ZodString>;
2382
+ materialized_form_code: z.ZodNullable<z.ZodString>;
2383
+ expected_form_spec_hash: z.ZodString;
2384
+ draft_form_spec_hash: z.ZodString;
2385
+ materialized_form_spec_hash: z.ZodNullable<z.ZodString>;
2386
+ expected_cms_schema_hash: z.ZodNullable<z.ZodString>;
2387
+ desired_cms_schema_hash: z.ZodString;
2388
+ retry_count: z.ZodNumber;
2389
+ failure_stage: z.ZodNullable<z.ZodEnum<{
2390
+ candidate_abandon: "candidate_abandon";
2391
+ snapshot_reconcile: "snapshot_reconcile";
2392
+ cms_restore: "cms_restore";
2393
+ }>>;
2394
+ last_error_code: z.ZodNullable<z.ZodEnum<{
2395
+ FORM_DESIGN_INVALID: "FORM_DESIGN_INVALID";
2396
+ FORM_DESIGN_UNSUPPORTED: "FORM_DESIGN_UNSUPPORTED";
2397
+ FORM_DESIGN_STANDARDIZATION_AGENT_REQUIRED: "FORM_DESIGN_STANDARDIZATION_AGENT_REQUIRED";
2398
+ FORM_DESIGN_STANDARDIZATION_UNSUPPORTED: "FORM_DESIGN_STANDARDIZATION_UNSUPPORTED";
2399
+ FORM_DESIGN_FEATURE_NOT_ENABLED: "FORM_DESIGN_FEATURE_NOT_ENABLED";
2400
+ FORM_DESIGN_PERMISSION_DENIED: "FORM_DESIGN_PERMISSION_DENIED";
2401
+ FORM_DESIGN_LOCKED: "FORM_DESIGN_LOCKED";
2402
+ FORM_DESIGN_CODE_CONFLICT: "FORM_DESIGN_CODE_CONFLICT";
2403
+ FORM_DESIGN_CMS_CONFLICT: "FORM_DESIGN_CMS_CONFLICT";
2404
+ FORM_DESIGN_CMS_SCHEMA_MISMATCH: "FORM_DESIGN_CMS_SCHEMA_MISMATCH";
2405
+ FORM_DESIGN_CMS_NOT_FOUND: "FORM_DESIGN_CMS_NOT_FOUND";
2406
+ FORM_DESIGN_BINDING_MISSING: "FORM_DESIGN_BINDING_MISSING";
2407
+ FORM_DESIGN_OPERATION_CONFLICT: "FORM_DESIGN_OPERATION_CONFLICT";
2408
+ FORM_DESIGN_CMS_UNAVAILABLE: "FORM_DESIGN_CMS_UNAVAILABLE";
2409
+ FORM_DESIGN_PATCH_FAILED: "FORM_DESIGN_PATCH_FAILED";
2410
+ FORM_DESIGN_COMPENSATION_FAILED: "FORM_DESIGN_COMPENSATION_FAILED";
2411
+ FORM_DESIGN_RECOVERY_REQUIRED: "FORM_DESIGN_RECOVERY_REQUIRED";
2412
+ }>>;
2413
+ retryable: z.ZodBoolean;
2414
+ next_action: z.ZodEnum<{
2415
+ wait: "wait";
2416
+ resume: "resume";
2417
+ retry_new_operation: "retry_new_operation";
2418
+ manual_recovery: "manual_recovery";
2419
+ none: "none";
2420
+ }>;
2421
+ preview_refresh_status: z.ZodEnum<{
2422
+ failed: "failed";
2423
+ pending: "pending";
2424
+ succeeded: "succeeded";
2425
+ not_started: "not_started";
2426
+ }>;
2427
+ created_at: z.ZodString;
2428
+ updated_at: z.ZodString;
2429
+ }, z.core.$strict>;
2430
+ }, z.core.$strict>;
2431
+ export type FormDesignResumeResponse = FormDesignOperationResponse;
2432
+ /** Agent ↔ API private persistence envelope; never returned to the browser. */
2433
+ export declare const FormDesignOperationRecordSchema: z.ZodObject<{
2434
+ operation: z.ZodObject<{
2435
+ operation_id: z.ZodString;
2436
+ operation_fingerprint: z.ZodString;
2437
+ site_id: z.ZodString;
2438
+ form_definition_id: z.ZodString;
2439
+ stage: z.ZodEnum<{
2440
+ failed: "failed";
2441
+ created: "created";
2442
+ validated: "validated";
2443
+ binding_reserved: "binding_reserved";
2444
+ candidate_ready: "candidate_ready";
2445
+ cms_applied: "cms_applied";
2446
+ snapshot_promoted: "snapshot_promoted";
2447
+ committed: "committed";
2448
+ compensating: "compensating";
2449
+ recovery_required: "recovery_required";
2450
+ }>;
2451
+ status: z.ZodEnum<{
2452
+ failed: "failed";
2453
+ pending: "pending";
2454
+ recovery_required: "recovery_required";
2455
+ running: "running";
2456
+ succeeded: "succeeded";
2457
+ }>;
2458
+ base_snapshot_id: z.ZodString;
2459
+ candidate_snapshot_id: z.ZodNullable<z.ZodString>;
2460
+ before_form_code: z.ZodNullable<z.ZodString>;
2461
+ materialized_form_code: z.ZodNullable<z.ZodString>;
2462
+ expected_form_spec_hash: z.ZodString;
2463
+ draft_form_spec_hash: z.ZodString;
2464
+ materialized_form_spec_hash: z.ZodNullable<z.ZodString>;
2465
+ expected_cms_schema_hash: z.ZodNullable<z.ZodString>;
2466
+ desired_cms_schema_hash: z.ZodString;
2467
+ retry_count: z.ZodNumber;
2468
+ failure_stage: z.ZodNullable<z.ZodEnum<{
2469
+ candidate_abandon: "candidate_abandon";
2470
+ snapshot_reconcile: "snapshot_reconcile";
2471
+ cms_restore: "cms_restore";
2472
+ }>>;
2473
+ last_error_code: z.ZodNullable<z.ZodEnum<{
2474
+ FORM_DESIGN_INVALID: "FORM_DESIGN_INVALID";
2475
+ FORM_DESIGN_UNSUPPORTED: "FORM_DESIGN_UNSUPPORTED";
2476
+ FORM_DESIGN_STANDARDIZATION_AGENT_REQUIRED: "FORM_DESIGN_STANDARDIZATION_AGENT_REQUIRED";
2477
+ FORM_DESIGN_STANDARDIZATION_UNSUPPORTED: "FORM_DESIGN_STANDARDIZATION_UNSUPPORTED";
2478
+ FORM_DESIGN_FEATURE_NOT_ENABLED: "FORM_DESIGN_FEATURE_NOT_ENABLED";
2479
+ FORM_DESIGN_PERMISSION_DENIED: "FORM_DESIGN_PERMISSION_DENIED";
2480
+ FORM_DESIGN_LOCKED: "FORM_DESIGN_LOCKED";
2481
+ FORM_DESIGN_CODE_CONFLICT: "FORM_DESIGN_CODE_CONFLICT";
2482
+ FORM_DESIGN_CMS_CONFLICT: "FORM_DESIGN_CMS_CONFLICT";
2483
+ FORM_DESIGN_CMS_SCHEMA_MISMATCH: "FORM_DESIGN_CMS_SCHEMA_MISMATCH";
2484
+ FORM_DESIGN_CMS_NOT_FOUND: "FORM_DESIGN_CMS_NOT_FOUND";
2485
+ FORM_DESIGN_BINDING_MISSING: "FORM_DESIGN_BINDING_MISSING";
2486
+ FORM_DESIGN_OPERATION_CONFLICT: "FORM_DESIGN_OPERATION_CONFLICT";
2487
+ FORM_DESIGN_CMS_UNAVAILABLE: "FORM_DESIGN_CMS_UNAVAILABLE";
2488
+ FORM_DESIGN_PATCH_FAILED: "FORM_DESIGN_PATCH_FAILED";
2489
+ FORM_DESIGN_COMPENSATION_FAILED: "FORM_DESIGN_COMPENSATION_FAILED";
2490
+ FORM_DESIGN_RECOVERY_REQUIRED: "FORM_DESIGN_RECOVERY_REQUIRED";
2491
+ }>>;
2492
+ retryable: z.ZodBoolean;
2493
+ next_action: z.ZodEnum<{
2494
+ wait: "wait";
2495
+ resume: "resume";
2496
+ retry_new_operation: "retry_new_operation";
2497
+ manual_recovery: "manual_recovery";
2498
+ none: "none";
2499
+ }>;
2500
+ preview_refresh_status: z.ZodEnum<{
2501
+ failed: "failed";
2502
+ pending: "pending";
2503
+ succeeded: "succeeded";
2504
+ not_started: "not_started";
2505
+ }>;
2506
+ created_at: z.ZodString;
2507
+ updated_at: z.ZodString;
2508
+ }, z.core.$strict>;
2509
+ request: z.ZodPreprocess<z.ZodObject<{
2510
+ operation_id: z.ZodString;
2511
+ operation_fingerprint: z.ZodString;
2512
+ site_id: z.ZodString;
2513
+ form_definition_id: z.ZodString;
2514
+ base_snapshot_id: z.ZodString;
2515
+ expected_form_spec_hash: z.ZodString;
2516
+ expected_cms_schema_hash: z.ZodNullable<z.ZodString>;
2517
+ draft_form_spec: z.ZodObject<{
2518
+ schema_version: z.ZodLiteral<1>;
2519
+ min_runtime_version: z.ZodNumber;
2520
+ form_definition_id: z.ZodString;
2521
+ binding: z.ZodDiscriminatedUnion<[z.ZodObject<{
2522
+ status: z.ZodLiteral<"unbound">;
2523
+ form_code: z.ZodNull;
2524
+ }, z.core.$strict>, z.ZodObject<{
2525
+ status: z.ZodLiteral<"bound">;
2526
+ form_code: z.ZodString;
2527
+ }, z.core.$strict>, z.ZodObject<{
2528
+ status: z.ZodLiteral<"missing">;
2529
+ form_code: z.ZodString;
2530
+ }, z.core.$strict>], "status">;
2531
+ content_locale: z.ZodEnum<{
2532
+ id: "id";
2533
+ "zh-CN": "zh-CN";
2534
+ "zh-HK": "zh-HK";
2535
+ "zh-TW": "zh-TW";
2536
+ "en-US": "en-US";
2537
+ "en-GB": "en-GB";
2538
+ "ja-JP": "ja-JP";
2539
+ "ko-KR": "ko-KR";
2540
+ "es-ES": "es-ES";
2541
+ "fr-FR": "fr-FR";
2542
+ "de-DE": "de-DE";
2543
+ "pt-PT": "pt-PT";
2544
+ "ru-RU": "ru-RU";
2545
+ "ar-SA": "ar-SA";
2546
+ "id-ID": "id-ID";
2547
+ "vi-VN": "vi-VN";
2548
+ "th-TH": "th-TH";
2549
+ "it-IT": "it-IT";
2550
+ "nl-NL": "nl-NL";
2551
+ "tr-TR": "tr-TR";
2552
+ "pl-PL": "pl-PL";
2553
+ "uk-UA": "uk-UA";
2554
+ "cs-CZ": "cs-CZ";
2555
+ "sk-SK": "sk-SK";
2556
+ "hu-HU": "hu-HU";
2557
+ "ro-RO": "ro-RO";
2558
+ "el-GR": "el-GR";
2559
+ "sv-SE": "sv-SE";
2560
+ "da-DK": "da-DK";
2561
+ "fi-FI": "fi-FI";
2562
+ "hr-HR": "hr-HR";
2563
+ "lt-LT": "lt-LT";
2564
+ "lv-LV": "lv-LV";
2565
+ "et-EE": "et-EE";
2566
+ "ga-IE": "ga-IE";
2567
+ "mt-MT": "mt-MT";
2568
+ "ka-GE": "ka-GE";
2569
+ "fa-IR": "fa-IR";
2570
+ "bn-BD": "bn-BD";
2571
+ "ta-IN": "ta-IN";
2572
+ "si-LK": "si-LK";
2573
+ "ms-MY": "ms-MY";
2574
+ "fil-PH": "fil-PH";
2575
+ "my-MM": "my-MM";
2576
+ "km-KH": "km-KH";
2577
+ "lo-LA": "lo-LA";
2578
+ "mn-MN": "mn-MN";
2579
+ "kk-KZ": "kk-KZ";
2580
+ en: "en";
2581
+ ja: "ja";
2582
+ es: "es";
2583
+ fr: "fr";
2584
+ de: "de";
2585
+ ko: "ko";
2586
+ pt: "pt";
2587
+ "pt-BR": "pt-BR";
2588
+ it: "it";
2589
+ ru: "ru";
2590
+ ar: "ar";
2591
+ hi: "hi";
2592
+ vi: "vi";
2593
+ th: "th";
2594
+ tr: "tr";
2595
+ nl: "nl";
2596
+ pl: "pl";
2597
+ uk: "uk";
2598
+ sv: "sv";
2599
+ da: "da";
2600
+ fi: "fi";
2601
+ no: "no";
2602
+ cs: "cs";
2603
+ el: "el";
2604
+ hu: "hu";
2605
+ ro: "ro";
2606
+ he: "he";
2607
+ ms: "ms";
2608
+ fil: "fil";
2609
+ bn: "bn";
2610
+ ta: "ta";
2611
+ ca: "ca";
2612
+ sk: "sk";
2613
+ hr: "hr";
2614
+ bg: "bg";
2615
+ lt: "lt";
2616
+ lv: "lv";
2617
+ et: "et";
2618
+ fa: "fa";
2619
+ sw: "sw";
2620
+ sr: "sr";
2621
+ is: "is";
2622
+ }>;
2623
+ features: z.ZodObject<{
2624
+ multistep: z.ZodBoolean;
2625
+ }, z.core.$strict>;
2626
+ copy: z.ZodObject<{
2627
+ title: z.ZodString;
2628
+ description: z.ZodString;
2629
+ submit_button: z.ZodString;
2630
+ success_message: z.ZodString;
2631
+ error_message: z.ZodString;
2632
+ }, z.core.$strict>;
2633
+ layout: z.ZodObject<{
2634
+ columns: z.ZodEnum<{
2635
+ one: "one";
2636
+ two: "two";
2637
+ }>;
2638
+ }, z.core.$strict>;
2639
+ nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2640
+ kind: z.ZodLiteral<"field">;
2641
+ field_name: z.ZodString;
2642
+ type: z.ZodEnum<{
2643
+ number: "number";
2644
+ boolean: "boolean";
2645
+ date: "date";
2646
+ text: "text";
2647
+ email: "email";
2648
+ select: "select";
2649
+ multiselect: "multiselect";
2650
+ textarea: "textarea";
2651
+ phone: "phone";
2652
+ radio: "radio";
2653
+ }>;
2654
+ label: z.ZodString;
2655
+ required: z.ZodBoolean;
2656
+ span: z.ZodEnum<{
2657
+ full: "full";
2658
+ half: "half";
2659
+ }>;
2660
+ options: z.ZodArray<z.ZodObject<{
2661
+ value: z.ZodString;
2662
+ label: z.ZodString;
2663
+ }, z.core.$strict>>;
2664
+ }, z.core.$strict>, z.ZodObject<{
2665
+ kind: z.ZodLiteral<"step-break">;
2666
+ step_id: z.ZodString;
2667
+ }, z.core.$strict>], "kind">>;
2668
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
2669
+ kind: z.ZodLiteral<"custom">;
2670
+ }, z.core.$strict>, z.ZodObject<{
2671
+ kind: z.ZodLiteral<"template">;
2672
+ slug: z.ZodString;
2673
+ version: z.ZodString;
2674
+ }, z.core.$strict>], "kind">;
2675
+ retired: z.ZodObject<{
2676
+ fields: z.ZodArray<z.ZodObject<{
2677
+ field_name: z.ZodString;
2678
+ type: z.ZodEnum<{
2679
+ number: "number";
2680
+ boolean: "boolean";
2681
+ date: "date";
2682
+ text: "text";
2683
+ email: "email";
2684
+ select: "select";
2685
+ multiselect: "multiselect";
2686
+ textarea: "textarea";
2687
+ phone: "phone";
2688
+ radio: "radio";
2689
+ }>;
2690
+ last_label: z.ZodString;
2691
+ }, z.core.$strict>>;
2692
+ options: z.ZodArray<z.ZodObject<{
2693
+ field_name: z.ZodString;
2694
+ value: z.ZodString;
2695
+ last_label: z.ZodString;
2696
+ }, z.core.$strict>>;
2697
+ }, z.core.$strict>;
2698
+ compatibility: z.ZodObject<{
2699
+ standardization_version: z.ZodNumber;
2700
+ diagnostics: z.ZodArray<z.ZodString>;
2701
+ }, z.core.$strict>;
2702
+ }, z.core.$strict>;
2703
+ draft_form_spec_hash: z.ZodString;
2704
+ desired_cms_schema_hash: z.ZodString;
2705
+ affected_files_hash: z.ZodString;
2706
+ shared_impact: z.ZodObject<{
2707
+ reference_hash: z.ZodString;
2708
+ page_count: z.ZodNumber;
2709
+ block_count: z.ZodNumber;
2710
+ }, z.core.$strict>;
2711
+ confirm_shared_update: z.ZodBoolean;
2712
+ recreate_missing_binding: z.ZodBoolean;
2713
+ standardization: z.ZodObject<{
2714
+ grade: z.ZodEnum<{
2715
+ standard: "standard";
2716
+ A: "A";
2717
+ B: "B";
2718
+ C: "C";
2719
+ }>;
2720
+ required: z.ZodBoolean;
2721
+ pending_confirmations: z.ZodArray<z.ZodObject<{
2722
+ item_id: z.ZodString;
2723
+ field_name: z.ZodOptional<z.ZodString>;
2724
+ kind: z.ZodEnum<{
2725
+ layout: "layout";
2726
+ field_type: "field_type";
2727
+ field_label: "field_label";
2728
+ form_copy: "form_copy";
2729
+ field_required: "field_required";
2730
+ field_options: "field_options";
2731
+ }>;
2732
+ message: z.ZodString;
2733
+ }, z.core.$strict>>;
2734
+ }, z.core.$strict>;
2735
+ confirm_standardization: z.ZodBoolean;
2736
+ }, z.core.$strict>>;
2737
+ cms_replace_result: z.ZodNullable<z.ZodUnknown>;
2738
+ }, z.core.$strict>;
2739
+ export type FormDesignOperationRecord = z.infer<typeof FormDesignOperationRecordSchema>;
2740
+ export declare const FormDesignOperationTransitionRequestSchema: z.ZodObject<{
2741
+ expected_updated_at: z.ZodString;
2742
+ operation: z.ZodObject<{
2743
+ stage: z.ZodOptional<z.ZodEnum<{
2744
+ failed: "failed";
2745
+ created: "created";
2746
+ validated: "validated";
2747
+ binding_reserved: "binding_reserved";
2748
+ candidate_ready: "candidate_ready";
2749
+ cms_applied: "cms_applied";
2750
+ snapshot_promoted: "snapshot_promoted";
2751
+ committed: "committed";
2752
+ compensating: "compensating";
2753
+ recovery_required: "recovery_required";
2754
+ }>>;
2755
+ status: z.ZodOptional<z.ZodEnum<{
2756
+ failed: "failed";
2757
+ pending: "pending";
2758
+ recovery_required: "recovery_required";
2759
+ running: "running";
2760
+ succeeded: "succeeded";
2761
+ }>>;
2762
+ candidate_snapshot_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2763
+ before_form_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2764
+ materialized_form_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2765
+ materialized_form_spec_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2766
+ retry_count: z.ZodOptional<z.ZodNumber>;
2767
+ failure_stage: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2768
+ candidate_abandon: "candidate_abandon";
2769
+ snapshot_reconcile: "snapshot_reconcile";
2770
+ cms_restore: "cms_restore";
2771
+ }>>>;
2772
+ last_error_code: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2773
+ FORM_DESIGN_INVALID: "FORM_DESIGN_INVALID";
2774
+ FORM_DESIGN_UNSUPPORTED: "FORM_DESIGN_UNSUPPORTED";
2775
+ FORM_DESIGN_STANDARDIZATION_AGENT_REQUIRED: "FORM_DESIGN_STANDARDIZATION_AGENT_REQUIRED";
2776
+ FORM_DESIGN_STANDARDIZATION_UNSUPPORTED: "FORM_DESIGN_STANDARDIZATION_UNSUPPORTED";
2777
+ FORM_DESIGN_FEATURE_NOT_ENABLED: "FORM_DESIGN_FEATURE_NOT_ENABLED";
2778
+ FORM_DESIGN_PERMISSION_DENIED: "FORM_DESIGN_PERMISSION_DENIED";
2779
+ FORM_DESIGN_LOCKED: "FORM_DESIGN_LOCKED";
2780
+ FORM_DESIGN_CODE_CONFLICT: "FORM_DESIGN_CODE_CONFLICT";
2781
+ FORM_DESIGN_CMS_CONFLICT: "FORM_DESIGN_CMS_CONFLICT";
2782
+ FORM_DESIGN_CMS_SCHEMA_MISMATCH: "FORM_DESIGN_CMS_SCHEMA_MISMATCH";
2783
+ FORM_DESIGN_CMS_NOT_FOUND: "FORM_DESIGN_CMS_NOT_FOUND";
2784
+ FORM_DESIGN_BINDING_MISSING: "FORM_DESIGN_BINDING_MISSING";
2785
+ FORM_DESIGN_OPERATION_CONFLICT: "FORM_DESIGN_OPERATION_CONFLICT";
2786
+ FORM_DESIGN_CMS_UNAVAILABLE: "FORM_DESIGN_CMS_UNAVAILABLE";
2787
+ FORM_DESIGN_PATCH_FAILED: "FORM_DESIGN_PATCH_FAILED";
2788
+ FORM_DESIGN_COMPENSATION_FAILED: "FORM_DESIGN_COMPENSATION_FAILED";
2789
+ FORM_DESIGN_RECOVERY_REQUIRED: "FORM_DESIGN_RECOVERY_REQUIRED";
2790
+ }>>>;
2791
+ retryable: z.ZodOptional<z.ZodBoolean>;
2792
+ next_action: z.ZodOptional<z.ZodEnum<{
2793
+ wait: "wait";
2794
+ resume: "resume";
2795
+ retry_new_operation: "retry_new_operation";
2796
+ manual_recovery: "manual_recovery";
2797
+ none: "none";
2798
+ }>>;
2799
+ preview_refresh_status: z.ZodOptional<z.ZodEnum<{
2800
+ failed: "failed";
2801
+ pending: "pending";
2802
+ succeeded: "succeeded";
2803
+ not_started: "not_started";
2804
+ }>>;
2805
+ }, z.core.$strict>;
2806
+ cms_replace_result: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
2807
+ }, z.core.$strict>;
2808
+ export type FormDesignOperationTransitionRequest = z.infer<typeof FormDesignOperationTransitionRequestSchema>;
2809
+ export declare const FormDesignErrorSchema: z.ZodObject<{
2810
+ code: z.ZodEnum<{
2811
+ FORM_DESIGN_INVALID: "FORM_DESIGN_INVALID";
2812
+ FORM_DESIGN_UNSUPPORTED: "FORM_DESIGN_UNSUPPORTED";
2813
+ FORM_DESIGN_STANDARDIZATION_AGENT_REQUIRED: "FORM_DESIGN_STANDARDIZATION_AGENT_REQUIRED";
2814
+ FORM_DESIGN_STANDARDIZATION_UNSUPPORTED: "FORM_DESIGN_STANDARDIZATION_UNSUPPORTED";
2815
+ FORM_DESIGN_FEATURE_NOT_ENABLED: "FORM_DESIGN_FEATURE_NOT_ENABLED";
2816
+ FORM_DESIGN_PERMISSION_DENIED: "FORM_DESIGN_PERMISSION_DENIED";
2817
+ FORM_DESIGN_LOCKED: "FORM_DESIGN_LOCKED";
2818
+ FORM_DESIGN_CODE_CONFLICT: "FORM_DESIGN_CODE_CONFLICT";
2819
+ FORM_DESIGN_CMS_CONFLICT: "FORM_DESIGN_CMS_CONFLICT";
2820
+ FORM_DESIGN_CMS_SCHEMA_MISMATCH: "FORM_DESIGN_CMS_SCHEMA_MISMATCH";
2821
+ FORM_DESIGN_CMS_NOT_FOUND: "FORM_DESIGN_CMS_NOT_FOUND";
2822
+ FORM_DESIGN_BINDING_MISSING: "FORM_DESIGN_BINDING_MISSING";
2823
+ FORM_DESIGN_OPERATION_CONFLICT: "FORM_DESIGN_OPERATION_CONFLICT";
2824
+ FORM_DESIGN_CMS_UNAVAILABLE: "FORM_DESIGN_CMS_UNAVAILABLE";
2825
+ FORM_DESIGN_PATCH_FAILED: "FORM_DESIGN_PATCH_FAILED";
2826
+ FORM_DESIGN_COMPENSATION_FAILED: "FORM_DESIGN_COMPENSATION_FAILED";
2827
+ FORM_DESIGN_RECOVERY_REQUIRED: "FORM_DESIGN_RECOVERY_REQUIRED";
2828
+ }>;
2829
+ message: z.ZodString;
2830
+ retryable: z.ZodBoolean;
2831
+ operation_id: z.ZodOptional<z.ZodString>;
2832
+ stage: z.ZodOptional<z.ZodEnum<{
2833
+ failed: "failed";
2834
+ created: "created";
2835
+ validated: "validated";
2836
+ binding_reserved: "binding_reserved";
2837
+ candidate_ready: "candidate_ready";
2838
+ cms_applied: "cms_applied";
2839
+ snapshot_promoted: "snapshot_promoted";
2840
+ committed: "committed";
2841
+ compensating: "compensating";
2842
+ recovery_required: "recovery_required";
2843
+ }>>;
2844
+ }, z.core.$strict>;
2845
+ export type FormDesignError = z.infer<typeof FormDesignErrorSchema>;
2846
+ export declare function formDesignOperationFingerprintInput(request: FormDesignSaveRequest): FormDesignOperationFingerprintInput;
2847
+ /** RFC 8785 JSON Canonicalization Scheme bytes represented as a UTF-8 string. */
2848
+ export declare function canonicalizeFormDesignJson(value: unknown): string;
2849
+ /** Cross-runtime hash format used by FORM_SPEC, CMS projection and operations. */
2850
+ export declare function hashFormDesignJson(value: unknown): Promise<string>;
2851
+ export declare function hashFormSpec(spec: FormSpecV1): Promise<string>;
2852
+ export declare function hashCmsFormSchemaProjection(projection: CmsFormSchemaProjection): Promise<string>;
2853
+ export declare function hashAffectedFormDesignFiles(files: FormDesignAffectedFiles): Promise<string>;
2854
+ export declare function computeFormDesignOperationFingerprint(request: FormDesignSaveRequest): Promise<string>;