astrabail 1.0.8 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (223) hide show
  1. package/WAProto/GenerateStatics.sh +3 -0
  2. package/WAProto/WAProto.proto +3 -0
  3. package/WAProto/fix-imports.js +3 -0
  4. package/WAProto/index.d.ts +3 -0
  5. package/WAProto/index.js +3 -0
  6. package/WAProto/p.html +3 -0
  7. package/lib/Defaults/astrabail-version.json +3 -0
  8. package/lib/Defaults/index.d.ts +3 -1
  9. package/lib/Defaults/index.js +10 -3
  10. package/lib/Defaults/phonenumber-mcc.json +3 -0
  11. package/lib/Defaults/update-wa-version.js +3 -1
  12. package/lib/Signal/Group/ciphertext-message.d.ts +3 -1
  13. package/lib/Signal/Group/ciphertext-message.js +3 -0
  14. package/lib/Signal/Group/group-session-builder.d.ts +3 -1
  15. package/lib/Signal/Group/group-session-builder.js +3 -0
  16. package/lib/Signal/Group/group_cipher.d.ts +3 -1
  17. package/lib/Signal/Group/group_cipher.js +3 -0
  18. package/lib/Signal/Group/index.d.ts +3 -1
  19. package/lib/Signal/Group/index.js +3 -0
  20. package/lib/Signal/Group/keyhelper.d.ts +3 -1
  21. package/lib/Signal/Group/keyhelper.js +3 -0
  22. package/lib/Signal/Group/queue-job.js +3 -0
  23. package/lib/Signal/Group/sender-chain-key.d.ts +3 -1
  24. package/lib/Signal/Group/sender-chain-key.js +3 -0
  25. package/lib/Signal/Group/sender-key-distribution-message.d.ts +3 -1
  26. package/lib/Signal/Group/sender-key-distribution-message.js +3 -0
  27. package/lib/Signal/Group/sender-key-message.d.ts +3 -1
  28. package/lib/Signal/Group/sender-key-message.js +3 -0
  29. package/lib/Signal/Group/sender-key-name.d.ts +3 -1
  30. package/lib/Signal/Group/sender-key-name.js +3 -0
  31. package/lib/Signal/Group/sender-key-record.d.ts +3 -1
  32. package/lib/Signal/Group/sender-key-record.js +3 -0
  33. package/lib/Signal/Group/sender-key-state.d.ts +3 -1
  34. package/lib/Signal/Group/sender-key-state.js +3 -0
  35. package/lib/Signal/Group/sender-message-key.d.ts +3 -1
  36. package/lib/Signal/Group/sender-message-key.js +3 -0
  37. package/lib/Signal/libsignal.d.ts +3 -1
  38. package/lib/Signal/libsignal.js +3 -0
  39. package/lib/Signal/lid-mapping.d.ts +3 -1
  40. package/lib/Signal/lid-mapping.js +3 -0
  41. package/lib/Socket/Client/index.d.ts +3 -1
  42. package/lib/Socket/Client/index.js +3 -0
  43. package/lib/Socket/Client/types.d.ts +3 -1
  44. package/lib/Socket/Client/types.js +3 -0
  45. package/lib/Socket/Client/websocket.d.ts +3 -1
  46. package/lib/Socket/Client/websocket.js +3 -0
  47. package/lib/Socket/business.d.ts +5 -3
  48. package/lib/Socket/business.js +3 -0
  49. package/lib/Socket/chats.d.ts +5 -3
  50. package/lib/Socket/chats.js +4 -1
  51. package/lib/Socket/communities.d.ts +5 -3
  52. package/lib/Socket/communities.js +3 -0
  53. package/lib/Socket/community.js +3 -0
  54. package/lib/Socket/groups.d.ts +5 -3
  55. package/lib/Socket/groups.js +3 -0
  56. package/lib/Socket/index.d.ts +5 -3
  57. package/lib/Socket/index.js +3 -0
  58. package/lib/Socket/messages-recv.d.ts +5 -3
  59. package/lib/Socket/messages-recv.js +3 -0
  60. package/lib/Socket/messages-send.d.ts +5 -3
  61. package/lib/Socket/messages-send.js +111 -1
  62. package/lib/Socket/mex.d.ts +3 -1
  63. package/lib/Socket/mex.js +3 -0
  64. package/lib/Socket/newsletter.d.ts +5 -3
  65. package/lib/Socket/newsletter.js +3 -0
  66. package/lib/Socket/socket.d.ts +5 -3
  67. package/lib/Socket/socket.js +4 -1
  68. package/lib/Socket/usync.js +3 -0
  69. package/lib/Store/index.js +3 -0
  70. package/lib/Store/make-cache-manager-store.js +3 -0
  71. package/lib/Store/make-in-memory-store.js +4 -1
  72. package/lib/Store/make-ordered-dictionary.js +3 -0
  73. package/lib/Store/object-repository.js +3 -0
  74. package/lib/Types/Auth.d.ts +3 -1
  75. package/lib/Types/Auth.js +3 -0
  76. package/lib/Types/Bussines.d.ts +3 -1
  77. package/lib/Types/Bussines.js +3 -0
  78. package/lib/Types/Call.d.ts +3 -1
  79. package/lib/Types/Call.js +3 -0
  80. package/lib/Types/Chat.d.ts +3 -1
  81. package/lib/Types/Chat.js +3 -0
  82. package/lib/Types/Contact.d.ts +3 -1
  83. package/lib/Types/Contact.js +3 -0
  84. package/lib/Types/Events.d.ts +10 -8
  85. package/lib/Types/Events.js +3 -0
  86. package/lib/Types/GroupMetadata.d.ts +3 -1
  87. package/lib/Types/GroupMetadata.js +3 -0
  88. package/lib/Types/Label.d.ts +3 -1
  89. package/lib/Types/Label.js +3 -0
  90. package/lib/Types/LabelAssociation.d.ts +3 -1
  91. package/lib/Types/LabelAssociation.js +3 -0
  92. package/lib/Types/Message.d.ts +3 -1
  93. package/lib/Types/Message.js +3 -0
  94. package/lib/Types/MexUpdates.js +3 -0
  95. package/lib/Types/Newsletter.d.ts +3 -1
  96. package/lib/Types/Newsletter.js +3 -0
  97. package/lib/Types/Product.d.ts +3 -1
  98. package/lib/Types/Product.js +3 -0
  99. package/lib/Types/Signal.d.ts +3 -1
  100. package/lib/Types/Signal.js +3 -0
  101. package/lib/Types/Socket.d.ts +6 -4
  102. package/lib/Types/Socket.js +3 -0
  103. package/lib/Types/State.d.ts +3 -1
  104. package/lib/Types/State.js +3 -0
  105. package/lib/Types/USync.d.ts +3 -1
  106. package/lib/Types/USync.js +3 -0
  107. package/lib/Types/index.d.ts +4 -2
  108. package/lib/Types/index.js +3 -0
  109. package/lib/Utils/astrabail-event-stream.js +61 -1
  110. package/lib/Utils/audioToBuffer.js +3 -0
  111. package/lib/Utils/auth-utils.d.ts +3 -1
  112. package/lib/Utils/auth-utils.js +3 -0
  113. package/lib/Utils/bridge-runtime.d.ts +3 -0
  114. package/lib/Utils/bridge-runtime.js +3 -0
  115. package/lib/Utils/browser-utils.d.ts +3 -1
  116. package/lib/Utils/browser-utils.js +6 -3
  117. package/lib/Utils/business.d.ts +3 -1
  118. package/lib/Utils/business.js +3 -0
  119. package/lib/Utils/chat-utils.d.ts +5 -3
  120. package/lib/Utils/chat-utils.js +3 -0
  121. package/lib/Utils/crypto.d.ts +3 -1
  122. package/lib/Utils/crypto.js +3 -0
  123. package/lib/Utils/decode-wa-message.d.ts +3 -1
  124. package/lib/Utils/decode-wa-message.js +3 -0
  125. package/lib/Utils/event-buffer.d.ts +8 -6
  126. package/lib/Utils/event-buffer.js +4 -1
  127. package/lib/Utils/generics.d.ts +9 -7
  128. package/lib/Utils/generics.js +15 -12
  129. package/lib/Utils/history.d.ts +3 -1
  130. package/lib/Utils/history.js +3 -0
  131. package/lib/Utils/identity-change-handler.d.ts +3 -1
  132. package/lib/Utils/identity-change-handler.js +3 -0
  133. package/lib/Utils/index.d.ts +3 -1
  134. package/lib/Utils/index.js +3 -1
  135. package/lib/Utils/link-preview.d.ts +3 -1
  136. package/lib/Utils/link-preview.js +3 -0
  137. package/lib/Utils/logger.d.ts +3 -1
  138. package/lib/Utils/logger.js +3 -0
  139. package/lib/Utils/lt-hash.d.ts +3 -1
  140. package/lib/Utils/lt-hash.js +3 -0
  141. package/lib/Utils/make-mutex.d.ts +3 -1
  142. package/lib/Utils/make-mutex.js +3 -0
  143. package/lib/Utils/message-retry-manager.d.ts +3 -1
  144. package/lib/Utils/message-retry-manager.js +3 -0
  145. package/lib/Utils/messages-media.d.ts +3 -1
  146. package/lib/Utils/messages-media.js +4 -1
  147. package/lib/Utils/messages-newsletter.d.ts +3 -0
  148. package/lib/Utils/messages-newsletter.js +3 -0
  149. package/lib/Utils/messages.d.ts +3 -1
  150. package/lib/Utils/messages.js +4 -1
  151. package/lib/Utils/noise-handler.d.ts +3 -1
  152. package/lib/Utils/noise-handler.js +3 -0
  153. package/lib/Utils/pre-key-manager.d.ts +3 -1
  154. package/lib/Utils/pre-key-manager.js +3 -0
  155. package/lib/Utils/process-message.d.ts +5 -3
  156. package/lib/Utils/process-message.js +3 -0
  157. package/lib/Utils/reporting-utils.d.ts +3 -1
  158. package/lib/Utils/reporting-utils.js +3 -0
  159. package/lib/Utils/resolve-jid.d.ts +3 -0
  160. package/lib/Utils/resolve-jid.js +3 -0
  161. package/lib/Utils/rust-bridge-shim.d.ts +3 -0
  162. package/lib/Utils/rust-bridge-shim.js +3 -0
  163. package/lib/Utils/serial-task-queue.js +3 -0
  164. package/lib/Utils/signal.d.ts +3 -1
  165. package/lib/Utils/signal.js +3 -0
  166. package/lib/Utils/streamToBuffer.js +3 -0
  167. package/lib/Utils/sync-action-utils.d.ts +6 -4
  168. package/lib/Utils/sync-action-utils.js +3 -0
  169. package/lib/Utils/tc-token-utils.d.ts +3 -1
  170. package/lib/Utils/tc-token-utils.js +3 -0
  171. package/lib/Utils/use-mongo-file-auth-state.js +3 -0
  172. package/lib/Utils/use-multi-file-auth-state.d.ts +3 -1
  173. package/lib/Utils/use-multi-file-auth-state.js +4 -1
  174. package/lib/Utils/use-single-file-auth-state.js +3 -0
  175. package/lib/Utils/validate-connection.d.ts +3 -1
  176. package/lib/Utils/validate-connection.js +3 -0
  177. package/lib/WABinary/constants.d.ts +3 -1
  178. package/lib/WABinary/constants.js +3 -0
  179. package/lib/WABinary/decode.d.ts +3 -1
  180. package/lib/WABinary/decode.js +3 -0
  181. package/lib/WABinary/encode.d.ts +3 -1
  182. package/lib/WABinary/encode.js +3 -0
  183. package/lib/WABinary/generic-utils.d.ts +3 -1
  184. package/lib/WABinary/generic-utils.js +3 -0
  185. package/lib/WABinary/index.d.ts +3 -1
  186. package/lib/WABinary/index.js +3 -0
  187. package/lib/WABinary/jid-utils.d.ts +3 -1
  188. package/lib/WABinary/jid-utils.js +3 -0
  189. package/lib/WABinary/types.d.ts +3 -1
  190. package/lib/WABinary/types.js +3 -0
  191. package/lib/WAM/BinaryInfo.d.ts +3 -1
  192. package/lib/WAM/BinaryInfo.js +3 -0
  193. package/lib/WAM/constants.d.ts +3 -1
  194. package/lib/WAM/constants.js +3 -0
  195. package/lib/WAM/encode.d.ts +3 -1
  196. package/lib/WAM/encode.js +3 -0
  197. package/lib/WAM/index.d.ts +3 -1
  198. package/lib/WAM/index.js +3 -0
  199. package/lib/WAUSync/Protocols/USyncContactProtocol.d.ts +3 -1
  200. package/lib/WAUSync/Protocols/USyncContactProtocol.js +3 -0
  201. package/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts +3 -1
  202. package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +3 -0
  203. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts +3 -1
  204. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +3 -0
  205. package/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts +3 -1
  206. package/lib/WAUSync/Protocols/USyncStatusProtocol.js +3 -0
  207. package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.d.ts +3 -1
  208. package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.js +3 -0
  209. package/lib/WAUSync/Protocols/UsyncLIDProtocol.d.ts +3 -1
  210. package/lib/WAUSync/Protocols/UsyncLIDProtocol.js +3 -0
  211. package/lib/WAUSync/Protocols/index.d.ts +3 -1
  212. package/lib/WAUSync/Protocols/index.js +3 -0
  213. package/lib/WAUSync/USyncQuery.d.ts +3 -1
  214. package/lib/WAUSync/USyncQuery.js +3 -0
  215. package/lib/WAUSync/USyncUser.d.ts +3 -1
  216. package/lib/WAUSync/USyncUser.js +3 -0
  217. package/lib/WAUSync/index.d.ts +3 -1
  218. package/lib/WAUSync/index.js +3 -0
  219. package/lib/index.d.ts +3 -0
  220. package/lib/index.js +3 -0
  221. package/package.json +3 -3
  222. package/readme.md +1956 -1956
  223. package/lib/Utils/baileys-event-stream.js +0 -60
