@itsliaaa/baileys 0.3.12 → 0.3.13

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/README.md CHANGED
@@ -2049,11 +2049,15 @@ This fork is based on [Baileys (GitHub)](https://github.com/WhiskeySockets/Baile
2049
2049
 
2050
2050
  ### 📣 Credits
2051
2051
 
2052
+ This fork uses Protocol Buffer definitions maintained by [WPP Connect](https://github.com/wppconnect-team) via [`wa-proto`](https://github.com/wppconnect-team/wa-proto)
2053
+
2052
2054
  Full credit is attributed to the original maintainers and contributors of Baileys:
2053
2055
  - [purpshell](https://github.com/purpshell)
2054
2056
  - [jlucaso1](https://github.com/jlucaso1)
2055
2057
  - [adiwajshing](https://github.com/adiwajshing)
2056
2058
 
2059
+ <!-- Please do not replace my name with yours. It's disrespectful. -->
2060
+
2057
2061
  This fork includes additional enhancements and modifications by [Lia Wynn](https://github.com/itsliaaa)
2058
2062
 
2059
2063
  Special thanks to [itsreimau](https://github.com/itsreimau) for the fix to the `updateBlockStatus` implementation.
@@ -221,6 +221,22 @@ export namespace proto {
221
221
  public static getTypeUrl(typeUrlPrefix?: string): string;
222
222
  }
223
223
 
224
+ interface IAIMetadataOperation {
225
+ hatchMetadataSync?: (proto.IHatchMetadataSync|null);
226
+ }
227
+
228
+ class AIMetadataOperation implements IAIMetadataOperation {
229
+ constructor(p?: proto.IAIMetadataOperation);
230
+ public hatchMetadataSync?: (proto.IHatchMetadataSync|null);
231
+ public static create(properties?: proto.IAIMetadataOperation): proto.AIMetadataOperation;
232
+ public static encode(m: proto.IAIMetadataOperation, w?: $protobuf.Writer): $protobuf.Writer;
233
+ public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.AIMetadataOperation;
234
+ public static fromObject(d: { [k: string]: any }): proto.AIMetadataOperation;
235
+ public static toObject(m: proto.AIMetadataOperation, o?: $protobuf.IConversionOptions): { [k: string]: any };
236
+ public toJSON(): { [k: string]: any };
237
+ public static getTypeUrl(typeUrlPrefix?: string): string;
238
+ }
239
+
224
240
  interface IAIQueryFanout {
225
241
  messageKey?: (proto.IMessageKey|null);
226
242
  message?: (proto.IMessage|null);
@@ -1121,7 +1137,8 @@ export namespace proto {
1121
1137
  AI_SUBSCRIPTION_ENABLED = 61,
1122
1138
  UNIFIED_RESPONSE_AI_CONTENT_SEARCH_ENABLED = 62,
1123
1139
  UNIFIED_RESPONSE_MARKDOWN_LINKS_ENABLED = 63,
1124
- AI_RICH_RESPONSE_MAPS_V2_ENABLED = 64
1140
+ AI_RICH_RESPONSE_MAPS_V2_ENABLED = 64,
1141
+ AI_SUBSCRIPTION_METERING_ENABLED = 65
1125
1142
  }
1126
1143
  }
1127
1144
 
@@ -1732,6 +1749,7 @@ export namespace proto {
1732
1749
  commandMetadata?: (proto.IBotCommandMetadata|null);
1733
1750
  resolvedToolCallMetadata?: (proto.IBotResolvedToolCallMetadata|null);
1734
1751
  subscriptionUpsellMetadata?: (proto.IAISubscriptionUpsellMetadata|null);
1752
+ pttPromptMetadata?: (proto.IBotPttPromptMetadata|null);
1735
1753
  internalMetadata?: (Uint8Array|null);
1736
1754
  }
1737
1755
 
@@ -1777,6 +1795,7 @@ export namespace proto {
1777
1795
  public commandMetadata?: (proto.IBotCommandMetadata|null);
1778
1796
  public resolvedToolCallMetadata?: (proto.IBotResolvedToolCallMetadata|null);
1779
1797
  public subscriptionUpsellMetadata?: (proto.IAISubscriptionUpsellMetadata|null);
1798
+ public pttPromptMetadata?: (proto.IBotPttPromptMetadata|null);
1780
1799
  public internalMetadata?: (Uint8Array|null);
1781
1800
  public static create(properties?: proto.IBotMetadata): proto.BotMetadata;
1782
1801
  public static encode(m: proto.IBotMetadata, w?: $protobuf.Writer): $protobuf.Writer;
@@ -2182,6 +2201,22 @@ export namespace proto {
2182
2201
  public static getTypeUrl(typeUrlPrefix?: string): string;
2183
2202
  }
2184
2203
 
2204
+ interface IBotPttPromptMetadata {
2205
+ transcript?: (string|null);
2206
+ }
2207
+
2208
+ class BotPttPromptMetadata implements IBotPttPromptMetadata {
2209
+ constructor(p?: proto.IBotPttPromptMetadata);
2210
+ public transcript?: (string|null);
2211
+ public static create(properties?: proto.IBotPttPromptMetadata): proto.BotPttPromptMetadata;
2212
+ public static encode(m: proto.IBotPttPromptMetadata, w?: $protobuf.Writer): $protobuf.Writer;
2213
+ public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.BotPttPromptMetadata;
2214
+ public static fromObject(d: { [k: string]: any }): proto.BotPttPromptMetadata;
2215
+ public static toObject(m: proto.BotPttPromptMetadata, o?: $protobuf.IConversionOptions): { [k: string]: any };
2216
+ public toJSON(): { [k: string]: any };
2217
+ public static getTypeUrl(typeUrlPrefix?: string): string;
2218
+ }
2219
+
2185
2220
  interface IBotQuotaMetadata {
2186
2221
  botFeatureQuotaMetadata?: (proto.BotQuotaMetadata.IBotFeatureQuotaMetadata[]|null);
2187
2222
  }
@@ -4919,6 +4954,7 @@ export namespace proto {
4919
4954
  groupRootKey?: (Uint8Array|null);
4920
4955
  keyId?: (string|null);
4921
4956
  expiryTimestampMs?: (number|Long|null);
4957
+ createdTimestampMs?: (number|Long|null);
4922
4958
  }
4923
4959
 
4924
4960
  class GroupRootKeyShareEntry implements IGroupRootKeyShareEntry {
@@ -4926,6 +4962,7 @@ export namespace proto {
4926
4962
  public groupRootKey?: (Uint8Array|null);
4927
4963
  public keyId?: (string|null);
4928
4964
  public expiryTimestampMs?: (number|Long|null);
4965
+ public createdTimestampMs?: (number|Long|null);
4929
4966
  public static create(properties?: proto.IGroupRootKeyShareEntry): proto.GroupRootKeyShareEntry;
4930
4967
  public static encode(m: proto.IGroupRootKeyShareEntry, w?: $protobuf.Writer): $protobuf.Writer;
4931
4968
  public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.GroupRootKeyShareEntry;
@@ -5054,6 +5091,26 @@ export namespace proto {
5054
5091
  }
5055
5092
  }
5056
5093
 
5094
+ interface IHatchMetadataSync {
5095
+ data?: (Uint8Array|null);
5096
+ timestampMs?: (number|Long|null);
5097
+ requestId?: (string|null);
5098
+ }
5099
+
5100
+ class HatchMetadataSync implements IHatchMetadataSync {
5101
+ constructor(p?: proto.IHatchMetadataSync);
5102
+ public data?: (Uint8Array|null);
5103
+ public timestampMs?: (number|Long|null);
5104
+ public requestId?: (string|null);
5105
+ public static create(properties?: proto.IHatchMetadataSync): proto.HatchMetadataSync;
5106
+ public static encode(m: proto.IHatchMetadataSync, w?: $protobuf.Writer): $protobuf.Writer;
5107
+ public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.HatchMetadataSync;
5108
+ public static fromObject(d: { [k: string]: any }): proto.HatchMetadataSync;
5109
+ public static toObject(m: proto.HatchMetadataSync, o?: $protobuf.IConversionOptions): { [k: string]: any };
5110
+ public toJSON(): { [k: string]: any };
5111
+ public static getTypeUrl(typeUrlPrefix?: string): string;
5112
+ }
5113
+
5057
5114
  interface IHistorySync {
5058
5115
  syncType?: (proto.HistorySync.HistorySyncType|null);
5059
5116
  conversations?: (proto.IConversation[]|null);
@@ -7588,6 +7645,7 @@ export namespace proto {
7588
7645
  uuid?: (string|null);
7589
7646
  data?: (string|null);
7590
7647
  type?: (string|null);
7648
+ fallback?: (string|null);
7591
7649
  }
7592
7650
 
7593
7651
  class BloksWidget implements IBloksWidget {
@@ -7595,6 +7653,7 @@ export namespace proto {
7595
7653
  public uuid?: (string|null);
7596
7654
  public data?: (string|null);
7597
7655
  public type?: (string|null);
7656
+ public fallback?: (string|null);
7598
7657
  public static create(properties?: proto.Message.InteractiveMessage.IBloksWidget): proto.Message.InteractiveMessage.BloksWidget;
7599
7658
  public static encode(m: proto.Message.InteractiveMessage.IBloksWidget, w?: $protobuf.Writer): $protobuf.Writer;
7600
7659
  public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.InteractiveMessage.BloksWidget;
@@ -9650,6 +9709,7 @@ export namespace proto {
9650
9709
  aiMediaCollectionMessage?: (proto.IAIMediaCollectionMessage|null);
9651
9710
  afterReadDuration?: (number|null);
9652
9711
  chatThemeSetting?: (proto.Message.IChatThemeSetting|null);
9712
+ aiMetadataOperation?: (proto.IAIMetadataOperation|null);
9653
9713
  }
9654
9714
 
9655
9715
  class ProtocolMessage implements IProtocolMessage {
@@ -9681,6 +9741,7 @@ export namespace proto {
9681
9741
  public aiMediaCollectionMessage?: (proto.IAIMediaCollectionMessage|null);
9682
9742
  public afterReadDuration?: (number|null);
9683
9743
  public chatThemeSetting?: (proto.Message.IChatThemeSetting|null);
9744
+ public aiMetadataOperation?: (proto.IAIMetadataOperation|null);
9684
9745
  public static create(properties?: proto.Message.IProtocolMessage): proto.Message.ProtocolMessage;
9685
9746
  public static encode(m: proto.Message.IProtocolMessage, w?: $protobuf.Writer): $protobuf.Writer;
9686
9747
  public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): proto.Message.ProtocolMessage;
@@ -9721,7 +9782,8 @@ export namespace proto {
9721
9782
  GROUP_MEMBER_LABEL_CHANGE = 30,
9722
9783
  AI_MEDIA_COLLECTION_MESSAGE = 31,
9723
9784
  MESSAGE_UNSCHEDULE = 32,
9724
- CHAT_THEME_SETTING = 34
9785
+ CHAT_THEME_SETTING = 34,
9786
+ AI_METADATA_OPERATION = 35
9725
9787
  }
9726
9788
  }
9727
9789
 
@@ -13498,7 +13560,11 @@ export namespace proto {
13498
13560
  DRAFTED = 8,
13499
13561
  AI_HANDOFF = 9,
13500
13562
  CHANNELS = 10,
13501
- AI_RESPONDING = 11
13563
+ AI_RESPONDING = 11,
13564
+ ARCHIVED = 12,
13565
+ LOCKED = 13,
13566
+ INVITES = 14,
13567
+ THIRD_PARTY = 15
13502
13568
  }
13503
13569
  }
13504
13570
 
package/WAProto/index.js CHANGED
@@ -1687,6 +1687,104 @@ export const proto = $root.proto = (() => {
1687
1687
  return AIMediaCollectionMetadata;
1688
1688
  })();
1689
1689
 
1690
+ proto.AIMetadataOperation = (function() {
1691
+
1692
+ function AIMetadataOperation(p) {
1693
+ if (p)
1694
+ for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
1695
+ if (p[ks[i]] != null && ks[i] !== "__proto__")
1696
+ this[ks[i]] = p[ks[i]];
1697
+ }
1698
+
1699
+ AIMetadataOperation.prototype.hatchMetadataSync = null;
1700
+
1701
+ let $oneOfFields;
1702
+
1703
+ // Virtual OneOf for proto3 optional field
1704
+ Object.defineProperty(AIMetadataOperation.prototype, "_hatchMetadataSync", {
1705
+ get: $util.oneOfGetter($oneOfFields = ["hatchMetadataSync"]),
1706
+ set: $util.oneOfSetter($oneOfFields)
1707
+ });
1708
+
1709
+ AIMetadataOperation.create = function create(properties) {
1710
+ return new AIMetadataOperation(properties);
1711
+ };
1712
+
1713
+ AIMetadataOperation.encode = function encode(m, w) {
1714
+ if (!w)
1715
+ w = $Writer.create();
1716
+ if (m.hatchMetadataSync != null && Object.hasOwnProperty.call(m, "hatchMetadataSync"))
1717
+ $root.proto.HatchMetadataSync.encode(m.hatchMetadataSync, w.uint32(10).fork()).ldelim();
1718
+ return w;
1719
+ };
1720
+
1721
+ AIMetadataOperation.decode = function decode(r, l, e, n) {
1722
+ if (!(r instanceof $Reader))
1723
+ r = $Reader.create(r);
1724
+ if (n === undefined)
1725
+ n = 0;
1726
+ if (n > $Reader.recursionLimit)
1727
+ throw Error("maximum nesting depth exceeded");
1728
+ var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.AIMetadataOperation();
1729
+ while (r.pos < c) {
1730
+ var t = r.uint32();
1731
+ if (t === e)
1732
+ break;
1733
+ switch (t >>> 3) {
1734
+ case 1: {
1735
+ m.hatchMetadataSync = $root.proto.HatchMetadataSync.decode(r, r.uint32(), undefined, n + 1);
1736
+ break;
1737
+ }
1738
+ default:
1739
+ r.skipType(t & 7, n);
1740
+ break;
1741
+ }
1742
+ }
1743
+ return m;
1744
+ };
1745
+
1746
+ AIMetadataOperation.fromObject = function fromObject(d, n) {
1747
+ if (d instanceof $root.proto.AIMetadataOperation)
1748
+ return d;
1749
+ if (n === undefined)
1750
+ n = 0;
1751
+ if (n > $util.recursionLimit)
1752
+ throw Error("maximum nesting depth exceeded");
1753
+ var m = new $root.proto.AIMetadataOperation();
1754
+ if (d.hatchMetadataSync != null) {
1755
+ if (typeof d.hatchMetadataSync !== "object")
1756
+ throw TypeError(".proto.AIMetadataOperation.hatchMetadataSync: object expected");
1757
+ m.hatchMetadataSync = $root.proto.HatchMetadataSync.fromObject(d.hatchMetadataSync, n + 1);
1758
+ }
1759
+ return m;
1760
+ };
1761
+
1762
+ AIMetadataOperation.toObject = function toObject(m, o) {
1763
+ if (!o)
1764
+ o = {};
1765
+ var d = {};
1766
+ if (m.hatchMetadataSync != null && m.hasOwnProperty("hatchMetadataSync")) {
1767
+ d.hatchMetadataSync = $root.proto.HatchMetadataSync.toObject(m.hatchMetadataSync, o);
1768
+ if (o.oneofs)
1769
+ d._hatchMetadataSync = "hatchMetadataSync";
1770
+ }
1771
+ return d;
1772
+ };
1773
+
1774
+ AIMetadataOperation.prototype.toJSON = function toJSON() {
1775
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
1776
+ };
1777
+
1778
+ AIMetadataOperation.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
1779
+ if (typeUrlPrefix === undefined) {
1780
+ typeUrlPrefix = "type.googleapis.com";
1781
+ }
1782
+ return typeUrlPrefix + "/proto.AIMetadataOperation";
1783
+ };
1784
+
1785
+ return AIMetadataOperation;
1786
+ })();
1787
+
1690
1788
  proto.AIQueryFanout = (function() {
1691
1789
 
1692
1790
  function AIQueryFanout(p) {
@@ -7409,6 +7507,10 @@ export const proto = $root.proto = (() => {
7409
7507
  case 64:
7410
7508
  m.capabilities[i] = 64;
7411
7509
  break;
7510
+ case "AI_SUBSCRIPTION_METERING_ENABLED":
7511
+ case 65:
7512
+ m.capabilities[i] = 65;
7513
+ break;
7412
7514
  }
7413
7515
  }
7414
7516
  }
@@ -7509,6 +7611,7 @@ export const proto = $root.proto = (() => {
7509
7611
  values[valuesById[62] = "UNIFIED_RESPONSE_AI_CONTENT_SEARCH_ENABLED"] = 62;
7510
7612
  values[valuesById[63] = "UNIFIED_RESPONSE_MARKDOWN_LINKS_ENABLED"] = 63;
7511
7613
  values[valuesById[64] = "AI_RICH_RESPONSE_MAPS_V2_ENABLED"] = 64;
7614
+ values[valuesById[65] = "AI_SUBSCRIPTION_METERING_ENABLED"] = 65;
7512
7615
  return values;
7513
7616
  })();
7514
7617
 
@@ -11306,6 +11409,7 @@ export const proto = $root.proto = (() => {
11306
11409
  BotMetadata.prototype.commandMetadata = null;
11307
11410
  BotMetadata.prototype.resolvedToolCallMetadata = null;
11308
11411
  BotMetadata.prototype.subscriptionUpsellMetadata = null;
11412
+ BotMetadata.prototype.pttPromptMetadata = null;
11309
11413
  BotMetadata.prototype.internalMetadata = null;
11310
11414
 
11311
11415
  let $oneOfFields;
@@ -11550,6 +11654,12 @@ export const proto = $root.proto = (() => {
11550
11654
  set: $util.oneOfSetter($oneOfFields)
11551
11655
  });
11552
11656
 
11657
+ // Virtual OneOf for proto3 optional field
11658
+ Object.defineProperty(BotMetadata.prototype, "_pttPromptMetadata", {
11659
+ get: $util.oneOfGetter($oneOfFields = ["pttPromptMetadata"]),
11660
+ set: $util.oneOfSetter($oneOfFields)
11661
+ });
11662
+
11553
11663
  // Virtual OneOf for proto3 optional field
11554
11664
  Object.defineProperty(BotMetadata.prototype, "_internalMetadata", {
11555
11665
  get: $util.oneOfGetter($oneOfFields = ["internalMetadata"]),
@@ -11643,6 +11753,8 @@ export const proto = $root.proto = (() => {
11643
11753
  $root.proto.BotResolvedToolCallMetadata.encode(m.resolvedToolCallMetadata, w.uint32(322).fork()).ldelim();
11644
11754
  if (m.subscriptionUpsellMetadata != null && Object.hasOwnProperty.call(m, "subscriptionUpsellMetadata"))
11645
11755
  $root.proto.AISubscriptionUpsellMetadata.encode(m.subscriptionUpsellMetadata, w.uint32(330).fork()).ldelim();
11756
+ if (m.pttPromptMetadata != null && Object.hasOwnProperty.call(m, "pttPromptMetadata"))
11757
+ $root.proto.BotPttPromptMetadata.encode(m.pttPromptMetadata, w.uint32(338).fork()).ldelim();
11646
11758
  if (m.internalMetadata != null && Object.hasOwnProperty.call(m, "internalMetadata"))
11647
11759
  w.uint32(7994).bytes(m.internalMetadata);
11648
11760
  return w;
@@ -11821,6 +11933,10 @@ export const proto = $root.proto = (() => {
11821
11933
  m.subscriptionUpsellMetadata = $root.proto.AISubscriptionUpsellMetadata.decode(r, r.uint32(), undefined, n + 1);
11822
11934
  break;
11823
11935
  }
11936
+ case 42: {
11937
+ m.pttPromptMetadata = $root.proto.BotPttPromptMetadata.decode(r, r.uint32(), undefined, n + 1);
11938
+ break;
11939
+ }
11824
11940
  case 999: {
11825
11941
  m.internalMetadata = r.bytes();
11826
11942
  break;
@@ -12030,6 +12146,11 @@ export const proto = $root.proto = (() => {
12030
12146
  throw TypeError(".proto.BotMetadata.subscriptionUpsellMetadata: object expected");
12031
12147
  m.subscriptionUpsellMetadata = $root.proto.AISubscriptionUpsellMetadata.fromObject(d.subscriptionUpsellMetadata, n + 1);
12032
12148
  }
12149
+ if (d.pttPromptMetadata != null) {
12150
+ if (typeof d.pttPromptMetadata !== "object")
12151
+ throw TypeError(".proto.BotMetadata.pttPromptMetadata: object expected");
12152
+ m.pttPromptMetadata = $root.proto.BotPttPromptMetadata.fromObject(d.pttPromptMetadata, n + 1);
12153
+ }
12033
12154
  if (d.internalMetadata != null) {
12034
12155
  if (typeof d.internalMetadata === "string")
12035
12156
  $util.base64.decode(d.internalMetadata, m.internalMetadata = $util.newBuffer($util.base64.length(d.internalMetadata)), 0);
@@ -12243,6 +12364,11 @@ export const proto = $root.proto = (() => {
12243
12364
  if (o.oneofs)
12244
12365
  d._subscriptionUpsellMetadata = "subscriptionUpsellMetadata";
12245
12366
  }
12367
+ if (m.pttPromptMetadata != null && m.hasOwnProperty("pttPromptMetadata")) {
12368
+ d.pttPromptMetadata = $root.proto.BotPttPromptMetadata.toObject(m.pttPromptMetadata, o);
12369
+ if (o.oneofs)
12370
+ d._pttPromptMetadata = "pttPromptMetadata";
12371
+ }
12246
12372
  if (m.internalMetadata != null && m.hasOwnProperty("internalMetadata")) {
12247
12373
  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;
12248
12374
  if (o.oneofs)
@@ -14754,6 +14880,102 @@ export const proto = $root.proto = (() => {
14754
14880
  return BotPromptSuggestions;
14755
14881
  })();
14756
14882
 
14883
+ proto.BotPttPromptMetadata = (function() {
14884
+
14885
+ function BotPttPromptMetadata(p) {
14886
+ if (p)
14887
+ for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
14888
+ if (p[ks[i]] != null && ks[i] !== "__proto__")
14889
+ this[ks[i]] = p[ks[i]];
14890
+ }
14891
+
14892
+ BotPttPromptMetadata.prototype.transcript = null;
14893
+
14894
+ let $oneOfFields;
14895
+
14896
+ // Virtual OneOf for proto3 optional field
14897
+ Object.defineProperty(BotPttPromptMetadata.prototype, "_transcript", {
14898
+ get: $util.oneOfGetter($oneOfFields = ["transcript"]),
14899
+ set: $util.oneOfSetter($oneOfFields)
14900
+ });
14901
+
14902
+ BotPttPromptMetadata.create = function create(properties) {
14903
+ return new BotPttPromptMetadata(properties);
14904
+ };
14905
+
14906
+ BotPttPromptMetadata.encode = function encode(m, w) {
14907
+ if (!w)
14908
+ w = $Writer.create();
14909
+ if (m.transcript != null && Object.hasOwnProperty.call(m, "transcript"))
14910
+ w.uint32(10).string(m.transcript);
14911
+ return w;
14912
+ };
14913
+
14914
+ BotPttPromptMetadata.decode = function decode(r, l, e, n) {
14915
+ if (!(r instanceof $Reader))
14916
+ r = $Reader.create(r);
14917
+ if (n === undefined)
14918
+ n = 0;
14919
+ if (n > $Reader.recursionLimit)
14920
+ throw Error("maximum nesting depth exceeded");
14921
+ var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.BotPttPromptMetadata();
14922
+ while (r.pos < c) {
14923
+ var t = r.uint32();
14924
+ if (t === e)
14925
+ break;
14926
+ switch (t >>> 3) {
14927
+ case 1: {
14928
+ m.transcript = r.string();
14929
+ break;
14930
+ }
14931
+ default:
14932
+ r.skipType(t & 7, n);
14933
+ break;
14934
+ }
14935
+ }
14936
+ return m;
14937
+ };
14938
+
14939
+ BotPttPromptMetadata.fromObject = function fromObject(d, n) {
14940
+ if (d instanceof $root.proto.BotPttPromptMetadata)
14941
+ return d;
14942
+ if (n === undefined)
14943
+ n = 0;
14944
+ if (n > $util.recursionLimit)
14945
+ throw Error("maximum nesting depth exceeded");
14946
+ var m = new $root.proto.BotPttPromptMetadata();
14947
+ if (d.transcript != null) {
14948
+ m.transcript = String(d.transcript);
14949
+ }
14950
+ return m;
14951
+ };
14952
+
14953
+ BotPttPromptMetadata.toObject = function toObject(m, o) {
14954
+ if (!o)
14955
+ o = {};
14956
+ var d = {};
14957
+ if (m.transcript != null && m.hasOwnProperty("transcript")) {
14958
+ d.transcript = m.transcript;
14959
+ if (o.oneofs)
14960
+ d._transcript = "transcript";
14961
+ }
14962
+ return d;
14963
+ };
14964
+
14965
+ BotPttPromptMetadata.prototype.toJSON = function toJSON() {
14966
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
14967
+ };
14968
+
14969
+ BotPttPromptMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
14970
+ if (typeUrlPrefix === undefined) {
14971
+ typeUrlPrefix = "type.googleapis.com";
14972
+ }
14973
+ return typeUrlPrefix + "/proto.BotPttPromptMetadata";
14974
+ };
14975
+
14976
+ return BotPttPromptMetadata;
14977
+ })();
14978
+
14757
14979
  proto.BotQuotaMetadata = (function() {
14758
14980
 
14759
14981
  function BotQuotaMetadata(p) {
@@ -34960,6 +35182,7 @@ export const proto = $root.proto = (() => {
34960
35182
  GroupRootKeyShareEntry.prototype.groupRootKey = null;
34961
35183
  GroupRootKeyShareEntry.prototype.keyId = null;
34962
35184
  GroupRootKeyShareEntry.prototype.expiryTimestampMs = null;
35185
+ GroupRootKeyShareEntry.prototype.createdTimestampMs = null;
34963
35186
 
34964
35187
  let $oneOfFields;
34965
35188
 
@@ -34981,6 +35204,12 @@ export const proto = $root.proto = (() => {
34981
35204
  set: $util.oneOfSetter($oneOfFields)
34982
35205
  });
34983
35206
 
35207
+ // Virtual OneOf for proto3 optional field
35208
+ Object.defineProperty(GroupRootKeyShareEntry.prototype, "_createdTimestampMs", {
35209
+ get: $util.oneOfGetter($oneOfFields = ["createdTimestampMs"]),
35210
+ set: $util.oneOfSetter($oneOfFields)
35211
+ });
35212
+
34984
35213
  GroupRootKeyShareEntry.create = function create(properties) {
34985
35214
  return new GroupRootKeyShareEntry(properties);
34986
35215
  };
@@ -34994,6 +35223,8 @@ export const proto = $root.proto = (() => {
34994
35223
  w.uint32(18).string(m.keyId);
34995
35224
  if (m.expiryTimestampMs != null && Object.hasOwnProperty.call(m, "expiryTimestampMs"))
34996
35225
  w.uint32(24).int64(m.expiryTimestampMs);
35226
+ if (m.createdTimestampMs != null && Object.hasOwnProperty.call(m, "createdTimestampMs"))
35227
+ w.uint32(32).int64(m.createdTimestampMs);
34997
35228
  return w;
34998
35229
  };
34999
35230
 
@@ -35022,6 +35253,10 @@ export const proto = $root.proto = (() => {
35022
35253
  m.expiryTimestampMs = r.int64();
35023
35254
  break;
35024
35255
  }
35256
+ case 4: {
35257
+ m.createdTimestampMs = r.int64();
35258
+ break;
35259
+ }
35025
35260
  default:
35026
35261
  r.skipType(t & 7, n);
35027
35262
  break;
@@ -35057,6 +35292,16 @@ export const proto = $root.proto = (() => {
35057
35292
  else if (typeof d.expiryTimestampMs === "object")
35058
35293
  m.expiryTimestampMs = new $util.LongBits(d.expiryTimestampMs.low >>> 0, d.expiryTimestampMs.high >>> 0).toNumber();
35059
35294
  }
35295
+ if (d.createdTimestampMs != null) {
35296
+ if ($util.Long)
35297
+ (m.createdTimestampMs = $util.Long.fromValue(d.createdTimestampMs)).unsigned = false;
35298
+ else if (typeof d.createdTimestampMs === "string")
35299
+ m.createdTimestampMs = parseInt(d.createdTimestampMs, 10);
35300
+ else if (typeof d.createdTimestampMs === "number")
35301
+ m.createdTimestampMs = d.createdTimestampMs;
35302
+ else if (typeof d.createdTimestampMs === "object")
35303
+ m.createdTimestampMs = new $util.LongBits(d.createdTimestampMs.low >>> 0, d.createdTimestampMs.high >>> 0).toNumber();
35304
+ }
35060
35305
  return m;
35061
35306
  };
35062
35307
 
@@ -35082,6 +35327,14 @@ export const proto = $root.proto = (() => {
35082
35327
  if (o.oneofs)
35083
35328
  d._expiryTimestampMs = "expiryTimestampMs";
35084
35329
  }
35330
+ if (m.createdTimestampMs != null && m.hasOwnProperty("createdTimestampMs")) {
35331
+ if (typeof m.createdTimestampMs === "number")
35332
+ d.createdTimestampMs = o.longs === String ? String(m.createdTimestampMs) : m.createdTimestampMs;
35333
+ else
35334
+ d.createdTimestampMs = o.longs === String ? longToString(m.createdTimestampMs) : o.longs === Number ? longToNumber(m.createdTimestampMs) : m.createdTimestampMs;
35335
+ if (o.oneofs)
35336
+ d._createdTimestampMs = "createdTimestampMs";
35337
+ }
35085
35338
  return d;
35086
35339
  };
35087
35340
 
@@ -36012,6 +36265,157 @@ export const proto = $root.proto = (() => {
36012
36265
  return HandshakeMessage;
36013
36266
  })();
36014
36267
 
36268
+ proto.HatchMetadataSync = (function() {
36269
+
36270
+ function HatchMetadataSync(p) {
36271
+ if (p)
36272
+ for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
36273
+ if (p[ks[i]] != null && ks[i] !== "__proto__")
36274
+ this[ks[i]] = p[ks[i]];
36275
+ }
36276
+
36277
+ HatchMetadataSync.prototype.data = null;
36278
+ HatchMetadataSync.prototype.timestampMs = null;
36279
+ HatchMetadataSync.prototype.requestId = null;
36280
+
36281
+ let $oneOfFields;
36282
+
36283
+ // Virtual OneOf for proto3 optional field
36284
+ Object.defineProperty(HatchMetadataSync.prototype, "_data", {
36285
+ get: $util.oneOfGetter($oneOfFields = ["data"]),
36286
+ set: $util.oneOfSetter($oneOfFields)
36287
+ });
36288
+
36289
+ // Virtual OneOf for proto3 optional field
36290
+ Object.defineProperty(HatchMetadataSync.prototype, "_timestampMs", {
36291
+ get: $util.oneOfGetter($oneOfFields = ["timestampMs"]),
36292
+ set: $util.oneOfSetter($oneOfFields)
36293
+ });
36294
+
36295
+ // Virtual OneOf for proto3 optional field
36296
+ Object.defineProperty(HatchMetadataSync.prototype, "_requestId", {
36297
+ get: $util.oneOfGetter($oneOfFields = ["requestId"]),
36298
+ set: $util.oneOfSetter($oneOfFields)
36299
+ });
36300
+
36301
+ HatchMetadataSync.create = function create(properties) {
36302
+ return new HatchMetadataSync(properties);
36303
+ };
36304
+
36305
+ HatchMetadataSync.encode = function encode(m, w) {
36306
+ if (!w)
36307
+ w = $Writer.create();
36308
+ if (m.data != null && Object.hasOwnProperty.call(m, "data"))
36309
+ w.uint32(10).bytes(m.data);
36310
+ if (m.timestampMs != null && Object.hasOwnProperty.call(m, "timestampMs"))
36311
+ w.uint32(16).int64(m.timestampMs);
36312
+ if (m.requestId != null && Object.hasOwnProperty.call(m, "requestId"))
36313
+ w.uint32(26).string(m.requestId);
36314
+ return w;
36315
+ };
36316
+
36317
+ HatchMetadataSync.decode = function decode(r, l, e, n) {
36318
+ if (!(r instanceof $Reader))
36319
+ r = $Reader.create(r);
36320
+ if (n === undefined)
36321
+ n = 0;
36322
+ if (n > $Reader.recursionLimit)
36323
+ throw Error("maximum nesting depth exceeded");
36324
+ var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.HatchMetadataSync();
36325
+ while (r.pos < c) {
36326
+ var t = r.uint32();
36327
+ if (t === e)
36328
+ break;
36329
+ switch (t >>> 3) {
36330
+ case 1: {
36331
+ m.data = r.bytes();
36332
+ break;
36333
+ }
36334
+ case 2: {
36335
+ m.timestampMs = r.int64();
36336
+ break;
36337
+ }
36338
+ case 3: {
36339
+ m.requestId = r.string();
36340
+ break;
36341
+ }
36342
+ default:
36343
+ r.skipType(t & 7, n);
36344
+ break;
36345
+ }
36346
+ }
36347
+ return m;
36348
+ };
36349
+
36350
+ HatchMetadataSync.fromObject = function fromObject(d, n) {
36351
+ if (d instanceof $root.proto.HatchMetadataSync)
36352
+ return d;
36353
+ if (n === undefined)
36354
+ n = 0;
36355
+ if (n > $util.recursionLimit)
36356
+ throw Error("maximum nesting depth exceeded");
36357
+ var m = new $root.proto.HatchMetadataSync();
36358
+ if (d.data != null) {
36359
+ if (typeof d.data === "string")
36360
+ $util.base64.decode(d.data, m.data = $util.newBuffer($util.base64.length(d.data)), 0);
36361
+ else if (d.data.length >= 0)
36362
+ m.data = d.data;
36363
+ }
36364
+ if (d.timestampMs != null) {
36365
+ if ($util.Long)
36366
+ (m.timestampMs = $util.Long.fromValue(d.timestampMs)).unsigned = false;
36367
+ else if (typeof d.timestampMs === "string")
36368
+ m.timestampMs = parseInt(d.timestampMs, 10);
36369
+ else if (typeof d.timestampMs === "number")
36370
+ m.timestampMs = d.timestampMs;
36371
+ else if (typeof d.timestampMs === "object")
36372
+ m.timestampMs = new $util.LongBits(d.timestampMs.low >>> 0, d.timestampMs.high >>> 0).toNumber();
36373
+ }
36374
+ if (d.requestId != null) {
36375
+ m.requestId = String(d.requestId);
36376
+ }
36377
+ return m;
36378
+ };
36379
+
36380
+ HatchMetadataSync.toObject = function toObject(m, o) {
36381
+ if (!o)
36382
+ o = {};
36383
+ var d = {};
36384
+ if (m.data != null && m.hasOwnProperty("data")) {
36385
+ d.data = o.bytes === String ? $util.base64.encode(m.data, 0, m.data.length) : o.bytes === Array ? Array.prototype.slice.call(m.data) : m.data;
36386
+ if (o.oneofs)
36387
+ d._data = "data";
36388
+ }
36389
+ if (m.timestampMs != null && m.hasOwnProperty("timestampMs")) {
36390
+ if (typeof m.timestampMs === "number")
36391
+ d.timestampMs = o.longs === String ? String(m.timestampMs) : m.timestampMs;
36392
+ else
36393
+ d.timestampMs = o.longs === String ? longToString(m.timestampMs) : o.longs === Number ? longToNumber(m.timestampMs) : m.timestampMs;
36394
+ if (o.oneofs)
36395
+ d._timestampMs = "timestampMs";
36396
+ }
36397
+ if (m.requestId != null && m.hasOwnProperty("requestId")) {
36398
+ d.requestId = m.requestId;
36399
+ if (o.oneofs)
36400
+ d._requestId = "requestId";
36401
+ }
36402
+ return d;
36403
+ };
36404
+
36405
+ HatchMetadataSync.prototype.toJSON = function toJSON() {
36406
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
36407
+ };
36408
+
36409
+ HatchMetadataSync.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
36410
+ if (typeUrlPrefix === undefined) {
36411
+ typeUrlPrefix = "type.googleapis.com";
36412
+ }
36413
+ return typeUrlPrefix + "/proto.HatchMetadataSync";
36414
+ };
36415
+
36416
+ return HatchMetadataSync;
36417
+ })();
36418
+
36015
36419
  proto.HistorySync = (function() {
36016
36420
 
36017
36421
  function HistorySync(p) {
@@ -55400,6 +55804,7 @@ export const proto = $root.proto = (() => {
55400
55804
  BloksWidget.prototype.uuid = null;
55401
55805
  BloksWidget.prototype.data = null;
55402
55806
  BloksWidget.prototype.type = null;
55807
+ BloksWidget.prototype.fallback = null;
55403
55808
 
55404
55809
  let $oneOfFields;
55405
55810
 
@@ -55421,6 +55826,12 @@ export const proto = $root.proto = (() => {
55421
55826
  set: $util.oneOfSetter($oneOfFields)
55422
55827
  });
55423
55828
 
55829
+ // Virtual OneOf for proto3 optional field
55830
+ Object.defineProperty(BloksWidget.prototype, "_fallback", {
55831
+ get: $util.oneOfGetter($oneOfFields = ["fallback"]),
55832
+ set: $util.oneOfSetter($oneOfFields)
55833
+ });
55834
+
55424
55835
  BloksWidget.create = function create(properties) {
55425
55836
  return new BloksWidget(properties);
55426
55837
  };
@@ -55434,6 +55845,8 @@ export const proto = $root.proto = (() => {
55434
55845
  w.uint32(18).string(m.data);
55435
55846
  if (m.type != null && Object.hasOwnProperty.call(m, "type"))
55436
55847
  w.uint32(26).string(m.type);
55848
+ if (m.fallback != null && Object.hasOwnProperty.call(m, "fallback"))
55849
+ w.uint32(34).string(m.fallback);
55437
55850
  return w;
55438
55851
  };
55439
55852
 
@@ -55462,6 +55875,10 @@ export const proto = $root.proto = (() => {
55462
55875
  m.type = r.string();
55463
55876
  break;
55464
55877
  }
55878
+ case 4: {
55879
+ m.fallback = r.string();
55880
+ break;
55881
+ }
55465
55882
  default:
55466
55883
  r.skipType(t & 7, n);
55467
55884
  break;
@@ -55487,6 +55904,9 @@ export const proto = $root.proto = (() => {
55487
55904
  if (d.type != null) {
55488
55905
  m.type = String(d.type);
55489
55906
  }
55907
+ if (d.fallback != null) {
55908
+ m.fallback = String(d.fallback);
55909
+ }
55490
55910
  return m;
55491
55911
  };
55492
55912
 
@@ -55509,6 +55929,11 @@ export const proto = $root.proto = (() => {
55509
55929
  if (o.oneofs)
55510
55930
  d._type = "type";
55511
55931
  }
55932
+ if (m.fallback != null && m.hasOwnProperty("fallback")) {
55933
+ d.fallback = m.fallback;
55934
+ if (o.oneofs)
55935
+ d._fallback = "fallback";
55936
+ }
55512
55937
  return d;
55513
55938
  };
55514
55939
 
@@ -70046,6 +70471,7 @@ export const proto = $root.proto = (() => {
70046
70471
  ProtocolMessage.prototype.aiMediaCollectionMessage = null;
70047
70472
  ProtocolMessage.prototype.afterReadDuration = null;
70048
70473
  ProtocolMessage.prototype.chatThemeSetting = null;
70474
+ ProtocolMessage.prototype.aiMetadataOperation = null;
70049
70475
 
70050
70476
  let $oneOfFields;
70051
70477
 
@@ -70211,6 +70637,12 @@ export const proto = $root.proto = (() => {
70211
70637
  set: $util.oneOfSetter($oneOfFields)
70212
70638
  });
70213
70639
 
70640
+ // Virtual OneOf for proto3 optional field
70641
+ Object.defineProperty(ProtocolMessage.prototype, "_aiMetadataOperation", {
70642
+ get: $util.oneOfGetter($oneOfFields = ["aiMetadataOperation"]),
70643
+ set: $util.oneOfSetter($oneOfFields)
70644
+ });
70645
+
70214
70646
  ProtocolMessage.create = function create(properties) {
70215
70647
  return new ProtocolMessage(properties);
70216
70648
  };
@@ -70272,6 +70704,8 @@ export const proto = $root.proto = (() => {
70272
70704
  w.uint32(232).uint32(m.afterReadDuration);
70273
70705
  if (m.chatThemeSetting != null && Object.hasOwnProperty.call(m, "chatThemeSetting"))
70274
70706
  $root.proto.Message.ChatThemeSetting.encode(m.chatThemeSetting, w.uint32(242).fork()).ldelim();
70707
+ if (m.aiMetadataOperation != null && Object.hasOwnProperty.call(m, "aiMetadataOperation"))
70708
+ $root.proto.AIMetadataOperation.encode(m.aiMetadataOperation, w.uint32(250).fork()).ldelim();
70275
70709
  return w;
70276
70710
  };
70277
70711
 
@@ -70396,6 +70830,10 @@ export const proto = $root.proto = (() => {
70396
70830
  m.chatThemeSetting = $root.proto.Message.ChatThemeSetting.decode(r, r.uint32(), undefined, n + 1);
70397
70831
  break;
70398
70832
  }
70833
+ case 31: {
70834
+ m.aiMetadataOperation = $root.proto.AIMetadataOperation.decode(r, r.uint32(), undefined, n + 1);
70835
+ break;
70836
+ }
70399
70837
  default:
70400
70838
  r.skipType(t & 7, n);
70401
70839
  break;
@@ -70540,6 +70978,10 @@ export const proto = $root.proto = (() => {
70540
70978
  case 34:
70541
70979
  m.type = 34;
70542
70980
  break;
70981
+ case "AI_METADATA_OPERATION":
70982
+ case 35:
70983
+ m.type = 35;
70984
+ break;
70543
70985
  }
70544
70986
  if (d.ephemeralExpiration != null) {
70545
70987
  m.ephemeralExpiration = d.ephemeralExpiration >>> 0;
@@ -70671,6 +71113,11 @@ export const proto = $root.proto = (() => {
70671
71113
  throw TypeError(".proto.Message.ProtocolMessage.chatThemeSetting: object expected");
70672
71114
  m.chatThemeSetting = $root.proto.Message.ChatThemeSetting.fromObject(d.chatThemeSetting, n + 1);
70673
71115
  }
71116
+ if (d.aiMetadataOperation != null) {
71117
+ if (typeof d.aiMetadataOperation !== "object")
71118
+ throw TypeError(".proto.Message.ProtocolMessage.aiMetadataOperation: object expected");
71119
+ m.aiMetadataOperation = $root.proto.AIMetadataOperation.fromObject(d.aiMetadataOperation, n + 1);
71120
+ }
70674
71121
  return m;
70675
71122
  };
70676
71123
 
@@ -70819,6 +71266,11 @@ export const proto = $root.proto = (() => {
70819
71266
  if (o.oneofs)
70820
71267
  d._chatThemeSetting = "chatThemeSetting";
70821
71268
  }
71269
+ if (m.aiMetadataOperation != null && m.hasOwnProperty("aiMetadataOperation")) {
71270
+ d.aiMetadataOperation = $root.proto.AIMetadataOperation.toObject(m.aiMetadataOperation, o);
71271
+ if (o.oneofs)
71272
+ d._aiMetadataOperation = "aiMetadataOperation";
71273
+ }
70822
71274
  return d;
70823
71275
  };
70824
71276
 
@@ -70864,6 +71316,7 @@ export const proto = $root.proto = (() => {
70864
71316
  values[valuesById[31] = "AI_MEDIA_COLLECTION_MESSAGE"] = 31;
70865
71317
  values[valuesById[32] = "MESSAGE_UNSCHEDULE"] = 32;
70866
71318
  values[valuesById[34] = "CHAT_THEME_SETTING"] = 34;
71319
+ values[valuesById[35] = "AI_METADATA_OPERATION"] = 35;
70867
71320
  return values;
70868
71321
  })();
70869
71322
 
@@ -97992,6 +98445,22 @@ export const proto = $root.proto = (() => {
97992
98445
  case 11:
97993
98446
  m.type = 11;
97994
98447
  break;
98448
+ case "ARCHIVED":
98449
+ case 12:
98450
+ m.type = 12;
98451
+ break;
98452
+ case "LOCKED":
98453
+ case 13:
98454
+ m.type = 13;
98455
+ break;
98456
+ case "INVITES":
98457
+ case 14:
98458
+ m.type = 14;
98459
+ break;
98460
+ case "THIRD_PARTY":
98461
+ case 15:
98462
+ m.type = 15;
98463
+ break;
97995
98464
  }
97996
98465
  if (d.isImmutable != null) {
97997
98466
  m.isImmutable = Boolean(d.isImmutable);
@@ -98089,6 +98558,10 @@ export const proto = $root.proto = (() => {
98089
98558
  values[valuesById[9] = "AI_HANDOFF"] = 9;
98090
98559
  values[valuesById[10] = "CHANNELS"] = 10;
98091
98560
  values[valuesById[11] = "AI_RESPONDING"] = 11;
98561
+ values[valuesById[12] = "ARCHIVED"] = 12;
98562
+ values[valuesById[13] = "LOCKED"] = 13;
98563
+ values[valuesById[14] = "INVITES"] = 14;
98564
+ values[valuesById[15] = "THIRD_PARTY"] = 15;
98092
98565
  return values;
98093
98566
  })();
98094
98567
 
@@ -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, 1039785632];
5
+ const version = [2, 3000, 1040237044];
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, 1039785632];
4
+ const baileysVersion = [2, 3000, 1040237044];
5
5
  import { DisconnectReason } from '../Types/index.js';
6
6
  import { getAllBinaryNodeChildren, jidDecode } from '../WABinary/index.js';
7
7
  import { sha256 } from './crypto.js';
@@ -12,6 +12,7 @@ export * from "./lt-hash.js";
12
12
  export * from "./auth-utils.js";
13
13
  export * from "./use-multi-file-auth-state.js";
14
14
  export * from "./use-single-file-auth-state.js";
15
+ export * from "./use-sqlite-auth-state.js";
15
16
  export * from "./link-preview.js";
16
17
  export * from "./event-buffer.js";
17
18
  export * from "./process-message.js";
@@ -12,6 +12,7 @@ export * from './lt-hash.js';
12
12
  export * from './auth-utils.js';
13
13
  export * from './use-multi-file-auth-state.js';
14
14
  export * from './use-single-file-auth-state.js';
15
+ export * from './use-sqlite-auth-state.js';
15
16
  export * from './link-preview.js';
16
17
  export * from './event-buffer.js';
17
18
  export * from './process-message.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Utils/index.js"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oBAAoB,CAAC;AACnC,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Utils/index.js"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oBAAoB,CAAC;AACnC,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iBAAiB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-sqlite-auth-state.d.ts","sourceRoot":"","sources":["../../src/Utils/use-sqlite-auth-state.js"],"names":[],"mappings":"AAoCA;;;;;;;;;GAkFC"}
1
+ {"version":3,"file":"use-sqlite-auth-state.d.ts","sourceRoot":"","sources":["../../src/Utils/use-sqlite-auth-state.js"],"names":[],"mappings":"AAgCA;;;;;;;;;GA2EC"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-sqlite-auth-state.js","sourceRoot":"","sources":["../../src/Utils/use-sqlite-auth-state.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACvE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,KAAK,UAAU,iBAAiB;IAC/B,IAAI,CAAC;QACJ,8DAA8D;QAC9D,MAAM,GAAG,GAAG,CAAC,MAAM,MAAM,CAAC,gBAAgB,CAAC,CAAC,CAAA;QAC5C,OAAO,GAAG,CAAC,OAAO,IAAI,GAAG,CAAA;IAC1B,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACd,MAAM,OAAO,GAAG,IAAI,KAAK,CACxB,sJAAsJ,CACtJ,CAAA;QACD,8DAA8D;QAC9D,OAAO,CAAC,KAAK,GAAG,GAAG,CAAA;QACnB,MAAM,OAAO,CAAA;IACd,CAAC;AACF,CAAC;AAED,MAAM,aAAa,GAAG,WA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,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;oBAChB,MAAM,OAAO,GAAG,EAAE,CAAC,WAAW,CAAC,GAAG,EAAE;wBAChC,KAAK,MAAM,QAAQ,IAAI,IAAI,EAAE,CAAC;4BAC1B,KAAK,MAAM,EAAE,IAAI,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;gCAC9B,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC;gCACjC,IAAI,KAAK,EAAE,CAAC;oCACR,MAAM,WAAW,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;oCAC/D,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,EAAE,EAAE,EAAE,WAAW,CAAC,CAAC;gCACnD,CAAC;qCACI,CAAC;oCACF,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;gCACtC,CAAC;4BACL,CAAC;wBACL,CAAC;oBACL,CAAC,CAAC,CAAC;oBACH,OAAO,EAAE,CAAC;gBACd,CAAC;aACJ;SACJ;QACD,SAAS,EAAE,KAAK,IAAI,EAAE;YAClB,YAAY,CAAC,KAAK,CAAC,CAAC;QACxB,CAAC;KACJ,CAAC;AACN,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itsliaaa/baileys",
3
- "version": "0.3.12",
3
+ "version": "0.3.13",
4
4
  "description": "Enhanced Baileys v7 with fixes for newsletter media uploads, plus support for interactive messages, albums, and additional message types.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",