@pushwoosh/rpc-v2-http-api-data 0.2.331 → 0.2.332
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 +72 -0
- package/package.json +1 -1
- package/pushwoosh_aibuilder_v1.d.ts +55 -0
package/data.js
CHANGED
|
@@ -3598,6 +3598,10 @@ export const data = {
|
|
|
3598
3598
|
"borderRadiusCss": {
|
|
3599
3599
|
"type": "string",
|
|
3600
3600
|
"optional": true
|
|
3601
|
+
},
|
|
3602
|
+
"darkSrc": {
|
|
3603
|
+
"type": "string",
|
|
3604
|
+
"optional": true
|
|
3601
3605
|
}
|
|
3602
3606
|
}
|
|
3603
3607
|
},
|
|
@@ -4108,6 +4112,66 @@ export const data = {
|
|
|
4108
4112
|
}
|
|
4109
4113
|
}
|
|
4110
4114
|
},
|
|
4115
|
+
"pushwoosh.aibuilder.v1.AdSlotFallback": {
|
|
4116
|
+
"type": "E",
|
|
4117
|
+
"values": [
|
|
4118
|
+
"AD_SLOT_FALLBACK_UNSPECIFIED",
|
|
4119
|
+
"AD_SLOT_FALLBACK_HIDE",
|
|
4120
|
+
"AD_SLOT_FALLBACK_CARD"
|
|
4121
|
+
]
|
|
4122
|
+
},
|
|
4123
|
+
"pushwoosh.aibuilder.v1.AdSlotData": {
|
|
4124
|
+
"type": "I",
|
|
4125
|
+
"fields": {
|
|
4126
|
+
"campaignId": {
|
|
4127
|
+
"type": "number"
|
|
4128
|
+
},
|
|
4129
|
+
"category": {
|
|
4130
|
+
"type": "string"
|
|
4131
|
+
},
|
|
4132
|
+
"fallback": {
|
|
4133
|
+
"type": "pushwoosh.aibuilder.v1.AdSlotFallback"
|
|
4134
|
+
},
|
|
4135
|
+
"sponsoredLabel": {
|
|
4136
|
+
"type": "string"
|
|
4137
|
+
}
|
|
4138
|
+
}
|
|
4139
|
+
},
|
|
4140
|
+
"pushwoosh.aibuilder.v1.LogoHeaderStyle": {
|
|
4141
|
+
"type": "I",
|
|
4142
|
+
"fields": {
|
|
4143
|
+
"src": {
|
|
4144
|
+
"type": "string"
|
|
4145
|
+
},
|
|
4146
|
+
"darkSrc": {
|
|
4147
|
+
"type": "string"
|
|
4148
|
+
},
|
|
4149
|
+
"align": {
|
|
4150
|
+
"type": "pushwoosh.aibuilder.v1.TextAlign"
|
|
4151
|
+
},
|
|
4152
|
+
"width": {
|
|
4153
|
+
"type": "string"
|
|
4154
|
+
},
|
|
4155
|
+
"href": {
|
|
4156
|
+
"type": "string"
|
|
4157
|
+
},
|
|
4158
|
+
"backgroundColor": {
|
|
4159
|
+
"type": "string"
|
|
4160
|
+
},
|
|
4161
|
+
"padding": {
|
|
4162
|
+
"type": "pushwoosh.aibuilder.v1.EdgeInsets",
|
|
4163
|
+
"optional": true
|
|
4164
|
+
}
|
|
4165
|
+
}
|
|
4166
|
+
},
|
|
4167
|
+
"pushwoosh.aibuilder.v1.LogoHeaderData": {
|
|
4168
|
+
"type": "I",
|
|
4169
|
+
"fields": {
|
|
4170
|
+
"applied": {
|
|
4171
|
+
"type": "pushwoosh.aibuilder.v1.LogoHeaderStyle"
|
|
4172
|
+
}
|
|
4173
|
+
}
|
|
4174
|
+
},
|
|
4111
4175
|
"pushwoosh.aibuilder.v1.AiBuilderBlock": {
|
|
4112
4176
|
"type": "I",
|
|
4113
4177
|
"fields": {
|
|
@@ -4154,6 +4218,14 @@ export const data = {
|
|
|
4154
4218
|
"news": {
|
|
4155
4219
|
"type": "pushwoosh.aibuilder.v1.NewsData",
|
|
4156
4220
|
"optional": true
|
|
4221
|
+
},
|
|
4222
|
+
"adSlot": {
|
|
4223
|
+
"type": "pushwoosh.aibuilder.v1.AdSlotData",
|
|
4224
|
+
"optional": true
|
|
4225
|
+
},
|
|
4226
|
+
"logoHeader": {
|
|
4227
|
+
"type": "pushwoosh.aibuilder.v1.LogoHeaderData",
|
|
4228
|
+
"optional": true
|
|
4157
4229
|
}
|
|
4158
4230
|
},
|
|
4159
4231
|
"oneofs": {
|
package/package.json
CHANGED
|
@@ -924,6 +924,11 @@ export type Image = {
|
|
|
924
924
|
* editor instead of border_radius, which wins whenever both are present.
|
|
925
925
|
*/
|
|
926
926
|
borderRadiusCss?: string;
|
|
927
|
+
/**
|
|
928
|
+
* Source shown by clients that honour prefers-color-scheme: dark (Apple
|
|
929
|
+
* Mail, Outlook iOS); the Gmail apps keep `src`. Empty = one image for both.
|
|
930
|
+
*/
|
|
931
|
+
darkSrc?: string;
|
|
927
932
|
};
|
|
928
933
|
export type AiBuilderCard = {
|
|
929
934
|
layout: CardLayout;
|
|
@@ -1299,6 +1304,46 @@ export type NewsData = {
|
|
|
1299
1304
|
*/
|
|
1300
1305
|
pinned: number;
|
|
1301
1306
|
};
|
|
1307
|
+
/**
|
|
1308
|
+
* What an ad slot renders when no creative is resolved — no active campaign,
|
|
1309
|
+
* or the account may not run ads at all.
|
|
1310
|
+
*/
|
|
1311
|
+
export type AdSlotFallback =
|
|
1312
|
+
/** Treated as HIDE. */
|
|
1313
|
+
'AD_SLOT_FALLBACK_UNSPECIFIED' | 'AD_SLOT_FALLBACK_HIDE'
|
|
1314
|
+
/** The stand-in card the oneof holds, i.e. what the editor shows in preview. */
|
|
1315
|
+
| 'AD_SLOT_FALLBACK_CARD';
|
|
1316
|
+
/**
|
|
1317
|
+
* An ad slot the account sells in its own newsletter. The creative itself
|
|
1318
|
+
* arrives at send time in pw_ad; this only says which campaign fills the slot.
|
|
1319
|
+
*/
|
|
1320
|
+
export type AdSlotData = {
|
|
1321
|
+
/** Campaign that bought this slot. 0 = resolve by category instead. */
|
|
1322
|
+
campaignId: number;
|
|
1323
|
+
/** Matched against active campaigns of the account when campaign_id is 0. */
|
|
1324
|
+
category: string;
|
|
1325
|
+
fallback: AdSlotFallback;
|
|
1326
|
+
/** Line shown above the creative ("Sponsored"). Empty = no label. */
|
|
1327
|
+
sponsoredLabel: string;
|
|
1328
|
+
};
|
|
1329
|
+
/** The Brand book's logo-header look, as it lands in the stand-in card. */
|
|
1330
|
+
export type LogoHeaderStyle = {
|
|
1331
|
+
src: string;
|
|
1332
|
+
darkSrc: string;
|
|
1333
|
+
align: TextAlign;
|
|
1334
|
+
/** CSS length, same contract as Image.width. */
|
|
1335
|
+
width: string;
|
|
1336
|
+
href: string;
|
|
1337
|
+
backgroundColor: string;
|
|
1338
|
+
padding?: EdgeInsets;
|
|
1339
|
+
};
|
|
1340
|
+
/**
|
|
1341
|
+
* Brand-book logo header; `applied` is what the brand last wrote into the stand-in
|
|
1342
|
+
* card, so a differing card value is the user's edit and survives "Apply brand styles".
|
|
1343
|
+
*/
|
|
1344
|
+
export type LogoHeaderData = {
|
|
1345
|
+
applied: LogoHeaderStyle;
|
|
1346
|
+
};
|
|
1302
1347
|
export type AiBuilderBlock_block_card = {
|
|
1303
1348
|
type: 'card';
|
|
1304
1349
|
data: AiBuilderCard;
|
|
@@ -1352,6 +1397,16 @@ export type AiBuilderBlock = {
|
|
|
1352
1397
|
* block's rendering and the oneof holds a stand-in card.
|
|
1353
1398
|
*/
|
|
1354
1399
|
news?: NewsData;
|
|
1400
|
+
/**
|
|
1401
|
+
* Ad slot sold by the account in its own newsletter. Same ownership contract
|
|
1402
|
+
* as products and news; the creative arrives at send time, not from here.
|
|
1403
|
+
*/
|
|
1404
|
+
adSlot?: AdSlotData;
|
|
1405
|
+
/**
|
|
1406
|
+
* Brand-book logo header. Unlike the repeaters it does not own the
|
|
1407
|
+
* rendering: the stand-in card IS the output.
|
|
1408
|
+
*/
|
|
1409
|
+
logoHeader?: LogoHeaderData;
|
|
1355
1410
|
block: AiBuilderBlock_block;
|
|
1356
1411
|
};
|
|
1357
1412
|
/**
|