@pushwoosh/rpc-gateway-ai-assistant 0.1.445 → 0.1.447

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
@@ -509,9 +509,23 @@ export const data = {
509
509
  "backgroundImagePosition": {
510
510
  "type": "pushwoosh.aibuilder.v1.CardImagePosition",
511
511
  "optional": true
512
+ },
513
+ "borderSides": {
514
+ "type": "pushwoosh.aibuilder.v1.BorderSide",
515
+ "array": true
512
516
  }
513
517
  }
514
518
  },
519
+ "pushwoosh.aibuilder.v1.BorderSide": {
520
+ "type": "E",
521
+ "values": [
522
+ "BORDER_SIDE_UNSPECIFIED",
523
+ "BORDER_SIDE_TOP",
524
+ "BORDER_SIDE_RIGHT",
525
+ "BORDER_SIDE_BOTTOM",
526
+ "BORDER_SIDE_LEFT"
527
+ ]
528
+ },
515
529
  "pushwoosh.aibuilder.v1.BackgroundGradient": {
516
530
  "type": "I",
517
531
  "fields": {
@@ -1357,6 +1371,10 @@ export const data = {
1357
1371
  "borderRadiusCss": {
1358
1372
  "type": "string",
1359
1373
  "optional": true
1374
+ },
1375
+ "darkSrc": {
1376
+ "type": "string",
1377
+ "optional": true
1360
1378
  }
1361
1379
  }
1362
1380
  },
@@ -1892,6 +1910,41 @@ export const data = {
1892
1910
  }
1893
1911
  }
1894
1912
  },
1913
+ "pushwoosh.aibuilder.v1.LogoHeaderStyle": {
1914
+ "type": "I",
1915
+ "fields": {
1916
+ "src": {
1917
+ "type": "string"
1918
+ },
1919
+ "darkSrc": {
1920
+ "type": "string"
1921
+ },
1922
+ "align": {
1923
+ "type": "pushwoosh.aibuilder.v1.TextAlign"
1924
+ },
1925
+ "width": {
1926
+ "type": "string"
1927
+ },
1928
+ "href": {
1929
+ "type": "string"
1930
+ },
1931
+ "backgroundColor": {
1932
+ "type": "string"
1933
+ },
1934
+ "padding": {
1935
+ "type": "pushwoosh.aibuilder.v1.EdgeInsets",
1936
+ "optional": true
1937
+ }
1938
+ }
1939
+ },
1940
+ "pushwoosh.aibuilder.v1.LogoHeaderData": {
1941
+ "type": "I",
1942
+ "fields": {
1943
+ "applied": {
1944
+ "type": "pushwoosh.aibuilder.v1.LogoHeaderStyle"
1945
+ }
1946
+ }
1947
+ },
1895
1948
  "pushwoosh.aibuilder.v1.AiBuilderBlock": {
1896
1949
  "type": "I",
1897
1950
  "fields": {
@@ -1942,6 +1995,10 @@ export const data = {
1942
1995
  "adSlot": {
1943
1996
  "type": "pushwoosh.aibuilder.v1.AdSlotData",
1944
1997
  "optional": true
1998
+ },
1999
+ "logoHeader": {
2000
+ "type": "pushwoosh.aibuilder.v1.LogoHeaderData",
2001
+ "optional": true
1945
2002
  }
1946
2003
  },
1947
2004
  "oneofs": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-ai-assistant",
3
- "version": "0.1.445",
3
+ "version": "0.1.447",
4
4
  "description": "AI Assistant api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -269,7 +269,10 @@ export type BlockStyles = {
269
269
  */
270
270
  backgroundImageFit?: CardImageFit;
271
271
  backgroundImagePosition?: CardImagePosition;
272
+ /** Sides border_width is drawn on; empty = all four, the historical box. */
273
+ borderSides: BorderSide[];
272
274
  };
275
+ export type BorderSide = 'BORDER_SIDE_UNSPECIFIED' | 'BORDER_SIDE_TOP' | 'BORDER_SIDE_RIGHT' | 'BORDER_SIDE_BOTTOM' | 'BORDER_SIDE_LEFT';
273
276
  /** Two-stop CSS linear gradient: `linear-gradient(<angle>deg, from, to)`. */
274
277
  export type BackgroundGradient = {
275
278
  /** #RRGGBB */
@@ -924,6 +927,11 @@ export type Image = {
924
927
  * editor instead of border_radius, which wins whenever both are present.
925
928
  */
926
929
  borderRadiusCss?: string;
930
+ /**
931
+ * Source shown by clients that honour prefers-color-scheme: dark (Apple
932
+ * Mail, Outlook iOS); the Gmail apps keep `src`. Empty = one image for both.
933
+ */
934
+ darkSrc?: string;
927
935
  };
928
936
  export type AiBuilderCard = {
929
937
  layout: CardLayout;
@@ -1321,6 +1329,24 @@ export type AdSlotData = {
1321
1329
  /** Line shown above the creative ("Sponsored"). Empty = no label. */
1322
1330
  sponsoredLabel: string;
1323
1331
  };
1332
+ /** The Brand book's logo-header look, as it lands in the stand-in card. */
1333
+ export type LogoHeaderStyle = {
1334
+ src: string;
1335
+ darkSrc: string;
1336
+ align: TextAlign;
1337
+ /** CSS length, same contract as Image.width. */
1338
+ width: string;
1339
+ href: string;
1340
+ backgroundColor: string;
1341
+ padding?: EdgeInsets;
1342
+ };
1343
+ /**
1344
+ * Brand-book logo header; `applied` is what the brand last wrote into the stand-in
1345
+ * card, so a differing card value is the user's edit and survives "Apply brand styles".
1346
+ */
1347
+ export type LogoHeaderData = {
1348
+ applied: LogoHeaderStyle;
1349
+ };
1324
1350
  export type AiBuilderBlock_block_card = {
1325
1351
  type: 'card';
1326
1352
  data: AiBuilderCard;
@@ -1379,6 +1405,11 @@ export type AiBuilderBlock = {
1379
1405
  * as products and news; the creative arrives at send time, not from here.
1380
1406
  */
1381
1407
  adSlot?: AdSlotData;
1408
+ /**
1409
+ * Brand-book logo header. Unlike the repeaters it does not own the
1410
+ * rendering: the stand-in card IS the output.
1411
+ */
1412
+ logoHeader?: LogoHeaderData;
1382
1413
  block: AiBuilderBlock_block;
1383
1414
  };
1384
1415
  /**