@itsliaaa/baileys 0.1.16-beta.1 → 0.1.16-beta.2

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
@@ -6873,6 +6873,133 @@ export const proto = $root.proto = (() => {
6873
6873
  return BotCapabilityMetadata;
6874
6874
  })();
6875
6875
 
6876
+ proto.BotCommandMetadata = (function() {
6877
+
6878
+ function BotCommandMetadata(p) {
6879
+ if (p)
6880
+ for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
6881
+ if (p[ks[i]] != null)
6882
+ this[ks[i]] = p[ks[i]];
6883
+ }
6884
+
6885
+ BotCommandMetadata.prototype.commandName = null;
6886
+ BotCommandMetadata.prototype.commandDescription = null;
6887
+ BotCommandMetadata.prototype.commandPrompt = null;
6888
+
6889
+ let $oneOfFields;
6890
+
6891
+ Object.defineProperty(BotCommandMetadata.prototype, "_commandName", {
6892
+ get: $util.oneOfGetter($oneOfFields = ["commandName"]),
6893
+ set: $util.oneOfSetter($oneOfFields)
6894
+ });
6895
+
6896
+ Object.defineProperty(BotCommandMetadata.prototype, "_commandDescription", {
6897
+ get: $util.oneOfGetter($oneOfFields = ["commandDescription"]),
6898
+ set: $util.oneOfSetter($oneOfFields)
6899
+ });
6900
+
6901
+ Object.defineProperty(BotCommandMetadata.prototype, "_commandPrompt", {
6902
+ get: $util.oneOfGetter($oneOfFields = ["commandPrompt"]),
6903
+ set: $util.oneOfSetter($oneOfFields)
6904
+ });
6905
+
6906
+ BotCommandMetadata.create = function create(properties) {
6907
+ return new BotCommandMetadata(properties);
6908
+ };
6909
+
6910
+ BotCommandMetadata.encode = function encode(m, w) {
6911
+ if (!w)
6912
+ w = $Writer.create();
6913
+ if (m.commandName != null && Object.hasOwnProperty.call(m, "commandName"))
6914
+ w.uint32(10).string(m.commandName);
6915
+ if (m.commandDescription != null && Object.hasOwnProperty.call(m, "commandDescription"))
6916
+ w.uint32(18).string(m.commandDescription);
6917
+ if (m.commandPrompt != null && Object.hasOwnProperty.call(m, "commandPrompt"))
6918
+ w.uint32(26).string(m.commandPrompt);
6919
+ return w;
6920
+ };
6921
+
6922
+ BotCommandMetadata.decode = function decode(r, l, e) {
6923
+ if (!(r instanceof $Reader))
6924
+ r = $Reader.create(r);
6925
+ var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.BotCommandMetadata();
6926
+ while (r.pos < c) {
6927
+ var t = r.uint32();
6928
+ if (t === e)
6929
+ break;
6930
+ switch (t >>> 3) {
6931
+ case 1: {
6932
+ m.commandName = r.string();
6933
+ break;
6934
+ }
6935
+ case 2: {
6936
+ m.commandDescription = r.string();
6937
+ break;
6938
+ }
6939
+ case 3: {
6940
+ m.commandPrompt = r.string();
6941
+ break;
6942
+ }
6943
+ default:
6944
+ r.skipType(t & 7);
6945
+ break;
6946
+ }
6947
+ }
6948
+ return m;
6949
+ };
6950
+
6951
+ BotCommandMetadata.fromObject = function fromObject(d) {
6952
+ if (d instanceof $root.proto.BotCommandMetadata)
6953
+ return d;
6954
+ var m = new $root.proto.BotCommandMetadata();
6955
+ if (d.commandName != null) {
6956
+ m.commandName = String(d.commandName);
6957
+ }
6958
+ if (d.commandDescription != null) {
6959
+ m.commandDescription = String(d.commandDescription);
6960
+ }
6961
+ if (d.commandPrompt != null) {
6962
+ m.commandPrompt = String(d.commandPrompt);
6963
+ }
6964
+ return m;
6965
+ };
6966
+
6967
+ BotCommandMetadata.toObject = function toObject(m, o) {
6968
+ if (!o)
6969
+ o = {};
6970
+ var d = {};
6971
+ if (m.commandName != null && m.hasOwnProperty("commandName")) {
6972
+ d.commandName = m.commandName;
6973
+ if (o.oneofs)
6974
+ d._commandName = "commandName";
6975
+ }
6976
+ if (m.commandDescription != null && m.hasOwnProperty("commandDescription")) {
6977
+ d.commandDescription = m.commandDescription;
6978
+ if (o.oneofs)
6979
+ d._commandDescription = "commandDescription";
6980
+ }
6981
+ if (m.commandPrompt != null && m.hasOwnProperty("commandPrompt")) {
6982
+ d.commandPrompt = m.commandPrompt;
6983
+ if (o.oneofs)
6984
+ d._commandPrompt = "commandPrompt";
6985
+ }
6986
+ return d;
6987
+ };
6988
+
6989
+ BotCommandMetadata.prototype.toJSON = function toJSON() {
6990
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
6991
+ };
6992
+
6993
+ BotCommandMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
6994
+ if (typeUrlPrefix === undefined) {
6995
+ typeUrlPrefix = "type.googleapis.com";
6996
+ }
6997
+ return typeUrlPrefix + "/proto.BotCommandMetadata";
6998
+ };
6999
+
7000
+ return BotCommandMetadata;
7001
+ })();
7002
+
6876
7003
  proto.BotDocumentMessageMetadata = (function() {
6877
7004
 
6878
7005
  function BotDocumentMessageMetadata(p) {
@@ -10195,6 +10322,10 @@ export const proto = $root.proto = (() => {
10195
10322
  case 55:
10196
10323
  m.botEntryPointOrigin = 55;
10197
10324
  break;
10325
+ case "NEW_CHAT_LIST":
10326
+ case 56:
10327
+ m.botEntryPointOrigin = 56;
10328
+ break;
10198
10329
  }
10199
10330
  if (d.forwardScore != null) {
10200
10331
  m.forwardScore = d.forwardScore >>> 0;
@@ -10279,6 +10410,7 @@ export const proto = $root.proto = (() => {
10279
10410
  BotMetadata.prototype.botRenderingConfigMetadata = null;
10280
10411
  BotMetadata.prototype.botInfrastructureDiagnostics = null;
10281
10412
  BotMetadata.prototype.aiMediaCollectionMetadata = null;
10413
+ BotMetadata.prototype.commandMetadata = null;
10282
10414
  BotMetadata.prototype.internalMetadata = null;
10283
10415
 
10284
10416
  let $oneOfFields;
@@ -10468,6 +10600,11 @@ export const proto = $root.proto = (() => {
10468
10600
  set: $util.oneOfSetter($oneOfFields)
10469
10601
  });
10470
10602
 
10603
+ Object.defineProperty(BotMetadata.prototype, "_commandMetadata", {
10604
+ get: $util.oneOfGetter($oneOfFields = ["commandMetadata"]),
10605
+ set: $util.oneOfSetter($oneOfFields)
10606
+ });
10607
+
10471
10608
  Object.defineProperty(BotMetadata.prototype, "_internalMetadata", {
10472
10609
  get: $util.oneOfGetter($oneOfFields = ["internalMetadata"]),
10473
10610
  set: $util.oneOfSetter($oneOfFields)
@@ -10554,6 +10691,8 @@ export const proto = $root.proto = (() => {
10554
10691
  $root.proto.BotInfrastructureDiagnostics.encode(m.botInfrastructureDiagnostics, w.uint32(298).fork()).ldelim();
10555
10692
  if (m.aiMediaCollectionMetadata != null && Object.hasOwnProperty.call(m, "aiMediaCollectionMetadata"))
10556
10693
  $root.proto.AIMediaCollectionMetadata.encode(m.aiMediaCollectionMetadata, w.uint32(306).fork()).ldelim();
10694
+ if (m.commandMetadata != null && Object.hasOwnProperty.call(m, "commandMetadata"))
10695
+ $root.proto.BotCommandMetadata.encode(m.commandMetadata, w.uint32(314).fork()).ldelim();
10557
10696
  if (m.internalMetadata != null && Object.hasOwnProperty.call(m, "internalMetadata"))
10558
10697
  w.uint32(7994).bytes(m.internalMetadata);
10559
10698
  return w;
@@ -10716,6 +10855,10 @@ export const proto = $root.proto = (() => {
10716
10855
  m.aiMediaCollectionMetadata = $root.proto.AIMediaCollectionMetadata.decode(r, r.uint32());
10717
10856
  break;
10718
10857
  }
10858
+ case 39: {
10859
+ m.commandMetadata = $root.proto.BotCommandMetadata.decode(r, r.uint32());
10860
+ break;
10861
+ }
10719
10862
  case 999: {
10720
10863
  m.internalMetadata = r.bytes();
10721
10864
  break;
@@ -10906,6 +11049,11 @@ export const proto = $root.proto = (() => {
10906
11049
  throw TypeError(".proto.BotMetadata.aiMediaCollectionMetadata: object expected");
10907
11050
  m.aiMediaCollectionMetadata = $root.proto.AIMediaCollectionMetadata.fromObject(d.aiMediaCollectionMetadata);
10908
11051
  }
11052
+ if (d.commandMetadata != null) {
11053
+ if (typeof d.commandMetadata !== "object")
11054
+ throw TypeError(".proto.BotMetadata.commandMetadata: object expected");
11055
+ m.commandMetadata = $root.proto.BotCommandMetadata.fromObject(d.commandMetadata);
11056
+ }
10909
11057
  if (d.internalMetadata != null) {
10910
11058
  if (typeof d.internalMetadata === "string")
10911
11059
  $util.base64.decode(d.internalMetadata, m.internalMetadata = $util.newBuffer($util.base64.length(d.internalMetadata)), 0);
@@ -11104,6 +11252,11 @@ export const proto = $root.proto = (() => {
11104
11252
  if (o.oneofs)
11105
11253
  d._aiMediaCollectionMetadata = "aiMediaCollectionMetadata";
11106
11254
  }
11255
+ if (m.commandMetadata != null && m.hasOwnProperty("commandMetadata")) {
11256
+ d.commandMetadata = $root.proto.BotCommandMetadata.toObject(m.commandMetadata, o);
11257
+ if (o.oneofs)
11258
+ d._commandMetadata = "commandMetadata";
11259
+ }
11107
11260
  if (m.internalMetadata != null && m.hasOwnProperty("internalMetadata")) {
11108
11261
  d.internalMetadata = o.bytes === String ? $util.base64.encode(m.internalMetadata, 0, m.internalMetadata.length) : o.bytes === Array ? Array.prototype.slice.call(m.internalMetadata) : m.internalMetadata;
11109
11262
  if (o.oneofs)
@@ -11175,6 +11328,7 @@ export const proto = $root.proto = (() => {
11175
11328
  values[valuesById[47] = "WEB_NAVIGATION_BAR"] = 47;
11176
11329
  values[valuesById[54] = "GROUP_MEMBER"] = 54;
11177
11330
  values[valuesById[55] = "CHATLIST_SEARCH"] = 55;
11331
+ values[valuesById[56] = "NEW_CHAT_LIST"] = 56;
11178
11332
  return values;
11179
11333
  })();
11180
11334
 
@@ -11455,6 +11609,10 @@ export const proto = $root.proto = (() => {
11455
11609
  case 55:
11456
11610
  m.destinationEntryPoint = 55;
11457
11611
  break;
11612
+ case "NEW_CHAT_LIST":
11613
+ case 56:
11614
+ m.destinationEntryPoint = 56;
11615
+ break;
11458
11616
  }
11459
11617
  switch (d.threadOrigin) {
11460
11618
  default:
@@ -23469,6 +23627,10 @@ export const proto = $root.proto = (() => {
23469
23627
  ExternalAdReplyInfo.prototype.wtwaWebsiteUrl = null;
23470
23628
  ExternalAdReplyInfo.prototype.adPreviewUrl = null;
23471
23629
  ExternalAdReplyInfo.prototype.containsCtwaFlowsAutoReply = null;
23630
+ ExternalAdReplyInfo.prototype.agmThumbnailStrategy = null;
23631
+ ExternalAdReplyInfo.prototype.agmTitleStrategy = null;
23632
+ ExternalAdReplyInfo.prototype.agmSubtitleStrategy = null;
23633
+ ExternalAdReplyInfo.prototype.agmHeaderInteractionStrategy = null;
23472
23634
 
23473
23635
  let $oneOfFields;
23474
23636
 
@@ -23612,6 +23774,26 @@ export const proto = $root.proto = (() => {
23612
23774
  set: $util.oneOfSetter($oneOfFields)
23613
23775
  });
23614
23776
 
23777
+ Object.defineProperty(ExternalAdReplyInfo.prototype, "_agmThumbnailStrategy", {
23778
+ get: $util.oneOfGetter($oneOfFields = ["agmThumbnailStrategy"]),
23779
+ set: $util.oneOfSetter($oneOfFields)
23780
+ });
23781
+
23782
+ Object.defineProperty(ExternalAdReplyInfo.prototype, "_agmTitleStrategy", {
23783
+ get: $util.oneOfGetter($oneOfFields = ["agmTitleStrategy"]),
23784
+ set: $util.oneOfSetter($oneOfFields)
23785
+ });
23786
+
23787
+ Object.defineProperty(ExternalAdReplyInfo.prototype, "_agmSubtitleStrategy", {
23788
+ get: $util.oneOfGetter($oneOfFields = ["agmSubtitleStrategy"]),
23789
+ set: $util.oneOfSetter($oneOfFields)
23790
+ });
23791
+
23792
+ Object.defineProperty(ExternalAdReplyInfo.prototype, "_agmHeaderInteractionStrategy", {
23793
+ get: $util.oneOfGetter($oneOfFields = ["agmHeaderInteractionStrategy"]),
23794
+ set: $util.oneOfSetter($oneOfFields)
23795
+ });
23796
+
23615
23797
  ExternalAdReplyInfo.create = function create(properties) {
23616
23798
  return new ExternalAdReplyInfo(properties);
23617
23799
  };
@@ -23675,6 +23857,14 @@ export const proto = $root.proto = (() => {
23675
23857
  w.uint32(218).string(m.adPreviewUrl);
23676
23858
  if (m.containsCtwaFlowsAutoReply != null && Object.hasOwnProperty.call(m, "containsCtwaFlowsAutoReply"))
23677
23859
  w.uint32(224).bool(m.containsCtwaFlowsAutoReply);
23860
+ if (m.agmThumbnailStrategy != null && Object.hasOwnProperty.call(m, "agmThumbnailStrategy"))
23861
+ w.uint32(232).int32(m.agmThumbnailStrategy);
23862
+ if (m.agmTitleStrategy != null && Object.hasOwnProperty.call(m, "agmTitleStrategy"))
23863
+ w.uint32(240).int32(m.agmTitleStrategy);
23864
+ if (m.agmSubtitleStrategy != null && Object.hasOwnProperty.call(m, "agmSubtitleStrategy"))
23865
+ w.uint32(248).int32(m.agmSubtitleStrategy);
23866
+ if (m.agmHeaderInteractionStrategy != null && Object.hasOwnProperty.call(m, "agmHeaderInteractionStrategy"))
23867
+ w.uint32(256).int32(m.agmHeaderInteractionStrategy);
23678
23868
  return w;
23679
23869
  };
23680
23870
 
@@ -23799,6 +23989,22 @@ export const proto = $root.proto = (() => {
23799
23989
  m.containsCtwaFlowsAutoReply = r.bool();
23800
23990
  break;
23801
23991
  }
23992
+ case 29: {
23993
+ m.agmThumbnailStrategy = r.int32();
23994
+ break;
23995
+ }
23996
+ case 30: {
23997
+ m.agmTitleStrategy = r.int32();
23998
+ break;
23999
+ }
24000
+ case 31: {
24001
+ m.agmSubtitleStrategy = r.int32();
24002
+ break;
24003
+ }
24004
+ case 32: {
24005
+ m.agmHeaderInteractionStrategy = r.int32();
24006
+ break;
24007
+ }
23802
24008
  default:
23803
24009
  r.skipType(t & 7);
23804
24010
  break;
@@ -23928,6 +24134,18 @@ export const proto = $root.proto = (() => {
23928
24134
  if (d.containsCtwaFlowsAutoReply != null) {
23929
24135
  m.containsCtwaFlowsAutoReply = Boolean(d.containsCtwaFlowsAutoReply);
23930
24136
  }
24137
+ if (d.agmThumbnailStrategy != null) {
24138
+ m.agmThumbnailStrategy = d.agmThumbnailStrategy | 0;
24139
+ }
24140
+ if (d.agmTitleStrategy != null) {
24141
+ m.agmTitleStrategy = d.agmTitleStrategy | 0;
24142
+ }
24143
+ if (d.agmSubtitleStrategy != null) {
24144
+ m.agmSubtitleStrategy = d.agmSubtitleStrategy | 0;
24145
+ }
24146
+ if (d.agmHeaderInteractionStrategy != null) {
24147
+ m.agmHeaderInteractionStrategy = d.agmHeaderInteractionStrategy | 0;
24148
+ }
23931
24149
  return m;
23932
24150
  };
23933
24151
 
@@ -24075,6 +24293,26 @@ export const proto = $root.proto = (() => {
24075
24293
  if (o.oneofs)
24076
24294
  d._containsCtwaFlowsAutoReply = "containsCtwaFlowsAutoReply";
24077
24295
  }
24296
+ if (m.agmThumbnailStrategy != null && m.hasOwnProperty("agmThumbnailStrategy")) {
24297
+ d.agmThumbnailStrategy = m.agmThumbnailStrategy;
24298
+ if (o.oneofs)
24299
+ d._agmThumbnailStrategy = "agmThumbnailStrategy";
24300
+ }
24301
+ if (m.agmTitleStrategy != null && m.hasOwnProperty("agmTitleStrategy")) {
24302
+ d.agmTitleStrategy = m.agmTitleStrategy;
24303
+ if (o.oneofs)
24304
+ d._agmTitleStrategy = "agmTitleStrategy";
24305
+ }
24306
+ if (m.agmSubtitleStrategy != null && m.hasOwnProperty("agmSubtitleStrategy")) {
24307
+ d.agmSubtitleStrategy = m.agmSubtitleStrategy;
24308
+ if (o.oneofs)
24309
+ d._agmSubtitleStrategy = "agmSubtitleStrategy";
24310
+ }
24311
+ if (m.agmHeaderInteractionStrategy != null && m.hasOwnProperty("agmHeaderInteractionStrategy")) {
24312
+ d.agmHeaderInteractionStrategy = m.agmHeaderInteractionStrategy;
24313
+ if (o.oneofs)
24314
+ d._agmHeaderInteractionStrategy = "agmHeaderInteractionStrategy";
24315
+ }
24078
24316
  return d;
24079
24317
  };
24080
24318
 
@@ -26763,6 +27001,7 @@ export const proto = $root.proto = (() => {
26763
27001
  BusinessBroadcast.prototype.companionSupportEnabled = null;
26764
27002
  BusinessBroadcast.prototype.campaignSyncEnabled = null;
26765
27003
  BusinessBroadcast.prototype.insightsSyncEnabled = null;
27004
+ BusinessBroadcast.prototype.recipientLimit = null;
26766
27005
 
26767
27006
  let $oneOfFields;
26768
27007
 
@@ -26786,6 +27025,11 @@ export const proto = $root.proto = (() => {
26786
27025
  set: $util.oneOfSetter($oneOfFields)
26787
27026
  });
26788
27027
 
27028
+ Object.defineProperty(BusinessBroadcast.prototype, "_recipientLimit", {
27029
+ get: $util.oneOfGetter($oneOfFields = ["recipientLimit"]),
27030
+ set: $util.oneOfSetter($oneOfFields)
27031
+ });
27032
+
26789
27033
  BusinessBroadcast.create = function create(properties) {
26790
27034
  return new BusinessBroadcast(properties);
26791
27035
  };
@@ -26801,6 +27045,8 @@ export const proto = $root.proto = (() => {
26801
27045
  w.uint32(24).bool(m.campaignSyncEnabled);
26802
27046
  if (m.insightsSyncEnabled != null && Object.hasOwnProperty.call(m, "insightsSyncEnabled"))
26803
27047
  w.uint32(32).bool(m.insightsSyncEnabled);
27048
+ if (m.recipientLimit != null && Object.hasOwnProperty.call(m, "recipientLimit"))
27049
+ w.uint32(40).int32(m.recipientLimit);
26804
27050
  return w;
26805
27051
  };
26806
27052
 
@@ -26829,6 +27075,10 @@ export const proto = $root.proto = (() => {
26829
27075
  m.insightsSyncEnabled = r.bool();
26830
27076
  break;
26831
27077
  }
27078
+ case 5: {
27079
+ m.recipientLimit = r.int32();
27080
+ break;
27081
+ }
26832
27082
  default:
26833
27083
  r.skipType(t & 7);
26834
27084
  break;
@@ -26853,6 +27103,9 @@ export const proto = $root.proto = (() => {
26853
27103
  if (d.insightsSyncEnabled != null) {
26854
27104
  m.insightsSyncEnabled = Boolean(d.insightsSyncEnabled);
26855
27105
  }
27106
+ if (d.recipientLimit != null) {
27107
+ m.recipientLimit = d.recipientLimit | 0;
27108
+ }
26856
27109
  return m;
26857
27110
  };
26858
27111
 
@@ -26880,6 +27133,11 @@ export const proto = $root.proto = (() => {
26880
27133
  if (o.oneofs)
26881
27134
  d._insightsSyncEnabled = "insightsSyncEnabled";
26882
27135
  }
27136
+ if (m.recipientLimit != null && m.hasOwnProperty("recipientLimit")) {
27137
+ d.recipientLimit = m.recipientLimit;
27138
+ if (o.oneofs)
27139
+ d._recipientLimit = "recipientLimit";
27140
+ }
26883
27141
  return d;
26884
27142
  };
26885
27143
 
@@ -27962,6 +28220,7 @@ export const proto = $root.proto = (() => {
27962
28220
  DeviceProps.HistorySyncConfig = (function() {
27963
28221
 
27964
28222
  function HistorySyncConfig(p) {
28223
+ this.supportedBotChannelFbids = [];
27965
28224
  if (p)
27966
28225
  for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
27967
28226
  if (p[ks[i]] != null)
@@ -27990,6 +28249,8 @@ export const proto = $root.proto = (() => {
27990
28249
  HistorySyncConfig.prototype.initialSyncMaxMessagesPerChat = null;
27991
28250
  HistorySyncConfig.prototype.supportManusHistory = null;
27992
28251
  HistorySyncConfig.prototype.supportHatchHistory = null;
28252
+ HistorySyncConfig.prototype.supportedBotChannelFbids = $util.emptyArray;
28253
+ HistorySyncConfig.prototype.supportInlineContacts = null;
27993
28254
 
27994
28255
  let $oneOfFields;
27995
28256
 
@@ -28103,6 +28364,11 @@ export const proto = $root.proto = (() => {
28103
28364
  set: $util.oneOfSetter($oneOfFields)
28104
28365
  });
28105
28366
 
28367
+ Object.defineProperty(HistorySyncConfig.prototype, "_supportInlineContacts", {
28368
+ get: $util.oneOfGetter($oneOfFields = ["supportInlineContacts"]),
28369
+ set: $util.oneOfSetter($oneOfFields)
28370
+ });
28371
+
28106
28372
  HistorySyncConfig.create = function create(properties) {
28107
28373
  return new HistorySyncConfig(properties);
28108
28374
  };
@@ -28154,6 +28420,12 @@ export const proto = $root.proto = (() => {
28154
28420
  w.uint32(168).bool(m.supportManusHistory);
28155
28421
  if (m.supportHatchHistory != null && Object.hasOwnProperty.call(m, "supportHatchHistory"))
28156
28422
  w.uint32(176).bool(m.supportHatchHistory);
28423
+ if (m.supportedBotChannelFbids != null && m.supportedBotChannelFbids.length) {
28424
+ for (var i = 0; i < m.supportedBotChannelFbids.length; ++i)
28425
+ w.uint32(186).string(m.supportedBotChannelFbids[i]);
28426
+ }
28427
+ if (m.supportInlineContacts != null && Object.hasOwnProperty.call(m, "supportInlineContacts"))
28428
+ w.uint32(192).bool(m.supportInlineContacts);
28157
28429
  return w;
28158
28430
  };
28159
28431
 
@@ -28254,6 +28526,16 @@ export const proto = $root.proto = (() => {
28254
28526
  m.supportHatchHistory = r.bool();
28255
28527
  break;
28256
28528
  }
28529
+ case 23: {
28530
+ if (!(m.supportedBotChannelFbids && m.supportedBotChannelFbids.length))
28531
+ m.supportedBotChannelFbids = [];
28532
+ m.supportedBotChannelFbids.push(r.string());
28533
+ break;
28534
+ }
28535
+ case 24: {
28536
+ m.supportInlineContacts = r.bool();
28537
+ break;
28538
+ }
28257
28539
  default:
28258
28540
  r.skipType(t & 7);
28259
28541
  break;
@@ -28332,6 +28614,17 @@ export const proto = $root.proto = (() => {
28332
28614
  if (d.supportHatchHistory != null) {
28333
28615
  m.supportHatchHistory = Boolean(d.supportHatchHistory);
28334
28616
  }
28617
+ if (d.supportedBotChannelFbids) {
28618
+ if (!Array.isArray(d.supportedBotChannelFbids))
28619
+ throw TypeError(".proto.DeviceProps.HistorySyncConfig.supportedBotChannelFbids: array expected");
28620
+ m.supportedBotChannelFbids = [];
28621
+ for (var i = 0; i < d.supportedBotChannelFbids.length; ++i) {
28622
+ m.supportedBotChannelFbids[i] = String(d.supportedBotChannelFbids[i]);
28623
+ }
28624
+ }
28625
+ if (d.supportInlineContacts != null) {
28626
+ m.supportInlineContacts = Boolean(d.supportInlineContacts);
28627
+ }
28335
28628
  return m;
28336
28629
  };
28337
28630
 
@@ -28339,6 +28632,9 @@ export const proto = $root.proto = (() => {
28339
28632
  if (!o)
28340
28633
  o = {};
28341
28634
  var d = {};
28635
+ if (o.arrays || o.defaults) {
28636
+ d.supportedBotChannelFbids = [];
28637
+ }
28342
28638
  if (m.fullSyncDaysLimit != null && m.hasOwnProperty("fullSyncDaysLimit")) {
28343
28639
  d.fullSyncDaysLimit = m.fullSyncDaysLimit;
28344
28640
  if (o.oneofs)
@@ -28449,6 +28745,17 @@ export const proto = $root.proto = (() => {
28449
28745
  if (o.oneofs)
28450
28746
  d._supportHatchHistory = "supportHatchHistory";
28451
28747
  }
28748
+ if (m.supportedBotChannelFbids && m.supportedBotChannelFbids.length) {
28749
+ d.supportedBotChannelFbids = [];
28750
+ for (var j = 0; j < m.supportedBotChannelFbids.length; ++j) {
28751
+ d.supportedBotChannelFbids[j] = m.supportedBotChannelFbids[j];
28752
+ }
28753
+ }
28754
+ if (m.supportInlineContacts != null && m.hasOwnProperty("supportInlineContacts")) {
28755
+ d.supportInlineContacts = m.supportInlineContacts;
28756
+ if (o.oneofs)
28757
+ d._supportInlineContacts = "supportInlineContacts";
28758
+ }
28452
28759
  return d;
28453
28760
  };
28454
28761
 
@@ -31478,6 +31785,242 @@ export const proto = $root.proto = (() => {
31478
31785
  return GroupParticipant;
31479
31786
  })();
31480
31787
 
31788
+ proto.GroupRootKeyShare = (function() {
31789
+
31790
+ function GroupRootKeyShare(p) {
31791
+ this.keys = [];
31792
+ if (p)
31793
+ for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
31794
+ if (p[ks[i]] != null)
31795
+ this[ks[i]] = p[ks[i]];
31796
+ }
31797
+
31798
+ GroupRootKeyShare.prototype.keys = $util.emptyArray;
31799
+
31800
+ GroupRootKeyShare.create = function create(properties) {
31801
+ return new GroupRootKeyShare(properties);
31802
+ };
31803
+
31804
+ GroupRootKeyShare.encode = function encode(m, w) {
31805
+ if (!w)
31806
+ w = $Writer.create();
31807
+ if (m.keys != null && m.keys.length) {
31808
+ for (var i = 0; i < m.keys.length; ++i)
31809
+ $root.proto.GroupRootKeyShareEntry.encode(m.keys[i], w.uint32(10).fork()).ldelim();
31810
+ }
31811
+ return w;
31812
+ };
31813
+
31814
+ GroupRootKeyShare.decode = function decode(r, l, e) {
31815
+ if (!(r instanceof $Reader))
31816
+ r = $Reader.create(r);
31817
+ var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.GroupRootKeyShare();
31818
+ while (r.pos < c) {
31819
+ var t = r.uint32();
31820
+ if (t === e)
31821
+ break;
31822
+ switch (t >>> 3) {
31823
+ case 1: {
31824
+ if (!(m.keys && m.keys.length))
31825
+ m.keys = [];
31826
+ m.keys.push($root.proto.GroupRootKeyShareEntry.decode(r, r.uint32()));
31827
+ break;
31828
+ }
31829
+ default:
31830
+ r.skipType(t & 7);
31831
+ break;
31832
+ }
31833
+ }
31834
+ return m;
31835
+ };
31836
+
31837
+ GroupRootKeyShare.fromObject = function fromObject(d) {
31838
+ if (d instanceof $root.proto.GroupRootKeyShare)
31839
+ return d;
31840
+ var m = new $root.proto.GroupRootKeyShare();
31841
+ if (d.keys) {
31842
+ if (!Array.isArray(d.keys))
31843
+ throw TypeError(".proto.GroupRootKeyShare.keys: array expected");
31844
+ m.keys = [];
31845
+ for (var i = 0; i < d.keys.length; ++i) {
31846
+ if (typeof d.keys[i] !== "object")
31847
+ throw TypeError(".proto.GroupRootKeyShare.keys: object expected");
31848
+ m.keys[i] = $root.proto.GroupRootKeyShareEntry.fromObject(d.keys[i]);
31849
+ }
31850
+ }
31851
+ return m;
31852
+ };
31853
+
31854
+ GroupRootKeyShare.toObject = function toObject(m, o) {
31855
+ if (!o)
31856
+ o = {};
31857
+ var d = {};
31858
+ if (o.arrays || o.defaults) {
31859
+ d.keys = [];
31860
+ }
31861
+ if (m.keys && m.keys.length) {
31862
+ d.keys = [];
31863
+ for (var j = 0; j < m.keys.length; ++j) {
31864
+ d.keys[j] = $root.proto.GroupRootKeyShareEntry.toObject(m.keys[j], o);
31865
+ }
31866
+ }
31867
+ return d;
31868
+ };
31869
+
31870
+ GroupRootKeyShare.prototype.toJSON = function toJSON() {
31871
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
31872
+ };
31873
+
31874
+ GroupRootKeyShare.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
31875
+ if (typeUrlPrefix === undefined) {
31876
+ typeUrlPrefix = "type.googleapis.com";
31877
+ }
31878
+ return typeUrlPrefix + "/proto.GroupRootKeyShare";
31879
+ };
31880
+
31881
+ return GroupRootKeyShare;
31882
+ })();
31883
+
31884
+ proto.GroupRootKeyShareEntry = (function() {
31885
+
31886
+ function GroupRootKeyShareEntry(p) {
31887
+ if (p)
31888
+ for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
31889
+ if (p[ks[i]] != null)
31890
+ this[ks[i]] = p[ks[i]];
31891
+ }
31892
+
31893
+ GroupRootKeyShareEntry.prototype.groupRootKey = null;
31894
+ GroupRootKeyShareEntry.prototype.keyId = null;
31895
+ GroupRootKeyShareEntry.prototype.expiryTimestampMs = null;
31896
+
31897
+ let $oneOfFields;
31898
+
31899
+ Object.defineProperty(GroupRootKeyShareEntry.prototype, "_groupRootKey", {
31900
+ get: $util.oneOfGetter($oneOfFields = ["groupRootKey"]),
31901
+ set: $util.oneOfSetter($oneOfFields)
31902
+ });
31903
+
31904
+ Object.defineProperty(GroupRootKeyShareEntry.prototype, "_keyId", {
31905
+ get: $util.oneOfGetter($oneOfFields = ["keyId"]),
31906
+ set: $util.oneOfSetter($oneOfFields)
31907
+ });
31908
+
31909
+ Object.defineProperty(GroupRootKeyShareEntry.prototype, "_expiryTimestampMs", {
31910
+ get: $util.oneOfGetter($oneOfFields = ["expiryTimestampMs"]),
31911
+ set: $util.oneOfSetter($oneOfFields)
31912
+ });
31913
+
31914
+ GroupRootKeyShareEntry.create = function create(properties) {
31915
+ return new GroupRootKeyShareEntry(properties);
31916
+ };
31917
+
31918
+ GroupRootKeyShareEntry.encode = function encode(m, w) {
31919
+ if (!w)
31920
+ w = $Writer.create();
31921
+ if (m.groupRootKey != null && Object.hasOwnProperty.call(m, "groupRootKey"))
31922
+ w.uint32(10).bytes(m.groupRootKey);
31923
+ if (m.keyId != null && Object.hasOwnProperty.call(m, "keyId"))
31924
+ w.uint32(18).string(m.keyId);
31925
+ if (m.expiryTimestampMs != null && Object.hasOwnProperty.call(m, "expiryTimestampMs"))
31926
+ w.uint32(24).int64(m.expiryTimestampMs);
31927
+ return w;
31928
+ };
31929
+
31930
+ GroupRootKeyShareEntry.decode = function decode(r, l, e) {
31931
+ if (!(r instanceof $Reader))
31932
+ r = $Reader.create(r);
31933
+ var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.GroupRootKeyShareEntry();
31934
+ while (r.pos < c) {
31935
+ var t = r.uint32();
31936
+ if (t === e)
31937
+ break;
31938
+ switch (t >>> 3) {
31939
+ case 1: {
31940
+ m.groupRootKey = r.bytes();
31941
+ break;
31942
+ }
31943
+ case 2: {
31944
+ m.keyId = r.string();
31945
+ break;
31946
+ }
31947
+ case 3: {
31948
+ m.expiryTimestampMs = r.int64();
31949
+ break;
31950
+ }
31951
+ default:
31952
+ r.skipType(t & 7);
31953
+ break;
31954
+ }
31955
+ }
31956
+ return m;
31957
+ };
31958
+
31959
+ GroupRootKeyShareEntry.fromObject = function fromObject(d) {
31960
+ if (d instanceof $root.proto.GroupRootKeyShareEntry)
31961
+ return d;
31962
+ var m = new $root.proto.GroupRootKeyShareEntry();
31963
+ if (d.groupRootKey != null) {
31964
+ if (typeof d.groupRootKey === "string")
31965
+ $util.base64.decode(d.groupRootKey, m.groupRootKey = $util.newBuffer($util.base64.length(d.groupRootKey)), 0);
31966
+ else if (d.groupRootKey.length >= 0)
31967
+ m.groupRootKey = d.groupRootKey;
31968
+ }
31969
+ if (d.keyId != null) {
31970
+ m.keyId = String(d.keyId);
31971
+ }
31972
+ if (d.expiryTimestampMs != null) {
31973
+ if ($util.Long)
31974
+ (m.expiryTimestampMs = $util.Long.fromValue(d.expiryTimestampMs)).unsigned = false;
31975
+ else if (typeof d.expiryTimestampMs === "string")
31976
+ m.expiryTimestampMs = parseInt(d.expiryTimestampMs, 10);
31977
+ else if (typeof d.expiryTimestampMs === "number")
31978
+ m.expiryTimestampMs = d.expiryTimestampMs;
31979
+ else if (typeof d.expiryTimestampMs === "object")
31980
+ m.expiryTimestampMs = new $util.LongBits(d.expiryTimestampMs.low >>> 0, d.expiryTimestampMs.high >>> 0).toNumber();
31981
+ }
31982
+ return m;
31983
+ };
31984
+
31985
+ GroupRootKeyShareEntry.toObject = function toObject(m, o) {
31986
+ if (!o)
31987
+ o = {};
31988
+ var d = {};
31989
+ if (m.groupRootKey != null && m.hasOwnProperty("groupRootKey")) {
31990
+ d.groupRootKey = o.bytes === String ? $util.base64.encode(m.groupRootKey, 0, m.groupRootKey.length) : o.bytes === Array ? Array.prototype.slice.call(m.groupRootKey) : m.groupRootKey;
31991
+ if (o.oneofs)
31992
+ d._groupRootKey = "groupRootKey";
31993
+ }
31994
+ if (m.keyId != null && m.hasOwnProperty("keyId")) {
31995
+ d.keyId = m.keyId;
31996
+ if (o.oneofs)
31997
+ d._keyId = "keyId";
31998
+ }
31999
+ if (m.expiryTimestampMs != null && m.hasOwnProperty("expiryTimestampMs")) {
32000
+ if (typeof m.expiryTimestampMs === "number")
32001
+ d.expiryTimestampMs = o.longs === String ? String(m.expiryTimestampMs) : m.expiryTimestampMs;
32002
+ else
32003
+ d.expiryTimestampMs = o.longs === String ? longToString(m.expiryTimestampMs) : o.longs === Number ? longToNumber(m.expiryTimestampMs) : m.expiryTimestampMs;
32004
+ if (o.oneofs)
32005
+ d._expiryTimestampMs = "expiryTimestampMs";
32006
+ }
32007
+ return d;
32008
+ };
32009
+
32010
+ GroupRootKeyShareEntry.prototype.toJSON = function toJSON() {
32011
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
32012
+ };
32013
+
32014
+ GroupRootKeyShareEntry.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
32015
+ if (typeUrlPrefix === undefined) {
32016
+ typeUrlPrefix = "type.googleapis.com";
32017
+ }
32018
+ return typeUrlPrefix + "/proto.GroupRootKeyShareEntry";
32019
+ };
32020
+
32021
+ return GroupRootKeyShareEntry;
32022
+ })();
32023
+
31481
32024
  proto.HandshakeMessage = (function() {
31482
32025
 
31483
32026
  function HandshakeMessage(p) {
@@ -31805,6 +32348,7 @@ export const proto = $root.proto = (() => {
31805
32348
  ClientHello.prototype.sendServerHelloPaddedBytes = null;
31806
32349
  ClientHello.prototype.simulateXxkemFs = null;
31807
32350
  ClientHello.prototype.pqMode = null;
32351
+ ClientHello.prototype.extendedEphemeral = null;
31808
32352
 
31809
32353
  let $oneOfFields;
31810
32354
 
@@ -31853,6 +32397,11 @@ export const proto = $root.proto = (() => {
31853
32397
  set: $util.oneOfSetter($oneOfFields)
31854
32398
  });
31855
32399
 
32400
+ Object.defineProperty(ClientHello.prototype, "_extendedEphemeral", {
32401
+ get: $util.oneOfGetter($oneOfFields = ["extendedEphemeral"]),
32402
+ set: $util.oneOfSetter($oneOfFields)
32403
+ });
32404
+
31856
32405
  ClientHello.create = function create(properties) {
31857
32406
  return new ClientHello(properties);
31858
32407
  };
@@ -31878,6 +32427,8 @@ export const proto = $root.proto = (() => {
31878
32427
  w.uint32(64).bool(m.simulateXxkemFs);
31879
32428
  if (m.pqMode != null && Object.hasOwnProperty.call(m, "pqMode"))
31880
32429
  w.uint32(72).int32(m.pqMode);
32430
+ if (m.extendedEphemeral != null && Object.hasOwnProperty.call(m, "extendedEphemeral"))
32431
+ w.uint32(82).bytes(m.extendedEphemeral);
31881
32432
  return w;
31882
32433
  };
31883
32434
 
@@ -31926,6 +32477,10 @@ export const proto = $root.proto = (() => {
31926
32477
  m.pqMode = r.int32();
31927
32478
  break;
31928
32479
  }
32480
+ case 10: {
32481
+ m.extendedEphemeral = r.bytes();
32482
+ break;
32483
+ }
31929
32484
  default:
31930
32485
  r.skipType(t & 7);
31931
32486
  break;
@@ -32021,6 +32576,12 @@ export const proto = $root.proto = (() => {
32021
32576
  m.pqMode = 8;
32022
32577
  break;
32023
32578
  }
32579
+ if (d.extendedEphemeral != null) {
32580
+ if (typeof d.extendedEphemeral === "string")
32581
+ $util.base64.decode(d.extendedEphemeral, m.extendedEphemeral = $util.newBuffer($util.base64.length(d.extendedEphemeral)), 0);
32582
+ else if (d.extendedEphemeral.length >= 0)
32583
+ m.extendedEphemeral = d.extendedEphemeral;
32584
+ }
32024
32585
  return m;
32025
32586
  };
32026
32587
 
@@ -32073,6 +32634,11 @@ export const proto = $root.proto = (() => {
32073
32634
  if (o.oneofs)
32074
32635
  d._pqMode = "pqMode";
32075
32636
  }
32637
+ if (m.extendedEphemeral != null && m.hasOwnProperty("extendedEphemeral")) {
32638
+ d.extendedEphemeral = o.bytes === String ? $util.base64.encode(m.extendedEphemeral, 0, m.extendedEphemeral.length) : o.bytes === Array ? Array.prototype.slice.call(m.extendedEphemeral) : m.extendedEphemeral;
32639
+ if (o.oneofs)
32640
+ d._extendedEphemeral = "extendedEphemeral";
32641
+ }
32076
32642
  return d;
32077
32643
  };
32078
32644
 
@@ -32118,6 +32684,7 @@ export const proto = $root.proto = (() => {
32118
32684
  ServerHello.prototype.payload = null;
32119
32685
  ServerHello.prototype.extendedStatic = null;
32120
32686
  ServerHello.prototype.paddingBytes = null;
32687
+ ServerHello.prototype.extendedCiphertext = null;
32121
32688
 
32122
32689
  let $oneOfFields;
32123
32690
 
@@ -32146,6 +32713,11 @@ export const proto = $root.proto = (() => {
32146
32713
  set: $util.oneOfSetter($oneOfFields)
32147
32714
  });
32148
32715
 
32716
+ Object.defineProperty(ServerHello.prototype, "_extendedCiphertext", {
32717
+ get: $util.oneOfGetter($oneOfFields = ["extendedCiphertext"]),
32718
+ set: $util.oneOfSetter($oneOfFields)
32719
+ });
32720
+
32149
32721
  ServerHello.create = function create(properties) {
32150
32722
  return new ServerHello(properties);
32151
32723
  };
@@ -32163,6 +32735,8 @@ export const proto = $root.proto = (() => {
32163
32735
  w.uint32(34).bytes(m.extendedStatic);
32164
32736
  if (m.paddingBytes != null && Object.hasOwnProperty.call(m, "paddingBytes"))
32165
32737
  w.uint32(42).bytes(m.paddingBytes);
32738
+ if (m.extendedCiphertext != null && Object.hasOwnProperty.call(m, "extendedCiphertext"))
32739
+ w.uint32(50).bytes(m.extendedCiphertext);
32166
32740
  return w;
32167
32741
  };
32168
32742
 
@@ -32195,6 +32769,10 @@ export const proto = $root.proto = (() => {
32195
32769
  m.paddingBytes = r.bytes();
32196
32770
  break;
32197
32771
  }
32772
+ case 6: {
32773
+ m.extendedCiphertext = r.bytes();
32774
+ break;
32775
+ }
32198
32776
  default:
32199
32777
  r.skipType(t & 7);
32200
32778
  break;
@@ -32237,6 +32815,12 @@ export const proto = $root.proto = (() => {
32237
32815
  else if (d.paddingBytes.length >= 0)
32238
32816
  m.paddingBytes = d.paddingBytes;
32239
32817
  }
32818
+ if (d.extendedCiphertext != null) {
32819
+ if (typeof d.extendedCiphertext === "string")
32820
+ $util.base64.decode(d.extendedCiphertext, m.extendedCiphertext = $util.newBuffer($util.base64.length(d.extendedCiphertext)), 0);
32821
+ else if (d.extendedCiphertext.length >= 0)
32822
+ m.extendedCiphertext = d.extendedCiphertext;
32823
+ }
32240
32824
  return m;
32241
32825
  };
32242
32826
 
@@ -32269,6 +32853,11 @@ export const proto = $root.proto = (() => {
32269
32853
  if (o.oneofs)
32270
32854
  d._paddingBytes = "paddingBytes";
32271
32855
  }
32856
+ if (m.extendedCiphertext != null && m.hasOwnProperty("extendedCiphertext")) {
32857
+ d.extendedCiphertext = o.bytes === String ? $util.base64.encode(m.extendedCiphertext, 0, m.extendedCiphertext.length) : o.bytes === Array ? Array.prototype.slice.call(m.extendedCiphertext) : m.extendedCiphertext;
32858
+ if (o.oneofs)
32859
+ d._extendedCiphertext = "extendedCiphertext";
32860
+ }
32272
32861
  return d;
32273
32862
  };
32274
32863
 
@@ -32300,6 +32889,7 @@ export const proto = $root.proto = (() => {
32300
32889
  this.callLogRecords = [];
32301
32890
  this.phoneNumberToLidMappings = [];
32302
32891
  this.accounts = [];
32892
+ this.inlineContacts = [];
32303
32893
  if (p)
32304
32894
  for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
32305
32895
  if (p[ks[i]] != null)
@@ -32324,6 +32914,8 @@ export const proto = $root.proto = (() => {
32324
32914
  HistorySync.prototype.shareableChatIdentifierEncryptionKey = null;
32325
32915
  HistorySync.prototype.accounts = $util.emptyArray;
32326
32916
  HistorySync.prototype.nctSalt = null;
32917
+ HistorySync.prototype.inlineContacts = $util.emptyArray;
32918
+ HistorySync.prototype.inlineContactsProvided = null;
32327
32919
 
32328
32920
  let $oneOfFields;
32329
32921
 
@@ -32372,6 +32964,11 @@ export const proto = $root.proto = (() => {
32372
32964
  set: $util.oneOfSetter($oneOfFields)
32373
32965
  });
32374
32966
 
32967
+ Object.defineProperty(HistorySync.prototype, "_inlineContactsProvided", {
32968
+ get: $util.oneOfGetter($oneOfFields = ["inlineContactsProvided"]),
32969
+ set: $util.oneOfSetter($oneOfFields)
32970
+ });
32971
+
32375
32972
  HistorySync.create = function create(properties) {
32376
32973
  return new HistorySync(properties);
32377
32974
  };
@@ -32431,6 +33028,12 @@ export const proto = $root.proto = (() => {
32431
33028
  }
32432
33029
  if (m.nctSalt != null && Object.hasOwnProperty.call(m, "nctSalt"))
32433
33030
  w.uint32(154).bytes(m.nctSalt);
33031
+ if (m.inlineContacts != null && m.inlineContacts.length) {
33032
+ for (var i = 0; i < m.inlineContacts.length; ++i)
33033
+ $root.proto.InlineContact.encode(m.inlineContacts[i], w.uint32(162).fork()).ldelim();
33034
+ }
33035
+ if (m.inlineContactsProvided != null && Object.hasOwnProperty.call(m, "inlineContactsProvided"))
33036
+ w.uint32(168).bool(m.inlineContactsProvided);
32434
33037
  return w;
32435
33038
  };
32436
33039
 
@@ -32531,6 +33134,16 @@ export const proto = $root.proto = (() => {
32531
33134
  m.nctSalt = r.bytes();
32532
33135
  break;
32533
33136
  }
33137
+ case 20: {
33138
+ if (!(m.inlineContacts && m.inlineContacts.length))
33139
+ m.inlineContacts = [];
33140
+ m.inlineContacts.push($root.proto.InlineContact.decode(r, r.uint32()));
33141
+ break;
33142
+ }
33143
+ case 21: {
33144
+ m.inlineContactsProvided = r.bool();
33145
+ break;
33146
+ }
32534
33147
  default:
32535
33148
  r.skipType(t & 7);
32536
33149
  break;
@@ -32710,6 +33323,19 @@ export const proto = $root.proto = (() => {
32710
33323
  else if (d.nctSalt.length >= 0)
32711
33324
  m.nctSalt = d.nctSalt;
32712
33325
  }
33326
+ if (d.inlineContacts) {
33327
+ if (!Array.isArray(d.inlineContacts))
33328
+ throw TypeError(".proto.HistorySync.inlineContacts: array expected");
33329
+ m.inlineContacts = [];
33330
+ for (var i = 0; i < d.inlineContacts.length; ++i) {
33331
+ if (typeof d.inlineContacts[i] !== "object")
33332
+ throw TypeError(".proto.HistorySync.inlineContacts: object expected");
33333
+ m.inlineContacts[i] = $root.proto.InlineContact.fromObject(d.inlineContacts[i]);
33334
+ }
33335
+ }
33336
+ if (d.inlineContactsProvided != null) {
33337
+ m.inlineContactsProvided = Boolean(d.inlineContactsProvided);
33338
+ }
32713
33339
  return m;
32714
33340
  };
32715
33341
 
@@ -32726,6 +33352,7 @@ export const proto = $root.proto = (() => {
32726
33352
  d.callLogRecords = [];
32727
33353
  d.phoneNumberToLidMappings = [];
32728
33354
  d.accounts = [];
33355
+ d.inlineContacts = [];
32729
33356
  }
32730
33357
  if (o.defaults) {
32731
33358
  d.syncType = o.enums === String ? "INITIAL_BOOTSTRAP" : 0;
@@ -32826,6 +33453,17 @@ export const proto = $root.proto = (() => {
32826
33453
  if (o.oneofs)
32827
33454
  d._nctSalt = "nctSalt";
32828
33455
  }
33456
+ if (m.inlineContacts && m.inlineContacts.length) {
33457
+ d.inlineContacts = [];
33458
+ for (var j = 0; j < m.inlineContacts.length; ++j) {
33459
+ d.inlineContacts[j] = $root.proto.InlineContact.toObject(m.inlineContacts[j], o);
33460
+ }
33461
+ }
33462
+ if (m.inlineContactsProvided != null && m.hasOwnProperty("inlineContactsProvided")) {
33463
+ d.inlineContactsProvided = m.inlineContactsProvided;
33464
+ if (o.oneofs)
33465
+ d._inlineContactsProvided = "inlineContactsProvided";
33466
+ }
32829
33467
  return d;
32830
33468
  };
32831
33469
 
@@ -34442,6 +35080,173 @@ export const proto = $root.proto = (() => {
34442
35080
  return InThreadSurveyMetadata;
34443
35081
  })();
34444
35082
 
35083
+ proto.InlineContact = (function() {
35084
+
35085
+ function InlineContact(p) {
35086
+ if (p)
35087
+ for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
35088
+ if (p[ks[i]] != null)
35089
+ this[ks[i]] = p[ks[i]];
35090
+ }
35091
+
35092
+ InlineContact.prototype.pnJid = null;
35093
+ InlineContact.prototype.lidJid = null;
35094
+ InlineContact.prototype.fullName = null;
35095
+ InlineContact.prototype.firstName = null;
35096
+ InlineContact.prototype.username = null;
35097
+
35098
+ let $oneOfFields;
35099
+
35100
+ Object.defineProperty(InlineContact.prototype, "_pnJid", {
35101
+ get: $util.oneOfGetter($oneOfFields = ["pnJid"]),
35102
+ set: $util.oneOfSetter($oneOfFields)
35103
+ });
35104
+
35105
+ Object.defineProperty(InlineContact.prototype, "_lidJid", {
35106
+ get: $util.oneOfGetter($oneOfFields = ["lidJid"]),
35107
+ set: $util.oneOfSetter($oneOfFields)
35108
+ });
35109
+
35110
+ Object.defineProperty(InlineContact.prototype, "_fullName", {
35111
+ get: $util.oneOfGetter($oneOfFields = ["fullName"]),
35112
+ set: $util.oneOfSetter($oneOfFields)
35113
+ });
35114
+
35115
+ Object.defineProperty(InlineContact.prototype, "_firstName", {
35116
+ get: $util.oneOfGetter($oneOfFields = ["firstName"]),
35117
+ set: $util.oneOfSetter($oneOfFields)
35118
+ });
35119
+
35120
+ Object.defineProperty(InlineContact.prototype, "_username", {
35121
+ get: $util.oneOfGetter($oneOfFields = ["username"]),
35122
+ set: $util.oneOfSetter($oneOfFields)
35123
+ });
35124
+
35125
+ InlineContact.create = function create(properties) {
35126
+ return new InlineContact(properties);
35127
+ };
35128
+
35129
+ InlineContact.encode = function encode(m, w) {
35130
+ if (!w)
35131
+ w = $Writer.create();
35132
+ if (m.pnJid != null && Object.hasOwnProperty.call(m, "pnJid"))
35133
+ w.uint32(10).string(m.pnJid);
35134
+ if (m.lidJid != null && Object.hasOwnProperty.call(m, "lidJid"))
35135
+ w.uint32(18).string(m.lidJid);
35136
+ if (m.fullName != null && Object.hasOwnProperty.call(m, "fullName"))
35137
+ w.uint32(26).string(m.fullName);
35138
+ if (m.firstName != null && Object.hasOwnProperty.call(m, "firstName"))
35139
+ w.uint32(34).string(m.firstName);
35140
+ if (m.username != null && Object.hasOwnProperty.call(m, "username"))
35141
+ w.uint32(42).string(m.username);
35142
+ return w;
35143
+ };
35144
+
35145
+ InlineContact.decode = function decode(r, l, e) {
35146
+ if (!(r instanceof $Reader))
35147
+ r = $Reader.create(r);
35148
+ var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.InlineContact();
35149
+ while (r.pos < c) {
35150
+ var t = r.uint32();
35151
+ if (t === e)
35152
+ break;
35153
+ switch (t >>> 3) {
35154
+ case 1: {
35155
+ m.pnJid = r.string();
35156
+ break;
35157
+ }
35158
+ case 2: {
35159
+ m.lidJid = r.string();
35160
+ break;
35161
+ }
35162
+ case 3: {
35163
+ m.fullName = r.string();
35164
+ break;
35165
+ }
35166
+ case 4: {
35167
+ m.firstName = r.string();
35168
+ break;
35169
+ }
35170
+ case 5: {
35171
+ m.username = r.string();
35172
+ break;
35173
+ }
35174
+ default:
35175
+ r.skipType(t & 7);
35176
+ break;
35177
+ }
35178
+ }
35179
+ return m;
35180
+ };
35181
+
35182
+ InlineContact.fromObject = function fromObject(d) {
35183
+ if (d instanceof $root.proto.InlineContact)
35184
+ return d;
35185
+ var m = new $root.proto.InlineContact();
35186
+ if (d.pnJid != null) {
35187
+ m.pnJid = String(d.pnJid);
35188
+ }
35189
+ if (d.lidJid != null) {
35190
+ m.lidJid = String(d.lidJid);
35191
+ }
35192
+ if (d.fullName != null) {
35193
+ m.fullName = String(d.fullName);
35194
+ }
35195
+ if (d.firstName != null) {
35196
+ m.firstName = String(d.firstName);
35197
+ }
35198
+ if (d.username != null) {
35199
+ m.username = String(d.username);
35200
+ }
35201
+ return m;
35202
+ };
35203
+
35204
+ InlineContact.toObject = function toObject(m, o) {
35205
+ if (!o)
35206
+ o = {};
35207
+ var d = {};
35208
+ if (m.pnJid != null && m.hasOwnProperty("pnJid")) {
35209
+ d.pnJid = m.pnJid;
35210
+ if (o.oneofs)
35211
+ d._pnJid = "pnJid";
35212
+ }
35213
+ if (m.lidJid != null && m.hasOwnProperty("lidJid")) {
35214
+ d.lidJid = m.lidJid;
35215
+ if (o.oneofs)
35216
+ d._lidJid = "lidJid";
35217
+ }
35218
+ if (m.fullName != null && m.hasOwnProperty("fullName")) {
35219
+ d.fullName = m.fullName;
35220
+ if (o.oneofs)
35221
+ d._fullName = "fullName";
35222
+ }
35223
+ if (m.firstName != null && m.hasOwnProperty("firstName")) {
35224
+ d.firstName = m.firstName;
35225
+ if (o.oneofs)
35226
+ d._firstName = "firstName";
35227
+ }
35228
+ if (m.username != null && m.hasOwnProperty("username")) {
35229
+ d.username = m.username;
35230
+ if (o.oneofs)
35231
+ d._username = "username";
35232
+ }
35233
+ return d;
35234
+ };
35235
+
35236
+ InlineContact.prototype.toJSON = function toJSON() {
35237
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
35238
+ };
35239
+
35240
+ InlineContact.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
35241
+ if (typeUrlPrefix === undefined) {
35242
+ typeUrlPrefix = "type.googleapis.com";
35243
+ }
35244
+ return typeUrlPrefix + "/proto.InlineContact";
35245
+ };
35246
+
35247
+ return InlineContact;
35248
+ })();
35249
+
34445
35250
  proto.InteractiveAnnotation = (function() {
34446
35251
 
34447
35252
  function InteractiveAnnotation(p) {
@@ -37001,6 +37806,7 @@ export const proto = $root.proto = (() => {
37001
37806
  Message.prototype.conditionalRevealMessage = null;
37002
37807
  Message.prototype.pollAddOptionMessage = null;
37003
37808
  Message.prototype.eventInviteMessage = null;
37809
+ Message.prototype.groupRootKeyShare = null;
37004
37810
 
37005
37811
  let $oneOfFields;
37006
37812
 
@@ -37514,6 +38320,11 @@ export const proto = $root.proto = (() => {
37514
38320
  set: $util.oneOfSetter($oneOfFields)
37515
38321
  });
37516
38322
 
38323
+ Object.defineProperty(Message.prototype, "_groupRootKeyShare", {
38324
+ get: $util.oneOfGetter($oneOfFields = ["groupRootKeyShare"]),
38325
+ set: $util.oneOfSetter($oneOfFields)
38326
+ });
38327
+
37517
38328
  Message.create = function create(properties) {
37518
38329
  return new Message(properties);
37519
38330
  };
@@ -37725,6 +38536,8 @@ export const proto = $root.proto = (() => {
37725
38536
  $root.proto.Message.PollAddOptionMessage.encode(m.pollAddOptionMessage, w.uint32(970).fork()).ldelim();
37726
38537
  if (m.eventInviteMessage != null && Object.hasOwnProperty.call(m, "eventInviteMessage"))
37727
38538
  $root.proto.Message.EventInviteMessage.encode(m.eventInviteMessage, w.uint32(978).fork()).ldelim();
38539
+ if (m.groupRootKeyShare != null && Object.hasOwnProperty.call(m, "groupRootKeyShare"))
38540
+ $root.proto.GroupRootKeyShare.encode(m.groupRootKeyShare, w.uint32(986).fork()).ldelim();
37728
38541
  return w;
37729
38542
  };
37730
38543
 
@@ -38145,6 +38958,10 @@ export const proto = $root.proto = (() => {
38145
38958
  m.eventInviteMessage = $root.proto.Message.EventInviteMessage.decode(r, r.uint32());
38146
38959
  break;
38147
38960
  }
38961
+ case 123: {
38962
+ m.groupRootKeyShare = $root.proto.GroupRootKeyShare.decode(r, r.uint32());
38963
+ break;
38964
+ }
38148
38965
  default:
38149
38966
  r.skipType(t & 7);
38150
38967
  break;
@@ -38665,6 +39482,11 @@ export const proto = $root.proto = (() => {
38665
39482
  throw TypeError(".proto.Message.eventInviteMessage: object expected");
38666
39483
  m.eventInviteMessage = $root.proto.Message.EventInviteMessage.fromObject(d.eventInviteMessage);
38667
39484
  }
39485
+ if (d.groupRootKeyShare != null) {
39486
+ if (typeof d.groupRootKeyShare !== "object")
39487
+ throw TypeError(".proto.Message.groupRootKeyShare: object expected");
39488
+ m.groupRootKeyShare = $root.proto.GroupRootKeyShare.fromObject(d.groupRootKeyShare);
39489
+ }
38668
39490
  return m;
38669
39491
  };
38670
39492
 
@@ -39182,6 +40004,11 @@ export const proto = $root.proto = (() => {
39182
40004
  if (o.oneofs)
39183
40005
  d._eventInviteMessage = "eventInviteMessage";
39184
40006
  }
40007
+ if (m.groupRootKeyShare != null && m.hasOwnProperty("groupRootKeyShare")) {
40008
+ d.groupRootKeyShare = $root.proto.GroupRootKeyShare.toObject(m.groupRootKeyShare, o);
40009
+ if (o.oneofs)
40010
+ d._groupRootKeyShare = "groupRootKeyShare";
40011
+ }
39185
40012
  return d;
39186
40013
  };
39187
40014
 
@@ -42617,6 +43444,10 @@ export const proto = $root.proto = (() => {
42617
43444
  case 2:
42618
43445
  m.status = 2;
42619
43446
  break;
43447
+ case "INFO":
43448
+ case 3:
43449
+ m.status = 3;
43450
+ break;
42620
43451
  }
42621
43452
  if (d.senderNotificationTimestampMs != null) {
42622
43453
  if ($util.Long)
@@ -42701,6 +43532,7 @@ export const proto = $root.proto = (() => {
42701
43532
  values[valuesById[0] = "UNKNOWN"] = 0;
42702
43533
  values[valuesById[1] = "CONTROL_PASSED"] = 1;
42703
43534
  values[valuesById[2] = "CONTROL_TAKEN"] = 2;
43535
+ values[valuesById[3] = "INFO"] = 3;
42704
43536
  return values;
42705
43537
  })();
42706
43538
 
@@ -59284,6 +60116,10 @@ export const proto = $root.proto = (() => {
59284
60116
  case 6:
59285
60117
  m.responseCode = 6;
59286
60118
  break;
60119
+ case "ERROR_MULTI_PROVIDER_NOT_CONFIGURED":
60120
+ case 7:
60121
+ m.responseCode = 7;
60122
+ break;
59287
60123
  }
59288
60124
  return m;
59289
60125
  };
@@ -59328,6 +60164,7 @@ export const proto = $root.proto = (() => {
59328
60164
  values[valuesById[4] = "ERROR_REQUEST_ON_NON_SMB_PRIMARY"] = 4;
59329
60165
  values[valuesById[5] = "ERROR_HOSTED_DEVICE_NOT_CONNECTED"] = 5;
59330
60166
  values[valuesById[6] = "ERROR_HOSTED_DEVICE_LOGIN_TIME_NOT_SET"] = 6;
60167
+ values[valuesById[7] = "ERROR_MULTI_PROVIDER_NOT_CONFIGURED"] = 7;
59331
60168
  return values;
59332
60169
  })();
59333
60170
 
@@ -63229,10 +64066,6 @@ export const proto = $root.proto = (() => {
63229
64066
  case 32:
63230
64067
  m.type = 32;
63231
64068
  break;
63232
- case "BOT_UNLINK_MESSAGE":
63233
- case 33:
63234
- m.type = 33;
63235
- break;
63236
64069
  }
63237
64070
  if (d.ephemeralExpiration != null) {
63238
64071
  m.ephemeralExpiration = d.ephemeralExpiration >>> 0;
@@ -63546,7 +64379,6 @@ export const proto = $root.proto = (() => {
63546
64379
  values[valuesById[30] = "GROUP_MEMBER_LABEL_CHANGE"] = 30;
63547
64380
  values[valuesById[31] = "AI_MEDIA_COLLECTION_MESSAGE"] = 31;
63548
64381
  values[valuesById[32] = "MESSAGE_UNSCHEDULE"] = 32;
63549
- values[valuesById[33] = "BOT_UNLINK_MESSAGE"] = 33;
63550
64382
  return values;
63551
64383
  })();
63552
64384
 
@@ -65697,6 +66529,7 @@ export const proto = $root.proto = (() => {
65697
66529
  StickerMessage.prototype.isLottie = null;
65698
66530
  StickerMessage.prototype.accessibilityLabel = null;
65699
66531
  StickerMessage.prototype.premium = null;
66532
+ StickerMessage.prototype.emojis = null;
65700
66533
 
65701
66534
  let $oneOfFields;
65702
66535
 
@@ -65805,6 +66638,11 @@ export const proto = $root.proto = (() => {
65805
66638
  set: $util.oneOfSetter($oneOfFields)
65806
66639
  });
65807
66640
 
66641
+ Object.defineProperty(StickerMessage.prototype, "_emojis", {
66642
+ get: $util.oneOfGetter($oneOfFields = ["emojis"]),
66643
+ set: $util.oneOfSetter($oneOfFields)
66644
+ });
66645
+
65808
66646
  StickerMessage.create = function create(properties) {
65809
66647
  return new StickerMessage(properties);
65810
66648
  };
@@ -65854,6 +66692,8 @@ export const proto = $root.proto = (() => {
65854
66692
  w.uint32(178).string(m.accessibilityLabel);
65855
66693
  if (m.premium != null && Object.hasOwnProperty.call(m, "premium"))
65856
66694
  w.uint32(192).int32(m.premium);
66695
+ if (m.emojis != null && Object.hasOwnProperty.call(m, "emojis"))
66696
+ w.uint32(202).string(m.emojis);
65857
66697
  return w;
65858
66698
  };
65859
66699
 
@@ -65950,6 +66790,10 @@ export const proto = $root.proto = (() => {
65950
66790
  m.premium = r.int32();
65951
66791
  break;
65952
66792
  }
66793
+ case 25: {
66794
+ m.emojis = r.string();
66795
+ break;
66796
+ }
65953
66797
  default:
65954
66798
  r.skipType(t & 7);
65955
66799
  break;
@@ -66063,6 +66907,9 @@ export const proto = $root.proto = (() => {
66063
66907
  if (d.premium != null) {
66064
66908
  m.premium = d.premium | 0;
66065
66909
  }
66910
+ if (d.emojis != null) {
66911
+ m.emojis = String(d.emojis);
66912
+ }
66066
66913
  return m;
66067
66914
  };
66068
66915
 
@@ -66184,6 +67031,11 @@ export const proto = $root.proto = (() => {
66184
67031
  if (o.oneofs)
66185
67032
  d._premium = "premium";
66186
67033
  }
67034
+ if (m.emojis != null && m.hasOwnProperty("emojis")) {
67035
+ d.emojis = m.emojis;
67036
+ if (o.oneofs)
67037
+ d._emojis = "emojis";
67038
+ }
66187
67039
  return d;
66188
67040
  };
66189
67041
 
@@ -69728,6 +70580,7 @@ export const proto = $root.proto = (() => {
69728
70580
  MessageContextInfo.prototype.limitSharingV2 = null;
69729
70581
  MessageContextInfo.prototype.threadId = $util.emptyArray;
69730
70582
  MessageContextInfo.prototype.weblinkRenderConfig = null;
70583
+ MessageContextInfo.prototype.teeBotMetadata = null;
69731
70584
 
69732
70585
  let $oneOfFields;
69733
70586
 
@@ -69806,6 +70659,11 @@ export const proto = $root.proto = (() => {
69806
70659
  set: $util.oneOfSetter($oneOfFields)
69807
70660
  });
69808
70661
 
70662
+ Object.defineProperty(MessageContextInfo.prototype, "_teeBotMetadata", {
70663
+ get: $util.oneOfGetter($oneOfFields = ["teeBotMetadata"]),
70664
+ set: $util.oneOfSetter($oneOfFields)
70665
+ });
70666
+
69809
70667
  MessageContextInfo.create = function create(properties) {
69810
70668
  return new MessageContextInfo(properties);
69811
70669
  };
@@ -69847,6 +70705,8 @@ export const proto = $root.proto = (() => {
69847
70705
  }
69848
70706
  if (m.weblinkRenderConfig != null && Object.hasOwnProperty.call(m, "weblinkRenderConfig"))
69849
70707
  w.uint32(128).int32(m.weblinkRenderConfig);
70708
+ if (m.teeBotMetadata != null && Object.hasOwnProperty.call(m, "teeBotMetadata"))
70709
+ w.uint32(138).bytes(m.teeBotMetadata);
69850
70710
  return w;
69851
70711
  };
69852
70712
 
@@ -69925,6 +70785,10 @@ export const proto = $root.proto = (() => {
69925
70785
  m.weblinkRenderConfig = r.int32();
69926
70786
  break;
69927
70787
  }
70788
+ case 17: {
70789
+ m.teeBotMetadata = r.bytes();
70790
+ break;
70791
+ }
69928
70792
  default:
69929
70793
  r.skipType(t & 7);
69930
70794
  break;
@@ -70037,6 +70901,12 @@ export const proto = $root.proto = (() => {
70037
70901
  m.weblinkRenderConfig = 1;
70038
70902
  break;
70039
70903
  }
70904
+ if (d.teeBotMetadata != null) {
70905
+ if (typeof d.teeBotMetadata === "string")
70906
+ $util.base64.decode(d.teeBotMetadata, m.teeBotMetadata = $util.newBuffer($util.base64.length(d.teeBotMetadata)), 0);
70907
+ else if (d.teeBotMetadata.length >= 0)
70908
+ m.teeBotMetadata = d.teeBotMetadata;
70909
+ }
70040
70910
  return m;
70041
70911
  };
70042
70912
 
@@ -70128,6 +70998,11 @@ export const proto = $root.proto = (() => {
70128
70998
  if (o.oneofs)
70129
70999
  d._weblinkRenderConfig = "weblinkRenderConfig";
70130
71000
  }
71001
+ if (m.teeBotMetadata != null && m.hasOwnProperty("teeBotMetadata")) {
71002
+ d.teeBotMetadata = o.bytes === String ? $util.base64.encode(m.teeBotMetadata, 0, m.teeBotMetadata.length) : o.bytes === Array ? Array.prototype.slice.call(m.teeBotMetadata) : m.teeBotMetadata;
71003
+ if (o.oneofs)
71004
+ d._teeBotMetadata = "teeBotMetadata";
71005
+ }
70131
71006
  return d;
70132
71007
  };
70133
71008
 
@@ -77719,6 +78594,146 @@ export const proto = $root.proto = (() => {
77719
78594
  return ReportingTokenInfo;
77720
78595
  })();
77721
78596
 
78597
+ proto.ScheduledMessageMetadata = (function() {
78598
+
78599
+ function ScheduledMessageMetadata(p) {
78600
+ if (p)
78601
+ for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
78602
+ if (p[ks[i]] != null)
78603
+ this[ks[i]] = p[ks[i]];
78604
+ }
78605
+
78606
+ ScheduledMessageMetadata.prototype.revealKeyId = null;
78607
+ ScheduledMessageMetadata.prototype.revealKey = null;
78608
+ ScheduledMessageMetadata.prototype.scheduledTime = null;
78609
+
78610
+ let $oneOfFields;
78611
+
78612
+ Object.defineProperty(ScheduledMessageMetadata.prototype, "_revealKeyId", {
78613
+ get: $util.oneOfGetter($oneOfFields = ["revealKeyId"]),
78614
+ set: $util.oneOfSetter($oneOfFields)
78615
+ });
78616
+
78617
+ Object.defineProperty(ScheduledMessageMetadata.prototype, "_revealKey", {
78618
+ get: $util.oneOfGetter($oneOfFields = ["revealKey"]),
78619
+ set: $util.oneOfSetter($oneOfFields)
78620
+ });
78621
+
78622
+ Object.defineProperty(ScheduledMessageMetadata.prototype, "_scheduledTime", {
78623
+ get: $util.oneOfGetter($oneOfFields = ["scheduledTime"]),
78624
+ set: $util.oneOfSetter($oneOfFields)
78625
+ });
78626
+
78627
+ ScheduledMessageMetadata.create = function create(properties) {
78628
+ return new ScheduledMessageMetadata(properties);
78629
+ };
78630
+
78631
+ ScheduledMessageMetadata.encode = function encode(m, w) {
78632
+ if (!w)
78633
+ w = $Writer.create();
78634
+ if (m.revealKeyId != null && Object.hasOwnProperty.call(m, "revealKeyId"))
78635
+ w.uint32(10).string(m.revealKeyId);
78636
+ if (m.revealKey != null && Object.hasOwnProperty.call(m, "revealKey"))
78637
+ w.uint32(18).bytes(m.revealKey);
78638
+ if (m.scheduledTime != null && Object.hasOwnProperty.call(m, "scheduledTime"))
78639
+ w.uint32(24).uint64(m.scheduledTime);
78640
+ return w;
78641
+ };
78642
+
78643
+ ScheduledMessageMetadata.decode = function decode(r, l, e) {
78644
+ if (!(r instanceof $Reader))
78645
+ r = $Reader.create(r);
78646
+ var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.ScheduledMessageMetadata();
78647
+ while (r.pos < c) {
78648
+ var t = r.uint32();
78649
+ if (t === e)
78650
+ break;
78651
+ switch (t >>> 3) {
78652
+ case 1: {
78653
+ m.revealKeyId = r.string();
78654
+ break;
78655
+ }
78656
+ case 2: {
78657
+ m.revealKey = r.bytes();
78658
+ break;
78659
+ }
78660
+ case 3: {
78661
+ m.scheduledTime = r.uint64();
78662
+ break;
78663
+ }
78664
+ default:
78665
+ r.skipType(t & 7);
78666
+ break;
78667
+ }
78668
+ }
78669
+ return m;
78670
+ };
78671
+
78672
+ ScheduledMessageMetadata.fromObject = function fromObject(d) {
78673
+ if (d instanceof $root.proto.ScheduledMessageMetadata)
78674
+ return d;
78675
+ var m = new $root.proto.ScheduledMessageMetadata();
78676
+ if (d.revealKeyId != null) {
78677
+ m.revealKeyId = String(d.revealKeyId);
78678
+ }
78679
+ if (d.revealKey != null) {
78680
+ if (typeof d.revealKey === "string")
78681
+ $util.base64.decode(d.revealKey, m.revealKey = $util.newBuffer($util.base64.length(d.revealKey)), 0);
78682
+ else if (d.revealKey.length >= 0)
78683
+ m.revealKey = d.revealKey;
78684
+ }
78685
+ if (d.scheduledTime != null) {
78686
+ if ($util.Long)
78687
+ (m.scheduledTime = $util.Long.fromValue(d.scheduledTime)).unsigned = true;
78688
+ else if (typeof d.scheduledTime === "string")
78689
+ m.scheduledTime = parseInt(d.scheduledTime, 10);
78690
+ else if (typeof d.scheduledTime === "number")
78691
+ m.scheduledTime = d.scheduledTime;
78692
+ else if (typeof d.scheduledTime === "object")
78693
+ m.scheduledTime = new $util.LongBits(d.scheduledTime.low >>> 0, d.scheduledTime.high >>> 0).toNumber(true);
78694
+ }
78695
+ return m;
78696
+ };
78697
+
78698
+ ScheduledMessageMetadata.toObject = function toObject(m, o) {
78699
+ if (!o)
78700
+ o = {};
78701
+ var d = {};
78702
+ if (m.revealKeyId != null && m.hasOwnProperty("revealKeyId")) {
78703
+ d.revealKeyId = m.revealKeyId;
78704
+ if (o.oneofs)
78705
+ d._revealKeyId = "revealKeyId";
78706
+ }
78707
+ if (m.revealKey != null && m.hasOwnProperty("revealKey")) {
78708
+ d.revealKey = o.bytes === String ? $util.base64.encode(m.revealKey, 0, m.revealKey.length) : o.bytes === Array ? Array.prototype.slice.call(m.revealKey) : m.revealKey;
78709
+ if (o.oneofs)
78710
+ d._revealKey = "revealKey";
78711
+ }
78712
+ if (m.scheduledTime != null && m.hasOwnProperty("scheduledTime")) {
78713
+ if (typeof m.scheduledTime === "number")
78714
+ d.scheduledTime = o.longs === String ? String(m.scheduledTime) : m.scheduledTime;
78715
+ else
78716
+ d.scheduledTime = o.longs === String ? longToString(m.scheduledTime, true) : o.longs === Number ? longToNumber(m.scheduledTime, true) : m.scheduledTime;
78717
+ if (o.oneofs)
78718
+ d._scheduledTime = "scheduledTime";
78719
+ }
78720
+ return d;
78721
+ };
78722
+
78723
+ ScheduledMessageMetadata.prototype.toJSON = function toJSON() {
78724
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
78725
+ };
78726
+
78727
+ ScheduledMessageMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
78728
+ if (typeUrlPrefix === undefined) {
78729
+ typeUrlPrefix = "type.googleapis.com";
78730
+ }
78731
+ return typeUrlPrefix + "/proto.ScheduledMessageMetadata";
78732
+ };
78733
+
78734
+ return ScheduledMessageMetadata;
78735
+ })();
78736
+
77722
78737
  proto.SenderKeyDistributionMessage = (function() {
77723
78738
 
77724
78739
  function SenderKeyDistributionMessage(p) {
@@ -100242,6 +101257,8 @@ export const proto = $root.proto = (() => {
100242
101257
  WebMessageInfo.prototype.quarantinedMessage = null;
100243
101258
  WebMessageInfo.prototype.nonJidMentions = null;
100244
101259
  WebMessageInfo.prototype.hsmTag = null;
101260
+ WebMessageInfo.prototype.ephemeralExpirationTimestamp = null;
101261
+ WebMessageInfo.prototype.scheduledMessageMetadata = null;
100245
101262
 
100246
101263
  let $oneOfFields;
100247
101264
 
@@ -100530,6 +101547,16 @@ export const proto = $root.proto = (() => {
100530
101547
  set: $util.oneOfSetter($oneOfFields)
100531
101548
  });
100532
101549
 
101550
+ Object.defineProperty(WebMessageInfo.prototype, "_ephemeralExpirationTimestamp", {
101551
+ get: $util.oneOfGetter($oneOfFields = ["ephemeralExpirationTimestamp"]),
101552
+ set: $util.oneOfSetter($oneOfFields)
101553
+ });
101554
+
101555
+ Object.defineProperty(WebMessageInfo.prototype, "_scheduledMessageMetadata", {
101556
+ get: $util.oneOfGetter($oneOfFields = ["scheduledMessageMetadata"]),
101557
+ set: $util.oneOfSetter($oneOfFields)
101558
+ });
101559
+
100533
101560
  WebMessageInfo.create = function create(properties) {
100534
101561
  return new WebMessageInfo(properties);
100535
101562
  };
@@ -100693,6 +101720,10 @@ export const proto = $root.proto = (() => {
100693
101720
  w.uint32(624).uint32(m.nonJidMentions);
100694
101721
  if (m.hsmTag != null && Object.hasOwnProperty.call(m, "hsmTag"))
100695
101722
  w.uint32(634).string(m.hsmTag);
101723
+ if (m.ephemeralExpirationTimestamp != null && Object.hasOwnProperty.call(m, "ephemeralExpirationTimestamp"))
101724
+ w.uint32(640).uint64(m.ephemeralExpirationTimestamp);
101725
+ if (m.scheduledMessageMetadata != null && Object.hasOwnProperty.call(m, "scheduledMessageMetadata"))
101726
+ $root.proto.ScheduledMessageMetadata.encode(m.scheduledMessageMetadata, w.uint32(650).fork()).ldelim();
100696
101727
  return w;
100697
101728
  };
100698
101729
 
@@ -100997,6 +102028,14 @@ export const proto = $root.proto = (() => {
100997
102028
  m.hsmTag = r.string();
100998
102029
  break;
100999
102030
  }
102031
+ case 80: {
102032
+ m.ephemeralExpirationTimestamp = r.uint64();
102033
+ break;
102034
+ }
102035
+ case 81: {
102036
+ m.scheduledMessageMetadata = $root.proto.ScheduledMessageMetadata.decode(r, r.uint32());
102037
+ break;
102038
+ }
101000
102039
  default:
101001
102040
  r.skipType(t & 7);
101002
102041
  break;
@@ -102004,6 +103043,14 @@ export const proto = $root.proto = (() => {
102004
103043
  case 223:
102005
103044
  m.messageStubType = 223;
102006
103045
  break;
103046
+ case "CONTACT_INFO":
103047
+ case 224:
103048
+ m.messageStubType = 224;
103049
+ break;
103050
+ case "SCHEDULED_MESSAGE_CREATED":
103051
+ case 225:
103052
+ m.messageStubType = 225;
103053
+ break;
102007
103054
  }
102008
103055
  if (d.clearMedia != null) {
102009
103056
  m.clearMedia = Boolean(d.clearMedia);
@@ -102314,6 +103361,21 @@ export const proto = $root.proto = (() => {
102314
103361
  if (d.hsmTag != null) {
102315
103362
  m.hsmTag = String(d.hsmTag);
102316
103363
  }
103364
+ if (d.ephemeralExpirationTimestamp != null) {
103365
+ if ($util.Long)
103366
+ (m.ephemeralExpirationTimestamp = $util.Long.fromValue(d.ephemeralExpirationTimestamp)).unsigned = true;
103367
+ else if (typeof d.ephemeralExpirationTimestamp === "string")
103368
+ m.ephemeralExpirationTimestamp = parseInt(d.ephemeralExpirationTimestamp, 10);
103369
+ else if (typeof d.ephemeralExpirationTimestamp === "number")
103370
+ m.ephemeralExpirationTimestamp = d.ephemeralExpirationTimestamp;
103371
+ else if (typeof d.ephemeralExpirationTimestamp === "object")
103372
+ m.ephemeralExpirationTimestamp = new $util.LongBits(d.ephemeralExpirationTimestamp.low >>> 0, d.ephemeralExpirationTimestamp.high >>> 0).toNumber(true);
103373
+ }
103374
+ if (d.scheduledMessageMetadata != null) {
103375
+ if (typeof d.scheduledMessageMetadata !== "object")
103376
+ throw TypeError(".proto.WebMessageInfo.scheduledMessageMetadata: object expected");
103377
+ m.scheduledMessageMetadata = $root.proto.ScheduledMessageMetadata.fromObject(d.scheduledMessageMetadata);
103378
+ }
102317
103379
  return m;
102318
103380
  };
102319
103381
 
@@ -102699,6 +103761,19 @@ export const proto = $root.proto = (() => {
102699
103761
  if (o.oneofs)
102700
103762
  d._hsmTag = "hsmTag";
102701
103763
  }
103764
+ if (m.ephemeralExpirationTimestamp != null && m.hasOwnProperty("ephemeralExpirationTimestamp")) {
103765
+ if (typeof m.ephemeralExpirationTimestamp === "number")
103766
+ d.ephemeralExpirationTimestamp = o.longs === String ? String(m.ephemeralExpirationTimestamp) : m.ephemeralExpirationTimestamp;
103767
+ else
103768
+ d.ephemeralExpirationTimestamp = o.longs === String ? longToString(m.ephemeralExpirationTimestamp, true) : o.longs === Number ? longToNumber(m.ephemeralExpirationTimestamp, true) : m.ephemeralExpirationTimestamp;
103769
+ if (o.oneofs)
103770
+ d._ephemeralExpirationTimestamp = "ephemeralExpirationTimestamp";
103771
+ }
103772
+ if (m.scheduledMessageMetadata != null && m.hasOwnProperty("scheduledMessageMetadata")) {
103773
+ d.scheduledMessageMetadata = $root.proto.ScheduledMessageMetadata.toObject(m.scheduledMessageMetadata, o);
103774
+ if (o.oneofs)
103775
+ d._scheduledMessageMetadata = "scheduledMessageMetadata";
103776
+ }
102702
103777
  return d;
102703
103778
  };
102704
103779
 
@@ -102959,6 +104034,8 @@ export const proto = $root.proto = (() => {
102959
104034
  values[valuesById[221] = "GROUP_MEMBER_SHARE_GROUP_HISTORY_MODE"] = 221;
102960
104035
  values[valuesById[222] = "GROUP_OPEN_BOT_ADDED"] = 222;
102961
104036
  values[valuesById[223] = "GROUP_TEE_BOT_ADDED"] = 223;
104037
+ values[valuesById[224] = "CONTACT_INFO"] = 224;
104038
+ values[valuesById[225] = "SCHEDULED_MESSAGE_CREATED"] = 225;
102962
104039
  return values;
102963
104040
  })();
102964
104041