@helpai/elements 0.13.0 → 0.14.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.
package/package.json CHANGED
@@ -80,5 +80,5 @@
80
80
  ],
81
81
  "type": "module",
82
82
  "types": "./index.d.ts",
83
- "version": "0.13.0"
83
+ "version": "0.14.0"
84
84
  }
package/schema.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { A as Asset, B as BlocksConfig, C as ConnectionConfig, a as ConnectionConfigPartial, E as Endpoints, L as Link, P as PAGE_AREA_SUGGESTIONS, g as PageContext, S as ServerConfig, b as SiteConfig, c as StartSessionResponse, U as UserContext, W as WidgetConfig, d as WidgetConfigPartial, e as WidgetSettings, f as WidgetSettingsPartial, h as assetSchema, i as blocksConfigSchema, j as connectionConfigPartialSchema, k as connectionConfigSchema, l as cssColorSchema, m as cssLengthSchema, n as endpointsSchema, o as linkSchema, p as localeSchema, q as pageContextSchema, s as serverConfigSchema, r as siteConfigSchema, t as startSessionResponseSchema, u as userContextSchema, v as uuid7Schema, w as widgetConfigPartialSchema, x as widgetConfigSchema, y as widgetSettingsPartialSchema, z as widgetSettingsSchema } from './deployment-BJD1aESw.js';
1
+ export { A as Asset, B as BlocksConfig, C as ConnectionConfig, a as ConnectionConfigPartial, E as Endpoints, L as Link, P as PAGE_AREA_SUGGESTIONS, g as PageContext, S as ServerConfig, b as SiteConfig, c as StartSessionResponse, U as UserContext, W as WidgetConfig, d as WidgetConfigPartial, e as WidgetSettings, f as WidgetSettingsPartial, h as assetSchema, i as blocksConfigSchema, j as connectionConfigPartialSchema, k as connectionConfigSchema, l as cssColorSchema, m as cssLengthSchema, n as endpointsSchema, o as linkSchema, p as localeSchema, q as pageContextSchema, s as serverConfigSchema, r as siteConfigSchema, t as startSessionResponseSchema, u as userContextSchema, v as uuid7Schema, w as widgetConfigPartialSchema, x as widgetConfigSchema, y as widgetSettingsPartialSchema, z as widgetSettingsSchema } from './deployment-Rtrqo8-b.js';
2
2
  import { z } from 'zod';
3
3
 
