@itsliaaa/baileys 0.3.16 → 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) {
@@ -84691,6 +85064,7 @@ export const proto = $root.proto = (() => {
84691
85064
  proto.PollAdditionalMetadata = (function() {
84692
85065
 
84693
85066
  function PollAdditionalMetadata(p) {
85067
+ this.pollNameHashHistory = [];
84694
85068
  if (p)
84695
85069
  for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
84696
85070
  if (p[ks[i]] != null && ks[i] !== "__proto__")
@@ -84698,6 +85072,7 @@ export const proto = $root.proto = (() => {
84698
85072
  }
84699
85073
 
84700
85074
  PollAdditionalMetadata.prototype.pollInvalidated = null;
85075
+ PollAdditionalMetadata.prototype.pollNameHashHistory = $util.emptyArray;
84701
85076
 
84702
85077
  let $oneOfFields;
84703
85078
 
@@ -84716,6 +85091,10 @@ export const proto = $root.proto = (() => {
84716
85091
  w = $Writer.create();
84717
85092
  if (m.pollInvalidated != null && Object.hasOwnProperty.call(m, "pollInvalidated"))
84718
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
+ }
84719
85098
  return w;
84720
85099
  };
84721
85100
 
@@ -84736,6 +85115,12 @@ export const proto = $root.proto = (() => {
84736
85115
  m.pollInvalidated = r.bool();
84737
85116
  break;
84738
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
+ }
84739
85124
  default:
84740
85125
  r.skipType(t & 7, n);
84741
85126
  break;
@@ -84755,6 +85140,16 @@ export const proto = $root.proto = (() => {
84755
85140
  if (d.pollInvalidated != null) {
84756
85141
  m.pollInvalidated = Boolean(d.pollInvalidated);
84757
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
+ }
84758
85153
  return m;
84759
85154
  };
84760
85155
 
@@ -84762,11 +85157,20 @@ export const proto = $root.proto = (() => {
84762
85157
  if (!o)
84763
85158
  o = {};
84764
85159
  var d = {};
85160
+ if (o.arrays || o.defaults) {
85161
+ d.pollNameHashHistory = [];
85162
+ }
84765
85163
  if (m.pollInvalidated != null && m.hasOwnProperty("pollInvalidated")) {
84766
85164
  d.pollInvalidated = m.pollInvalidated;
84767
85165
  if (o.oneofs)
84768
85166
  d._pollInvalidated = "pollInvalidated";
84769
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
+ }
84770
85174
  return d;
84771
85175
  };
84772
85176
 
@@ -84781,6 +85185,126 @@ export const proto = $root.proto = (() => {
84781
85185
  return typeUrlPrefix + "/proto.PollAdditionalMetadata";
84782
85186
  };
84783
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
+
84784
85308
  return PollAdditionalMetadata;
84785
85309
  })();
84786
85310
 
@@ -84921,6 +85445,7 @@ export const proto = $root.proto = (() => {
84921
85445
  PollUpdate.prototype.senderTimestampMs = null;
84922
85446
  PollUpdate.prototype.serverTimestampMs = null;
84923
85447
  PollUpdate.prototype.unread = null;
85448
+ PollUpdate.prototype.metadata = null;
84924
85449
 
84925
85450
  let $oneOfFields;
84926
85451
 
@@ -84954,6 +85479,12 @@ export const proto = $root.proto = (() => {
84954
85479
  set: $util.oneOfSetter($oneOfFields)
84955
85480
  });
84956
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
+
84957
85488
  PollUpdate.create = function create(properties) {
84958
85489
  return new PollUpdate(properties);
84959
85490
  };
@@ -84971,6 +85502,8 @@ export const proto = $root.proto = (() => {
84971
85502
  w.uint32(32).int64(m.serverTimestampMs);
84972
85503
  if (m.unread != null && Object.hasOwnProperty.call(m, "unread"))
84973
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();
84974
85507
  return w;
84975
85508
  };
84976
85509
 
@@ -85007,6 +85540,10 @@ export const proto = $root.proto = (() => {
85007
85540
  m.unread = r.bool();
85008
85541
  break;
85009
85542
  }
85543
+ case 6: {
85544
+ m.metadata = $root.proto.Message.PollUpdateMessageMetadata.decode(r, r.uint32(), undefined, n + 1);
85545
+ break;
85546
+ }
85010
85547
  default:
85011
85548
  r.skipType(t & 7, n);
85012
85549
  break;
@@ -85056,6 +85593,11 @@ export const proto = $root.proto = (() => {
85056
85593
  if (d.unread != null) {
85057
85594
  m.unread = Boolean(d.unread);
85058
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
+ }
85059
85601
  return m;
85060
85602
  };
85061
85603
 
@@ -85094,6 +85636,11 @@ export const proto = $root.proto = (() => {
85094
85636
  if (o.oneofs)
85095
85637
  d._unread = "unread";
85096
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
+ }
85097
85644
  return d;
85098
85645
  };
85099
85646
 
@@ -98271,7 +98818,6 @@ export const proto = $root.proto = (() => {
98271
98818
  SyncActionValue.LabelAssociationAction = (function() {
98272
98819
 
98273
98820
  function LabelAssociationAction(p) {
98274
- this.modelMetaData = [];
98275
98821
  if (p)
98276
98822
  for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
98277
98823
  if (p[ks[i]] != null && ks[i] !== "__proto__")
@@ -98279,7 +98825,7 @@ export const proto = $root.proto = (() => {
98279
98825
  }
98280
98826
 
98281
98827
  LabelAssociationAction.prototype.labeled = null;
98282
- LabelAssociationAction.prototype.modelMetaData = $util.emptyArray;
98828
+ LabelAssociationAction.prototype.modelMetaData = null;
98283
98829
 
98284
98830
  let $oneOfFields;
98285
98831
 
@@ -98289,6 +98835,12 @@ export const proto = $root.proto = (() => {
98289
98835
  set: $util.oneOfSetter($oneOfFields)
98290
98836
  });
98291
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
+
98292
98844
  LabelAssociationAction.create = function create(properties) {
98293
98845
  return new LabelAssociationAction(properties);
98294
98846
  };
@@ -98298,10 +98850,8 @@ export const proto = $root.proto = (() => {
98298
98850
  w = $Writer.create();
98299
98851
  if (m.labeled != null && Object.hasOwnProperty.call(m, "labeled"))
98300
98852
  w.uint32(8).bool(m.labeled);
98301
- if (m.modelMetaData != null && m.modelMetaData.length) {
98302
- for (var i = 0; i < m.modelMetaData.length; ++i)
98303
- $root.proto.SyncActionValue.ModelMetadata.encode(m.modelMetaData[i], w.uint32(18).fork()).ldelim();
98304
- }
98853
+ if (m.modelMetaData != null && Object.hasOwnProperty.call(m, "modelMetaData"))
98854
+ w.uint32(18).string(m.modelMetaData);
98305
98855
  return w;
98306
98856
  };
98307
98857
 
@@ -98323,9 +98873,7 @@ export const proto = $root.proto = (() => {
98323
98873
  break;
98324
98874
  }
98325
98875
  case 2: {
98326
- if (!(m.modelMetaData && m.modelMetaData.length))
98327
- m.modelMetaData = [];
98328
- m.modelMetaData.push($root.proto.SyncActionValue.ModelMetadata.decode(r, r.uint32(), undefined, n + 1));
98876
+ m.modelMetaData = r.string();
98329
98877
  break;
98330
98878
  }
98331
98879
  default:
@@ -98347,15 +98895,8 @@ export const proto = $root.proto = (() => {
98347
98895
  if (d.labeled != null) {
98348
98896
  m.labeled = Boolean(d.labeled);
98349
98897
  }
98350
- if (d.modelMetaData) {
98351
- if (!Array.isArray(d.modelMetaData))
98352
- throw TypeError(".proto.SyncActionValue.LabelAssociationAction.modelMetaData: array expected");
98353
- m.modelMetaData = [];
98354
- for (var i = 0; i < d.modelMetaData.length; ++i) {
98355
- if (typeof d.modelMetaData[i] !== "object")
98356
- throw TypeError(".proto.SyncActionValue.LabelAssociationAction.modelMetaData: object expected");
98357
- m.modelMetaData[i] = $root.proto.SyncActionValue.ModelMetadata.fromObject(d.modelMetaData[i], n + 1);
98358
- }
98898
+ if (d.modelMetaData != null) {
98899
+ m.modelMetaData = String(d.modelMetaData);
98359
98900
  }
98360
98901
  return m;
98361
98902
  };
@@ -98364,19 +98905,15 @@ export const proto = $root.proto = (() => {
98364
98905
  if (!o)
98365
98906
  o = {};
98366
98907
  var d = {};
98367
- if (o.arrays || o.defaults) {
98368
- d.modelMetaData = [];
98369
- }
98370
98908
  if (m.labeled != null && m.hasOwnProperty("labeled")) {
98371
98909
  d.labeled = m.labeled;
98372
98910
  if (o.oneofs)
98373
98911
  d._labeled = "labeled";
98374
98912
  }
98375
- if (m.modelMetaData && m.modelMetaData.length) {
98376
- d.modelMetaData = [];
98377
- for (var j = 0; j < m.modelMetaData.length; ++j) {
98378
- d.modelMetaData[j] = $root.proto.SyncActionValue.ModelMetadata.toObject(m.modelMetaData[j], o);
98379
- }
98913
+ if (m.modelMetaData != null && m.hasOwnProperty("modelMetaData")) {
98914
+ d.modelMetaData = m.modelMetaData;
98915
+ if (o.oneofs)
98916
+ d._modelMetaData = "modelMetaData";
98380
98917
  }
98381
98918
  return d;
98382
98919
  };
@@ -99208,6 +99745,7 @@ export const proto = $root.proto = (() => {
99208
99745
  }
99209
99746
 
99210
99747
  MaibaAIFeaturesControlAction.prototype.aiFeatureStatus = null;
99748
+ MaibaAIFeaturesControlAction.prototype.aiReplyMode = null;
99211
99749
 
99212
99750
  let $oneOfFields;
99213
99751
 
@@ -99217,6 +99755,12 @@ export const proto = $root.proto = (() => {
99217
99755
  set: $util.oneOfSetter($oneOfFields)
99218
99756
  });
99219
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
+
99220
99764
  MaibaAIFeaturesControlAction.create = function create(properties) {
99221
99765
  return new MaibaAIFeaturesControlAction(properties);
99222
99766
  };
@@ -99226,6 +99770,8 @@ export const proto = $root.proto = (() => {
99226
99770
  w = $Writer.create();
99227
99771
  if (m.aiFeatureStatus != null && Object.hasOwnProperty.call(m, "aiFeatureStatus"))
99228
99772
  w.uint32(8).int32(m.aiFeatureStatus);
99773
+ if (m.aiReplyMode != null && Object.hasOwnProperty.call(m, "aiReplyMode"))
99774
+ w.uint32(16).int32(m.aiReplyMode);
99229
99775
  return w;
99230
99776
  };
99231
99777
 
@@ -99246,6 +99792,10 @@ export const proto = $root.proto = (() => {
99246
99792
  m.aiFeatureStatus = r.int32();
99247
99793
  break;
99248
99794
  }
99795
+ case 2: {
99796
+ m.aiReplyMode = r.int32();
99797
+ break;
99798
+ }
99249
99799
  default:
99250
99800
  r.skipType(t & 7, n);
99251
99801
  break;
@@ -99282,6 +99832,26 @@ export const proto = $root.proto = (() => {
99282
99832
  m.aiFeatureStatus = 2;
99283
99833
  break;
99284
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
+ }
99285
99855
  return m;
99286
99856
  };
99287
99857
 
@@ -99294,6 +99864,11 @@ export const proto = $root.proto = (() => {
99294
99864
  if (o.oneofs)
99295
99865
  d._aiFeatureStatus = "aiFeatureStatus";
99296
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
+ }
99297
99872
  return d;
99298
99873
  };
99299
99874
 
@@ -99316,6 +99891,14 @@ export const proto = $root.proto = (() => {
99316
99891
  return values;
99317
99892
  })();
99318
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
+
99319
99902
  return MaibaAIFeaturesControlAction;
99320
99903
  })();
99321
99904
 
@@ -99958,144 +100541,6 @@ export const proto = $root.proto = (() => {
99958
100541
  return MerchantPaymentPartnerAction;
99959
100542
  })();
99960
100543
 
99961
- SyncActionValue.ModelMetadata = (function() {
99962
-
99963
- function ModelMetadata(p) {
99964
- if (p)
99965
- for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
99966
- if (p[ks[i]] != null && ks[i] !== "__proto__")
99967
- this[ks[i]] = p[ks[i]];
99968
- }
99969
-
99970
- ModelMetadata.prototype.modelName = null;
99971
- ModelMetadata.prototype.isLatestModel = null;
99972
- ModelMetadata.prototype.isDetected = null;
99973
-
99974
- let $oneOfFields;
99975
-
99976
- // Virtual OneOf for proto3 optional field
99977
- Object.defineProperty(ModelMetadata.prototype, "_modelName", {
99978
- get: $util.oneOfGetter($oneOfFields = ["modelName"]),
99979
- set: $util.oneOfSetter($oneOfFields)
99980
- });
99981
-
99982
- // Virtual OneOf for proto3 optional field
99983
- Object.defineProperty(ModelMetadata.prototype, "_isLatestModel", {
99984
- get: $util.oneOfGetter($oneOfFields = ["isLatestModel"]),
99985
- set: $util.oneOfSetter($oneOfFields)
99986
- });
99987
-
99988
- // Virtual OneOf for proto3 optional field
99989
- Object.defineProperty(ModelMetadata.prototype, "_isDetected", {
99990
- get: $util.oneOfGetter($oneOfFields = ["isDetected"]),
99991
- set: $util.oneOfSetter($oneOfFields)
99992
- });
99993
-
99994
- ModelMetadata.create = function create(properties) {
99995
- return new ModelMetadata(properties);
99996
- };
99997
-
99998
- ModelMetadata.encode = function encode(m, w) {
99999
- if (!w)
100000
- w = $Writer.create();
100001
- if (m.modelName != null && Object.hasOwnProperty.call(m, "modelName"))
100002
- w.uint32(10).string(m.modelName);
100003
- if (m.isLatestModel != null && Object.hasOwnProperty.call(m, "isLatestModel"))
100004
- w.uint32(16).bool(m.isLatestModel);
100005
- if (m.isDetected != null && Object.hasOwnProperty.call(m, "isDetected"))
100006
- w.uint32(24).bool(m.isDetected);
100007
- return w;
100008
- };
100009
-
100010
- ModelMetadata.decode = function decode(r, l, e, n) {
100011
- if (!(r instanceof $Reader))
100012
- r = $Reader.create(r);
100013
- if (n === undefined)
100014
- n = 0;
100015
- if (n > $Reader.recursionLimit)
100016
- throw Error("maximum nesting depth exceeded");
100017
- var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.SyncActionValue.ModelMetadata();
100018
- while (r.pos < c) {
100019
- var t = r.uint32();
100020
- if (t === e)
100021
- break;
100022
- switch (t >>> 3) {
100023
- case 1: {
100024
- m.modelName = r.string();
100025
- break;
100026
- }
100027
- case 2: {
100028
- m.isLatestModel = r.bool();
100029
- break;
100030
- }
100031
- case 3: {
100032
- m.isDetected = r.bool();
100033
- break;
100034
- }
100035
- default:
100036
- r.skipType(t & 7, n);
100037
- break;
100038
- }
100039
- }
100040
- return m;
100041
- };
100042
-
100043
- ModelMetadata.fromObject = function fromObject(d, n) {
100044
- if (d instanceof $root.proto.SyncActionValue.ModelMetadata)
100045
- return d;
100046
- if (n === undefined)
100047
- n = 0;
100048
- if (n > $util.recursionLimit)
100049
- throw Error("maximum nesting depth exceeded");
100050
- var m = new $root.proto.SyncActionValue.ModelMetadata();
100051
- if (d.modelName != null) {
100052
- m.modelName = String(d.modelName);
100053
- }
100054
- if (d.isLatestModel != null) {
100055
- m.isLatestModel = Boolean(d.isLatestModel);
100056
- }
100057
- if (d.isDetected != null) {
100058
- m.isDetected = Boolean(d.isDetected);
100059
- }
100060
- return m;
100061
- };
100062
-
100063
- ModelMetadata.toObject = function toObject(m, o) {
100064
- if (!o)
100065
- o = {};
100066
- var d = {};
100067
- if (m.modelName != null && m.hasOwnProperty("modelName")) {
100068
- d.modelName = m.modelName;
100069
- if (o.oneofs)
100070
- d._modelName = "modelName";
100071
- }
100072
- if (m.isLatestModel != null && m.hasOwnProperty("isLatestModel")) {
100073
- d.isLatestModel = m.isLatestModel;
100074
- if (o.oneofs)
100075
- d._isLatestModel = "isLatestModel";
100076
- }
100077
- if (m.isDetected != null && m.hasOwnProperty("isDetected")) {
100078
- d.isDetected = m.isDetected;
100079
- if (o.oneofs)
100080
- d._isDetected = "isDetected";
100081
- }
100082
- return d;
100083
- };
100084
-
100085
- ModelMetadata.prototype.toJSON = function toJSON() {
100086
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
100087
- };
100088
-
100089
- ModelMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
100090
- if (typeUrlPrefix === undefined) {
100091
- typeUrlPrefix = "type.googleapis.com";
100092
- }
100093
- return typeUrlPrefix + "/proto.SyncActionValue.ModelMetadata";
100094
- };
100095
-
100096
- return ModelMetadata;
100097
- })();
100098
-
100099
100544
  SyncActionValue.MusicUserIdAction = (function() {
100100
100545
 
100101
100546
  function MusicUserIdAction(p) {