@itsliaaa/baileys 0.1.29 → 0.1.31

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
@@ -73291,6 +73291,8 @@ export const proto = $root.proto = (() => {
73291
73291
  values[valuesById[83] = "CUSTOMER_DATA_ACTION"] = 83;
73292
73292
  values[valuesById[84] = "SUBSCRIPTIONS_SYNC_V2_ACTION"] = 84;
73293
73293
  values[valuesById[85] = "THREAD_PIN_ACTION"] = 85;
73294
+ values[valuesById[86] = "AUTO_ORGANIZE_BUSINESS_CHAT_SETTING"] = 86;
73295
+ values[valuesById[87] = "BIZ_AI_SETTINGS_NUDGE_ACTION"] = 87;
73294
73296
  values[valuesById[10001] = "SHARE_OWN_PN"] = 10001;
73295
73297
  values[valuesById[10002] = "BUSINESS_BROADCAST_ACTION"] = 10002;
73296
73298
  values[valuesById[10003] = "AI_THREAD_DELETE_ACTION"] = 10003;
@@ -83461,6 +83463,8 @@ export const proto = $root.proto = (() => {
83461
83463
  SyncActionValue.prototype.customerDataAction = null;
83462
83464
  SyncActionValue.prototype.subscriptionsSyncV2Action = null;
83463
83465
  SyncActionValue.prototype.threadPinAction = null;
83466
+ SyncActionValue.prototype.autoOrganizeBusinessChatSetting = null;
83467
+ SyncActionValue.prototype.bizAiSettingsNudgeAction = null;
83464
83468
 
83465
83469
  let $oneOfFields;
83466
83470
 
@@ -83844,6 +83848,16 @@ export const proto = $root.proto = (() => {
83844
83848
  set: $util.oneOfSetter($oneOfFields)
83845
83849
  });
83846
83850
 
83851
+ Object.defineProperty(SyncActionValue.prototype, "_autoOrganizeBusinessChatSetting", {
83852
+ get: $util.oneOfGetter($oneOfFields = ["autoOrganizeBusinessChatSetting"]),
83853
+ set: $util.oneOfSetter($oneOfFields)
83854
+ });
83855
+
83856
+ Object.defineProperty(SyncActionValue.prototype, "_bizAiSettingsNudgeAction", {
83857
+ get: $util.oneOfGetter($oneOfFields = ["bizAiSettingsNudgeAction"]),
83858
+ set: $util.oneOfSetter($oneOfFields)
83859
+ });
83860
+
83847
83861
  SyncActionValue.create = function create(properties) {
83848
83862
  return new SyncActionValue(properties);
83849
83863
  };
@@ -84003,6 +84017,10 @@ export const proto = $root.proto = (() => {
84003
84017
  $root.proto.SyncActionValue.SubscriptionsSyncV2Action.encode(m.subscriptionsSyncV2Action, w.uint32(674).fork()).ldelim();
84004
84018
  if (m.threadPinAction != null && Object.hasOwnProperty.call(m, "threadPinAction"))
84005
84019
  $root.proto.SyncActionValue.ThreadPinAction.encode(m.threadPinAction, w.uint32(682).fork()).ldelim();
84020
+ if (m.autoOrganizeBusinessChatSetting != null && Object.hasOwnProperty.call(m, "autoOrganizeBusinessChatSetting"))
84021
+ $root.proto.SyncActionValue.AutoOrganizeBusinessChatSetting.encode(m.autoOrganizeBusinessChatSetting, w.uint32(690).fork()).ldelim();
84022
+ if (m.bizAiSettingsNudgeAction != null && Object.hasOwnProperty.call(m, "bizAiSettingsNudgeAction"))
84023
+ $root.proto.SyncActionValue.BizAISettingsNudgeAction.encode(m.bizAiSettingsNudgeAction, w.uint32(698).fork()).ldelim();
84006
84024
  return w;
84007
84025
  };
84008
84026
 
@@ -84319,6 +84337,14 @@ export const proto = $root.proto = (() => {
84319
84337
  m.threadPinAction = $root.proto.SyncActionValue.ThreadPinAction.decode(r, r.uint32());
84320
84338
  break;
84321
84339
  }
84340
+ case 86: {
84341
+ m.autoOrganizeBusinessChatSetting = $root.proto.SyncActionValue.AutoOrganizeBusinessChatSetting.decode(r, r.uint32());
84342
+ break;
84343
+ }
84344
+ case 87: {
84345
+ m.bizAiSettingsNudgeAction = $root.proto.SyncActionValue.BizAISettingsNudgeAction.decode(r, r.uint32());
84346
+ break;
84347
+ }
84322
84348
  default:
84323
84349
  r.skipType(t & 7);
84324
84350
  break;
@@ -84716,6 +84742,16 @@ export const proto = $root.proto = (() => {
84716
84742
  throw TypeError(".proto.SyncActionValue.threadPinAction: object expected");
84717
84743
  m.threadPinAction = $root.proto.SyncActionValue.ThreadPinAction.fromObject(d.threadPinAction);
84718
84744
  }
84745
+ if (d.autoOrganizeBusinessChatSetting != null) {
84746
+ if (typeof d.autoOrganizeBusinessChatSetting !== "object")
84747
+ throw TypeError(".proto.SyncActionValue.autoOrganizeBusinessChatSetting: object expected");
84748
+ m.autoOrganizeBusinessChatSetting = $root.proto.SyncActionValue.AutoOrganizeBusinessChatSetting.fromObject(d.autoOrganizeBusinessChatSetting);
84749
+ }
84750
+ if (d.bizAiSettingsNudgeAction != null) {
84751
+ if (typeof d.bizAiSettingsNudgeAction !== "object")
84752
+ throw TypeError(".proto.SyncActionValue.bizAiSettingsNudgeAction: object expected");
84753
+ m.bizAiSettingsNudgeAction = $root.proto.SyncActionValue.BizAISettingsNudgeAction.fromObject(d.bizAiSettingsNudgeAction);
84754
+ }
84719
84755
  return m;
84720
84756
  };
84721
84757
 
@@ -85106,6 +85142,16 @@ export const proto = $root.proto = (() => {
85106
85142
  if (o.oneofs)
85107
85143
  d._threadPinAction = "threadPinAction";
85108
85144
  }
85145
+ if (m.autoOrganizeBusinessChatSetting != null && m.hasOwnProperty("autoOrganizeBusinessChatSetting")) {
85146
+ d.autoOrganizeBusinessChatSetting = $root.proto.SyncActionValue.AutoOrganizeBusinessChatSetting.toObject(m.autoOrganizeBusinessChatSetting, o);
85147
+ if (o.oneofs)
85148
+ d._autoOrganizeBusinessChatSetting = "autoOrganizeBusinessChatSetting";
85149
+ }
85150
+ if (m.bizAiSettingsNudgeAction != null && m.hasOwnProperty("bizAiSettingsNudgeAction")) {
85151
+ d.bizAiSettingsNudgeAction = $root.proto.SyncActionValue.BizAISettingsNudgeAction.toObject(m.bizAiSettingsNudgeAction, o);
85152
+ if (o.oneofs)
85153
+ d._bizAiSettingsNudgeAction = "bizAiSettingsNudgeAction";
85154
+ }
85109
85155
  return d;
85110
85156
  };
85111
85157
 
@@ -85530,6 +85576,93 @@ export const proto = $root.proto = (() => {
85530
85576
  return ArchiveChatAction;
85531
85577
  })();
85532
85578
 
85579
+ SyncActionValue.AutoOrganizeBusinessChatSetting = (function() {
85580
+
85581
+ function AutoOrganizeBusinessChatSetting(p) {
85582
+ if (p)
85583
+ for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
85584
+ if (p[ks[i]] != null)
85585
+ this[ks[i]] = p[ks[i]];
85586
+ }
85587
+
85588
+ AutoOrganizeBusinessChatSetting.prototype.autoOrganize = null;
85589
+
85590
+ let $oneOfFields;
85591
+
85592
+ Object.defineProperty(AutoOrganizeBusinessChatSetting.prototype, "_autoOrganize", {
85593
+ get: $util.oneOfGetter($oneOfFields = ["autoOrganize"]),
85594
+ set: $util.oneOfSetter($oneOfFields)
85595
+ });
85596
+
85597
+ AutoOrganizeBusinessChatSetting.create = function create(properties) {
85598
+ return new AutoOrganizeBusinessChatSetting(properties);
85599
+ };
85600
+
85601
+ AutoOrganizeBusinessChatSetting.encode = function encode(m, w) {
85602
+ if (!w)
85603
+ w = $Writer.create();
85604
+ if (m.autoOrganize != null && Object.hasOwnProperty.call(m, "autoOrganize"))
85605
+ w.uint32(8).bool(m.autoOrganize);
85606
+ return w;
85607
+ };
85608
+
85609
+ AutoOrganizeBusinessChatSetting.decode = function decode(r, l, e) {
85610
+ if (!(r instanceof $Reader))
85611
+ r = $Reader.create(r);
85612
+ var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.SyncActionValue.AutoOrganizeBusinessChatSetting();
85613
+ while (r.pos < c) {
85614
+ var t = r.uint32();
85615
+ if (t === e)
85616
+ break;
85617
+ switch (t >>> 3) {
85618
+ case 1: {
85619
+ m.autoOrganize = r.bool();
85620
+ break;
85621
+ }
85622
+ default:
85623
+ r.skipType(t & 7);
85624
+ break;
85625
+ }
85626
+ }
85627
+ return m;
85628
+ };
85629
+
85630
+ AutoOrganizeBusinessChatSetting.fromObject = function fromObject(d) {
85631
+ if (d instanceof $root.proto.SyncActionValue.AutoOrganizeBusinessChatSetting)
85632
+ return d;
85633
+ var m = new $root.proto.SyncActionValue.AutoOrganizeBusinessChatSetting();
85634
+ if (d.autoOrganize != null) {
85635
+ m.autoOrganize = Boolean(d.autoOrganize);
85636
+ }
85637
+ return m;
85638
+ };
85639
+
85640
+ AutoOrganizeBusinessChatSetting.toObject = function toObject(m, o) {
85641
+ if (!o)
85642
+ o = {};
85643
+ var d = {};
85644
+ if (m.autoOrganize != null && m.hasOwnProperty("autoOrganize")) {
85645
+ d.autoOrganize = m.autoOrganize;
85646
+ if (o.oneofs)
85647
+ d._autoOrganize = "autoOrganize";
85648
+ }
85649
+ return d;
85650
+ };
85651
+
85652
+ AutoOrganizeBusinessChatSetting.prototype.toJSON = function toJSON() {
85653
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
85654
+ };
85655
+
85656
+ AutoOrganizeBusinessChatSetting.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
85657
+ if (typeUrlPrefix === undefined) {
85658
+ typeUrlPrefix = "type.googleapis.com";
85659
+ }
85660
+ return typeUrlPrefix + "/proto.SyncActionValue.AutoOrganizeBusinessChatSetting";
85661
+ };
85662
+
85663
+ return AutoOrganizeBusinessChatSetting;
85664
+ })();
85665
+
85533
85666
  SyncActionValue.AvatarUpdatedAction = (function() {
85534
85667
 
85535
85668
  function AvatarUpdatedAction(p) {
@@ -85673,6 +85806,193 @@ export const proto = $root.proto = (() => {
85673
85806
  return AvatarUpdatedAction;
85674
85807
  })();
85675
85808
 
85809
+ SyncActionValue.BizAISettingsNudgeAction = (function() {
85810
+
85811
+ function BizAISettingsNudgeAction(p) {
85812
+ if (p)
85813
+ for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
85814
+ if (p[ks[i]] != null)
85815
+ this[ks[i]] = p[ks[i]];
85816
+ }
85817
+
85818
+ BizAISettingsNudgeAction.prototype.category = null;
85819
+ BizAISettingsNudgeAction.prototype.version = null;
85820
+ BizAISettingsNudgeAction.prototype.updatedAtMs = null;
85821
+
85822
+ let $oneOfFields;
85823
+
85824
+ Object.defineProperty(BizAISettingsNudgeAction.prototype, "_category", {
85825
+ get: $util.oneOfGetter($oneOfFields = ["category"]),
85826
+ set: $util.oneOfSetter($oneOfFields)
85827
+ });
85828
+
85829
+ Object.defineProperty(BizAISettingsNudgeAction.prototype, "_version", {
85830
+ get: $util.oneOfGetter($oneOfFields = ["version"]),
85831
+ set: $util.oneOfSetter($oneOfFields)
85832
+ });
85833
+
85834
+ Object.defineProperty(BizAISettingsNudgeAction.prototype, "_updatedAtMs", {
85835
+ get: $util.oneOfGetter($oneOfFields = ["updatedAtMs"]),
85836
+ set: $util.oneOfSetter($oneOfFields)
85837
+ });
85838
+
85839
+ BizAISettingsNudgeAction.create = function create(properties) {
85840
+ return new BizAISettingsNudgeAction(properties);
85841
+ };
85842
+
85843
+ BizAISettingsNudgeAction.encode = function encode(m, w) {
85844
+ if (!w)
85845
+ w = $Writer.create();
85846
+ if (m.category != null && Object.hasOwnProperty.call(m, "category"))
85847
+ w.uint32(8).int32(m.category);
85848
+ if (m.version != null && Object.hasOwnProperty.call(m, "version"))
85849
+ w.uint32(16).int64(m.version);
85850
+ if (m.updatedAtMs != null && Object.hasOwnProperty.call(m, "updatedAtMs"))
85851
+ w.uint32(24).int64(m.updatedAtMs);
85852
+ return w;
85853
+ };
85854
+
85855
+ BizAISettingsNudgeAction.decode = function decode(r, l, e) {
85856
+ if (!(r instanceof $Reader))
85857
+ r = $Reader.create(r);
85858
+ var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.SyncActionValue.BizAISettingsNudgeAction();
85859
+ while (r.pos < c) {
85860
+ var t = r.uint32();
85861
+ if (t === e)
85862
+ break;
85863
+ switch (t >>> 3) {
85864
+ case 1: {
85865
+ m.category = r.int32();
85866
+ break;
85867
+ }
85868
+ case 2: {
85869
+ m.version = r.int64();
85870
+ break;
85871
+ }
85872
+ case 3: {
85873
+ m.updatedAtMs = r.int64();
85874
+ break;
85875
+ }
85876
+ default:
85877
+ r.skipType(t & 7);
85878
+ break;
85879
+ }
85880
+ }
85881
+ return m;
85882
+ };
85883
+
85884
+ BizAISettingsNudgeAction.fromObject = function fromObject(d) {
85885
+ if (d instanceof $root.proto.SyncActionValue.BizAISettingsNudgeAction)
85886
+ return d;
85887
+ var m = new $root.proto.SyncActionValue.BizAISettingsNudgeAction();
85888
+ switch (d.category) {
85889
+ default:
85890
+ if (typeof d.category === "number") {
85891
+ m.category = d.category;
85892
+ break;
85893
+ }
85894
+ break;
85895
+ case "UNKNOWN":
85896
+ case 0:
85897
+ m.category = 0;
85898
+ break;
85899
+ case "INSTRUCTIONS":
85900
+ case 1:
85901
+ m.category = 1;
85902
+ break;
85903
+ case "RESPONSE_SETTINGS":
85904
+ case 2:
85905
+ m.category = 2;
85906
+ break;
85907
+ case "EXAMPLE_RESPONSES":
85908
+ case 3:
85909
+ m.category = 3;
85910
+ break;
85911
+ case "KNOWLEDGE":
85912
+ case 4:
85913
+ m.category = 4;
85914
+ break;
85915
+ case "LEAD_GEN":
85916
+ case 5:
85917
+ m.category = 5;
85918
+ break;
85919
+ }
85920
+ if (d.version != null) {
85921
+ if ($util.Long)
85922
+ (m.version = $util.Long.fromValue(d.version)).unsigned = false;
85923
+ else if (typeof d.version === "string")
85924
+ m.version = parseInt(d.version, 10);
85925
+ else if (typeof d.version === "number")
85926
+ m.version = d.version;
85927
+ else if (typeof d.version === "object")
85928
+ m.version = new $util.LongBits(d.version.low >>> 0, d.version.high >>> 0).toNumber();
85929
+ }
85930
+ if (d.updatedAtMs != null) {
85931
+ if ($util.Long)
85932
+ (m.updatedAtMs = $util.Long.fromValue(d.updatedAtMs)).unsigned = false;
85933
+ else if (typeof d.updatedAtMs === "string")
85934
+ m.updatedAtMs = parseInt(d.updatedAtMs, 10);
85935
+ else if (typeof d.updatedAtMs === "number")
85936
+ m.updatedAtMs = d.updatedAtMs;
85937
+ else if (typeof d.updatedAtMs === "object")
85938
+ m.updatedAtMs = new $util.LongBits(d.updatedAtMs.low >>> 0, d.updatedAtMs.high >>> 0).toNumber();
85939
+ }
85940
+ return m;
85941
+ };
85942
+
85943
+ BizAISettingsNudgeAction.toObject = function toObject(m, o) {
85944
+ if (!o)
85945
+ o = {};
85946
+ var d = {};
85947
+ if (m.category != null && m.hasOwnProperty("category")) {
85948
+ d.category = o.enums === String ? $root.proto.SyncActionValue.BizAISettingsNudgeAction.BizAISettingsCategory[m.category] === undefined ? m.category : $root.proto.SyncActionValue.BizAISettingsNudgeAction.BizAISettingsCategory[m.category] : m.category;
85949
+ if (o.oneofs)
85950
+ d._category = "category";
85951
+ }
85952
+ if (m.version != null && m.hasOwnProperty("version")) {
85953
+ if (typeof m.version === "number")
85954
+ d.version = o.longs === String ? String(m.version) : m.version;
85955
+ else
85956
+ d.version = o.longs === String ? longToString(m.version) : o.longs === Number ? longToNumber(m.version) : m.version;
85957
+ if (o.oneofs)
85958
+ d._version = "version";
85959
+ }
85960
+ if (m.updatedAtMs != null && m.hasOwnProperty("updatedAtMs")) {
85961
+ if (typeof m.updatedAtMs === "number")
85962
+ d.updatedAtMs = o.longs === String ? String(m.updatedAtMs) : m.updatedAtMs;
85963
+ else
85964
+ d.updatedAtMs = o.longs === String ? longToString(m.updatedAtMs) : o.longs === Number ? longToNumber(m.updatedAtMs) : m.updatedAtMs;
85965
+ if (o.oneofs)
85966
+ d._updatedAtMs = "updatedAtMs";
85967
+ }
85968
+ return d;
85969
+ };
85970
+
85971
+ BizAISettingsNudgeAction.prototype.toJSON = function toJSON() {
85972
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
85973
+ };
85974
+
85975
+ BizAISettingsNudgeAction.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
85976
+ if (typeUrlPrefix === undefined) {
85977
+ typeUrlPrefix = "type.googleapis.com";
85978
+ }
85979
+ return typeUrlPrefix + "/proto.SyncActionValue.BizAISettingsNudgeAction";
85980
+ };
85981
+
85982
+ BizAISettingsNudgeAction.BizAISettingsCategory = (function() {
85983
+ const valuesById = {}, values = Object.create(valuesById);
85984
+ values[valuesById[0] = "UNKNOWN"] = 0;
85985
+ values[valuesById[1] = "INSTRUCTIONS"] = 1;
85986
+ values[valuesById[2] = "RESPONSE_SETTINGS"] = 2;
85987
+ values[valuesById[3] = "EXAMPLE_RESPONSES"] = 3;
85988
+ values[valuesById[4] = "KNOWLEDGE"] = 4;
85989
+ values[valuesById[5] = "LEAD_GEN"] = 5;
85990
+ return values;
85991
+ })();
85992
+
85993
+ return BizAISettingsNudgeAction;
85994
+ })();
85995
+
85676
85996
  SyncActionValue.BotWelcomeRequestAction = (function() {
85677
85997
 
85678
85998
  function BotWelcomeRequestAction(p) {
@@ -93685,6 +94005,7 @@ export const proto = $root.proto = (() => {
93685
94005
  function StatusPrivacyAction(p) {
93686
94006
  this.userJid = [];
93687
94007
  this.customLists = [];
94008
+ this.modes = [];
93688
94009
  if (p)
93689
94010
  for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
93690
94011
  if (p[ks[i]] != null)
@@ -93696,6 +94017,7 @@ export const proto = $root.proto = (() => {
93696
94017
  StatusPrivacyAction.prototype.shareToFB = null;
93697
94018
  StatusPrivacyAction.prototype.shareToIG = null;
93698
94019
  StatusPrivacyAction.prototype.customLists = $util.emptyArray;
94020
+ StatusPrivacyAction.prototype.modes = $util.emptyArray;
93699
94021
 
93700
94022
  let $oneOfFields;
93701
94023
 
@@ -93735,6 +94057,12 @@ export const proto = $root.proto = (() => {
93735
94057
  for (var i = 0; i < m.customLists.length; ++i)
93736
94058
  $root.proto.SyncActionValue.StatusPrivacyAction.CustomList.encode(m.customLists[i], w.uint32(42).fork()).ldelim();
93737
94059
  }
94060
+ if (m.modes != null && m.modes.length) {
94061
+ w.uint32(50).fork();
94062
+ for (var i = 0; i < m.modes.length; ++i)
94063
+ w.int32(m.modes[i]);
94064
+ w.ldelim();
94065
+ }
93738
94066
  return w;
93739
94067
  };
93740
94068
 
@@ -93771,6 +94099,17 @@ export const proto = $root.proto = (() => {
93771
94099
  m.customLists.push($root.proto.SyncActionValue.StatusPrivacyAction.CustomList.decode(r, r.uint32()));
93772
94100
  break;
93773
94101
  }
94102
+ case 6: {
94103
+ if (!(m.modes && m.modes.length))
94104
+ m.modes = [];
94105
+ if ((t & 7) === 2) {
94106
+ var c2 = r.uint32() + r.pos;
94107
+ while (r.pos < c2)
94108
+ m.modes.push(r.int32());
94109
+ } else
94110
+ m.modes.push(r.int32());
94111
+ break;
94112
+ }
93774
94113
  default:
93775
94114
  r.skipType(t & 7);
93776
94115
  break;
@@ -93835,6 +94174,40 @@ export const proto = $root.proto = (() => {
93835
94174
  m.customLists[i] = $root.proto.SyncActionValue.StatusPrivacyAction.CustomList.fromObject(d.customLists[i]);
93836
94175
  }
93837
94176
  }
94177
+ if (d.modes) {
94178
+ if (!Array.isArray(d.modes))
94179
+ throw TypeError(".proto.SyncActionValue.StatusPrivacyAction.modes: array expected");
94180
+ m.modes = [];
94181
+ for (var i = 0; i < d.modes.length; ++i) {
94182
+ switch (d.modes[i]) {
94183
+ default:
94184
+ if (typeof d.modes[i] === "number") {
94185
+ m.modes[i] = d.modes[i];
94186
+ break;
94187
+ }
94188
+ case "ALLOW_LIST":
94189
+ case 0:
94190
+ m.modes[i] = 0;
94191
+ break;
94192
+ case "DENY_LIST":
94193
+ case 1:
94194
+ m.modes[i] = 1;
94195
+ break;
94196
+ case "CONTACTS":
94197
+ case 2:
94198
+ m.modes[i] = 2;
94199
+ break;
94200
+ case "CLOSE_FRIENDS":
94201
+ case 3:
94202
+ m.modes[i] = 3;
94203
+ break;
94204
+ case "CUSTOM_LIST":
94205
+ case 4:
94206
+ m.modes[i] = 4;
94207
+ break;
94208
+ }
94209
+ }
94210
+ }
93838
94211
  return m;
93839
94212
  };
93840
94213
 
@@ -93845,6 +94218,7 @@ export const proto = $root.proto = (() => {
93845
94218
  if (o.arrays || o.defaults) {
93846
94219
  d.userJid = [];
93847
94220
  d.customLists = [];
94221
+ d.modes = [];
93848
94222
  }
93849
94223
  if (m.mode != null && m.hasOwnProperty("mode")) {
93850
94224
  d.mode = o.enums === String ? $root.proto.SyncActionValue.StatusPrivacyAction.StatusDistributionMode[m.mode] === undefined ? m.mode : $root.proto.SyncActionValue.StatusPrivacyAction.StatusDistributionMode[m.mode] : m.mode;
@@ -93873,6 +94247,12 @@ export const proto = $root.proto = (() => {
93873
94247
  d.customLists[j] = $root.proto.SyncActionValue.StatusPrivacyAction.CustomList.toObject(m.customLists[j], o);
93874
94248
  }
93875
94249
  }
94250
+ if (m.modes && m.modes.length) {
94251
+ d.modes = [];
94252
+ for (var j = 0; j < m.modes.length; ++j) {
94253
+ d.modes[j] = o.enums === String ? $root.proto.SyncActionValue.StatusPrivacyAction.StatusDistributionMode[m.modes[j]] === undefined ? m.modes[j] : $root.proto.SyncActionValue.StatusPrivacyAction.StatusDistributionMode[m.modes[j]] : m.modes[j];
94254
+ }
94255
+ }
93876
94256
  return d;
93877
94257
  };
93878
94258
 
@@ -2,7 +2,7 @@ import { proto } from '../../WAProto/index.js';
2
2
  import { makeLibSignalRepository } from '../Signal/libsignal.js';
3
3
  import { Browsers } from '../Utils/browser-utils.js';
4
4
  import logger from '../Utils/logger.js';
5
- const version = [2, 3000, 1037013887];
5
+ const version = [2, 3000, 1037828507];
6
6
  export const UNAUTHORIZED_CODES = [401, 403, 419];
7
7
  export const BIZ_BOT_SUPPORT_PAYLOAD = '{"version":1,"is_ai_message":true,"should_upload_client_logs":false,"should_show_system_message":false,"ticket_id":"7004947587700716","citation_items":[],"ticket_locale":"us"}';
8
8
  export const DEFAULT_ORIGIN = 'https://web.whatsapp.com';
@@ -1,7 +1,7 @@
1
1
  import { Boom } from '@hapi/boom';
2
2
  import { createHash, randomBytes, randomFillSync } from 'crypto';
3
3
  import { proto } from '../../WAProto/index.js';
4
- const baileysVersion = [2, 3000, 1037013887];
4
+ const baileysVersion = [2, 3000, 1037828507];
5
5
  import { DisconnectReason } from '../Types/index.js';
6
6
  import { getAllBinaryNodeChildren, jidDecode } from '../WABinary/index.js';
7
7
  import { sha256 } from './crypto.js';