4
4
  /**
@@ -56,9 +56,9 @@ declare const presentationSchema: z.ZodObject<{
56
56
  inset: z.ZodOptional<z.ZodString>;
57
57
  initialSize: z.ZodDefault<z.ZodEnum<{
58
58
  fullscreen: "fullscreen";
59
- normal: "normal";
60
59
  expanded: "expanded";
61
60
  auto: "auto";
61
+ normal: "normal";
62
62
  }>>;
63
63
  autoSizeBreakpoint: z.ZodDefault<z.ZodNumber>;
64
64
  }, z.core.$loose>>;
@@ -148,9 +148,9 @@ declare const launcherSizeSchema: z.ZodEnum<{
148
148
  }>;
149
149
  type LauncherSize = z.infer<typeof launcherSizeSchema>;
150
150
  declare const calloutShapeSchema: z.ZodEnum<{
151
+ callout: "callout";
151
152
  pill: "pill";
152
153
  bubble: "bubble";
153
- callout: "callout";
154
154
  }>;
155
155
  type CalloutShape = z.infer<typeof calloutShapeSchema>;
156
156
  declare const calloutPositionSchema: z.ZodEnum<{
@@ -162,9 +162,9 @@ type CalloutPosition = z.infer<typeof calloutPositionSchema>;
162
162
  declare const launcherCalloutSchema: z.ZodObject<{
163
163
  text: z.ZodDefault<z.ZodString>;
164
164
  shape: z.ZodDefault<z.ZodEnum<{
165
+ callout: "callout";
165
166
  pill: "pill";
166
167
  bubble: "bubble";
167
- callout: "callout";
168
168
  }>>;
169
169
  position: z.ZodDefault<z.ZodEnum<{
170
170
  auto: "auto";
@@ -195,9 +195,9 @@ declare const launcherOptionsSchema: z.ZodObject<{
195
195
  callout: z.ZodOptional<z.ZodObject<{
196
196
  text: z.ZodDefault<z.ZodString>;
197
197
  shape: z.ZodDefault<z.ZodEnum<{
198
+ callout: "callout";
198
199
  pill: "pill";
199
200
  bubble: "bubble";
200
- callout: "callout";
201
201
  }>>;
202
202
  position: z.ZodDefault<z.ZodEnum<{
203
203
  auto: "auto";
@@ -240,9 +240,9 @@ type LauncherOptions = z.infer<typeof launcherOptionsSchema>;
240
240
 
241
241
  declare const initialSizeSchema: z.ZodEnum<{
242
242
  fullscreen: "fullscreen";
243
- normal: "normal";
244
243
  expanded: "expanded";
245
244
  auto: "auto";
245
+ normal: "normal";
246
246
  }>;
247
247
  declare const resizeOptionsSchema: z.ZodObject<{
248
248
  enabled: z.ZodDefault<z.ZodBoolean>;
@@ -269,9 +269,9 @@ declare const sizeOptionsSchema: z.ZodObject<{
269
269
  inset: z.ZodOptional<z.ZodString>;
270
270
  initialSize: z.ZodDefault<z.ZodEnum<{
271
271
  fullscreen: "fullscreen";
272
- normal: "normal";
273
272
  expanded: "expanded";
274
273
  auto: "auto";
274
+ normal: "normal";
275
275
  }>>;
276
276
  autoSizeBreakpoint: z.ZodDefault<z.ZodNumber>;
277
277
  }, z.core.$loose>;
@@ -323,40 +323,40 @@ type FeatureFlags = z.infer<typeof featureFlagsSchema>;
323
323
  */
324
324
 
325
325
  declare const actionNameSchema: z.ZodEnum<{
326
+ close: "close";
326
327
  expand: "expand";
327
328
  fullscreen: "fullscreen";
328
329
  popOut: "popOut";
329
- close: "close";
330
- language: "language";
330
+ clear: "clear";
331
331
  theme: "theme";
332
+ language: "language";
332
333
  history: "history";
333
- clear: "clear";
334
334
  sound: "sound";
335
335
  }>;
336
336
  type ActionName = z.infer<typeof actionNameSchema>;
337
337
  declare const headerActionsSchema: z.ZodArray<z.ZodEnum<{
338
+ close: "close";
338
339
  expand: "expand";
339
340
  fullscreen: "fullscreen";
340
341
  popOut: "popOut";
341
- close: "close";
342
- language: "language";
342
+ clear: "clear";
343
343
  theme: "theme";
344
+ language: "language";
344
345
  history: "history";
345
- clear: "clear";
346
346
  sound: "sound";
347
347
  }>>;
348
348
  type HeaderActions = z.infer<typeof headerActionsSchema>;
349
349
  /** Section wrapper — `actions` list wrapped under `header` in the dashboard form. */
350
350
  declare const headerSchema: z.ZodObject<{
351
351
  actions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
352
+ close: "close";
352
353
  expand: "expand";
353
354
  fullscreen: "fullscreen";
354
355
  popOut: "popOut";
355
- close: "close";
356
- language: "language";
356
+ clear: "clear";
357
357
  theme: "theme";
358
+ language: "language";
358
359
  history: "history";
359
- clear: "clear";
360
360
  sound: "sound";
361
361
  }>>>;
362
362
  }, z.core.$loose>;
@@ -372,33 +372,33 @@ type HeaderOptions = z.infer<typeof headerSchema>;
372
372
  */
373
373
 
374
374
  declare const feedbackEventSchema: z.ZodEnum<{
375
+ voiceStart: "voiceStart";
376
+ voiceStop: "voiceStop";
375
377
  error: "error";
376
378
  messageReceived: "messageReceived";
377
379
  messageSent: "messageSent";
378
- voiceStart: "voiceStart";
379
- voiceStop: "voiceStop";
380
380
  }>;
