@pushwoosh/rpc-gateway-messaging 0.6.131 → 0.6.133

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
@@ -559,6 +559,38 @@ export const data = {
559
559
  }
560
560
  }
561
561
  },
562
+ "pushwoosh.channels.messagingApi.v2.Stories.Page": {
563
+ "type": "I",
564
+ "fields": {
565
+ "image": {
566
+ "type": "string"
567
+ },
568
+ "duration": {
569
+ "type": "number"
570
+ },
571
+ "title": {
572
+ "type": "string"
573
+ },
574
+ "subtitle": {
575
+ "type": "string"
576
+ },
577
+ "link": {
578
+ "type": "string"
579
+ },
580
+ "buttonTitle": {
581
+ "type": "string"
582
+ }
583
+ }
584
+ },
585
+ "pushwoosh.channels.messagingApi.v2.Stories": {
586
+ "type": "I",
587
+ "fields": {
588
+ "pages": {
589
+ "type": "pushwoosh.channels.messagingApi.v2.Stories.Page",
590
+ "array": true
591
+ }
592
+ }
593
+ },
562
594
  "pushwoosh.channels.messagingApi.v2.LiveUpdate.Operation": {
563
595
  "type": "E",
564
596
  "values": [
@@ -780,6 +812,9 @@ export const data = {
780
812
  },
781
813
  "apnsPriority": {
782
814
  "type": "number"
815
+ },
816
+ "stories": {
817
+ "type": "pushwoosh.channels.messagingApi.v2.Stories"
783
818
  }
784
819
  }
785
820
  },
@@ -1311,6 +1346,15 @@ export const data = {
1311
1346
  },
1312
1347
  "allDevices": {
1313
1348
  "type": "boolean"
1349
+ },
1350
+ "image": {
1351
+ "type": "string"
1352
+ },
1353
+ "buttonCaption": {
1354
+ "type": "string"
1355
+ },
1356
+ "buttonAction": {
1357
+ "type": "string"
1314
1358
  }
1315
1359
  }
1316
1360
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-messaging",
3
- "version": "0.6.131",
3
+ "version": "0.6.133",
4
4
  "description": "Channels Messaging API gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -402,6 +402,28 @@ export type LiveActivity = {
402
402
  /** Unix time the activity starts. */
403
403
  start: number;
404
404
  };
405
+ export type Stories_Page = {
406
+ /** URL of the full-screen image; required. */
407
+ image: string;
408
+ /** Seconds the page stays on screen; the SDK defaults to about 5. */
409
+ duration: number;
410
+ /** Text overlaid on the page. */
411
+ title: string;
412
+ /** Secondary text overlaid on the page. */
413
+ subtitle: string;
414
+ /** Deep link or URL the page button opens; the button needs it. */
415
+ link: string;
416
+ /** Title of the page button. */
417
+ buttonTitle: string;
418
+ };
419
+ /**
420
+ * Stories is the iOS push stories block the SDK Content Extension plays when the push is
421
+ * expanded. It reaches the device as `pw_stories` with the proto field names as keys.
422
+ */
423
+ export type Stories = {
424
+ /** Pages in playback order, from 1 to 10. */
425
+ pages: Stories_Page[];
426
+ };
405
427
  export type LiveUpdate_Operation = 'OPERATION_UNSPECIFIED' | 'OPERATION_START' | 'OPERATION_UPDATE' | 'OPERATION_END';
406
428
  export type LiveUpdate_Segment = {
407
429
  /** Segment color, hex. */
@@ -542,6 +564,8 @@ export type Content_PlatformPropertiesIos = {
542
564
  * Live Activity updates default to 5 and stay silent until 10 is set here.
543
565
  */
544
566
  apnsPriority: number;
567
+ /** Push stories shown when the notification is expanded; needs the SDK stories Content Extension. */
568
+ stories: Stories;
545
569
  };
546
570
  export type Content_PlatformPropertiesAndroid = {
547
571
  /** Notification title. */
@@ -873,6 +897,13 @@ export type Content_PlatformPropertiesViber = {
873
897
  * (no need to distinguish unset from false).
874
898
  */
875
899
  allDevices: boolean;
900
+ /**
901
+ * Rich media (MStat types 107/108/109), ignored with template_id. image is a public URL;
902
+ * the button needs both caption and action (URL or viber:// deep link) and a body.
903
+ */
904
+ image: string;
905
+ buttonCaption: string;
906
+ buttonAction: string;
876
907
  };
877
908
  export type Content_PlatformPropertiesKakao = {
878
909
  /** Message text. */