@pushwoosh/rpc-gateway-messaging 0.6.45 → 0.6.47

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
@@ -41,6 +41,9 @@ export const data = {
41
41
  },
42
42
  "lastResend": {
43
43
  "type": "Date"
44
+ },
45
+ "sendDate": {
46
+ "type": "Date"
44
47
  }
45
48
  }
46
49
  },
@@ -497,6 +500,65 @@ export const data = {
497
500
  }
498
501
  }
499
502
  },
503
+ "pushwoosh.channels.messagingApi.v2.LiveUpdate.Operation": {
504
+ "type": "E",
505
+ "values": [
506
+ "OPERATION_UNSPECIFIED",
507
+ "OPERATION_START",
508
+ "OPERATION_UPDATE",
509
+ "OPERATION_END"
510
+ ]
511
+ },
512
+ "pushwoosh.channels.messagingApi.v2.LiveUpdate.Segment": {
513
+ "type": "I",
514
+ "fields": {
515
+ "color": {
516
+ "type": "string"
517
+ },
518
+ "length": {
519
+ "type": "number"
520
+ }
521
+ }
522
+ },
523
+ "pushwoosh.channels.messagingApi.v2.LiveUpdate": {
524
+ "type": "I",
525
+ "fields": {
526
+ "operation": {
527
+ "type": "pushwoosh.channels.messagingApi.v2.LiveUpdate.Operation"
528
+ },
529
+ "id": {
530
+ "type": "string"
531
+ },
532
+ "progress": {
533
+ "type": "number"
534
+ },
535
+ "progressIndeterminate": {
536
+ "type": "boolean"
537
+ },
538
+ "progressBar": {
539
+ "type": "boolean"
540
+ },
541
+ "segments": {
542
+ "type": "pushwoosh.channels.messagingApi.v2.LiveUpdate.Segment",
543
+ "array": true
544
+ },
545
+ "extras": {
546
+ "type": "object"
547
+ },
548
+ "when": {
549
+ "type": "number"
550
+ },
551
+ "chronometer": {
552
+ "type": "boolean"
553
+ },
554
+ "chronometerCountDown": {
555
+ "type": "boolean"
556
+ },
557
+ "showWhen": {
558
+ "type": "boolean"
559
+ }
560
+ }
561
+ },
500
562
  "pushwoosh.channels.messagingApi.v2.Link.Shortener": {
501
563
  "type": "E",
502
564
  "values": [
@@ -706,6 +768,9 @@ export const data = {
706
768
  },
707
769
  "inbox": {
708
770
  "type": "pushwoosh.channels.messagingApi.v2.Inbox"
771
+ },
772
+ "liveUpdate": {
773
+ "type": "pushwoosh.channels.messagingApi.v2.LiveUpdate"
709
774
  }
710
775
  }
711
776
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-messaging",
3
- "version": "0.6.45",
3
+ "version": "0.6.47",
4
4
  "description": "Channels Messaging API gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -23,6 +23,7 @@ export type MessageStalled = {
23
23
  lastUpdated: Date;
24
24
  /** Last resend; unset if the message was never resent. */
25
25
  lastResend: Date;
26
+ sendDate: Date;
26
27
  };
27
28
  export type ListRequest = {};
28
29
  export type ListResponse = {
@@ -279,6 +280,34 @@ export type LiveActivity = {
279
280
  attributes: object;
280
281
  start: number;
281
282
  };
283
+ export type LiveUpdate_Operation = 'OPERATION_UNSPECIFIED' | 'OPERATION_START' | 'OPERATION_UPDATE' | 'OPERATION_END';
284
+ export type LiveUpdate_Segment = {
285
+ color: string;
286
+ length: number;
287
+ };
288
+ /**
289
+ * LiveUpdate is the Android Live Updates payload (Android 16 / API 36),
290
+ * the Android counterpart of LiveActivity. It is serialized with protojson
291
+ * into the android_live_update message property and emitted on the wire as a
292
+ * dedicated pw_live object (never via root_params). Declared top-level so that
293
+ * Huawei/Baidu can adopt it later with a one-line proto change; FCM only for now.
294
+ * The json_name annotations define the exact pw_live wire keys verbatim.
295
+ */
296
+ export type LiveUpdate = {
297
+ /** required */
298
+ operation: LiveUpdate_Operation;
299
+ /** required */
300
+ id: string;
301
+ progress: number;
302
+ progressIndeterminate: boolean;
303
+ progressBar: boolean;
304
+ segments: LiveUpdate_Segment[];
305
+ extras: object;
306
+ when: number;
307
+ chronometer: boolean;
308
+ chronometerCountDown: boolean;
309
+ showWhen: boolean;
310
+ };
282
311
  export type Link_Shortener = 'NONE' | 'BITLY';
283
312
  export type Link = {
284
313
  url: string;
@@ -363,6 +392,7 @@ export type Content_PlatformPropertiesAndroid = {
363
392
  groupId: string;
364
393
  collapseKey: string;
365
394
  inbox: Inbox;
395
+ liveUpdate: LiveUpdate;
366
396
  };
367
397
  export type Content_PlatformPropertiesChrome = {
368
398
  title: string;