@@ -202,3 +202,6 @@ const makeNoiseHandler = ({ keyPair: { private: privateKey, public: publicKey },
202
202
  };
203
203
  };
204
204
  exports.makeNoiseHandler = makeNoiseHandler;
205
+
206
+
207
+
@@ -25,4 +25,6 @@ export declare class PreKeyManager {
25
25
  */
26
26
  validateDeletions(data: SignalDataSet, keyType: keyof SignalDataTypeMap): Promise<void>;
27
27
  }
28
- //# sourceMappingURL=pre-key-manager.d.ts.map
28
+ //# sourceMappingURL=pre-key-manager.d.ts.map
29
+
30
+
@@ -110,3 +110,6 @@ class PreKeyManager {
110
110
  }
111
111
  }
112
112
  exports.PreKeyManager = PreKeyManager;
113
+
114
+
115
+
@@ -1,12 +1,12 @@
1
1
  import { proto } from '../../WAProto/index.js';
2
- import type { AuthenticationCreds, BaileysEventEmitter, CacheStore, SignalKeyStoreWithTransaction, SignalRepositoryWithLIDStore, SocketConfig, WAMessage, WAMessageKey } from '../Types/index.js';
2
+ import type { AuthenticationCreds, AstraBailEventEmitter, CacheStore, SignalKeyStoreWithTransaction, SignalRepositoryWithLIDStore, SocketConfig, WAMessage, WAMessageKey } from '../Types/index.js';
3
3
  import type { ILogger } from './logger.js';
