@pushwoosh/rpc-gateway-ai-assistant 0.1.237 → 0.1.238

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
@@ -716,6 +716,37 @@ export const data = {
716
716
  }
717
717
  }
718
718
  },
719
+ "pushwoosh.aibuilder.v1.Video": {
720
+ "type": "I",
721
+ "fields": {
722
+ "url": {
723
+ "type": "string"
724
+ },
725
+ "thumbnailUrl": {
726
+ "type": "string"
727
+ },
728
+ "alt": {
729
+ "type": "string"
730
+ },
731
+ "width": {
732
+ "type": "string"
733
+ },
734
+ "align": {
735
+ "type": "pushwoosh.aibuilder.v1.TextAlign"
736
+ },
737
+ "borderRadius": {
738
+ "type": "number",
739
+ "optional": true
740
+ },
741
+ "showPlayButton": {
742
+ "type": "boolean",
743
+ "optional": true
744
+ },
745
+ "mobileAlign": {
746
+ "type": "pushwoosh.aibuilder.v1.TextAlign"
747
+ }
748
+ }
749
+ },
719
750
  "pushwoosh.aibuilder.v1.SocialRow": {
720
751
  "type": "I",
721
752
  "fields": {
@@ -767,6 +798,9 @@ export const data = {
767
798
  "social": {
768
799
  "type": "pushwoosh.aibuilder.v1.SocialRow"
769
800
  },
801
+ "video": {
802
+ "type": "pushwoosh.aibuilder.v1.Video"
803
+ },
770
804
  "padding": {
771
805
  "type": "pushwoosh.aibuilder.v1.EdgeInsets",
772
806
  "optional": true
@@ -795,7 +829,8 @@ export const data = {
795
829
  "timer",
796
830
  "rawHtml",
797
831
  "menu",
798
- "social"
832
+ "social",
833
+ "video"
799
834
  ]
800
835
  }
801
836
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-ai-assistant",
3
- "version": "0.1.237",
3
+ "version": "0.1.238",
4
4
  "description": "AI Assistant api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -636,6 +636,39 @@ export type Menu = {
636
636
  mobileAlign: TextAlign;
637
637
  mobileLayout: MenuLayout;
638
638
  };
639
+ /**
640
+ * Video teaser in the content flow. Email clients can't embed players, so
641
+ * the HTML renders the poster (thumbnail + play-button overlay composited by
642
+ * this service's public /video/v1/poster.jpg endpoint) as an image linking to
643
+ * `url`. Client-managed for the MVP: the LLM neither sees nor generates
644
+ * videos; the editor derives the thumbnail from the video URL.
645
+ */
646
+ export type Video = {
647
+ /** Watch-page URL the poster links to (YouTube / Vimeo / any https link). */
648
+ url: string;
649
+ /**
650
+ * Poster source image URL. Derived by the editor for YouTube/Vimeo links,
651
+ * user-replaceable. Empty = nothing is rendered in the email.
652
+ */
653
+ thumbnailUrl: string;
654
+ alt: string;
655
+ /**
656
+ * Rendered width; the client Image.width idiom: "560px", or ""/"auto" =
657
+ * natural poster size (always capped to the content width).
658
+ */
659
+ width: string;
660
+ /** UNSPECIFIED renders center (matches the image widget default). */
661
+ align: TextAlign;
662
+ /** Corner rounding, px. Unset = inherit DefaultStyles.image; explicit 0 = square. */
663
+ borderRadius?: number;
664
+ /**
665
+ * Composite the play button onto the poster. Unset = on; false is the
666
+ * explicit opt-out (same idiom as DocumentSettings.show_shadow).
667
+ */
668
+ showPlayButton?: boolean;
669
+ /** Mobile alignment override. UNSPECIFIED = inherit `align`. */
670
+ mobileAlign: TextAlign;
671
+ };
639
672
  /**
640
673
  * Row of social-network icon links in the content flow (Unlayer's "social"
641
674
  * widget; same SocialLink shape as the footer row). Client-managed — the
@@ -688,7 +721,11 @@ export type ContentItem_item_social = {
688
721
  type: 'social';
689
722
  data: SocialRow;
690
723
  };
691
- 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 | ContentItem_item_social;
724
+ export type ContentItem_item_video = {
725
+ type: 'video';
726
+ data: Video;
727
+ };
728
+ 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 | ContentItem_item_social | ContentItem_item_video;
692
729
  export type ContentItem = {
693
730
  /**
694
731
  * Container padding of the item. Unset = client's default inter-item gap;