@pushwoosh/rpc-gateway-ai-assistant 0.1.195 → 0.1.197

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/data.js CHANGED
@@ -529,6 +529,84 @@ export const data = {
529
529
  }
530
530
  }
531
531
  },
532
+ "pushwoosh.aibuilder.v1.RawHtml": {
533
+ "type": "I",
534
+ "fields": {
535
+ "html": {
536
+ "type": "string"
537
+ },
538
+ "translations": {
539
+ "type": "string",
540
+ "mapKeyType": "string"
541
+ }
542
+ }
543
+ },
544
+ "pushwoosh.aibuilder.v1.MenuItem": {
545
+ "type": "I",
546
+ "fields": {
547
+ "text": {
548
+ "type": "string"
549
+ },
550
+ "url": {
551
+ "type": "string"
552
+ },
553
+ "target": {
554
+ "type": "string"
555
+ },
556
+ "translations": {
557
+ "type": "string",
558
+ "mapKeyType": "string"
559
+ }
560
+ }
561
+ },
562
+ "pushwoosh.aibuilder.v1.MenuLayout": {
563
+ "type": "E",
564
+ "values": [
565
+ "MENU_LAYOUT_UNSPECIFIED",
566
+ "MENU_LAYOUT_HORIZONTAL",
567
+ "MENU_LAYOUT_VERTICAL"
568
+ ]
569
+ },
570
+ "pushwoosh.aibuilder.v1.Menu": {
571
+ "type": "I",
572
+ "fields": {
573
+ "items": {
574
+ "type": "pushwoosh.aibuilder.v1.MenuItem",
575
+ "array": true
576
+ },
577
+ "linkColor": {
578
+ "type": "string"
579
+ },
580
+ "textColor": {
581
+ "type": "string"
582
+ },
583
+ "fontFamily": {
584
+ "type": "string"
585
+ },
586
+ "fontWeight": {
587
+ "type": "number"
588
+ },
589
+ "fontSize": {
590
+ "type": "number"
591
+ },
592
+ "letterSpacing": {
593
+ "type": "number"
594
+ },
595
+ "layout": {
596
+ "type": "pushwoosh.aibuilder.v1.MenuLayout"
597
+ },
598
+ "align": {
599
+ "type": "pushwoosh.aibuilder.v1.TextAlign"
600
+ },
601
+ "separator": {
602
+ "type": "string"
603
+ },
604
+ "itemPadding": {
605
+ "type": "pushwoosh.aibuilder.v1.EdgeInsets",
606
+ "optional": true
607
+ }
608
+ }
609
+ },
532
610
  "pushwoosh.aibuilder.v1.ContentItem": {
533
611
  "type": "I",
534
612
  "fields": {
@@ -550,6 +628,12 @@ export const data = {
550
628
  "timer": {
551
629
  "type": "pushwoosh.aibuilder.v1.Timer"
552
630
  },
631
+ "rawHtml": {
632
+ "type": "pushwoosh.aibuilder.v1.RawHtml"
633
+ },
634
+ "menu": {
635
+ "type": "pushwoosh.aibuilder.v1.Menu"
636
+ },
553
637
  "padding": {
554
638
  "type": "pushwoosh.aibuilder.v1.EdgeInsets",
555
639
  "optional": true
@@ -563,7 +647,9 @@ export const data = {
563
647
  "list",
564
648
  "image",
565
649
  "form",
566
- "timer"
650
+ "timer",
651
+ "rawHtml",
652
+ "menu"
567
653
  ]
568
654
  }
569
655
  }
@@ -614,6 +700,12 @@ export const data = {
614
700
  },
615
701
  "align": {
616
702
  "type": "pushwoosh.aibuilder.v1.TextAlign"
703
+ },
704
+ "href": {
705
+ "type": "string"
706
+ },
707
+ "target": {
708
+ "type": "string"
617
709
  }
618
710
  }
619
711
  },
@@ -921,6 +1013,10 @@ export const data = {
921
1013
  "preheaderTranslations": {
922
1014
  "type": "string",
923
1015
  "mapKeyType": "string"
1016
+ },
1017
+ "showUnsubscribe": {
1018
+ "type": "boolean",
1019
+ "optional": true
924
1020
  }
925
1021
  }
