@vcp-dev/contracts 0.6.10 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/README.md +5 -4
  2. package/dist/api-response.d.ts +11 -0
  3. package/dist/business-facts.d.ts +23 -0
  4. package/dist/cms-page-directory.d.ts +281 -0
  5. package/dist/cms-site-id.d.ts +4 -0
  6. package/dist/colorway-distinctness.js +1 -1
  7. package/dist/connect-dynamic-collection.d.ts +7 -3
  8. package/dist/connect-form.d.ts +7 -5
  9. package/dist/conversion-hints.d.ts +37 -0
  10. package/dist/crawler-task-service.d.ts +594 -0
  11. package/dist/custom-domain.d.ts +120 -206
  12. package/dist/customer-materials.d.ts +196 -0
  13. package/dist/deployment-lifecycle.d.ts +45 -0
  14. package/dist/deployment-progress.d.ts +51 -0
  15. package/dist/design-tokens.d.ts +1 -0
  16. package/dist/design-tokens.js +1 -1
  17. package/dist/designer-component-library.d.ts +9 -7
  18. package/dist/designer-page-library.d.ts +36 -40
  19. package/dist/e2b-preview-proxy.d.ts +5 -0
  20. package/dist/external-site-edit.d.ts +267 -0
  21. package/dist/firecrawl-internal.d.ts +122 -0
  22. package/dist/font-catalog.d.ts +5 -2
  23. package/dist/form-design.d.ts +109 -69
  24. package/dist/google-search-console.d.ts +317 -0
  25. package/dist/index.d.ts +7110 -1965
  26. package/dist/index.js +1 -1
  27. package/dist/industry-classification.d.ts +43 -0
  28. package/dist/input-context-bundle.d.ts +16 -6
  29. package/dist/internal-entity-id.d.ts +3 -0
  30. package/dist/knowledge-category.d.ts +20 -0
  31. package/dist/knowledge-source-readiness.d.ts +94 -0
  32. package/dist/launcher-prompt-templates.d.ts +742 -0
  33. package/dist/media-library.d.ts +164 -0
  34. package/dist/migration-products.d.ts +45 -0
  35. package/dist/page-slug.d.ts +2 -0
  36. package/dist/page-template.d.ts +95 -0
  37. package/dist/product-search.d.ts +227 -0
  38. package/dist/site-build.d.ts +563 -0
  39. package/dist/site-design-presets.d.ts +20 -0
  40. package/dist/site-edit-capability.d.ts +13 -1
  41. package/dist/site-edit-class-name-source.d.ts +40 -8
  42. package/dist/site-edit-command-result.d.ts +15 -4
  43. package/dist/site-edit-composition.d.ts +13 -0
  44. package/dist/site-edit-event.d.ts +76 -14
  45. package/dist/site-edit-history-status.d.ts +193 -0
  46. package/dist/site-edit-operation.d.ts +205 -62
  47. package/dist/site-edit-page-composition.d.ts +101 -22
  48. package/dist/site-edit-patch-plan.d.ts +49 -3
  49. package/dist/site-edit-render-document.d.ts +67 -17
  50. package/dist/site-edit-session.d.ts +5 -2
  51. package/dist/site-edit-source.d.ts +60 -11
  52. package/dist/site-edit-version.d.ts +1 -1
  53. package/dist/site-extra-requirement.d.ts +31 -0
  54. package/dist/site-locale.d.ts +20 -0
  55. package/dist/site-localization-fields.d.ts +196 -0
  56. package/dist/site-localization-scope.d.ts +95 -0
  57. package/dist/site-preview.d.ts +65 -0
  58. package/dist/site-publish-domain.d.ts +680 -0
  59. package/dist/site-publish-workflow.d.ts +612 -0
  60. package/dist/site-workflow-completions.d.ts +163 -0
  61. package/dist/site-workflow.d.ts +1026 -0
  62. package/dist/sitemap-navigation.d.ts +12 -0
  63. package/dist/step2-page-selection.d.ts +88 -0
  64. package/dist/step2-site-initialization.d.ts +500 -0
  65. package/dist/step3-digital-employee-analysis.d.ts +661 -0
  66. package/dist/step4-diagnosis.d.ts +272 -0
  67. package/dist/step5-strategy.d.ts +8076 -0
  68. package/dist/step6-design.d.ts +986 -0
  69. package/dist/subsite-localization-input.d.ts +121 -0
  70. package/dist/subsite-mount-path.d.ts +23 -0
  71. package/dist/subsite-visible-text-export.d.ts +22 -0
  72. package/dist/template-upgrade-observability.d.ts +2 -2
  73. package/dist/theme-presets.d.ts +56 -1
  74. package/dist/user-facing-copy.d.ts +1 -0
  75. package/dist/workspace-design-apply.d.ts +5 -0
  76. package/dist/workspace-resource-operation.d.ts +75 -33
  77. package/package.json +2 -1
  78. package/dist/publish-plan.d.ts +0 -54
