@pushwoosh/rpc-v2-http-api-data 0.2.455 → 0.2.456

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
@@ -2555,6 +2555,14 @@ export const data = {
2555
2555
  "TEXT_ALIGN_RIGHT"
2556
2556
  ]
2557
2557
  },
2558
+ "pushwoosh.aibuilder.v1.ContentAlign": {
2559
+ "type": "E",
2560
+ "values": [
2561
+ "CONTENT_ALIGN_UNSPECIFIED",
2562
+ "CONTENT_ALIGN_CENTER",
2563
+ "CONTENT_ALIGN_LEFT"
2564
+ ]
2565
+ },
2558
2566
  "pushwoosh.aibuilder.v1.GroupAlign": {
2559
2567
  "type": "E",
2560
2568
  "values": [
@@ -2879,6 +2887,10 @@ export const data = {
2879
2887
  "backgroundImagePosition": {
2880
2888
  "type": "pushwoosh.aibuilder.v1.CardImagePosition",
2881
2889
  "optional": true
2890
+ },
2891
+ "contentAlign": {
2892
+ "type": "pushwoosh.aibuilder.v1.ContentAlign",
2893
+ "optional": true
2882
2894
  }
2883
2895
  }
2884
2896
  },
@@ -2924,6 +2936,10 @@ export const data = {
2924
2936
  "letterSpacing": {
2925
2937
  "type": "number",
2926
2938
  "optional": true
2939
+ },
2940
+ "lineHeight": {
2941
+ "type": "number",
2942
+ "optional": true
2927
2943
  }
2928
2944
  }
2929
2945
  },
@@ -4011,6 +4027,13 @@ export const data = {
4011
4027
  },
4012
4028
  "url": {
4013
4029
  "type": "string"
4030
+ },
4031
+ "annotation": {
4032
+ "type": "string"
4033
+ },
4034
+ "annotationTranslations": {
4035
+ "type": "string",
4036
+ "mapKeyType": "string"
4014
4037
  }
4015
4038
  }
4016
4039
  },
@@ -4084,6 +4107,12 @@ export const data = {
4084
4107
  },
4085
4108
  "pinned": {
4086
4109
  "type": "number"
4110
+ },
4111
+ "annotationTone": {
4112
+ "type": "string"
4113
+ },
4114
+ "annotationInstruction": {
4115
+ "type": "string"
4087
4116
  }
4088
4117
  }
4089
4118
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.455",
3
+ "version": "0.2.456",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -56,6 +56,10 @@ export type ButtonGroupAlign = 'BUTTON_GROUP_ALIGN_UNSPECIFIED' | 'BUTTON_GROUP_
56
56
  * sets it for headline/caption centring; preserved verbatim on edit.
57
57
  */
58
58
  export type TextAlign = 'TEXT_ALIGN_UNSPECIFIED' | 'TEXT_ALIGN_LEFT' | 'TEXT_ALIGN_CENTER' | 'TEXT_ALIGN_RIGHT';
59
+ /** Horizontal placement of the email content column in a client wider than it. */
60
+ export type ContentAlign =
61
+ /** Centred (the historical layout). */
62
+ 'CONTENT_ALIGN_UNSPECIFIED' | 'CONTENT_ALIGN_CENTER' | 'CONTENT_ALIGN_LEFT';
59
63
  /**
60
64
  * GroupAlign controls alignment of an AiBuilderGroup's children along
61
65
  * the perpendicular axis (for direction=VERTICAL → horizontal
@@ -389,6 +393,11 @@ export type DocumentSettings = {
389
393
  */
390
394
  backgroundImageFit?: CardImageFit;
391
395
  backgroundImagePosition?: CardImagePosition;
396
+ /**
397
+ * Where the content column sits in a wide client; unset = centred. Email only,
398
+ * client-managed render-only chrome like show_shadow.
399
+ */
400
+ contentAlign?: ContentAlign;
392
401
  };
393
402
  export type TextBlock = {
394
403
  variant: string;
@@ -452,6 +461,11 @@ export type TextBlock = {
452
461
  * TextVariantStyle.letter_spacing. Client-managed, like font_size.
453
462
  */
454
463
  letterSpacing?: number;
464
+ /**
465
+ * Per-item unitless line-height; unset (or 0) = inherit TextVariantStyle.line_height.
466
+ * Client-managed, like font_size; lost when the LLM regenerates the block.
467
+ */
468
+ lineHeight?: number;
455
469
  };
456
470
  export type ButtonActionHref = {
457
471
  url: string;
@@ -1252,6 +1266,9 @@ export type NewsItem = {
1252
1266
  author: string;
1253
1267
  category: string;
1254
1268
  url: string;
1269
+ /** Editorial intro under the title, AI-written in the builder and editable. */
1270
+ annotation: string;
1271
+ annotationTranslations: Record<string, string>;
1255
1272
  };
1256
1273
  export type NewsSource =
1257
1274
  /** Renders as MANUAL. */
@@ -1284,8 +1301,8 @@ export type NewsData = {
1284
1301
  /** Feed the articles were taken from, kept for the panel's Refresh. */
1285
1302
  feedUrl: string;
1286
1303
  /**
1287
- * Rendered-summary cap in characters. Unset = renderer default,
1288
- * explicit 0 = off.
1304
+ * Rendered-summary cap in characters. Unset = the whole summary,
1305
+ * explicit 0 = no summary at all (the AI intro stands in for it).
1289
1306
  */
1290
1307
  summaryLimit?: number;
1291
1308
  items: NewsItem[];
@@ -1306,6 +1323,12 @@ export type NewsData = {
1306
1323
  * Clamped to leave at least one feed cell; ignored by a MANUAL block.
1307
1324
  */
1308
1325
  pinned: number;
1326
+ /**
1327
+ * The AI intros panel's settings, kept so the next issue starts from them; the renderer
1328
+ * ignores both. Tone is "neutral" | "explanatory" | "witty", "" = neutral.
1329
+ */
1330
+ annotationTone: string;
1331
+ annotationInstruction: string;
1309
1332
  };
1310
1333
  /**
1311
1334
  * What an ad slot renders when no creative is resolved — no active campaign,