@pushwoosh/rpc-gateway-ai-assistant 0.1.236 → 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 +70 -1
- package/package.json +1 -1
- package/pushwoosh_aibuilder_v1.d.ts +61 -1
package/data.js
CHANGED
|
@@ -248,6 +248,15 @@ export const data = {
|
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
250
|
},
|
|
251
|
+
"pushwoosh.aibuilder.v1.ImageStyles": {
|
|
252
|
+
"type": "I",
|
|
253
|
+
"fields": {
|
|
254
|
+
"borderRadius": {
|
|
255
|
+
"type": "number",
|
|
256
|
+
"optional": true
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
},
|
|
251
260
|
"pushwoosh.aibuilder.v1.DefaultStyles": {
|
|
252
261
|
"type": "I",
|
|
253
262
|
"fields": {
|
|
@@ -268,6 +277,9 @@ export const data = {
|
|
|
268
277
|
},
|
|
269
278
|
"divider": {
|
|
270
279
|
"type": "pushwoosh.aibuilder.v1.Divider"
|
|
280
|
+
},
|
|
281
|
+
"image": {
|
|
282
|
+
"type": "pushwoosh.aibuilder.v1.ImageStyles"
|
|
271
283
|
}
|
|
272
284
|
}
|
|
273
285
|
},
|
|
@@ -349,6 +361,9 @@ export const data = {
|
|
|
349
361
|
"mobileFontSize": {
|
|
350
362
|
"type": "number",
|
|
351
363
|
"optional": true
|
|
364
|
+
},
|
|
365
|
+
"mobileAlign": {
|
|
366
|
+
"type": "pushwoosh.aibuilder.v1.TextAlign"
|
|
352
367
|
}
|
|
353
368
|
}
|
|
354
369
|
},
|
|
@@ -692,6 +707,43 @@ export const data = {
|
|
|
692
707
|
"itemPadding": {
|
|
693
708
|
"type": "pushwoosh.aibuilder.v1.EdgeInsets",
|
|
694
709
|
"optional": true
|
|
710
|
+
},
|
|
711
|
+
"mobileAlign": {
|
|
712
|
+
"type": "pushwoosh.aibuilder.v1.TextAlign"
|
|
713
|
+
},
|
|
714
|
+
"mobileLayout": {
|
|
715
|
+
"type": "pushwoosh.aibuilder.v1.MenuLayout"
|
|
716
|
+
}
|
|
717
|
+
}
|
|
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"
|
|
695
747
|
}
|
|
696
748
|
}
|
|
697
749
|
},
|
|
@@ -710,6 +762,9 @@ export const data = {
|
|
|
710
762
|
},
|
|
711
763
|
"gap": {
|
|
712
764
|
"type": "number"
|
|
765
|
+
},
|
|
766
|
+
"mobileAlign": {
|
|
767
|
+
"type": "pushwoosh.aibuilder.v1.TextAlign"
|
|
713
768
|
}
|
|
714
769
|
}
|
|
715
770
|
},
|
|
@@ -743,6 +798,9 @@ export const data = {
|
|
|
743
798
|
"social": {
|
|
744
799
|
"type": "pushwoosh.aibuilder.v1.SocialRow"
|
|
745
800
|
},
|
|
801
|
+
"video": {
|
|
802
|
+
"type": "pushwoosh.aibuilder.v1.Video"
|
|
803
|
+
},
|
|
746
804
|
"padding": {
|
|
747
805
|
"type": "pushwoosh.aibuilder.v1.EdgeInsets",
|
|
748
806
|
"optional": true
|
|
@@ -771,7 +829,8 @@ export const data = {
|
|
|
771
829
|
"timer",
|
|
772
830
|
"rawHtml",
|
|
773
831
|
"menu",
|
|
774
|
-
"social"
|
|
832
|
+
"social",
|
|
833
|
+
"video"
|
|
775
834
|
]
|
|
776
835
|
}
|
|
777
836
|
}
|
|
@@ -836,6 +895,13 @@ export const data = {
|
|
|
836
895
|
"altTranslations": {
|
|
837
896
|
"type": "string",
|
|
838
897
|
"mapKeyType": "string"
|
|
898
|
+
},
|
|
899
|
+
"borderRadius": {
|
|
900
|
+
"type": "number",
|
|
901
|
+
"optional": true
|
|
902
|
+
},
|
|
903
|
+
"mobileAlign": {
|
|
904
|
+
"type": "pushwoosh.aibuilder.v1.TextAlign"
|
|
839
905
|
}
|
|
840
906
|
}
|
|
841
907
|
},
|
|
@@ -925,6 +991,9 @@ export const data = {
|
|
|
925
991
|
},
|
|
926
992
|
"align": {
|
|
927
993
|
"type": "pushwoosh.aibuilder.v1.GroupAlign"
|
|
994
|
+
},
|
|
995
|
+
"mobileDirection": {
|
|
996
|
+
"type": "pushwoosh.aibuilder.v1.GroupDirection"
|
|
928
997
|
}
|
|
929
998
|
}
|
|
930
999
|
},
|
package/package.json
CHANGED
|
@@ -288,6 +288,11 @@ export type CardStyles = {
|
|
|
288
288
|
*/
|
|
289
289
|
mobileContentPadding?: EdgeInsets;
|
|
290
290
|
};
|
|
291
|
+
/** Document-level image defaults; per-image fields override these. Client-managed. */
|
|
292
|
+
export type ImageStyles = {
|
|
293
|
+
/** Corner rounding, px. Unset (or 0) = square. */
|
|
294
|
+
borderRadius?: number;
|
|
295
|
+
};
|
|
291
296
|
export type DefaultStyles = {
|
|
292
297
|
common: BlockStyles;
|
|
293
298
|
columns: ColumnsStyles;
|
|
@@ -300,6 +305,7 @@ export type DefaultStyles = {
|
|
|
300
305
|
* border, solid, 100%).
|
|
301
306
|
*/
|
|
302
307
|
divider: Divider;
|
|
308
|
+
image: ImageStyles;
|
|
303
309
|
};
|
|
304
310
|
export type DocumentSettings = {
|
|
305
311
|
width: number;
|
|
@@ -400,6 +406,8 @@ export type TextBlock = {
|
|
|
400
406
|
* like font_size, lost when the LLM regenerates the block.
|
|
401
407
|
*/
|
|
402
408
|
mobileFontSize?: number;
|
|
409
|
+
/** Mobile alignment override. UNSPECIFIED = inherit `align` (explicit LEFT survives). Client-managed. */
|
|
410
|
+
mobileAlign: TextAlign;
|
|
403
411
|
};
|
|
404
412
|
export type ButtonActionHref = {
|
|
405
413
|
url: string;
|
|
@@ -624,6 +632,42 @@ export type Menu = {
|
|
|
624
632
|
align: TextAlign;
|
|
625
633
|
separator: string;
|
|
626
634
|
itemPadding?: EdgeInsets;
|
|
635
|
+
/** Mobile overrides; UNSPECIFIED = inherit the desktop value. Client-managed. */
|
|
636
|
+
mobileAlign: TextAlign;
|
|
637
|
+
mobileLayout: MenuLayout;
|
|
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;
|
|
627
671
|
};
|
|
628
672
|
/**
|
|
629
673
|
* Row of social-network icon links in the content flow (Unlayer's "social"
|
|
@@ -638,6 +682,8 @@ export type SocialRow = {
|
|
|
638
682
|
iconSize: number;
|
|
639
683
|
/** px between icons; 0 = client default (12) */
|
|
640
684
|
gap: number;
|
|
685
|
+
/** Mobile alignment override. UNSPECIFIED = inherit `align`. Client-managed. */
|
|
686
|
+
mobileAlign: TextAlign;
|
|
641
687
|
};
|
|
642
688
|
export type ContentItem_item_text = {
|
|
643
689
|
type: 'text';
|
|
@@ -675,7 +721,11 @@ export type ContentItem_item_social = {
|
|
|
675
721
|
type: 'social';
|
|
676
722
|
data: SocialRow;
|
|
677
723
|
};
|
|
678
|
-
export type
|
|
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;
|
|
679
729
|
export type ContentItem = {
|
|
680
730
|
/**
|
|
681
731
|
* Container padding of the item. Unset = client's default inter-item gap;
|
|
@@ -733,6 +783,10 @@ export type Image = {
|
|
|
733
783
|
*/
|
|
734
784
|
srcTranslations: Record<string, string>;
|
|
735
785
|
altTranslations: Record<string, string>;
|
|
786
|
+
/** Corner rounding, px. Unset = inherit DefaultStyles.image; explicit 0 = square. Client-managed. */
|
|
787
|
+
borderRadius?: number;
|
|
788
|
+
/** Mobile alignment override (content items only). UNSPECIFIED = inherit `align`. Client-managed. */
|
|
789
|
+
mobileAlign: TextAlign;
|
|
736
790
|
};
|
|
737
791
|
export type AiBuilderCard = {
|
|
738
792
|
layout: CardLayout;
|
|
@@ -822,6 +876,12 @@ export type AiBuilderGroup = {
|
|
|
822
876
|
* UNSPECIFIED → render as START.
|
|
823
877
|
*/
|
|
824
878
|
align: GroupAlign;
|
|
879
|
+
/**
|
|
880
|
+
* Mobile direction override. UNSPECIFIED = inherit `direction`. Only
|
|
881
|
+
* HORIZONTAL→VERTICAL is honored: a vertical group is table rows in the
|
|
882
|
+
* email, which CSS cannot re-flow into a row. Client-managed.
|
|
883
|
+
*/
|
|
884
|
+
mobileDirection: GroupDirection;
|
|
825
885
|
};
|
|
826
886
|
/**
|
|
827
887
|
* Placeholder is a client-created empty slot meant to be replaced by
|