@pushwoosh/rpc-gateway-ai-assistant 0.1.190 → 0.1.192

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
@@ -161,6 +161,10 @@ export const data = {
161
161
  "borderRadius": {
162
162
  "type": "number",
163
163
  "optional": true
164
+ },
165
+ "borderRadiusCss": {
166
+ "type": "string",
167
+ "optional": true
164
168
  }
165
169
  }
166
170
  },
@@ -292,17 +296,29 @@ export const data = {
292
296
  }
293
297
  }
294
298
  },
299
+ "pushwoosh.aibuilder.v1.ButtonActionJs": {
300
+ "type": "I",
301
+ "fields": {
302
+ "onClick": {
303
+ "type": "string"
304
+ }
305
+ }
306
+ },
295
307
  "pushwoosh.aibuilder.v1.ButtonAction": {
296
308
  "type": "I",
297
309
  "fields": {
298
310
  "href": {
299
311
  "type": "pushwoosh.aibuilder.v1.ButtonActionHref"
312
+ },
313
+ "js": {
314
+ "type": "pushwoosh.aibuilder.v1.ButtonActionJs"
300
315
  }
301
316
  },
302
317
  "oneofs": {
303
318
  "action": {
304
319
  "oneof": [
305
- "href"
320
+ "href",
321
+ "js"
306
322
  ]
307
323
  }
308
324
  }
@@ -1376,6 +1392,9 @@ export const data = {
1376
1392
  },
1377
1393
  "subject": {
1378
1394
  "type": "string"
1395
+ },
1396
+ "mode": {
1397
+ "type": "pushwoosh.aigen.v1.AiGenMode"
1379
1398
  }
1380
1399
  }
1381
1400
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-ai-assistant",
3
- "version": "0.1.190",
3
+ "version": "0.1.192",
4
4
  "description": "AI Assistant api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -187,8 +187,8 @@ export type EdgeInsets = {
187
187
  * LLM-managed: background_color, border_color, border_radius — the
188
188
  * block generator may emit these via AiGenBlockStyles and the
189
189
  * pipeline lifts them into BlockStyles.
190
- * Client-managed: border_width — the LLM never sees it, the backend
191
- * preserves it verbatim across edits.
190
+ * Client-managed: border_width and border_radius_css — the LLM never sees
191
+ * them, the backend preserves them verbatim across edits.
192
192
  */
193
193
  export type BlockStyles = {
194
194
  /**
@@ -205,6 +205,12 @@ export type BlockStyles = {
205
205
  borderWidth?: number;
206
206
  /** Explicit 0 is distinct from unset and preserved. */
207
207
  borderRadius?: number;
208
+ /**
209
+ * CSS border-radius shorthand for per-corner rounding ("20px 20px 0px
210
+ * 0px"). Written by Unlayer conversion; clients render border_radius
211
+ * when set (user-edited uniform value wins), else this.
212
+ */
213
+ borderRadiusCss?: string;
208
214
  };
209
215
  /** Two-stop CSS linear gradient: `linear-gradient(<angle>deg, from, to)`. */
210
216
  export type BackgroundGradient = {
@@ -305,11 +311,23 @@ export type TextBlock = {
305
311
  export type ButtonActionHref = {
306
312
  url: string;
307
313
  };
314
+ /**
315
+ * Web-popup only: the button runs an inline JS handler instead of
316
+ * navigating (Unlayer's "Custom Javascript" link type). Never emitted for
317
+ * EMAIL documents — mail clients strip script handlers.
318
+ */
319
+ export type ButtonActionJs = {
320
+ onClick: string;
321
+ };
308
322
  export type ButtonAction_action_href = {
309
323
  type: 'href';
310
324
  data: ButtonActionHref;
311
325
  };
312
- export type ButtonAction_action = ButtonAction_action_href;
326
+ export type ButtonAction_action_js = {
327
+ type: 'js';
328
+ data: ButtonActionJs;
329
+ };
330
+ export type ButtonAction_action = ButtonAction_action_href | ButtonAction_action_js;
313
331
  export type ButtonAction = {
314
332
  action: ButtonAction_action;
315
333
  };
@@ -585,6 +585,14 @@ export type AiGenConvertUnlayerRequest = {
585
585
  */
586
586
  templateName: string;
587
587
  subject: string;
588
+ /**
589
+ * Document-domain profile to convert into. UNSPECIFIED is treated as
590
+ * EMAIL for wire compatibility with earlier clients. WEB_POPUP converts
591
+ * an Unlayer popup design (displayMode "popup"): body.values.popup*
592
+ * map to PopupSettings and the popup container width/background, and no
593
+ * EmailSettings are produced. Other modes are rejected.
594
+ */
595
+ mode: AiGenMode;
588
596
  };
589
597
  export type AiGenConvertUnlayerResponse = {
590
598
  /**