@wppconnect/wa-proto 2.3000.1056008220 → 2.3000.1056166380

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/dist/index.js CHANGED
@@ -21334,10 +21334,26 @@ $root.waproto = (function() {
21334
21334
  case 91:
21335
21335
  message.capabilities[message.capabilities.length] = 91;
21336
21336
  break;
21337
+ case "HATCH_DEVICE_NODE_HOST":
21338
+ case 92:
21339
+ message.capabilities[message.capabilities.length] = 92;
21340
+ break;
21337
21341
  case "AI_MUSE_JARVIS_PAYLOAD_GZIP_ENABLED":
21338
21342
  case 93:
21339
21343
  message.capabilities[message.capabilities.length] = 93;
21340
21344
  break;
21345
+ case "AI_RICH_RESPONSE_A2UI_CARDS_ENABLED":
21346
+ case 94:
21347
+ message.capabilities[message.capabilities.length] = 94;
21348
+ break;
21349
+ case "AI_RICH_RESPONSE_READ_ALOUD_LENGTH_APPROXIMATION_ENABLED":
21350
+ case 95:
21351
+ message.capabilities[message.capabilities.length] = 95;
21352
+ break;
21353
+ case "AI_RICH_RESPONSE_READ_ALOUD_ACTION_TRAY_ENABLED":
21354
+ case 96:
21355
+ message.capabilities[message.capabilities.length] = 96;
21356
+ break;
21341
21357
  default:
21342
21358
  if (typeof object.capabilities[i] === "number" && (object.capabilities[i] | 0) === object.capabilities[i])
21343
21359
  message.capabilities[message.capabilities.length] = object.capabilities[i];
@@ -21494,7 +21510,11 @@ $root.waproto = (function() {
21494
21510
  * @property {number} RICH_RESPONSE_SIDE_BY_SIDE_BUFFER_BOTH=89 RICH_RESPONSE_SIDE_BY_SIDE_BUFFER_BOTH value
21495
21511
  * @property {number} AI_MUSE_JARVIS_ENVELOPE_GZIP_ENABLED=90 AI_MUSE_JARVIS_ENVELOPE_GZIP_ENABLED value
21496
21512
  * @property {number} AI_RICH_RESPONSE_INLINE_MEDIA_LIGHTBOX_ENABLED=91 AI_RICH_RESPONSE_INLINE_MEDIA_LIGHTBOX_ENABLED value
21513
+ * @property {number} HATCH_DEVICE_NODE_HOST=92 HATCH_DEVICE_NODE_HOST value
21497
21514
  * @property {number} AI_MUSE_JARVIS_PAYLOAD_GZIP_ENABLED=93 AI_MUSE_JARVIS_PAYLOAD_GZIP_ENABLED value
21515
+ * @property {number} AI_RICH_RESPONSE_A2UI_CARDS_ENABLED=94 AI_RICH_RESPONSE_A2UI_CARDS_ENABLED value
21516
+ * @property {number} AI_RICH_RESPONSE_READ_ALOUD_LENGTH_APPROXIMATION_ENABLED=95 AI_RICH_RESPONSE_READ_ALOUD_LENGTH_APPROXIMATION_ENABLED value
21517
+ * @property {number} AI_RICH_RESPONSE_READ_ALOUD_ACTION_TRAY_ENABLED=96 AI_RICH_RESPONSE_READ_ALOUD_ACTION_TRAY_ENABLED value
21498
21518
  */
21499
21519
  BotCapabilityMetadata.BotCapabilityType = (function() {
21500
21520
  var valuesById = $Object.create(null), values = $Object.create(valuesById);
@@ -21590,7 +21610,11 @@ $root.waproto = (function() {
21590
21610
  values[valuesById[89] = "RICH_RESPONSE_SIDE_BY_SIDE_BUFFER_BOTH"] = 89;
21591
21611
  values[valuesById[90] = "AI_MUSE_JARVIS_ENVELOPE_GZIP_ENABLED"] = 90;
21592
21612
  values[valuesById[91] = "AI_RICH_RESPONSE_INLINE_MEDIA_LIGHTBOX_ENABLED"] = 91;
21613
+ values[valuesById[92] = "HATCH_DEVICE_NODE_HOST"] = 92;
21593
21614
  values[valuesById[93] = "AI_MUSE_JARVIS_PAYLOAD_GZIP_ENABLED"] = 93;
21615
+ values[valuesById[94] = "AI_RICH_RESPONSE_A2UI_CARDS_ENABLED"] = 94;
21616
+ values[valuesById[95] = "AI_RICH_RESPONSE_READ_ALOUD_LENGTH_APPROXIMATION_ENABLED"] = 95;
21617
+ values[valuesById[96] = "AI_RICH_RESPONSE_READ_ALOUD_ACTION_TRAY_ENABLED"] = 96;
21594
21618
  return values;
21595
21619
  })();
21596
21620
 
@@ -71619,6 +71643,7 @@ $root.waproto = (function() {
71619
71643
  * @property {number|null} [nonE2EeType] Conversation nonE2EeType
71620
71644
  * @property {waproto.NonE2EEAttestation.AccountType|null} [contactAccountEncryptionAttestationType] Conversation contactAccountEncryptionAttestationType
71621
71645
  * @property {number|null} [unreadReplyToMyMessageCount] Conversation unreadReplyToMyMessageCount
71646
+ * @property {waproto.ConversationDraft.$Properties|null} [draft] Conversation draft
71622
71647
  * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
71623
71648
  */
71624
71649
 
@@ -71703,6 +71728,7 @@ $root.waproto = (function() {
71703
71728
  * nonE2EeType?: number|null;
71704
71729
  * contactAccountEncryptionAttestationType?: waproto.NonE2EEAttestation.AccountType|null;
71705
71730
  * unreadReplyToMyMessageCount?: number|null;
71731
+ * draft?: waproto.ConversationDraft.$Shape|null;
71706
71732
  * $unknowns?: Array.<Uint8Array>;
71707
71733
  * }} waproto.Conversation.$Shape
71708
71734
  */
@@ -72285,6 +72311,14 @@ $root.waproto = (function() {
72285
72311
  */
72286
72312
  Conversation.prototype.unreadReplyToMyMessageCount = null;
72287
72313
 
72314
+ /**
72315
+ * Conversation draft.
72316
+ * @member {waproto.ConversationDraft.$Properties|null|undefined} draft
72317
+ * @memberof waproto.Conversation
72318
+ * @instance
72319
+ */
72320
+ Conversation.prototype.draft = null;
72321
+
72288
72322
  // OneOf field names bound to virtual getters and setters
72289
72323
  var $oneOfFields;
72290
72324
 
@@ -72684,6 +72718,12 @@ $root.waproto = (function() {
72684
72718
  set: $util.oneOfSetter($oneOfFields)
72685
72719
  });
72686
72720
 
72721
+ // Virtual OneOf for proto3 optional field
72722
+ $Object.defineProperty(Conversation.prototype, "_draft", {
72723
+ get: $util.oneOfGetter($oneOfFields = ["draft"]),
72724
+ set: $util.oneOfSetter($oneOfFields)
72725
+ });
72726
+
72687
72727
  /**
72688
72728
  * Creates a new Conversation instance using the specified properties.
72689
72729
  * @function create
@@ -72858,6 +72898,8 @@ $root.waproto = (function() {
72858
72898
  writer.uint32(/* id 69, wireType 0 =*/552).int32(message.contactAccountEncryptionAttestationType);
72859
72899
  if (message.unreadReplyToMyMessageCount != null && $Object.hasOwnProperty.call(message, "unreadReplyToMyMessageCount"))
72860
72900
  writer.uint32(/* id 70, wireType 0 =*/560).uint32(message.unreadReplyToMyMessageCount);
72901
+ if (message.draft != null && $Object.hasOwnProperty.call(message, "draft"))
72902
+ $root.waproto.ConversationDraft.encode(message.draft, writer.uint32(/* id 71, wireType 2 =*/570).fork(), _depth + 1).ldelim();
72861
72903
  if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
72862
72904
  for (var i = 0; i < message.$unknowns.length; ++i)
72863
72905
  writer.raw(message.$unknowns[i]);
@@ -73407,6 +73449,13 @@ $root.waproto = (function() {
73407
73449
  message._unreadReplyToMyMessageCount = "unreadReplyToMyMessageCount";
73408
73450
  continue;
73409
73451
  }
73452
+ case 71: {
73453
+ if (wireType !== 2)
73454
+ break;
73455
+ message.draft = $root.waproto.ConversationDraft.decode(reader, reader.size(), $undefined, _depth + 1, message.draft);
73456
+ message._draft = "draft";
73457
+ continue;
73458
+ }
73410
73459
  }
73411
73460
  reader.skipType(wireType, _depth, tag);
73412
73461
  if (!reader.discardUnknown) {
@@ -73829,6 +73878,14 @@ $root.waproto = (function() {
73829
73878
  if (!$util.isInteger(message.unreadReplyToMyMessageCount))
73830
73879
  return "unreadReplyToMyMessageCount: integer expected";
73831
73880
  }
73881
+ if (message.draft != null && $Object.hasOwnProperty.call(message, "draft")) {
73882
+ properties._draft = 1;
73883
+ {
73884
+ var error = $root.waproto.ConversationDraft.verify(message.draft, _depth + 1);
73885
+ if (error)
73886
+ return "draft." + error;
73887
+ }
73888
+ }
73832
73889
  return null;
73833
73890
  };
73834
73891
 
@@ -74197,6 +74254,11 @@ $root.waproto = (function() {
74197
74254
  }
74198
74255
  if (object.unreadReplyToMyMessageCount != null)
74199
74256
  message.unreadReplyToMyMessageCount = object.unreadReplyToMyMessageCount >>> 0;
74257
+ if (object.draft != null) {
74258
+ if (!$util.isObject(object.draft))
74259
+ throw $TypeError(".waproto.Conversation.draft: object expected");
74260
+ message.draft = $root.waproto.ConversationDraft.fromObject(object.draft, _depth + 1);
74261
+ }
74200
74262
  return message;
74201
74263
  };
74202
74264
 
@@ -74418,6 +74480,8 @@ $root.waproto = (function() {
74418
74480
  object.contactAccountEncryptionAttestationType = options.enums === $String ? $root.waproto.NonE2EEAttestation.AccountType[message.contactAccountEncryptionAttestationType] === $undefined ? message.contactAccountEncryptionAttestationType : $root.waproto.NonE2EEAttestation.AccountType[message.contactAccountEncryptionAttestationType] : message.contactAccountEncryptionAttestationType;
74419
74481
  if (message.unreadReplyToMyMessageCount != null && $Object.hasOwnProperty.call(message, "unreadReplyToMyMessageCount"))
74420
74482
  object.unreadReplyToMyMessageCount = message.unreadReplyToMyMessageCount;
74483
+ if (message.draft != null && $Object.hasOwnProperty.call(message, "draft"))
74484
+ object.draft = $root.waproto.ConversationDraft.toObject(message.draft, options, _depth + 1);
74421
74485
  return object;
74422
74486
  };
74423
74487
 
@@ -74485,6 +74549,377 @@ $root.waproto = (function() {
74485
74549
  return Conversation;
74486
74550
  })();
74487
74551
 
74552
+ waproto.ConversationDraft = (function() {
74553
+
74554
+ /**
74555
+ * Properties of a ConversationDraft.
74556
+ * @typedef {Object} waproto.ConversationDraft.$Properties
74557
+ * @property {waproto.Message.$Properties|null} [content] ConversationDraft content
74558
+ * @property {number|Long|null} [editTimestampMs] ConversationDraft editTimestampMs
74559
+ * @property {number|null} [editorDeviceId] ConversationDraft editorDeviceId
74560
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
74561
+ */
74562
+
74563
+ /**
74564
+ * Properties of a ConversationDraft.
74565
+ * @memberof waproto
74566
+ * @interface IConversationDraft
74567
+ * @augments waproto.ConversationDraft.$Properties
74568
+ * @deprecated Use waproto.ConversationDraft.$Properties instead.
74569
+ */
74570
+
74571
+ /**
74572
+ * Shape of a ConversationDraft.
74573
+ * @typedef {{
74574
+ * content?: waproto.Message.$Shape|null;
74575
+ * editTimestampMs?: number|Long|null;
74576
+ * editorDeviceId?: number|null;
74577
+ * $unknowns?: Array.<Uint8Array>;
74578
+ * }} waproto.ConversationDraft.$Shape
74579
+ */
74580
+
74581
+ /**
74582
+ * Constructs a new ConversationDraft.
74583
+ * @memberof waproto
74584
+ * @classdesc Represents a ConversationDraft.
74585
+ * @constructor
74586
+ * @param {waproto.ConversationDraft.$Properties=} [properties] Properties to set
74587
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
74588
+ */
74589
+ var ConversationDraft = function (properties) {
74590
+ if (properties)
74591
+ for (var keys = $Object.keys(properties), i = 0; i < keys.length; ++i)
74592
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
74593
+ this[keys[i]] = properties[keys[i]];
74594
+ };
74595
+
74596
+ /**
74597
+ * ConversationDraft content.
74598
+ * @member {waproto.Message.$Properties|null|undefined} content
74599
+ * @memberof waproto.ConversationDraft
74600
+ * @instance
74601
+ */
74602
+ ConversationDraft.prototype.content = null;
74603
+
74604
+ /**
74605
+ * ConversationDraft editTimestampMs.
74606
+ * @member {number|Long|null|undefined} editTimestampMs
74607
+ * @memberof waproto.ConversationDraft
74608
+ * @instance
74609
+ */
74610
+ ConversationDraft.prototype.editTimestampMs = null;
74611
+
74612
+ /**
74613
+ * ConversationDraft editorDeviceId.
74614
+ * @member {number|null|undefined} editorDeviceId
74615
+ * @memberof waproto.ConversationDraft
74616
+ * @instance
74617
+ */
74618
+ ConversationDraft.prototype.editorDeviceId = null;
74619
+
74620
+ // OneOf field names bound to virtual getters and setters
74621
+ var $oneOfFields;
74622
+
74623
+ // Virtual OneOf for proto3 optional field
74624
+ $Object.defineProperty(ConversationDraft.prototype, "_content", {
74625
+ get: $util.oneOfGetter($oneOfFields = ["content"]),
74626
+ set: $util.oneOfSetter($oneOfFields)
74627
+ });
74628
+
74629
+ // Virtual OneOf for proto3 optional field
74630
+ $Object.defineProperty(ConversationDraft.prototype, "_editTimestampMs", {
74631
+ get: $util.oneOfGetter($oneOfFields = ["editTimestampMs"]),
74632
+ set: $util.oneOfSetter($oneOfFields)
74633
+ });
74634
+
74635
+ // Virtual OneOf for proto3 optional field
74636
+ $Object.defineProperty(ConversationDraft.prototype, "_editorDeviceId", {
74637
+ get: $util.oneOfGetter($oneOfFields = ["editorDeviceId"]),
74638
+ set: $util.oneOfSetter($oneOfFields)
74639
+ });
74640
+
74641
+ /**
74642
+ * Creates a new ConversationDraft instance using the specified properties.
74643
+ * @function create
74644
+ * @memberof waproto.ConversationDraft
74645
+ * @static
74646
+ * @param {waproto.ConversationDraft.$Properties=} [properties] Properties to set
74647
+ * @returns {waproto.ConversationDraft} ConversationDraft instance
74648
+ * @type {{
74649
+ * (properties: waproto.ConversationDraft.$Shape): waproto.ConversationDraft & waproto.ConversationDraft.$Shape;
74650
+ * (properties?: waproto.ConversationDraft.$Properties): waproto.ConversationDraft;
74651
+ * }}
74652
+ */
74653
+ ConversationDraft.create = function(properties) {
74654
+ return new ConversationDraft(properties);
74655
+ };
74656
+
74657
+ /**
74658
+ * Encodes the specified ConversationDraft message. Does not implicitly {@link waproto.ConversationDraft.verify|verify} messages.
74659
+ * @function encode
74660
+ * @memberof waproto.ConversationDraft
74661
+ * @static
74662
+ * @param {waproto.ConversationDraft.$Properties} message ConversationDraft message or plain object to encode
74663
+ * @param {$protobuf.Writer} [writer] Writer to encode to
74664
+ * @returns {$protobuf.Writer} Writer
74665
+ */
74666
+ ConversationDraft.encode = function (message, writer, _depth) {
74667
+ if (!writer)
74668
+ writer = $Writer.create();
74669
+ if (_depth === $undefined)
74670
+ _depth = 0;
74671
+ if (_depth > $util.recursionLimit)
74672
+ throw $Error("max depth exceeded");
74673
+ if (message.content != null && $Object.hasOwnProperty.call(message, "content"))
74674
+ $root.waproto.Message.encode(message.content, writer.uint32(/* id 1, wireType 2 =*/10).fork(), _depth + 1).ldelim();
74675
+ if (message.editTimestampMs != null && $Object.hasOwnProperty.call(message, "editTimestampMs"))
74676
+ writer.uint32(/* id 2, wireType 0 =*/16).int64(message.editTimestampMs);
74677
+ if (message.editorDeviceId != null && $Object.hasOwnProperty.call(message, "editorDeviceId"))
74678
+ writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.editorDeviceId);
74679
+ if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
74680
+ for (var i = 0; i < message.$unknowns.length; ++i)
74681
+ writer.raw(message.$unknowns[i]);
74682
+ return writer;
74683
+ };
74684
+
74685
+ /**
74686
+ * Encodes the specified ConversationDraft message, length delimited. Does not implicitly {@link waproto.ConversationDraft.verify|verify} messages.
74687
+ * @function encodeDelimited
74688
+ * @memberof waproto.ConversationDraft
74689
+ * @static
74690
+ * @param {waproto.ConversationDraft.$Properties} message ConversationDraft message or plain object to encode
74691
+ * @param {$protobuf.Writer} [writer] Writer to encode to
74692
+ * @returns {$protobuf.Writer} Writer
74693
+ */
74694
+ ConversationDraft.encodeDelimited = function(message, writer) {
74695
+ return this.encode(message, (writer || $Writer.create()).fork()).ldelim();
74696
+ };
74697
+
74698
+ /**
74699
+ * Decodes a ConversationDraft message from the specified reader or buffer.
74700
+ * @function decode
74701
+ * @memberof waproto.ConversationDraft
74702
+ * @static
74703
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
74704
+ * @param {number} [length] Message length if known beforehand
74705
+ * @returns {waproto.ConversationDraft & waproto.ConversationDraft.$Shape} ConversationDraft
74706
+ * @throws {Error} If the payload is not a reader or valid buffer
74707
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
74708
+ */
74709
+ ConversationDraft.decode = function (reader, length, _end, _depth, _target) {
74710
+ if (!(reader instanceof $Reader))
74711
+ reader = $Reader.create(reader);
74712
+ if (_depth === $undefined)
74713
+ _depth = 0;
74714
+ if (_depth > $Reader.recursionLimit)
74715
+ throw $Error("max depth exceeded");
74716
+ var end, message;
74717
+ if (length === $undefined)
74718
+ end = reader.len;
74719
+ else {
74720
+ end = reader.pos + length;
74721
+ if (end > reader.len)
74722
+ throw $RangeError("index out of range");
74723
+ length = reader.len;
74724
+ reader.len = end;
74725
+ }
74726
+ message = _target || new $root.waproto.ConversationDraft();
74727
+ while (reader.pos < end) {
74728
+ var start = reader.pos;
74729
+ var tag = reader.tag();
74730
+ if (tag === _end) {
74731
+ _end = $undefined;
74732
+ break;
74733
+ }
74734
+ var wireType = tag & 7;
74735
+ switch (tag >>>= 3) {
74736
+ case 1: {
74737
+ if (wireType !== 2)
74738
+ break;
74739
+ message.content = $root.waproto.Message.decode(reader, reader.size(), $undefined, _depth + 1, message.content);
74740
+ message._content = "content";
74741
+ continue;
74742
+ }
74743
+ case 2: {
74744
+ if (wireType !== 0)
74745
+ break;
74746
+ message.editTimestampMs = reader.int64();
74747
+ message._editTimestampMs = "editTimestampMs";
74748
+ continue;
74749
+ }
74750
+ case 3: {
74751
+ if (wireType !== 0)
74752
+ break;
74753
+ message.editorDeviceId = reader.uint32();
74754
+ message._editorDeviceId = "editorDeviceId";
74755
+ continue;
74756
+ }
74757
+ }
74758
+ reader.skipType(wireType, _depth, tag);
74759
+ if (!reader.discardUnknown) {
74760
+ $util.makeProp(message, "$unknowns", false);
74761
+ (message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
74762
+ }
74763
+ }
74764
+ if (length !== $undefined) {
74765
+ if (reader.pos !== end)
74766
+ throw $RangeError("index out of range");
74767
+ reader.len = length;
74768
+ }
74769
+ if (_end !== $undefined)
74770
+ throw $Error("missing end group");
74771
+ return message;
74772
+ };
74773
+
74774
+ /**
74775
+ * Decodes a ConversationDraft message from the specified reader or buffer, length delimited.
74776
+ * @function decodeDelimited
74777
+ * @memberof waproto.ConversationDraft
74778
+ * @static
74779
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
74780
+ * @returns {waproto.ConversationDraft & waproto.ConversationDraft.$Shape} ConversationDraft
74781
+ * @throws {Error} If the payload is not a reader or valid buffer
74782
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
74783
+ */
74784
+ ConversationDraft.decodeDelimited = function(reader) {
74785
+ if (!(reader instanceof $Reader))
74786
+ reader = new $Reader(reader);
74787
+ return this.decode(reader, reader.size());
74788
+ };
74789
+
74790
+ /**
74791
+ * Verifies a ConversationDraft message.
74792
+ * @function verify
74793
+ * @memberof waproto.ConversationDraft
74794
+ * @static
74795
+ * @param {Object.<string,*>} message Plain object to verify
74796
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
74797
+ */
74798
+ ConversationDraft.verify = function (message, _depth) {
74799
+ if (typeof message !== "object" || message === null)
74800
+ return "object expected";
74801
+ if (_depth === $undefined)
74802
+ _depth = 0;
74803
+ if (_depth > $util.recursionLimit)
74804
+ return "max depth exceeded";
74805
+ var properties = {};
74806
+ if (message.content != null && $Object.hasOwnProperty.call(message, "content")) {
74807
+ properties._content = 1;
74808
+ {
74809
+ var error = $root.waproto.Message.verify(message.content, _depth + 1);
74810
+ if (error)
74811
+ return "content." + error;
74812
+ }
74813
+ }
74814
+ if (message.editTimestampMs != null && $Object.hasOwnProperty.call(message, "editTimestampMs")) {
74815
+ properties._editTimestampMs = 1;
74816
+ if (!$util.isInteger(message.editTimestampMs) && !(message.editTimestampMs && $util.isInteger(message.editTimestampMs.low) && $util.isInteger(message.editTimestampMs.high)))
74817
+ return "editTimestampMs: integer|Long expected";
74818
+ }
74819
+ if (message.editorDeviceId != null && $Object.hasOwnProperty.call(message, "editorDeviceId")) {
74820
+ properties._editorDeviceId = 1;
74821
+ if (!$util.isInteger(message.editorDeviceId))
74822
+ return "editorDeviceId: integer expected";
74823
+ }
74824
+ return null;
74825
+ };
74826
+
74827
+ /**
74828
+ * Creates a ConversationDraft message from a plain object. Also converts values to their respective internal types.
74829
+ * @function fromObject
74830
+ * @memberof waproto.ConversationDraft
74831
+ * @static
74832
+ * @param {Object.<string,*>} object Plain object
74833
+ * @returns {waproto.ConversationDraft} ConversationDraft
74834
+ */
74835
+ ConversationDraft.fromObject = function (object, _depth) {
74836
+ if (object instanceof $root.waproto.ConversationDraft)
74837
+ return object;
74838
+ if (!$util.isObject(object))
74839
+ throw $TypeError(".waproto.ConversationDraft: object expected");
74840
+ if (_depth === $undefined)
74841
+ _depth = 0;
74842
+ if (_depth > $util.recursionLimit)
74843
+ throw $Error("max depth exceeded");
74844
+ var message = new $root.waproto.ConversationDraft();
74845
+ if (object.content != null) {
74846
+ if (!$util.isObject(object.content))
74847
+ throw $TypeError(".waproto.ConversationDraft.content: object expected");
74848
+ message.content = $root.waproto.Message.fromObject(object.content, _depth + 1);
74849
+ }
74850
+ if (object.editTimestampMs != null)
74851
+ if ($util.Long)
74852
+ message.editTimestampMs = $util.Long.fromValue(object.editTimestampMs, false);
74853
+ else if (typeof object.editTimestampMs === "string")
74854
+ message.editTimestampMs = $parseInt(object.editTimestampMs, 10);
74855
+ else if (typeof object.editTimestampMs === "number")
74856
+ message.editTimestampMs = object.editTimestampMs;
74857
+ else if (typeof object.editTimestampMs === "object")
74858
+ message.editTimestampMs = new $util.LongBits(object.editTimestampMs.low >>> 0, object.editTimestampMs.high >>> 0).toNumber();
74859
+ if (object.editorDeviceId != null)
74860
+ message.editorDeviceId = object.editorDeviceId >>> 0;
74861
+ return message;
74862
+ };
74863
+
74864
+ /**
74865
+ * Creates a plain object from a ConversationDraft message. Also converts values to other types if specified.
74866
+ * @function toObject
74867
+ * @memberof waproto.ConversationDraft
74868
+ * @static
74869
+ * @param {waproto.ConversationDraft} message ConversationDraft
74870
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
74871
+ * @returns {Object.<string,*>} Plain object
74872
+ */
74873
+ ConversationDraft.toObject = function (message, options, _depth) {
74874
+ if (!options)
74875
+ options = {};
74876
+ if (_depth === $undefined)
74877
+ _depth = 0;
74878
+ if (_depth > $util.recursionLimit)
74879
+ throw $Error("max depth exceeded");
74880
+ var object = {};
74881
+ if (message.content != null && $Object.hasOwnProperty.call(message, "content"))
74882
+ object.content = $root.waproto.Message.toObject(message.content, options, _depth + 1);
74883
+ if (message.editTimestampMs != null && $Object.hasOwnProperty.call(message, "editTimestampMs"))
74884
+ if (typeof $BigInt !== "undefined" && options.longs === $BigInt)
74885
+ object.editTimestampMs = typeof message.editTimestampMs === "number" ? $BigInt(message.editTimestampMs) : $util.Long.fromBits(message.editTimestampMs.low >>> 0, message.editTimestampMs.high >>> 0, false).toBigInt();
74886
+ else if (typeof message.editTimestampMs === "number")
74887
+ object.editTimestampMs = options.longs === $String ? $String(message.editTimestampMs) : message.editTimestampMs;
74888
+ else
74889
+ object.editTimestampMs = options.longs === $String ? $util.Long.prototype.toString.call(message.editTimestampMs) : options.longs === $Number ? new $util.LongBits(message.editTimestampMs.low >>> 0, message.editTimestampMs.high >>> 0).toNumber() : message.editTimestampMs;
74890
+ if (message.editorDeviceId != null && $Object.hasOwnProperty.call(message, "editorDeviceId"))
74891
+ object.editorDeviceId = message.editorDeviceId;
74892
+ return object;
74893
+ };
74894
+
74895
+ /**
74896
+ * Converts this ConversationDraft to JSON.
74897
+ * @function toJSON
74898
+ * @memberof waproto.ConversationDraft
74899
+ * @instance
74900
+ * @returns {Object.<string,*>} JSON object
74901
+ */
74902
+ ConversationDraft.prototype.toJSON = function() {
74903
+ return ConversationDraft.toObject(this, $protobuf.util.toJSONOptions);
74904
+ };
74905
+
74906
+ /**
74907
+ * Gets the type url for ConversationDraft
74908
+ * @function getTypeUrl
74909
+ * @memberof waproto.ConversationDraft
74910
+ * @static
74911
+ * @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
74912
+ * @returns {string} The type url
74913
+ */
74914
+ ConversationDraft.getTypeUrl = function(prefix) {
74915
+ if (prefix === $undefined)
74916
+ prefix = "type.googleapis.com";
74917
+ return prefix + "/waproto.ConversationDraft";
74918
+ };
74919
+
74920
+ return ConversationDraft;
74921
+ })();
74922
+
74488
74923
  waproto.CreateBackupInput = (function() {
74489
74924
 
74490
74925
  /**
@@ -79408,6 +79843,7 @@ $root.waproto = (function() {
79408
79843
  * @property {waproto.DeviceCapabilities.PhoneNumberSharing.$Properties|null} [phoneNumberSharing] DeviceCapabilities phoneNumberSharing
79409
79844
  * @property {waproto.DeviceCapabilities.RecentConversationsOnDemand.$Properties|null} [recentConversationsOnDemand] DeviceCapabilities recentConversationsOnDemand
79410
79845
  * @property {waproto.DeviceCapabilities.AiMuseJarvisGzip.$Properties|null} [aiMuseJarvisGzip] DeviceCapabilities aiMuseJarvisGzip
79846
+ * @property {waproto.DeviceCapabilities.DraftSync.$Properties|null} [draftSync] DeviceCapabilities draftSync
79411
79847
  * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
79412
79848
  */
79413
79849
 
@@ -79567,6 +80003,14 @@ $root.waproto = (function() {
79567
80003
  */
79568
80004
  DeviceCapabilities.prototype.aiMuseJarvisGzip = null;
79569
80005
 
80006
+ /**
80007
+ * DeviceCapabilities draftSync.
80008
+ * @member {waproto.DeviceCapabilities.DraftSync.$Properties|null|undefined} draftSync
80009
+ * @memberof waproto.DeviceCapabilities
80010
+ * @instance
80011
+ */
80012
+ DeviceCapabilities.prototype.draftSync = null;
80013
+
79570
80014
  // OneOf field names bound to virtual getters and setters
79571
80015
  var $oneOfFields;
79572
80016
 
@@ -79666,6 +80110,12 @@ $root.waproto = (function() {
79666
80110
  set: $util.oneOfSetter($oneOfFields)
79667
80111
  });
79668
80112
 
80113
+ // Virtual OneOf for proto3 optional field
80114
+ $Object.defineProperty(DeviceCapabilities.prototype, "_draftSync", {
80115
+ get: $util.oneOfGetter($oneOfFields = ["draftSync"]),
80116
+ set: $util.oneOfSetter($oneOfFields)
80117
+ });
80118
+
79669
80119
  /**
79670
80120
  * Creates a new DeviceCapabilities instance using the specified properties.
79671
80121
  * @function create
@@ -79730,6 +80180,8 @@ $root.waproto = (function() {
79730
80180
  $root.waproto.DeviceCapabilities.RecentConversationsOnDemand.encode(message.recentConversationsOnDemand, writer.uint32(/* id 15, wireType 2 =*/122).fork(), _depth + 1).ldelim();
79731
80181
  if (message.aiMuseJarvisGzip != null && $Object.hasOwnProperty.call(message, "aiMuseJarvisGzip"))
79732
80182
  $root.waproto.DeviceCapabilities.AiMuseJarvisGzip.encode(message.aiMuseJarvisGzip, writer.uint32(/* id 16, wireType 2 =*/130).fork(), _depth + 1).ldelim();
80183
+ if (message.draftSync != null && $Object.hasOwnProperty.call(message, "draftSync"))
80184
+ $root.waproto.DeviceCapabilities.DraftSync.encode(message.draftSync, writer.uint32(/* id 17, wireType 2 =*/138).fork(), _depth + 1).ldelim();
79733
80185
  if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
79734
80186
  for (var i = 0; i < message.$unknowns.length; ++i)
79735
80187
  writer.raw(message.$unknowns[i]);
@@ -79899,6 +80351,13 @@ $root.waproto = (function() {
79899
80351
  message._aiMuseJarvisGzip = "aiMuseJarvisGzip";
79900
80352
  continue;
79901
80353
  }
80354
+ case 17: {
80355
+ if (wireType !== 2)
80356
+ break;
80357
+ message.draftSync = $root.waproto.DeviceCapabilities.DraftSync.decode(reader, reader.size(), $undefined, _depth + 1, message.draftSync);
80358
+ message._draftSync = "draftSync";
80359
+ continue;
80360
+ }
79902
80361
  }
79903
80362
  reader.skipType(wireType, _depth, tag);
79904
80363
  if (!reader.discardUnknown) {
@@ -80070,6 +80529,14 @@ $root.waproto = (function() {
80070
80529
  return "aiMuseJarvisGzip." + error;
80071
80530
  }
80072
80531
  }
80532
+ if (message.draftSync != null && $Object.hasOwnProperty.call(message, "draftSync")) {
80533
+ properties._draftSync = 1;
80534
+ {
80535
+ var error = $root.waproto.DeviceCapabilities.DraftSync.verify(message.draftSync, _depth + 1);
80536
+ if (error)
80537
+ return "draftSync." + error;
80538
+ }
80539
+ }
80073
80540
  return null;
80074
80541
  };
80075
80542
 
@@ -80195,6 +80662,11 @@ $root.waproto = (function() {
80195
80662
  throw $TypeError(".waproto.DeviceCapabilities.aiMuseJarvisGzip: object expected");
80196
80663
  message.aiMuseJarvisGzip = $root.waproto.DeviceCapabilities.AiMuseJarvisGzip.fromObject(object.aiMuseJarvisGzip, _depth + 1);
80197
80664
  }
80665
+ if (object.draftSync != null) {
80666
+ if (!$util.isObject(object.draftSync))
80667
+ throw $TypeError(".waproto.DeviceCapabilities.draftSync: object expected");
80668
+ message.draftSync = $root.waproto.DeviceCapabilities.DraftSync.fromObject(object.draftSync, _depth + 1);
80669
+ }
80198
80670
  return message;
80199
80671
  };
80200
80672
 
@@ -80247,6 +80719,8 @@ $root.waproto = (function() {
80247
80719
  object.recentConversationsOnDemand = $root.waproto.DeviceCapabilities.RecentConversationsOnDemand.toObject(message.recentConversationsOnDemand, options, _depth + 1);
80248
80720
  if (message.aiMuseJarvisGzip != null && $Object.hasOwnProperty.call(message, "aiMuseJarvisGzip"))
80249
80721
  object.aiMuseJarvisGzip = $root.waproto.DeviceCapabilities.AiMuseJarvisGzip.toObject(message.aiMuseJarvisGzip, options, _depth + 1);
80722
+ if (message.draftSync != null && $Object.hasOwnProperty.call(message, "draftSync"))
80723
+ object.draftSync = $root.waproto.DeviceCapabilities.DraftSync.toObject(message.draftSync, options, _depth + 1);
80250
80724
  return object;
80251
80725
  };
80252
80726
 
@@ -82506,6 +82980,288 @@ $root.waproto = (function() {
82506
82980
  return ContactRefresh;
82507
82981
  })();
82508
82982
 
82983
+ DeviceCapabilities.DraftSync = (function() {
82984
+
82985
+ /**
82986
+ * Properties of a DraftSync.
82987
+ * @typedef {Object} waproto.DeviceCapabilities.DraftSync.$Properties
82988
+ * @property {number|null} [version] DraftSync version
82989
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
82990
+ */
82991
+
82992
+ /**
82993
+ * Properties of a DraftSync.
82994
+ * @memberof waproto.DeviceCapabilities
82995
+ * @interface IDraftSync
82996
+ * @augments waproto.DeviceCapabilities.DraftSync.$Properties
82997
+ * @deprecated Use waproto.DeviceCapabilities.DraftSync.$Properties instead.
82998
+ */
82999
+
83000
+ /**
83001
+ * Shape of a DraftSync.
83002
+ * @typedef {waproto.DeviceCapabilities.DraftSync.$Properties} waproto.DeviceCapabilities.DraftSync.$Shape
83003
+ */
83004
+
83005
+ /**
83006
+ * Constructs a new DraftSync.
83007
+ * @memberof waproto.DeviceCapabilities
83008
+ * @classdesc Represents a DraftSync.
83009
+ * @constructor
83010
+ * @param {waproto.DeviceCapabilities.DraftSync.$Properties=} [properties] Properties to set
83011
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
83012
+ */
83013
+ var DraftSync = function (properties) {
83014
+ if (properties)
83015
+ for (var keys = $Object.keys(properties), i = 0; i < keys.length; ++i)
83016
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
83017
+ this[keys[i]] = properties[keys[i]];
83018
+ };
83019
+
83020
+ /**
83021
+ * DraftSync version.
83022
+ * @member {number|null|undefined} version
83023
+ * @memberof waproto.DeviceCapabilities.DraftSync
83024
+ * @instance
83025
+ */
83026
+ DraftSync.prototype.version = null;
83027
+
83028
+ // OneOf field names bound to virtual getters and setters
83029
+ var $oneOfFields;
83030
+
83031
+ // Virtual OneOf for proto3 optional field
83032
+ $Object.defineProperty(DraftSync.prototype, "_version", {
83033
+ get: $util.oneOfGetter($oneOfFields = ["version"]),
83034
+ set: $util.oneOfSetter($oneOfFields)
83035
+ });
83036
+
83037
+ /**
83038
+ * Creates a new DraftSync instance using the specified properties.
83039
+ * @function create
83040
+ * @memberof waproto.DeviceCapabilities.DraftSync
83041
+ * @static
83042
+ * @param {waproto.DeviceCapabilities.DraftSync.$Properties=} [properties] Properties to set
83043
+ * @returns {waproto.DeviceCapabilities.DraftSync} DraftSync instance
83044
+ * @type {{
83045
+ * (properties: waproto.DeviceCapabilities.DraftSync.$Shape): waproto.DeviceCapabilities.DraftSync & waproto.DeviceCapabilities.DraftSync.$Shape;
83046
+ * (properties?: waproto.DeviceCapabilities.DraftSync.$Properties): waproto.DeviceCapabilities.DraftSync;
83047
+ * }}
83048
+ */
83049
+ DraftSync.create = function(properties) {
83050
+ return new DraftSync(properties);
83051
+ };
83052
+
83053
+ /**
83054
+ * Encodes the specified DraftSync message. Does not implicitly {@link waproto.DeviceCapabilities.DraftSync.verify|verify} messages.
83055
+ * @function encode
83056
+ * @memberof waproto.DeviceCapabilities.DraftSync
83057
+ * @static
83058
+ * @param {waproto.DeviceCapabilities.DraftSync.$Properties} message DraftSync message or plain object to encode
83059
+ * @param {$protobuf.Writer} [writer] Writer to encode to
83060
+ * @returns {$protobuf.Writer} Writer
83061
+ */
83062
+ DraftSync.encode = function (message, writer, _depth) {
83063
+ if (!writer)
83064
+ writer = $Writer.create();
83065
+ if (_depth === $undefined)
83066
+ _depth = 0;
83067
+ if (_depth > $util.recursionLimit)
83068
+ throw $Error("max depth exceeded");
83069
+ if (message.version != null && $Object.hasOwnProperty.call(message, "version"))
83070
+ writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.version);
83071
+ if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
83072
+ for (var i = 0; i < message.$unknowns.length; ++i)
83073
+ writer.raw(message.$unknowns[i]);
83074
+ return writer;
83075
+ };
83076
+
83077
+ /**
83078
+ * Encodes the specified DraftSync message, length delimited. Does not implicitly {@link waproto.DeviceCapabilities.DraftSync.verify|verify} messages.
83079
+ * @function encodeDelimited
83080
+ * @memberof waproto.DeviceCapabilities.DraftSync
83081
+ * @static
83082
+ * @param {waproto.DeviceCapabilities.DraftSync.$Properties} message DraftSync message or plain object to encode
83083
+ * @param {$protobuf.Writer} [writer] Writer to encode to
83084
+ * @returns {$protobuf.Writer} Writer
83085
+ */
83086
+ DraftSync.encodeDelimited = function(message, writer) {
83087
+ return this.encode(message, (writer || $Writer.create()).fork()).ldelim();
83088
+ };
83089
+
83090
+ /**
83091
+ * Decodes a DraftSync message from the specified reader or buffer.
83092
+ * @function decode
83093
+ * @memberof waproto.DeviceCapabilities.DraftSync
83094
+ * @static
83095
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
83096
+ * @param {number} [length] Message length if known beforehand
83097
+ * @returns {waproto.DeviceCapabilities.DraftSync & waproto.DeviceCapabilities.DraftSync.$Shape} DraftSync
83098
+ * @throws {Error} If the payload is not a reader or valid buffer
83099
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
83100
+ */
83101
+ DraftSync.decode = function (reader, length, _end, _depth, _target) {
83102
+ if (!(reader instanceof $Reader))
83103
+ reader = $Reader.create(reader);
83104
+ if (_depth === $undefined)
83105
+ _depth = 0;
83106
+ if (_depth > $Reader.recursionLimit)
83107
+ throw $Error("max depth exceeded");
83108
+ var end, message;
83109
+ if (length === $undefined)
83110
+ end = reader.len;
83111
+ else {
83112
+ end = reader.pos + length;
83113
+ if (end > reader.len)
83114
+ throw $RangeError("index out of range");
83115
+ length = reader.len;
83116
+ reader.len = end;
83117
+ }
83118
+ message = _target || new $root.waproto.DeviceCapabilities.DraftSync();
83119
+ while (reader.pos < end) {
83120
+ var start = reader.pos;
83121
+ var tag = reader.tag();
83122
+ if (tag === _end) {
83123
+ _end = $undefined;
83124
+ break;
83125
+ }
83126
+ var wireType = tag & 7;
83127
+ switch (tag >>>= 3) {
83128
+ case 1: {
83129
+ if (wireType !== 0)
83130
+ break;
83131
+ message.version = reader.uint32();
83132
+ message._version = "version";
83133
+ continue;
83134
+ }
83135
+ }
83136
+ reader.skipType(wireType, _depth, tag);
83137
+ if (!reader.discardUnknown) {
83138
+ $util.makeProp(message, "$unknowns", false);
83139
+ (message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
83140
+ }
83141
+ }
83142
+ if (length !== $undefined) {
83143
+ if (reader.pos !== end)
83144
+ throw $RangeError("index out of range");
83145
+ reader.len = length;
83146
+ }
83147
+ if (_end !== $undefined)
83148
+ throw $Error("missing end group");
83149
+ return message;
83150
+ };
83151
+
83152
+ /**
83153
+ * Decodes a DraftSync message from the specified reader or buffer, length delimited.
83154
+ * @function decodeDelimited
83155
+ * @memberof waproto.DeviceCapabilities.DraftSync
83156
+ * @static
83157
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
83158
+ * @returns {waproto.DeviceCapabilities.DraftSync & waproto.DeviceCapabilities.DraftSync.$Shape} DraftSync
83159
+ * @throws {Error} If the payload is not a reader or valid buffer
83160
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
83161
+ */
83162
+ DraftSync.decodeDelimited = function(reader) {
83163
+ if (!(reader instanceof $Reader))
83164
+ reader = new $Reader(reader);
83165
+ return this.decode(reader, reader.size());
83166
+ };
83167
+
83168
+ /**
83169
+ * Verifies a DraftSync message.
83170
+ * @function verify
83171
+ * @memberof waproto.DeviceCapabilities.DraftSync
83172
+ * @static
83173
+ * @param {Object.<string,*>} message Plain object to verify
83174
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
83175
+ */
83176
+ DraftSync.verify = function (message, _depth) {
83177
+ if (typeof message !== "object" || message === null)
83178
+ return "object expected";
83179
+ if (_depth === $undefined)
83180
+ _depth = 0;
83181
+ if (_depth > $util.recursionLimit)
83182
+ return "max depth exceeded";
83183
+ var properties = {};
83184
+ if (message.version != null && $Object.hasOwnProperty.call(message, "version")) {
83185
+ properties._version = 1;
83186
+ if (!$util.isInteger(message.version))
83187
+ return "version: integer expected";
83188
+ }
83189
+ return null;
83190
+ };
83191
+
83192
+ /**
83193
+ * Creates a DraftSync message from a plain object. Also converts values to their respective internal types.
83194
+ * @function fromObject
83195
+ * @memberof waproto.DeviceCapabilities.DraftSync
83196
+ * @static
83197
+ * @param {Object.<string,*>} object Plain object
83198
+ * @returns {waproto.DeviceCapabilities.DraftSync} DraftSync
83199
+ */
83200
+ DraftSync.fromObject = function (object, _depth) {
83201
+ if (object instanceof $root.waproto.DeviceCapabilities.DraftSync)
83202
+ return object;
83203
+ if (!$util.isObject(object))
83204
+ throw $TypeError(".waproto.DeviceCapabilities.DraftSync: object expected");
83205
+ if (_depth === $undefined)
83206
+ _depth = 0;
83207
+ if (_depth > $util.recursionLimit)
83208
+ throw $Error("max depth exceeded");
83209
+ var message = new $root.waproto.DeviceCapabilities.DraftSync();
83210
+ if (object.version != null)
83211
+ message.version = object.version >>> 0;
83212
+ return message;
83213
+ };
83214
+
83215
+ /**
83216
+ * Creates a plain object from a DraftSync message. Also converts values to other types if specified.
83217
+ * @function toObject
83218
+ * @memberof waproto.DeviceCapabilities.DraftSync
83219
+ * @static
83220
+ * @param {waproto.DeviceCapabilities.DraftSync} message DraftSync
83221
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
83222
+ * @returns {Object.<string,*>} Plain object
83223
+ */
83224
+ DraftSync.toObject = function (message, options, _depth) {
83225
+ if (!options)
83226
+ options = {};
83227
+ if (_depth === $undefined)
83228
+ _depth = 0;
83229
+ if (_depth > $util.recursionLimit)
83230
+ throw $Error("max depth exceeded");
83231
+ var object = {};
83232
+ if (message.version != null && $Object.hasOwnProperty.call(message, "version"))
83233
+ object.version = message.version;
83234
+ return object;
83235
+ };
83236
+
83237
+ /**
83238
+ * Converts this DraftSync to JSON.
83239
+ * @function toJSON
83240
+ * @memberof waproto.DeviceCapabilities.DraftSync
83241
+ * @instance
83242
+ * @returns {Object.<string,*>} JSON object
83243
+ */
83244
+ DraftSync.prototype.toJSON = function() {
83245
+ return DraftSync.toObject(this, $protobuf.util.toJSONOptions);
83246
+ };
83247
+
83248
+ /**
83249
+ * Gets the type url for DraftSync
83250
+ * @function getTypeUrl
83251
+ * @memberof waproto.DeviceCapabilities.DraftSync
83252
+ * @static
83253
+ * @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
83254
+ * @returns {string} The type url
83255
+ */
83256
+ DraftSync.getTypeUrl = function(prefix) {
83257
+ if (prefix === $undefined)
83258
+ prefix = "type.googleapis.com";
83259
+ return prefix + "/waproto.DeviceCapabilities.DraftSync";
83260
+ };
83261
+
83262
+ return DraftSync;
83263
+ })();
83264
+
82509
83265
  DeviceCapabilities.HostWriteMutationSupport = (function() {
82510
83266
 
82511
83267
  /**
@@ -87237,6 +87993,7 @@ $root.waproto = (function() {
87237
87993
  * @property {boolean|null} [supportNewsletter] HistorySyncConfig supportNewsletter
87238
87994
  * @property {boolean|null} [supportUniversalReachChat] HistorySyncConfig supportUniversalReachChat
87239
87995
  * @property {boolean|null} [supportOmittedConversationMetadata] HistorySyncConfig supportOmittedConversationMetadata
87996
+ * @property {boolean|null} [supportDraftSync] HistorySyncConfig supportDraftSync
87240
87997
  * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
87241
87998
  */
87242
87999
 
@@ -87485,6 +88242,14 @@ $root.waproto = (function() {
87485
88242
  */
87486
88243
  HistorySyncConfig.prototype.supportOmittedConversationMetadata = null;
87487
88244
 
88245
+ /**
88246
+ * HistorySyncConfig supportDraftSync.
88247
+ * @member {boolean|null|undefined} supportDraftSync
88248
+ * @memberof waproto.DeviceProps.HistorySyncConfig
88249
+ * @instance
88250
+ */
88251
+ HistorySyncConfig.prototype.supportDraftSync = null;
88252
+
87488
88253
  // OneOf field names bound to virtual getters and setters
87489
88254
  var $oneOfFields;
87490
88255
 
@@ -87644,6 +88409,12 @@ $root.waproto = (function() {
87644
88409
  set: $util.oneOfSetter($oneOfFields)
87645
88410
  });
87646
88411
 
88412
+ // Virtual OneOf for proto3 optional field
88413
+ $Object.defineProperty(HistorySyncConfig.prototype, "_supportDraftSync", {
88414
+ get: $util.oneOfGetter($oneOfFields = ["supportDraftSync"]),
88415
+ set: $util.oneOfSetter($oneOfFields)
88416
+ });
88417
+
87647
88418
  /**
87648
88419
  * Creates a new HistorySyncConfig instance using the specified properties.
87649
88420
  * @function create
@@ -87731,6 +88502,8 @@ $root.waproto = (function() {
87731
88502
  writer.uint32(/* id 26, wireType 0 =*/208).bool(message.supportUniversalReachChat);
87732
88503
  if (message.supportOmittedConversationMetadata != null && $Object.hasOwnProperty.call(message, "supportOmittedConversationMetadata"))
87733
88504
  writer.uint32(/* id 28, wireType 0 =*/224).bool(message.supportOmittedConversationMetadata);
88505
+ if (message.supportDraftSync != null && $Object.hasOwnProperty.call(message, "supportDraftSync"))
88506
+ writer.uint32(/* id 29, wireType 0 =*/232).bool(message.supportDraftSync);
87734
88507
  if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
87735
88508
  for (var i = 0; i < message.$unknowns.length; ++i)
87736
88509
  writer.raw(message.$unknowns[i]);
@@ -87978,6 +88751,13 @@ $root.waproto = (function() {
87978
88751
  message._supportOmittedConversationMetadata = "supportOmittedConversationMetadata";
87979
88752
  continue;
87980
88753
  }
88754
+ case 29: {
88755
+ if (wireType !== 0)
88756
+ break;
88757
+ message.supportDraftSync = reader.bool();
88758
+ message._supportDraftSync = "supportDraftSync";
88759
+ continue;
88760
+ }
87981
88761
  }
87982
88762
  reader.skipType(wireType, _depth, tag);
87983
88763
  if (!reader.discardUnknown) {
@@ -88164,6 +88944,11 @@ $root.waproto = (function() {
88164
88944
  if (typeof message.supportOmittedConversationMetadata !== "boolean")
88165
88945
  return "supportOmittedConversationMetadata: boolean expected";
88166
88946
  }
88947
+ if (message.supportDraftSync != null && $Object.hasOwnProperty.call(message, "supportDraftSync")) {
88948
+ properties._supportDraftSync = 1;
88949
+ if (typeof message.supportDraftSync !== "boolean")
88950
+ return "supportDraftSync: boolean expected";
88951
+ }
88167
88952
  return null;
88168
88953
  };
88169
88954
 
@@ -88244,6 +89029,8 @@ $root.waproto = (function() {
88244
89029
  message.supportUniversalReachChat = $Boolean(object.supportUniversalReachChat);
88245
89030
  if (object.supportOmittedConversationMetadata != null)
88246
89031
  message.supportOmittedConversationMetadata = $Boolean(object.supportOmittedConversationMetadata);
89032
+ if (object.supportDraftSync != null)
89033
+ message.supportDraftSync = $Boolean(object.supportDraftSync);
88247
89034
  return message;
88248
89035
  };
88249
89036
 
@@ -88323,6 +89110,8 @@ $root.waproto = (function() {
88323
89110
  object.supportUniversalReachChat = message.supportUniversalReachChat;
88324
89111
  if (message.supportOmittedConversationMetadata != null && $Object.hasOwnProperty.call(message, "supportOmittedConversationMetadata"))
88325
89112
  object.supportOmittedConversationMetadata = message.supportOmittedConversationMetadata;
89113
+ if (message.supportDraftSync != null && $Object.hasOwnProperty.call(message, "supportDraftSync"))
89114
+ object.supportDraftSync = message.supportDraftSync;
88326
89115
  return object;
88327
89116
  };
88328
89117
 
@@ -88896,6 +89685,553 @@ $root.waproto = (function() {
88896
89685
  return DisappearingMode;
88897
89686
  })();
88898
89687
 
89688
+ waproto.DraftMessageSync = (function() {
89689
+
89690
+ /**
89691
+ * Properties of a DraftMessageSync.
89692
+ * @typedef {Object} waproto.DraftMessageSync.$Properties
89693
+ * @property {string|null} [chatJid] DraftMessageSync chatJid
89694
+ * @property {string|null} [altChatJid] DraftMessageSync altChatJid
89695
+ * @property {waproto.DraftMessageSync.Action|null} [action] DraftMessageSync action
89696
+ * @property {number|Long|null} [editTimestampMs] DraftMessageSync editTimestampMs
89697
+ * @property {waproto.Message.$Properties|null} [draft] DraftMessageSync draft
89698
+ * @property {waproto.DraftMessageSync.ClearReason|null} [clearReason] DraftMessageSync clearReason
89699
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
89700
+ */
89701
+
89702
+ /**
89703
+ * Properties of a DraftMessageSync.
89704
+ * @memberof waproto
89705
+ * @interface IDraftMessageSync
89706
+ * @augments waproto.DraftMessageSync.$Properties
89707
+ * @deprecated Use waproto.DraftMessageSync.$Properties instead.
89708
+ */
89709
+
89710
+ /**
89711
+ * Shape of a DraftMessageSync.
89712
+ * @typedef {{
89713
+ * chatJid?: string|null;
89714
+ * altChatJid?: string|null;
89715
+ * action?: waproto.DraftMessageSync.Action|null;
89716
+ * editTimestampMs?: number|Long|null;
89717
+ * draft?: waproto.Message.$Shape|null;
89718
+ * clearReason?: waproto.DraftMessageSync.ClearReason|null;
89719
+ * $unknowns?: Array.<Uint8Array>;
89720
+ * }} waproto.DraftMessageSync.$Shape
89721
+ */
89722
+
89723
+ /**
89724
+ * Constructs a new DraftMessageSync.
89725
+ * @memberof waproto
89726
+ * @classdesc Represents a DraftMessageSync.
89727
+ * @constructor
89728
+ * @param {waproto.DraftMessageSync.$Properties=} [properties] Properties to set
89729
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
89730
+ */
89731
+ var DraftMessageSync = function (properties) {
89732
+ if (properties)
89733
+ for (var keys = $Object.keys(properties), i = 0; i < keys.length; ++i)
89734
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
89735
+ this[keys[i]] = properties[keys[i]];
89736
+ };
89737
+
89738
+ /**
89739
+ * DraftMessageSync chatJid.
89740
+ * @member {string|null|undefined} chatJid
89741
+ * @memberof waproto.DraftMessageSync
89742
+ * @instance
89743
+ */
89744
+ DraftMessageSync.prototype.chatJid = null;
89745
+
89746
+ /**
89747
+ * DraftMessageSync altChatJid.
89748
+ * @member {string|null|undefined} altChatJid
89749
+ * @memberof waproto.DraftMessageSync
89750
+ * @instance
89751
+ */
89752
+ DraftMessageSync.prototype.altChatJid = null;
89753
+
89754
+ /**
89755
+ * DraftMessageSync action.
89756
+ * @member {waproto.DraftMessageSync.Action|null|undefined} action
89757
+ * @memberof waproto.DraftMessageSync
89758
+ * @instance
89759
+ */
89760
+ DraftMessageSync.prototype.action = null;
89761
+
89762
+ /**
89763
+ * DraftMessageSync editTimestampMs.
89764
+ * @member {number|Long|null|undefined} editTimestampMs
89765
+ * @memberof waproto.DraftMessageSync
89766
+ * @instance
89767
+ */
89768
+ DraftMessageSync.prototype.editTimestampMs = null;
89769
+
89770
+ /**
89771
+ * DraftMessageSync draft.
89772
+ * @member {waproto.Message.$Properties|null|undefined} draft
89773
+ * @memberof waproto.DraftMessageSync
89774
+ * @instance
89775
+ */
89776
+ DraftMessageSync.prototype.draft = null;
89777
+
89778
+ /**
89779
+ * DraftMessageSync clearReason.
89780
+ * @member {waproto.DraftMessageSync.ClearReason|null|undefined} clearReason
89781
+ * @memberof waproto.DraftMessageSync
89782
+ * @instance
89783
+ */
89784
+ DraftMessageSync.prototype.clearReason = null;
89785
+
89786
+ // OneOf field names bound to virtual getters and setters
89787
+ var $oneOfFields;
89788
+
89789
+ // Virtual OneOf for proto3 optional field
89790
+ $Object.defineProperty(DraftMessageSync.prototype, "_chatJid", {
89791
+ get: $util.oneOfGetter($oneOfFields = ["chatJid"]),
89792
+ set: $util.oneOfSetter($oneOfFields)
89793
+ });
89794
+
89795
+ // Virtual OneOf for proto3 optional field
89796
+ $Object.defineProperty(DraftMessageSync.prototype, "_altChatJid", {
89797
+ get: $util.oneOfGetter($oneOfFields = ["altChatJid"]),
89798
+ set: $util.oneOfSetter($oneOfFields)
89799
+ });
89800
+
89801
+ // Virtual OneOf for proto3 optional field
89802
+ $Object.defineProperty(DraftMessageSync.prototype, "_action", {
89803
+ get: $util.oneOfGetter($oneOfFields = ["action"]),
89804
+ set: $util.oneOfSetter($oneOfFields)
89805
+ });
89806
+
89807
+ // Virtual OneOf for proto3 optional field
89808
+ $Object.defineProperty(DraftMessageSync.prototype, "_editTimestampMs", {
89809
+ get: $util.oneOfGetter($oneOfFields = ["editTimestampMs"]),
89810
+ set: $util.oneOfSetter($oneOfFields)
89811
+ });
89812
+
89813
+ // Virtual OneOf for proto3 optional field
89814
+ $Object.defineProperty(DraftMessageSync.prototype, "_draft", {
89815
+ get: $util.oneOfGetter($oneOfFields = ["draft"]),
89816
+ set: $util.oneOfSetter($oneOfFields)
89817
+ });
89818
+
89819
+ // Virtual OneOf for proto3 optional field
89820
+ $Object.defineProperty(DraftMessageSync.prototype, "_clearReason", {
89821
+ get: $util.oneOfGetter($oneOfFields = ["clearReason"]),
89822
+ set: $util.oneOfSetter($oneOfFields)
89823
+ });
89824
+
89825
+ /**
89826
+ * Creates a new DraftMessageSync instance using the specified properties.
89827
+ * @function create
89828
+ * @memberof waproto.DraftMessageSync
89829
+ * @static
89830
+ * @param {waproto.DraftMessageSync.$Properties=} [properties] Properties to set
89831
+ * @returns {waproto.DraftMessageSync} DraftMessageSync instance
89832
+ * @type {{
89833
+ * (properties: waproto.DraftMessageSync.$Shape): waproto.DraftMessageSync & waproto.DraftMessageSync.$Shape;
89834
+ * (properties?: waproto.DraftMessageSync.$Properties): waproto.DraftMessageSync;
89835
+ * }}
89836
+ */
89837
+ DraftMessageSync.create = function(properties) {
89838
+ return new DraftMessageSync(properties);
89839
+ };
89840
+
89841
+ /**
89842
+ * Encodes the specified DraftMessageSync message. Does not implicitly {@link waproto.DraftMessageSync.verify|verify} messages.
89843
+ * @function encode
89844
+ * @memberof waproto.DraftMessageSync
89845
+ * @static
89846
+ * @param {waproto.DraftMessageSync.$Properties} message DraftMessageSync message or plain object to encode
89847
+ * @param {$protobuf.Writer} [writer] Writer to encode to
89848
+ * @returns {$protobuf.Writer} Writer
89849
+ */
89850
+ DraftMessageSync.encode = function (message, writer, _depth) {
89851
+ if (!writer)
89852
+ writer = $Writer.create();
89853
+ if (_depth === $undefined)
89854
+ _depth = 0;
89855
+ if (_depth > $util.recursionLimit)
89856
+ throw $Error("max depth exceeded");
89857
+ if (message.chatJid != null && $Object.hasOwnProperty.call(message, "chatJid"))
89858
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.chatJid);
89859
+ if (message.altChatJid != null && $Object.hasOwnProperty.call(message, "altChatJid"))
89860
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.altChatJid);
89861
+ if (message.action != null && $Object.hasOwnProperty.call(message, "action"))
89862
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.action);
89863
+ if (message.editTimestampMs != null && $Object.hasOwnProperty.call(message, "editTimestampMs"))
89864
+ writer.uint32(/* id 4, wireType 0 =*/32).int64(message.editTimestampMs);
89865
+ if (message.draft != null && $Object.hasOwnProperty.call(message, "draft"))
89866
+ $root.waproto.Message.encode(message.draft, writer.uint32(/* id 5, wireType 2 =*/42).fork(), _depth + 1).ldelim();
89867
+ if (message.clearReason != null && $Object.hasOwnProperty.call(message, "clearReason"))
89868
+ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.clearReason);
89869
+ if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
89870
+ for (var i = 0; i < message.$unknowns.length; ++i)
89871
+ writer.raw(message.$unknowns[i]);
89872
+ return writer;
89873
+ };
89874
+
89875
+ /**
89876
+ * Encodes the specified DraftMessageSync message, length delimited. Does not implicitly {@link waproto.DraftMessageSync.verify|verify} messages.
89877
+ * @function encodeDelimited
89878
+ * @memberof waproto.DraftMessageSync
89879
+ * @static
89880
+ * @param {waproto.DraftMessageSync.$Properties} message DraftMessageSync message or plain object to encode
89881
+ * @param {$protobuf.Writer} [writer] Writer to encode to
89882
+ * @returns {$protobuf.Writer} Writer
89883
+ */
89884
+ DraftMessageSync.encodeDelimited = function(message, writer) {
89885
+ return this.encode(message, (writer || $Writer.create()).fork()).ldelim();
89886
+ };
89887
+
89888
+ /**
89889
+ * Decodes a DraftMessageSync message from the specified reader or buffer.
89890
+ * @function decode
89891
+ * @memberof waproto.DraftMessageSync
89892
+ * @static
89893
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
89894
+ * @param {number} [length] Message length if known beforehand
89895
+ * @returns {waproto.DraftMessageSync & waproto.DraftMessageSync.$Shape} DraftMessageSync
89896
+ * @throws {Error} If the payload is not a reader or valid buffer
89897
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
89898
+ */
89899
+ DraftMessageSync.decode = function (reader, length, _end, _depth, _target) {
89900
+ if (!(reader instanceof $Reader))
89901
+ reader = $Reader.create(reader);
89902
+ if (_depth === $undefined)
89903
+ _depth = 0;
89904
+ if (_depth > $Reader.recursionLimit)
89905
+ throw $Error("max depth exceeded");
89906
+ var end, message, value;
89907
+ if (length === $undefined)
89908
+ end = reader.len;
89909
+ else {
89910
+ end = reader.pos + length;
89911
+ if (end > reader.len)
89912
+ throw $RangeError("index out of range");
89913
+ length = reader.len;
89914
+ reader.len = end;
89915
+ }
89916
+ message = _target || new $root.waproto.DraftMessageSync();
89917
+ while (reader.pos < end) {
89918
+ var start = reader.pos;
89919
+ var tag = reader.tag();
89920
+ if (tag === _end) {
89921
+ _end = $undefined;
89922
+ break;
89923
+ }
89924
+ var wireType = tag & 7;
89925
+ switch (tag >>>= 3) {
89926
+ case 1: {
89927
+ if (wireType !== 2)
89928
+ break;
89929
+ message.chatJid = reader.stringVerify();
89930
+ message._chatJid = "chatJid";
89931
+ continue;
89932
+ }
89933
+ case 2: {
89934
+ if (wireType !== 2)
89935
+ break;
89936
+ message.altChatJid = reader.stringVerify();
89937
+ message._altChatJid = "altChatJid";
89938
+ continue;
89939
+ }
89940
+ case 3: {
89941
+ if (wireType !== 0)
89942
+ break;
89943
+ message.action = reader.int32();
89944
+ message._action = "action";
89945
+ continue;
89946
+ }
89947
+ case 4: {
89948
+ if (wireType !== 0)
89949
+ break;
89950
+ message.editTimestampMs = reader.int64();
89951
+ message._editTimestampMs = "editTimestampMs";
89952
+ continue;
89953
+ }
89954
+ case 5: {
89955
+ if (wireType !== 2)
89956
+ break;
89957
+ message.draft = $root.waproto.Message.decode(reader, reader.size(), $undefined, _depth + 1, message.draft);
89958
+ message._draft = "draft";
89959
+ continue;
89960
+ }
89961
+ case 6: {
89962
+ if (wireType !== 0)
89963
+ break;
89964
+ message.clearReason = reader.int32();
89965
+ message._clearReason = "clearReason";
89966
+ continue;
89967
+ }
89968
+ }
89969
+ reader.skipType(wireType, _depth, tag);
89970
+ if (!reader.discardUnknown) {
89971
+ $util.makeProp(message, "$unknowns", false);
89972
+ (message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
89973
+ }
89974
+ }
89975
+ if (length !== $undefined) {
89976
+ if (reader.pos !== end)
89977
+ throw $RangeError("index out of range");
89978
+ reader.len = length;
89979
+ }
89980
+ if (_end !== $undefined)
89981
+ throw $Error("missing end group");
89982
+ return message;
89983
+ };
89984
+
89985
+ /**
89986
+ * Decodes a DraftMessageSync message from the specified reader or buffer, length delimited.
89987
+ * @function decodeDelimited
89988
+ * @memberof waproto.DraftMessageSync
89989
+ * @static
89990
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
89991
+ * @returns {waproto.DraftMessageSync & waproto.DraftMessageSync.$Shape} DraftMessageSync
89992
+ * @throws {Error} If the payload is not a reader or valid buffer
89993
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
89994
+ */
89995
+ DraftMessageSync.decodeDelimited = function(reader) {
89996
+ if (!(reader instanceof $Reader))
89997
+ reader = new $Reader(reader);
89998
+ return this.decode(reader, reader.size());
89999
+ };
90000
+
90001
+ /**
90002
+ * Verifies a DraftMessageSync message.
90003
+ * @function verify
90004
+ * @memberof waproto.DraftMessageSync
90005
+ * @static
90006
+ * @param {Object.<string,*>} message Plain object to verify
90007
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
90008
+ */
90009
+ DraftMessageSync.verify = function (message, _depth) {
90010
+ if (typeof message !== "object" || message === null)
90011
+ return "object expected";
90012
+ if (_depth === $undefined)
90013
+ _depth = 0;
90014
+ if (_depth > $util.recursionLimit)
90015
+ return "max depth exceeded";
90016
+ var properties = {};
90017
+ if (message.chatJid != null && $Object.hasOwnProperty.call(message, "chatJid")) {
90018
+ properties._chatJid = 1;
90019
+ if (!$util.isString(message.chatJid))
90020
+ return "chatJid: string expected";
90021
+ }
90022
+ if (message.altChatJid != null && $Object.hasOwnProperty.call(message, "altChatJid")) {
90023
+ properties._altChatJid = 1;
90024
+ if (!$util.isString(message.altChatJid))
90025
+ return "altChatJid: string expected";
90026
+ }
90027
+ if (message.action != null && $Object.hasOwnProperty.call(message, "action")) {
90028
+ properties._action = 1;
90029
+ if (typeof message.action !== "number" || (message.action | 0) !== message.action)
90030
+ return "action: enum value expected";
90031
+ }
90032
+ if (message.editTimestampMs != null && $Object.hasOwnProperty.call(message, "editTimestampMs")) {
90033
+ properties._editTimestampMs = 1;
90034
+ if (!$util.isInteger(message.editTimestampMs) && !(message.editTimestampMs && $util.isInteger(message.editTimestampMs.low) && $util.isInteger(message.editTimestampMs.high)))
90035
+ return "editTimestampMs: integer|Long expected";
90036
+ }
90037
+ if (message.draft != null && $Object.hasOwnProperty.call(message, "draft")) {
90038
+ properties._draft = 1;
90039
+ {
90040
+ var error = $root.waproto.Message.verify(message.draft, _depth + 1);
90041
+ if (error)
90042
+ return "draft." + error;
90043
+ }
90044
+ }
90045
+ if (message.clearReason != null && $Object.hasOwnProperty.call(message, "clearReason")) {
90046
+ properties._clearReason = 1;
90047
+ if (typeof message.clearReason !== "number" || (message.clearReason | 0) !== message.clearReason)
90048
+ return "clearReason: enum value expected";
90049
+ }
90050
+ return null;
90051
+ };
90052
+
90053
+ /**
90054
+ * Creates a DraftMessageSync message from a plain object. Also converts values to their respective internal types.
90055
+ * @function fromObject
90056
+ * @memberof waproto.DraftMessageSync
90057
+ * @static
90058
+ * @param {Object.<string,*>} object Plain object
90059
+ * @returns {waproto.DraftMessageSync} DraftMessageSync
90060
+ */
90061
+ DraftMessageSync.fromObject = function (object, _depth) {
90062
+ if (object instanceof $root.waproto.DraftMessageSync)
90063
+ return object;
90064
+ if (!$util.isObject(object))
90065
+ throw $TypeError(".waproto.DraftMessageSync: object expected");
90066
+ if (_depth === $undefined)
90067
+ _depth = 0;
90068
+ if (_depth > $util.recursionLimit)
90069
+ throw $Error("max depth exceeded");
90070
+ var message = new $root.waproto.DraftMessageSync();
90071
+ if (object.chatJid != null)
90072
+ message.chatJid = $String(object.chatJid);
90073
+ if (object.altChatJid != null)
90074
+ message.altChatJid = $String(object.altChatJid);
90075
+ switch (object.action) {
90076
+ case "ACTION_UNKNOWN":
90077
+ case 0:
90078
+ message.action = 0;
90079
+ break;
90080
+ case "SET":
90081
+ case 1:
90082
+ message.action = 1;
90083
+ break;
90084
+ case "CLEAR":
90085
+ case 2:
90086
+ message.action = 2;
90087
+ break;
90088
+ default:
90089
+ if (typeof object.action === "number" && (object.action | 0) === object.action)
90090
+ message.action = object.action;
90091
+ }
90092
+ if (object.editTimestampMs != null)
90093
+ if ($util.Long)
90094
+ message.editTimestampMs = $util.Long.fromValue(object.editTimestampMs, false);
90095
+ else if (typeof object.editTimestampMs === "string")
90096
+ message.editTimestampMs = $parseInt(object.editTimestampMs, 10);
90097
+ else if (typeof object.editTimestampMs === "number")
90098
+ message.editTimestampMs = object.editTimestampMs;
90099
+ else if (typeof object.editTimestampMs === "object")
90100
+ message.editTimestampMs = new $util.LongBits(object.editTimestampMs.low >>> 0, object.editTimestampMs.high >>> 0).toNumber();
90101
+ if (object.draft != null) {
90102
+ if (!$util.isObject(object.draft))
90103
+ throw $TypeError(".waproto.DraftMessageSync.draft: object expected");
90104
+ message.draft = $root.waproto.Message.fromObject(object.draft, _depth + 1);
90105
+ }
90106
+ switch (object.clearReason) {
90107
+ case "CLEAR_REASON_UNKNOWN":
90108
+ case 0:
90109
+ message.clearReason = 0;
90110
+ break;
90111
+ case "USER_CLEARED":
90112
+ case 1:
90113
+ message.clearReason = 1;
90114
+ break;
90115
+ case "SENT":
90116
+ case 2:
90117
+ message.clearReason = 2;
90118
+ break;
90119
+ case "CHAT_LOCKED":
90120
+ case 3:
90121
+ message.clearReason = 3;
90122
+ break;
90123
+ case "REPLACED_BY_NON_TEXT":
90124
+ case 4:
90125
+ message.clearReason = 4;
90126
+ break;
90127
+ default:
90128
+ if (typeof object.clearReason === "number" && (object.clearReason | 0) === object.clearReason)
90129
+ message.clearReason = object.clearReason;
90130
+ }
90131
+ return message;
90132
+ };
90133
+
90134
+ /**
90135
+ * Creates a plain object from a DraftMessageSync message. Also converts values to other types if specified.
90136
+ * @function toObject
90137
+ * @memberof waproto.DraftMessageSync
90138
+ * @static
90139
+ * @param {waproto.DraftMessageSync} message DraftMessageSync
90140
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
90141
+ * @returns {Object.<string,*>} Plain object
90142
+ */
90143
+ DraftMessageSync.toObject = function (message, options, _depth) {
90144
+ if (!options)
90145
+ options = {};
90146
+ if (_depth === $undefined)
90147
+ _depth = 0;
90148
+ if (_depth > $util.recursionLimit)
90149
+ throw $Error("max depth exceeded");
90150
+ var object = {};
90151
+ if (message.chatJid != null && $Object.hasOwnProperty.call(message, "chatJid"))
90152
+ object.chatJid = message.chatJid;
90153
+ if (message.altChatJid != null && $Object.hasOwnProperty.call(message, "altChatJid"))
90154
+ object.altChatJid = message.altChatJid;
90155
+ if (message.action != null && $Object.hasOwnProperty.call(message, "action"))
90156
+ object.action = options.enums === $String ? $root.waproto.DraftMessageSync.Action[message.action] === $undefined ? message.action : $root.waproto.DraftMessageSync.Action[message.action] : message.action;
90157
+ if (message.editTimestampMs != null && $Object.hasOwnProperty.call(message, "editTimestampMs"))
90158
+ if (typeof $BigInt !== "undefined" && options.longs === $BigInt)
90159
+ object.editTimestampMs = typeof message.editTimestampMs === "number" ? $BigInt(message.editTimestampMs) : $util.Long.fromBits(message.editTimestampMs.low >>> 0, message.editTimestampMs.high >>> 0, false).toBigInt();
90160
+ else if (typeof message.editTimestampMs === "number")
90161
+ object.editTimestampMs = options.longs === $String ? $String(message.editTimestampMs) : message.editTimestampMs;
90162
+ else
90163
+ object.editTimestampMs = options.longs === $String ? $util.Long.prototype.toString.call(message.editTimestampMs) : options.longs === $Number ? new $util.LongBits(message.editTimestampMs.low >>> 0, message.editTimestampMs.high >>> 0).toNumber() : message.editTimestampMs;
90164
+ if (message.draft != null && $Object.hasOwnProperty.call(message, "draft"))
90165
+ object.draft = $root.waproto.Message.toObject(message.draft, options, _depth + 1);
90166
+ if (message.clearReason != null && $Object.hasOwnProperty.call(message, "clearReason"))
90167
+ object.clearReason = options.enums === $String ? $root.waproto.DraftMessageSync.ClearReason[message.clearReason] === $undefined ? message.clearReason : $root.waproto.DraftMessageSync.ClearReason[message.clearReason] : message.clearReason;
90168
+ return object;
90169
+ };
90170
+
90171
+ /**
90172
+ * Converts this DraftMessageSync to JSON.
90173
+ * @function toJSON
90174
+ * @memberof waproto.DraftMessageSync
90175
+ * @instance
90176
+ * @returns {Object.<string,*>} JSON object
90177
+ */
90178
+ DraftMessageSync.prototype.toJSON = function() {
90179
+ return DraftMessageSync.toObject(this, $protobuf.util.toJSONOptions);
90180
+ };
90181
+
90182
+ /**
90183
+ * Gets the type url for DraftMessageSync
90184
+ * @function getTypeUrl
90185
+ * @memberof waproto.DraftMessageSync
90186
+ * @static
90187
+ * @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
90188
+ * @returns {string} The type url
90189
+ */
90190
+ DraftMessageSync.getTypeUrl = function(prefix) {
90191
+ if (prefix === $undefined)
90192
+ prefix = "type.googleapis.com";
90193
+ return prefix + "/waproto.DraftMessageSync";
90194
+ };
90195
+
90196
+ /**
90197
+ * Action enum.
90198
+ * @name waproto.DraftMessageSync.Action
90199
+ * @enum {number}
90200
+ * @property {number} ACTION_UNKNOWN=0 ACTION_UNKNOWN value
90201
+ * @property {number} SET=1 SET value
90202
+ * @property {number} CLEAR=2 CLEAR value
90203
+ */
90204
+ DraftMessageSync.Action = (function() {
90205
+ var valuesById = $Object.create(null), values = $Object.create(valuesById);
90206
+ values[valuesById[0] = "ACTION_UNKNOWN"] = 0;
90207
+ values[valuesById[1] = "SET"] = 1;
90208
+ values[valuesById[2] = "CLEAR"] = 2;
90209
+ return values;
90210
+ })();
90211
+
90212
+ /**
90213
+ * ClearReason enum.
90214
+ * @name waproto.DraftMessageSync.ClearReason
90215
+ * @enum {number}
90216
+ * @property {number} CLEAR_REASON_UNKNOWN=0 CLEAR_REASON_UNKNOWN value
90217
+ * @property {number} USER_CLEARED=1 USER_CLEARED value
90218
+ * @property {number} SENT=2 SENT value
90219
+ * @property {number} CHAT_LOCKED=3 CHAT_LOCKED value
90220
+ * @property {number} REPLACED_BY_NON_TEXT=4 REPLACED_BY_NON_TEXT value
90221
+ */
90222
+ DraftMessageSync.ClearReason = (function() {
90223
+ var valuesById = $Object.create(null), values = $Object.create(valuesById);
90224
+ values[valuesById[0] = "CLEAR_REASON_UNKNOWN"] = 0;
90225
+ values[valuesById[1] = "USER_CLEARED"] = 1;
90226
+ values[valuesById[2] = "SENT"] = 2;
90227
+ values[valuesById[3] = "CHAT_LOCKED"] = 3;
90228
+ values[valuesById[4] = "REPLACED_BY_NON_TEXT"] = 4;
90229
+ return values;
90230
+ })();
90231
+
90232
+ return DraftMessageSync;
90233
+ })();
90234
+
88899
90235
  waproto.EmbeddedContent = (function() {
88900
90236
 
88901
90237
  /**
@@ -191426,6 +192762,7 @@ $root.waproto = (function() {
191426
192762
  * @property {waproto.MembershipFormKeyFingerprintVerification.$Properties|null} [membershipFormKeyFingerprintVerification] ProtocolMessage membershipFormKeyFingerprintVerification
191427
192763
  * @property {waproto.GroupRootKeyShare.$Properties|null} [groupRootKeyShare] ProtocolMessage groupRootKeyShare
191428
192764
  * @property {waproto.Message.ProtocolMessage.MessageEditDisplayType|null} [messageEditDisplayType] ProtocolMessage messageEditDisplayType
192765
+ * @property {waproto.DraftMessageSync.$Properties|null} [draftMessageSync] ProtocolMessage draftMessageSync
191429
192766
  * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
191430
192767
  */
191431
192768
 
@@ -191478,6 +192815,7 @@ $root.waproto = (function() {
191478
192815
  * membershipFormKeyFingerprintVerification?: waproto.MembershipFormKeyFingerprintVerification.$Shape|null;
191479
192816
  * groupRootKeyShare?: waproto.GroupRootKeyShare.$Shape|null;
191480
192817
  * messageEditDisplayType?: waproto.Message.ProtocolMessage.MessageEditDisplayType|null;
192818
+ * draftMessageSync?: waproto.DraftMessageSync.$Shape|null;
191481
192819
  * $unknowns?: Array.<Uint8Array>;
191482
192820
  * }} waproto.Message.ProtocolMessage.$Shape
191483
192821
  */
@@ -191802,6 +193140,14 @@ $root.waproto = (function() {
191802
193140
  */
191803
193141
  ProtocolMessage.prototype.messageEditDisplayType = null;
191804
193142
 
193143
+ /**
193144
+ * ProtocolMessage draftMessageSync.
193145
+ * @member {waproto.DraftMessageSync.$Properties|null|undefined} draftMessageSync
193146
+ * @memberof waproto.Message.ProtocolMessage
193147
+ * @instance
193148
+ */
193149
+ ProtocolMessage.prototype.draftMessageSync = null;
193150
+
191805
193151
  // OneOf field names bound to virtual getters and setters
191806
193152
  var $oneOfFields;
191807
193153
 
@@ -192027,6 +193373,12 @@ $root.waproto = (function() {
192027
193373
  set: $util.oneOfSetter($oneOfFields)
192028
193374
  });
192029
193375
 
193376
+ // Virtual OneOf for proto3 optional field
193377
+ $Object.defineProperty(ProtocolMessage.prototype, "_draftMessageSync", {
193378
+ get: $util.oneOfGetter($oneOfFields = ["draftMessageSync"]),
193379
+ set: $util.oneOfSetter($oneOfFields)
193380
+ });
193381
+
192030
193382
  /**
192031
193383
  * Creates a new ProtocolMessage instance using the specified properties.
192032
193384
  * @function create
@@ -192136,6 +193488,8 @@ $root.waproto = (function() {
192136
193488
  $root.waproto.GroupRootKeyShare.encode(message.groupRootKeyShare, writer.uint32(/* id 41, wireType 2 =*/330).fork(), _depth + 1).ldelim();
192137
193489
  if (message.messageEditDisplayType != null && $Object.hasOwnProperty.call(message, "messageEditDisplayType"))
192138
193490
  writer.uint32(/* id 42, wireType 0 =*/336).int32(message.messageEditDisplayType);
193491
+ if (message.draftMessageSync != null && $Object.hasOwnProperty.call(message, "draftMessageSync"))
193492
+ $root.waproto.DraftMessageSync.encode(message.draftMessageSync, writer.uint32(/* id 43, wireType 2 =*/346).fork(), _depth + 1).ldelim();
192139
193493
  if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
192140
193494
  for (var i = 0; i < message.$unknowns.length; ++i)
192141
193495
  writer.raw(message.$unknowns[i]);
@@ -192460,6 +193814,13 @@ $root.waproto = (function() {
192460
193814
  message._messageEditDisplayType = "messageEditDisplayType";
192461
193815
  continue;
192462
193816
  }
193817
+ case 43: {
193818
+ if (wireType !== 2)
193819
+ break;
193820
+ message.draftMessageSync = $root.waproto.DraftMessageSync.decode(reader, reader.size(), $undefined, _depth + 1, message.draftMessageSync);
193821
+ message._draftMessageSync = "draftMessageSync";
193822
+ continue;
193823
+ }
192463
193824
  }
192464
193825
  reader.skipType(wireType, _depth, tag);
192465
193826
  if (!reader.discardUnknown) {
@@ -192788,6 +194149,14 @@ $root.waproto = (function() {
192788
194149
  if (typeof message.messageEditDisplayType !== "number" || (message.messageEditDisplayType | 0) !== message.messageEditDisplayType)
192789
194150
  return "messageEditDisplayType: enum value expected";
192790
194151
  }
194152
+ if (message.draftMessageSync != null && $Object.hasOwnProperty.call(message, "draftMessageSync")) {
194153
+ properties._draftMessageSync = 1;
194154
+ {
194155
+ var error = $root.waproto.DraftMessageSync.verify(message.draftMessageSync, _depth + 1);
194156
+ if (error)
194157
+ return "draftMessageSync." + error;
194158
+ }
194159
+ }
192791
194160
  return null;
192792
194161
  };
192793
194162
 
@@ -192967,6 +194336,10 @@ $root.waproto = (function() {
192967
194336
  case 44:
192968
194337
  message.type = 44;
192969
194338
  break;
194339
+ case "DRAFT_MESSAGE_SYNC":
194340
+ case 45:
194341
+ message.type = 45;
194342
+ break;
192970
194343
  default:
192971
194344
  if (typeof object.type === "number" && (object.type | 0) === object.type)
192972
194345
  message.type = object.type;
@@ -193160,6 +194533,11 @@ $root.waproto = (function() {
193160
194533
  if (typeof object.messageEditDisplayType === "number" && (object.messageEditDisplayType | 0) === object.messageEditDisplayType)
193161
194534
  message.messageEditDisplayType = object.messageEditDisplayType;
193162
194535
  }
194536
+ if (object.draftMessageSync != null) {
194537
+ if (!$util.isObject(object.draftMessageSync))
194538
+ throw $TypeError(".waproto.Message.ProtocolMessage.draftMessageSync: object expected");
194539
+ message.draftMessageSync = $root.waproto.DraftMessageSync.fromObject(object.draftMessageSync, _depth + 1);
194540
+ }
193163
194541
  return message;
193164
194542
  };
193165
194543
 
@@ -193271,6 +194649,8 @@ $root.waproto = (function() {
193271
194649
  object.groupRootKeyShare = $root.waproto.GroupRootKeyShare.toObject(message.groupRootKeyShare, options, _depth + 1);
193272
194650
  if (message.messageEditDisplayType != null && $Object.hasOwnProperty.call(message, "messageEditDisplayType"))
193273
194651
  object.messageEditDisplayType = options.enums === $String ? $root.waproto.Message.ProtocolMessage.MessageEditDisplayType[message.messageEditDisplayType] === $undefined ? message.messageEditDisplayType : $root.waproto.Message.ProtocolMessage.MessageEditDisplayType[message.messageEditDisplayType] : message.messageEditDisplayType;
194652
+ if (message.draftMessageSync != null && $Object.hasOwnProperty.call(message, "draftMessageSync"))
194653
+ object.draftMessageSync = $root.waproto.DraftMessageSync.toObject(message.draftMessageSync, options, _depth + 1);
193274
194654
  return object;
193275
194655
  };
193276
194656
 
@@ -193355,6 +194735,7 @@ $root.waproto = (function() {
193355
194735
  * @property {number} GROUP_ROOT_KEY_REQUEST=42 GROUP_ROOT_KEY_REQUEST value
193356
194736
  * @property {number} MEMBERSHIP_FORM_KEY_FINGERPRINT_VERIFICATION=43 MEMBERSHIP_FORM_KEY_FINGERPRINT_VERIFICATION value
193357
194737
  * @property {number} GROUP_ROOT_KEY_SHARE=44 GROUP_ROOT_KEY_SHARE value
194738
+ * @property {number} DRAFT_MESSAGE_SYNC=45 DRAFT_MESSAGE_SYNC value
193358
194739
  */
193359
194740
  ProtocolMessage.Type = (function() {
193360
194741
  var valuesById = $Object.create(null), values = $Object.create(valuesById);
@@ -193396,6 +194777,7 @@ $root.waproto = (function() {
193396
194777
  values[valuesById[42] = "GROUP_ROOT_KEY_REQUEST"] = 42;
193397
194778
  values[valuesById[43] = "MEMBERSHIP_FORM_KEY_FINGERPRINT_VERIFICATION"] = 43;
193398
194779
  values[valuesById[44] = "GROUP_ROOT_KEY_SHARE"] = 44;
194780
+ values[valuesById[45] = "DRAFT_MESSAGE_SYNC"] = 45;
193399
194781
  return values;
193400
194782
  })();
193401
194783
 
@@ -236777,6 +238159,8 @@ $root.waproto = (function() {
236777
238159
  * @property {number|Long} serverDataId PrepareAddPeerDeviceSuccess serverDataId
236778
238160
  * @property {Uint8Array} companionDeviceBinding PrepareAddPeerDeviceSuccess companionDeviceBinding
236779
238161
  * @property {number|Long|null} [historyStartTime] PrepareAddPeerDeviceSuccess historyStartTime
238162
+ * @property {Uint8Array|null} [identityBindingBlob] PrepareAddPeerDeviceSuccess identityBindingBlob
238163
+ * @property {Uint8Array|null} [bindingSigByLabyrinthDevice] PrepareAddPeerDeviceSuccess bindingSigByLabyrinthDevice
236780
238164
  * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
236781
238165
  */
236782
238166
 
@@ -236840,6 +238224,22 @@ $root.waproto = (function() {
236840
238224
  */
236841
238225
  PrepareAddPeerDeviceSuccess.prototype.historyStartTime = null;
236842
238226
 
238227
+ /**
238228
+ * PrepareAddPeerDeviceSuccess identityBindingBlob.
238229
+ * @member {Uint8Array|null|undefined} identityBindingBlob
238230
+ * @memberof waproto.PrepareAddPeerDeviceSuccess
238231
+ * @instance
238232
+ */
238233
+ PrepareAddPeerDeviceSuccess.prototype.identityBindingBlob = null;
238234
+
238235
+ /**
238236
+ * PrepareAddPeerDeviceSuccess bindingSigByLabyrinthDevice.
238237
+ * @member {Uint8Array|null|undefined} bindingSigByLabyrinthDevice
238238
+ * @memberof waproto.PrepareAddPeerDeviceSuccess
238239
+ * @instance
238240
+ */
238241
+ PrepareAddPeerDeviceSuccess.prototype.bindingSigByLabyrinthDevice = null;
238242
+
236843
238243
  // OneOf field names bound to virtual getters and setters
236844
238244
  var $oneOfFields;
236845
238245
 
@@ -236849,6 +238249,18 @@ $root.waproto = (function() {
236849
238249
  set: $util.oneOfSetter($oneOfFields)
236850
238250
  });
236851
238251
 
238252
+ // Virtual OneOf for proto3 optional field
238253
+ $Object.defineProperty(PrepareAddPeerDeviceSuccess.prototype, "_identityBindingBlob", {
238254
+ get: $util.oneOfGetter($oneOfFields = ["identityBindingBlob"]),
238255
+ set: $util.oneOfSetter($oneOfFields)
238256
+ });
238257
+
238258
+ // Virtual OneOf for proto3 optional field
238259
+ $Object.defineProperty(PrepareAddPeerDeviceSuccess.prototype, "_bindingSigByLabyrinthDevice", {
238260
+ get: $util.oneOfGetter($oneOfFields = ["bindingSigByLabyrinthDevice"]),
238261
+ set: $util.oneOfSetter($oneOfFields)
238262
+ });
238263
+
236852
238264
  /**
236853
238265
  * Creates a new PrepareAddPeerDeviceSuccess instance using the specified properties.
236854
238266
  * @function create
@@ -236886,6 +238298,10 @@ $root.waproto = (function() {
236886
238298
  writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.companionDeviceBinding);
236887
238299
  if (message.historyStartTime != null && $Object.hasOwnProperty.call(message, "historyStartTime"))
236888
238300
  writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.historyStartTime);
238301
+ if (message.identityBindingBlob != null && $Object.hasOwnProperty.call(message, "identityBindingBlob"))
238302
+ writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.identityBindingBlob);
238303
+ if (message.bindingSigByLabyrinthDevice != null && $Object.hasOwnProperty.call(message, "bindingSigByLabyrinthDevice"))
238304
+ writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.bindingSigByLabyrinthDevice);
236889
238305
  if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
236890
238306
  for (var i = 0; i < message.$unknowns.length; ++i)
236891
238307
  writer.raw(message.$unknowns[i]);
@@ -236968,6 +238384,20 @@ $root.waproto = (function() {
236968
238384
  message._historyStartTime = "historyStartTime";
236969
238385
  continue;
236970
238386
  }
238387
+ case 5: {
238388
+ if (wireType !== 2)
238389
+ break;
238390
+ message.identityBindingBlob = reader.bytes();
238391
+ message._identityBindingBlob = "identityBindingBlob";
238392
+ continue;
238393
+ }
238394
+ case 6: {
238395
+ if (wireType !== 2)
238396
+ break;
238397
+ message.bindingSigByLabyrinthDevice = reader.bytes();
238398
+ message._bindingSigByLabyrinthDevice = "bindingSigByLabyrinthDevice";
238399
+ continue;
238400
+ }
236971
238401
  }
236972
238402
  reader.skipType(wireType, _depth, tag);
236973
238403
  if (!reader.discardUnknown) {
@@ -237037,6 +238467,16 @@ $root.waproto = (function() {
237037
238467
  if (!$util.isInteger(message.historyStartTime) && !(message.historyStartTime && $util.isInteger(message.historyStartTime.low) && $util.isInteger(message.historyStartTime.high)))
237038
238468
  return "historyStartTime: integer|Long expected";
237039
238469
  }
238470
+ if (message.identityBindingBlob != null && $Object.hasOwnProperty.call(message, "identityBindingBlob")) {
238471
+ properties._identityBindingBlob = 1;
238472
+ if (!(message.identityBindingBlob && typeof message.identityBindingBlob.length === "number" || $util.isString(message.identityBindingBlob)))
238473
+ return "identityBindingBlob: buffer expected";
238474
+ }
238475
+ if (message.bindingSigByLabyrinthDevice != null && $Object.hasOwnProperty.call(message, "bindingSigByLabyrinthDevice")) {
238476
+ properties._bindingSigByLabyrinthDevice = 1;
238477
+ if (!(message.bindingSigByLabyrinthDevice && typeof message.bindingSigByLabyrinthDevice.length === "number" || $util.isString(message.bindingSigByLabyrinthDevice)))
238478
+ return "bindingSigByLabyrinthDevice: buffer expected";
238479
+ }
237040
238480
  return null;
237041
238481
  };
237042
238482
 
@@ -237086,6 +238526,16 @@ $root.waproto = (function() {
237086
238526
  message.historyStartTime = object.historyStartTime;
237087
238527
  else if (typeof object.historyStartTime === "object")
237088
238528
  message.historyStartTime = new $util.LongBits(object.historyStartTime.low >>> 0, object.historyStartTime.high >>> 0).toNumber(true);
238529
+ if (object.identityBindingBlob != null)
238530
+ if (typeof object.identityBindingBlob === "string")
238531
+ $util.base64.decode(object.identityBindingBlob, message.identityBindingBlob = $util.newBuffer($util.base64.length(object.identityBindingBlob)), 0);
238532
+ else if (object.identityBindingBlob.length >= 0)
238533
+ message.identityBindingBlob = object.identityBindingBlob;
238534
+ if (object.bindingSigByLabyrinthDevice != null)
238535
+ if (typeof object.bindingSigByLabyrinthDevice === "string")
238536
+ $util.base64.decode(object.bindingSigByLabyrinthDevice, message.bindingSigByLabyrinthDevice = $util.newBuffer($util.base64.length(object.bindingSigByLabyrinthDevice)), 0);
238537
+ else if (object.bindingSigByLabyrinthDevice.length >= 0)
238538
+ message.bindingSigByLabyrinthDevice = object.bindingSigByLabyrinthDevice;
237089
238539
  return message;
237090
238540
  };
237091
238541
 
@@ -237139,6 +238589,10 @@ $root.waproto = (function() {
237139
238589
  object.historyStartTime = options.longs === $String ? $String(message.historyStartTime) : message.historyStartTime;
237140
238590
  else
237141
238591
  object.historyStartTime = options.longs === $String ? $util.Long.prototype.toString.call(message.historyStartTime) : options.longs === $Number ? new $util.LongBits(message.historyStartTime.low >>> 0, message.historyStartTime.high >>> 0).toNumber(true) : message.historyStartTime;
238592
+ if (message.identityBindingBlob != null && $Object.hasOwnProperty.call(message, "identityBindingBlob"))
238593
+ object.identityBindingBlob = options.bytes === $String ? $util.base64.encode(message.identityBindingBlob, 0, message.identityBindingBlob.length) : options.bytes === $Array ? $Array.prototype.slice.call(message.identityBindingBlob) : message.identityBindingBlob;
238594
+ if (message.bindingSigByLabyrinthDevice != null && $Object.hasOwnProperty.call(message, "bindingSigByLabyrinthDevice"))
238595
+ object.bindingSigByLabyrinthDevice = options.bytes === $String ? $util.base64.encode(message.bindingSigByLabyrinthDevice, 0, message.bindingSigByLabyrinthDevice.length) : options.bytes === $Array ? $Array.prototype.slice.call(message.bindingSigByLabyrinthDevice) : message.bindingSigByLabyrinthDevice;
237142
238596
  return object;
237143
238597
  };
237144
238598