@@ -0,0 +1,122 @@
1
+ import { z } from "zod";
2
+ export declare const FirecrawlJobStatusSchema: z.ZodEnum<{
3
+ failed: "failed";
4
+ scraping: "scraping";
5
+ completed: "completed";
6
+ expired: "expired";
7
+ }>;
8
+ export declare const FirecrawlMapRequestSchema: z.ZodObject<{
9
+ url: z.ZodString;
10
+ ignore_cache: z.ZodBoolean;
11
+ sitemap: z.ZodEnum<{
12
+ include: "include";
13
+ skip: "skip";
14
+ }>;
15
+ include_subdomains: z.ZodBoolean;
16
+ ignore_query_parameters: z.ZodBoolean;
17
+ limit: z.ZodNumber;
18
+ }, z.core.$strict>;
19
+ export declare const FirecrawlMapResponseSchema: z.ZodObject<{
20
+ links: z.ZodArray<z.ZodString>;
21
+ }, z.core.$strict>;
22
+ export declare const FirecrawlCrawlCreateRequestSchema: z.ZodObject<{
23
+ url: z.ZodString;
24
+ limit: z.ZodNumber;
25
+ max_discovery_depth: z.ZodLiteral<1>;
26
+ crawl_entire_domain: z.ZodLiteral<false>;
27
+ allow_subdomains: z.ZodLiteral<true>;
28
+ sitemap: z.ZodLiteral<"skip">;
29
+ }, z.core.$strict>;
30
+ export declare const FirecrawlCrawlCreatedResponseSchema: z.ZodObject<{
31
+ crawl_id: z.ZodString;
32
+ expires_at: z.ZodOptional<z.ZodString>;
33
+ }, z.core.$strict>;
34
+ export declare const FirecrawlCrawlStatusResponseSchema: z.ZodObject<{
35
+ status: z.ZodEnum<{
36
+ failed: "failed";
37
+ scraping: "scraping";
38
+ completed: "completed";
39
+ expired: "expired";
40
+ }>;
41
+ urls: z.ZodArray<z.ZodString>;
42
+ next: z.ZodOptional<z.ZodString>;
43
+ expires_at: z.ZodString;
44
+ }, z.core.$strict>;
45
+ /**
46
+ * 单页同步抓取:给只要一份完整 DOM、不需要异步批次的调用方用。
47
+ * formats 与 only_main_content 都锁死,避免这个端点漂成通用抓取入口——
48
+ * 正文提取会丢掉 meta、form、script,而那正是调用方要的东西。
49
+ */
50
+ export declare const FirecrawlScrapeRequestSchema: z.ZodObject<{
51
+ url: z.ZodString;
52
+ formats: z.ZodTuple<[z.ZodLiteral<"rawHtml">], null>;
53
+ only_main_content: z.ZodLiteral<false>;
54
+ max_age: z.ZodNumber;
55
+ }, z.core.$strict>;
56
+ export declare const FirecrawlScrapeResponseSchema: z.ZodObject<{
57
+ url: z.ZodString;
58
+ raw_html: z.ZodString;
59
+ status_code: z.ZodNullable<z.ZodNumber>;
60
+ }, z.core.$strict>;
61
+ export declare const FirecrawlBatchCreateRequestSchema: z.ZodObject<{
62
+ urls: z.ZodArray<z.ZodString>;
63
+ formats: z.ZodTuple<[z.ZodLiteral<"rawHtml">], null>;
64
+ ignore_invalid_urls: z.ZodLiteral<false>;
65
+ max_age: z.ZodNumber;
66
+ max_concurrency: z.ZodOptional<z.ZodNumber>;
67
+ }, z.core.$strict>;
68
+ export declare const FirecrawlBatchCreatedResponseSchema: z.ZodObject<{
69
+ batch_id: z.ZodString;
70
+ expires_at: z.ZodOptional<z.ZodString>;
71
+ }, z.core.$strict>;
72
+ export declare const FirecrawlBatchPageSchema: z.ZodObject<{
73
+ url: z.ZodString;
74
+ raw_html: z.ZodString;
75
+ }, z.core.$strict>;
76
+ export declare const FirecrawlBatchStatusResponseSchema: z.ZodObject<{
77
+ status: z.ZodEnum<{
78
+ failed: "failed";
79
+ scraping: "scraping";
80
+ completed: "completed";
81
+ expired: "expired";
82
+ }>;
83
+ total: z.ZodNumber;
84
+ completed: z.ZodNumber;
85
+ pages: z.ZodArray<z.ZodObject<{
86
+ url: z.ZodString;
87
+ raw_html: z.ZodString;
88
+ }, z.core.$strict>>;
89
+ next: z.ZodOptional<z.ZodString>;
90
+ expires_at: z.ZodString;
91
+ }, z.core.$strict>;
92
+ export declare const FirecrawlBatchErrorSchema: z.ZodObject<{
93
+ url: z.ZodString;
94
+ error_message: z.ZodString;
95
+ }, z.core.$strict>;
96
+ export declare const FirecrawlBatchErrorsResponseSchema: z.ZodObject<{
97
+ errors: z.ZodArray<z.ZodObject<{
98
+ url: z.ZodString;
99
+ error_message: z.ZodString;
100
+ }, z.core.$strict>>;
101
+ robots_blocked: z.ZodArray<z.ZodString>;
102
+ }, z.core.$strict>;
103
+ export declare const FirecrawlQueueStatusResponseSchema: z.ZodObject<{
104
+ active: z.ZodNumber;
105
+ waiting: z.ZodNumber;
106
+ max_concurrency: z.ZodNumber;
107
+ }, z.core.$strict>;
108
+ export type FirecrawlJobStatus = z.infer<typeof FirecrawlJobStatusSchema>;
109
+ export type FirecrawlMapRequest = z.infer<typeof FirecrawlMapRequestSchema>;
110
+ export type FirecrawlMapResponse = z.infer<typeof FirecrawlMapResponseSchema>;
111
+ export type FirecrawlCrawlCreateRequest = z.infer<typeof FirecrawlCrawlCreateRequestSchema>;
112
+ export type FirecrawlCrawlCreatedResponse = z.infer<typeof FirecrawlCrawlCreatedResponseSchema>;
113
+ export type FirecrawlCrawlStatusResponse = z.infer<typeof FirecrawlCrawlStatusResponseSchema>;
114
+ export type FirecrawlScrapeRequest = z.infer<typeof FirecrawlScrapeRequestSchema>;
115
+ export type FirecrawlScrapeResponse = z.infer<typeof FirecrawlScrapeResponseSchema>;
116
+ export type FirecrawlBatchCreateRequest = z.infer<typeof FirecrawlBatchCreateRequestSchema>;
117
+ export type FirecrawlBatchCreatedResponse = z.infer<typeof FirecrawlBatchCreatedResponseSchema>;
118
+ export type FirecrawlBatchPage = z.infer<typeof FirecrawlBatchPageSchema>;
119
+ export type FirecrawlBatchStatusResponse = z.infer<typeof FirecrawlBatchStatusResponseSchema>;
120
+ export type FirecrawlBatchError = z.infer<typeof FirecrawlBatchErrorSchema>;
121
+ export type FirecrawlBatchErrorsResponse = z.infer<typeof FirecrawlBatchErrorsResponseSchema>;
122
+ export type FirecrawlQueueStatusResponse = z.infer<typeof FirecrawlQueueStatusResponseSchema>;
@@ -70,8 +70,8 @@ export declare function siteFontVariables(fonts?: {
70
70
  };
71
71
  /** A curated heading/body pairing surfaced by the workspace design panel. */
72
72
  export interface FontPairing {
73
- /** Stable kebab-case id persisted nowhere; used for UI selection state. */
74
- id: string;
73
+ /** Stable kebab-case id persisted by Step6 and reused by the design panel. */
74
+ id: FontPairingId;
75
75
  /** Display name key into NEXT_FONT_REGISTRY. */
76
76
  heading: string;
77
77
  /** Display name key into NEXT_FONT_REGISTRY. */
@@ -82,4 +82,7 @@ export interface FontPairing {
82
82
  * NEXT_FONT_REGISTRY display-name key (enforced by font-catalog.test.ts).
83
83
  * CJK pairings stay system-stack only (`download: false` entries).
84
84
  */
85
+ export declare const FONT_PAIRING_IDS: readonly ["archivo-inter", "playfair-source-sans", "space-grotesk-manrope", "fraunces-libre-franklin", "noto-serif-sc-noto-sans-sc", "noto-sans-sc"];
86
+ export type FontPairingId = (typeof FONT_PAIRING_IDS)[number];
85
87
  export declare const FONT_PAIRINGS: readonly FontPairing[];
88
+ export declare function getFontPairing(id: FontPairingId): FontPairing;
@@ -1,6 +1,7 @@
1
1
  import { z } from "zod";
2
2
  import { type SiteLocale } from "./site-locale.js";
3
3
  export declare const FORM_SPEC_MULTISTEP_MIN_RUNTIME_VERSION = 2;
4
+ export declare const FORM_SPEC_FILE_MIN_RUNTIME_VERSION = 3;
4
5
  export declare const FormDefinitionIdSchema: z.ZodString;
5
6
  export declare const FormBlockIdSchema: z.ZodString;
6
7
  export declare const FormDesignOperationIdSchema: z.ZodString;
@@ -29,6 +30,7 @@ export declare const FormSpecFieldNodeSchema: z.ZodObject<{
29
30
  number: "number";
30
31
  boolean: "boolean";
31
32
  date: "date";
33
+ file: "file";
32
34
  text: "text";
33
35
  email: "email";
34
36
  select: "select";
@@ -47,6 +49,7 @@ export declare const FormSpecFieldNodeSchema: z.ZodObject<{
47
49
  value: z.ZodString;
48
50
  label: z.ZodString;
49
51
  }, z.core.$strict>>;
52
+ max_files: z.ZodOptional<z.ZodNumber>;
50
53
  }, z.core.$strict>;
51
54
  export type FormSpecFieldNode = z.infer<typeof FormSpecFieldNodeSchema>;
52
55
  /** A step break starts the next step; the first step is implicit. */
@@ -62,6 +65,7 @@ export declare const FormSpecNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
62
65
  number: "number";
63
66
  boolean: "boolean";
64
67
  date: "date";
68
+ file: "file";
65
69
  text: "text";
66
70
  email: "email";
67
71
  select: "select";
@@ -80,11 +84,13 @@ export declare const FormSpecNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
80
84
  value: z.ZodString;
81
85
  label: z.ZodString;
82
86
  }, z.core.$strict>>;
87
+ max_files: z.ZodOptional<z.ZodNumber>;
83
88
  }, z.core.$strict>, z.ZodObject<{
84
89
  kind: z.ZodLiteral<"step-break">;
85
90
  step_id: z.ZodString;
86
91
  }, z.core.$strict>], "kind">;
