@itsliaaa/baileys 0.1.6 → 0.1.8

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
@@ -6758,6 +6758,14 @@ export const proto = $root.proto = (() => {
6758
6758
  case 58:
6759
6759
  m.capabilities[i] = 58;
6760
6760
  break;
6761
+ case "AI_TAB_FORCE_CLIPPY":
6762
+ case 59:
6763
+ m.capabilities[i] = 59;
6764
+ break;
6765
+ case "UNIFIED_RESPONSE_EMBEDDED_SCREENS":
6766
+ case 60:
6767
+ m.capabilities[i] = 60;
6768
+ break;
6761
6769
  }
6762
6770
  }
6763
6771
  }
@@ -6852,6 +6860,8 @@ export const proto = $root.proto = (() => {
6852
6860
  values[valuesById[56] = "RICH_RESPONSE_INLINE_LINKS_ENABLED"] = 56;
6853
6861
  values[valuesById[57] = "RICH_RESPONSE_UR_IMAGINE_VIDEO"] = 57;
6854
6862
  values[valuesById[58] = "JSON_PATCH_STREAMING"] = 58;
6863
+ values[valuesById[59] = "AI_TAB_FORCE_CLIPPY"] = 59;
6864
+ values[valuesById[60] = "UNIFIED_RESPONSE_EMBEDDED_SCREENS"] = 60;
6855
6865
  return values;
6856
6866
  })();
6857
6867
 
