@pushwoosh/rpc-gateway-ai-assistant 0.1.188 → 0.1.190

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
@@ -164,6 +164,20 @@ export const data = {
164
164
  }
165
165
  }
166
166
  },
167
+ "pushwoosh.aibuilder.v1.BackgroundGradient": {
168
+ "type": "I",
169
+ "fields": {
170
+ "from": {
171
+ "type": "string"
172
+ },
173
+ "to": {
174
+ "type": "string"
175
+ },
176
+ "angle": {
177
+ "type": "number"
178
+ }
179
+ }
180
+ },
167
181
  "pushwoosh.aibuilder.v1.ColumnsStyles": {
168
182
  "type": "I",
169
183
  "fields": {
@@ -237,6 +251,14 @@ export const data = {
237
251
  "fontFamily": {
238
252
  "type": "string",
239
253
  "optional": true
254
+ },
255
+ "backgroundImage": {
256
+ "type": "string",
257
+ "optional": true
258
+ },
259
+ "backgroundGradient": {
260
+ "type": "pushwoosh.aibuilder.v1.BackgroundGradient",
261
+ "optional": true
240
262
  }
241
263
  }
242
264
  },
@@ -255,6 +277,10 @@ export const data = {
255
277
  },
256
278
  "align": {
257
279
  "type": "pushwoosh.aibuilder.v1.TextAlign"
280
+ },
281
+ "translations": {
282
+ "type": "string",
283
+ "mapKeyType": "string"
258
284
  }
259
285
  }
260
286
  },
@@ -293,6 +319,10 @@ export const data = {
293
319
  "styles": {
294
320
  "type": "pushwoosh.aibuilder.v1.ButtonStyles",
295
321
  "optional": true
322
+ },
323
+ "translations": {
324
+ "type": "string",
325
+ "mapKeyType": "string"
296
326
  }
297
327
  }
298
328
  },
@@ -367,6 +397,10 @@ export const data = {
367
397
  "fields": {
368
398
  "text": {
369
399
  "type": "string"
400
+ },
401
+ "translations": {
402
+ "type": "string",
403
+ "mapKeyType": "string"
370
404
  }
371
405
  }
372
406
  },
@@ -391,7 +425,10 @@ export const data = {
391
425
  "list": {
392
426
  "type": "pushwoosh.aibuilder.v1.List"
393
427
  },
394
- "margin": {
428
+ "image": {
429
+ "type": "pushwoosh.aibuilder.v1.Image"
430
+ },
431
+ "padding": {
395
432
  "type": "pushwoosh.aibuilder.v1.EdgeInsets",
396
433
  "optional": true
397
434
  }
@@ -401,7 +438,8 @@ export const data = {
401
438
  "oneof": [
402
439
  "text",
403
440
  "buttonGroup",
404
- "list"
441
+ "list",
442
+ "image"
405
443
  ]
406
444
  }
407
445
  }
@@ -416,14 +454,6 @@ export const data = {
416
454
  "textPrompt": {
417
455
  "type": "string",
418
456
  "optional": true
419
- },
420
- "margin": {
421
- "type": "pushwoosh.aibuilder.v1.EdgeInsets",
422
- "optional": true
423
- },
424
- "padding": {
425
- "type": "pushwoosh.aibuilder.v1.EdgeInsets",
426
- "optional": true
427
457
  }
428
458
  }
429
459
  },
@@ -454,9 +484,12 @@ export const data = {
454
484
  "origHeight": {
455
485
  "type": "number"
456
486
  },
457
- "margin": {
487
+ "padding": {
458
488
  "type": "pushwoosh.aibuilder.v1.EdgeInsets",
459
489
  "optional": true
490
+ },
491
+ "align": {
492
+ "type": "pushwoosh.aibuilder.v1.TextAlign"
460
493
  }
461
494
  }
462
495
  },
@@ -527,6 +560,10 @@ export const data = {
527
560
  "width": {
528
561
  "type": "string",
529
562
  "optional": true
563
+ },
564
+ "padding": {
565
+ "type": "pushwoosh.aibuilder.v1.EdgeInsets",
566
+ "optional": true
530
567
  }
531
568
  }
