@pushwoosh/rpc-gateway-ai-assistant 0.1.419 → 0.1.420

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
@@ -1863,6 +1863,31 @@ export const data = {
1863
1863
  }
1864
1864
  }
1865
1865
  },
1866
+ "pushwoosh.aibuilder.v1.AdSlotFallback": {
1867
+ "type": "E",
1868
+ "values": [
1869
+ "AD_SLOT_FALLBACK_UNSPECIFIED",
1870
+ "AD_SLOT_FALLBACK_HIDE",
1871
+ "AD_SLOT_FALLBACK_CARD"
1872
+ ]
1873
+ },
1874
+ "pushwoosh.aibuilder.v1.AdSlotData": {
1875
+ "type": "I",
1876
+ "fields": {
1877
+ "campaignId": {
1878
+ "type": "number"
1879
+ },
1880
+ "category": {
1881
+ "type": "string"
1882
+ },
1883
+ "fallback": {
1884
+ "type": "pushwoosh.aibuilder.v1.AdSlotFallback"
1885
+ },
1886
+ "sponsoredLabel": {
1887
+ "type": "string"
1888
+ }
1889
+ }
1890
+ },
1866
1891
  "pushwoosh.aibuilder.v1.AiBuilderBlock": {
1867
1892
  "type": "I",
1868
1893
  "fields": {
@@ -1909,6 +1934,10 @@ export const data = {
1909
1934
  "news": {
1910
1935
  "type": "pushwoosh.aibuilder.v1.NewsData",
1911
1936
  "optional": true
1937
+ },
1938
+ "adSlot": {
1939
+ "type": "pushwoosh.aibuilder.v1.AdSlotData",
1940
+ "optional": true
1912
1941
  }
1913
1942
  },
1914
1943
  "oneofs": {
@@ -2979,6 +3008,9 @@ export const data = {
2979
3008
  },
2980
3009
  "webVersionLabel": {
2981
3010
  "type": "string"
3011
+ },
3012
+ "adSlotTags": {
3013
+ "type": "boolean"
2982
3014
  }
2983
3015
  }
2984
3016
  },
@@ -3020,6 +3052,9 @@ export const data = {
3020
3052
  },
3021
3053
  "webVersionLabel": {
3022
3054
  "type": "string"
3055
+ },
3056
+ "adSlotTags": {
3057
+ "type": "boolean"
3023
3058
  }
3024
3059
  }
3025
3060
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-ai-assistant",
3
- "version": "0.1.419",
3
+ "version": "0.1.420",
4
4
  "description": "AI Assistant api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -1299,6 +1299,28 @@ export type NewsData = {
1299
1299
  */
1300
1300
  pinned: number;
1301
1301
  };
1302
+ /**
1303
+ * What an ad slot renders when no creative is resolved — no active campaign,
1304
+ * or the account may not run ads at all.
1305
+ */
1306
+ export type AdSlotFallback =
1307
+ /** Treated as HIDE. */
1308
+ 'AD_SLOT_FALLBACK_UNSPECIFIED' | 'AD_SLOT_FALLBACK_HIDE'
1309
+ /** The stand-in card the oneof holds, i.e. what the editor shows in preview. */
1310
+ | 'AD_SLOT_FALLBACK_CARD';
1311
+ /**
1312
+ * An ad slot the account sells in its own newsletter. The creative itself
1313
+ * arrives at send time in pw_ad; this only says which campaign fills the slot.
1314
+ */
1315
+ export type AdSlotData = {
1316
+ /** Campaign that bought this slot. 0 = resolve by category instead. */
1317
+ campaignId: number;
1318
+ /** Matched against active campaigns of the account when campaign_id is 0. */
1319
+ category: string;
1320
+ fallback: AdSlotFallback;
1321
+ /** Line shown above the creative ("Sponsored"). Empty = no label. */
1322
+ sponsoredLabel: string;
1323
+ };
1302
1324
  export type AiBuilderBlock_block_card = {
1303
1325
  type: 'card';
1304
1326
  data: AiBuilderCard;
@@ -1352,6 +1374,11 @@ export type AiBuilderBlock = {
1352
1374
  * block's rendering and the oneof holds a stand-in card.
1353
1375
  */
1354
1376
  news?: NewsData;
1377
+ /**
1378
+ * Ad slot sold by the account in its own newsletter. Same ownership contract
1379
+ * as products and news; the creative arrives at send time, not from here.
1380
+ */
1381
+ adSlot?: AdSlotData;
1355
1382
  block: AiBuilderBlock_block;
1356
1383
  };
1357
1384
  /**
@@ -850,6 +850,11 @@ export type AiGenDocumentToHtmlRequest = {
850
850
  * for the document's default language.
851
851
  */
852
852
  webVersionLabel: string;
853
+ /**
854
+ * Bake ad slots. OFF when unset, unlike the three above: it follows the
855
+ * account's AllowEmailAds, and a caller that does not know it means "no ads".
856
+ */
857
+ adSlotTags: boolean;
853
858
  };
854
859
  export type AiGenDocumentsToHtmlItem = {
855
860
  /** Caller's own id, echoed on the result so a batch can be matched up. */
@@ -868,6 +873,8 @@ export type AiGenDocumentsToHtmlRequest = {
868
873
  displayConditionTags?: boolean;
869
874
  dynamicProductTags?: boolean;
870
875
  webVersionLabel: string;
876
+ /** Same contract as DocumentToHtml: OFF when unset. */
877
+ adSlotTags: boolean;
871
878
  };
872
879
  export type AiGenDocumentsToHtmlResult = {
873
880
  id: string;