4
4
  type ProcessMessageContext = {
5
5
  shouldProcessHistoryMsg: boolean;
6
6
  placeholderResendCache?: CacheStore;
7
7
  creds: AuthenticationCreds;
8
8
  keyStore: SignalKeyStoreWithTransaction;
9
- ev: BaileysEventEmitter;
9
+ ev: AstraBailEventEmitter;
10
10
  logger?: ILogger;
11
11
  options: RequestInit;
12
12
  signalRepository: SignalRepositoryWithLIDStore;
@@ -57,4 +57,6 @@ export declare function decryptPollVote({ encPayload, encIv }: proto.Message.IPo
57
57
  export declare function decryptEventResponse({ encPayload, encIv }: proto.Message.IPollEncValue, { eventCreatorJid, eventMsgId, eventEncKey, responderJid }: EventContext): proto.Message.EventResponseMessage;
58
58
  declare const processMessage: (message: WAMessage, { shouldProcessHistoryMsg, placeholderResendCache, ev, creds, signalRepository, keyStore, logger, options, getMessage }: ProcessMessageContext) => Promise<void>;
59
59
  export default processMessage;
60
- //# sourceMappingURL=process-message.d.ts.map
60
+ //# sourceMappingURL=process-message.d.ts.map
61
+
62
+
@@ -534,3 +534,6 @@ const processMessage = async (message, { shouldProcessHistoryMsg, placeholderRes
534
534
  }
535
535
  };
536
536
  exports.default = processMessage;
537
+
538
+
539
+
@@ -8,4 +8,6 @@ export type ReportingField = {
8
8
  };
9
9
  export declare const shouldIncludeReportingToken: (message: proto.IMessage) => boolean;
10
10
  export declare const getMessageReportingToken: (msgProtobuf: Buffer, message: WAMessageContent, key: WAMessageKey) => Promise<BinaryNode | null>;
11
- //# sourceMappingURL=reporting-utils.d.ts.map
11
+ //# sourceMappingURL=reporting-utils.d.ts.map
12
+
13
+
@@ -260,3 +260,6 @@ const getMessageReportingToken = async (msgProtobuf, message, key) => {
260
260
  };
261
261
  };
262
262
  exports.getMessageReportingToken = getMessageReportingToken;
263
+
264
+
265
+
@@ -41,3 +41,6 @@ export declare function resolveJids(
41
41
  m: Parameters<typeof resolveJid>[1],
42
42
  targets?: string[]
43
43
  ): Promise<(string | null)[]>;
44
+
45
+
46
+
@@ -93,3 +93,6 @@ async function resolveJid(conn, m, target) {
93
93
  async function resolveJids(conn, m, targets = []) {
94
94
  return Promise.all(targets.map(t => resolveJid(conn, m, t)));
95
95
  }
96
+
97
+
98
+
@@ -20,3 +20,6 @@ export declare class LTHashAntiTampering {
20
20
  private multipleOp;
21
21
  private performPointwiseWithOverflow;
22
22
  }
23
+
24
+
25
+
@@ -68,3 +68,6 @@ class LTHashAntiTampering {
68
68
  }
69
69
  }
70
70
  exports.LTHashAntiTampering = LTHashAntiTampering;
71
+
72
+
73
+
@@ -27,3 +27,6 @@ class SerialTaskQueue {
27
27
  }
28
28
  }