381
381
  type FeedbackEvent = z.infer<typeof feedbackEventSchema>;
382
382
  declare const soundOptionsSchema: z.ZodObject<{
383
383
  enabled: z.ZodDefault<z.ZodBoolean>;
384
384
  volume: z.ZodDefault<z.ZodNumber>;
385
385
  events: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
386
+ voiceStart: "voiceStart";
387
+ voiceStop: "voiceStop";
386
388
  error: "error";
387
389
  messageReceived: "messageReceived";
388
390
  messageSent: "messageSent";
389
- voiceStart: "voiceStart";
390
- voiceStop: "voiceStop";
391
391
  }> & z.core.$partial, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>>;
392
392
  }, z.core.$loose>;
393
393
  type SoundOptions = z.infer<typeof soundOptionsSchema>;
394
394
  declare const hapticsOptionsSchema: z.ZodObject<{
395
395
  enabled: z.ZodDefault<z.ZodBoolean>;
396
396
  events: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
397
+ voiceStart: "voiceStart";
398
+ voiceStop: "voiceStop";
397
399
  error: "error";
398
400
  messageReceived: "messageReceived";
399
401
  messageSent: "messageSent";
400
- voiceStart: "voiceStart";
401
- voiceStop: "voiceStop";
402
402
  }> & z.core.$partial, z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
403
403
  }, z.core.$loose>;
404
404
  type HapticsOptions = z.infer<typeof hapticsOptionsSchema>;
@@ -407,21 +407,21 @@ declare const feedbackSchema: z.ZodObject<{
407
407
  enabled: z.ZodDefault<z.ZodBoolean>;
408
408
  volume: z.ZodDefault<z.ZodNumber>;
409
409
  events: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
410
+ voiceStart: "voiceStart";
411
+ voiceStop: "voiceStop";
410
412
  error: "error";
411
413
  messageReceived: "messageReceived";
412
414
  messageSent: "messageSent";
413
- voiceStart: "voiceStart";
414
- voiceStop: "voiceStop";
415
415
  }> & z.core.$partial, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>>;
416
416
  }, z.core.$loose>>;
417
417
  haptics: z.ZodOptional<z.ZodObject<{
418
418
  enabled: z.ZodDefault<z.ZodBoolean>;
419
419
  events: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
420
+ voiceStart: "voiceStart";
421
+ voiceStop: "voiceStop";
420
422
  error: "error";
421
423
  messageReceived: "messageReceived";
422
424
  messageSent: "messageSent";
423
- voiceStart: "voiceStart";
424
- voiceStop: "voiceStop";
425
425
  }> & z.core.$partial, z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
426
426
  }, z.core.$loose>>;
427
427
  }, z.core.$loose>;
