@elfhkry666/baileys 0.3.20 → 0.3.21

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.
Files changed (45) hide show
  1. package/README.md +68 -2022
  2. package/WAProto/index.d.ts +31 -168
  3. package/WAProto/index.js +211 -1256
  4. package/lib/Defaults/index.d.ts +1 -1
  5. package/lib/Defaults/index.js +2 -1
  6. package/lib/Socket/business.d.ts +1 -1
  7. package/lib/Socket/chats.d.ts +1 -8
  8. package/lib/Socket/chats.d.ts.map +1 -1
  9. package/lib/Socket/chats.js +7 -12
  10. package/lib/Socket/chats.js.map +1 -1
  11. package/lib/Socket/communities.d.ts +1 -1
  12. package/lib/Socket/groups.d.ts +1 -1
  13. package/lib/Socket/index.d.ts +1 -1
  14. package/lib/Socket/messages-recv.d.ts +1 -1
  15. package/lib/Socket/messages-send.d.ts +1 -1
  16. package/lib/Socket/newsletter.d.ts +1 -1
  17. package/lib/Socket/newsletter.js +9 -12
  18. package/lib/Socket/socket.d.ts.map +1 -1
  19. package/lib/Socket/socket.js +0 -3
  20. package/lib/Socket/socket.js.map +1 -1
  21. package/lib/Utils/auth-utils.d.ts.map +1 -1
  22. package/lib/Utils/auth-utils.js +1 -5
  23. package/lib/Utils/auth-utils.js.map +1 -1
  24. package/lib/Utils/browser-utils.d.ts +0 -1
  25. package/lib/Utils/browser-utils.d.ts.map +1 -1
  26. package/lib/Utils/browser-utils.js +0 -1
  27. package/lib/Utils/browser-utils.js.map +1 -1
  28. package/lib/Utils/generics.js +2 -2
  29. package/lib/Utils/messages.d.ts +4 -4
  30. package/lib/Utils/messages.d.ts.map +1 -1
  31. package/lib/Utils/messages.js +54 -21
  32. package/lib/Utils/messages.js.map +1 -1
  33. package/lib/Utils/rich-message-utils.d.ts +1 -1
  34. package/lib/Utils/rich-message-utils.d.ts.map +1 -1
  35. package/lib/Utils/rich-message-utils.js +10 -122
  36. package/lib/Utils/rich-message-utils.js.map +1 -1
  37. package/lib/Utils/tc-token-utils.d.ts.map +1 -1
  38. package/lib/Utils/tc-token-utils.js +2 -3
  39. package/lib/Utils/tc-token-utils.js.map +1 -1
  40. package/lib/Utils/use-single-file-auth-state.js +1 -1
  41. package/lib/Utils/validate-connection.d.ts.map +1 -1
  42. package/lib/Utils/validate-connection.js +2 -9
  43. package/lib/Utils/validate-connection.js.map +1 -1
  44. package/lib/index.js +7 -8
  45. package/package.json +14 -45
package/WAProto/index.js CHANGED
@@ -16363,10 +16363,6 @@ 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;
16370
16366
  }
16371
16367
  if (d.signature != null) {
16372
16368
  if (typeof d.signature === "string")
@@ -16435,7 +16431,6 @@ export const proto = $root.proto = (() => {
16435
16431
  values[valuesById[0] = "UNSPECIFIED"] = 0;
16436
16432
  values[valuesById[1] = "WA_BOT_MSG"] = 1;
16437
16433
  values[valuesById[2] = "WA_TEE_BOT_MSG"] = 2;
16438
- values[valuesById[3] = "P2P_PILLS"] = 3;
16439
16434
  return values;
16440
16435
  })();
16441
16436
 
@@ -25362,8 +25357,6 @@ export const proto = $root.proto = (() => {
25362
25357
  BusinessInteractionPills.prototype.businessJid = null;
25363
25358
  BusinessInteractionPills.prototype.pills = $util.emptyArray;
25364
25359
  BusinessInteractionPills.prototype.entryPoint = null;
25365
- BusinessInteractionPills.prototype.signedPayload = null;
25366
- BusinessInteractionPills.prototype.signatureEnvelope = null;
25367
25360
 
25368
25361
  let $oneOfFields;
25369
25362
 
@@ -25379,18 +25372,6 @@ export const proto = $root.proto = (() => {
25379
25372
  set: $util.oneOfSetter($oneOfFields)
25380
25373
  });
25381
25374
 
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
-
25394
25375
  BusinessInteractionPills.create = function create(properties) {
25395
25376
  return new BusinessInteractionPills(properties);
25396
25377
  };
@@ -25406,10 +25387,6 @@ export const proto = $root.proto = (() => {
25406
25387
  }
25407
25388
  if (m.entryPoint != null && Object.hasOwnProperty.call(m, "entryPoint"))
25408
25389
  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();
25413
25390
  return w;
25414
25391
  };
25415
25392
 
@@ -25440,14 +25417,6 @@ export const proto = $root.proto = (() => {
25440
25417
  m.entryPoint = r.int32();
25441
25418
  break;
25442
25419
  }
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
- }
25451
25420
  default:
25452
25421
  r.skipType(t & 7, n);
25453
25422
  break;
@@ -25509,17 +25478,6 @@ export const proto = $root.proto = (() => {
25509
25478
  m.entryPoint = 5;
25510
25479
  break;
25511
25480
  }
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
- }
25523
25481
  return m;
25524
25482
  };
25525
25483
 
@@ -25546,16 +25504,6 @@ export const proto = $root.proto = (() => {
25546
25504
  if (o.oneofs)
25547
25505
  d._entryPoint = "entryPoint";
25548
25506
  }
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
- }
25559
25507
  return d;
25560
25508
  };
25561
25509
 
@@ -25773,133 +25721,6 @@ export const proto = $root.proto = (() => {
25773
25721
  return values;
25774
25722
  })();
25775
25723
 
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
-
25903
25724
  return BusinessInteractionPills;
25904
25725
  })();
25905
25726
 