29
29
  exports.default = SerialTaskQueue;
30
+
31
+
32
+
@@ -31,4 +31,6 @@ export declare const getNextPreKeysNode: (state: AuthenticationState, count: num
31
31
  update: Partial<AuthenticationCreds>;
32
32
  node: BinaryNode;
33
33
  }>;
34
- //# sourceMappingURL=signal.d.ts.map
34
+ //# sourceMappingURL=signal.d.ts.map
35
+
36
+
@@ -168,3 +168,6 @@ const getNextPreKeysNode = async (state, count) => {
168
168
  return { update, node };
169
169
  };
170
170
  exports.getNextPreKeysNode = getNextPreKeysNode;
171
+
172
+
173
+
@@ -15,3 +15,6 @@ async function streamToBuffer(stream) {
15
15
  stream.on('error', reject);
16
16
  });
17
17
  }
18
+
19
+
20
+
@@ -1,5 +1,5 @@
1
1
  import { proto } from '../../WAProto/index.js';
2
- import type { BaileysEventEmitter, BaileysEventMap, Contact } from '../Types/index.js';
2
+ import type { AstraBailEventEmitter, AstraBailEventMap, Contact } from '../Types/index.js';
3
3
  import type { ILogger } from './logger.js';
4
4
  export type ContactsUpsertResult = {
5
5
  event: 'contacts.upsert';
@@ -7,7 +7,7 @@ export type ContactsUpsertResult = {
7
7
  };
8
8
  export type LidMappingUpdateResult = {
9
9
  event: 'lid-mapping.update';
10
- data: BaileysEventMap['lid-mapping.update'];
10
+ data: AstraBailEventMap['lid-mapping.update'];
11
11
  };
12
12
  export type SyncActionResult = ContactsUpsertResult | LidMappingUpdateResult;
13
13
  /**
@@ -15,5 +15,7 @@ export type SyncActionResult = ContactsUpsertResult | LidMappingUpdateResult;
15
15
  * Pure function - no side effects.
16
16
  */
17
17
  export declare const processContactAction: (action: proto.SyncActionValue.IContactAction, id: string | undefined, logger?: ILogger) => SyncActionResult[];
18
- export declare const emitSyncActionResults: (ev: BaileysEventEmitter, results: SyncActionResult[]) => void;
19
- //# sourceMappingURL=sync-action-utils.d.ts.map
18
+ export declare const emitSyncActionResults: (ev: AstraBailEventEmitter, results: SyncActionResult[]) => void;
19
+ //# sourceMappingURL=sync-action-utils.d.ts.map
20
+
21
+
@@ -50,3 +50,6 @@ const emitSyncActionResults = (ev, results) => {
50
50
  }
51
51
  };
