@pushwoosh/rpc-v2-http-api-data 0.2.408 → 0.2.410

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
@@ -23834,7 +23834,9 @@ export const data = {
23834
23834
  "ASPECT_RATIO_16_9",
23835
23835
  "ASPECT_RATIO_16_10",
23836
23836
  "ASPECT_RATIO_21_9",
23837
- "ASPECT_RATIO_9_16"
23837
+ "ASPECT_RATIO_9_16",
23838
+ "ASPECT_RATIO_2_1",
23839
+ "ASPECT_RATIO_3_1"
23838
23840
  ]
23839
23841
  },
23840
23842
  "pushwoosh.rpc_v2.media_files.CreateVariantRequest": {
@@ -36870,6 +36872,46 @@ export const data = {
36870
36872
  },
36871
36873
  "buttonAction": {
36872
36874
  "type": "string"
36875
+ },
36876
+ "carousel": {
36877
+ "type": "pushwoosh.rpc_v2.viber_presets.ViberPromoCarousel"
36878
+ }
36879
+ }
36880
+ },
36881
+ "pushwoosh.rpc_v2.viber_presets.ViberPromoCarousel": {
36882
+ "type": "I",
36883
+ "fields": {
36884
+ "items": {
36885
+ "type": "pushwoosh.rpc_v2.viber_presets.ViberPromoCarouselItem",
36886
+ "array": true
36887
+ }
36888
+ }
36889
+ },
36890
+ "pushwoosh.rpc_v2.viber_presets.ViberPromoCarouselItem": {
36891
+ "type": "I",
36892
+ "fields": {
36893
+ "title": {
36894
+ "type": "string"
36895
+ },
36896
+ "image": {
36897
+ "type": "string"
36898
+ },
36899
+ "primaryButton": {
36900
+ "type": "pushwoosh.rpc_v2.viber_presets.ViberPromoCarouselButton"
36901
+ },
36902
+ "secondaryButton": {
36903
+ "type": "pushwoosh.rpc_v2.viber_presets.ViberPromoCarouselButton"
36904
+ }
36905
+ }
36906
+ },
36907
+ "pushwoosh.rpc_v2.viber_presets.ViberPromoCarouselButton": {
36908
+ "type": "I",
36909
+ "fields": {
36910
+ "caption": {
36911
+ "type": "string"
36912
+ },
36913
+ "action": {
36914
+ "type": "string"
36873
36915
  }
36874
36916
  }
36875
36917
  },
package/media_files.d.ts CHANGED
@@ -14,7 +14,11 @@ export interface MediaFilesService {
14
14
  GetUsage: MediaFilesService_GetUsage;
15
15
  }
16
16
  /** AspectRatio enumerates the supported aspect ratios for image variants. */
17
- export type AspectRatio = 'ASPECT_RATIO_UNSPECIFIED' | 'ASPECT_RATIO_1_1' | 'ASPECT_RATIO_4_3' | 'ASPECT_RATIO_3_2' | 'ASPECT_RATIO_4_5' | 'ASPECT_RATIO_5_4' | 'ASPECT_RATIO_16_9' | 'ASPECT_RATIO_16_10' | 'ASPECT_RATIO_21_9' | 'ASPECT_RATIO_9_16';
17
+ export type AspectRatio = 'ASPECT_RATIO_UNSPECIFIED' | 'ASPECT_RATIO_1_1' | 'ASPECT_RATIO_4_3' | 'ASPECT_RATIO_3_2' | 'ASPECT_RATIO_4_5' | 'ASPECT_RATIO_5_4' | 'ASPECT_RATIO_16_9' | 'ASPECT_RATIO_16_10' | 'ASPECT_RATIO_21_9' | 'ASPECT_RATIO_9_16'
18
+ /** Android big picture. */
19
+ | 'ASPECT_RATIO_2_1'
20
+ /** Apple Wallet strip and logo. */
21
+ | 'ASPECT_RATIO_3_1';
18
22
  export type CreateVariantRequest_size_width = {
19
23
  type: 'width';
20
24
  data: number;
@@ -50,7 +54,7 @@ export type UploadMediaFileRequest = {
50
54
  /** MIME type of the image (image/jpeg, image/png, image/gif, image/webp); auto-detected from the bytes when empty. */
51
55
  mimeType: string;
52
56
  description?: string;
53
- /** Where the image was imported from: empty for a file from disk, "canva" or "figma". */
57
+ /** Where the image came from: empty for a file from disk, "canva", "figma", "ai" or "stock". */
54
58
  source: string;
55
59
  /** Provider-side identity of the image as a JSON object, e.g. {"design_id": "...", "page": 2}. */
56
60
  sourceRef: string;
@@ -146,7 +150,10 @@ export type MediaFile = {
146
150
  description?: string;
147
151
  /** parent_uuid is set on variants and points to the original image's uuid. */
148
152
  parentUuid?: string;
149
- /** source is where the image was imported from: empty for a file from disk, "canva" or "figma". */
153
+ /**
154
+ * source is where the image came from: empty for a file from disk, "canva", "figma",
155
+ * "ai" (generated) or "stock" (stock photo import).
156
+ */
150
157
  source: string;
151
158
  /** version is 0 for the first upload of an image and grows with every new version of it. */
152
159
  version: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.408",
3
+ "version": "0.2.410",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -1,7 +1,7 @@
1
1
  import { RpcMethod } from './commonTypes';
2
2
  export type ViberPresetsService_List = RpcMethod<ListViberPresetsRequest, ListViberPresetsResponse>;
3
3
  export interface ViberPresetsService {
4
- /** Lists Viber message templates for an application, fetched live from the external MStat Omni Messaging provider: approved transactional templates (sent by code) and saved promo templates (text, image and button copied into the message). Use to pick a Viber template before composing a Viber send. */
4
+ /** Lists Viber message templates for an application, fetched live from the external MStat Omni Messaging provider: approved transactional templates (sent by code) and saved promo templates (text, image and button, or text and carousel cards, copied into the message). Use to pick a Viber template before composing a Viber send. */
5
5
  List: ViberPresetsService_List;
6
6
  }
7
7
  export type ListViberPresetsRequest = {
@@ -24,12 +24,28 @@ export type ViberPreset = {
24
24
  };
25
25
  export type ViberPresetKind = 'VIBER_PRESET_KIND_UNSPECIFIED' | 'VIBER_PRESET_KIND_TRANSACTIONAL' | 'VIBER_PRESET_KIND_PROMO';
26
26
  export type ViberPromoContent = {
27
- /** MStat message type: 106 text, 107 image, 108 text+image(+button), 109 text+button */
27
+ /** MStat message type: 106 text, 107 image, 108 text+image(+button), 109 text+button, 901 carousel; 6-9 are smartphone-only twins of 106-109 */
28
28
  type: number;
29
29
  text: string;
30
30
  image: string;
31
31
  buttonCaption: string;
32
32
  buttonAction: string;
33
+ /** Set for type 901 only: 2-5 cards shown under text. */
34
+ carousel: ViberPromoCarousel;
35
+ };
36
+ export type ViberPromoCarousel = {
37
+ items: ViberPromoCarouselItem[];
38
+ };
39
+ export type ViberPromoCarouselItem = {
40
+ title: string;
41
+ image: string;
42
+ primaryButton: ViberPromoCarouselButton;
43
+ /** optional */
44
+ secondaryButton: ViberPromoCarouselButton;
45
+ };
46
+ export type ViberPromoCarouselButton = {
47
+ caption: string;
48
+ action: string;
33
49
  };
34
50
  export type ViberPresetLocale = {
35
51
  lang: string;