532
569
  },
@@ -752,6 +789,14 @@ export const data = {
752
789
  "showWebVersion": {
753
790
  "type": "boolean",
754
791
  "optional": true
792
+ },
793
+ "subjectTranslations": {
794
+ "type": "string",
795
+ "mapKeyType": "string"
796
+ },
797
+ "preheaderTranslations": {
798
+ "type": "string",
799
+ "mapKeyType": "string"
755
800
  }
756
801
  }
757
802
  },
@@ -849,6 +894,10 @@ export const data = {
849
894
  "popupSettings": {
850
895
  "type": "pushwoosh.aibuilder.v1.PopupSettings",
851
896
  "optional": true
897
+ },
898
+ "languages": {
899
+ "type": "string",
900
+ "array": true
852
901
  }
853
902
  }
854
903
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-ai-assistant",
3
- "version": "0.1.188",
3
+ "version": "0.1.190",
4
4
  "description": "AI Assistant api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -206,6 +206,14 @@ export type BlockStyles = {
206
206
  /** Explicit 0 is distinct from unset and preserved. */
207
207
  borderRadius?: number;
208
208
  };
209
+ /** Two-stop CSS linear gradient: `linear-gradient(<angle>deg, from, to)`. */
210
+ export type BackgroundGradient = {
211
+ /** #RRGGBB */
212
+ from: string;
213
+ to: string;
214
+ /** CSS angle in degrees (180 = top→bottom). */
215
+ angle: number;
216
+ };
209
217
  export type ColumnsStyles = {
210
218
  /** Padding applied to each column in the columns block. */
211
219
  columnPadding?: EdgeInsets;
@@ -258,6 +266,12 @@ export type DocumentSettings = {
258
266
  * button → variant → document → renderer default.
259
267
  */
260
268
  fontFamily?: string;
269
+ /**
270
+ * Document-wide backdrop behind all blocks (email body background).
271
+ * Same semantics as the BlockStyles pair. Client-managed.
272
+ */
273
+ backgroundImage?: string;
274
+ backgroundGradient?: BackgroundGradient;
261
275
  };
262
276
  export type TextBlock = {
263
277
  variant: string;
@@ -281,6 +295,12 @@ export type TextBlock = {
281
295
  * fits the design; preserved verbatim on edit.
282
296
  */
283
297
  align: TextAlign;
298
+ /**
299
+ * Per-language overrides of `text`, keyed by language code ("es", "de").
300
+ * The default language lives in `text` itself. Client-managed: the LLM
301
+ * writes only `text`; translations are round-tripped verbatim.
302
+ */
303
+ translations: Record<string, string>;
284
304
  };
285
305
  export type ButtonActionHref = {
286
306
  url: string;
@@ -297,6 +317,8 @@ export type Button = {
297
317
  text: string;
298
318
  action: ButtonAction;
299
319
  styles?: ButtonStyles;
320
+ /** Per-language overrides of `text`; same contract as TextBlock.translations. */
321
+ translations: Record<string, string>;
300
322
  };
301
323
  export type ButtonStyles = {
302
324
  backgroundColor?: string;
@@ -341,6 +363,8 @@ export type ButtonGroupStyles = {
341
363
  */
342
364
  export type ListItem = {
343
365
  text: string;
366
+ /** Per-language overrides of `text`; same contract as TextBlock.translations. */
367
+ translations: Record<string, string>;
344
368
  };
345
369
  /**
346
370
  * List is a simple list of short entries — features, benefits, steps,
@@ -362,32 +386,22 @@ export type ContentItem_item_list = {
362
386
  type: 'list';
363
387
  data: List;
364
388
  };
365
- export type ContentItem_item = ContentItem_item_text | ContentItem_item_buttonGroup | ContentItem_item_list;
389
+ export type ContentItem_item_image = {
390
+ type: 'image';
391
+ data: Image;
392
+ };
393
+ export type ContentItem_item = ContentItem_item_text | ContentItem_item_buttonGroup | ContentItem_item_list | ContentItem_item_image;
366
394
  export type ContentItem = {
367
395
  /**
368
- * Client-managed margin around this single item (outer box of the
369
- * element, CSS margin semantics). Unset = the client applies its default
370
- * inter-item gap; set (even to zeros) = the client uses exactly this and
371
- * skips the default gap. Written by importers (e.g. the Unlayer
372
- * converter maps each widget's containerPadding here) and by the editor;
373
- * never exposed to the LLM, round-tripped verbatim by the backend.
396
+ * Container padding of the item. Unset = client's default inter-item gap;
397
+ * set (even zeros) = used verbatim. Client-managed, hidden from the LLM.
374
398
  */
375
- margin?: EdgeInsets;
399
+ padding?: EdgeInsets;
376
400
  item: ContentItem_item;
377
401
  };
378
402
  export type Content = {
379
403
  items: ContentItem[];
380
404
  textPrompt?: string;
381
- /**
382
- * Client-managed margin around the content block. Preserved by the backend
383
- * across Update but never exposed to the LLM.
384
- */
385
- margin?: EdgeInsets;
386
- /**
387
- * Client-managed padding inside the content block. Preserved by the backend
388
- * across Update but never exposed to the LLM.
389
- */
390
- padding?: EdgeInsets;
391
405
  };
392
406
  export type Image = {
393
407
  prompt: string;
@@ -399,13 +413,18 @@ export type Image = {
399
413
  origWidth: number;
400
414
  origHeight: number;
401
415
  /**
402
- * Client-managed outer margin of the image within its slot (card TOP
403
- * image, column image). Same semantics as ContentItem.margin: written by
404
- * importers / the editor, never exposed to the LLM, round-tripped
416
+ * Container padding of the image within its slot (card TOP image, column
417
+ * image). Same semantics as ContentItem.padding: client-managed, written
418
+ * by importers / the editor, never exposed to the LLM, round-tripped
405
419
  * verbatim. Layouts without a discrete image box (BACKGROUND, LEFT/RIGHT
406
420
  * fills) may ignore it.
407
421
  */
408
- margin?: EdgeInsets;
422
+ padding?: EdgeInsets;
423
+ /**
424
+ * Horizontal alignment when the image is a content item; slots ignore it.
425
+ * UNSPECIFIED renders as center (Unlayer's image default).
426
+ */
427
+ align: TextAlign;
409
428
  };
410
429
  export type AiBuilderCard = {
411
430
  layout: CardLayout;
@@ -444,6 +463,12 @@ export type AiBuilderColumn = {
444
463
  image?: Image;
445
464
  content: Content;
446
465
  width?: string;
466
+ /**
467
+ * Container padding of this column, wrapping BOTH the image slot and the
468
+ * content (Unlayer column padding). Overrides ColumnsStyles.column_padding
469
+ * for this column when set. Client-managed; the LLM never sets it.
470
+ */
471
+ padding?: EdgeInsets;
447
472
  };
448
473
  /**
449
474
  * AiBuilderGroup is a structural stack container. Children live as
@@ -635,6 +660,12 @@ export type EmailSettings = {
635
660
  * instead of collapsing to proto3 false on save.
636
661
  */
637
662
  showWebVersion?: boolean;
663
+ /**
664
+ * Per-language overrides of subject / preheader; the default language
665
+ * lives in the scalar fields. Client-managed, hidden from the LLM.
666
+ */
667
+ subjectTranslations: Record<string, string>;
668
+ preheaderTranslations: Record<string, string>;
638
669
  };
639
670
  /**
640
671
  * PopupAnimation chooses how a web-popup enters / exits the
@@ -719,4 +750,10 @@ export type AiBuilderDocument = {
719
750
  * document was generated for mode=WEB_POPUP.
720
751
  */
721
752
  popupSettings?: PopupSettings;
753
+ /**
754
+ * Languages this document is edited in, "default" first, then language
755
+ * codes in a stable order. Drives the editor's language switcher; a
756
+ * language may be listed before any translation exists. Client-managed.
757
+ */
758
+ languages: string[];
722
759
  };