@pushwoosh/rpc-v2-http-api-data 0.2.331 → 0.2.333

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
@@ -2750,9 +2750,23 @@ export const data = {
2750
2750
  "backgroundImagePosition": {
2751
2751
  "type": "pushwoosh.aibuilder.v1.CardImagePosition",
2752
2752
  "optional": true
2753
+ },
2754
+ "borderSides": {
2755
+ "type": "pushwoosh.aibuilder.v1.BorderSide",
2756
+ "array": true
2753
2757
  }
2754
2758
  }
2755
2759
  },
2760
+ "pushwoosh.aibuilder.v1.BorderSide": {
2761
+ "type": "E",
2762
+ "values": [
2763
+ "BORDER_SIDE_UNSPECIFIED",
2764
+ "BORDER_SIDE_TOP",
2765
+ "BORDER_SIDE_RIGHT",
2766
+ "BORDER_SIDE_BOTTOM",
2767
+ "BORDER_SIDE_LEFT"
2768
+ ]
2769
+ },
2756
2770
  "pushwoosh.aibuilder.v1.BackgroundGradient": {
2757
2771
  "type": "I",
2758
2772
  "fields": {
@@ -3598,6 +3612,10 @@ export const data = {
3598
3612
  "borderRadiusCss": {
3599
3613
  "type": "string",
3600
3614
  "optional": true
3615
+ },
3616
+ "darkSrc": {
3617
+ "type": "string",
3618
+ "optional": true
3601
3619
  }
3602
3620
  }
3603
3621
  },
@@ -4108,6 +4126,66 @@ export const data = {
4108
4126
  }
4109
4127
  }
4110
4128
  },
4129
+ "pushwoosh.aibuilder.v1.AdSlotFallback": {
4130
+ "type": "E",
4131
+ "values": [
4132
+ "AD_SLOT_FALLBACK_UNSPECIFIED",
4133
+ "AD_SLOT_FALLBACK_HIDE",
4134
+ "AD_SLOT_FALLBACK_CARD"
4135
+ ]
4136
+ },
4137
+ "pushwoosh.aibuilder.v1.AdSlotData": {
4138
+ "type": "I",
4139
+ "fields": {
4140
+ "campaignId": {
4141
+ "type": "number"
4142
+ },
4143
+ "category": {
4144
+ "type": "string"
4145
+ },
4146
+ "fallback": {
4147
+ "type": "pushwoosh.aibuilder.v1.AdSlotFallback"
4148
+ },
4149
+ "sponsoredLabel": {
4150
+ "type": "string"
4151
+ }
4152
+ }
4153
+ },
4154
+ "pushwoosh.aibuilder.v1.LogoHeaderStyle": {
4155
+ "type": "I",
4156
+ "fields": {
4157
+ "src": {
4158
+ "type": "string"
4159
+ },
4160
+ "darkSrc": {
4161
+ "type": "string"
4162
+ },
4163
+ "align": {
4164
+ "type": "pushwoosh.aibuilder.v1.TextAlign"
4165
+ },
4166
+ "width": {
4167
+ "type": "string"
4168
+ },
4169
+ "href": {
4170
+ "type": "string"
4171
+ },
4172
+ "backgroundColor": {
4173
+ "type": "string"
4174
+ },
4175
+ "padding": {
4176
+ "type": "pushwoosh.aibuilder.v1.EdgeInsets",
4177
+ "optional": true
4178
+ }
4179
+ }
4180
+ },
4181
+ "pushwoosh.aibuilder.v1.LogoHeaderData": {
4182
+ "type": "I",
4183
+ "fields": {
4184
+ "applied": {
4185
+ "type": "pushwoosh.aibuilder.v1.LogoHeaderStyle"
4186
+ }
4187
+ }
4188
+ },
4111
4189
  "pushwoosh.aibuilder.v1.AiBuilderBlock": {
4112
4190
  "type": "I",
4113
4191
  "fields": {
@@ -4154,6 +4232,14 @@ export const data = {
4154
4232
  "news": {
4155
4233
  "type": "pushwoosh.aibuilder.v1.NewsData",
4156
4234
  "optional": true
4235
+ },
4236
+ "adSlot": {
4237
+ "type": "pushwoosh.aibuilder.v1.AdSlotData",
4238
+ "optional": true
4239
+ },
4240
+ "logoHeader": {
4241
+ "type": "pushwoosh.aibuilder.v1.LogoHeaderData",
4242
+ "optional": true
4157
4243
  }
4158
4244
  },
4159
4245
  "oneofs": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.331",
3
+ "version": "0.2.333",
4
4
  "description": "RPC V2 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;
@@ -1299,6 +1307,46 @@ export type NewsData = {
1299
1307
  */
1300
1308
  pinned: number;
1301
1309
  };
1310
+ /**
1311
+ * What an ad slot renders when no creative is resolved — no active campaign,
1312
+ * or the account may not run ads at all.
1313
+ */
1314
+ export type AdSlotFallback =
1315
+ /** Treated as HIDE. */
1316
+ 'AD_SLOT_FALLBACK_UNSPECIFIED' | 'AD_SLOT_FALLBACK_HIDE'
1317
+ /** The stand-in card the oneof holds, i.e. what the editor shows in preview. */
1318
+ | 'AD_SLOT_FALLBACK_CARD';
1319
+ /**
1320
+ * An ad slot the account sells in its own newsletter. The creative itself
1321
+ * arrives at send time in pw_ad; this only says which campaign fills the slot.
1322
+ */
1323
+ export type AdSlotData = {
1324
+ /** Campaign that bought this slot. 0 = resolve by category instead. */
1325
+ campaignId: number;
1326
+ /** Matched against active campaigns of the account when campaign_id is 0. */
1327
+ category: string;
1328
+ fallback: AdSlotFallback;
1329
+ /** Line shown above the creative ("Sponsored"). Empty = no label. */
1330
+ sponsoredLabel: string;
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
+ };
1302
1350
  export type AiBuilderBlock_block_card = {
1303
1351
  type: 'card';
1304
1352
  data: AiBuilderCard;
@@ -1352,6 +1400,16 @@ export type AiBuilderBlock = {
1352
1400
  * block's rendering and the oneof holds a stand-in card.
1353
1401
  */
1354
1402
  news?: NewsData;
1403
+ /**
1404
+ * Ad slot sold by the account in its own newsletter. Same ownership contract
1405
+ * as products and news; the creative arrives at send time, not from here.
1406
+ */
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;
1355
1413
  block: AiBuilderBlock_block;
1356
1414
  };
1357
1415
  /**