@@ -548,50 +548,30 @@ declare const footerSchema: z.ZodObject<{
548
548
  type FooterOptions = z.infer<typeof footerSchema>;
549
549
 
550
550
  /**
551
- * i18n section schemas locale resolution + per-instance string
552
- * overrides.
553
- *
554
- * The runtime layers three sources to pick the active locale (highest
555
- * wins): user picker → server-pushed → `locale` field → `defaultLocale`
556
- * (or `"auto"` → `navigator.language`). `availableLocales` controls the
557
- * runtime language switcher's option list.
558
- */
559
-
560
- declare const stringsOverrideSchema: z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodString>, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>]>;
561
- type StringsOverride = z.infer<typeof stringsOverrideSchema>;
562
- declare const i18nSchema: z.ZodObject<{
563
- locale: z.ZodOptional<z.ZodString>;
564
- defaultLocale: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodString]>>;
565
- availableLocales: z.ZodOptional<z.ZodArray<z.ZodString>>;
566
- strings: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodString>, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>]>>;
567
- }, z.core.$loose>;
568
- type I18nOptions = z.infer<typeof i18nSchema>;
569
-
570
- /**
571
- * Intake section — the pre-chat **lead/sales capture form**, modeled as a
572
- * deterministic array of typed fields with validation. When enabled it renders
573
- * as a **blocking gate**: the visitor completes (or skips, if `skippable`) the
574
- * form before the composer unlocks.
551
+ * Forms section — an **event-driven forms engine**. A deployment declares an
552
+ * ordered array of form definitions, each bound to trigger event(s), shown as a
553
+ * blocking composer gate or inline in the transcript, deduped by frequency, and
554
+ * recorded via one shared submit endpoint (`endpoints.forms`).
575
555
  *
576
- * The same {@link formFieldSchema} shape is reused at runtime by the AI-driven
577
- * **ask-input tool** (`src/ui/tool-ask-input.tsx`), so a sales/support/lead
578
- * agent can both capture a lead up-front and ask for more structured info
579
- * mid-conversation through one form engine.
580
- *
581
- * Off by default — existing deployments are unchanged. See
582
- * `docs/api/hitl-and-forms.md` for the wire contract + agent presets.
556
+ * Generic across verticals (healthcare, insurance, dealerships, clinics) the
557
+ * widget has NO industry logic; a clinic triage intake, an insurance claim form,
558
+ * a CSAT survey, and a sales lead capture are all just different `forms` config.
559
+ * The same field shape powers the AI ask-input tool. See
560
+ * `docs/api/hitl-and-forms.md` + `docs/features/forms-and-hitl.md`.
583
561
  */
584
562
 
585
563
  declare const fieldTypeSchema: z.ZodEnum<{
586
564
  number: "number";
565
+ select: "select";
566
+ textarea: "textarea";
567
+ time: "time";
587
568
  text: "text";
569
+ checkbox: "checkbox";
570
+ radio: "radio";
588
571
  url: "url";
589
572
  email: "email";
590
573
  tel: "tel";
591
- textarea: "textarea";
592
- select: "select";
593
- radio: "radio";
594
- checkbox: "checkbox";
574
+ date: "date";
595
575
  multiselect: "multiselect";
596
576
  }>;
597
577
  type FieldType = z.infer<typeof fieldTypeSchema>;