87
92
  export type FormSpecNode = z.infer<typeof FormSpecNodeSchema>;
93
+ export declare function normalizeFormOptionLabelIdentity(value: string, locale: string): string;
88
94
  export declare const FormSpecV1Schema: z.ZodObject<{
89
95
  schema_version: z.ZodLiteral<1>;
90
96
  min_runtime_version: z.ZodNumber;
@@ -214,6 +220,7 @@ export declare const FormSpecV1Schema: z.ZodObject<{
214
220
  number: "number";
215
221
  boolean: "boolean";
216
222
  date: "date";
223
+ file: "file";
217
224
  text: "text";
218
225
  email: "email";
219
226
  select: "select";
@@ -232,6 +239,7 @@ export declare const FormSpecV1Schema: z.ZodObject<{
232
239
  value: z.ZodString;
233
240
  label: z.ZodString;
234
241
  }, z.core.$strict>>;
242
+ max_files: z.ZodOptional<z.ZodNumber>;
235
243
  }, z.core.$strict>, z.ZodObject<{
236
244
  kind: z.ZodLiteral<"step-break">;
237
245
  step_id: z.ZodString;
@@ -250,6 +258,7 @@ export declare const FormSpecV1Schema: z.ZodObject<{
250
258
  number: "number";
251
259
  boolean: "boolean";
252
260
  date: "date";
261
+ file: "file";
253
262
  text: "text";
254
263
  email: "email";
255
264
  select: "select";
@@ -272,6 +281,48 @@ export declare const FormSpecV1Schema: z.ZodObject<{
272
281
  }, z.core.$strict>;
273
282
  }, z.core.$strict>;
274
283
  export type FormSpecV1 = z.infer<typeof FormSpecV1Schema>;
284
+ /**
285
+ * The FORM_SPEC field paths that carry visitor-facing prose, written with `*`
286
+ * for every array index. This is the single source of truth shared by the
287
+ * generator (which writes the spec) and by any consumer that rewrites text in
288
+ * a generated site — subsite content localization is the first such consumer.
289
+ *
290
+ * It is a whitelist on purpose. A generated `form-*.spec.ts` is a mixed file:
291
+ * most of it is machine values that must survive byte-for-byte, and only these
292
+ * three families are prose. Two of the machine values fail *silently* when
293
+ * rewritten, which is why neither file-level exclusion nor a field-name
294
+ * denylist is good enough here:
295
+ *
296
+ * - `binding.form_code` is the CMS form binding code. Rewrite it and the form
297
+ * still renders, still validates and still submits — into nothing. There is
298
+ * no build error and no runtime error, only submissions that stop arriving.
299
+ * - `content_locale` is the locale tag the runtime resolves template copy
300
+ * against. It must be set deterministically by whoever owns the locale
301
+ * decision, never derived from a translated string.
302
+ *
303
+ * The three families below match the per-locale text that
304
+ * `FormTemplateV1Schema` already carries in the template catalog
305
+ * (`copy.*`, field labels, option labels): the spec is where a template lands
306
+ * after it is instantiated, so the same three families stay translatable and
307
+ * everything else stays machine-owned. `retired.*.last_label` is deliberately
308
+ * excluded — those are bookkeeping copies used to match already-retired fields
309
+ * and options, never rendered.
310
+ *
311
+ * The list is kept honest by an exhaustiveness test that enumerates every
312
+ * string-typed leaf of `FormSpecV1Schema`: adding a string field to the schema
313
+ * fails that test until the new field is classified as prose or machine, so
314
+ * the list cannot silently drift away from the schema it describes.
315
+ */
316
+ export declare const FORM_SPEC_LOCALIZABLE_FIELD_PATHS: readonly ["copy.title", "copy.description", "copy.submit_button", "copy.success_message", "copy.error_message", "nodes.*.label", "nodes.*.options.*.label"];
317
+ export type FormSpecLocalizableFieldPath = (typeof FORM_SPEC_LOCALIZABLE_FIELD_PATHS)[number];
318
+ /**
319
+ * Normalizes one concrete FORM_SPEC field path (array indices as numbers or
320
+ * digit strings) and looks it up in {@link FORM_SPEC_LOCALIZABLE_FIELD_PATHS}.
321
+ *
322
+ * Fails closed: anything the list does not name — including paths from a spec
323
+ * shape this contract does not know — is reported as not localizable.
324
+ */
325
+ export declare function isFormSpecLocalizableFieldPath(path: readonly (string | number)[]): boolean;
275
326
  export type FormSpecIdentityTransitionIssue = {
276
327
  code: "FIELD_IDENTITY_CHANGED";
277
328
  field_name: string;
@@ -343,25 +394,16 @@ export declare const FormTemplateTextSchema: z.ZodObject<{
343
394
  export type FormTemplateText = z.infer<typeof FormTemplateTextSchema>;
344
395
  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
396
  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
- }>;
397
+ /**
398
+ * The resource platform owns form taxonomy. Keep the historical category
399
+ * constants for the built-in fixture, but accept any valid taxonomy slug at
400
+ * the public contract boundary.
401
+ */
402
+ export declare const FormTemplateCategorySlugSchema: z.ZodString;
354
403
  export type FormTemplateCategorySlug = z.infer<typeof FormTemplateCategorySlugSchema>;
355
404
  export declare const FormTemplateCategoryV1Schema: z.ZodObject<{
356
405
  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
- }>;
406
+ slug: z.ZodString;
365
407
  name: z.ZodObject<{
366
408
  english: z.ZodString;
367
409
  translations: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
@@ -421,14 +463,7 @@ export declare const FormTemplateV1Schema: z.ZodObject<{
421
463
  schema_version: z.ZodLiteral<1>;
422
464
  slug: z.ZodString;
423
465
  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
- }>;
466
+ category: z.ZodString;
432
467
  copy: z.ZodObject<{
433
468
  title: z.ZodObject<{
434
469
  english: z.ZodString;
@@ -703,6 +738,7 @@ export declare const FormTemplateV1Schema: z.ZodObject<{
703
738
  number: "number";
704
739
  boolean: "boolean";
705
740
  date: "date";
741
+ file: "file";
706
742
  text: "text";
707
743
  email: "email";
708
744
  select: "select";
@@ -838,14 +874,7 @@ export declare const FormTemplateCatalogResponseSchema: z.ZodObject<{
838
874
  }>;
839
875
  categories: z.ZodArray<z.ZodObject<{
840
876
  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
- }>;
877
+ slug: z.ZodString;
849
878
  name: z.ZodObject<{
850
879
  english: z.ZodString;
851
880
  translations: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
@@ -904,14 +933,7 @@ export declare const FormTemplateCatalogResponseSchema: z.ZodObject<{
904
933
  schema_version: z.ZodLiteral<1>;
905
934
  slug: z.ZodString;
906
935
  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
- }>;
936
+ category: z.ZodString;
915
937
  copy: z.ZodObject<{
916
938
  title: z.ZodObject<{
917
939
  english: z.ZodString;
@@ -1186,6 +1208,7 @@ export declare const FormTemplateCatalogResponseSchema: z.ZodObject<{
1186
1208
  number: "number";
1187
1209
  boolean: "boolean";
1188
1210
  date: "date";
1211
+ file: "file";
1189
1212
  text: "text";
1190
1213
  email: "email";
1191
1214
  select: "select";
@@ -1315,7 +1338,7 @@ export declare const FormTemplateCatalogResponseSchema: z.ZodObject<{
1315
1338
  }, z.core.$strict>;
1316
1339
  export type FormTemplateCatalogResponse = z.infer<typeof FormTemplateCatalogResponseSchema>;
1317
1340
  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"];
1341
+ export declare const CMS_FORM_FIELD_TYPES: readonly ["Text", "Summary", "Email", "Phone", "DropdownSelection", "RadioButton", "Checkbox", "Boolean", "Date", "Num", "MultipleFile", "SpecificFile"];
1319
1342
  export type CmsFormFieldType = (typeof CMS_FORM_FIELD_TYPES)[number];
1320
1343
  export declare const FORM_SPEC_FIELD_TYPE_TO_CMS: {
1321
1344
  readonly text: "Text";
@@ -1328,6 +1351,7 @@ export declare const FORM_SPEC_FIELD_TYPE_TO_CMS: {
1328
1351
  readonly boolean: "Boolean";
1329
1352
  readonly date: "Date";
1330
1353
  readonly number: "Num";
1354
+ readonly file: "MultipleFile";
1331
1355
  };
1332
1356
  export declare const CmsFormSchemaProjectionSchema: z.ZodObject<{
1333
1357
  version: z.ZodLiteral<1>;
@@ -1426,16 +1450,18 @@ export declare const CmsFormSchemaProjectionSchema: z.ZodObject<{
1426
1450
  fields: z.ZodArray<z.ZodObject<{
1427
1451
  field_name: z.ZodString;
1428
1452
  field_type: z.ZodEnum<{
1453
+ DropdownSelection: "DropdownSelection";
1454
+ RadioButton: "RadioButton";
1455
+ Checkbox: "Checkbox";
1429
1456
  Text: "Text";
1430
1457
  Summary: "Summary";
1431
1458
  Email: "Email";
1432
1459
  Phone: "Phone";
1433
- DropdownSelection: "DropdownSelection";
1434
- RadioButton: "RadioButton";
1435
- Checkbox: "Checkbox";
1436
1460
  Boolean: "Boolean";
1437
1461
  Date: "Date";
1438
1462
  Num: "Num";
1463
+ MultipleFile: "MultipleFile";
1464
+ SpecificFile: "SpecificFile";
1439
1465
  }>;
1440
1466
  field_label: z.ZodString;
1441
1467
  is_required: z.ZodBoolean;
@@ -1451,7 +1477,12 @@ export declare function projectFormSpecToCmsSchema(spec: FormSpecV1): CmsFormSch
1451
1477
  export declare const FormDesignHashSchema: z.ZodString;
1452
1478
  export type FormDesignHash = z.infer<typeof FormDesignHashSchema>;
1453
1479
  export declare const FormDesignAffectedFilesSchema: z.ZodArray<z.ZodObject<{
1454
- path: z.ZodString;
1480
+ path: z.ZodUnion<readonly [z.ZodString, z.ZodEnum<{
1481
+ "app/api/forms/[code]/route.ts": "app/api/forms/[code]/route.ts";
1482
+ "hooks/use-cms-form-submit.ts": "hooks/use-cms-form-submit.ts";
1483
+ "lib/cms/forms.ts": "lib/cms/forms.ts";
1484
+ "lib/cms/client.ts": "lib/cms/client.ts";
1485
+ }>]>;
1455
1486
  content_hash: z.ZodNullable<z.ZodString>;
1456
1487
  }, z.core.$strict>>;
1457
1488
  export type FormDesignAffectedFiles = z.infer<typeof FormDesignAffectedFilesSchema>;
@@ -1654,6 +1685,7 @@ export declare const FormDesignOpenResponseSchema: z.ZodObject<{
1654
1685
  number: "number";
1655
1686
  boolean: "boolean";
1656
1687
  date: "date";
1688
+ file: "file";
1657
1689
  text: "text";
1658
1690
  email: "email";
1659
1691
  select: "select";
@@ -1672,6 +1704,7 @@ export declare const FormDesignOpenResponseSchema: z.ZodObject<{
1672
1704
  value: z.ZodString;
1673
1705
  label: z.ZodString;
1674
1706
  }, z.core.$strict>>;
1707
+ max_files: z.ZodOptional<z.ZodNumber>;
1675
1708
  }, z.core.$strict>, z.ZodObject<{
1676
1709
  kind: z.ZodLiteral<"step-break">;
1677
1710
  step_id: z.ZodString;
@@ -1690,6 +1723,7 @@ export declare const FormDesignOpenResponseSchema: z.ZodObject<{
1690
1723
  number: "number";
1691
1724
  boolean: "boolean";
1692
1725
  date: "date";
1726
+ file: "file";
1693
1727
  text: "text";
1694
1728
  email: "email";
1695
1729
  select: "select";
@@ -1881,6 +1915,7 @@ export declare const FormDesignSaveRequestSchema: z.ZodObject<{
1881
1915
  number: "number";
1882
1916
  boolean: "boolean";
1883
1917
  date: "date";
1918
+ file: "file";
1884
1919
  text: "text";
1885
1920
  email: "email";
1886
1921
  select: "select";
@@ -1899,6 +1934,7 @@ export declare const FormDesignSaveRequestSchema: z.ZodObject<{
1899
1934
  value: z.ZodString;
1900
1935
  label: z.ZodString;
1901
1936
  }, z.core.$strict>>;
1937
+ max_files: z.ZodOptional<z.ZodNumber>;
1902
1938
  }, z.core.$strict>, z.ZodObject<{
1903
1939
  kind: z.ZodLiteral<"step-break">;
1904
1940
  step_id: z.ZodString;
@@ -1917,6 +1953,7 @@ export declare const FormDesignSaveRequestSchema: z.ZodObject<{
1917
1953
  number: "number";
1918
1954
  boolean: "boolean";
1919
1955
  date: "date";
1956
+ file: "file";
1920
1957
  text: "text";
1921
1958
  email: "email";
1922
1959
  select: "select";
@@ -1990,10 +2027,10 @@ export type FormDesignOperationStage = z.infer<typeof FormDesignOperationStageSc
1990
2027
  export declare const FORM_DESIGN_OPERATION_STATUSES: readonly ["pending", "running", "succeeded", "failed", "recovery_required"];
1991
2028
  export declare const FormDesignOperationStatusSchema: z.ZodEnum<{
1992
2029
  failed: "failed";
2030
+ succeeded: "succeeded";
1993
2031
  pending: "pending";
1994
- recovery_required: "recovery_required";
1995
2032
  running: "running";
1996
- succeeded: "succeeded";
2033
+ recovery_required: "recovery_required";
1997
2034
  }>;
1998
2035
  export type FormDesignOperationStatus = z.infer<typeof FormDesignOperationStatusSchema>;
1999
2036
  export declare const FORM_DESIGN_FAILURE_STAGES: readonly ["candidate_abandon", "snapshot_reconcile", "cms_restore"];
@@ -2033,8 +2070,8 @@ export declare const FormDesignOperationNextActionSchema: z.ZodEnum<{
2033
2070
  }>;
2034
2071
  export declare const FormDesignPreviewRefreshStatusSchema: z.ZodEnum<{
2035
2072
  failed: "failed";
2036
- pending: "pending";
2037
2073
  succeeded: "succeeded";
2074
+ pending: "pending";
2038
2075
  not_started: "not_started";
2039
2076
  }>;
2040
2077
  export declare const FormDesignOperationSchema: z.ZodObject<{
@@ -2056,10 +2093,10 @@ export declare const FormDesignOperationSchema: z.ZodObject<{
2056
2093
  }>;
2057
2094
  status: z.ZodEnum<{
2058
2095
  failed: "failed";
2096
+ succeeded: "succeeded";
2059
2097
  pending: "pending";
2060
- recovery_required: "recovery_required";
2061
2098
  running: "running";
2062
- succeeded: "succeeded";
2099
+ recovery_required: "recovery_required";
2063
2100
  }>;
2064
2101
  base_snapshot_id: z.ZodUUID;
2065
2102
  candidate_snapshot_id: z.ZodNullable<z.ZodUUID>;
@@ -2105,8 +2142,8 @@ export declare const FormDesignOperationSchema: z.ZodObject<{
2105
2142
  }>;
2106
2143
  preview_refresh_status: z.ZodEnum<{
2107
2144
  failed: "failed";
2108
- pending: "pending";
2109
2145
  succeeded: "succeeded";
2146
+ pending: "pending";
2110
2147
  not_started: "not_started";
2111
2148
  }>;
2112
2149
  created_at: z.ZodString;
@@ -2133,10 +2170,10 @@ export declare const FormDesignOperationResponseSchema: z.ZodObject<{
2133
2170
  }>;
2134
2171
  status: z.ZodEnum<{
2135
2172
  failed: "failed";
2173
+ succeeded: "succeeded";
2136
2174
  pending: "pending";
2137
- recovery_required: "recovery_required";
2138
2175
  running: "running";
2139
- succeeded: "succeeded";
2176
+ recovery_required: "recovery_required";
2140
2177
  }>;
2141
2178
  base_snapshot_id: z.ZodUUID;
2142
2179
  candidate_snapshot_id: z.ZodNullable<z.ZodUUID>;
@@ -2182,8 +2219,8 @@ export declare const FormDesignOperationResponseSchema: z.ZodObject<{
2182
2219
  }>;
2183
2220
  preview_refresh_status: z.ZodEnum<{
2184
2221
  failed: "failed";
2185
- pending: "pending";
2186
2222
  succeeded: "succeeded";
2223
+ pending: "pending";
2187
2224
  not_started: "not_started";
2188
2225
  }>;
2189
2226
  created_at: z.ZodString;
@@ -2211,10 +2248,10 @@ export declare const FormDesignSaveResponseSchema: z.ZodObject<{
2211
2248
  }>;
2212
2249
  status: z.ZodEnum<{
2213
2250
  failed: "failed";
2251
+ succeeded: "succeeded";
2214
2252
  pending: "pending";
2215
- recovery_required: "recovery_required";
2216
2253
  running: "running";
2217
- succeeded: "succeeded";
2254
+ recovery_required: "recovery_required";
2218
2255
  }>;
2219
2256
  base_snapshot_id: z.ZodUUID;
2220
2257
  candidate_snapshot_id: z.ZodNullable<z.ZodUUID>;
@@ -2260,8 +2297,8 @@ export declare const FormDesignSaveResponseSchema: z.ZodObject<{
2260
2297
  }>;
2261
2298
  preview_refresh_status: z.ZodEnum<{
2262
2299
  failed: "failed";
2263
- pending: "pending";
2264
2300
  succeeded: "succeeded";
2301
+ pending: "pending";
2265
2302
  not_started: "not_started";
2266
2303
  }>;
2267
2304
  created_at: z.ZodString;
@@ -2288,10 +2325,10 @@ export declare const FormDesignQueryResponseSchema: z.ZodObject<{
2288
2325
  }>;
2289
2326
  status: z.ZodEnum<{
2290
2327
  failed: "failed";
2328
+ succeeded: "succeeded";
2291
2329
  pending: "pending";
2292
- recovery_required: "recovery_required";
2293
2330
  running: "running";
2294
- succeeded: "succeeded";
2331
+ recovery_required: "recovery_required";
2295
2332
  }>;
2296
2333
  base_snapshot_id: z.ZodUUID;
2297
2334
  candidate_snapshot_id: z.ZodNullable<z.ZodUUID>;
@@ -2337,8 +2374,8 @@ export declare const FormDesignQueryResponseSchema: z.ZodObject<{
2337
2374
  }>;
2338
2375
  preview_refresh_status: z.ZodEnum<{
2339
2376
  failed: "failed";
2340
- pending: "pending";
2341
2377
  succeeded: "succeeded";
2378
+ pending: "pending";
2342
2379
  not_started: "not_started";
2343
2380
  }>;
2344
2381
  created_at: z.ZodString;
@@ -2371,10 +2408,10 @@ export declare const FormDesignResumeResponseSchema: z.ZodObject<{
2371
2408
  }>;
2372
2409
  status: z.ZodEnum<{
2373
2410
  failed: "failed";
2411
+ succeeded: "succeeded";
2374
2412
  pending: "pending";
2375
- recovery_required: "recovery_required";
2376
2413
  running: "running";
2377
- succeeded: "succeeded";
2414
+ recovery_required: "recovery_required";
2378
2415
  }>;
2379
2416
  base_snapshot_id: z.ZodUUID;
2380
2417
  candidate_snapshot_id: z.ZodNullable<z.ZodUUID>;
@@ -2420,8 +2457,8 @@ export declare const FormDesignResumeResponseSchema: z.ZodObject<{
2420
2457
  }>;
2421
2458
  preview_refresh_status: z.ZodEnum<{
2422
2459
  failed: "failed";
2423
- pending: "pending";
2424
2460
  succeeded: "succeeded";
2461
+ pending: "pending";
2425
2462
  not_started: "not_started";
2426
2463
  }>;
2427
2464
  created_at: z.ZodString;
@@ -2450,10 +2487,10 @@ export declare const FormDesignOperationRecordSchema: z.ZodObject<{
2450
2487
  }>;
2451
2488
  status: z.ZodEnum<{
2452
2489
  failed: "failed";
2490
+ succeeded: "succeeded";
2453
2491
  pending: "pending";
2454
- recovery_required: "recovery_required";
2455
2492
  running: "running";
2456
- succeeded: "succeeded";
2493
+ recovery_required: "recovery_required";
2457
2494
  }>;
2458
2495
  base_snapshot_id: z.ZodUUID;
2459
2496
  candidate_snapshot_id: z.ZodNullable<z.ZodUUID>;
@@ -2499,8 +2536,8 @@ export declare const FormDesignOperationRecordSchema: z.ZodObject<{
2499
2536
  }>;
2500
2537
  preview_refresh_status: z.ZodEnum<{
2501
2538
  failed: "failed";
2502
- pending: "pending";
2503
2539
  succeeded: "succeeded";
2540
+ pending: "pending";
2504
2541
  not_started: "not_started";
2505
2542
  }>;
2506
2543
  created_at: z.ZodString;
@@ -2643,6 +2680,7 @@ export declare const FormDesignOperationRecordSchema: z.ZodObject<{
2643
2680
  number: "number";
2644
2681
  boolean: "boolean";
2645
2682
  date: "date";
2683
+ file: "file";
2646
2684
  text: "text";
2647
2685
  email: "email";
2648
2686
  select: "select";
@@ -2661,6 +2699,7 @@ export declare const FormDesignOperationRecordSchema: z.ZodObject<{
2661
2699
  value: z.ZodString;
2662
2700
  label: z.ZodString;
2663
2701
  }, z.core.$strict>>;
2702
+ max_files: z.ZodOptional<z.ZodNumber>;
2664
2703
  }, z.core.$strict>, z.ZodObject<{
2665
2704
  kind: z.ZodLiteral<"step-break">;
2666
2705
  step_id: z.ZodString;
@@ -2679,6 +2718,7 @@ export declare const FormDesignOperationRecordSchema: z.ZodObject<{
2679
2718
  number: "number";
2680
2719
  boolean: "boolean";
2681
2720
  date: "date";
2721
+ file: "file";
2682
2722
  text: "text";
2683
2723
  email: "email";
2684
2724
  select: "select";
@@ -2754,10 +2794,10 @@ export declare const FormDesignOperationTransitionRequestSchema: z.ZodObject<{
2754
2794
  }>>;
2755
2795
  status: z.ZodOptional<z.ZodEnum<{
2756
2796
  failed: "failed";
2797
+ succeeded: "succeeded";
2757
2798
  pending: "pending";
2758
- recovery_required: "recovery_required";
2759
2799
  running: "running";
2760
- succeeded: "succeeded";
2800
+ recovery_required: "recovery_required";
2761
2801
  }>>;
2762
2802
  candidate_snapshot_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
2763
2803
  before_form_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2798,8 +2838,8 @@ export declare const FormDesignOperationTransitionRequestSchema: z.ZodObject<{
2798
2838
  }>>;
2799
2839
  preview_refresh_status: z.ZodOptional<z.ZodEnum<{
2800
2840
  failed: "failed";
2801
- pending: "pending";
2802
2841
  succeeded: "succeeded";
2842
+ pending: "pending";
2803
2843
  not_started: "not_started";
2804
2844
  }>>;
2805
2845
  }, z.core.$strict>;