52
52
  exports.emitSyncActionResults = emitSyncActionResults;
53
+
54
+
55
+
@@ -9,4 +9,6 @@ type TcTokenParams = {
9
9
  };
10
10
  export declare function buildTcTokenFromJid({ authState, jid, baseContent }: TcTokenParams): Promise<BinaryNode[] | undefined>;
11
11
  export {};
12
- //# sourceMappingURL=tc-token-utils.d.ts.map
12
+ //# sourceMappingURL=tc-token-utils.d.ts.map
13
+
14
+
@@ -18,3 +18,6 @@ async function buildTcTokenFromJid({ authState, jid, baseContent = [] }) {
18
18
  return baseContent.length > 0 ? baseContent : undefined;
19
19
  }
20
20
  }
21
+
22
+
23
+
@@ -69,3 +69,6 @@ const useMongoFileAuthState = async (collection) => {
69
69
  };
70
70
  };
71
71
  exports.useMongoFileAuthState = useMongoFileAuthState;
72
+
73
+
74
+
@@ -10,4 +10,6 @@ export declare const useMultiFileAuthState: (folder: string) => Promise<{
10
10
  state: AuthenticationState;
11
11
  saveCreds: () => Promise<void>;
12
12
  }>;
13
- //# sourceMappingURL=use-multi-file-auth-state.d.ts.map
13
+ //# sourceMappingURL=use-multi-file-auth-state.d.ts.map
14
+
15
+
@@ -8,7 +8,7 @@ const index_js_1 = require("../../WAProto/index.js");
8
8
  const auth_utils_js_1 = require("./auth-utils.js");
9
9
  const generics_js_1 = require("./generics.js");
10
10
  // We need to lock files due to the fact that we are using async functions to read and write files
11
- // https://github.com/WhiskeySockets/Baileys/issues/794
11
+ // AstraBail: Fix for multi-device auth state issues (ref: Baileys #794)
12
12
  // https://github.com/nodejs/node/issues/26338
13
13
  // Use a Map to store mutexes for each file path
14
14
  const fileLocks = new Map();
@@ -122,3 +122,6 @@ const useMultiFileAuthState = async (folder) => {
122
122
  };
123
123
  };
124
124
  exports.useMultiFileAuthState = useMultiFileAuthState;
125
+
126
+
127
+
@@ -71,3 +71,6 @@ const useSingleFileAuthState = (filename, logger) => {
71
71
  };
72
72
  };
73
73
  exports.useSingleFileAuthState = useSingleFileAuthState;
74
+
75
+
76
+
@@ -8,4 +8,6 @@ export declare const configureSuccessfulPairing: (stanza: BinaryNode, { advSecre
8
8
  reply: BinaryNode;
9
9
  };
10
10
  export declare const encodeSignedDeviceIdentity: (account: proto.IADVSignedDeviceIdentity, includeSignatureKey: boolean) => Uint8Array<ArrayBufferLike>;
11
- //# sourceMappingURL=validate-connection.d.ts.map
11
+ //# sourceMappingURL=validate-connection.d.ts.map
12
+
13
+
@@ -204,3 +204,6 @@ const encodeSignedDeviceIdentity = (account, includeSignatureKey) => {
204
204
  return index_js_1.proto.ADVSignedDeviceIdentity.encode(account).finish();
205
205
  };
206
206
  exports.encodeSignedDeviceIdentity = encodeSignedDeviceIdentity;
207
+
208
+
209
+
@@ -25,4 +25,6 @@ export declare const TOKEN_MAP: {
25
25
  index: number;
26
26
  };
27
27
  };