@@ -616,14 +596,16 @@ declare const formFieldSchema: z.ZodObject<{
616
596
  label: z.ZodString;
617
597
  type: z.ZodEnum<{
618
598
  number: "number";
599
+ select: "select";
600
+ textarea: "textarea";
601
+ time: "time";
619
602
  text: "text";
603
+ checkbox: "checkbox";
604
+ radio: "radio";
620
605
  url: "url";
621
606
  email: "email";
622
607
  tel: "tel";
623
- textarea: "textarea";
624
- select: "select";
625
- radio: "radio";
626
- checkbox: "checkbox";
608
+ date: "date";
627
609
  multiselect: "multiselect";
628
610
  }>;
629
611
  placeholder: z.ZodOptional<z.ZodString>;
@@ -647,23 +629,102 @@ declare const formFieldSchema: z.ZodObject<{
647
629
  validationHint: z.ZodOptional<z.ZodString>;
648
630
  }, z.core.$loose>;
649
631
  type FormField = z.infer<typeof formFieldSchema>;
650
- declare const intakeSchema: z.ZodObject<{
651
- enabled: z.ZodDefault<z.ZodBoolean>;
652
- title: z.ZodOptional<z.ZodString>;
653
- description: z.ZodOptional<z.ZodString>;
632
+ /**
633
+ * Trigger string: a bare event, or `event:param` for the parameterised ones.
634
+ * `pre-chat` · `after-messages:N` · `conversation-closed` · `panel-close` ·
635
+ * `idle:Nseconds` · `page-area:<area>` · `manual`.
636
+ */
637
+ declare const formTriggerSchema: z.ZodString;
638
+ declare const formConditionSchema: z.ZodObject<{
639
+ missingContext: z.ZodOptional<z.ZodArray<z.ZodString>>;
640
+ pageArea: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
641
+ minMessages: z.ZodOptional<z.ZodNumber>;
642
+ maxMessages: z.ZodOptional<z.ZodNumber>;
643
+ }, z.core.$loose>;
644
+ type FormCondition = z.infer<typeof formConditionSchema>;
645
+ declare const formDefSchema: z.ZodObject<{
646
+ id: z.ZodString;
647
+ on: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
648
+ when: z.ZodOptional<z.ZodObject<{
649
+ missingContext: z.ZodOptional<z.ZodArray<z.ZodString>>;
650
+ pageArea: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
651
+ minMessages: z.ZodOptional<z.ZodNumber>;
652
+ maxMessages: z.ZodOptional<z.ZodNumber>;
653
+ }, z.core.$loose>>;
654
654
  fields: z.ZodDefault<z.ZodArray<z.ZodObject<{
655
655
  name: z.ZodString;
656
656
  label: z.ZodString;
657
657
  type: z.ZodEnum<{
658
658
  number: "number";
659
+ select: "select";
660
+ textarea: "textarea";
661
+ time: "time";
659
662
  text: "text";
663
+ checkbox: "checkbox";
664
+ radio: "radio";
660
665
  url: "url";
661
666
  email: "email";
662
667
  tel: "tel";
663
- textarea: "textarea";
668
+ date: "date";
669
+ multiselect: "multiselect";
670
+ }>;
671
+ placeholder: z.ZodOptional<z.ZodString>;
672
+ required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
673
+ defaultValue: z.ZodOptional<z.ZodString>;
674
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
675
+ value: z.ZodString;
676
+ label: z.ZodOptional<z.ZodString>;
677
+ description: z.ZodOptional<z.ZodString>;
678
+ }, z.core.$loose>>>;
679
+ validation: z.ZodOptional<z.ZodObject<{
680
+ pattern: z.ZodOptional<z.ZodString>;
681
+ minLength: z.ZodOptional<z.ZodNumber>;
682
+ maxLength: z.ZodOptional<z.ZodNumber>;
683
+ min: z.ZodOptional<z.ZodNumber>;
684
+ max: z.ZodOptional<z.ZodNumber>;
685
+ minSelections: z.ZodOptional<z.ZodNumber>;
686
+ maxSelections: z.ZodOptional<z.ZodNumber>;
687
+ }, z.core.$loose>>;
688
+ allowOther: z.ZodOptional<z.ZodBoolean>;
689
+ validationHint: z.ZodOptional<z.ZodString>;
690
+ }, z.core.$loose>>>;
691
+ title: z.ZodOptional<z.ZodString>;
692
+ description: z.ZodOptional<z.ZodString>;
693
+ submitLabel: z.ZodOptional<z.ZodString>;
694
+ skippable: z.ZodDefault<z.ZodBoolean>;
695
+ blocking: z.ZodDefault<z.ZodBoolean>;
696
+ frequency: z.ZodDefault<z.ZodEnum<{
697
+ once: "once";
698
+ session: "session";
699
+ always: "always";
700
+ }>>;
701
+ mirrorToContext: z.ZodDefault<z.ZodBoolean>;
702
+ }, z.core.$loose>;
703
+ type FormDef = z.infer<typeof formDefSchema>;
704
+ declare const formsSchema: z.ZodArray<z.ZodObject<{
705
+ id: z.ZodString;
706
+ on: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
707
+ when: z.ZodOptional<z.ZodObject<{
708
+ missingContext: z.ZodOptional<z.ZodArray<z.ZodString>>;
709
+ pageArea: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
710
+ minMessages: z.ZodOptional<z.ZodNumber>;
711
+ maxMessages: z.ZodOptional<z.ZodNumber>;
712
+ }, z.core.$loose>>;
713
+ fields: z.ZodDefault<z.ZodArray<z.ZodObject<{
714
+ name: z.ZodString;
715
+ label: z.ZodString;
716
+ type: z.ZodEnum<{
717
+ number: "number";
664
718
  select: "select";
665
- radio: "radio";
719
+ textarea: "textarea";
720
+ time: "time";
721
+ text: "text";
666
722
  checkbox: "checkbox";
723
+ radio: "radio";
724
+ url: "url";
725
+ email: "email";
726
+ tel: "tel";
727
+ date: "date";
667
728
  multiselect: "multiselect";
668
729
  }>;
669
730
  placeholder: z.ZodOptional<z.ZodString>;
@@ -686,10 +747,39 @@ declare const intakeSchema: z.ZodObject<{
686
747
  allowOther: z.ZodOptional<z.ZodBoolean>;
687
748
  validationHint: z.ZodOptional<z.ZodString>;
688
749
  }, z.core.$loose>>>;
750
+ title: z.ZodOptional<z.ZodString>;
751
+ description: z.ZodOptional<z.ZodString>;
689
752
  submitLabel: z.ZodOptional<z.ZodString>;
690
753
  skippable: z.ZodDefault<z.ZodBoolean>;
754
+ blocking: z.ZodDefault<z.ZodBoolean>;
755
+ frequency: z.ZodDefault<z.ZodEnum<{
756
+ once: "once";
757
+ session: "session";
758
+ always: "always";
759
+ }>>;
760
+ mirrorToContext: z.ZodDefault<z.ZodBoolean>;
761
+ }, z.core.$loose>>;
762
+ type Forms = z.infer<typeof formsSchema>;
763
+
764
+ /**
765
+ * i18n section schemas — locale resolution + per-instance string
766
+ * overrides.
767
+ *
768
+ * The runtime layers three sources to pick the active locale (highest
769
+ * wins): user picker → server-pushed → `locale` field → `defaultLocale`
770
+ * (or `"auto"` → `navigator.language`). `availableLocales` controls the
771
+ * runtime language switcher's option list.
772
+ */
773
+
774
+ declare const stringsOverrideSchema: z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodString>, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>]>;
775
+ type StringsOverride = z.infer<typeof stringsOverrideSchema>;
776
+ declare const i18nSchema: z.ZodObject<{
777
+ locale: z.ZodOptional<z.ZodString>;
778
+ defaultLocale: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodString]>>;
779
+ availableLocales: z.ZodOptional<z.ZodArray<z.ZodString>>;
780
+ strings: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodString>, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>]>>;
691
781
  }, z.core.$loose>;
