@pushwoosh/rpc-gateway-ai-assistant 0.1.377 → 0.1.379

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
@@ -944,6 +944,49 @@ export const data = {
944
944
  }
945
945
  }
946
946
  },
947
+ "pushwoosh.aibuilder.v1.BarcodeSymbology": {
948
+ "type": "E",
949
+ "values": [
950
+ "BARCODE_SYMBOLOGY_UNSPECIFIED",
951
+ "BARCODE_SYMBOLOGY_CODE128",
952
+ "BARCODE_SYMBOLOGY_EAN13",
953
+ "BARCODE_SYMBOLOGY_EAN8",
954
+ "BARCODE_SYMBOLOGY_UPCA",
955
+ "BARCODE_SYMBOLOGY_QR"
956
+ ]
957
+ },
958
+ "pushwoosh.aibuilder.v1.Barcode": {
959
+ "type": "I",
960
+ "fields": {
961
+ "value": {
962
+ "type": "string"
963
+ },
964
+ "symbology": {
965
+ "type": "pushwoosh.aibuilder.v1.BarcodeSymbology"
966
+ },
967
+ "showText": {
968
+ "type": "boolean"
969
+ },
970
+ "width": {
971
+ "type": "number"
972
+ },
973
+ "height": {
974
+ "type": "number"
975
+ },
976
+ "foregroundColor": {
977
+ "type": "string"
978
+ },
979
+ "backgroundColor": {
980
+ "type": "string"
981
+ },
982
+ "ecLevel": {
983
+ "type": "string"
984
+ },
985
+ "quietModules": {
986
+ "type": "number"
987
+ }
988
+ }
989
+ },
947
990
  "pushwoosh.aibuilder.v1.RawHtml": {
948
991
  "type": "I",
949
992
  "fields": {
@@ -1113,6 +1156,9 @@ export const data = {
1113
1156
  "video": {
1114
1157
  "type": "pushwoosh.aibuilder.v1.Video"
1115
1158
  },
1159
+ "barcode": {
1160
+ "type": "pushwoosh.aibuilder.v1.Barcode"
1161
+ },
1116
1162
  "padding": {
1117
1163
  "type": "pushwoosh.aibuilder.v1.EdgeInsets",
1118
1164
  "optional": true
@@ -1146,7 +1192,8 @@ export const data = {
1146
1192
  "rawHtml",
1147
1193
  "menu",
1148
1194
  "social",
1149
- "video"
1195
+ "video",
1196
+ "barcode"
1150
1197
  ]
1151
1198
  }
1152
1199
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-ai-assistant",
3
- "version": "0.1.377",
3
+ "version": "0.1.379",
4
4
  "description": "AI Assistant api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -658,6 +658,36 @@ export type Timer = {
658
658
  digitFontWeight: number;
659
659
  labelFontWeight: number;
660
660
  };
661
+ export type BarcodeSymbology =
662
+ /** treated as CODE128 */
663
+ 'BARCODE_SYMBOLOGY_UNSPECIFIED' | 'BARCODE_SYMBOLOGY_CODE128' | 'BARCODE_SYMBOLOGY_EAN13' | 'BARCODE_SYMBOLOGY_EAN8' | 'BARCODE_SYMBOLOGY_UPCA' | 'BARCODE_SYMBOLOGY_QR';
664
+ /**
665
+ * Barcode rendered from a voucher code by this service's public
666
+ * /barcode/v1/code.png endpoint. Client-managed: the LLM never invents codes.
667
+ */
668
+ export type Barcode = {
669
+ /**
670
+ * What to encode. Normally a placeholder ({{voucher}} or a Dynamic Content
671
+ * tag) resolved per recipient by the send pipeline, not a literal code.
672
+ */
673
+ value: string;
674
+ symbology: BarcodeSymbology;
675
+ /** Print the value in digits under the code, for keying it in by hand. */
676
+ showText: boolean;
677
+ /** Canvas size in px; 0 = renderer default (600x200, QR 400x400). */
678
+ width: number;
679
+ height: number;
680
+ /**
681
+ * Hex "#rrggbb"; empty = black on white. A tinted background is a scan
682
+ * risk, so the renderer always fills it opaque.
683
+ */
684
+ foregroundColor: string;
685
+ backgroundColor: string;
686
+ /** QR error correction: L, M, Q or H; empty = M. Ignored by 1D symbologies. */
687
+ ecLevel: string;
688
+ /** Blank margin per side in modules; 0 = renderer default (10, QR 4). */
689
+ quietModules: number;
690
+ };
661
691
  /**
662
692
  * An Unlayer HTML widget. The markup is deliberately kept verbatim: unlike
663
693
  * TextBlock.text this is a complete, user-authored HTML fragment and flattening
@@ -792,7 +822,11 @@ export type ContentItem_item_video = {
792
822
  type: 'video';
793
823
  data: Video;
794
824
  };
795
- export type ContentItem_item = ContentItem_item_text | ContentItem_item_buttonGroup | ContentItem_item_list | ContentItem_item_image | ContentItem_item_form | ContentItem_item_timer | ContentItem_item_rawHtml | ContentItem_item_menu | ContentItem_item_social | ContentItem_item_video;
825
+ export type ContentItem_item_barcode = {
826
+ type: 'barcode';
827
+ data: Barcode;
828
+ };
829
+ export type ContentItem_item = ContentItem_item_text | ContentItem_item_buttonGroup | ContentItem_item_list | ContentItem_item_image | ContentItem_item_form | ContentItem_item_timer | ContentItem_item_rawHtml | ContentItem_item_menu | ContentItem_item_social | ContentItem_item_video | ContentItem_item_barcode;
796
830
  export type ContentItem = {
797
831
  /**
798
832
  * Container padding of the item. Unset = client's default inter-item gap;
@@ -831,9 +831,9 @@ export type AiGenDocumentToHtmlRequest = {
831
831
  */
832
832
  application: string;
833
833
  /**
834
- * Base URL for the countdown-GIF service baked into timer items. Empty =
835
- * the server default. Note it lands in SENT EMAIL, fetched by recipients'
836
- * mail clients, so it is never a localhost route.
834
+ * Base URL of this service's public image endpoints (countdown GIF, barcode
835
+ * PNG). Empty = the server default. Note it lands in SENT EMAIL, fetched by
836
+ * recipients' mail clients, so it is never a localhost route.
837
837
  */
838
838
  timerBaseUrl: string;
839
839
  /**