@pushwoosh/rpc-gateway-ai-assistant 0.1.259 → 0.1.261

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
@@ -2395,6 +2395,16 @@ export const data = {
2395
2395
  }
2396
2396
  }
2397
2397
  },
2398
+ "pushwoosh.aigen.v1.PopupPosition": {
2399
+ "type": "E",
2400
+ "values": [
2401
+ "POPUP_POSITION_UNSPECIFIED",
2402
+ "POPUP_POSITION_FULLSCREEN",
2403
+ "POPUP_POSITION_TOP",
2404
+ "POPUP_POSITION_CENTER",
2405
+ "POPUP_POSITION_BOTTOM"
2406
+ ]
2407
+ },
2398
2408
  "pushwoosh.aigen.v1.AiGenDocumentToPopupHtmlRequest": {
2399
2409
  "type": "I",
2400
2410
  "fields": {
@@ -2412,6 +2422,9 @@ export const data = {
2412
2422
  },
2413
2423
  "closeButton": {
2414
2424
  "type": "pushwoosh.aigen.v1.PopupCloseButton"
2425
+ },
2426
+ "position": {
2427
+ "type": "pushwoosh.aigen.v1.PopupPosition"
2415
2428
  }
2416
2429
  }
2417
2430
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-ai-assistant",
3
- "version": "0.1.259",
3
+ "version": "0.1.261",
4
4
  "description": "AI Assistant api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -799,6 +799,12 @@ export type PopupCloseButton = {
799
799
  /** Offsets from the corner inset; negative values overhang the popup edge. */
800
800
  margin: pushwoosh_aibuilder_v1_EdgeInsets;
801
801
  };
802
+ /**
803
+ * Where the card sits on screen ("Position on screen" in the In-app settings),
804
+ * the other half of style_settings that renders. UNSPECIFIED is centred, which
805
+ * is also what FULLSCREEN and CENTER produce.
806
+ */
807
+ export type PopupPosition = 'POPUP_POSITION_UNSPECIFIED' | 'POPUP_POSITION_FULLSCREEN' | 'POPUP_POSITION_TOP' | 'POPUP_POSITION_CENTER' | 'POPUP_POSITION_BOTTOM';
802
808
  export type AiGenDocumentToPopupHtmlRequest = {
803
809
  document: pushwoosh_aibuilder_v1_AiBuilderDocument;
804
810
  /** Application id. Required: it scopes the request to the caller's account. */
@@ -811,6 +817,8 @@ export type AiGenDocumentToPopupHtmlRequest = {
811
817
  statisticsScriptUrl: string;
812
818
  /** Absent = the stored default. */
813
819
  closeButton: PopupCloseButton;
820
+ /** An edge offset authored on the document outranks this. */
821
+ position: PopupPosition;
814
822
  };
815
823
  export type AiGenDocumentToPopupHtmlResponse = {
816
824
  html: string;