@@ -17656,6 +17666,7 @@ export const proto = $root.proto = (() => {
17656
17666
  ClientPairingProps.prototype.isSyncdPureLidSession = null;
17657
17667
  ClientPairingProps.prototype.isSyncdSnapshotRecoveryEnabled = null;
17658
17668
  ClientPairingProps.prototype.isHsThumbnailSyncEnabled = null;
17669
+ ClientPairingProps.prototype.subscriptionSyncPayload = null;
17659
17670
 
17660
17671
  let $oneOfFields;
17661
17672
 
@@ -17679,6 +17690,11 @@ export const proto = $root.proto = (() => {
17679
17690
  set: $util.oneOfSetter($oneOfFields)
17680
17691
  });
17681
17692
 
17693
+ Object.defineProperty(ClientPairingProps.prototype, "_subscriptionSyncPayload", {
17694
+ get: $util.oneOfGetter($oneOfFields = ["subscriptionSyncPayload"]),
17695
+ set: $util.oneOfSetter($oneOfFields)
17696
+ });
17697
+
17682
17698
  ClientPairingProps.create = function create(properties) {
17683
17699
  return new ClientPairingProps(properties);
17684
17700
  };
@@ -17694,6 +17710,8 @@ export const proto = $root.proto = (() => {
17694
17710
  w.uint32(24).bool(m.isSyncdSnapshotRecoveryEnabled);
17695
17711
  if (m.isHsThumbnailSyncEnabled != null && Object.hasOwnProperty.call(m, "isHsThumbnailSyncEnabled"))
17696
17712
  w.uint32(32).bool(m.isHsThumbnailSyncEnabled);
17713
+ if (m.subscriptionSyncPayload != null && Object.hasOwnProperty.call(m, "subscriptionSyncPayload"))
17714
+ w.uint32(42).bytes(m.subscriptionSyncPayload);
17697
17715
  return w;
17698
17716
  };
17699
17717
 
@@ -17722,6 +17740,10 @@ export const proto = $root.proto = (() => {
17722
17740
  m.isHsThumbnailSyncEnabled = r.bool();
17723
17741
  break;
17724
17742
  }
17743
+ case 5: {
17744
+ m.subscriptionSyncPayload = r.bytes();
17745
+ break;
17746
+ }
17725
17747
  default:
17726
17748
  r.skipType(t & 7);
17727
17749
  break;
@@ -17746,6 +17768,12 @@ export const proto = $root.proto = (() => {
17746
17768
  if (d.isHsThumbnailSyncEnabled != null) {
17747
17769
  m.isHsThumbnailSyncEnabled = Boolean(d.isHsThumbnailSyncEnabled);
17748
17770
  }
17771
+ if (d.subscriptionSyncPayload != null) {
17772
+ if (typeof d.subscriptionSyncPayload === "string")
17773
+ $util.base64.decode(d.subscriptionSyncPayload, m.subscriptionSyncPayload = $util.newBuffer($util.base64.length(d.subscriptionSyncPayload)), 0);
17774
+ else if (d.subscriptionSyncPayload.length >= 0)
17775
+ m.subscriptionSyncPayload = d.subscriptionSyncPayload;
17776
+ }
17749
17777
  return m;
17750
17778
  };
17751
17779
 
@@ -17773,6 +17801,11 @@ export const proto = $root.proto = (() => {
17773
17801
  if (o.oneofs)
17774
17802
  d._isHsThumbnailSyncEnabled = "isHsThumbnailSyncEnabled";
17775
17803
  }
17804
+ if (m.subscriptionSyncPayload != null && m.hasOwnProperty("subscriptionSyncPayload")) {
17805
+ d.subscriptionSyncPayload = o.bytes === String ? $util.base64.encode(m.subscriptionSyncPayload, 0, m.subscriptionSyncPayload.length) : o.bytes === Array ? Array.prototype.slice.call(m.subscriptionSyncPayload) : m.subscriptionSyncPayload;
17806
+ if (o.oneofs)
17807
+ d._subscriptionSyncPayload = "subscriptionSyncPayload";
17808
+ }
17776
17809
  return d;
17777
17810
  };
17778
17811
 
@@ -23430,6 +23463,7 @@ export const proto = $root.proto = (() => {
23430
23463
  ExternalAdReplyInfo.prototype.adType = null;
23431
23464
  ExternalAdReplyInfo.prototype.wtwaWebsiteUrl = null;
23432
23465
  ExternalAdReplyInfo.prototype.adPreviewUrl = null;
23466
+ ExternalAdReplyInfo.prototype.containsCtwaFlowsAutoReply = null;
23433
23467
 
23434
23468
  let $oneOfFields;
23435
23469
 
@@ -23568,6 +23602,11 @@ export const proto = $root.proto = (() => {
23568
23602
  set: $util.oneOfSetter($oneOfFields)
23569
23603
  });
23570
23604
 
23605
+ Object.defineProperty(ExternalAdReplyInfo.prototype, "_containsCtwaFlowsAutoReply", {
23606
+ get: $util.oneOfGetter($oneOfFields = ["containsCtwaFlowsAutoReply"]),
23607
+ set: $util.oneOfSetter($oneOfFields)
23608
+ });
23609
+
23571
23610
  ExternalAdReplyInfo.create = function create(properties) {
23572
23611
  return new ExternalAdReplyInfo(properties);
23573
23612
  };
@@ -23629,6 +23668,8 @@ export const proto = $root.proto = (() => {
23629
23668
  w.uint32(210).string(m.wtwaWebsiteUrl);
23630
23669
  if (m.adPreviewUrl != null && Object.hasOwnProperty.call(m, "adPreviewUrl"))
23631
23670
  w.uint32(218).string(m.adPreviewUrl);
23671
+ if (m.containsCtwaFlowsAutoReply != null && Object.hasOwnProperty.call(m, "containsCtwaFlowsAutoReply"))
23672
+ w.uint32(224).bool(m.containsCtwaFlowsAutoReply);
23632
23673
  return w;
23633
23674
  };
23634
23675
 
@@ -23749,6 +23790,10 @@ export const proto = $root.proto = (() => {
23749
23790
  m.adPreviewUrl = r.string();
23750
23791
  break;
23751
23792
  }
23793
+ case 28: {
23794
+ m.containsCtwaFlowsAutoReply = r.bool();
23795
+ break;
23796
+ }
23752
23797
  default:
23753
23798
  r.skipType(t & 7);
23754
23799
  break;
@@ -23875,6 +23920,9 @@ export const proto = $root.proto = (() => {
23875
23920
  if (d.adPreviewUrl != null) {
23876
23921
  m.adPreviewUrl = String(d.adPreviewUrl);
23877
23922
  }
23923
+ if (d.containsCtwaFlowsAutoReply != null) {
23924
+ m.containsCtwaFlowsAutoReply = Boolean(d.containsCtwaFlowsAutoReply);
23925
+ }
23878
23926
  return m;
23879
23927
  };
23880
23928
 
@@ -24017,6 +24065,11 @@ export const proto = $root.proto = (() => {
24017
24065
  if (o.oneofs)
24018
24066
  d._adPreviewUrl = "adPreviewUrl";
24019
24067
  }
24068
+ if (m.containsCtwaFlowsAutoReply != null && m.hasOwnProperty("containsCtwaFlowsAutoReply")) {
24069
+ d.containsCtwaFlowsAutoReply = m.containsCtwaFlowsAutoReply;
24070
+ if (o.oneofs)
24071
+ d._containsCtwaFlowsAutoReply = "containsCtwaFlowsAutoReply";
24072
+ }
24020
24073
  return d;
24021
24074
  };
24022
24075
 
@@ -25022,6 +25075,8 @@ export const proto = $root.proto = (() => {
25022
25075
  Conversation.prototype.limitSharingInitiatedByMe = null;
25023
25076
  Conversation.prototype.maibaAiThreadEnabled = null;
25024
25077
  Conversation.prototype.isMarketingMessageThread = null;
25078
+ Conversation.prototype.isSenderNewAccount = null;
25079
+ Conversation.prototype.afterReadDuration = null;
25025
25080
 
25026
25081
  let $oneOfFields;
25027
25082
 
@@ -25285,6 +25340,16 @@ export const proto = $root.proto = (() => {
25285
25340
  set: $util.oneOfSetter($oneOfFields)
25286
25341
  });
25287
25342
 
25343
+ Object.defineProperty(Conversation.prototype, "_isSenderNewAccount", {
25344
+ get: $util.oneOfGetter($oneOfFields = ["isSenderNewAccount"]),
25345
+ set: $util.oneOfSetter($oneOfFields)
25346
+ });
25347
+
25348
+ Object.defineProperty(Conversation.prototype, "_afterReadDuration", {
25349
+ get: $util.oneOfGetter($oneOfFields = ["afterReadDuration"]),
25350
+ set: $util.oneOfSetter($oneOfFields)
25351
+ });
25352
+
25288
25353
  Conversation.create = function create(properties) {
25289
25354
  return new Conversation(properties);
25290
25355
  };
@@ -25406,6 +25471,10 @@ export const proto = $root.proto = (() => {
25406
25471
  w.uint32(432).bool(m.maibaAiThreadEnabled);
25407
25472
  if (m.isMarketingMessageThread != null && Object.hasOwnProperty.call(m, "isMarketingMessageThread"))
25408
25473
  w.uint32(440).bool(m.isMarketingMessageThread);
25474
+ if (m.isSenderNewAccount != null && Object.hasOwnProperty.call(m, "isSenderNewAccount"))
25475
+ w.uint32(448).bool(m.isSenderNewAccount);
25476
+ if (m.afterReadDuration != null && Object.hasOwnProperty.call(m, "afterReadDuration"))
25477
+ w.uint32(456).uint32(m.afterReadDuration);
25409
25478
  return w;
25410
25479
  };
25411
25480
 
@@ -25642,6 +25711,14 @@ export const proto = $root.proto = (() => {
25642
25711
  m.isMarketingMessageThread = r.bool();
25643
25712
  break;
25644
25713
  }
25714
+ case 56: {
25715
+ m.isSenderNewAccount = r.bool();
25716
+ break;
25717
+ }
25718
+ case 57: {
25719
+ m.afterReadDuration = r.uint32();
25720
+ break;
25721
+ }
25645
25722
  default:
25646
25723
  r.skipType(t & 7);
25647
25724
  break;
@@ -25979,6 +26056,12 @@ export const proto = $root.proto = (() => {
25979
26056
  if (d.isMarketingMessageThread != null) {
25980
26057
  m.isMarketingMessageThread = Boolean(d.isMarketingMessageThread);
25981
26058
  }
26059
+ if (d.isSenderNewAccount != null) {
26060
+ m.isSenderNewAccount = Boolean(d.isSenderNewAccount);
26061
+ }
26062
+ if (d.afterReadDuration != null) {
26063
+ m.afterReadDuration = d.afterReadDuration >>> 0;
26064
+ }
25982
26065
  return m;
25983
26066
  };
25984
26067
 
@@ -26292,6 +26375,16 @@ export const proto = $root.proto = (() => {
26292
26375
  if (o.oneofs)
26293
26376
  d._isMarketingMessageThread = "isMarketingMessageThread";
26294
26377
  }
26378
+ if (m.isSenderNewAccount != null && m.hasOwnProperty("isSenderNewAccount")) {
26379
+ d.isSenderNewAccount = m.isSenderNewAccount;
26380
+ if (o.oneofs)
26381
+ d._isSenderNewAccount = "isSenderNewAccount";
26382
+ }
26383
+ if (m.afterReadDuration != null && m.hasOwnProperty("afterReadDuration")) {
26384
+ d.afterReadDuration = m.afterReadDuration;
26385
+ if (o.oneofs)
26386
+ d._afterReadDuration = "afterReadDuration";
26387
+ }
26295
26388
  return d;
26296
26389
  };
26297
26390
 
@@ -31526,6 +31619,8 @@ export const proto = $root.proto = (() => {
31526
31619
  ClientFinish.prototype["static"] = null;
31527
31620
  ClientFinish.prototype.payload = null;
31528
31621
  ClientFinish.prototype.extendedCiphertext = null;
31622
+ ClientFinish.prototype.paddedBytes = null;
31623
+ ClientFinish.prototype.simulateXxkemFs = null;
31529
31624
 
31530
31625
  let $oneOfFields;
31531
31626
 
@@ -31544,6 +31639,16 @@ export const proto = $root.proto = (() => {
31544
31639
  set: $util.oneOfSetter($oneOfFields)
31545
31640
  });
31546
31641
 
31642
+ Object.defineProperty(ClientFinish.prototype, "_paddedBytes", {
31643
+ get: $util.oneOfGetter($oneOfFields = ["paddedBytes"]),
31644
+ set: $util.oneOfSetter($oneOfFields)
31645
+ });
31646
+
31647
+ Object.defineProperty(ClientFinish.prototype, "_simulateXxkemFs", {
31648
+ get: $util.oneOfGetter($oneOfFields = ["simulateXxkemFs"]),
31649
+ set: $util.oneOfSetter($oneOfFields)
31650
+ });
31651
+
31547
31652
  ClientFinish.create = function create(properties) {
31548
31653
  return new ClientFinish(properties);
31549
31654
  };
@@ -31557,6 +31662,10 @@ export const proto = $root.proto = (() => {
31557
31662
  w.uint32(18).bytes(m.payload);
31558
31663
  if (m.extendedCiphertext != null && Object.hasOwnProperty.call(m, "extendedCiphertext"))
31559
31664
  w.uint32(26).bytes(m.extendedCiphertext);
31665
+ if (m.paddedBytes != null && Object.hasOwnProperty.call(m, "paddedBytes"))
31666
+ w.uint32(34).bytes(m.paddedBytes);
31667
+ if (m.simulateXxkemFs != null && Object.hasOwnProperty.call(m, "simulateXxkemFs"))
31668
+ w.uint32(40).bool(m.simulateXxkemFs);
31560
31669
  return w;
31561
31670
  };
31562
31671
 
@@ -31581,6 +31690,14 @@ export const proto = $root.proto = (() => {
31581
31690
  m.extendedCiphertext = r.bytes();
31582
31691
  break;
31583
31692
  }
31693
+ case 4: {
31694
+ m.paddedBytes = r.bytes();
31695
+ break;
31696
+ }
31697
+ case 5: {
31698
+ m.simulateXxkemFs = r.bool();
31699
+ break;
31700
+ }
31584
31701
  default:
31585
31702
  r.skipType(t & 7);
31586
31703
  break;
@@ -31611,6 +31728,15 @@ export const proto = $root.proto = (() => {
31611
31728
  else if (d.extendedCiphertext.length >= 0)
31612
31729
  m.extendedCiphertext = d.extendedCiphertext;
31613
31730
  }
31731
+ if (d.paddedBytes != null) {
31732
+ if (typeof d.paddedBytes === "string")
31733
+ $util.base64.decode(d.paddedBytes, m.paddedBytes = $util.newBuffer($util.base64.length(d.paddedBytes)), 0);
31734
+ else if (d.paddedBytes.length >= 0)
31735
+ m.paddedBytes = d.paddedBytes;
31736
+ }
31737
+ if (d.simulateXxkemFs != null) {
31738
+ m.simulateXxkemFs = Boolean(d.simulateXxkemFs);
31739
+ }
31614
31740
  return m;
31615
31741
  };
31616
31742
 
@@ -31633,6 +31759,16 @@ export const proto = $root.proto = (() => {
31633
31759
  if (o.oneofs)
31634
31760
  d._extendedCiphertext = "extendedCiphertext";
31635
31761
  }
31762
+ if (m.paddedBytes != null && m.hasOwnProperty("paddedBytes")) {
31763
+ d.paddedBytes = o.bytes === String ? $util.base64.encode(m.paddedBytes, 0, m.paddedBytes.length) : o.bytes === Array ? Array.prototype.slice.call(m.paddedBytes) : m.paddedBytes;
31764
+ if (o.oneofs)
31765
+ d._paddedBytes = "paddedBytes";
31766
+ }
31767
+ if (m.simulateXxkemFs != null && m.hasOwnProperty("simulateXxkemFs")) {
31768
+ d.simulateXxkemFs = m.simulateXxkemFs;
31769
+ if (o.oneofs)
31770
+ d._simulateXxkemFs = "simulateXxkemFs";
31771
+ }
31636
31772
  return d;
31637
31773
  };
31638
31774
 
@@ -31664,6 +31800,9 @@ export const proto = $root.proto = (() => {
31664
31800
  ClientHello.prototype.payload = null;
31665
31801
  ClientHello.prototype.useExtended = null;
31666
31802
  ClientHello.prototype.extendedCiphertext = null;
31803
+ ClientHello.prototype.paddedBytes = null;
31804
+ ClientHello.prototype.sendServerHelloPaddedBytes = null;
31805
+ ClientHello.prototype.simulateXxkemFs = null;
31667
31806
 
31668
31807
  let $oneOfFields;
31669
31808
 
@@ -31692,6 +31831,21 @@ export const proto = $root.proto = (() => {
31692
31831
  set: $util.oneOfSetter($oneOfFields)
31693
31832
  });
31694
31833
 
31834
+ Object.defineProperty(ClientHello.prototype, "_paddedBytes", {
31835
+ get: $util.oneOfGetter($oneOfFields = ["paddedBytes"]),
31836
+ set: $util.oneOfSetter($oneOfFields)
31837
+ });
31838
+
31839
+ Object.defineProperty(ClientHello.prototype, "_sendServerHelloPaddedBytes", {
31840
+ get: $util.oneOfGetter($oneOfFields = ["sendServerHelloPaddedBytes"]),
31841
+ set: $util.oneOfSetter($oneOfFields)
31842
+ });
31843
+
31844
+ Object.defineProperty(ClientHello.prototype, "_simulateXxkemFs", {
31845
+ get: $util.oneOfGetter($oneOfFields = ["simulateXxkemFs"]),
31846
+ set: $util.oneOfSetter($oneOfFields)
31847
+ });
31848
+
31695
31849
  ClientHello.create = function create(properties) {
31696
31850
  return new ClientHello(properties);
31697
31851
  };
@@ -31709,6 +31863,12 @@ export const proto = $root.proto = (() => {
31709
31863
  w.uint32(32).bool(m.useExtended);
31710
31864
  if (m.extendedCiphertext != null && Object.hasOwnProperty.call(m, "extendedCiphertext"))
31711
31865
  w.uint32(42).bytes(m.extendedCiphertext);
31866
+ if (m.paddedBytes != null && Object.hasOwnProperty.call(m, "paddedBytes"))
31867
+ w.uint32(50).bytes(m.paddedBytes);
31868
+ if (m.sendServerHelloPaddedBytes != null && Object.hasOwnProperty.call(m, "sendServerHelloPaddedBytes"))
31869
+ w.uint32(56).bool(m.sendServerHelloPaddedBytes);
31870
+ if (m.simulateXxkemFs != null && Object.hasOwnProperty.call(m, "simulateXxkemFs"))
31871
+ w.uint32(64).bool(m.simulateXxkemFs);
31712
31872
  return w;
31713
31873
  };
31714
31874
 
@@ -31741,6 +31901,18 @@ export const proto = $root.proto = (() => {
31741
31901
  m.extendedCiphertext = r.bytes();
31742
31902
  break;
31743
31903
  }
31904
+ case 6: {
31905
+ m.paddedBytes = r.bytes();
31906
+ break;
31907
+ }
31908
+ case 7: {
31909
+ m.sendServerHelloPaddedBytes = r.bool();
31910
+ break;
31911
+ }
31912
+ case 8: {
31913
+ m.simulateXxkemFs = r.bool();
31914
+ break;
31915
+ }
31744
31916
  default:
31745
31917
  r.skipType(t & 7);
31746
31918
  break;
@@ -31780,6 +31952,18 @@ export const proto = $root.proto = (() => {
31780
31952
  else if (d.extendedCiphertext.length >= 0)
31781
31953
  m.extendedCiphertext = d.extendedCiphertext;
31782
31954
  }
31955
+ if (d.paddedBytes != null) {
31956
+ if (typeof d.paddedBytes === "string")
31957
+ $util.base64.decode(d.paddedBytes, m.paddedBytes = $util.newBuffer($util.base64.length(d.paddedBytes)), 0);
31958
+ else if (d.paddedBytes.length >= 0)
31959
+ m.paddedBytes = d.paddedBytes;
31960
+ }
31961
+ if (d.sendServerHelloPaddedBytes != null) {
31962
+ m.sendServerHelloPaddedBytes = Boolean(d.sendServerHelloPaddedBytes);
31963
+ }
31964
+ if (d.simulateXxkemFs != null) {
31965
+ m.simulateXxkemFs = Boolean(d.simulateXxkemFs);
31966
+ }
31783
31967
  return m;
31784
31968
  };
31785
31969
 
@@ -31812,6 +31996,21 @@ export const proto = $root.proto = (() => {
31812
31996
  if (o.oneofs)
31813
31997
  d._extendedCiphertext = "extendedCiphertext";
31814
31998
  }
31999
+ if (m.paddedBytes != null && m.hasOwnProperty("paddedBytes")) {
32000
+ d.paddedBytes = o.bytes === String ? $util.base64.encode(m.paddedBytes, 0, m.paddedBytes.length) : o.bytes === Array ? Array.prototype.slice.call(m.paddedBytes) : m.paddedBytes;
32001
+ if (o.oneofs)
32002
+ d._paddedBytes = "paddedBytes";
32003
+ }
32004
+ if (m.sendServerHelloPaddedBytes != null && m.hasOwnProperty("sendServerHelloPaddedBytes")) {
32005
+ d.sendServerHelloPaddedBytes = m.sendServerHelloPaddedBytes;
32006
+ if (o.oneofs)
32007
+ d._sendServerHelloPaddedBytes = "sendServerHelloPaddedBytes";
32008
+ }
32009
+ if (m.simulateXxkemFs != null && m.hasOwnProperty("simulateXxkemFs")) {
32010
+ d.simulateXxkemFs = m.simulateXxkemFs;
32011
+ if (o.oneofs)
32012
+ d._simulateXxkemFs = "simulateXxkemFs";
32013
+ }
31815
32014
  return d;
31816
32015
  };
31817
32016
 
@@ -31842,6 +32041,7 @@ export const proto = $root.proto = (() => {
31842
32041
  ServerHello.prototype["static"] = null;
31843
32042
  ServerHello.prototype.payload = null;
31844
32043
  ServerHello.prototype.extendedStatic = null;
32044
+ ServerHello.prototype.paddingBytes = null;
31845
32045
 
31846
32046
  let $oneOfFields;
31847
32047
 
@@ -31865,6 +32065,11 @@ export const proto = $root.proto = (() => {
31865
32065
  set: $util.oneOfSetter($oneOfFields)
31866
32066
  });
31867
32067
 
32068
+ Object.defineProperty(ServerHello.prototype, "_paddingBytes", {
32069
+ get: $util.oneOfGetter($oneOfFields = ["paddingBytes"]),
32070
+ set: $util.oneOfSetter($oneOfFields)
32071
+ });
32072
+
31868
32073
  ServerHello.create = function create(properties) {
31869
32074
  return new ServerHello(properties);
31870
32075
  };
@@ -31880,6 +32085,8 @@ export const proto = $root.proto = (() => {
31880
32085
  w.uint32(26).bytes(m.payload);
31881
32086
  if (m.extendedStatic != null && Object.hasOwnProperty.call(m, "extendedStatic"))
31882
32087
  w.uint32(34).bytes(m.extendedStatic);
32088
+ if (m.paddingBytes != null && Object.hasOwnProperty.call(m, "paddingBytes"))
32089
+ w.uint32(42).bytes(m.paddingBytes);
31883
32090
  return w;
31884
32091
  };
31885
32092
 
@@ -31908,6 +32115,10 @@ export const proto = $root.proto = (() => {
31908
32115
  m.extendedStatic = r.bytes();
31909
32116
  break;
31910
32117
  }
32118
+ case 5: {
32119
+ m.paddingBytes = r.bytes();
32120
+ break;
32121
+ }
31911
32122
  default:
31912
32123
  r.skipType(t & 7);
31913
32124
  break;
@@ -31944,6 +32155,12 @@ export const proto = $root.proto = (() => {
31944
32155
  else if (d.extendedStatic.length >= 0)
31945
32156
  m.extendedStatic = d.extendedStatic;
31946
32157
  }
32158
+ if (d.paddingBytes != null) {
32159
+ if (typeof d.paddingBytes === "string")
32160
+ $util.base64.decode(d.paddingBytes, m.paddingBytes = $util.newBuffer($util.base64.length(d.paddingBytes)), 0);
32161
+ else if (d.paddingBytes.length >= 0)
32162
+ m.paddingBytes = d.paddingBytes;
32163
+ }
31947
32164
  return m;
31948
32165
  };
31949
32166
 
@@ -31971,6 +32188,11 @@ export const proto = $root.proto = (() => {
31971
32188
  if (o.oneofs)
31972
32189
  d._extendedStatic = "extendedStatic";
31973
32190
  }
32191
+ if (m.paddingBytes != null && m.hasOwnProperty("paddingBytes")) {
32192
+ d.paddingBytes = o.bytes === String ? $util.base64.encode(m.paddingBytes, 0, m.paddingBytes.length) : o.bytes === Array ? Array.prototype.slice.call(m.paddingBytes) : m.paddingBytes;
32193
+ if (o.oneofs)
32194
+ d._paddingBytes = "paddingBytes";
32195
+ }
31974
32196
  return d;
31975
32197
  };
31976
32198
 
@@ -55144,6 +55366,7 @@ export const proto = $root.proto = (() => {
55144
55366
  PaymentInviteMessage.prototype.expiryTimestamp = null;
55145
55367
  PaymentInviteMessage.prototype.incentiveEligible = null;
55146
55368
  PaymentInviteMessage.prototype.referralId = null;
55369
+ PaymentInviteMessage.prototype.inviteType = null;
55147
55370
 
55148
55371
  let $oneOfFields;
55149
55372
 
@@ -55167,6 +55390,11 @@ export const proto = $root.proto = (() => {
55167
55390
  set: $util.oneOfSetter($oneOfFields)
55168
55391
  });
55169
55392
 
55393
+ Object.defineProperty(PaymentInviteMessage.prototype, "_inviteType", {
55394
+ get: $util.oneOfGetter($oneOfFields = ["inviteType"]),
55395
+ set: $util.oneOfSetter($oneOfFields)
55396
+ });
55397
+
55170
55398
  PaymentInviteMessage.create = function create(properties) {
55171
55399
  return new PaymentInviteMessage(properties);
55172
55400
  };
@@ -55182,6 +55410,8 @@ export const proto = $root.proto = (() => {
55182
55410
  w.uint32(24).bool(m.incentiveEligible);
55183
55411
  if (m.referralId != null && Object.hasOwnProperty.call(m, "referralId"))
55184
55412
  w.uint32(34).string(m.referralId);
55413
+ if (m.inviteType != null && Object.hasOwnProperty.call(m, "inviteType"))
55414
+ w.uint32(40).int32(m.inviteType);
55185
55415
  return w;
55186
55416
  };
55187
55417
 
@@ -55210,6 +55440,10 @@ export const proto = $root.proto = (() => {
55210
55440
  m.referralId = r.string();
55211
55441
  break;
55212
55442
  }
55443
+ case 5: {
55444
+ m.inviteType = r.int32();
55445
+ break;
55446
+ }
55213
55447
  default:
55214
55448
  r.skipType(t & 7);
55215
55449
  break;
@@ -55262,6 +55496,22 @@ export const proto = $root.proto = (() => {
55262
55496
  if (d.referralId != null) {
55263
55497
  m.referralId = String(d.referralId);
55264
55498
  }
55499
+ switch (d.inviteType) {
55500
+ default:
55501
+ if (typeof d.inviteType === "number") {
55502
+ m.inviteType = d.inviteType;
55503
+ break;
55504
+ }
55505
+ break;
55506
+ case "DEFAULT":
55507
+ case 0:
55508
+ m.inviteType = 0;
55509
+ break;
55510
+ case "MAPPER":
55511
+ case 1:
55512
+ m.inviteType = 1;
55513
+ break;
55514
+ }
55265
55515
  return m;
55266
55516
  };
55267
55517
 
@@ -55292,6 +55542,11 @@ export const proto = $root.proto = (() => {
55292
55542
  if (o.oneofs)
55293
55543
  d._referralId = "referralId";
55294
55544
  }
55545
+ if (m.inviteType != null && m.hasOwnProperty("inviteType")) {
55546
+ d.inviteType = o.enums === String ? $root.proto.Message.PaymentInviteMessage.InviteType[m.inviteType] === undefined ? m.inviteType : $root.proto.Message.PaymentInviteMessage.InviteType[m.inviteType] : m.inviteType;
55547
+ if (o.oneofs)
55548
+ d._inviteType = "inviteType";
55549
+ }
55295
55550
  return d;
55296
55551
  };
55297
55552
 
@@ -55306,6 +55561,13 @@ export const proto = $root.proto = (() => {
55306
55561
  return typeUrlPrefix + "/proto.Message.PaymentInviteMessage";
55307
55562
  };
55308
55563
 
55564
+ PaymentInviteMessage.InviteType = (function() {
55565
+ const valuesById = {}, values = Object.create(valuesById);
55566
+ values[valuesById[0] = "DEFAULT"] = 0;
55567
+ values[valuesById[1] = "MAPPER"] = 1;
55568
+ return values;
55569
+ })();
55570
+
55309
55571
  PaymentInviteMessage.ServiceType = (function() {
55310
55572
  const valuesById = {}, values = Object.create(valuesById);
55311
55573
  values[valuesById[0] = "UNKNOWN"] = 0;
@@ -62896,6 +63158,10 @@ export const proto = $root.proto = (() => {
62896
63158
  case 32:
62897
63159
  m.type = 32;
62898
63160
  break;
63161
+ case "BOT_UNLINK_MESSAGE":
63162
+ case 33:
63163
+ m.type = 33;
63164
+ break;
62899
63165
  }
62900
63166
  if (d.ephemeralExpiration != null) {
62901
63167
  m.ephemeralExpiration = d.ephemeralExpiration >>> 0;
@@ -63209,6 +63475,7 @@ export const proto = $root.proto = (() => {
63209
63475
  values[valuesById[30] = "GROUP_MEMBER_LABEL_CHANGE"] = 30;
63210
63476
  values[valuesById[31] = "AI_MEDIA_COLLECTION_MESSAGE"] = 31;
63211
63477
  values[valuesById[32] = "MESSAGE_UNSCHEDULE"] = 32;
63478
+ values[valuesById[33] = "BOT_UNLINK_MESSAGE"] = 33;
63212
63479
  return values;
63213
63480
  })();
63214
63481
 
@@ -72057,6 +72324,7 @@ export const proto = $root.proto = (() => {
72057
72324
  values[valuesById[82] = "BUSINESS_BROADCAST_INSIGHTS_ACTION"] = 82;
72058
72325
  values[valuesById[83] = "CUSTOMER_DATA_ACTION"] = 83;
72059
72326
  values[valuesById[84] = "SUBSCRIPTIONS_SYNC_V2_ACTION"] = 84;
72327
+ values[valuesById[85] = "THREAD_PIN_ACTION"] = 85;
72060
72328
  values[valuesById[10001] = "SHARE_OWN_PN"] = 10001;
72061
72329
  values[valuesById[10002] = "BUSINESS_BROADCAST_ACTION"] = 10002;
72062
72330
  values[valuesById[10003] = "AI_THREAD_DELETE_ACTION"] = 10003;
@@ -80482,6 +80750,10 @@ export const proto = $root.proto = (() => {
80482
80750
  case 10:
80483
80751
  m.source = 10;
80484
80752
  break;
80753
+ case "SOUNDCLOUD":
80754
+ case 11:
80755
+ m.source = 11;
80756
+ break;
80485
80757
  }
80486
80758
  if (d.duration != null) {
80487
80759
  m.duration = d.duration | 0;
@@ -80543,6 +80815,7 @@ export const proto = $root.proto = (() => {
80543
80815
  values[valuesById[8] = "APPLE_MUSIC"] = 8;
80544
80816
  values[valuesById[9] = "SHARECHAT"] = 9;
80545
80817
  values[valuesById[10] = "GOOGLE_PHOTOS"] = 10;
80818
+ values[valuesById[11] = "SOUNDCLOUD"] = 11;
80546
80819
  return values;
80547
80820
  })();
80548
80821
 
@@ -82081,6 +82354,7 @@ export const proto = $root.proto = (() => {
82081
82354
  SyncActionValue.prototype.businessBroadcastInsightsAction = null;
82082
82355
  SyncActionValue.prototype.customerDataAction = null;
82083
82356
  SyncActionValue.prototype.subscriptionsSyncV2Action = null;
82357
+ SyncActionValue.prototype.threadPinAction = null;
82084
82358
 
82085
82359
  let $oneOfFields;
82086
82360
 
@@ -82459,6 +82733,11 @@ export const proto = $root.proto = (() => {
82459
82733
  set: $util.oneOfSetter($oneOfFields)
82460
82734
  });
82461
82735
 
82736
+ Object.defineProperty(SyncActionValue.prototype, "_threadPinAction", {
82737
+ get: $util.oneOfGetter($oneOfFields = ["threadPinAction"]),
82738
+ set: $util.oneOfSetter($oneOfFields)
82739
+ });
82740
+
82462
82741
  SyncActionValue.create = function create(properties) {
82463
82742
  return new SyncActionValue(properties);
82464
82743
  };
@@ -82616,6 +82895,8 @@ export const proto = $root.proto = (() => {
82616
82895
  $root.proto.SyncActionValue.CustomerDataAction.encode(m.customerDataAction, w.uint32(666).fork()).ldelim();
82617
82896
  if (m.subscriptionsSyncV2Action != null && Object.hasOwnProperty.call(m, "subscriptionsSyncV2Action"))
82618
82897
  $root.proto.SyncActionValue.SubscriptionsSyncV2Action.encode(m.subscriptionsSyncV2Action, w.uint32(674).fork()).ldelim();
82898
+ if (m.threadPinAction != null && Object.hasOwnProperty.call(m, "threadPinAction"))
82899
+ $root.proto.SyncActionValue.ThreadPinAction.encode(m.threadPinAction, w.uint32(682).fork()).ldelim();
82619
82900
  return w;
82620
82901
  };
82621
82902
 
@@ -82928,6 +83209,10 @@ export const proto = $root.proto = (() => {
82928
83209
  m.subscriptionsSyncV2Action = $root.proto.SyncActionValue.SubscriptionsSyncV2Action.decode(r, r.uint32());
82929
83210
  break;
82930
83211
  }
83212
+ case 85: {
83213
+ m.threadPinAction = $root.proto.SyncActionValue.ThreadPinAction.decode(r, r.uint32());
83214
+ break;
83215
+ }
82931
83216
  default:
82932
83217
  r.skipType(t & 7);
82933
83218
  break;
@@ -83320,6 +83605,11 @@ export const proto = $root.proto = (() => {
83320
83605
  throw TypeError(".proto.SyncActionValue.subscriptionsSyncV2Action: object expected");
83321
83606
  m.subscriptionsSyncV2Action = $root.proto.SyncActionValue.SubscriptionsSyncV2Action.fromObject(d.subscriptionsSyncV2Action);
83322
83607
  }
83608
+ if (d.threadPinAction != null) {
83609
+ if (typeof d.threadPinAction !== "object")
83610
+ throw TypeError(".proto.SyncActionValue.threadPinAction: object expected");
83611
+ m.threadPinAction = $root.proto.SyncActionValue.ThreadPinAction.fromObject(d.threadPinAction);
83612
+ }
83323
83613
  return m;
83324
83614
  };
83325
83615
 
@@ -83705,6 +83995,11 @@ export const proto = $root.proto = (() => {
83705
83995
  if (o.oneofs)
83706
83996
  d._subscriptionsSyncV2Action = "subscriptionsSyncV2Action";
83707
83997
  }
83998
+ if (m.threadPinAction != null && m.hasOwnProperty("threadPinAction")) {
83999
+ d.threadPinAction = $root.proto.SyncActionValue.ThreadPinAction.toObject(m.threadPinAction, o);
84000
+ if (o.oneofs)
84001
+ d._threadPinAction = "threadPinAction";
84002
+ }
83708
84003
  return d;
83709
84004
  };
83710
84005
 
@@ -93694,6 +93989,93 @@ export const proto = $root.proto = (() => {
93694
93989
  return SyncActionMessageRange;
93695
93990
  })();
93696
93991
 
93992
+ SyncActionValue.ThreadPinAction = (function() {
93993
+
93994
+ function ThreadPinAction(p) {
93995
+ if (p)
93996
+ for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
93997
+ if (p[ks[i]] != null)
93998
+ this[ks[i]] = p[ks[i]];
93999
+ }
94000
+
94001
+ ThreadPinAction.prototype.pinned = null;
94002
+
94003
+ let $oneOfFields;
94004
+
94005
+ Object.defineProperty(ThreadPinAction.prototype, "_pinned", {
94006
+ get: $util.oneOfGetter($oneOfFields = ["pinned"]),
94007
+ set: $util.oneOfSetter($oneOfFields)
94008
+ });
94009
+
94010
+ ThreadPinAction.create = function create(properties) {
94011
+ return new ThreadPinAction(properties);
94012
+ };
94013
+
94014
+ ThreadPinAction.encode = function encode(m, w) {
94015
+ if (!w)
94016
+ w = $Writer.create();
94017
+ if (m.pinned != null && Object.hasOwnProperty.call(m, "pinned"))
94018
+ w.uint32(8).bool(m.pinned);
94019
+ return w;
94020
+ };
94021
+
94022
+ ThreadPinAction.decode = function decode(r, l, e) {
94023
+ if (!(r instanceof $Reader))
94024
+ r = $Reader.create(r);
94025
+ var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.SyncActionValue.ThreadPinAction();
94026
+ while (r.pos < c) {
94027
+ var t = r.uint32();
94028
+ if (t === e)
94029
+ break;
94030
+ switch (t >>> 3) {
94031
+ case 1: {
94032
+ m.pinned = r.bool();
94033
+ break;
94034
+ }
94035
+ default:
94036
+ r.skipType(t & 7);
94037
+ break;
94038
+ }
94039
+ }
94040
+ return m;
94041
+ };
94042
+
94043
+ ThreadPinAction.fromObject = function fromObject(d) {
94044
+ if (d instanceof $root.proto.SyncActionValue.ThreadPinAction)
94045
+ return d;
94046
+ var m = new $root.proto.SyncActionValue.ThreadPinAction();
94047
+ if (d.pinned != null) {
94048
+ m.pinned = Boolean(d.pinned);
94049
+ }
94050
+ return m;
94051
+ };
94052
+
94053
+ ThreadPinAction.toObject = function toObject(m, o) {
94054
+ if (!o)
94055
+ o = {};
94056
+ var d = {};
94057
+ if (m.pinned != null && m.hasOwnProperty("pinned")) {
94058
+ d.pinned = m.pinned;
94059
+ if (o.oneofs)
94060
+ d._pinned = "pinned";
94061
+ }
94062
+ return d;
94063
+ };
94064
+
94065
+ ThreadPinAction.prototype.toJSON = function toJSON() {
94066
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
94067
+ };
94068
+
94069
+ ThreadPinAction.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
94070
+ if (typeUrlPrefix === undefined) {
94071
+ typeUrlPrefix = "type.googleapis.com";
94072
+ }
94073
+ return typeUrlPrefix + "/proto.SyncActionValue.ThreadPinAction";
94074
+ };
94075
+
94076
+ return ThreadPinAction;
94077
+ })();
94078
+
93697
94079
  SyncActionValue.TimeFormatAction = (function() {
93698
94080
 
93699
94081
  function TimeFormatAction(p) {
@@ -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, 1033846690];
5
+ const version = [2, 3000, 1035194821];
6
6
  export const UNAUTHORIZED_CODES = [401, 403, 419];
7
7
  export const BIZ_BOT_SUPPORT_PAYLOAD = '{"version":1,"is_ai_message":true,"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 } from 'crypto';
3
3
  import { proto } from '../../WAProto/index.js';
4
- const baileysVersion = [2, 3000, 1033846690];
4
+ const baileysVersion = [2, 3000, 1035194821];
5
5
  import { DisconnectReason } from '../Types/index.js';
6
6
  import { getAllBinaryNodeChildren, jidDecode } from '../WABinary/index.js';
7
7
  import { sha256 } from './crypto.js';
@@ -1449,7 +1449,7 @@ export const generateWAMessageFromContent = (jid, message, options) => {
1449
1449
  const timestamp = unixTimestampSeconds(options.timestamp);
1450
1450
  const isNewsletter = isJidNewsletter(jid);
1451
1451
  const { quoted, userJid } = options;
1452
- if (quoted && !isNewsletter) {
1452
+ if (quoted) {
1453
1453
  const participant = quoted.key.fromMe
1454
1454
  ? userJid // TODO: Add support for LIDs
1455
1455
  : quoted.participant || quoted.key.participant || quoted.key.remoteJid;
@@ -1492,7 +1492,7 @@ export const generateWAMessageFromContent = (jid, message, options) => {
1492
1492
  };
1493
1493
  }
1494
1494
  // Lia@Changes 30-01-26 --- Add deviceListMetadata inside messageContextInfo for private chat
1495
- else if (messageContextInfo?.messageSecret && (isPnUser(jid) || isLidUser(jid))) {
1495
+ if (messageContextInfo?.messageSecret && (isPnUser(jid) || isLidUser(jid))) {
1496
1496
  messageContextInfo.deviceListMetadata = {
1497
1497
  recipientKeyHash: randomBytes(10),
1498
1498
  recipientTimestamp: unixTimestampSeconds()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itsliaaa/baileys",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "description": "A simple fork of Baileys for WhatsApp automation",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",
@@ -48,7 +48,7 @@
48
48
  "p-queue": "^9.1.0",
49
49
  "pino": "^9.6.0",
50
50
  "protobufjs": "^7.5.4",
51
- "whatsapp-rust-bridge": "^0.5.3",
51
+ "whatsapp-rust-bridge": "0.5.3",
52
52
  "ws": "^8.19.0"
53
53
  },
54
54
  "peerDependencies": {