@itsliaaa/baileys 0.3.15 → 0.3.17

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/WAProto/index.js CHANGED
@@ -16363,6 +16363,10 @@ export const proto = $root.proto = (() => {
16363
16363
  case 2:
16364
16364
  m.useCase = 2;
16365
16365
  break;
16366
+ case "P2P_PILLS":
16367
+ case 3:
16368
+ m.useCase = 3;
16369
+ break;
16366
16370
  }
16367
16371
  if (d.signature != null) {
16368
16372
  if (typeof d.signature === "string")
@@ -16431,6 +16435,7 @@ export const proto = $root.proto = (() => {
16431
16435
  values[valuesById[0] = "UNSPECIFIED"] = 0;
16432
16436
  values[valuesById[1] = "WA_BOT_MSG"] = 1;
16433
16437
  values[valuesById[2] = "WA_TEE_BOT_MSG"] = 2;
16438
+ values[valuesById[3] = "P2P_PILLS"] = 3;
16434
16439
  return values;
16435
16440
  })();
16436
16441
 
@@ -25357,6 +25362,8 @@ export const proto = $root.proto = (() => {
25357
25362
  BusinessInteractionPills.prototype.businessJid = null;
25358
25363
  BusinessInteractionPills.prototype.pills = $util.emptyArray;
25359
25364
  BusinessInteractionPills.prototype.entryPoint = null;
25365
+ BusinessInteractionPills.prototype.signedPayload = null;
25366
+ BusinessInteractionPills.prototype.signatureEnvelope = null;
25360
25367
 
25361
25368
  let $oneOfFields;
25362
25369
 
@@ -25372,6 +25379,18 @@ export const proto = $root.proto = (() => {
25372
25379
  set: $util.oneOfSetter($oneOfFields)
25373
25380
  });
25374
25381
 
25382
+ // Virtual OneOf for proto3 optional field
25383
+ Object.defineProperty(BusinessInteractionPills.prototype, "_signedPayload", {
25384
+ get: $util.oneOfGetter($oneOfFields = ["signedPayload"]),
25385
+ set: $util.oneOfSetter($oneOfFields)
25386
+ });
25387
+
25388
+ // Virtual OneOf for proto3 optional field
25389
+ Object.defineProperty(BusinessInteractionPills.prototype, "_signatureEnvelope", {
25390
+ get: $util.oneOfGetter($oneOfFields = ["signatureEnvelope"]),
25391
+ set: $util.oneOfSetter($oneOfFields)
25392
+ });
25393
+
25375
25394
  BusinessInteractionPills.create = function create(properties) {
25376
25395
  return new BusinessInteractionPills(properties);
25377
25396
  };
@@ -25387,6 +25406,10 @@ export const proto = $root.proto = (() => {
25387
25406
  }
25388
25407
  if (m.entryPoint != null && Object.hasOwnProperty.call(m, "entryPoint"))
25389
25408
  w.uint32(24).int32(m.entryPoint);
25409
+ if (m.signedPayload != null && Object.hasOwnProperty.call(m, "signedPayload"))
25410
+ w.uint32(34).bytes(m.signedPayload);
25411
+ if (m.signatureEnvelope != null && Object.hasOwnProperty.call(m, "signatureEnvelope"))
25412
+ $root.proto.BotSignatureVerificationMetadata.encode(m.signatureEnvelope, w.uint32(42).fork()).ldelim();
25390
25413
  return w;
25391
25414
  };
25392
25415
 
@@ -25417,6 +25440,14 @@ export const proto = $root.proto = (() => {
25417
25440
  m.entryPoint = r.int32();
25418
25441
  break;
25419
25442
  }
25443
+ case 4: {
25444
+ m.signedPayload = r.bytes();
25445
+ break;
25446
+ }
25447
+ case 5: {
25448
+ m.signatureEnvelope = $root.proto.BotSignatureVerificationMetadata.decode(r, r.uint32(), undefined, n + 1);
25449
+ break;
25450
+ }
25420
25451
  default:
25421
25452
  r.skipType(t & 7, n);
25422
25453
  break;
@@ -25478,6 +25509,17 @@ export const proto = $root.proto = (() => {
25478
25509
  m.entryPoint = 5;
25479
25510
  break;
25480
25511
  }
25512
+ if (d.signedPayload != null) {
25513
+ if (typeof d.signedPayload === "string")
25514
+ $util.base64.decode(d.signedPayload, m.signedPayload = $util.newBuffer($util.base64.length(d.signedPayload)), 0);
25515
+ else if (d.signedPayload.length >= 0)
25516
+ m.signedPayload = d.signedPayload;
25517
+ }
25518
+ if (d.signatureEnvelope != null) {
25519
+ if (typeof d.signatureEnvelope !== "object")
25520
+ throw TypeError(".proto.ContextInfo.BusinessInteractionPills.signatureEnvelope: object expected");
25521
+ m.signatureEnvelope = $root.proto.BotSignatureVerificationMetadata.fromObject(d.signatureEnvelope, n + 1);
25522
+ }
25481
25523
  return m;
25482
25524
  };
25483
25525
 
@@ -25504,6 +25546,16 @@ export const proto = $root.proto = (() => {
25504
25546
  if (o.oneofs)
25505
25547
  d._entryPoint = "entryPoint";
25506
25548
  }
25549
+ if (m.signedPayload != null && m.hasOwnProperty("signedPayload")) {
25550
+ d.signedPayload = o.bytes === String ? $util.base64.encode(m.signedPayload, 0, m.signedPayload.length) : o.bytes === Array ? Array.prototype.slice.call(m.signedPayload) : m.signedPayload;
25551
+ if (o.oneofs)
25552
+ d._signedPayload = "signedPayload";
25553
+ }
25554
+ if (m.signatureEnvelope != null && m.hasOwnProperty("signatureEnvelope")) {
25555
+ d.signatureEnvelope = $root.proto.BotSignatureVerificationMetadata.toObject(m.signatureEnvelope, o);
25556
+ if (o.oneofs)
25557
+ d._signatureEnvelope = "signatureEnvelope";
25558
+ }
25507
25559
  return d;
25508
25560
  };
25509
25561
 
@@ -25721,6 +25773,133 @@ export const proto = $root.proto = (() => {
25721
25773
  return values;
25722
25774
  })();
25723
25775
 
25776
+ BusinessInteractionPills.SignedPayload = (function() {
25777
+
25778
+ function SignedPayload(p) {
25779
+ this.pills = [];
25780
+ if (p)
25781
+ for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
25782
+ if (p[ks[i]] != null && ks[i] !== "__proto__")
25783
+ this[ks[i]] = p[ks[i]];
25784
+ }
25785
+
25786
+ SignedPayload.prototype.verifiedName = null;
25787
+ SignedPayload.prototype.pills = $util.emptyArray;
25788
+
25789
+ let $oneOfFields;
25790
+
25791
+ // Virtual OneOf for proto3 optional field
25792
+ Object.defineProperty(SignedPayload.prototype, "_verifiedName", {
25793
+ get: $util.oneOfGetter($oneOfFields = ["verifiedName"]),
25794
+ set: $util.oneOfSetter($oneOfFields)
25795
+ });
25796
+
25797
+ SignedPayload.create = function create(properties) {
25798
+ return new SignedPayload(properties);
25799
+ };
25800
+
25801
+ SignedPayload.encode = function encode(m, w) {
25802
+ if (!w)
25803
+ w = $Writer.create();
25804
+ if (m.verifiedName != null && Object.hasOwnProperty.call(m, "verifiedName"))
25805
+ w.uint32(10).string(m.verifiedName);
25806
+ if (m.pills != null && m.pills.length) {
25807
+ for (var i = 0; i < m.pills.length; ++i)
25808
+ $root.proto.ContextInfo.BusinessInteractionPills.Pill.encode(m.pills[i], w.uint32(18).fork()).ldelim();
25809
+ }
25810
+ return w;
25811
+ };
25812
+
25813
+ SignedPayload.decode = function decode(r, l, e, n) {
25814
+ if (!(r instanceof $Reader))
25815
+ r = $Reader.create(r);
25816
+ if (n === undefined)
25817
+ n = 0;
25818
+ if (n > $Reader.recursionLimit)
25819
+ throw Error("maximum nesting depth exceeded");
25820
+ var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.ContextInfo.BusinessInteractionPills.SignedPayload();
25821
+ while (r.pos < c) {
25822
+ var t = r.uint32();
25823
+ if (t === e)
25824
+ break;
25825
+ switch (t >>> 3) {
25826
+ case 1: {
25827
+ m.verifiedName = r.string();
25828
+ break;
25829
+ }
25830
+ case 2: {
25831
+ if (!(m.pills && m.pills.length))
25832
+ m.pills = [];
25833
+ m.pills.push($root.proto.ContextInfo.BusinessInteractionPills.Pill.decode(r, r.uint32(), undefined, n + 1));
25834
+ break;
25835
+ }
25836
+ default:
25837
+ r.skipType(t & 7, n);
25838
+ break;
25839
+ }
25840
+ }
25841
+ return m;
25842
+ };
25843
+
25844
+ SignedPayload.fromObject = function fromObject(d, n) {
25845
+ if (d instanceof $root.proto.ContextInfo.BusinessInteractionPills.SignedPayload)
25846
+ return d;
25847
+ if (n === undefined)
25848
+ n = 0;
25849
+ if (n > $util.recursionLimit)
25850
+ throw Error("maximum nesting depth exceeded");
25851
+ var m = new $root.proto.ContextInfo.BusinessInteractionPills.SignedPayload();
25852
+ if (d.verifiedName != null) {
25853
+ m.verifiedName = String(d.verifiedName);
25854
+ }
25855
+ if (d.pills) {
25856
+ if (!Array.isArray(d.pills))
25857
+ throw TypeError(".proto.ContextInfo.BusinessInteractionPills.SignedPayload.pills: array expected");
25858
+ m.pills = [];
25859
+ for (var i = 0; i < d.pills.length; ++i) {
25860
+ if (typeof d.pills[i] !== "object")
25861
+ throw TypeError(".proto.ContextInfo.BusinessInteractionPills.SignedPayload.pills: object expected");
25862
+ m.pills[i] = $root.proto.ContextInfo.BusinessInteractionPills.Pill.fromObject(d.pills[i], n + 1);
25863
+ }
25864
+ }
25865
+ return m;
25866
+ };
25867
+
25868
+ SignedPayload.toObject = function toObject(m, o) {
25869
+ if (!o)
25870
+ o = {};
25871
+ var d = {};
25872
+ if (o.arrays || o.defaults) {
25873
+ d.pills = [];
25874
+ }
25875
+ if (m.verifiedName != null && m.hasOwnProperty("verifiedName")) {
25876
+ d.verifiedName = m.verifiedName;
25877
+ if (o.oneofs)
25878
+ d._verifiedName = "verifiedName";
25879
+ }
25880
+ if (m.pills && m.pills.length) {
25881
+ d.pills = [];
25882
+ for (var j = 0; j < m.pills.length; ++j) {
25883
+ d.pills[j] = $root.proto.ContextInfo.BusinessInteractionPills.Pill.toObject(m.pills[j], o);
25884
+ }
25885
+ }
25886
+ return d;
25887
+ };
25888
+
25889
+ SignedPayload.prototype.toJSON = function toJSON() {
25890
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
25891
+ };
25892
+
25893
+ SignedPayload.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
25894
+ if (typeUrlPrefix === undefined) {
25895
+ typeUrlPrefix = "type.googleapis.com";
25896
+ }
25897
+ return typeUrlPrefix + "/proto.ContextInfo.BusinessInteractionPills.SignedPayload";
25898
+ };
25899
+
25900
+ return SignedPayload;
25901
+ })();
25902
+
25724
25903
  return BusinessInteractionPills;
25725
25904
  })();
25726
25905
 
@@ -41674,6 +41853,7 @@ export const proto = $root.proto = (() => {
41674
41853
  Message.prototype.paymentReminderMessage = null;
41675
41854
  Message.prototype.splitPaymentMessage = null;
41676
41855
  Message.prototype.newsletterAdminProfileStatusMessage = null;
41856
+ Message.prototype.rootSecretDistributeMessage = null;
41677
41857
 
41678
41858
  let $oneOfFields;
41679
41859
 
@@ -42313,6 +42493,12 @@ export const proto = $root.proto = (() => {
42313
42493
  set: $util.oneOfSetter($oneOfFields)
42314
42494
  });
42315
42495
 
42496
+ // Virtual OneOf for proto3 optional field
42497
+ Object.defineProperty(Message.prototype, "_rootSecretDistributeMessage", {
42498
+ get: $util.oneOfGetter($oneOfFields = ["rootSecretDistributeMessage"]),
42499
+ set: $util.oneOfSetter($oneOfFields)
42500
+ });
42501
+
42316
42502
  Message.create = function create(properties) {
42317
42503
  return new Message(properties);
42318
42504
  };
@@ -42532,6 +42718,8 @@ export const proto = $root.proto = (() => {
42532
42718
  $root.proto.Message.SplitPaymentMessage.encode(m.splitPaymentMessage, w.uint32(1002).fork()).ldelim();
42533
42719
  if (m.newsletterAdminProfileStatusMessage != null && Object.hasOwnProperty.call(m, "newsletterAdminProfileStatusMessage"))
42534
42720
  $root.proto.Message.FutureProofMessage.encode(m.newsletterAdminProfileStatusMessage, w.uint32(1010).fork()).ldelim();
42721
+ if (m.rootSecretDistributeMessage != null && Object.hasOwnProperty.call(m, "rootSecretDistributeMessage"))
42722
+ $root.proto.Message.RootSecretDistributeMessage.encode(m.rootSecretDistributeMessage, w.uint32(1018).fork()).ldelim();
42535
42723
  return w;
42536
42724
  };
42537
42725
 
@@ -42972,6 +43160,10 @@ export const proto = $root.proto = (() => {
42972
43160
  m.newsletterAdminProfileStatusMessage = $root.proto.Message.FutureProofMessage.decode(r, r.uint32(), undefined, n + 1);
42973
43161
  break;
42974
43162
  }
43163
+ case 127: {
43164
+ m.rootSecretDistributeMessage = $root.proto.Message.RootSecretDistributeMessage.decode(r, r.uint32(), undefined, n + 1);
43165
+ break;
43166
+ }
42975
43167
  default:
42976
43168
  r.skipType(t & 7, n);
42977
43169
  break;
@@ -43516,6 +43708,11 @@ export const proto = $root.proto = (() => {
43516
43708
  throw TypeError(".proto.Message.newsletterAdminProfileStatusMessage: object expected");
43517
43709
  m.newsletterAdminProfileStatusMessage = $root.proto.Message.FutureProofMessage.fromObject(d.newsletterAdminProfileStatusMessage, n + 1);
43518
43710
  }
43711
+ if (d.rootSecretDistributeMessage != null) {
43712
+ if (typeof d.rootSecretDistributeMessage !== "object")
43713
+ throw TypeError(".proto.Message.rootSecretDistributeMessage: object expected");
43714
+ m.rootSecretDistributeMessage = $root.proto.Message.RootSecretDistributeMessage.fromObject(d.rootSecretDistributeMessage, n + 1);
43715
+ }
43519
43716
  return m;
43520
43717
  };
43521
43718
 
@@ -44053,6 +44250,11 @@ export const proto = $root.proto = (() => {
44053
44250
  if (o.oneofs)
44054
44251
  d._newsletterAdminProfileStatusMessage = "newsletterAdminProfileStatusMessage";
44055
44252
  }
44253
+ if (m.rootSecretDistributeMessage != null && m.hasOwnProperty("rootSecretDistributeMessage")) {
44254
+ d.rootSecretDistributeMessage = $root.proto.Message.RootSecretDistributeMessage.toObject(m.rootSecretDistributeMessage, o);
44255
+ if (o.oneofs)
44256
+ d._rootSecretDistributeMessage = "rootSecretDistributeMessage";
44257
+ }
44056
44258
  return d;
44057
44259
  };
44058
44260
 
@@ -68352,6 +68554,7 @@ export const proto = $root.proto = (() => {
68352
68554
 
68353
68555
  PollAddOptionMessage.prototype.pollCreationMessageKey = null;
68354
68556
  PollAddOptionMessage.prototype.addOption = null;
68557
+ PollAddOptionMessage.prototype.metadata = null;
68355
68558
 
68356
68559
  let $oneOfFields;
68357
68560
 
@@ -68367,6 +68570,12 @@ export const proto = $root.proto = (() => {
68367
68570
  set: $util.oneOfSetter($oneOfFields)
68368
68571
  });
68369
68572
 
68573
+ // Virtual OneOf for proto3 optional field
68574
+ Object.defineProperty(PollAddOptionMessage.prototype, "_metadata", {
68575
+ get: $util.oneOfGetter($oneOfFields = ["metadata"]),
68576
+ set: $util.oneOfSetter($oneOfFields)
68577
+ });
68578
+
68370
68579
  PollAddOptionMessage.create = function create(properties) {
68371
68580
  return new PollAddOptionMessage(properties);
68372
68581
  };
@@ -68378,6 +68587,8 @@ export const proto = $root.proto = (() => {
68378
68587
  $root.proto.MessageKey.encode(m.pollCreationMessageKey, w.uint32(10).fork()).ldelim();
68379
68588
  if (m.addOption != null && Object.hasOwnProperty.call(m, "addOption"))
68380
68589
  $root.proto.Message.PollCreationMessage.Option.encode(m.addOption, w.uint32(18).fork()).ldelim();
68590
+ if (m.metadata != null && Object.hasOwnProperty.call(m, "metadata"))
68591
+ $root.proto.Message.PollUpdateMessageMetadata.encode(m.metadata, w.uint32(26).fork()).ldelim();
68381
68592
  return w;
68382
68593
  };
68383
68594
 
@@ -68402,6 +68613,10 @@ export const proto = $root.proto = (() => {
68402
68613
  m.addOption = $root.proto.Message.PollCreationMessage.Option.decode(r, r.uint32(), undefined, n + 1);
68403
68614
  break;
68404
68615
  }
68616
+ case 3: {
68617
+ m.metadata = $root.proto.Message.PollUpdateMessageMetadata.decode(r, r.uint32(), undefined, n + 1);
68618
+ break;
68619
+ }
68405
68620
  default:
68406
68621
  r.skipType(t & 7, n);
68407
68622
  break;
@@ -68428,6 +68643,11 @@ export const proto = $root.proto = (() => {
68428
68643
  throw TypeError(".proto.Message.PollAddOptionMessage.addOption: object expected");
68429
68644
  m.addOption = $root.proto.Message.PollCreationMessage.Option.fromObject(d.addOption, n + 1);
68430
68645
  }
68646
+ if (d.metadata != null) {
68647
+ if (typeof d.metadata !== "object")
68648
+ throw TypeError(".proto.Message.PollAddOptionMessage.metadata: object expected");
68649
+ m.metadata = $root.proto.Message.PollUpdateMessageMetadata.fromObject(d.metadata, n + 1);
68650
+ }
68431
68651
  return m;
68432
68652
  };
68433
68653
 
@@ -68445,6 +68665,11 @@ export const proto = $root.proto = (() => {
68445
68665
  if (o.oneofs)
68446
68666
  d._addOption = "addOption";
68447
68667
  }
68668
+ if (m.metadata != null && m.hasOwnProperty("metadata")) {
68669
+ d.metadata = $root.proto.Message.PollUpdateMessageMetadata.toObject(m.metadata, o);
68670
+ if (o.oneofs)
68671
+ d._metadata = "metadata";
68672
+ }
68448
68673
  return d;
68449
68674
  };
68450
68675
 
@@ -69575,6 +69800,23 @@ export const proto = $root.proto = (() => {
69575
69800
  this[ks[i]] = p[ks[i]];
69576
69801
  }
69577
69802
 
69803
+ PollUpdateMessageMetadata.prototype.pollNameHash = null;
69804
+ PollUpdateMessageMetadata.prototype.lastEditStanzaId = null;
69805
+
69806
+ let $oneOfFields;
69807
+
69808
+ // Virtual OneOf for proto3 optional field
69809
+ Object.defineProperty(PollUpdateMessageMetadata.prototype, "_pollNameHash", {
69810
+ get: $util.oneOfGetter($oneOfFields = ["pollNameHash"]),
69811
+ set: $util.oneOfSetter($oneOfFields)
69812
+ });
69813
+
69814
+ // Virtual OneOf for proto3 optional field
69815
+ Object.defineProperty(PollUpdateMessageMetadata.prototype, "_lastEditStanzaId", {
69816
+ get: $util.oneOfGetter($oneOfFields = ["lastEditStanzaId"]),
69817
+ set: $util.oneOfSetter($oneOfFields)
69818
+ });
69819
+
69578
69820
  PollUpdateMessageMetadata.create = function create(properties) {
69579
69821
  return new PollUpdateMessageMetadata(properties);
69580
69822
  };
@@ -69582,6 +69824,10 @@ export const proto = $root.proto = (() => {
69582
69824
  PollUpdateMessageMetadata.encode = function encode(m, w) {
69583
69825
  if (!w)
69584
69826
  w = $Writer.create();
69827
+ if (m.pollNameHash != null && Object.hasOwnProperty.call(m, "pollNameHash"))
69828
+ w.uint32(10).bytes(m.pollNameHash);
69829
+ if (m.lastEditStanzaId != null && Object.hasOwnProperty.call(m, "lastEditStanzaId"))
69830
+ w.uint32(18).string(m.lastEditStanzaId);
69585
69831
  return w;
69586
69832
  };
69587
69833
 
@@ -69598,6 +69844,14 @@ export const proto = $root.proto = (() => {
69598
69844
  if (t === e)
69599
69845
  break;
69600
69846
  switch (t >>> 3) {
69847
+ case 1: {
69848
+ m.pollNameHash = r.bytes();
69849
+ break;
69850
+ }
69851
+ case 2: {
69852
+ m.lastEditStanzaId = r.string();
69853
+ break;
69854
+ }
69601
69855
  default:
69602
69856
  r.skipType(t & 7, n);
69603
69857
  break;
@@ -69613,11 +69867,34 @@ export const proto = $root.proto = (() => {
69613
69867
  n = 0;
69614
69868
  if (n > $util.recursionLimit)
69615
69869
  throw Error("maximum nesting depth exceeded");
69616
- return new $root.proto.Message.PollUpdateMessageMetadata();
69870
+ var m = new $root.proto.Message.PollUpdateMessageMetadata();
69871
+ if (d.pollNameHash != null) {
69872
+ if (typeof d.pollNameHash === "string")
69873
+ $util.base64.decode(d.pollNameHash, m.pollNameHash = $util.newBuffer($util.base64.length(d.pollNameHash)), 0);
69874
+ else if (d.pollNameHash.length >= 0)
69875
+ m.pollNameHash = d.pollNameHash;
69876
+ }
69877
+ if (d.lastEditStanzaId != null) {
69878
+ m.lastEditStanzaId = String(d.lastEditStanzaId);
69879
+ }
69880
+ return m;
69617
69881
  };
69618
69882
 
69619
- PollUpdateMessageMetadata.toObject = function toObject() {
69620
- return {};
69883
+ PollUpdateMessageMetadata.toObject = function toObject(m, o) {
69884
+ if (!o)
69885
+ o = {};
69886
+ var d = {};
69887
+ if (m.pollNameHash != null && m.hasOwnProperty("pollNameHash")) {
69888
+ d.pollNameHash = o.bytes === String ? $util.base64.encode(m.pollNameHash, 0, m.pollNameHash.length) : o.bytes === Array ? Array.prototype.slice.call(m.pollNameHash) : m.pollNameHash;
69889
+ if (o.oneofs)
69890
+ d._pollNameHash = "pollNameHash";
69891
+ }
69892
+ if (m.lastEditStanzaId != null && m.hasOwnProperty("lastEditStanzaId")) {
69893
+ d.lastEditStanzaId = m.lastEditStanzaId;
69894
+ if (o.oneofs)
69895
+ d._lastEditStanzaId = "lastEditStanzaId";
69896
+ }
69897
+ return d;
69621
69898
  };
69622
69899
 
69623
69900
  PollUpdateMessageMetadata.prototype.toJSON = function toJSON() {
@@ -72139,6 +72416,102 @@ export const proto = $root.proto = (() => {
72139
72416
  return RequestWelcomeMessageMetadata;
72140
72417
  })();
72141
72418
 
72419
+ Message.RootSecretDistributeMessage = (function() {
72420
+
72421
+ function RootSecretDistributeMessage(p) {
72422
+ if (p)
72423
+ for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
72424
+ if (p[ks[i]] != null && ks[i] !== "__proto__")
72425
+ this[ks[i]] = p[ks[i]];
72426
+ }
72427
+
72428
+ RootSecretDistributeMessage.prototype.chatJid = null;
72429
+
72430
+ let $oneOfFields;
72431
+
72432
+ // Virtual OneOf for proto3 optional field
72433
+ Object.defineProperty(RootSecretDistributeMessage.prototype, "_chatJid", {
72434
+ get: $util.oneOfGetter($oneOfFields = ["chatJid"]),
72435
+ set: $util.oneOfSetter($oneOfFields)
72436
+ });
72437
+
72438
+ RootSecretDistributeMessage.create = function create(properties) {
72439
+ return new RootSecretDistributeMessage(properties);
72440
+ };
72441
+
72442
+ RootSecretDistributeMessage.encode = function encode(m, w) {
72443
+ if (!w)
72444
+ w = $Writer.create();
72445
+ if (m.chatJid != null && Object.hasOwnProperty.call(m, "chatJid"))
72446
+ w.uint32(10).string(m.chatJid);
72447
+ return w;
72448
+ };
72449
+
72450
+ RootSecretDistributeMessage.decode = function decode(r, l, e, n) {
72451
+ if (!(r instanceof $Reader))
72452
+ r = $Reader.create(r);
72453
+ if (n === undefined)
72454
+ n = 0;
72455
+ if (n > $Reader.recursionLimit)
72456
+ throw Error("maximum nesting depth exceeded");
72457
+ var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.Message.RootSecretDistributeMessage();
72458
+ while (r.pos < c) {
72459
+ var t = r.uint32();
72460
+ if (t === e)
72461
+ break;
72462
+ switch (t >>> 3) {
72463
+ case 1: {
72464
+ m.chatJid = r.string();
72465
+ break;
72466
+ }
72467
+ default:
72468
+ r.skipType(t & 7, n);
72469
+ break;
72470
+ }
72471
+ }
72472
+ return m;
72473
+ };
72474
+
72475
+ RootSecretDistributeMessage.fromObject = function fromObject(d, n) {
72476
+ if (d instanceof $root.proto.Message.RootSecretDistributeMessage)
72477
+ return d;
72478
+ if (n === undefined)
72479
+ n = 0;
72480
+ if (n > $util.recursionLimit)
72481
+ throw Error("maximum nesting depth exceeded");
72482
+ var m = new $root.proto.Message.RootSecretDistributeMessage();
72483
+ if (d.chatJid != null) {
72484
+ m.chatJid = String(d.chatJid);
72485
+ }
72486
+ return m;
72487
+ };
72488
+
72489
+ RootSecretDistributeMessage.toObject = function toObject(m, o) {
72490
+ if (!o)
72491
+ o = {};
72492
+ var d = {};
72493
+ if (m.chatJid != null && m.hasOwnProperty("chatJid")) {
72494
+ d.chatJid = m.chatJid;
72495
+ if (o.oneofs)
72496
+ d._chatJid = "chatJid";
72497
+ }
72498
+ return d;
72499
+ };
72500
+
72501
+ RootSecretDistributeMessage.prototype.toJSON = function toJSON() {
72502
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
72503
+ };
72504
+
72505
+ RootSecretDistributeMessage.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
72506
+ if (typeUrlPrefix === undefined) {
72507
+ typeUrlPrefix = "type.googleapis.com";
72508
+ }
72509
+ return typeUrlPrefix + "/proto.Message.RootSecretDistributeMessage";
72510
+ };
72511
+
72512
+ return RootSecretDistributeMessage;
72513
+ })();
72514
+
72142
72515
  Message.ScheduledCallCreationMessage = (function() {
72143
72516
 
72144
72517
  function ScheduledCallCreationMessage(p) {
@@ -79278,6 +79651,14 @@ export const proto = $root.proto = (() => {
79278
79651
  MsgOpaqueData.prototype.pollEndTime = null;
79279
79652
  MsgOpaqueData.prototype.pollHideVoterNames = null;
79280
79653
  MsgOpaqueData.prototype.pollAllowAddOption = null;
79654
+ MsgOpaqueData.prototype.sharableEventInviteId = null;
79655
+ MsgOpaqueData.prototype.sharableEventInviteTitle = null;
79656
+ MsgOpaqueData.prototype.sharableEventInviteStartTime = null;
79657
+ MsgOpaqueData.prototype.sharableEventInviteEndTime = null;
79658
+ MsgOpaqueData.prototype.sharableEventInviteCaption = null;
79659
+ MsgOpaqueData.prototype.sharableEventInviteIsCanceled = null;
79660
+ MsgOpaqueData.prototype.sharableEventInviteJpegThumbnail = null;
79661
+ MsgOpaqueData.prototype.sharableEventInviteCallLink = null;
79281
79662
 
79282
79663
  let $oneOfFields;
79283
79664
 
@@ -79557,6 +79938,54 @@ export const proto = $root.proto = (() => {
79557
79938
  set: $util.oneOfSetter($oneOfFields)
79558
79939
  });
79559
79940
 
79941
+ // Virtual OneOf for proto3 optional field
79942
+ Object.defineProperty(MsgOpaqueData.prototype, "_sharableEventInviteId", {
79943
+ get: $util.oneOfGetter($oneOfFields = ["sharableEventInviteId"]),
79944
+ set: $util.oneOfSetter($oneOfFields)
79945
+ });
79946
+
79947
+ // Virtual OneOf for proto3 optional field
79948
+ Object.defineProperty(MsgOpaqueData.prototype, "_sharableEventInviteTitle", {
79949
+ get: $util.oneOfGetter($oneOfFields = ["sharableEventInviteTitle"]),
79950
+ set: $util.oneOfSetter($oneOfFields)
79951
+ });
79952
+
79953
+ // Virtual OneOf for proto3 optional field
79954
+ Object.defineProperty(MsgOpaqueData.prototype, "_sharableEventInviteStartTime", {
79955
+ get: $util.oneOfGetter($oneOfFields = ["sharableEventInviteStartTime"]),
79956
+ set: $util.oneOfSetter($oneOfFields)
79957
+ });
79958
+
79959
+ // Virtual OneOf for proto3 optional field
79960
+ Object.defineProperty(MsgOpaqueData.prototype, "_sharableEventInviteEndTime", {
79961
+ get: $util.oneOfGetter($oneOfFields = ["sharableEventInviteEndTime"]),
79962
+ set: $util.oneOfSetter($oneOfFields)
79963
+ });
79964
+
79965
+ // Virtual OneOf for proto3 optional field
79966
+ Object.defineProperty(MsgOpaqueData.prototype, "_sharableEventInviteCaption", {
79967
+ get: $util.oneOfGetter($oneOfFields = ["sharableEventInviteCaption"]),
79968
+ set: $util.oneOfSetter($oneOfFields)
79969
+ });
79970
+
79971
+ // Virtual OneOf for proto3 optional field
79972
+ Object.defineProperty(MsgOpaqueData.prototype, "_sharableEventInviteIsCanceled", {
79973
+ get: $util.oneOfGetter($oneOfFields = ["sharableEventInviteIsCanceled"]),
79974
+ set: $util.oneOfSetter($oneOfFields)
79975
+ });
79976
+
79977
+ // Virtual OneOf for proto3 optional field
79978
+ Object.defineProperty(MsgOpaqueData.prototype, "_sharableEventInviteJpegThumbnail", {
79979
+ get: $util.oneOfGetter($oneOfFields = ["sharableEventInviteJpegThumbnail"]),
79980
+ set: $util.oneOfSetter($oneOfFields)
79981
+ });
79982
+
79983
+ // Virtual OneOf for proto3 optional field
79984
+ Object.defineProperty(MsgOpaqueData.prototype, "_sharableEventInviteCallLink", {
79985
+ get: $util.oneOfGetter($oneOfFields = ["sharableEventInviteCallLink"]),
79986
+ set: $util.oneOfSetter($oneOfFields)
79987
+ });
79988
+
79560
79989
  MsgOpaqueData.create = function create(properties) {
79561
79990
  return new MsgOpaqueData(properties);
79562
79991
  };
@@ -79660,6 +80089,22 @@ export const proto = $root.proto = (() => {
79660
80089
  w.uint32(410).string(m.originalSelfAuthor);
79661
80090
  if (m.pollAllowAddOption != null && Object.hasOwnProperty.call(m, "pollAllowAddOption"))
79662
80091
  w.uint32(416).bool(m.pollAllowAddOption);
80092
+ if (m.sharableEventInviteId != null && Object.hasOwnProperty.call(m, "sharableEventInviteId"))
80093
+ w.uint32(426).string(m.sharableEventInviteId);
80094
+ if (m.sharableEventInviteTitle != null && Object.hasOwnProperty.call(m, "sharableEventInviteTitle"))
80095
+ w.uint32(434).string(m.sharableEventInviteTitle);
80096
+ if (m.sharableEventInviteStartTime != null && Object.hasOwnProperty.call(m, "sharableEventInviteStartTime"))
80097
+ w.uint32(440).int64(m.sharableEventInviteStartTime);
80098
+ if (m.sharableEventInviteEndTime != null && Object.hasOwnProperty.call(m, "sharableEventInviteEndTime"))
80099
+ w.uint32(448).int64(m.sharableEventInviteEndTime);
80100
+ if (m.sharableEventInviteCaption != null && Object.hasOwnProperty.call(m, "sharableEventInviteCaption"))
80101
+ w.uint32(458).string(m.sharableEventInviteCaption);
80102
+ if (m.sharableEventInviteIsCanceled != null && Object.hasOwnProperty.call(m, "sharableEventInviteIsCanceled"))
80103
+ w.uint32(464).bool(m.sharableEventInviteIsCanceled);
80104
+ if (m.sharableEventInviteJpegThumbnail != null && Object.hasOwnProperty.call(m, "sharableEventInviteJpegThumbnail"))
80105
+ w.uint32(474).bytes(m.sharableEventInviteJpegThumbnail);
80106
+ if (m.sharableEventInviteCallLink != null && Object.hasOwnProperty.call(m, "sharableEventInviteCallLink"))
80107
+ w.uint32(482).string(m.sharableEventInviteCallLink);
79663
80108
  return w;
79664
80109
  };
79665
80110
 
@@ -79866,6 +80311,38 @@ export const proto = $root.proto = (() => {
79866
80311
  m.pollAllowAddOption = r.bool();
79867
80312
  break;
79868
80313
  }
80314
+ case 53: {
80315
+ m.sharableEventInviteId = r.string();
80316
+ break;
80317
+ }
80318
+ case 54: {
80319
+ m.sharableEventInviteTitle = r.string();
80320
+ break;
80321
+ }
80322
+ case 55: {
80323
+ m.sharableEventInviteStartTime = r.int64();
80324
+ break;
80325
+ }
80326
+ case 56: {
80327
+ m.sharableEventInviteEndTime = r.int64();
80328
+ break;
80329
+ }
80330
+ case 57: {
80331
+ m.sharableEventInviteCaption = r.string();
80332
+ break;
80333
+ }
80334
+ case 58: {
80335
+ m.sharableEventInviteIsCanceled = r.bool();
80336
+ break;
80337
+ }
80338
+ case 59: {
80339
+ m.sharableEventInviteJpegThumbnail = r.bytes();
80340
+ break;
80341
+ }
80342
+ case 60: {
80343
+ m.sharableEventInviteCallLink = r.string();
80344
+ break;
80345
+ }
79869
80346
  default:
79870
80347
  r.skipType(t & 7, n);
79871
80348
  break;
@@ -80118,6 +80595,47 @@ export const proto = $root.proto = (() => {
80118
80595
  if (d.pollAllowAddOption != null) {
80119
80596
  m.pollAllowAddOption = Boolean(d.pollAllowAddOption);
80120
80597
  }
80598
+ if (d.sharableEventInviteId != null) {
80599
+ m.sharableEventInviteId = String(d.sharableEventInviteId);
80600
+ }
80601
+ if (d.sharableEventInviteTitle != null) {
80602
+ m.sharableEventInviteTitle = String(d.sharableEventInviteTitle);
80603
+ }
80604
+ if (d.sharableEventInviteStartTime != null) {
80605
+ if ($util.Long)
80606
+ (m.sharableEventInviteStartTime = $util.Long.fromValue(d.sharableEventInviteStartTime)).unsigned = false;
80607
+ else if (typeof d.sharableEventInviteStartTime === "string")
80608
+ m.sharableEventInviteStartTime = parseInt(d.sharableEventInviteStartTime, 10);
80609
+ else if (typeof d.sharableEventInviteStartTime === "number")
80610
+ m.sharableEventInviteStartTime = d.sharableEventInviteStartTime;
80611
+ else if (typeof d.sharableEventInviteStartTime === "object")
80612
+ m.sharableEventInviteStartTime = new $util.LongBits(d.sharableEventInviteStartTime.low >>> 0, d.sharableEventInviteStartTime.high >>> 0).toNumber();
80613
+ }
80614
+ if (d.sharableEventInviteEndTime != null) {
80615
+ if ($util.Long)
80616
+ (m.sharableEventInviteEndTime = $util.Long.fromValue(d.sharableEventInviteEndTime)).unsigned = false;
80617
+ else if (typeof d.sharableEventInviteEndTime === "string")
80618
+ m.sharableEventInviteEndTime = parseInt(d.sharableEventInviteEndTime, 10);
80619
+ else if (typeof d.sharableEventInviteEndTime === "number")
80620
+ m.sharableEventInviteEndTime = d.sharableEventInviteEndTime;
80621
+ else if (typeof d.sharableEventInviteEndTime === "object")
80622
+ m.sharableEventInviteEndTime = new $util.LongBits(d.sharableEventInviteEndTime.low >>> 0, d.sharableEventInviteEndTime.high >>> 0).toNumber();
80623
+ }
80624
+ if (d.sharableEventInviteCaption != null) {
80625
+ m.sharableEventInviteCaption = String(d.sharableEventInviteCaption);
80626
+ }
80627
+ if (d.sharableEventInviteIsCanceled != null) {
80628
+ m.sharableEventInviteIsCanceled = Boolean(d.sharableEventInviteIsCanceled);
80629
+ }
80630
+ if (d.sharableEventInviteJpegThumbnail != null) {
80631
+ if (typeof d.sharableEventInviteJpegThumbnail === "string")
80632
+ $util.base64.decode(d.sharableEventInviteJpegThumbnail, m.sharableEventInviteJpegThumbnail = $util.newBuffer($util.base64.length(d.sharableEventInviteJpegThumbnail)), 0);
80633
+ else if (d.sharableEventInviteJpegThumbnail.length >= 0)
80634
+ m.sharableEventInviteJpegThumbnail = d.sharableEventInviteJpegThumbnail;
80635
+ }
80636
+ if (d.sharableEventInviteCallLink != null) {
80637
+ m.sharableEventInviteCallLink = String(d.sharableEventInviteCallLink);
80638
+ }
80121
80639
  return m;
80122
80640
  };
80123
80641
 
@@ -80376,6 +80894,52 @@ export const proto = $root.proto = (() => {
80376
80894
  if (o.oneofs)
80377
80895
  d._pollAllowAddOption = "pollAllowAddOption";
80378
80896
  }
80897
+ if (m.sharableEventInviteId != null && m.hasOwnProperty("sharableEventInviteId")) {
80898
+ d.sharableEventInviteId = m.sharableEventInviteId;
80899
+ if (o.oneofs)
80900
+ d._sharableEventInviteId = "sharableEventInviteId";
80901
+ }
80902
+ if (m.sharableEventInviteTitle != null && m.hasOwnProperty("sharableEventInviteTitle")) {
80903
+ d.sharableEventInviteTitle = m.sharableEventInviteTitle;
80904
+ if (o.oneofs)
80905
+ d._sharableEventInviteTitle = "sharableEventInviteTitle";
80906
+ }
80907
+ if (m.sharableEventInviteStartTime != null && m.hasOwnProperty("sharableEventInviteStartTime")) {
80908
+ if (typeof m.sharableEventInviteStartTime === "number")
80909
+ d.sharableEventInviteStartTime = o.longs === String ? String(m.sharableEventInviteStartTime) : m.sharableEventInviteStartTime;
80910
+ else
80911
+ d.sharableEventInviteStartTime = o.longs === String ? longToString(m.sharableEventInviteStartTime) : o.longs === Number ? longToNumber(m.sharableEventInviteStartTime) : m.sharableEventInviteStartTime;
80912
+ if (o.oneofs)
80913
+ d._sharableEventInviteStartTime = "sharableEventInviteStartTime";
80914
+ }
80915
+ if (m.sharableEventInviteEndTime != null && m.hasOwnProperty("sharableEventInviteEndTime")) {
80916
+ if (typeof m.sharableEventInviteEndTime === "number")
80917
+ d.sharableEventInviteEndTime = o.longs === String ? String(m.sharableEventInviteEndTime) : m.sharableEventInviteEndTime;
80918
+ else
80919
+ d.sharableEventInviteEndTime = o.longs === String ? longToString(m.sharableEventInviteEndTime) : o.longs === Number ? longToNumber(m.sharableEventInviteEndTime) : m.sharableEventInviteEndTime;
80920
+ if (o.oneofs)
80921
+ d._sharableEventInviteEndTime = "sharableEventInviteEndTime";
80922
+ }
80923
+ if (m.sharableEventInviteCaption != null && m.hasOwnProperty("sharableEventInviteCaption")) {
80924
+ d.sharableEventInviteCaption = m.sharableEventInviteCaption;
80925
+ if (o.oneofs)
80926
+ d._sharableEventInviteCaption = "sharableEventInviteCaption";
80927
+ }
80928
+ if (m.sharableEventInviteIsCanceled != null && m.hasOwnProperty("sharableEventInviteIsCanceled")) {
80929
+ d.sharableEventInviteIsCanceled = m.sharableEventInviteIsCanceled;
80930
+ if (o.oneofs)
80931
+ d._sharableEventInviteIsCanceled = "sharableEventInviteIsCanceled";
80932
+ }
80933
+ if (m.sharableEventInviteJpegThumbnail != null && m.hasOwnProperty("sharableEventInviteJpegThumbnail")) {
80934
+ d.sharableEventInviteJpegThumbnail = o.bytes === String ? $util.base64.encode(m.sharableEventInviteJpegThumbnail, 0, m.sharableEventInviteJpegThumbnail.length) : o.bytes === Array ? Array.prototype.slice.call(m.sharableEventInviteJpegThumbnail) : m.sharableEventInviteJpegThumbnail;
80935
+ if (o.oneofs)
80936
+ d._sharableEventInviteJpegThumbnail = "sharableEventInviteJpegThumbnail";
80937
+ }
80938
+ if (m.sharableEventInviteCallLink != null && m.hasOwnProperty("sharableEventInviteCallLink")) {
80939
+ d.sharableEventInviteCallLink = m.sharableEventInviteCallLink;
80940
+ if (o.oneofs)
80941
+ d._sharableEventInviteCallLink = "sharableEventInviteCallLink";
80942
+ }
80379
80943
  return d;
80380
80944
  };
80381
80945
 
@@ -84500,6 +85064,7 @@ export const proto = $root.proto = (() => {
84500
85064
  proto.PollAdditionalMetadata = (function() {
84501
85065
 
84502
85066
  function PollAdditionalMetadata(p) {
85067
+ this.pollNameHashHistory = [];
84503
85068
  if (p)
84504
85069
  for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
84505
85070
  if (p[ks[i]] != null && ks[i] !== "__proto__")
@@ -84507,6 +85072,7 @@ export const proto = $root.proto = (() => {
84507
85072
  }
84508
85073
 
84509
85074
  PollAdditionalMetadata.prototype.pollInvalidated = null;
85075
+ PollAdditionalMetadata.prototype.pollNameHashHistory = $util.emptyArray;
84510
85076
 
84511
85077
  let $oneOfFields;
84512
85078
 
@@ -84525,6 +85091,10 @@ export const proto = $root.proto = (() => {
84525
85091
  w = $Writer.create();
84526
85092
  if (m.pollInvalidated != null && Object.hasOwnProperty.call(m, "pollInvalidated"))
84527
85093
  w.uint32(8).bool(m.pollInvalidated);
85094
+ if (m.pollNameHashHistory != null && m.pollNameHashHistory.length) {
85095
+ for (var i = 0; i < m.pollNameHashHistory.length; ++i)
85096
+ $root.proto.PollAdditionalMetadata.PollNameHashHistoryEntry.encode(m.pollNameHashHistory[i], w.uint32(18).fork()).ldelim();
85097
+ }
84528
85098
  return w;
84529
85099
  };
84530
85100
 
@@ -84545,6 +85115,12 @@ export const proto = $root.proto = (() => {
84545
85115
  m.pollInvalidated = r.bool();
84546
85116
  break;
84547
85117
  }
85118
+ case 2: {
85119
+ if (!(m.pollNameHashHistory && m.pollNameHashHistory.length))
85120
+ m.pollNameHashHistory = [];
85121
+ m.pollNameHashHistory.push($root.proto.PollAdditionalMetadata.PollNameHashHistoryEntry.decode(r, r.uint32(), undefined, n + 1));
85122
+ break;
85123
+ }
84548
85124
  default:
84549
85125
  r.skipType(t & 7, n);
84550
85126
  break;
@@ -84564,6 +85140,16 @@ export const proto = $root.proto = (() => {
84564
85140
  if (d.pollInvalidated != null) {
84565
85141
  m.pollInvalidated = Boolean(d.pollInvalidated);
84566
85142
  }
85143
+ if (d.pollNameHashHistory) {
85144
+ if (!Array.isArray(d.pollNameHashHistory))
85145
+ throw TypeError(".proto.PollAdditionalMetadata.pollNameHashHistory: array expected");
85146
+ m.pollNameHashHistory = [];
85147
+ for (var i = 0; i < d.pollNameHashHistory.length; ++i) {
85148
+ if (typeof d.pollNameHashHistory[i] !== "object")
85149
+ throw TypeError(".proto.PollAdditionalMetadata.pollNameHashHistory: object expected");
85150
+ m.pollNameHashHistory[i] = $root.proto.PollAdditionalMetadata.PollNameHashHistoryEntry.fromObject(d.pollNameHashHistory[i], n + 1);
85151
+ }
85152
+ }
84567
85153
  return m;
84568
85154
  };
84569
85155
 
@@ -84571,11 +85157,20 @@ export const proto = $root.proto = (() => {
84571
85157
  if (!o)
84572
85158
  o = {};
84573
85159
  var d = {};
85160
+ if (o.arrays || o.defaults) {
85161
+ d.pollNameHashHistory = [];
85162
+ }
84574
85163
  if (m.pollInvalidated != null && m.hasOwnProperty("pollInvalidated")) {
84575
85164
  d.pollInvalidated = m.pollInvalidated;
84576
85165
  if (o.oneofs)
84577
85166
  d._pollInvalidated = "pollInvalidated";
84578
85167
  }
85168
+ if (m.pollNameHashHistory && m.pollNameHashHistory.length) {
85169
+ d.pollNameHashHistory = [];
85170
+ for (var j = 0; j < m.pollNameHashHistory.length; ++j) {
85171
+ d.pollNameHashHistory[j] = $root.proto.PollAdditionalMetadata.PollNameHashHistoryEntry.toObject(m.pollNameHashHistory[j], o);
85172
+ }
85173
+ }
84579
85174
  return d;
84580
85175
  };
84581
85176
 
@@ -84590,6 +85185,126 @@ export const proto = $root.proto = (() => {
84590
85185
  return typeUrlPrefix + "/proto.PollAdditionalMetadata";
84591
85186
  };
84592
85187
 
85188
+ PollAdditionalMetadata.PollNameHashHistoryEntry = (function() {
85189
+
85190
+ function PollNameHashHistoryEntry(p) {
85191
+ if (p)
85192
+ for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
85193
+ if (p[ks[i]] != null && ks[i] !== "__proto__")
85194
+ this[ks[i]] = p[ks[i]];
85195
+ }
85196
+
85197
+ PollNameHashHistoryEntry.prototype.editStanzaId = null;
85198
+ PollNameHashHistoryEntry.prototype.pollNameHash = null;
85199
+
85200
+ let $oneOfFields;
85201
+
85202
+ // Virtual OneOf for proto3 optional field
85203
+ Object.defineProperty(PollNameHashHistoryEntry.prototype, "_editStanzaId", {
85204
+ get: $util.oneOfGetter($oneOfFields = ["editStanzaId"]),
85205
+ set: $util.oneOfSetter($oneOfFields)
85206
+ });
85207
+
85208
+ // Virtual OneOf for proto3 optional field
85209
+ Object.defineProperty(PollNameHashHistoryEntry.prototype, "_pollNameHash", {
85210
+ get: $util.oneOfGetter($oneOfFields = ["pollNameHash"]),
85211
+ set: $util.oneOfSetter($oneOfFields)
85212
+ });
85213
+
85214
+ PollNameHashHistoryEntry.create = function create(properties) {
85215
+ return new PollNameHashHistoryEntry(properties);
85216
+ };
85217
+
85218
+ PollNameHashHistoryEntry.encode = function encode(m, w) {
85219
+ if (!w)
85220
+ w = $Writer.create();
85221
+ if (m.editStanzaId != null && Object.hasOwnProperty.call(m, "editStanzaId"))
85222
+ w.uint32(10).string(m.editStanzaId);
85223
+ if (m.pollNameHash != null && Object.hasOwnProperty.call(m, "pollNameHash"))
85224
+ w.uint32(18).bytes(m.pollNameHash);
85225
+ return w;
85226
+ };
85227
+
85228
+ PollNameHashHistoryEntry.decode = function decode(r, l, e, n) {
85229
+ if (!(r instanceof $Reader))
85230
+ r = $Reader.create(r);
85231
+ if (n === undefined)
85232
+ n = 0;
85233
+ if (n > $Reader.recursionLimit)
85234
+ throw Error("maximum nesting depth exceeded");
85235
+ var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.PollAdditionalMetadata.PollNameHashHistoryEntry();
85236
+ while (r.pos < c) {
85237
+ var t = r.uint32();
85238
+ if (t === e)
85239
+ break;
85240
+ switch (t >>> 3) {
85241
+ case 1: {
85242
+ m.editStanzaId = r.string();
85243
+ break;
85244
+ }
85245
+ case 2: {
85246
+ m.pollNameHash = r.bytes();
85247
+ break;
85248
+ }
85249
+ default:
85250
+ r.skipType(t & 7, n);
85251
+ break;
85252
+ }
85253
+ }
85254
+ return m;
85255
+ };
85256
+
85257
+ PollNameHashHistoryEntry.fromObject = function fromObject(d, n) {
85258
+ if (d instanceof $root.proto.PollAdditionalMetadata.PollNameHashHistoryEntry)
85259
+ return d;
85260
+ if (n === undefined)
85261
+ n = 0;
85262
+ if (n > $util.recursionLimit)
85263
+ throw Error("maximum nesting depth exceeded");
85264
+ var m = new $root.proto.PollAdditionalMetadata.PollNameHashHistoryEntry();
85265
+ if (d.editStanzaId != null) {
85266
+ m.editStanzaId = String(d.editStanzaId);
85267
+ }
85268
+ if (d.pollNameHash != null) {
85269
+ if (typeof d.pollNameHash === "string")
85270
+ $util.base64.decode(d.pollNameHash, m.pollNameHash = $util.newBuffer($util.base64.length(d.pollNameHash)), 0);
85271
+ else if (d.pollNameHash.length >= 0)
85272
+ m.pollNameHash = d.pollNameHash;
85273
+ }
85274
+ return m;
85275
+ };
85276
+
85277
+ PollNameHashHistoryEntry.toObject = function toObject(m, o) {
85278
+ if (!o)
85279
+ o = {};
85280
+ var d = {};
85281
+ if (m.editStanzaId != null && m.hasOwnProperty("editStanzaId")) {
85282
+ d.editStanzaId = m.editStanzaId;
85283
+ if (o.oneofs)
85284
+ d._editStanzaId = "editStanzaId";
85285
+ }
85286
+ if (m.pollNameHash != null && m.hasOwnProperty("pollNameHash")) {
85287
+ d.pollNameHash = o.bytes === String ? $util.base64.encode(m.pollNameHash, 0, m.pollNameHash.length) : o.bytes === Array ? Array.prototype.slice.call(m.pollNameHash) : m.pollNameHash;
85288
+ if (o.oneofs)
85289
+ d._pollNameHash = "pollNameHash";
85290
+ }
85291
+ return d;
85292
+ };
85293
+
85294
+ PollNameHashHistoryEntry.prototype.toJSON = function toJSON() {
85295
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
85296
+ };
85297
+
85298
+ PollNameHashHistoryEntry.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
85299
+ if (typeUrlPrefix === undefined) {
85300
+ typeUrlPrefix = "type.googleapis.com";
85301
+ }
85302
+ return typeUrlPrefix + "/proto.PollAdditionalMetadata.PollNameHashHistoryEntry";
85303
+ };
85304
+
85305
+ return PollNameHashHistoryEntry;
85306
+ })();
85307
+
84593
85308
  return PollAdditionalMetadata;
84594
85309
  })();
84595
85310
 
@@ -84730,6 +85445,7 @@ export const proto = $root.proto = (() => {
84730
85445
  PollUpdate.prototype.senderTimestampMs = null;
84731
85446
  PollUpdate.prototype.serverTimestampMs = null;
84732
85447
  PollUpdate.prototype.unread = null;
85448
+ PollUpdate.prototype.metadata = null;
84733
85449
 
84734
85450
  let $oneOfFields;
84735
85451
 
@@ -84763,6 +85479,12 @@ export const proto = $root.proto = (() => {
84763
85479
  set: $util.oneOfSetter($oneOfFields)
84764
85480
  });
84765
85481
 
85482
+ // Virtual OneOf for proto3 optional field
85483
+ Object.defineProperty(PollUpdate.prototype, "_metadata", {
85484
+ get: $util.oneOfGetter($oneOfFields = ["metadata"]),
85485
+ set: $util.oneOfSetter($oneOfFields)
85486
+ });
85487
+
84766
85488
  PollUpdate.create = function create(properties) {
84767
85489
  return new PollUpdate(properties);
84768
85490
  };
@@ -84780,6 +85502,8 @@ export const proto = $root.proto = (() => {
84780
85502
  w.uint32(32).int64(m.serverTimestampMs);
84781
85503
  if (m.unread != null && Object.hasOwnProperty.call(m, "unread"))
84782
85504
  w.uint32(40).bool(m.unread);
85505
+ if (m.metadata != null && Object.hasOwnProperty.call(m, "metadata"))
85506
+ $root.proto.Message.PollUpdateMessageMetadata.encode(m.metadata, w.uint32(50).fork()).ldelim();
84783
85507
  return w;
84784
85508
  };
84785
85509
 
@@ -84816,6 +85540,10 @@ export const proto = $root.proto = (() => {
84816
85540
  m.unread = r.bool();
84817
85541
  break;
84818
85542
  }
85543
+ case 6: {
85544
+ m.metadata = $root.proto.Message.PollUpdateMessageMetadata.decode(r, r.uint32(), undefined, n + 1);
85545
+ break;
85546
+ }
84819
85547
  default:
84820
85548
  r.skipType(t & 7, n);
84821
85549
  break;
@@ -84865,6 +85593,11 @@ export const proto = $root.proto = (() => {
84865
85593
  if (d.unread != null) {
84866
85594
  m.unread = Boolean(d.unread);
84867
85595
  }
85596
+ if (d.metadata != null) {
85597
+ if (typeof d.metadata !== "object")
85598
+ throw TypeError(".proto.PollUpdate.metadata: object expected");
85599
+ m.metadata = $root.proto.Message.PollUpdateMessageMetadata.fromObject(d.metadata, n + 1);
85600
+ }
84868
85601
  return m;
84869
85602
  };
84870
85603
 
@@ -84903,6 +85636,11 @@ export const proto = $root.proto = (() => {
84903
85636
  if (o.oneofs)
84904
85637
  d._unread = "unread";
84905
85638
  }
85639
+ if (m.metadata != null && m.hasOwnProperty("metadata")) {
85640
+ d.metadata = $root.proto.Message.PollUpdateMessageMetadata.toObject(m.metadata, o);
85641
+ if (o.oneofs)
85642
+ d._metadata = "metadata";
85643
+ }
84906
85644
  return d;
84907
85645
  };
84908
85646
 
@@ -98080,7 +98818,6 @@ export const proto = $root.proto = (() => {
98080
98818
  SyncActionValue.LabelAssociationAction = (function() {
98081
98819
 
98082
98820
  function LabelAssociationAction(p) {
98083
- this.modelMetaData = [];
98084
98821
  if (p)
98085
98822
  for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
98086
98823
  if (p[ks[i]] != null && ks[i] !== "__proto__")
@@ -98088,7 +98825,7 @@ export const proto = $root.proto = (() => {
98088
98825
  }
98089
98826
 
98090
98827
  LabelAssociationAction.prototype.labeled = null;
98091
- LabelAssociationAction.prototype.modelMetaData = $util.emptyArray;
98828
+ LabelAssociationAction.prototype.modelMetaData = null;
98092
98829
 
98093
98830
  let $oneOfFields;
98094
98831
 
@@ -98098,6 +98835,12 @@ export const proto = $root.proto = (() => {
98098
98835
  set: $util.oneOfSetter($oneOfFields)
98099
98836
  });
98100
98837
 
98838
+ // Virtual OneOf for proto3 optional field
98839
+ Object.defineProperty(LabelAssociationAction.prototype, "_modelMetaData", {
98840
+ get: $util.oneOfGetter($oneOfFields = ["modelMetaData"]),
98841
+ set: $util.oneOfSetter($oneOfFields)
98842
+ });
98843
+
98101
98844
  LabelAssociationAction.create = function create(properties) {
98102
98845
  return new LabelAssociationAction(properties);
98103
98846
  };
@@ -98107,10 +98850,8 @@ export const proto = $root.proto = (() => {
98107
98850
  w = $Writer.create();
98108
98851
  if (m.labeled != null && Object.hasOwnProperty.call(m, "labeled"))
98109
98852
  w.uint32(8).bool(m.labeled);
98110
- if (m.modelMetaData != null && m.modelMetaData.length) {
98111
- for (var i = 0; i < m.modelMetaData.length; ++i)
98112
- $root.proto.SyncActionValue.ModelMetadata.encode(m.modelMetaData[i], w.uint32(18).fork()).ldelim();
98113
- }
98853
+ if (m.modelMetaData != null && Object.hasOwnProperty.call(m, "modelMetaData"))
98854
+ w.uint32(18).string(m.modelMetaData);
98114
98855
  return w;
98115
98856
  };
98116
98857
 
@@ -98132,9 +98873,7 @@ export const proto = $root.proto = (() => {
98132
98873
  break;
98133
98874
  }
98134
98875
  case 2: {
98135
- if (!(m.modelMetaData && m.modelMetaData.length))
98136
- m.modelMetaData = [];
98137
- m.modelMetaData.push($root.proto.SyncActionValue.ModelMetadata.decode(r, r.uint32(), undefined, n + 1));
98876
+ m.modelMetaData = r.string();
98138
98877
  break;
98139
98878
  }
98140
98879
  default:
@@ -98156,15 +98895,8 @@ export const proto = $root.proto = (() => {
98156
98895
  if (d.labeled != null) {
98157
98896
  m.labeled = Boolean(d.labeled);
98158
98897
  }
98159
- if (d.modelMetaData) {
98160
- if (!Array.isArray(d.modelMetaData))
98161
- throw TypeError(".proto.SyncActionValue.LabelAssociationAction.modelMetaData: array expected");
98162
- m.modelMetaData = [];
98163
- for (var i = 0; i < d.modelMetaData.length; ++i) {
98164
- if (typeof d.modelMetaData[i] !== "object")
98165
- throw TypeError(".proto.SyncActionValue.LabelAssociationAction.modelMetaData: object expected");
98166
- m.modelMetaData[i] = $root.proto.SyncActionValue.ModelMetadata.fromObject(d.modelMetaData[i], n + 1);
98167
- }
98898
+ if (d.modelMetaData != null) {
98899
+ m.modelMetaData = String(d.modelMetaData);
98168
98900
  }
98169
98901
  return m;
98170
98902
  };
@@ -98173,19 +98905,15 @@ export const proto = $root.proto = (() => {
98173
98905
  if (!o)
98174
98906
  o = {};
98175
98907
  var d = {};
98176
- if (o.arrays || o.defaults) {
98177
- d.modelMetaData = [];
98178
- }
98179
98908
  if (m.labeled != null && m.hasOwnProperty("labeled")) {
98180
98909
  d.labeled = m.labeled;
98181
98910
  if (o.oneofs)
98182
98911
  d._labeled = "labeled";
98183
98912
  }
98184
- if (m.modelMetaData && m.modelMetaData.length) {
98185
- d.modelMetaData = [];
98186
- for (var j = 0; j < m.modelMetaData.length; ++j) {
98187
- d.modelMetaData[j] = $root.proto.SyncActionValue.ModelMetadata.toObject(m.modelMetaData[j], o);
98188
- }
98913
+ if (m.modelMetaData != null && m.hasOwnProperty("modelMetaData")) {
98914
+ d.modelMetaData = m.modelMetaData;
98915
+ if (o.oneofs)
98916
+ d._modelMetaData = "modelMetaData";
98189
98917
  }
98190
98918
  return d;
98191
98919
  };
@@ -99017,6 +99745,7 @@ export const proto = $root.proto = (() => {
99017
99745
  }
99018
99746
 
99019
99747
  MaibaAIFeaturesControlAction.prototype.aiFeatureStatus = null;
99748
+ MaibaAIFeaturesControlAction.prototype.aiReplyMode = null;
99020
99749
 
99021
99750
  let $oneOfFields;
99022
99751
 
@@ -99026,6 +99755,12 @@ export const proto = $root.proto = (() => {
99026
99755
  set: $util.oneOfSetter($oneOfFields)
99027
99756
  });
99028
99757
 
99758
+ // Virtual OneOf for proto3 optional field
99759
+ Object.defineProperty(MaibaAIFeaturesControlAction.prototype, "_aiReplyMode", {
99760
+ get: $util.oneOfGetter($oneOfFields = ["aiReplyMode"]),
99761
+ set: $util.oneOfSetter($oneOfFields)
99762
+ });
99763
+
99029
99764
  MaibaAIFeaturesControlAction.create = function create(properties) {
99030
99765
  return new MaibaAIFeaturesControlAction(properties);
99031
99766
  };
@@ -99035,6 +99770,8 @@ export const proto = $root.proto = (() => {
99035
99770
  w = $Writer.create();
99036
99771
  if (m.aiFeatureStatus != null && Object.hasOwnProperty.call(m, "aiFeatureStatus"))
99037
99772
  w.uint32(8).int32(m.aiFeatureStatus);
99773
+ if (m.aiReplyMode != null && Object.hasOwnProperty.call(m, "aiReplyMode"))
99774
+ w.uint32(16).int32(m.aiReplyMode);
99038
99775
  return w;
99039
99776
  };
99040
99777
 
@@ -99055,6 +99792,10 @@ export const proto = $root.proto = (() => {
99055
99792
  m.aiFeatureStatus = r.int32();
99056
99793
  break;
99057
99794
  }
99795
+ case 2: {
99796
+ m.aiReplyMode = r.int32();
99797
+ break;
99798
+ }
99058
99799
  default:
99059
99800
  r.skipType(t & 7, n);
99060
99801
  break;
@@ -99091,6 +99832,26 @@ export const proto = $root.proto = (() => {
99091
99832
  m.aiFeatureStatus = 2;
99092
99833
  break;
99093
99834
  }
99835
+ switch (d.aiReplyMode) {
99836
+ default:
99837
+ if (typeof d.aiReplyMode === "number") {
99838
+ m.aiReplyMode = d.aiReplyMode;
99839
+ break;
99840
+ }
99841
+ break;
99842
+ case "MUTED":
99843
+ case 0:
99844
+ m.aiReplyMode = 0;
99845
+ break;
99846
+ case "AI_AGENT":
99847
+ case 1:
99848
+ m.aiReplyMode = 1;
99849
+ break;
99850
+ case "SUGGESTIONS":
99851
+ case 2:
99852
+ m.aiReplyMode = 2;
99853
+ break;
99854
+ }
99094
99855
  return m;
99095
99856
  };
99096
99857
 
@@ -99103,6 +99864,11 @@ export const proto = $root.proto = (() => {
99103
99864
  if (o.oneofs)
99104
99865
  d._aiFeatureStatus = "aiFeatureStatus";
99105
99866
  }
99867
+ if (m.aiReplyMode != null && m.hasOwnProperty("aiReplyMode")) {
99868
+ d.aiReplyMode = o.enums === String ? $root.proto.SyncActionValue.MaibaAIFeaturesControlAction.MaibaAIReplyMode[m.aiReplyMode] === undefined ? m.aiReplyMode : $root.proto.SyncActionValue.MaibaAIFeaturesControlAction.MaibaAIReplyMode[m.aiReplyMode] : m.aiReplyMode;
99869
+ if (o.oneofs)
99870
+ d._aiReplyMode = "aiReplyMode";
99871
+ }
99106
99872
  return d;
99107
99873
  };
99108
99874
 
@@ -99125,6 +99891,14 @@ export const proto = $root.proto = (() => {
99125
99891
  return values;
99126
99892
  })();
99127
99893
 
99894
+ MaibaAIFeaturesControlAction.MaibaAIReplyMode = (function() {
99895
+ const valuesById = {}, values = Object.create(valuesById);
99896
+ values[valuesById[0] = "MUTED"] = 0;
99897
+ values[valuesById[1] = "AI_AGENT"] = 1;
99898
+ values[valuesById[2] = "SUGGESTIONS"] = 2;
99899
+ return values;
99900
+ })();
99901
+
99128
99902
  return MaibaAIFeaturesControlAction;
99129
99903
  })();
99130
99904
 
@@ -99767,144 +100541,6 @@ export const proto = $root.proto = (() => {
99767
100541
  return MerchantPaymentPartnerAction;
99768
100542
  })();
99769
100543
 
99770
- SyncActionValue.ModelMetadata = (function() {
99771
-
99772
- function ModelMetadata(p) {
99773
- if (p)
99774
- for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
99775
- if (p[ks[i]] != null && ks[i] !== "__proto__")
99776
- this[ks[i]] = p[ks[i]];
99777
- }
99778
-
99779
- ModelMetadata.prototype.modelName = null;
99780
- ModelMetadata.prototype.isLatestModel = null;
99781
- ModelMetadata.prototype.isDetected = null;
99782
-
99783
- let $oneOfFields;
99784
-
99785
- // Virtual OneOf for proto3 optional field
99786
- Object.defineProperty(ModelMetadata.prototype, "_modelName", {
99787
- get: $util.oneOfGetter($oneOfFields = ["modelName"]),
99788
- set: $util.oneOfSetter($oneOfFields)
99789
- });
99790
-
99791
- // Virtual OneOf for proto3 optional field
99792
- Object.defineProperty(ModelMetadata.prototype, "_isLatestModel", {
99793
- get: $util.oneOfGetter($oneOfFields = ["isLatestModel"]),
99794
- set: $util.oneOfSetter($oneOfFields)
99795
- });
99796
-
99797
- // Virtual OneOf for proto3 optional field
99798
- Object.defineProperty(ModelMetadata.prototype, "_isDetected", {
99799
- get: $util.oneOfGetter($oneOfFields = ["isDetected"]),
99800
- set: $util.oneOfSetter($oneOfFields)
99801
- });
99802
-
99803
- ModelMetadata.create = function create(properties) {
99804
- return new ModelMetadata(properties);
99805
- };
99806
-
99807
- ModelMetadata.encode = function encode(m, w) {
99808
- if (!w)
99809
- w = $Writer.create();
99810
- if (m.modelName != null && Object.hasOwnProperty.call(m, "modelName"))
99811
- w.uint32(10).string(m.modelName);
99812
- if (m.isLatestModel != null && Object.hasOwnProperty.call(m, "isLatestModel"))
99813
- w.uint32(16).bool(m.isLatestModel);
99814
- if (m.isDetected != null && Object.hasOwnProperty.call(m, "isDetected"))
99815
- w.uint32(24).bool(m.isDetected);
99816
- return w;
99817
- };
99818
-
99819
- ModelMetadata.decode = function decode(r, l, e, n) {
99820
- if (!(r instanceof $Reader))
99821
- r = $Reader.create(r);
99822
- if (n === undefined)
99823
- n = 0;
99824
- if (n > $Reader.recursionLimit)
99825
- throw Error("maximum nesting depth exceeded");
99826
- var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.SyncActionValue.ModelMetadata();
99827
- while (r.pos < c) {
99828
- var t = r.uint32();
99829
- if (t === e)
99830
- break;
99831
- switch (t >>> 3) {
99832
- case 1: {
99833
- m.modelName = r.string();
99834
- break;
99835
- }
99836
- case 2: {
99837
- m.isLatestModel = r.bool();
99838
- break;
99839
- }
99840
- case 3: {
99841
- m.isDetected = r.bool();
99842
- break;
99843
- }
99844
- default:
99845
- r.skipType(t & 7, n);
99846
- break;
99847
- }
99848
- }
99849
- return m;
99850
- };
99851
-
99852
- ModelMetadata.fromObject = function fromObject(d, n) {
99853
- if (d instanceof $root.proto.SyncActionValue.ModelMetadata)
99854
- return d;
99855
- if (n === undefined)
99856
- n = 0;
99857
- if (n > $util.recursionLimit)
99858
- throw Error("maximum nesting depth exceeded");
99859
- var m = new $root.proto.SyncActionValue.ModelMetadata();
99860
- if (d.modelName != null) {
99861
- m.modelName = String(d.modelName);
99862
- }
99863
- if (d.isLatestModel != null) {
99864
- m.isLatestModel = Boolean(d.isLatestModel);
99865
- }
99866
- if (d.isDetected != null) {
99867
- m.isDetected = Boolean(d.isDetected);
99868
- }
99869
- return m;
99870
- };
99871
-
99872
- ModelMetadata.toObject = function toObject(m, o) {
99873
- if (!o)
99874
- o = {};
99875
- var d = {};
99876
- if (m.modelName != null && m.hasOwnProperty("modelName")) {
99877
- d.modelName = m.modelName;
99878
- if (o.oneofs)
99879
- d._modelName = "modelName";
99880
- }
99881
- if (m.isLatestModel != null && m.hasOwnProperty("isLatestModel")) {
99882
- d.isLatestModel = m.isLatestModel;
99883
- if (o.oneofs)
99884
- d._isLatestModel = "isLatestModel";
99885
- }
99886
- if (m.isDetected != null && m.hasOwnProperty("isDetected")) {
99887
- d.isDetected = m.isDetected;
99888
- if (o.oneofs)
99889
- d._isDetected = "isDetected";
99890
- }
99891
- return d;
99892
- };
99893
-
99894
- ModelMetadata.prototype.toJSON = function toJSON() {
99895
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
99896
- };
99897
-
99898
- ModelMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
99899
- if (typeUrlPrefix === undefined) {
99900
- typeUrlPrefix = "type.googleapis.com";
99901
- }
99902
- return typeUrlPrefix + "/proto.SyncActionValue.ModelMetadata";
99903
- };
99904
-
99905
- return ModelMetadata;
99906
- })();
99907
-
99908
100544
  SyncActionValue.MusicUserIdAction = (function() {
99909
100545
 
99910
100546
  function MusicUserIdAction(p) {