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

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
@@ -292,17 +292,29 @@ export const data = {
292
292
  }
293
293
  }
294
294
  },
295
+ "pushwoosh.aibuilder.v1.ButtonActionJs": {
296
+ "type": "I",
297
+ "fields": {
298
+ "onClick": {
299
+ "type": "string"
300
+ }
301
+ }
302
+ },
295
303
  "pushwoosh.aibuilder.v1.ButtonAction": {
296
304
  "type": "I",
297
305
  "fields": {
298
306
  "href": {
299
307
  "type": "pushwoosh.aibuilder.v1.ButtonActionHref"
308
+ },
309
+ "js": {
310
+ "type": "pushwoosh.aibuilder.v1.ButtonActionJs"
300
311
  }
301
312
  },
302
313
  "oneofs": {
303
314
  "action": {
304
315
  "oneof": [
305
- "href"
316
+ "href",
317
+ "js"
306
318
  ]
307
319
  }
308
320
  }
@@ -1376,6 +1388,9 @@ export const data = {
1376
1388
  },
1377
1389
  "subject": {
1378
1390
  "type": "string"
1391
+ },
1392
+ "mode": {
1393
+ "type": "pushwoosh.aigen.v1.AiGenMode"
1379
1394
  }
1380
1395
  }
1381
1396
  },
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.191",
4
4
  "description": "AI Assistant api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -305,11 +305,23 @@ export type TextBlock = {
305
305
  export type ButtonActionHref = {
306
306
  url: string;
307
307
  };
308
+ /**
309
+ * Web-popup only: the button runs an inline JS handler instead of
310
+ * navigating (Unlayer's "Custom Javascript" link type). Never emitted for
311
+ * EMAIL documents — mail clients strip script handlers.
312
+ */
313
+ export type ButtonActionJs = {
314
+ onClick: string;
315
+ };
308
316
  export type ButtonAction_action_href = {
309
317
  type: 'href';
310
318
  data: ButtonActionHref;
311
319
  };
312
- export type ButtonAction_action = ButtonAction_action_href;
320
+ export type ButtonAction_action_js = {
321
+ type: 'js';
322
+ data: ButtonActionJs;
323
+ };
324
+ export type ButtonAction_action = ButtonAction_action_href | ButtonAction_action_js;
313
325
  export type ButtonAction = {
314
326
  action: ButtonAction_action;
315
327
  };
@@ -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
  /**