926
1022
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-ai-assistant",
3
- "version": "0.1.195",
3
+ "version": "0.1.197",
4
4
  "description": "AI Assistant api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -462,6 +462,48 @@ export type Timer = {
462
462
  digitFontFamily: string;
463
463
  labelFontFamily: string;
464
464
  };
465
+ /**
466
+ * An Unlayer HTML widget. The markup is deliberately kept verbatim: unlike
467
+ * TextBlock.text this is a complete, user-authored HTML fragment and flattening
468
+ * or sanitising it would change the email. The editor previews it in a sandbox;
469
+ * the final email renderer emits it as-is.
470
+ */
471
+ export type RawHtml = {
472
+ html: string;
473
+ /**
474
+ * Per-language overrides of `html`; same client-managed contract as
475
+ * TextBlock.translations.
476
+ */
477
+ translations: Record<string, string>;
478
+ };
479
+ export type MenuItem = {
480
+ text: string;
481
+ url: string;
482
+ /** Unlayer stores browser targets as "_self" / "_blank". */
483
+ target: string;
484
+ translations: Record<string, string>;
485
+ };
486
+ export type MenuLayout =
487
+ /** renders as HORIZONTAL */
488
+ 'MENU_LAYOUT_UNSPECIFIED' | 'MENU_LAYOUT_HORIZONTAL' | 'MENU_LAYOUT_VERTICAL';
489
+ /**
490
+ * Unlayer's stock Menu widget. These are the presentation fields exported by
491
+ * Unlayer itself; keeping them together avoids approximating a menu as a text
492
+ * run and preserves each link as a distinct editable item.
493
+ */
494
+ export type Menu = {
495
+ items: MenuItem[];
496
+ linkColor: string;
497
+ textColor: string;
498
+ fontFamily: string;
499
+ fontWeight: number;
500
+ fontSize: number;
501
+ letterSpacing: number;
502
+ layout: MenuLayout;
503
+ align: TextAlign;
504
+ separator: string;
505
+ itemPadding?: EdgeInsets;
506
+ };
465
507
  export type ContentItem_item_text = {
466
508
  type: 'text';
467
509
  data: TextBlock;
@@ -486,7 +528,15 @@ export type ContentItem_item_timer = {
486
528
  type: 'timer';
487
529
  data: Timer;
488
530
  };
489
- export type ContentItem_item = ContentItem_item_text | ContentItem_item_buttonGroup | ContentItem_item_list | ContentItem_item_image | ContentItem_item_form | ContentItem_item_timer;
531
+ export type ContentItem_item_rawHtml = {
532
+ type: 'rawHtml';
533
+ data: RawHtml;
534
+ };
535
+ export type ContentItem_item_menu = {
536
+ type: 'menu';
537
+ data: Menu;
538
+ };
539
+ export type ContentItem_item = ContentItem_item_text | ContentItem_item_buttonGroup | ContentItem_item_list | ContentItem_item_image | ContentItem_item_form | ContentItem_item_timer | ContentItem_item_rawHtml | ContentItem_item_menu;
490
540
  export type ContentItem = {
491
541
  /**
492
542
  * Container padding of the item. Unset = client's default inter-item gap;
@@ -521,6 +571,12 @@ export type Image = {
521
571
  * UNSPECIFIED renders as center (Unlayer's image default).
522
572
  */
523
573
  align: TextAlign;
574
+ /**
575
+ * Optional click-through carried by Unlayer image widgets. Empty href =
576
+ * not clickable. Target is normalised to "_self" or "_blank".
577
+ */
578
+ href: string;
579
+ target: string;
524
580
  };
525
581
  export type AiBuilderCard = {
526
582
  layout: CardLayout;
@@ -762,6 +818,11 @@ export type EmailSettings = {
762
818
  */
763
819
  subjectTranslations: Record<string, string>;
764
820
  preheaderTranslations: Record<string, string>;
821
+ /**
822
+ * Managed unsubscribe link in the document footer. It is rendered only for
823
+ * marketing email. Optional so absent keeps the client default (on).
824
+ */
825
+ showUnsubscribe?: boolean;
765
826
  };
766
827
  /**
767
828
  * PopupAnimation chooses how a web-popup enters / exits the