28
- //# sourceMappingURL=constants.d.ts.map
28
+ //# sourceMappingURL=constants.d.ts.map
29
+
30
+
@@ -1301,3 +1301,6 @@ for (const [i, DOUBLE_BYTE_TOKEN] of exports.DOUBLE_BYTE_TOKENS.entries()) {
1301
1301
  exports.TOKEN_MAP[element] = { dict: i, index: j };
1302
1302
  }
1303
1303
  }
1304
+
1305
+
1306
+
@@ -4,4 +4,6 @@ export declare const decodeDecompressedBinaryNode: (buffer: Buffer, opts: Pick<B
4
4
  index: number;
5
5
  }) => BinaryNode;
6
6
  export declare const decodeBinaryNode: (buff: Buffer) => Promise<BinaryNode>;
7
- //# sourceMappingURL=decode.d.ts.map
7
+ //# sourceMappingURL=decode.d.ts.map
8
+
9
+
@@ -298,3 +298,6 @@ const decodeBinaryNode = async (buff) => {
298
298
  return (0, exports.decodeDecompressedBinaryNode)(decompBuff, constants);
299
299
  };
300
300
  exports.decodeBinaryNode = decodeBinaryNode;
301
+
302
+
303
+
@@ -1,3 +1,5 @@
1
1
  import type { BinaryNode, BinaryNodeCodingOptions } from './types.js';
2
2
  export declare const encodeBinaryNode: (node: BinaryNode, opts?: Pick<BinaryNodeCodingOptions, "TAGS" | "TOKEN_MAP">, buffer?: number[]) => Buffer;
3
- //# sourceMappingURL=encode.d.ts.map
3
+ //# sourceMappingURL=encode.d.ts.map
4
+
5
+
@@ -254,3 +254,6 @@ const encodeBinaryNodeInner = ({ tag, attrs, content }, opts, buffer) => {
254
254
  }
255
255
  return buffer;
256
256
  };
257
+
258
+
259
+
@@ -12,4 +12,6 @@ export declare const reduceBinaryNodeToDictionary: (node: BinaryNode, tag: strin
12
12
  };
13
13
  export declare const getBinaryNodeMessages: ({ content }: BinaryNode) => proto.WebMessageInfo[];
14
14
  export declare function binaryNodeToString(node: BinaryNode | BinaryNode['content'], i?: number): string;
15
- //# sourceMappingURL=generic-utils.d.ts.map
15
+ //# sourceMappingURL=generic-utils.d.ts.map
16
+
17
+
@@ -136,3 +136,6 @@ const getBinaryFilteredBizBot = (nodeContent) => {
136
136
  return nodeContent.some(b => ['bot'].includes(b?.tag) && b?.attrs?.biz_bot === '1');
137
137
  };
138
138
  exports.getBinaryFilteredBizBot = getBinaryFilteredBizBot;
139
+
140
+
141
+
@@ -3,4 +3,6 @@ export * from './decode.js';
3
3
  export * from './generic-utils.js';
4
4
  export * from './jid-utils.js';
5
5
  export * from './types.js';