@@ -41853,7 +41674,6 @@ export const proto = $root.proto = (() => {
41853
41674
  Message.prototype.paymentReminderMessage = null;
41854
41675
  Message.prototype.splitPaymentMessage = null;
41855
41676
  Message.prototype.newsletterAdminProfileStatusMessage = null;
41856
- Message.prototype.rootSecretDistributeMessage = null;
41857
41677
 
41858
41678
  let $oneOfFields;
41859
41679
 
@@ -42493,12 +42313,6 @@ export const proto = $root.proto = (() => {
42493
42313
  set: $util.oneOfSetter($oneOfFields)
42494
42314
  });
42495
42315
 
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
-
42502
42316
  Message.create = function create(properties) {
42503
42317
  return new Message(properties);
42504
42318
  };
@@ -42718,8 +42532,6 @@ export const proto = $root.proto = (() => {
42718
42532
  $root.proto.Message.SplitPaymentMessage.encode(m.splitPaymentMessage, w.uint32(1002).fork()).ldelim();
42719
42533
  if (m.newsletterAdminProfileStatusMessage != null && Object.hasOwnProperty.call(m, "newsletterAdminProfileStatusMessage"))
42720
42534
  $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();
42723
42535
  return w;
42724
42536
  };
42725
42537
 
@@ -43160,10 +42972,6 @@ export const proto = $root.proto = (() => {
43160
42972
  m.newsletterAdminProfileStatusMessage = $root.proto.Message.FutureProofMessage.decode(r, r.uint32(), undefined, n + 1);
43161
42973
  break;
43162
42974
  }
43163
- case 127: {
43164
- m.rootSecretDistributeMessage = $root.proto.Message.RootSecretDistributeMessage.decode(r, r.uint32(), undefined, n + 1);
43165
- break;
43166
- }
43167
42975
  default:
43168
42976
  r.skipType(t & 7, n);
43169
42977
  break;
@@ -43708,11 +43516,6 @@ export const proto = $root.proto = (() => {
43708
43516
  throw TypeError(".proto.Message.newsletterAdminProfileStatusMessage: object expected");
43709
43517
  m.newsletterAdminProfileStatusMessage = $root.proto.Message.FutureProofMessage.fromObject(d.newsletterAdminProfileStatusMessage, n + 1);
43710
43518
  }
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
- }
43716
43519
  return m;
43717
43520
  };
43718
43521
 
@@ -44250,11 +44053,6 @@ export const proto = $root.proto = (() => {
44250
44053
  if (o.oneofs)
44251
44054
  d._newsletterAdminProfileStatusMessage = "newsletterAdminProfileStatusMessage";
44252
44055
  }
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
- }
44258
44056
  return d;
44259
44057
  };
44260
44058
 
@@ -68554,7 +68352,6 @@ export const proto = $root.proto = (() => {
68554
68352
 
68555
68353
  PollAddOptionMessage.prototype.pollCreationMessageKey = null;
68556
68354
  PollAddOptionMessage.prototype.addOption = null;
68557
- PollAddOptionMessage.prototype.metadata = null;
68558
68355
 
68559
68356
  let $oneOfFields;
68560
68357
 
@@ -68570,12 +68367,6 @@ export const proto = $root.proto = (() => {
68570
68367
  set: $util.oneOfSetter($oneOfFields)
68571
68368
  });
68572
68369
 
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
-
68579
68370
  PollAddOptionMessage.create = function create(properties) {
68580
68371
  return new PollAddOptionMessage(properties);
68581
68372
  };
@@ -68587,8 +68378,6 @@ export const proto = $root.proto = (() => {
68587
68378
  $root.proto.MessageKey.encode(m.pollCreationMessageKey, w.uint32(10).fork()).ldelim();
68588
68379
  if (m.addOption != null && Object.hasOwnProperty.call(m, "addOption"))
68589
68380
  $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();
68592
68381
  return w;
68593
68382
  };
68594
68383
 
@@ -68613,10 +68402,6 @@ export const proto = $root.proto = (() => {
68613
68402
  m.addOption = $root.proto.Message.PollCreationMessage.Option.decode(r, r.uint32(), undefined, n + 1);
68614
68403
  break;
68615
68404
  }
68616
- case 3: {
68617
- m.metadata = $root.proto.Message.PollUpdateMessageMetadata.decode(r, r.uint32(), undefined, n + 1);
68618
- break;
68619
- }
68620
68405
  default:
68621
68406
  r.skipType(t & 7, n);
68622
68407
  break;
@@ -68643,11 +68428,6 @@ export const proto = $root.proto = (() => {
68643
68428
  throw TypeError(".proto.Message.PollAddOptionMessage.addOption: object expected");
68644
68429
  m.addOption = $root.proto.Message.PollCreationMessage.Option.fromObject(d.addOption, n + 1);
68645
68430
  }
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
- }
68651
68431
  return m;
68652
68432
  };
68653
68433
 
@@ -68665,11 +68445,6 @@ export const proto = $root.proto = (() => {
68665
68445
  if (o.oneofs)
68666
68446
  d._addOption = "addOption";
68667
68447
  }
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
- }
68673
68448
  return d;
68674
68449
  };
68675
68450
 
@@ -69800,23 +69575,6 @@ export const proto = $root.proto = (() => {
69800
69575
  this[ks[i]] = p[ks[i]];
69801
69576
  }
69802
69577
 
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
-
69820
69578
  PollUpdateMessageMetadata.create = function create(properties) {
69821
69579
  return new PollUpdateMessageMetadata(properties);
69822
69580
  };
@@ -69824,10 +69582,6 @@ export const proto = $root.proto = (() => {
69824
69582
  PollUpdateMessageMetadata.encode = function encode(m, w) {
69825
69583
  if (!w)
69826
69584
  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);
69831
69585
  return w;
69832
69586
  };
69833
69587
 
@@ -69844,14 +69598,6 @@ export const proto = $root.proto = (() => {
69844
69598
  if (t === e)
69845
69599
  break;
69846
69600
  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
- }
69855
69601
  default:
69856
69602
  r.skipType(t & 7, n);
69857
69603
  break;
@@ -69867,34 +69613,11 @@ export const proto = $root.proto = (() => {
69867
69613
  n = 0;
69868
69614
  if (n > $util.recursionLimit)
69869
69615
  throw Error("maximum nesting depth exceeded");
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;
69616
+ return new $root.proto.Message.PollUpdateMessageMetadata();
69881
69617
  };
69882
69618
 
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;
69619
+ PollUpdateMessageMetadata.toObject = function toObject() {
69620
+ return {};
69898
69621
  };
69899
69622
 
69900
69623
  PollUpdateMessageMetadata.prototype.toJSON = function toJSON() {
@@ -72416,102 +72139,6 @@ export const proto = $root.proto = (() => {
72416
72139
  return RequestWelcomeMessageMetadata;
72417
72140
  })();
72418
72141
 
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
-
72515
72142
  Message.ScheduledCallCreationMessage = (function() {
72516
72143
 
72517
72144
  function ScheduledCallCreationMessage(p) {
@@ -79651,14 +79278,6 @@ export const proto = $root.proto = (() => {
79651
79278
  MsgOpaqueData.prototype.pollEndTime = null;
79652
79279
  MsgOpaqueData.prototype.pollHideVoterNames = null;
79653
79280
  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;
79662
79281
 
79663
79282
  let $oneOfFields;
79664
79283
 
@@ -79938,54 +79557,6 @@ export const proto = $root.proto = (() => {
79938
79557
  set: $util.oneOfSetter($oneOfFields)
79939
79558
  });
79940
79559
 
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
-
79989
79560
  MsgOpaqueData.create = function create(properties) {
79990
79561
  return new MsgOpaqueData(properties);
79991
79562
  };
@@ -80089,22 +79660,6 @@ export const proto = $root.proto = (() => {
80089
79660
  w.uint32(410).string(m.originalSelfAuthor);
80090
79661
  if (m.pollAllowAddOption != null && Object.hasOwnProperty.call(m, "pollAllowAddOption"))
80091
79662
  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);
80108
79663
  return w;
80109
79664
  };
80110
79665
 
@@ -80311,38 +79866,6 @@ export const proto = $root.proto = (() => {
80311
79866
  m.pollAllowAddOption = r.bool();
80312
79867
  break;
80313
79868
  }
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
- }
80346
79869
  default:
80347
79870
  r.skipType(t & 7, n);
80348
79871
  break;
@@ -80595,47 +80118,6 @@ export const proto = $root.proto = (() => {
80595
80118
  if (d.pollAllowAddOption != null) {
80596
80119
  m.pollAllowAddOption = Boolean(d.pollAllowAddOption);
80597
80120
  }
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
- }
80639
80121
  return m;
80640
80122
  };
80641
80123
 
@@ -80894,52 +80376,6 @@ export const proto = $root.proto = (() => {
80894
80376
  if (o.oneofs)
80895
80377
  d._pollAllowAddOption = "pollAllowAddOption";
80896
80378
  }
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
- }
80943
80379
  return d;
80944
80380
  };
80945
80381
 
@@ -81720,8 +81156,6 @@ export const proto = $root.proto = (() => {
81720
81156
  values[valuesById[85] = "THREAD_PIN_ACTION"] = 85;
81721
81157
  values[valuesById[86] = "AUTO_ORGANIZE_BUSINESS_CHAT_SETTING"] = 86;
81722
81158
  values[valuesById[87] = "BIZ_AI_SETTINGS_NUDGE_ACTION"] = 87;
81723
- values[valuesById[88] = "COEX_V2_VERSION_ACTION"] = 88;
81724
- values[valuesById[89] = "WASA_ROOT_SECRET_ACTION"] = 89;
81725
81159
  values[valuesById[10001] = "SHARE_OWN_PN"] = 10001;
81726
81160
  values[valuesById[10002] = "BUSINESS_BROADCAST_ACTION"] = 10002;
81727
81161
  values[valuesById[10003] = "AI_THREAD_DELETE_ACTION"] = 10003;
@@ -85066,7 +84500,6 @@ export const proto = $root.proto = (() => {
85066
84500
  proto.PollAdditionalMetadata = (function() {
85067
84501
 
85068
84502
  function PollAdditionalMetadata(p) {
85069
- this.pollNameHashHistory = [];
85070
84503
  if (p)
85071
84504
  for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
85072
84505
  if (p[ks[i]] != null && ks[i] !== "__proto__")
@@ -85074,7 +84507,6 @@ export const proto = $root.proto = (() => {
85074
84507
  }
85075
84508
 
85076
84509
  PollAdditionalMetadata.prototype.pollInvalidated = null;
85077
- PollAdditionalMetadata.prototype.pollNameHashHistory = $util.emptyArray;
85078
84510
 
85079
84511
  let $oneOfFields;
85080
84512
 
@@ -85093,10 +84525,6 @@ export const proto = $root.proto = (() => {
85093
84525
  w = $Writer.create();
85094
84526
  if (m.pollInvalidated != null && Object.hasOwnProperty.call(m, "pollInvalidated"))
85095
84527
  w.uint32(8).bool(m.pollInvalidated);
85096
- if (m.pollNameHashHistory != null && m.pollNameHashHistory.length) {
85097
- for (var i = 0; i < m.pollNameHashHistory.length; ++i)
85098
- $root.proto.PollAdditionalMetadata.PollNameHashHistoryEntry.encode(m.pollNameHashHistory[i], w.uint32(18).fork()).ldelim();
85099
- }
85100
84528
  return w;
85101
84529
  };
85102
84530
 
@@ -85117,12 +84545,6 @@ export const proto = $root.proto = (() => {
85117
84545
  m.pollInvalidated = r.bool();
85118
84546
  break;
85119
84547
  }
85120
- case 2: {
85121
- if (!(m.pollNameHashHistory && m.pollNameHashHistory.length))
85122
- m.pollNameHashHistory = [];
85123
- m.pollNameHashHistory.push($root.proto.PollAdditionalMetadata.PollNameHashHistoryEntry.decode(r, r.uint32(), undefined, n + 1));
85124
- break;
85125
- }
85126
84548
  default:
85127
84549
  r.skipType(t & 7, n);
85128
84550
  break;
@@ -85142,16 +84564,6 @@ export const proto = $root.proto = (() => {
85142
84564
  if (d.pollInvalidated != null) {
85143
84565
  m.pollInvalidated = Boolean(d.pollInvalidated);
85144
84566
  }
85145
- if (d.pollNameHashHistory) {
85146
- if (!Array.isArray(d.pollNameHashHistory))
85147
- throw TypeError(".proto.PollAdditionalMetadata.pollNameHashHistory: array expected");
85148
- m.pollNameHashHistory = [];
85149
- for (var i = 0; i < d.pollNameHashHistory.length; ++i) {
85150
- if (typeof d.pollNameHashHistory[i] !== "object")
85151
- throw TypeError(".proto.PollAdditionalMetadata.pollNameHashHistory: object expected");
85152
- m.pollNameHashHistory[i] = $root.proto.PollAdditionalMetadata.PollNameHashHistoryEntry.fromObject(d.pollNameHashHistory[i], n + 1);
85153
- }
85154
- }
85155
84567
  return m;
85156
84568
  };
85157
84569
 
@@ -85159,20 +84571,11 @@ export const proto = $root.proto = (() => {
85159
84571
  if (!o)
85160
84572
  o = {};
85161
84573
  var d = {};
85162
- if (o.arrays || o.defaults) {
85163
- d.pollNameHashHistory = [];
85164
- }
85165
84574
  if (m.pollInvalidated != null && m.hasOwnProperty("pollInvalidated")) {
85166
84575
  d.pollInvalidated = m.pollInvalidated;
85167
84576
  if (o.oneofs)
85168
84577
  d._pollInvalidated = "pollInvalidated";
85169
84578
  }
85170
- if (m.pollNameHashHistory && m.pollNameHashHistory.length) {
85171
- d.pollNameHashHistory = [];
85172
- for (var j = 0; j < m.pollNameHashHistory.length; ++j) {
85173
- d.pollNameHashHistory[j] = $root.proto.PollAdditionalMetadata.PollNameHashHistoryEntry.toObject(m.pollNameHashHistory[j], o);
85174
- }
85175
- }
85176
84579
  return d;
85177
84580
  };
85178
84581
 
@@ -85187,126 +84590,6 @@ export const proto = $root.proto = (() => {
85187
84590
  return typeUrlPrefix + "/proto.PollAdditionalMetadata";
85188
84591
  };
85189
84592
 
85190
- PollAdditionalMetadata.PollNameHashHistoryEntry = (function() {
85191
-
85192
- function PollNameHashHistoryEntry(p) {
85193
- if (p)
85194
- for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
85195
- if (p[ks[i]] != null && ks[i] !== "__proto__")
85196
- this[ks[i]] = p[ks[i]];
85197
- }
85198
-
85199
- PollNameHashHistoryEntry.prototype.editStanzaId = null;
85200
- PollNameHashHistoryEntry.prototype.pollNameHash = null;
85201
-
85202
- let $oneOfFields;
85203
-
85204
- // Virtual OneOf for proto3 optional field
85205
- Object.defineProperty(PollNameHashHistoryEntry.prototype, "_editStanzaId", {
85206
- get: $util.oneOfGetter($oneOfFields = ["editStanzaId"]),
85207
- set: $util.oneOfSetter($oneOfFields)
85208
- });
85209
-
85210
- // Virtual OneOf for proto3 optional field
85211
- Object.defineProperty(PollNameHashHistoryEntry.prototype, "_pollNameHash", {
85212
- get: $util.oneOfGetter($oneOfFields = ["pollNameHash"]),
85213
- set: $util.oneOfSetter($oneOfFields)
85214
- });
85215
-
85216
- PollNameHashHistoryEntry.create = function create(properties) {
85217
- return new PollNameHashHistoryEntry(properties);
85218
- };
85219
-
85220
- PollNameHashHistoryEntry.encode = function encode(m, w) {
85221
- if (!w)
85222
- w = $Writer.create();
85223
- if (m.editStanzaId != null && Object.hasOwnProperty.call(m, "editStanzaId"))
85224
- w.uint32(10).string(m.editStanzaId);
85225
- if (m.pollNameHash != null && Object.hasOwnProperty.call(m, "pollNameHash"))
85226
- w.uint32(18).bytes(m.pollNameHash);
85227
- return w;
85228
- };
85229
-
85230
- PollNameHashHistoryEntry.decode = function decode(r, l, e, n) {
85231
- if (!(r instanceof $Reader))
85232
- r = $Reader.create(r);
85233
- if (n === undefined)
85234
- n = 0;
85235
- if (n > $Reader.recursionLimit)
85236
- throw Error("maximum nesting depth exceeded");
85237
- var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.PollAdditionalMetadata.PollNameHashHistoryEntry();
85238
- while (r.pos < c) {
85239
- var t = r.uint32();
85240
- if (t === e)
85241
- break;
85242
- switch (t >>> 3) {
85243
- case 1: {
85244
- m.editStanzaId = r.string();
85245
- break;
85246
- }
85247
- case 2: {
85248
- m.pollNameHash = r.bytes();
85249
- break;
85250
- }
85251
- default:
85252
- r.skipType(t & 7, n);
85253
- break;
85254
- }
85255
- }
85256
- return m;
85257
- };
85258
-
85259
- PollNameHashHistoryEntry.fromObject = function fromObject(d, n) {
85260
- if (d instanceof $root.proto.PollAdditionalMetadata.PollNameHashHistoryEntry)
85261
- return d;
85262
- if (n === undefined)
85263
- n = 0;
85264
- if (n > $util.recursionLimit)
85265
- throw Error("maximum nesting depth exceeded");
85266
- var m = new $root.proto.PollAdditionalMetadata.PollNameHashHistoryEntry();
85267
- if (d.editStanzaId != null) {
85268
- m.editStanzaId = String(d.editStanzaId);
85269
- }
85270
- if (d.pollNameHash != null) {
85271
- if (typeof d.pollNameHash === "string")
85272
- $util.base64.decode(d.pollNameHash, m.pollNameHash = $util.newBuffer($util.base64.length(d.pollNameHash)), 0);
85273
- else if (d.pollNameHash.length >= 0)
85274
- m.pollNameHash = d.pollNameHash;
85275
- }
85276
- return m;
85277
- };
85278
-
85279
- PollNameHashHistoryEntry.toObject = function toObject(m, o) {
85280
- if (!o)
85281
- o = {};
85282
- var d = {};
85283
- if (m.editStanzaId != null && m.hasOwnProperty("editStanzaId")) {
85284
- d.editStanzaId = m.editStanzaId;
85285
- if (o.oneofs)
85286
- d._editStanzaId = "editStanzaId";
85287
- }
85288
- if (m.pollNameHash != null && m.hasOwnProperty("pollNameHash")) {
85289
- 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;
85290
- if (o.oneofs)
85291
- d._pollNameHash = "pollNameHash";
85292
- }
85293
- return d;
85294
- };
85295
-
85296
- PollNameHashHistoryEntry.prototype.toJSON = function toJSON() {
85297
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
85298
- };
85299
-
85300
- PollNameHashHistoryEntry.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
85301
- if (typeUrlPrefix === undefined) {
85302
- typeUrlPrefix = "type.googleapis.com";
85303
- }
85304
- return typeUrlPrefix + "/proto.PollAdditionalMetadata.PollNameHashHistoryEntry";
85305
- };
85306
-
85307
- return PollNameHashHistoryEntry;
85308
- })();
85309
-
85310
84593
  return PollAdditionalMetadata;
85311
84594
  })();
85312
84595
 
@@ -85447,7 +84730,6 @@ export const proto = $root.proto = (() => {
85447
84730
  PollUpdate.prototype.senderTimestampMs = null;
85448
84731
  PollUpdate.prototype.serverTimestampMs = null;
85449
84732
  PollUpdate.prototype.unread = null;
85450
- PollUpdate.prototype.metadata = null;
85451
84733
 
85452
84734
  let $oneOfFields;
85453
84735
 
@@ -85481,12 +84763,6 @@ export const proto = $root.proto = (() => {
85481
84763
  set: $util.oneOfSetter($oneOfFields)
85482
84764
  });
85483
84765
 
85484
- // Virtual OneOf for proto3 optional field
85485
- Object.defineProperty(PollUpdate.prototype, "_metadata", {
85486
- get: $util.oneOfGetter($oneOfFields = ["metadata"]),
85487
- set: $util.oneOfSetter($oneOfFields)
85488
- });
85489
-
85490
84766
  PollUpdate.create = function create(properties) {
85491
84767
  return new PollUpdate(properties);
85492
84768
  };
@@ -85504,8 +84780,6 @@ export const proto = $root.proto = (() => {
85504
84780
  w.uint32(32).int64(m.serverTimestampMs);
85505
84781
  if (m.unread != null && Object.hasOwnProperty.call(m, "unread"))
85506
84782
  w.uint32(40).bool(m.unread);
85507
- if (m.metadata != null && Object.hasOwnProperty.call(m, "metadata"))
85508
- $root.proto.Message.PollUpdateMessageMetadata.encode(m.metadata, w.uint32(50).fork()).ldelim();
85509
84783
  return w;
85510
84784
  };
85511
84785
 
@@ -85542,10 +84816,6 @@ export const proto = $root.proto = (() => {
85542
84816
  m.unread = r.bool();
85543
84817
  break;
85544
84818
  }
85545
- case 6: {
85546
- m.metadata = $root.proto.Message.PollUpdateMessageMetadata.decode(r, r.uint32(), undefined, n + 1);
85547
- break;
85548
- }
85549
84819
  default:
85550
84820
  r.skipType(t & 7, n);
85551
84821
  break;
@@ -85595,11 +84865,6 @@ export const proto = $root.proto = (() => {
85595
84865
  if (d.unread != null) {
85596
84866
  m.unread = Boolean(d.unread);
85597
84867
  }
85598
- if (d.metadata != null) {
85599
- if (typeof d.metadata !== "object")
85600
- throw TypeError(".proto.PollUpdate.metadata: object expected");
85601
- m.metadata = $root.proto.Message.PollUpdateMessageMetadata.fromObject(d.metadata, n + 1);
85602
- }
85603
84868
  return m;
85604
84869
  };
85605
84870
 
@@ -85638,11 +84903,6 @@ export const proto = $root.proto = (() => {
85638
84903
  if (o.oneofs)
85639
84904
  d._unread = "unread";
85640
84905
  }
85641
- if (m.metadata != null && m.hasOwnProperty("metadata")) {
85642
- d.metadata = $root.proto.Message.PollUpdateMessageMetadata.toObject(m.metadata, o);
85643
- if (o.oneofs)
85644
- d._metadata = "metadata";
85645
- }
85646
84906
  return d;
85647
84907
  };
85648
84908
 
@@ -92793,8 +92053,6 @@ export const proto = $root.proto = (() => {
92793
92053
  SyncActionValue.prototype.threadPinAction = null;
92794
92054
  SyncActionValue.prototype.autoOrganizeBusinessChatSetting = null;
92795
92055
  SyncActionValue.prototype.bizAiSettingsNudgeAction = null;
92796
- SyncActionValue.prototype.coexV2VersionAction = null;
92797
- SyncActionValue.prototype.wasaRootSecretAction = null;
92798
92056
 
92799
92057
  let $oneOfFields;
92800
92058
 
@@ -93266,18 +92524,6 @@ export const proto = $root.proto = (() => {
93266
92524
  set: $util.oneOfSetter($oneOfFields)
93267
92525
  });
93268
92526
 
93269
- // Virtual OneOf for proto3 optional field
93270
- Object.defineProperty(SyncActionValue.prototype, "_coexV2VersionAction", {
93271
- get: $util.oneOfGetter($oneOfFields = ["coexV2VersionAction"]),
93272
- set: $util.oneOfSetter($oneOfFields)
93273
- });
93274
-
93275
- // Virtual OneOf for proto3 optional field
93276
- Object.defineProperty(SyncActionValue.prototype, "_wasaRootSecretAction", {
93277
- get: $util.oneOfGetter($oneOfFields = ["wasaRootSecretAction"]),
93278
- set: $util.oneOfSetter($oneOfFields)
93279
- });
93280
-
93281
92527
  SyncActionValue.create = function create(properties) {
93282
92528
  return new SyncActionValue(properties);
93283
92529
  };
@@ -93441,10 +92687,6 @@ export const proto = $root.proto = (() => {
93441
92687
  $root.proto.SyncActionValue.AutoOrganizeBusinessChatSetting.encode(m.autoOrganizeBusinessChatSetting, w.uint32(690).fork()).ldelim();
93442
92688
  if (m.bizAiSettingsNudgeAction != null && Object.hasOwnProperty.call(m, "bizAiSettingsNudgeAction"))
93443
92689
  $root.proto.SyncActionValue.BizAISettingsNudgeAction.encode(m.bizAiSettingsNudgeAction, w.uint32(698).fork()).ldelim();
93444
- if (m.coexV2VersionAction != null && Object.hasOwnProperty.call(m, "coexV2VersionAction"))
93445
- $root.proto.SyncActionValue.CoexV2VersionAction.encode(m.coexV2VersionAction, w.uint32(706).fork()).ldelim();
93446
- if (m.wasaRootSecretAction != null && Object.hasOwnProperty.call(m, "wasaRootSecretAction"))
93447
- $root.proto.SyncActionValue.WASARootSecretAction.encode(m.wasaRootSecretAction, w.uint32(714).fork()).ldelim();
93448
92690
  return w;
93449
92691
  };
93450
92692
 
@@ -93773,14 +93015,6 @@ export const proto = $root.proto = (() => {
93773
93015
  m.bizAiSettingsNudgeAction = $root.proto.SyncActionValue.BizAISettingsNudgeAction.decode(r, r.uint32(), undefined, n + 1);
93774
93016
  break;
93775
93017
  }
93776
- case 88: {
93777
- m.coexV2VersionAction = $root.proto.SyncActionValue.CoexV2VersionAction.decode(r, r.uint32(), undefined, n + 1);
93778
- break;
93779
- }
93780
- case 89: {
93781
- m.wasaRootSecretAction = $root.proto.SyncActionValue.WASARootSecretAction.decode(r, r.uint32(), undefined, n + 1);
93782
- break;
93783
- }
93784
93018
  default:
93785
93019
  r.skipType(t & 7, n);
93786
93020
  break;
@@ -94192,16 +93426,6 @@ export const proto = $root.proto = (() => {
94192
93426
  throw TypeError(".proto.SyncActionValue.bizAiSettingsNudgeAction: object expected");
94193
93427
  m.bizAiSettingsNudgeAction = $root.proto.SyncActionValue.BizAISettingsNudgeAction.fromObject(d.bizAiSettingsNudgeAction, n + 1);
94194
93428
  }
94195
- if (d.coexV2VersionAction != null) {
94196
- if (typeof d.coexV2VersionAction !== "object")
94197
- throw TypeError(".proto.SyncActionValue.coexV2VersionAction: object expected");
94198
- m.coexV2VersionAction = $root.proto.SyncActionValue.CoexV2VersionAction.fromObject(d.coexV2VersionAction, n + 1);
94199
- }
94200
- if (d.wasaRootSecretAction != null) {
94201
- if (typeof d.wasaRootSecretAction !== "object")
94202
- throw TypeError(".proto.SyncActionValue.wasaRootSecretAction: object expected");
94203
- m.wasaRootSecretAction = $root.proto.SyncActionValue.WASARootSecretAction.fromObject(d.wasaRootSecretAction, n + 1);
94204
- }
94205
93429
  return m;
94206
93430
  };
94207
93431
 
@@ -94602,16 +93826,6 @@ export const proto = $root.proto = (() => {
94602
93826
  if (o.oneofs)
94603
93827
  d._bizAiSettingsNudgeAction = "bizAiSettingsNudgeAction";
94604
93828
  }
94605
- if (m.coexV2VersionAction != null && m.hasOwnProperty("coexV2VersionAction")) {
94606
- d.coexV2VersionAction = $root.proto.SyncActionValue.CoexV2VersionAction.toObject(m.coexV2VersionAction, o);
94607
- if (o.oneofs)
94608
- d._coexV2VersionAction = "coexV2VersionAction";
94609
- }
94610
- if (m.wasaRootSecretAction != null && m.hasOwnProperty("wasaRootSecretAction")) {
94611
- d.wasaRootSecretAction = $root.proto.SyncActionValue.WASARootSecretAction.toObject(m.wasaRootSecretAction, o);
94612
- if (o.oneofs)
94613
- d._wasaRootSecretAction = "wasaRootSecretAction";
94614
- }
94615
93829
  return d;
94616
93830
  };
94617
93831
 
@@ -94636,7 +93850,7 @@ export const proto = $root.proto = (() => {
94636
93850
  }
94637
93851
 
94638
93852
  AgentAction.prototype.name = null;
94639
- AgentAction.prototype.deviceId = null;
93853
+ AgentAction.prototype.deviceID = null;
94640
93854
  AgentAction.prototype.isDeleted = null;
94641
93855
 
94642
93856
  let $oneOfFields;
@@ -94648,8 +93862,8 @@ export const proto = $root.proto = (() => {
94648
93862
  });
94649
93863
 
94650
93864
  // Virtual OneOf for proto3 optional field
94651
- Object.defineProperty(AgentAction.prototype, "_deviceId", {
94652
- get: $util.oneOfGetter($oneOfFields = ["deviceId"]),
93865
+ Object.defineProperty(AgentAction.prototype, "_deviceID", {
93866
+ get: $util.oneOfGetter($oneOfFields = ["deviceID"]),
94653
93867
  set: $util.oneOfSetter($oneOfFields)
94654
93868
  });
94655
93869
 
@@ -94668,8 +93882,8 @@ export const proto = $root.proto = (() => {
94668
93882
  w = $Writer.create();
94669
93883
  if (m.name != null && Object.hasOwnProperty.call(m, "name"))
94670
93884
  w.uint32(10).string(m.name);
94671
- if (m.deviceId != null && Object.hasOwnProperty.call(m, "deviceId"))
94672
- w.uint32(16).int32(m.deviceId);
93885
+ if (m.deviceID != null && Object.hasOwnProperty.call(m, "deviceID"))
93886
+ w.uint32(16).int32(m.deviceID);
94673
93887
  if (m.isDeleted != null && Object.hasOwnProperty.call(m, "isDeleted"))
94674
93888
  w.uint32(24).bool(m.isDeleted);
94675
93889
  return w;
@@ -94693,7 +93907,7 @@ export const proto = $root.proto = (() => {
94693
93907
  break;
94694
93908
  }
94695
93909
  case 2: {
94696
- m.deviceId = r.int32();
93910
+ m.deviceID = r.int32();
94697
93911
  break;
94698
93912
  }
94699
93913
  case 3: {
@@ -94719,8 +93933,8 @@ export const proto = $root.proto = (() => {
94719
93933
  if (d.name != null) {
94720
93934
  m.name = String(d.name);
94721
93935
  }
94722
- if (d.deviceId != null) {
94723
- m.deviceId = d.deviceId | 0;
93936
+ if (d.deviceID != null) {
93937
+ m.deviceID = d.deviceID | 0;
94724
93938
  }
94725
93939
  if (d.isDeleted != null) {
94726
93940
  m.isDeleted = Boolean(d.isDeleted);
@@ -94737,10 +93951,10 @@ export const proto = $root.proto = (() => {
94737
93951
  if (o.oneofs)
94738
93952
  d._name = "name";
94739
93953
  }
94740
- if (m.deviceId != null && m.hasOwnProperty("deviceId")) {
94741
- d.deviceId = m.deviceId;
93954
+ if (m.deviceID != null && m.hasOwnProperty("deviceID")) {
93955
+ d.deviceID = m.deviceID;
94742
93956
  if (o.oneofs)
94743
- d._deviceId = "deviceId";
93957
+ d._deviceID = "deviceID";
94744
93958
  }
94745
93959
  if (m.isDeleted != null && m.hasOwnProperty("isDeleted")) {
94746
93960
  d.isDeleted = m.isDeleted;
@@ -96627,13 +95841,13 @@ export const proto = $root.proto = (() => {
96627
95841
  this[ks[i]] = p[ks[i]];
96628
95842
  }
96629
95843
 
96630
- ChatAssignmentAction.prototype.deviceAgentId = null;
95844
+ ChatAssignmentAction.prototype.deviceAgentID = null;
96631
95845
 
96632
95846
  let $oneOfFields;
96633
95847
 
96634
95848
  // Virtual OneOf for proto3 optional field
96635
- Object.defineProperty(ChatAssignmentAction.prototype, "_deviceAgentId", {
96636
- get: $util.oneOfGetter($oneOfFields = ["deviceAgentId"]),
95849
+ Object.defineProperty(ChatAssignmentAction.prototype, "_deviceAgentID", {
95850
+ get: $util.oneOfGetter($oneOfFields = ["deviceAgentID"]),
96637
95851
  set: $util.oneOfSetter($oneOfFields)
96638
95852
  });
96639
95853
 
@@ -96644,8 +95858,8 @@ export const proto = $root.proto = (() => {
96644
95858
  ChatAssignmentAction.encode = function encode(m, w) {
96645
95859
  if (!w)
96646
95860
  w = $Writer.create();
96647
- if (m.deviceAgentId != null && Object.hasOwnProperty.call(m, "deviceAgentId"))
96648
- w.uint32(10).string(m.deviceAgentId);
95861
+ if (m.deviceAgentID != null && Object.hasOwnProperty.call(m, "deviceAgentID"))
95862
+ w.uint32(10).string(m.deviceAgentID);
96649
95863
  return w;
96650
95864
  };
96651
95865
 
@@ -96663,7 +95877,7 @@ export const proto = $root.proto = (() => {
96663
95877
  break;
96664
95878
  switch (t >>> 3) {
96665
95879
  case 1: {
96666
- m.deviceAgentId = r.string();
95880
+ m.deviceAgentID = r.string();
96667
95881
  break;
96668
95882
  }
96669
95883
  default:
@@ -96682,8 +95896,8 @@ export const proto = $root.proto = (() => {
96682
95896
  if (n > $util.recursionLimit)
96683
95897
  throw Error("maximum nesting depth exceeded");
96684
95898
  var m = new $root.proto.SyncActionValue.ChatAssignmentAction();
96685
- if (d.deviceAgentId != null) {
96686
- m.deviceAgentId = String(d.deviceAgentId);
95899
+ if (d.deviceAgentID != null) {
95900
+ m.deviceAgentID = String(d.deviceAgentID);
96687
95901
  }
96688
95902
  return m;
96689
95903
  };
@@ -96692,10 +95906,10 @@ export const proto = $root.proto = (() => {
96692
95906
  if (!o)
96693
95907
  o = {};
96694
95908
  var d = {};
96695
- if (m.deviceAgentId != null && m.hasOwnProperty("deviceAgentId")) {
96696
- d.deviceAgentId = m.deviceAgentId;
95909
+ if (m.deviceAgentID != null && m.hasOwnProperty("deviceAgentID")) {
95910
+ d.deviceAgentID = m.deviceAgentID;
96697
95911
  if (o.oneofs)
96698
- d._deviceAgentId = "deviceAgentId";
95912
+ d._deviceAgentID = "deviceAgentID";
96699
95913
  }
96700
95914
  return d;
96701
95915
  };
@@ -96908,112 +96122,6 @@ export const proto = $root.proto = (() => {
96908
96122
  return ClearChatAction;
96909
96123
  })();
96910
96124
 
96911
- SyncActionValue.CoexV2VersionAction = (function() {
96912
-
96913
- function CoexV2VersionAction(p) {
96914
- if (p)
96915
- for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
96916
- if (p[ks[i]] != null && ks[i] !== "__proto__")
96917
- this[ks[i]] = p[ks[i]];
96918
- }
96919
-
96920
- CoexV2VersionAction.prototype.version = null;
96921
-
96922
- let $oneOfFields;
96923
-
96924
- // Virtual OneOf for proto3 optional field
96925
- Object.defineProperty(CoexV2VersionAction.prototype, "_version", {
96926
- get: $util.oneOfGetter($oneOfFields = ["version"]),
96927
- set: $util.oneOfSetter($oneOfFields)
96928
- });
96929
-
96930
- CoexV2VersionAction.create = function create(properties) {
96931
- return new CoexV2VersionAction(properties);
96932
- };
96933
-
96934
- CoexV2VersionAction.encode = function encode(m, w) {
96935
- if (!w)
96936
- w = $Writer.create();
96937
- if (m.version != null && Object.hasOwnProperty.call(m, "version"))
96938
- w.uint32(8).uint64(m.version);
96939
- return w;
96940
- };
96941
-
96942
- CoexV2VersionAction.decode = function decode(r, l, e, n) {
96943
- if (!(r instanceof $Reader))
96944
- r = $Reader.create(r);
96945
- if (n === undefined)
96946
- n = 0;
96947
- if (n > $Reader.recursionLimit)
96948
- throw Error("maximum nesting depth exceeded");
96949
- var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.SyncActionValue.CoexV2VersionAction();
96950
- while (r.pos < c) {
96951
- var t = r.uint32();
96952
- if (t === e)
96953
- break;
96954
- switch (t >>> 3) {
96955
- case 1: {
96956
- m.version = r.uint64();
96957
- break;
96958
- }
96959
- default:
96960
- r.skipType(t & 7, n);
96961
- break;
96962
- }
96963
- }
96964
- return m;
96965
- };
96966
-
96967
- CoexV2VersionAction.fromObject = function fromObject(d, n) {
96968
- if (d instanceof $root.proto.SyncActionValue.CoexV2VersionAction)
96969
- return d;
96970
- if (n === undefined)
96971
- n = 0;
96972
- if (n > $util.recursionLimit)
96973
- throw Error("maximum nesting depth exceeded");
96974
- var m = new $root.proto.SyncActionValue.CoexV2VersionAction();
96975
- if (d.version != null) {
96976
- if ($util.Long)
96977
- (m.version = $util.Long.fromValue(d.version)).unsigned = true;
96978
- else if (typeof d.version === "string")
96979
- m.version = parseInt(d.version, 10);
96980
- else if (typeof d.version === "number")
96981
- m.version = d.version;
96982
- else if (typeof d.version === "object")
96983
- m.version = new $util.LongBits(d.version.low >>> 0, d.version.high >>> 0).toNumber(true);
96984
- }
96985
- return m;
96986
- };
96987
-
96988
- CoexV2VersionAction.toObject = function toObject(m, o) {
96989
- if (!o)
96990
- o = {};
96991
- var d = {};
96992
- if (m.version != null && m.hasOwnProperty("version")) {
96993
- if (typeof m.version === "number")
96994
- d.version = o.longs === String ? String(m.version) : m.version;
96995
- else
96996
- d.version = o.longs === String ? longToString(m.version, true) : o.longs === Number ? longToNumber(m.version, true) : m.version;
96997
- if (o.oneofs)
96998
- d._version = "version";
96999
- }
97000
- return d;
97001
- };
97002
-
97003
- CoexV2VersionAction.prototype.toJSON = function toJSON() {
97004
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
97005
- };
97006
-
97007
- CoexV2VersionAction.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
97008
- if (typeUrlPrefix === undefined) {
97009
- typeUrlPrefix = "type.googleapis.com";
97010
- }
97011
- return typeUrlPrefix + "/proto.SyncActionValue.CoexV2VersionAction";
97012
- };
97013
-
97014
- return CoexV2VersionAction;
97015
- })();
97016
-
97017
96125
  SyncActionValue.ContactAction = (function() {
97018
96126
 
97019
96127
  function ContactAction(p) {
@@ -98972,6 +98080,7 @@ export const proto = $root.proto = (() => {
98972
98080
  SyncActionValue.LabelAssociationAction = (function() {
98973
98081
 
98974
98082
  function LabelAssociationAction(p) {
98083
+ this.modelMetaData = [];
98975
98084
  if (p)
98976
98085
  for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
98977
98086
  if (p[ks[i]] != null && ks[i] !== "__proto__")
@@ -98979,7 +98088,7 @@ export const proto = $root.proto = (() => {
98979
98088
  }
98980
98089
 
98981
98090
  LabelAssociationAction.prototype.labeled = null;
98982
- LabelAssociationAction.prototype.modelMetaData = null;
98091
+ LabelAssociationAction.prototype.modelMetaData = $util.emptyArray;
98983
98092
 
98984
98093
  let $oneOfFields;
98985
98094
 
@@ -98989,12 +98098,6 @@ export const proto = $root.proto = (() => {
98989
98098
  set: $util.oneOfSetter($oneOfFields)
98990
98099
  });
98991
98100
 
98992
- // Virtual OneOf for proto3 optional field
98993
- Object.defineProperty(LabelAssociationAction.prototype, "_modelMetaData", {
98994
- get: $util.oneOfGetter($oneOfFields = ["modelMetaData"]),
98995
- set: $util.oneOfSetter($oneOfFields)
98996
- });
98997
-
98998
98101
  LabelAssociationAction.create = function create(properties) {
98999
98102
  return new LabelAssociationAction(properties);
99000
98103
  };
@@ -99004,8 +98107,10 @@ export const proto = $root.proto = (() => {
99004
98107
  w = $Writer.create();
99005
98108
  if (m.labeled != null && Object.hasOwnProperty.call(m, "labeled"))
99006
98109
  w.uint32(8).bool(m.labeled);
99007
- if (m.modelMetaData != null && Object.hasOwnProperty.call(m, "modelMetaData"))
99008
- w.uint32(18).string(m.modelMetaData);
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
+ }
99009
98114
  return w;
99010
98115
  };
99011
98116
 
@@ -99027,7 +98132,9 @@ export const proto = $root.proto = (() => {
99027
98132
  break;
99028
98133
  }
99029
98134
  case 2: {
99030
- m.modelMetaData = r.string();
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));
99031
98138
  break;
99032
98139
  }
99033
98140
  default:
@@ -99049,8 +98156,15 @@ export const proto = $root.proto = (() => {
99049
98156
  if (d.labeled != null) {
99050
98157
  m.labeled = Boolean(d.labeled);
99051
98158
  }
99052
- if (d.modelMetaData != null) {
99053
- m.modelMetaData = String(d.modelMetaData);
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
+ }
99054
98168
  }
99055
98169
  return m;
99056
98170
  };
@@ -99059,15 +98173,19 @@ export const proto = $root.proto = (() => {
99059
98173
  if (!o)
99060
98174
  o = {};
99061
98175
  var d = {};
98176
+ if (o.arrays || o.defaults) {
98177
+ d.modelMetaData = [];
98178
+ }
99062
98179
  if (m.labeled != null && m.hasOwnProperty("labeled")) {
99063
98180
  d.labeled = m.labeled;
99064
98181
  if (o.oneofs)
99065
98182
  d._labeled = "labeled";
99066
98183
  }
99067
- if (m.modelMetaData != null && m.hasOwnProperty("modelMetaData")) {
99068
- d.modelMetaData = m.modelMetaData;
99069
- if (o.oneofs)
99070
- d._modelMetaData = "modelMetaData";
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
+ }
99071
98189
  }
99072
98190
  return d;
99073
98191
  };
@@ -99899,7 +99017,6 @@ export const proto = $root.proto = (() => {
99899
99017
  }
99900
99018
 
99901
99019
  MaibaAIFeaturesControlAction.prototype.aiFeatureStatus = null;
99902
- MaibaAIFeaturesControlAction.prototype.aiReplyMode = null;
99903
99020
 
99904
99021
  let $oneOfFields;
99905
99022
 
@@ -99909,12 +99026,6 @@ export const proto = $root.proto = (() => {
99909
99026
  set: $util.oneOfSetter($oneOfFields)
99910
99027
  });
99911
99028
 
99912
- // Virtual OneOf for proto3 optional field
99913
- Object.defineProperty(MaibaAIFeaturesControlAction.prototype, "_aiReplyMode", {
99914
- get: $util.oneOfGetter($oneOfFields = ["aiReplyMode"]),
99915
- set: $util.oneOfSetter($oneOfFields)
99916
- });
99917
-
99918
99029
  MaibaAIFeaturesControlAction.create = function create(properties) {
99919
99030
  return new MaibaAIFeaturesControlAction(properties);
99920
99031
  };
@@ -99924,8 +99035,6 @@ export const proto = $root.proto = (() => {
99924
99035
  w = $Writer.create();
99925
99036
  if (m.aiFeatureStatus != null && Object.hasOwnProperty.call(m, "aiFeatureStatus"))
99926
99037
  w.uint32(8).int32(m.aiFeatureStatus);
99927
- if (m.aiReplyMode != null && Object.hasOwnProperty.call(m, "aiReplyMode"))
99928
- w.uint32(16).int32(m.aiReplyMode);
99929
99038
  return w;
99930
99039
  };
99931
99040
 
@@ -99946,10 +99055,6 @@ export const proto = $root.proto = (() => {
99946
99055
  m.aiFeatureStatus = r.int32();
99947
99056
  break;
99948
99057
  }
99949
- case 2: {
99950
- m.aiReplyMode = r.int32();
99951
- break;
99952
- }
99953
99058
  default:
99954
99059
  r.skipType(t & 7, n);
99955
99060
  break;
@@ -99986,26 +99091,6 @@ export const proto = $root.proto = (() => {
99986
99091
  m.aiFeatureStatus = 2;
99987
99092
  break;
99988
99093
  }
99989
- switch (d.aiReplyMode) {
99990
- default:
99991
- if (typeof d.aiReplyMode === "number") {
99992
- m.aiReplyMode = d.aiReplyMode;
99993
- break;
99994
- }
99995
- break;
99996
- case "MUTED":
99997
- case 0:
99998
- m.aiReplyMode = 0;
99999
- break;
100000
- case "AI_AGENT":
100001
- case 1:
100002
- m.aiReplyMode = 1;
100003
- break;
100004
- case "SUGGESTIONS":
100005
- case 2:
100006
- m.aiReplyMode = 2;
100007
- break;
100008
- }
100009
99094
  return m;
100010
99095
  };
100011
99096
 
@@ -100018,11 +99103,6 @@ export const proto = $root.proto = (() => {
100018
99103
  if (o.oneofs)
100019
99104
  d._aiFeatureStatus = "aiFeatureStatus";
100020
99105
  }
100021
- if (m.aiReplyMode != null && m.hasOwnProperty("aiReplyMode")) {
100022
- d.aiReplyMode = o.enums === String ? $root.proto.SyncActionValue.MaibaAIFeaturesControlAction.MaibaAIReplyMode[m.aiReplyMode] === undefined ? m.aiReplyMode : $root.proto.SyncActionValue.MaibaAIFeaturesControlAction.MaibaAIReplyMode[m.aiReplyMode] : m.aiReplyMode;
100023
- if (o.oneofs)
100024
- d._aiReplyMode = "aiReplyMode";
100025
- }
100026
99106
  return d;
100027
99107
  };
100028
99108
 
@@ -100045,14 +99125,6 @@ export const proto = $root.proto = (() => {
100045
99125
  return values;
100046
99126
  })();
100047
99127
 
100048
- MaibaAIFeaturesControlAction.MaibaAIReplyMode = (function() {
100049
- const valuesById = {}, values = Object.create(valuesById);
100050
- values[valuesById[0] = "MUTED"] = 0;
100051
- values[valuesById[1] = "AI_AGENT"] = 1;
100052
- values[valuesById[2] = "SUGGESTIONS"] = 2;
100053
- return values;
100054
- })();
100055
-
100056
99128
  return MaibaAIFeaturesControlAction;
100057
99129
  })();
100058
99130
 
@@ -100695,6 +99767,144 @@ export const proto = $root.proto = (() => {
100695
99767
  return MerchantPaymentPartnerAction;
100696
99768
  })();
100697
99769
 
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
+
100698
99908
  SyncActionValue.MusicUserIdAction = (function() {
100699
99909
 
100700
99910
  function MusicUserIdAction(p) {
@@ -104401,8 +103611,8 @@ export const proto = $root.proto = (() => {
104401
103611
 
104402
103612
  StatusPrivacyAction.prototype.mode = null;
104403
103613
  StatusPrivacyAction.prototype.userJid = $util.emptyArray;
104404
- StatusPrivacyAction.prototype.shareToFb = null;
104405
- StatusPrivacyAction.prototype.shareToIg = null;
103614
+ StatusPrivacyAction.prototype.shareToFB = null;
103615
+ StatusPrivacyAction.prototype.shareToIG = null;
104406
103616
  StatusPrivacyAction.prototype.customLists = $util.emptyArray;
104407
103617
  StatusPrivacyAction.prototype.modes = $util.emptyArray;
104408
103618
 
@@ -104415,14 +103625,14 @@ export const proto = $root.proto = (() => {
104415
103625
  });
104416
103626
 
104417
103627
  // Virtual OneOf for proto3 optional field
104418
- Object.defineProperty(StatusPrivacyAction.prototype, "_shareToFb", {
104419
- get: $util.oneOfGetter($oneOfFields = ["shareToFb"]),
103628
+ Object.defineProperty(StatusPrivacyAction.prototype, "_shareToFB", {
103629
+ get: $util.oneOfGetter($oneOfFields = ["shareToFB"]),
104420
103630
  set: $util.oneOfSetter($oneOfFields)
104421
103631
  });
104422
103632
 
104423
103633
  // Virtual OneOf for proto3 optional field
104424
- Object.defineProperty(StatusPrivacyAction.prototype, "_shareToIg", {
104425
- get: $util.oneOfGetter($oneOfFields = ["shareToIg"]),
103634
+ Object.defineProperty(StatusPrivacyAction.prototype, "_shareToIG", {
103635
+ get: $util.oneOfGetter($oneOfFields = ["shareToIG"]),
104426
103636
  set: $util.oneOfSetter($oneOfFields)
104427
103637
  });
104428
103638
 
@@ -104439,10 +103649,10 @@ export const proto = $root.proto = (() => {
104439
103649
  for (var i = 0; i < m.userJid.length; ++i)
104440
103650
  w.uint32(18).string(m.userJid[i]);
104441
103651
  }
104442
- if (m.shareToFb != null && Object.hasOwnProperty.call(m, "shareToFb"))
104443
- w.uint32(24).bool(m.shareToFb);
104444
- if (m.shareToIg != null && Object.hasOwnProperty.call(m, "shareToIg"))
104445
- w.uint32(32).bool(m.shareToIg);
103652
+ if (m.shareToFB != null && Object.hasOwnProperty.call(m, "shareToFB"))
103653
+ w.uint32(24).bool(m.shareToFB);
103654
+ if (m.shareToIG != null && Object.hasOwnProperty.call(m, "shareToIG"))
103655
+ w.uint32(32).bool(m.shareToIG);
104446
103656
  if (m.customLists != null && m.customLists.length) {
104447
103657
  for (var i = 0; i < m.customLists.length; ++i)
104448
103658
  $root.proto.SyncActionValue.StatusPrivacyAction.CustomList.encode(m.customLists[i], w.uint32(42).fork()).ldelim();
@@ -104480,11 +103690,11 @@ export const proto = $root.proto = (() => {
104480
103690
  break;
104481
103691
  }
104482
103692
  case 3: {
104483
- m.shareToFb = r.bool();
103693
+ m.shareToFB = r.bool();
104484
103694
  break;
104485
103695
  }
104486
103696
  case 4: {
104487
- m.shareToIg = r.bool();
103697
+ m.shareToIG = r.bool();
104488
103698
  break;
104489
103699
  }
104490
103700
  case 5: {
@@ -104556,11 +103766,11 @@ export const proto = $root.proto = (() => {
104556
103766
  m.userJid[i] = String(d.userJid[i]);
104557
103767
  }
104558
103768
  }
104559
- if (d.shareToFb != null) {
104560
- m.shareToFb = Boolean(d.shareToFb);
103769
+ if (d.shareToFB != null) {
103770
+ m.shareToFB = Boolean(d.shareToFB);
104561
103771
  }
104562
- if (d.shareToIg != null) {
104563
- m.shareToIg = Boolean(d.shareToIg);
103772
+ if (d.shareToIG != null) {
103773
+ m.shareToIG = Boolean(d.shareToIG);
104564
103774
  }
104565
103775
  if (d.customLists) {
104566
103776
  if (!Array.isArray(d.customLists))
@@ -104629,15 +103839,15 @@ export const proto = $root.proto = (() => {
104629
103839
  d.userJid[j] = m.userJid[j];
104630
103840
  }
104631
103841
  }
104632
- if (m.shareToFb != null && m.hasOwnProperty("shareToFb")) {
104633
- d.shareToFb = m.shareToFb;
103842
+ if (m.shareToFB != null && m.hasOwnProperty("shareToFB")) {
103843
+ d.shareToFB = m.shareToFB;
104634
103844
  if (o.oneofs)
104635
- d._shareToFb = "shareToFb";
103845
+ d._shareToFB = "shareToFB";
104636
103846
  }
104637
- if (m.shareToIg != null && m.hasOwnProperty("shareToIg")) {
104638
- d.shareToIg = m.shareToIg;
103847
+ if (m.shareToIG != null && m.hasOwnProperty("shareToIG")) {
103848
+ d.shareToIG = m.shareToIG;
104639
103849
  if (o.oneofs)
104640
- d._shareToIg = "shareToIg";
103850
+ d._shareToIG = "shareToIG";
104641
103851
  }
104642
103852
  if (m.customLists && m.customLists.length) {
104643
103853
  d.customLists = [];
@@ -106849,261 +106059,6 @@ export const proto = $root.proto = (() => {
106849
106059
  return UsernameChatStartModeAction;
106850
106060
  })();
106851
106061
 
106852
- SyncActionValue.WASARootSecretAction = (function() {
106853
-
106854
- function WASARootSecretAction(p) {
106855
- this.secrets = [];
106856
- if (p)
106857
- for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
106858
- if (p[ks[i]] != null && ks[i] !== "__proto__")
106859
- this[ks[i]] = p[ks[i]];
106860
- }
106861
-
106862
- WASARootSecretAction.prototype.secrets = $util.emptyArray;
106863
-
106864
- WASARootSecretAction.create = function create(properties) {
106865
- return new WASARootSecretAction(properties);
106866
- };
106867
-
106868
- WASARootSecretAction.encode = function encode(m, w) {
106869
- if (!w)
106870
- w = $Writer.create();
106871
- if (m.secrets != null && m.secrets.length) {
106872
- for (var i = 0; i < m.secrets.length; ++i)
106873
- $root.proto.SyncActionValue.WASARootSecretAction.RootSecretEntry.encode(m.secrets[i], w.uint32(10).fork()).ldelim();
106874
- }
106875
- return w;
106876
- };
106877
-
106878
- WASARootSecretAction.decode = function decode(r, l, e, n) {
106879
- if (!(r instanceof $Reader))
106880
- r = $Reader.create(r);
106881
- if (n === undefined)
106882
- n = 0;
106883
- if (n > $Reader.recursionLimit)
106884
- throw Error("maximum nesting depth exceeded");
106885
- var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.SyncActionValue.WASARootSecretAction();
106886
- while (r.pos < c) {
106887
- var t = r.uint32();
106888
- if (t === e)
106889
- break;
106890
- switch (t >>> 3) {
106891
- case 1: {
106892
- if (!(m.secrets && m.secrets.length))
106893
- m.secrets = [];
106894
- m.secrets.push($root.proto.SyncActionValue.WASARootSecretAction.RootSecretEntry.decode(r, r.uint32(), undefined, n + 1));
106895
- break;
106896
- }
106897
- default:
106898
- r.skipType(t & 7, n);
106899
- break;
106900
- }
106901
- }
106902
- return m;
106903
- };
106904
-
106905
- WASARootSecretAction.fromObject = function fromObject(d, n) {
106906
- if (d instanceof $root.proto.SyncActionValue.WASARootSecretAction)
106907
- return d;
106908
- if (n === undefined)
106909
- n = 0;
106910
- if (n > $util.recursionLimit)
106911
- throw Error("maximum nesting depth exceeded");
106912
- var m = new $root.proto.SyncActionValue.WASARootSecretAction();
106913
- if (d.secrets) {
106914
- if (!Array.isArray(d.secrets))
106915
- throw TypeError(".proto.SyncActionValue.WASARootSecretAction.secrets: array expected");
106916
- m.secrets = [];
106917
- for (var i = 0; i < d.secrets.length; ++i) {
106918
- if (typeof d.secrets[i] !== "object")
106919
- throw TypeError(".proto.SyncActionValue.WASARootSecretAction.secrets: object expected");
106920
- m.secrets[i] = $root.proto.SyncActionValue.WASARootSecretAction.RootSecretEntry.fromObject(d.secrets[i], n + 1);
106921
- }
106922
- }
106923
- return m;
106924
- };
106925
-
106926
- WASARootSecretAction.toObject = function toObject(m, o) {
106927
- if (!o)
106928
- o = {};
106929
- var d = {};
106930
- if (o.arrays || o.defaults) {
106931
- d.secrets = [];
106932
- }
106933
- if (m.secrets && m.secrets.length) {
106934
- d.secrets = [];
106935
- for (var j = 0; j < m.secrets.length; ++j) {
106936
- d.secrets[j] = $root.proto.SyncActionValue.WASARootSecretAction.RootSecretEntry.toObject(m.secrets[j], o);
106937
- }
106938
- }
106939
- return d;
106940
- };
106941
-
106942
- WASARootSecretAction.prototype.toJSON = function toJSON() {
106943
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
106944
- };
106945
-
106946
- WASARootSecretAction.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
106947
- if (typeUrlPrefix === undefined) {
106948
- typeUrlPrefix = "type.googleapis.com";
106949
- }
106950
- return typeUrlPrefix + "/proto.SyncActionValue.WASARootSecretAction";
106951
- };
106952
-
106953
- WASARootSecretAction.RootSecretEntry = (function() {
106954
-
106955
- function RootSecretEntry(p) {
106956
- if (p)
106957
- for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
106958
- if (p[ks[i]] != null && ks[i] !== "__proto__")
106959
- this[ks[i]] = p[ks[i]];
106960
- }
106961
-
106962
- RootSecretEntry.prototype.id = null;
106963
- RootSecretEntry.prototype.rootSecret = null;
106964
- RootSecretEntry.prototype.epoch = null;
106965
-
106966
- let $oneOfFields;
106967
-
106968
- // Virtual OneOf for proto3 optional field
106969
- Object.defineProperty(RootSecretEntry.prototype, "_id", {
106970
- get: $util.oneOfGetter($oneOfFields = ["id"]),
106971
- set: $util.oneOfSetter($oneOfFields)
106972
- });
106973
-
106974
- // Virtual OneOf for proto3 optional field
106975
- Object.defineProperty(RootSecretEntry.prototype, "_rootSecret", {
106976
- get: $util.oneOfGetter($oneOfFields = ["rootSecret"]),
106977
- set: $util.oneOfSetter($oneOfFields)
106978
- });
106979
-
106980
- // Virtual OneOf for proto3 optional field
106981
- Object.defineProperty(RootSecretEntry.prototype, "_epoch", {
106982
- get: $util.oneOfGetter($oneOfFields = ["epoch"]),
106983
- set: $util.oneOfSetter($oneOfFields)
106984
- });
106985
-
106986
- RootSecretEntry.create = function create(properties) {
106987
- return new RootSecretEntry(properties);
106988
- };
106989
-
106990
- RootSecretEntry.encode = function encode(m, w) {
106991
- if (!w)
106992
- w = $Writer.create();
106993
- if (m.id != null && Object.hasOwnProperty.call(m, "id"))
106994
- w.uint32(10).string(m.id);
106995
- if (m.rootSecret != null && Object.hasOwnProperty.call(m, "rootSecret"))
106996
- w.uint32(18).bytes(m.rootSecret);
106997
- if (m.epoch != null && Object.hasOwnProperty.call(m, "epoch"))
106998
- w.uint32(24).int64(m.epoch);
106999
- return w;
107000
- };
107001
-
107002
- RootSecretEntry.decode = function decode(r, l, e, n) {
107003
- if (!(r instanceof $Reader))
107004
- r = $Reader.create(r);
107005
- if (n === undefined)
107006
- n = 0;
107007
- if (n > $Reader.recursionLimit)
107008
- throw Error("maximum nesting depth exceeded");
107009
- var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.SyncActionValue.WASARootSecretAction.RootSecretEntry();
107010
- while (r.pos < c) {
107011
- var t = r.uint32();
107012
- if (t === e)
107013
- break;
107014
- switch (t >>> 3) {
107015
- case 1: {
107016
- m.id = r.string();
107017
- break;
107018
- }
107019
- case 2: {
107020
- m.rootSecret = r.bytes();
107021
- break;
107022
- }
107023
- case 3: {
107024
- m.epoch = r.int64();
107025
- break;
107026
- }
107027
- default:
107028
- r.skipType(t & 7, n);
107029
- break;
107030
- }
107031
- }
107032
- return m;
107033
- };
107034
-
107035
- RootSecretEntry.fromObject = function fromObject(d, n) {
107036
- if (d instanceof $root.proto.SyncActionValue.WASARootSecretAction.RootSecretEntry)
107037
- return d;
107038
- if (n === undefined)
107039
- n = 0;
107040
- if (n > $util.recursionLimit)
107041
- throw Error("maximum nesting depth exceeded");
107042
- var m = new $root.proto.SyncActionValue.WASARootSecretAction.RootSecretEntry();
107043
- if (d.id != null) {
107044
- m.id = String(d.id);
107045
- }
107046
- if (d.rootSecret != null) {
107047
- if (typeof d.rootSecret === "string")
107048
- $util.base64.decode(d.rootSecret, m.rootSecret = $util.newBuffer($util.base64.length(d.rootSecret)), 0);
107049
- else if (d.rootSecret.length >= 0)
107050
- m.rootSecret = d.rootSecret;
107051
- }
107052
- if (d.epoch != null) {
107053
- if ($util.Long)
107054
- (m.epoch = $util.Long.fromValue(d.epoch)).unsigned = false;
107055
- else if (typeof d.epoch === "string")
107056
- m.epoch = parseInt(d.epoch, 10);
107057
- else if (typeof d.epoch === "number")
107058
- m.epoch = d.epoch;
107059
- else if (typeof d.epoch === "object")
107060
- m.epoch = new $util.LongBits(d.epoch.low >>> 0, d.epoch.high >>> 0).toNumber();
107061
- }
107062
- return m;
107063
- };
107064
-
107065
- RootSecretEntry.toObject = function toObject(m, o) {
107066
- if (!o)
107067
- o = {};
107068
- var d = {};
107069
- if (m.id != null && m.hasOwnProperty("id")) {
107070
- d.id = m.id;
107071
- if (o.oneofs)
107072
- d._id = "id";
107073
- }
107074
- if (m.rootSecret != null && m.hasOwnProperty("rootSecret")) {
107075
- d.rootSecret = o.bytes === String ? $util.base64.encode(m.rootSecret, 0, m.rootSecret.length) : o.bytes === Array ? Array.prototype.slice.call(m.rootSecret) : m.rootSecret;
107076
- if (o.oneofs)
107077
- d._rootSecret = "rootSecret";
107078
- }
107079
- if (m.epoch != null && m.hasOwnProperty("epoch")) {
107080
- if (typeof m.epoch === "number")
107081
- d.epoch = o.longs === String ? String(m.epoch) : m.epoch;
107082
- else
107083
- d.epoch = o.longs === String ? longToString(m.epoch) : o.longs === Number ? longToNumber(m.epoch) : m.epoch;
107084
- if (o.oneofs)
107085
- d._epoch = "epoch";
107086
- }
107087
- return d;
107088
- };
107089
-
107090
- RootSecretEntry.prototype.toJSON = function toJSON() {
107091
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
107092
- };
107093
-
107094
- RootSecretEntry.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
107095
- if (typeUrlPrefix === undefined) {
107096
- typeUrlPrefix = "type.googleapis.com";
107097
- }
107098
- return typeUrlPrefix + "/proto.SyncActionValue.WASARootSecretAction.RootSecretEntry";
107099
- };
107100
-
107101
- return RootSecretEntry;
107102
- })();
107103
-
107104
- return WASARootSecretAction;
107105
- })();
107106
-
107107
106062
  SyncActionValue.WaffleAccountLinkStateAction = (function() {
107108
106063
 
107109
106064
  function WaffleAccountLinkStateAction(p) {