@pushwoosh/rpc-gateway-messaging 0.6.46 → 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
@@ -500,6 +500,65 @@ export const data = {
500
500
  }
501
501
  }
502
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
+ },
503
562
  "pushwoosh.channels.messagingApi.v2.Link.Shortener": {
504
563
  "type": "E",
505
564
  "values": [
@@ -709,6 +768,9 @@ export const data = {
709
768
  },
710
769
  "inbox": {
711
770
  "type": "pushwoosh.channels.messagingApi.v2.Inbox"
771
+ },
772
+ "liveUpdate": {
773
+ "type": "pushwoosh.channels.messagingApi.v2.LiveUpdate"
712
774
  }
713
775
  }
714
776
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-messaging",
3
- "version": "0.6.46",
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",
@@ -280,6 +280,34 @@ export type LiveActivity = {
280
280
  attributes: object;
281
281
  start: number;
282
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
+ };
283
311
  export type Link_Shortener = 'NONE' | 'BITLY';
284
312
  export type Link = {
285
313
  url: string;
@@ -364,6 +392,7 @@ export type Content_PlatformPropertiesAndroid = {
364
392
  groupId: string;
365
393
  collapseKey: string;
366
394
  inbox: Inbox;
395
+ liveUpdate: LiveUpdate;
367
396
  };
368
397
  export type Content_PlatformPropertiesChrome = {
369
398
  title: string;