6
- //# sourceMappingURL=index.d.ts.map
6
+ //# sourceMappingURL=index.d.ts.map
7
+
8
+
@@ -23,3 +23,6 @@ Object.defineProperty(exports, "getBinaryFilteredButtons", { enumerable: true, g
23
23
  Object.defineProperty(exports, "getBinaryFilteredBizBot", { enumerable: true, get: function () { return generic_utils_js_1.getBinaryFilteredBizBot; } });
24
24
  __exportStar(require("./jid-utils.js"), exports);
25
25
  __exportStar(require("./types.js"), exports);
26
+
27
+
28
+
@@ -45,4 +45,6 @@ export declare const isHostedLidUser: (jid: string | undefined) => boolean | und
45
45
  export declare const isJidBot: (jid: string | undefined) => boolean | "" | undefined;
46
46
  export declare const jidNormalizedUser: (jid: string | undefined) => string;
47
47
  export declare const transferDevice: (fromJid: string, toJid: string) => string;
48
- //# sourceMappingURL=jid-utils.d.ts.map
48
+ //# sourceMappingURL=jid-utils.d.ts.map
49
+
50
+
@@ -113,3 +113,6 @@ const transferDevice = (fromJid, toJid) => {
113
113
  exports.transferDevice = transferDevice;
114
114
  const isJidUser = (jid) => jid?.endsWith('@s.whatsapp.net');
115
115
  exports.isJidUser = isJidUser;
116
+
117
+
118
+
@@ -16,4 +16,6 @@ export type BinaryNode = {
16
16
  export type BinaryNodeAttributes = BinaryNode['attrs'];
17
17
  export type BinaryNodeData = BinaryNode['content'];
18
18
  export type BinaryNodeCodingOptions = typeof constants;
19
- //# sourceMappingURL=types.d.ts.map
19
+ //# sourceMappingURL=types.d.ts.map
20
+
21
+
@@ -34,3 +34,6 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  const constants = __importStar(require("./constants.js"));
37
+
38
+
39
+
@@ -6,4 +6,6 @@ export declare class BinaryInfo {
6
6
  buffer: Buffer[];
7
7
  constructor(options?: Partial<BinaryInfo>);
8
8
  }
9
- //# sourceMappingURL=BinaryInfo.d.ts.map
9
+ //# sourceMappingURL=BinaryInfo.d.ts.map
10
+
11
+
@@ -11,3 +11,6 @@ class BinaryInfo {
11
11
  }
12
12
  }
13
13
  exports.BinaryInfo = BinaryInfo;
14
+
15
+
16
+
@@ -37,4 +37,6 @@ export type EventInputType = {
37
37
  } & {};
38
38
  export type Value = number | null | string;
39
39
  export {};
40
- //# sourceMappingURL=constants.d.ts.map
40
+ //# sourceMappingURL=constants.d.ts.map
41
+
42
+
@@ -22853,3 +22853,6 @@ exports.WEB_GLOBALS = [
22853
22853
  }
22854
22854
  ];
22855
22855
  exports.FLAG_BYTE = 8, exports.FLAG_GLOBAL = 0, exports.FLAG_EVENT = 1, exports.FLAG_FIELD = 2, exports.FLAG_EXTENDED = 4;
22856
+
22857
+
22858
+
@@ -1,3 +1,5 @@
1
1
  import { BinaryInfo } from './BinaryInfo.js';
2
2
  export declare const encodeWAM: (binaryInfo: BinaryInfo) => Buffer<ArrayBuffer>;
3
- //# sourceMappingURL=encode.d.ts.map
3
+ //# sourceMappingURL=encode.d.ts.map
4
+
5
+
package/lib/WAM/encode.js CHANGED
@@ -151,3 +151,6 @@ function serializeHeader(buffer, offset, key, flag) {
151
151
  }
152
152
  return offset;
153
153
  }
154
+
155
+
156
+
@@ -1,4 +1,6 @@
1
1
  export * from './constants.js';
2
2
  export * from './encode.js';
3
3
  export * from './BinaryInfo.js';
4
- //# sourceMappingURL=index.d.ts.map
4
+ //# sourceMappingURL=index.d.ts.map
5
+
6
+
package/lib/WAM/index.js CHANGED
@@ -17,3 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./constants.js"), exports);
18
18
  __exportStar(require("./encode.js"), exports);
19
19
  __exportStar(require("./BinaryInfo.js"), exports);
20
+
21
+
22
+
@@ -7,4 +7,6 @@ export declare class USyncContactProtocol implements USyncQueryProtocol {
7
7
  getUserElement(user: USyncUser): BinaryNode;
8
8
  parser(node: BinaryNode): boolean;
9
9
  }
10
- //# sourceMappingURL=USyncContactProtocol.d.ts.map
10
+ //# sourceMappingURL=USyncContactProtocol.d.ts.map
11
+
12
+
@@ -30,3 +30,6 @@ class USyncContactProtocol {
30
30
  }
31
31
  }
32
32
  exports.USyncContactProtocol = USyncContactProtocol;
33
+
34
+
35
+
@@ -20,4 +20,6 @@ export declare class USyncDeviceProtocol implements USyncQueryProtocol {
20
20
  getUserElement(): BinaryNode | null;
21
21
  parser(node: BinaryNode): ParsedDeviceInfo;
22
22
  }
23
- //# sourceMappingURL=USyncDeviceProtocol.d.ts.map
23
+ //# sourceMappingURL=USyncDeviceProtocol.d.ts.map
24
+
25
+
@@ -55,3 +55,6 @@ class USyncDeviceProtocol {
55
55
  }
56
56
  }
57
57
  exports.USyncDeviceProtocol = USyncDeviceProtocol;
58
+
59
+
60
+
@@ -10,4 +10,6 @@ export declare class USyncDisappearingModeProtocol implements USyncQueryProtocol
10
10
  getUserElement(): null;
11
11
  parser(node: BinaryNode): DisappearingModeData | undefined;
12
12
  }
13
- //# sourceMappingURL=USyncDisappearingModeProtocol.d.ts.map
13
+ //# sourceMappingURL=USyncDisappearingModeProtocol.d.ts.map
14
+
15
+
@@ -28,3 +28,6 @@ class USyncDisappearingModeProtocol {
28
28
  }
29
29
  }
30
30
  exports.USyncDisappearingModeProtocol = USyncDisappearingModeProtocol;