692
- type Intake = z.infer<typeof intakeSchema>;
782
+ type I18nOptions = z.infer<typeof i18nSchema>;
693
783
 
694
784
  /**
695
785
  * Modules section — the Intercom-style "messenger" surface, modeled as a
@@ -707,18 +797,18 @@ type Intake = z.infer<typeof intakeSchema>;
707
797
  */
708
798
 
709
799
  declare const moduleLayoutSchema: z.ZodEnum<{
800
+ home: "home";
710
801
  chat: "chat";
711
802
  help: "help";
712
- home: "home";
713
803
  news: "news";
714
804
  }>;
715
805
  type ModuleLayout = z.infer<typeof moduleLayoutSchema>;
716
806
  declare const moduleSchema: z.ZodObject<{
717
807
  label: z.ZodString;
718
808
  layout: z.ZodEnum<{
809
+ home: "home";
719
810
  chat: "chat";
720
811
  help: "help";
721
- home: "home";
722
812
  news: "news";
723
813
  }>;
724
814
  contentTags: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -744,9 +834,9 @@ type ModuleOptions = z.infer<typeof moduleSchema>;
744
834
  declare const modulesSchema: z.ZodArray<z.ZodObject<{
745
835
  label: z.ZodString;
746
836
  layout: z.ZodEnum<{
837
+ home: "home";
747
838
  chat: "chat";
748
839
  help: "help";
749
- home: "home";
750
840
  news: "news";
751
841
  }>;
752
842
  contentTags: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -811,4 +901,4 @@ declare const ALL_MODES: readonly Mode[];
811
901
  */
812
902
  declare function emitJsonSchema(): unknown;
813
903
 
814
- export { ALL_MODES, type ActionName, type AttachmentLimits, type Behavior, type CalloutPosition, type CalloutShape, type ComposerOptions, type FeatureFlags, type FeedbackEvent, type FeedbackOptions, type FieldOption, type FieldType, type FieldValidation, type FooterOptions, type FormField, type HapticsOptions, type HeaderActions, type HeaderOptions, type I18nOptions, type Intake, type LauncherCallout, type LauncherOptions, type LauncherSize, type LauncherVariant, type Mode, type ModuleLayout, type ModuleOptions, type ModulesOptions, type Position, type PoweredBy, type Presentation, type ResizeOptions, type ResponseMode, type SendButtonOptions, type SizeOptions, type SoundOptions, type StringsOverride, type ThemeOverrides, type ThemePreference, type VoiceMode, type WelcomeAnimation, type WelcomeOptions, actionNameSchema, attachmentLimitsSchema, behaviorSchema, calloutPositionSchema, calloutShapeSchema, composerOptionsSchema, emitJsonSchema, featureFlagsSchema, feedbackEventSchema, feedbackSchema, fieldOptionSchema, fieldTypeSchema, fieldValidationSchema, footerSchema, formFieldSchema, hapticsOptionsSchema, headerActionsSchema, headerSchema, i18nSchema, initialSizeSchema, intakeSchema, launcherCalloutSchema, launcherOptionsSchema, launcherSizeSchema, launcherVariantSchema, modeSchema, moduleLayoutSchema, moduleSchema, modulesSchema, positionSchema, poweredBySchema, presentationSchema, resizeOptionsSchema, responseModeSchema, sendButtonIconSchema, sendButtonOptionsSchema, sendButtonShapeSchema, sendButtonVariantSchema, sizeOptionsSchema, soundOptionsSchema, stringsOverrideSchema, themeFieldSchema, themeOverridesSchema, themePreferenceSchema, toolRefSchema, voiceModeSchema, welcomeAnimationSchema, welcomeOptionsSchema, widgetSettingsSchemaForMode };
904
+ export { ALL_MODES, type ActionName, type AttachmentLimits, type Behavior, type CalloutPosition, type CalloutShape, type ComposerOptions, type FeatureFlags, type FeedbackEvent, type FeedbackOptions, type FieldOption, type FieldType, type FieldValidation, type FooterOptions, type FormCondition, type FormDef, type FormField, type Forms, type HapticsOptions, type HeaderActions, type HeaderOptions, type I18nOptions, type LauncherCallout, type LauncherOptions, type LauncherSize, type LauncherVariant, type Mode, type ModuleLayout, type ModuleOptions, type ModulesOptions, type Position, type PoweredBy, type Presentation, type ResizeOptions, type ResponseMode, type SendButtonOptions, type SizeOptions, type SoundOptions, type StringsOverride, type ThemeOverrides, type ThemePreference, type VoiceMode, type WelcomeAnimation, type WelcomeOptions, actionNameSchema, attachmentLimitsSchema, behaviorSchema, calloutPositionSchema, calloutShapeSchema, composerOptionsSchema, emitJsonSchema, featureFlagsSchema, feedbackEventSchema, feedbackSchema, fieldOptionSchema, fieldTypeSchema, fieldValidationSchema, footerSchema, formConditionSchema, formDefSchema, formFieldSchema, formTriggerSchema, formsSchema, hapticsOptionsSchema, headerActionsSchema, headerSchema, i18nSchema, initialSizeSchema, launcherCalloutSchema, launcherOptionsSchema, launcherSizeSchema, launcherVariantSchema, modeSchema, moduleLayoutSchema, moduleSchema, modulesSchema, positionSchema, poweredBySchema, presentationSchema, resizeOptionsSchema, responseModeSchema, sendButtonIconSchema, sendButtonOptionsSchema, sendButtonShapeSchema, sendButtonVariantSchema, sizeOptionsSchema, soundOptionsSchema, stringsOverrideSchema, themeFieldSchema, themeOverridesSchema, themePreferenceSchema, toolRefSchema, voiceModeSchema, welcomeAnimationSchema, welcomeOptionsSchema, widgetSettingsSchemaForMode };