@pushwoosh/rpc-gateway-ai-assistant 0.1.231 → 0.1.232

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
@@ -173,6 +173,14 @@ export const data = {
173
173
  "backgroundImage": {
174
174
  "type": "string",
175
175
  "optional": true
176
+ },
177
+ "hideOnMobile": {
178
+ "type": "boolean",
179
+ "optional": true
180
+ },
181
+ "hideOnDesktop": {
182
+ "type": "boolean",
183
+ "optional": true
176
184
  }
177
185
  }
178
186
  },
@@ -309,6 +317,10 @@ export const data = {
309
317
  "fontFamily": {
310
318
  "type": "string",
311
319
  "optional": true
320
+ },
321
+ "backgroundColor": {
322
+ "type": "string",
323
+ "optional": true
312
324
  }
313
325
  }
314
326
  },
@@ -464,6 +476,10 @@ export const data = {
464
476
  },
465
477
  "variant": {
466
478
  "type": "string"
479
+ },
480
+ "backgroundColor": {
481
+ "type": "string",
482
+ "optional": true
467
483
  }
468
484
  }
469
485
  },
@@ -702,6 +718,14 @@ export const data = {
702
718
  "padding": {
703
719
  "type": "pushwoosh.aibuilder.v1.EdgeInsets",
704
720
  "optional": true
721
+ },
722
+ "hideOnMobile": {
723
+ "type": "boolean",
724
+ "optional": true
725
+ },
726
+ "hideOnDesktop": {
727
+ "type": "boolean",
728
+ "optional": true
705
729
  }
706
730
  },
707
731
  "oneofs": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-ai-assistant",
3
- "version": "0.1.231",
3
+ "version": "0.1.232",
4
4
  "description": "AI Assistant api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -204,9 +204,9 @@ export type EdgeInsets = {
204
204
  * LLM-managed: background_color, border_color, border_radius — the
205
205
  * block generator may emit these via AiGenBlockStyles and the
206
206
  * pipeline lifts them into BlockStyles.
207
- * Client-managed: border_width, border_radius_css and background_image
208
- * the LLM never emits them (absent from its schema), the backend
209
- * preserves them verbatim across edits.
207
+ * Client-managed: border_width, border_radius_css, background_image,
208
+ * hide_on_mobile and hide_on_desktop — the LLM never emits them (absent
209
+ * from its schema), the backend preserves them verbatim across edits.
210
210
  */
211
211
  export type BlockStyles = {
212
212
  /**
@@ -236,6 +236,12 @@ export type BlockStyles = {
236
236
  * card — that layout's own image is the backdrop.
237
237
  */
238
238
  backgroundImage?: string;
239
+ /**
240
+ * Responsive visibility (Unlayer's hideMobile / hideDesktop): the emitted
241
+ * email hides the block via media-query classes. Client-managed.
242
+ */
243
+ hideOnMobile?: boolean;
244
+ hideOnDesktop?: boolean;
239
245
  };
240
246
  /** Two-stop CSS linear gradient: `linear-gradient(<angle>deg, from, to)`. */
241
247
  export type BackgroundGradient = {
@@ -359,6 +365,13 @@ export type TextBlock = {
359
365
  * variant's font_family → DocumentSettings.font_family. Client-managed.
360
366
  */
361
367
  fontFamily?: string;
368
+ /**
369
+ * Background colour of this text item's box (#RGB / #RRGGBB). Unset (or
370
+ * empty string) = transparent — the block backdrop shows through.
371
+ * Client-managed: user-owned styling; like font_size, it is lost when the
372
+ * LLM regenerates the block (items are rewritten wholesale).
373
+ */
374
+ backgroundColor?: string;
362
375
  };
363
376
  export type ButtonActionHref = {
364
377
  url: string;
@@ -459,6 +472,11 @@ export type List = {
459
472
  * unset = "normal".
460
473
  */
461
474
  variant: string;
475
+ /**
476
+ * Background colour of the list's box; same contract as
477
+ * TextBlock.background_color. Client-managed.
478
+ */
479
+ backgroundColor?: string;
462
480
  };
463
481
  export type FormFieldType =
464
482
  /** treated as TEXT */
@@ -636,6 +654,12 @@ export type ContentItem = {
636
654
  * set (even zeros) = used verbatim. Client-managed, hidden from the LLM.
637
655
  */
638
656
  padding?: EdgeInsets;
657
+ /**
658
+ * Responsive visibility of this item (Unlayer's hideMobile / hideDesktop);
659
+ * same media-query contract as BlockStyles. Client-managed.
660
+ */
661
+ hideOnMobile?: boolean;
662
+ hideOnDesktop?: boolean;
639
663
  item: ContentItem_item;
640
664
  };
641
665
  export type Content = {