31
+
32
+
33
+
@@ -10,4 +10,6 @@ export declare class USyncStatusProtocol implements USyncQueryProtocol {
10
10
  getUserElement(): null;
11
11
  parser(node: BinaryNode): StatusData | undefined;
12
12
  }
13
- //# sourceMappingURL=USyncStatusProtocol.d.ts.map
13
+ //# sourceMappingURL=USyncStatusProtocol.d.ts.map
14
+
15
+
@@ -39,3 +39,6 @@ class USyncStatusProtocol {
39
39
  }
40
40
  }
41
41
  exports.USyncStatusProtocol = USyncStatusProtocol;
42
+
43
+
44
+
@@ -23,4 +23,6 @@ export declare class USyncBotProfileProtocol implements USyncQueryProtocol {
23
23
  getUserElement(user: USyncUser): BinaryNode;
24
24
  parser(node: BinaryNode): BotProfileInfo;
25
25
  }
26
- //# sourceMappingURL=UsyncBotProfileProtocol.d.ts.map
26
+ //# sourceMappingURL=UsyncBotProfileProtocol.d.ts.map
27
+
28
+
@@ -52,3 +52,6 @@ class USyncBotProfileProtocol {
52
52
  }
53
53
  }
54
54
  exports.USyncBotProfileProtocol = USyncBotProfileProtocol;
55
+
56
+
57
+
@@ -7,4 +7,6 @@ export declare class USyncLIDProtocol implements USyncQueryProtocol {
7
7
  getUserElement(user: USyncUser): BinaryNode | null;
8
8
  parser(node: BinaryNode): string | null;
9
9
  }
10
- //# sourceMappingURL=UsyncLIDProtocol.d.ts.map
10
+ //# sourceMappingURL=UsyncLIDProtocol.d.ts.map
11
+
12
+
@@ -30,3 +30,6 @@ class USyncLIDProtocol {
30
30
  }
31
31
  }
32
32
  exports.USyncLIDProtocol = USyncLIDProtocol;
33
+
34
+
35
+
@@ -2,4 +2,6 @@ export * from './USyncDeviceProtocol.js';
2
2
  export * from './USyncContactProtocol.js';
3
3
  export * from './USyncStatusProtocol.js';
4
4
  export * from './USyncDisappearingModeProtocol.js';
5
- //# sourceMappingURL=index.d.ts.map
5
+ //# sourceMappingURL=index.d.ts.map
6
+
7
+
@@ -20,3 +20,6 @@ __exportStar(require("./USyncStatusProtocol.js"), exports);
20
20
  __exportStar(require("./USyncDisappearingModeProtocol.js"), exports);
21
21
  __exportStar(require("./UsyncBotProfileProtocol.js"), exports);
22
22
  __exportStar(require("./UsyncLIDProtocol.js"), exports);
23
+
24
+
25
+
@@ -26,4 +26,6 @@ export declare class USyncQuery {
26
26
  withBotProfileProtocol(): this;
27
27
  withLIDProtocol(): this;
28
28
  }
29
- //# sourceMappingURL=USyncQuery.d.ts.map
29
+ //# sourceMappingURL=USyncQuery.d.ts.map
30
+
31
+
@@ -95,3 +95,6 @@ class USyncQuery {
95
95
  }
96
96
  }
97
97
  exports.USyncQuery = USyncQuery;
98
+
99
+
100
+
@@ -10,4 +10,6 @@ export declare class USyncUser {
10
10
  withType(type: string): this;
11
11
  withPersonaId(personaId: string): this;
12
12
  }
13
- //# sourceMappingURL=USyncUser.d.ts.map
13
+ //# sourceMappingURL=USyncUser.d.ts.map
14
+
15
+
@@ -24,3 +24,6 @@ class USyncUser {
24
24
  }
25
25
  }
26
26
  exports.USyncUser = USyncUser;
27
+
28
+
29
+
@@ -1,4 +1,6 @@
1
1
  export * from './Protocols/index.js';
2
2
  export * from './USyncQuery.js';
3
3
  export * from './USyncUser.js';
4
- //# sourceMappingURL=index.d.ts.map
4
+ //# sourceMappingURL=index.d.ts.map
5
+
6
+
@@ -17,3 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./Protocols/index.js"), exports);
18
18
  __exportStar(require("./USyncQuery.js"), exports);
19
19
  __exportStar(require("./USyncUser.js"), exports);
20
+
21
+
22
+
package/lib/index.d.ts CHANGED
@@ -10,3 +10,6 @@ export type WASocket = ReturnType<typeof makeWASocket>;
10
10
  export { makeWASocket };
11
11
  export default makeWASocket;
12
12
  //# sourceMappingURL=index.d.ts.map
13
+
14
+
15
+
package/lib/index.js CHANGED
@@ -122,3 +122,6 @@ __exportStar(require("./WABinary"), exports);
122
122
  __exportStar(require("./WAM"), exports);
123
123
  __exportStar(require("./WAUSync"), exports);
124
124
  __exportStar(require("./Store"), exports);
125
+
126
+
127
+