@awangxcode/qiro-baileys 7.1.1 → 7.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) hide show
  1. package/README.md +292 -110
  2. package/lib/Defaults/index.d.ts +8 -8
  3. package/lib/Defaults/index.d.ts.map +1 -1
  4. package/lib/Defaults/index.js +3 -3
  5. package/lib/Extensions/advanced.d.ts +1 -1
  6. package/lib/Extensions/experimental.d.ts +4 -4
  7. package/lib/Extensions/experimental.d.ts.map +1 -1
  8. package/lib/MessageBuilder/index.d.ts +5 -5
  9. package/lib/MessageBuilder/index.js +2 -2
  10. package/lib/Signal/Group/group-session-builder.d.ts +3 -3
  11. package/lib/Signal/Group/group-session-builder.js +4 -4
  12. package/lib/Signal/Group/group_cipher.d.ts +2 -2
  13. package/lib/Signal/Group/group_cipher.js +4 -4
  14. package/lib/Signal/Group/index.d.ts +11 -11
  15. package/lib/Signal/Group/index.js +11 -11
  16. package/lib/Signal/Group/sender-chain-key.d.ts +1 -1
  17. package/lib/Signal/Group/sender-chain-key.js +1 -1
  18. package/lib/Signal/Group/sender-key-distribution-message.d.ts +1 -1
  19. package/lib/Signal/Group/sender-key-distribution-message.js +1 -1
  20. package/lib/Signal/Group/sender-key-message.d.ts +1 -1
  21. package/lib/Signal/Group/sender-key-message.js +1 -1
  22. package/lib/Signal/Group/sender-key-record.d.ts +1 -1
  23. package/lib/Signal/Group/sender-key-record.js +2 -2
  24. package/lib/Signal/Group/sender-key-state.d.ts +2 -2
  25. package/lib/Signal/Group/sender-key-state.js +2 -2
  26. package/lib/Signal/libsignal.d.ts +3 -3
  27. package/lib/Signal/libsignal.js +6 -6
  28. package/lib/Signal/lid-mapping.d.ts +2 -2
  29. package/lib/Signal/lid-mapping.js +1 -1
  30. package/lib/Socket/Client/index.d.ts +2 -2
  31. package/lib/Socket/Client/index.js +2 -2
  32. package/lib/Socket/Client/types.d.ts +1 -1
  33. package/lib/Socket/Client/websocket.d.ts +1 -1
  34. package/lib/Socket/Client/websocket.js +2 -2
  35. package/lib/Socket/business.d.ts +79 -79
  36. package/lib/Socket/business.d.ts.map +1 -1
  37. package/lib/Socket/business.js +5 -5
  38. package/lib/Socket/chats.d.ts +16 -16
  39. package/lib/Socket/chats.d.ts.map +1 -1
  40. package/lib/Socket/chats.js +9 -9
  41. package/lib/Socket/communities.d.ts +59 -59
  42. package/lib/Socket/communities.d.ts.map +1 -1
  43. package/lib/Socket/communities.js +5 -5
  44. package/lib/Socket/groups.d.ts +28 -28
  45. package/lib/Socket/groups.d.ts.map +1 -1
  46. package/lib/Socket/groups.js +4 -4
  47. package/lib/Socket/index.d.ts +99 -99
  48. package/lib/Socket/index.d.ts.map +1 -1
  49. package/lib/Socket/index.js +4 -4
  50. package/lib/Socket/messages-recv.d.ts +42 -43
  51. package/lib/Socket/messages-recv.d.ts.map +1 -1
  52. package/lib/Socket/messages-recv.js +10 -10
  53. package/lib/Socket/messages-send.d.ts +45 -46
  54. package/lib/Socket/messages-send.d.ts.map +1 -1
  55. package/lib/Socket/messages-send.js +9 -9
  56. package/lib/Socket/mex.d.ts +1 -1
  57. package/lib/Socket/mex.js +1 -1
  58. package/lib/Socket/newsletter.d.ts +34 -34
  59. package/lib/Socket/newsletter.d.ts.map +1 -1
  60. package/lib/Socket/newsletter.js +5 -5
  61. package/lib/Socket/socket.d.ts +11 -11
  62. package/lib/Socket/socket.js +7 -7
  63. package/lib/Types/Auth.d.ts +2 -2
  64. package/lib/Types/Chat.d.ts +6 -6
  65. package/lib/Types/Events.d.ts +9 -9
  66. package/lib/Types/GroupMetadata.d.ts +2 -2
  67. package/lib/Types/Message.d.ts +5 -5
  68. package/lib/Types/Product.d.ts +1 -1
  69. package/lib/Types/Signal.d.ts +1 -1
  70. package/lib/Types/Socket.d.ts +5 -5
  71. package/lib/Types/Socket.js +1 -1
  72. package/lib/Types/State.d.ts +1 -1
  73. package/lib/Types/USync.d.ts +2 -2
  74. package/lib/Types/USync.js +1 -1
  75. package/lib/Types/index.d.ts +14 -14
  76. package/lib/Types/index.js +12 -12
  77. package/lib/Utils/auth-utils.d.ts +2 -2
  78. package/lib/Utils/auth-utils.js +4 -4
  79. package/lib/Utils/browser-utils.d.ts +1 -1
  80. package/lib/Utils/business.d.ts +3 -3
  81. package/lib/Utils/business.js +3 -3
  82. package/lib/Utils/chat-utils.d.ts +7 -7
  83. package/lib/Utils/chat-utils.d.ts.map +1 -1
  84. package/lib/Utils/chat-utils.js +7 -7
  85. package/lib/Utils/companion-reg-client-utils.d.ts +3 -3
  86. package/lib/Utils/companion-reg-client-utils.js +1 -1
  87. package/lib/Utils/crypto.d.ts +15 -15
  88. package/lib/Utils/crypto.d.ts.map +1 -1
  89. package/lib/Utils/crypto.js +1 -1
  90. package/lib/Utils/decode-wa-message.d.ts +4 -4
  91. package/lib/Utils/decode-wa-message.js +2 -2
  92. package/lib/Utils/event-buffer.d.ts +2 -2
  93. package/lib/Utils/event-buffer.js +4 -4
  94. package/lib/Utils/generics.d.ts +5 -5
  95. package/lib/Utils/generics.d.ts.map +1 -1
  96. package/lib/Utils/generics.js +3 -3
  97. package/lib/Utils/history.d.ts +1 -1
  98. package/lib/Utils/history.js +5 -5
  99. package/lib/Utils/identity-change-handler.d.ts +2 -2
  100. package/lib/Utils/identity-change-handler.js +2 -2
  101. package/lib/Utils/index.d.ts +21 -21
  102. package/lib/Utils/index.js +21 -21
  103. package/lib/Utils/link-preview.d.ts +2 -2
  104. package/lib/Utils/link-preview.js +2 -2
  105. package/lib/Utils/logger.d.ts +1 -1
  106. package/lib/Utils/lt-hash.d.ts +1 -2
  107. package/lib/Utils/lt-hash.d.ts.map +1 -1
  108. package/lib/Utils/message-retry-manager.d.ts +1 -1
  109. package/lib/Utils/messages-media.d.ts +25 -25
  110. package/lib/Utils/messages-media.d.ts.map +1 -1
  111. package/lib/Utils/messages-media.js +4 -4
  112. package/lib/Utils/messages.d.ts +11 -12
  113. package/lib/Utils/messages.d.ts.map +1 -1
  114. package/lib/Utils/messages.js +7 -7
  115. package/lib/Utils/newsletter-auto-follow.d.ts.map +1 -1
  116. package/lib/Utils/newsletter-auto-follow.js +3 -3
  117. package/lib/Utils/newsletter-auto-follow.js.map +1 -1
  118. package/lib/Utils/noise-handler.d.ts +4 -4
  119. package/lib/Utils/noise-handler.js +3 -3
  120. package/lib/Utils/offline-node-processor.d.ts +1 -1
  121. package/lib/Utils/pre-key-manager.d.ts +2 -2
  122. package/lib/Utils/process-message.d.ts +2 -2
  123. package/lib/Utils/process-message.js +7 -7
  124. package/lib/Utils/reporting-utils.d.ts +2 -2
  125. package/lib/Utils/reporting-utils.js +1 -1
  126. package/lib/Utils/self-updater.d.ts +0 -1
  127. package/lib/Utils/self-updater.js +0 -1
  128. package/lib/Utils/signal.d.ts +7 -7
  129. package/lib/Utils/signal.js +4 -4
  130. package/lib/Utils/stanza-ack.d.ts +1 -1
  131. package/lib/Utils/sync-action-utils.d.ts +2 -2
  132. package/lib/Utils/sync-action-utils.js +1 -1
  133. package/lib/Utils/tc-token-utils.d.ts +2 -2
  134. package/lib/Utils/tc-token-utils.js +1 -1
  135. package/lib/Utils/use-multi-file-auth-state.d.ts +1 -1
  136. package/lib/Utils/use-multi-file-auth-state.js +2 -2
  137. package/lib/Utils/validate-connection.d.ts +3 -3
  138. package/lib/Utils/validate-connection.d.ts.map +1 -1
  139. package/lib/Utils/validate-connection.js +5 -5
  140. package/lib/WABinary/decode.d.ts +2 -2
  141. package/lib/WABinary/decode.d.ts.map +1 -1
  142. package/lib/WABinary/decode.js +2 -2
  143. package/lib/WABinary/encode.d.ts +1 -1
  144. package/lib/WABinary/encode.js +2 -2
  145. package/lib/WABinary/generic-utils.d.ts +3 -3
  146. package/lib/WABinary/generic-utils.d.ts.map +1 -1
  147. package/lib/WABinary/generic-utils.js +1 -1
  148. package/lib/WABinary/index.d.ts +5 -5
  149. package/lib/WABinary/index.js +5 -5
  150. package/lib/WABinary/types.d.ts +1 -1
  151. package/lib/WABinary/types.js +1 -1
  152. package/lib/WAM/BinaryInfo.d.ts +1 -1
  153. package/lib/WAM/encode.d.ts +2 -2
  154. package/lib/WAM/encode.d.ts.map +1 -1
  155. package/lib/WAM/encode.js +2 -2
  156. package/lib/WAM/index.d.ts +3 -3
  157. package/lib/WAM/index.js +3 -3
  158. package/lib/WAUSync/Protocols/USyncContactProtocol.d.ts +3 -3
  159. package/lib/WAUSync/Protocols/USyncContactProtocol.js +2 -2
  160. package/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts +2 -2
  161. package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +1 -1
  162. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts +2 -2
  163. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +1 -1
  164. package/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts +2 -2
  165. package/lib/WAUSync/Protocols/USyncStatusProtocol.js +1 -1
  166. package/lib/WAUSync/Protocols/USyncUsernameProtocol.d.ts +3 -3
  167. package/lib/WAUSync/Protocols/USyncUsernameProtocol.js +2 -2
  168. package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.d.ts +3 -3
  169. package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.js +2 -2
  170. package/lib/WAUSync/Protocols/UsyncLIDProtocol.d.ts +3 -3
  171. package/lib/WAUSync/Protocols/index.d.ts +5 -5
  172. package/lib/WAUSync/Protocols/index.js +5 -5
  173. package/lib/WAUSync/USyncQuery.d.ts +3 -3
  174. package/lib/WAUSync/USyncQuery.js +5 -5
  175. package/lib/WAUSync/index.d.ts +3 -3
  176. package/lib/WAUSync/index.js +3 -3
  177. package/lib/index.d.ts +10 -10
  178. package/lib/index.d.ts.map +1 -1
  179. package/lib/index.js +13 -13
  180. package/lib/index.js.map +1 -1
  181. package/package.json +1 -1
  182. package/lib/Utils/self-updater.d.ts.map +0 -1
  183. package/lib/Utils/self-updater.js.map +0 -1
@@ -1,18 +1,17 @@
1
- import NodeCache from '@cacheable/node-cache';
2
1
  import { Boom } from '@hapi/boom';
3
2
  import Long from 'long';
4
3
  import { proto } from '../../WAProto/index.js';
5
- import type { MessageReceiptType, MessageRelayOptions, NewChatMessageCapInfo, SocketConfig, WAMessage, WAMessageKey } from '../Types/index.js';
4
+ import type { MessageReceiptType, MessageRelayOptions, NewChatMessageCapInfo, SocketConfig, WAMessage, WAMessageKey } from '../Types';
6
5
  import { TTLCache } from '../Utils/ttl-cache.js';
7
- import { type BinaryNode, type JidWithDevice } from '../WABinary/index.js';
6
+ import { type BinaryNode, type JidWithDevice } from '../WABinary';
8
7
  export declare const makeMessagesRecvSocket: (config: SocketConfig) => {
9
8
  sendMessageAck: (node: BinaryNode, errorCode?: number) => Promise<void>;
10
9
  sendRetryRequest: (node: BinaryNode, forceIncludeKeys?: boolean) => Promise<void>;
11
10
  rejectCall: (callId: string, callFrom: string) => Promise<void>;
12
11
  fetchMessageHistory: (count: number, oldestMsgKey: WAMessageKey, oldestMsgTimestamp: number | Long) => Promise<string>;
13
12
  requestPlaceholderResend: (messageKey: WAMessageKey, msgData?: Partial<WAMessage>) => Promise<string | undefined>;
14
- messageRetryManager: import("../Utils/index.js").MessageRetryManager | null;
15
- userDevicesCache: import("../Types/index.js").PossiblyExtendedCacheStore | NodeCache<JidWithDevice[]>;
13
+ messageRetryManager: import("../Utils").MessageRetryManager | null;
14
+ userDevicesCache: any;
16
15
  devicesMutex: {
17
16
  mutex<T>(code: () => Promise<T> | T): Promise<T>;
18
17
  };
@@ -22,10 +21,10 @@ export declare const makeMessagesRecvSocket: (config: SocketConfig) => {
22
21
  sendReceipt: (jid: string, participant: string | undefined, messageIds: string[], type: MessageReceiptType) => Promise<void>;
23
22
  sendReceipts: (keys: WAMessageKey[], type: MessageReceiptType) => Promise<void>;
24
23
  readMessages: (keys: WAMessageKey[]) => Promise<void>;
25
- refreshMediaConn: (forceGet?: boolean) => Promise<import("../Types/index.js").MediaConnInfo>;
24
+ refreshMediaConn: (forceGet?: boolean) => Promise<import("../Types").MediaConnInfo>;
26
25
  getMediaHost: () => string;
27
- waUploadToServer: import("../Types/index.js").WAMediaUploadFunction;
28
- outboundResendCache: import("../Types/index.js").CacheStore | TTLCache<{
26
+ waUploadToServer: import("../Types").WAMediaUploadFunction;
27
+ outboundResendCache: import("../Types").CacheStore | TTLCache<{
29
28
  jid: string;
30
29
  message: proto.IMessage;
31
30
  }>;
@@ -46,7 +45,7 @@ export declare const makeMessagesRecvSocket: (config: SocketConfig) => {
46
45
  })[]>;
47
46
  updateMemberLabel: (jid: string, memberLabel: string) => Promise<string>;
48
47
  updateMediaMessage: (message: WAMessage) => Promise<WAMessage>;
49
- sendMessage: (jid: string, content: import("../Types/index.js").AnyMessageContent, options?: import("../Types/index.js").MiscMessageGenerationOptions) => Promise<WAMessage | undefined>;
48
+ sendMessage: (jid: string, content: import("../Types").AnyMessageContent, options?: import("../Types").MiscMessageGenerationOptions) => Promise<WAMessage | undefined>;
50
49
  newsletterUpdateUserSetting: (jid: string, type: "FOLLOWER_NOTIFICATIONS" | "ADMIN_NOTIFICATIONS", muted: boolean) => Promise<{
51
50
  id: any;
52
51
  state: any;
@@ -181,19 +180,19 @@ export declare const makeMessagesRecvSocket: (config: SocketConfig) => {
181
180
  newsletterRecommended: (options?: any) => Promise<any>;
182
181
  newsletterSimilar: (jid: string, options?: any) => Promise<any>;
183
182
  newsletterFollowers: (jid: string, options?: any) => Promise<any>;
184
- newsletterCreate: (name: string, description?: string) => Promise<import("../Types/index.js").NewsletterMetadata>;
185
- newsletterUpdate: (jid: string, updates: import("../Types/index.js").NewsletterUpdate) => Promise<unknown>;
183
+ newsletterCreate: (name: string, description?: string) => Promise<import("../Types").NewsletterMetadata>;
184
+ newsletterUpdate: (jid: string, updates: import("../Types").NewsletterUpdate) => Promise<unknown>;
186
185
  newsletterSubscribers: (jid: string) => Promise<{
187
186
  subscribers: number;
188
187
  }>;
189
- newsletterMetadata: (type: "invite" | "jid", key: string) => Promise<import("../Types/index.js").NewsletterMetadata | null>;
188
+ newsletterMetadata: (type: "invite" | "jid", key: string) => Promise<import("../Types").NewsletterMetadata | null>;
190
189
  newsletterFollow: (jid: string) => Promise<unknown>;
191
190
  newsletterUnfollow: (jid: string) => Promise<unknown>;
192
191
  newsletterMute: (jid: string) => Promise<unknown>;
193
192
  newsletterUnmute: (jid: string) => Promise<unknown>;
194
193
  newsletterUpdateName: (jid: string, name: string) => Promise<unknown>;
195
194
  newsletterUpdateDescription: (jid: string, description: string) => Promise<unknown>;
196
- newsletterUpdatePicture: (jid: string, content: import("../Types/index.js").WAMediaUpload) => Promise<unknown>;
195
+ newsletterUpdatePicture: (jid: string, content: import("../Types").WAMediaUpload) => Promise<unknown>;
197
196
  newsletterRemovePicture: (jid: string) => Promise<unknown>;
198
197
  newsletterReactMessage: (jid: string, serverId: string, reaction?: string) => Promise<void>;
199
198
  newsletterFetchMessages: (jid: string, count: number, since: number, after: number) => Promise<any>;
@@ -238,8 +237,8 @@ export declare const makeMessagesRecvSocket: (config: SocketConfig) => {
238
237
  newsletterChangeOwner: (jid: string, newOwnerJid: string) => Promise<void>;
239
238
  newsletterDemote: (jid: string, userJid: string) => Promise<void>;
240
239
  newsletterDelete: (jid: string) => Promise<void>;
241
- groupMetadata: (jid: string) => Promise<import("../Types/index.js").GroupMetadata>;
242
- groupCreate: (subject: string, participants: string[]) => Promise<import("../Types/index.js").GroupMetadata>;
240
+ groupMetadata: (jid: string) => Promise<import("../Types").GroupMetadata>;
241
+ groupCreate: (subject: string, participants: string[]) => Promise<import("../Types").GroupMetadata>;
243
242
  groupLeave: (id: string) => Promise<void>;
244
243
  groupUpdateSubject: (jid: string, subject: string) => Promise<void>;
245
244
  groupRequestParticipantsList: (jid: string) => Promise<{
@@ -249,7 +248,7 @@ export declare const makeMessagesRecvSocket: (config: SocketConfig) => {
249
248
  status: string;
250
249
  jid: string | undefined;
251
250
  }[]>;
252
- groupParticipantsUpdate: (jid: string, participants: string[], action: import("../Types/index.js").ParticipantAction) => Promise<{
251
+ groupParticipantsUpdate: (jid: string, participants: string[], action: import("../Types").ParticipantAction) => Promise<{
253
252
  status: string;
254
253
  jid: string | undefined;
255
254
  content: BinaryNode;
@@ -260,13 +259,13 @@ export declare const makeMessagesRecvSocket: (config: SocketConfig) => {
260
259
  groupAcceptInvite: (code: string) => Promise<string | undefined>;
261
260
  groupRevokeInviteV4: (groupJid: string, invitedJid: string) => Promise<boolean>;
262
261
  groupAcceptInviteV4: (key: string | WAMessageKey, inviteMessage: proto.Message.IGroupInviteMessage) => Promise<any>;
263
- groupGetInviteInfo: (code: string) => Promise<import("../Types/index.js").GroupMetadata>;
262
+ groupGetInviteInfo: (code: string) => Promise<import("../Types").GroupMetadata>;
264
263
  groupToggleEphemeral: (jid: string, ephemeralExpiration: number) => Promise<void>;
265
264
  groupSettingUpdate: (jid: string, setting: "announcement" | "not_announcement" | "locked" | "unlocked") => Promise<void>;
266
265
  groupMemberAddMode: (jid: string, mode: "admin_add" | "all_member_add") => Promise<void>;
267
266
  groupJoinApprovalMode: (jid: string, mode: "on" | "off") => Promise<void>;
268
267
  groupFetchAllParticipating: () => Promise<{
269
- [_: string]: import("../Types/index.js").GroupMetadata;
268
+ [_: string]: import("../Types").GroupMetadata;
270
269
  }>;
271
270
  serverProps: {
272
271
  privacyTokenOn1to1: boolean;
@@ -304,7 +303,7 @@ export declare const makeMessagesRecvSocket: (config: SocketConfig) => {
304
303
  createCallLink: (type: "audio" | "video", event?: {
305
304
  startTime: number;
306
305
  }, timeoutMs?: number) => Promise<string | undefined>;
307
- getBotListV2: () => Promise<import("../Types/index.js").BotListInfo[]>;
306
+ getBotListV2: () => Promise<import("../Types").BotListInfo[]>;
308
307
  messageMutex: {
309
308
  mutex<T>(code: () => Promise<T> | T): Promise<T>;
310
309
  };
@@ -317,15 +316,15 @@ export declare const makeMessagesRecvSocket: (config: SocketConfig) => {
317
316
  notificationMutex: {
318
317
  mutex<T>(code: () => Promise<T> | T): Promise<T>;
319
318
  };
320
- upsertMessage: (msg: WAMessage, type: import("../Types/index.js").MessageUpsertType) => Promise<void>;
321
- appPatch: (patchCreate: import("../Types/index.js").WAPatchCreate) => Promise<void>;
322
- sendPresenceUpdate: (type: import("../Types/index.js").WAPresence, toJid?: string) => Promise<void>;
319
+ upsertMessage: (msg: WAMessage, type: import("../Types").MessageUpsertType) => Promise<void>;
320
+ appPatch: (patchCreate: import("../Types").WAPatchCreate) => Promise<void>;
321
+ sendPresenceUpdate: (type: import("../Types").WAPresence, toJid?: string) => Promise<void>;
323
322
  presenceSubscribe: (toJid: string) => Promise<void>;
324
323
  profilePictureUrl: (jid: string, type?: "preview" | "image", timeoutMs?: number) => Promise<string | undefined>;
325
324
  fetchBlocklist: () => Promise<(string | undefined)[]>;
326
325
  fetchStatus: (...jids: string[]) => Promise<import("../index.js").USyncQueryResultList[] | undefined>;
327
326
  fetchDisappearingDuration: (...jids: string[]) => Promise<import("../index.js").USyncQueryResultList[] | undefined>;
328
- updateProfilePicture: (jid: string, content: import("../Types/index.js").WAMediaUpload, dimensions?: {
327
+ updateProfilePicture: (jid: string, content: import("../Types").WAMediaUpload, dimensions?: {
329
328
  width?: number;
330
329
  height?: number;
331
330
  full?: boolean;
@@ -336,22 +335,22 @@ export declare const makeMessagesRecvSocket: (config: SocketConfig) => {
336
335
  updateProfileName: (name: string) => Promise<void>;
337
336
  updateBlockStatus: (jid: string, action: "block" | "unblock") => Promise<void>;
338
337
  updateDisableLinkPreviewsPrivacy: (isPreviewsDisabled: boolean) => Promise<void>;
339
- updateCallPrivacy: (value: import("../Types/index.js").WAPrivacyCallValue) => Promise<void>;
340
- updateMessagesPrivacy: (value: import("../Types/index.js").WAPrivacyMessagesValue) => Promise<void>;
341
- updateLastSeenPrivacy: (value: import("../Types/index.js").WAPrivacyValue) => Promise<void>;
342
- updateOnlinePrivacy: (value: import("../Types/index.js").WAPrivacyOnlineValue) => Promise<void>;
343
- updateProfilePicturePrivacy: (value: import("../Types/index.js").WAPrivacyValue) => Promise<void>;
344
- updateStatusPrivacy: (value: import("../Types/index.js").WAPrivacyValue) => Promise<void>;
345
- updateReadReceiptsPrivacy: (value: import("../Types/index.js").WAReadReceiptsValue) => Promise<void>;
346
- updateGroupsAddPrivacy: (value: import("../Types/index.js").WAPrivacyGroupAddValue) => Promise<void>;
338
+ updateCallPrivacy: (value: import("../Types").WAPrivacyCallValue) => Promise<void>;
339
+ updateMessagesPrivacy: (value: import("../Types").WAPrivacyMessagesValue) => Promise<void>;
340
+ updateLastSeenPrivacy: (value: import("../Types").WAPrivacyValue) => Promise<void>;
341
+ updateOnlinePrivacy: (value: import("../Types").WAPrivacyOnlineValue) => Promise<void>;
342
+ updateProfilePicturePrivacy: (value: import("../Types").WAPrivacyValue) => Promise<void>;
343
+ updateStatusPrivacy: (value: import("../Types").WAPrivacyValue) => Promise<void>;
344
+ updateReadReceiptsPrivacy: (value: import("../Types").WAReadReceiptsValue) => Promise<void>;
345
+ updateGroupsAddPrivacy: (value: import("../Types").WAPrivacyGroupAddValue) => Promise<void>;
347
346
  updateDefaultDisappearingMode: (duration: number) => Promise<void>;
348
- getBusinessProfile: (jid: string) => Promise<import("../Types/index.js").WABusinessProfile | void>;
347
+ getBusinessProfile: (jid: string) => Promise<import("../Types").WABusinessProfile | void>;
349
348
  resyncAppState: (collections: readonly ("critical_unblock_low" | "regular_high" | "regular_low" | "critical_block" | "regular")[], isInitialSync: boolean) => Promise<void>;
350
- chatModify: (mod: import("../Types/index.js").ChatModification, jid: string) => Promise<void>;
349
+ chatModify: (mod: import("../Types").ChatModification, jid: string) => Promise<void>;
351
350
  cleanDirtyBits: (type: "account_sync" | "groups", fromTimestamp?: number | string) => Promise<void>;
352
351
  addOrEditContact: (jid: string, contact: proto.SyncActionValue.IContactAction) => Promise<void>;
353
352
  removeContact: (jid: string) => Promise<void>;
354
- placeholderResendCache: import("../Types/index.js").CacheStore;
353
+ placeholderResendCache: import("../Types").CacheStore;
355
354
  addLabel: (jid: string, labels: import("../Types/Label.js").LabelActionBody) => Promise<void>;
356
355
  addChatLabel: (jid: string, labelId: string) => Promise<void>;
357
356
  removeChatLabel: (jid: string, labelId: string) => Promise<void>;
@@ -422,7 +421,7 @@ export declare const makeMessagesRecvSocket: (config: SocketConfig) => {
422
421
  [key: string]: string;
423
422
  }>;
424
423
  fetchServerLinkPreview: (url: string) => Promise<any>;
425
- reportSpam: (jid: string, options?: import("../Types/index.js").SpamReportOptions) => Promise<{
424
+ reportSpam: (jid: string, options?: import("../Types").SpamReportOptions) => Promise<{
426
425
  jid: string | undefined;
427
426
  flow: string | undefined;
428
427
  reported: boolean;
@@ -430,8 +429,8 @@ export declare const makeMessagesRecvSocket: (config: SocketConfig) => {
430
429
  }>;
431
430
  type: "md";
432
431
  ws: import("./Client/websocket.js").WebSocketClient;
433
- ev: import("../Types/index.js").BaileysEventEmitter & {
434
- process(handler: (events: Partial<import("../Types/index.js").BaileysEventMap>) => void | Promise<void>): () => void;
432
+ ev: import("../Types").BaileysEventEmitter & {
433
+ process(handler: (events: Partial<import("../Types").BaileysEventMap>) => void | Promise<void>): () => void;
435
434
  buffer(): void;
436
435
  createBufferedFunction<A extends any[], T>(work: (...args: A) => Promise<T>): (...args: A) => Promise<T>;
437
436
  flush(): boolean;
@@ -439,11 +438,11 @@ export declare const makeMessagesRecvSocket: (config: SocketConfig) => {
439
438
  destroy(): void;
440
439
  };
441
440
  authState: {
442
- creds: import("../Types/index.js").AuthenticationCreds;
443
- keys: import("../Types/index.js").SignalKeyStoreWithTransaction;
441
+ creds: import("../Types").AuthenticationCreds;
442
+ keys: import("../Types").SignalKeyStoreWithTransaction;
444
443
  };
445
- signalRepository: import("../Types/index.js").SignalRepositoryWithLIDStore;
446
- user: import("../Types/index.js").Contact | undefined;
444
+ signalRepository: import("../Types").SignalRepositoryWithLIDStore;
445
+ user: import("../Types").Contact | undefined;
447
446
  generateMessageTag: () => string;
448
447
  query: (node: BinaryNode, timeoutMs?: number, options?: {
449
448
  suppressTimeoutLog?: boolean;
@@ -465,7 +464,7 @@ export declare const makeMessagesRecvSocket: (config: SocketConfig) => {
465
464
  updateServerTimeOffset: ({ attrs }: BinaryNode) => void;
466
465
  sendUnifiedSession: () => Promise<void>;
467
466
  wamBuffer: import("../index.js").BinaryInfo;
468
- waitForConnectionUpdate: (check: (u: Partial<import("../Types/index.js").ConnectionState>) => Promise<boolean | undefined>, timeoutMs?: number) => Promise<void>;
467
+ waitForConnectionUpdate: (check: (u: Partial<import("../Types").ConnectionState>) => Promise<boolean | undefined>, timeoutMs?: number) => Promise<void>;
469
468
  sendWAMBuffer: (wamBuffer: Buffer) => Promise<any>;
470
469
  executeUSyncQuery: (usyncQuery: import("../index.js").USyncQuery) => Promise<import("../index.js").USyncQueryResult | undefined>;
471
470
  onWhatsApp: (...phoneNumber: string[]) => Promise<{
@@ -484,7 +483,7 @@ export declare const makeMessagesRecvSocket: (config: SocketConfig) => {
484
483
  jid: string;
485
484
  username: unknown;
486
485
  }[]>;
487
- fetchAccountReachoutTimelock: () => Promise<import("../Types/index.js").ReachoutTimelockState>;
486
+ fetchAccountReachoutTimelock: () => Promise<import("../Types").ReachoutTimelockState>;
488
487
  fetchNewChatMessageCap: () => Promise<NewChatMessageCapInfo>;
489
488
  };
490
489
  //# sourceMappingURL=messages-recv.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"messages-recv.d.ts","sourceRoot":"","sources":["../../src/Socket/messages-recv.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,uBAAuB,CAAA;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AAEjC,OAAO,IAAI,MAAM,MAAM,CAAA;AACvB,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAA;AAS9C,OAAO,KAAK,EAEX,kBAAkB,EAClB,mBAAmB,EAEnB,qBAAqB,EACrB,YAAY,EAEZ,SAAS,EACT,YAAY,EAEZ,MAAM,UAAU,CAAA;AAkCjB,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAYhD,OAA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;;;;;;;;;;;;;;;;aAEI,CAAC;WAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAhMa,CAAC;gBAAkB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAqU5C,CAAC;aAAgB,CAAA;cAAgB,CAAC;aAE9C,CAAC;;;;;;aA8BL,CAAF;cAAgB,CAAC;cAAgB,CAAC;kBAAoB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA6PhD,CAAC;;;eAvqBF,CAAC;;;;;;;;;;;;;;;;;kBAgDA,CAAC;kBAAiB,CAAC;qBACpB,CAAH;qBAAqB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aA1GmB,CAAC;cACzC,CAAF;YAAc,CAAC;eAAkB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA2yBmC,CAAC;;;;;;;;;;gBAwW7D,CAAC;iBAAoB,CAAC;cAAgB,CAAC;;;;iBAcvC,CAAC;cAEJ,CAAF;;;;;;;;;4BA6B4D,CAAC;aAE5D,CAAN;;;;;;;;;;;;;;;;;gBAiEG,CADF;aAAe,CAAC;;;;;;;;aAWL,CAAC;cAAgB,CAAC;kBAAoB,CAAC;gBAEhD,CAAC;gBAEY,CAAC;;;;;;;;;;;;;;;;;0DArhDV,GAAG,0BAET,GAAE;;;;;;;;;;;;;0BAwJuB,CAAC;;;;wCAzE+D,MAAO;;;;;;;;;;;;;;;;+BAyvB3E,MAAO;;;;;;;gBA5jBZ,CAAC;WACV,CAAC;mBACC,CAAC;;;;;;;;;;;CAk1DV,CAAA"}
@@ -3,17 +3,17 @@ import { Boom } from '@hapi/boom';
3
3
  import { randomBytes } from 'crypto';
4
4
  import Long from 'long';
5
5
  import { proto } from '../../WAProto/index.js';
6
- import { DEFAULT_CACHE_TTLS, DEFAULT_CONNECTION_CONFIG, KEY_BUNDLE_TYPE, MIN_PREKEY_COUNT, PLACEHOLDER_MAX_AGE_SECONDS, STATUS_EXPIRY_SECONDS } from '../Defaults/index.js';
7
- import { ReachoutTimelockEnforcementType, WAMessageStatus, WAMessageStubType } from '../Types/index.js';
8
- import { ACCOUNT_RESTRICTED_TEXT, aesDecryptCTR, aesEncryptGCM, cleanMessage, Curve, decodeMediaRetryNode, decodeMessageNode, decryptMessageNode, delay, derivePairingCodeKey, encodeBigEndian, encodeSignedDeviceIdentity, extractAddressingContext, extractE2ESessionFromRetryReceipt, getCallStatusFromNode, getHistoryMsg, getNextPreKeys, getStatusFromReceiptType, handleIdentityChange, hkdf, MISSING_KEYS_ERROR_TEXT, NACK_REASONS, RETRYABLE_ACK_CODES, NO_MESSAGE_FOUND_ERROR_TEXT, SERVER_ERROR_CODES, toNumber, unixTimestampSeconds, xmppPreKey, xmppSignedPreKey } from '../Utils/index.js';
9
- import { makeMutex } from '../Utils/make-mutex.js';
6
+ import { DEFAULT_CACHE_TTLS, DEFAULT_CONNECTION_CONFIG, KEY_BUNDLE_TYPE, MIN_PREKEY_COUNT, PLACEHOLDER_MAX_AGE_SECONDS, STATUS_EXPIRY_SECONDS } from '../Defaults';
7
+ import { ReachoutTimelockEnforcementType, WAMessageStatus, WAMessageStubType } from '../Types';
8
+ import { ACCOUNT_RESTRICTED_TEXT, aesDecryptCTR, aesEncryptGCM, cleanMessage, Curve, decodeMediaRetryNode, decodeMessageNode, decryptMessageNode, delay, derivePairingCodeKey, encodeBigEndian, encodeSignedDeviceIdentity, extractAddressingContext, extractE2ESessionFromRetryReceipt, getCallStatusFromNode, getHistoryMsg, getNextPreKeys, getStatusFromReceiptType, handleIdentityChange, hkdf, MISSING_KEYS_ERROR_TEXT, NACK_REASONS, RETRYABLE_ACK_CODES, NO_MESSAGE_FOUND_ERROR_TEXT, SERVER_ERROR_CODES, toNumber, unixTimestampSeconds, xmppPreKey, xmppSignedPreKey } from '../Utils';
9
+ import { makeMutex } from '../Utils/make-mutex';
10
10
  import { TTLCache } from '../Utils/ttl-cache.js';
11
- import { makeOfflineNodeProcessor } from '../Utils/offline-node-processor.js';
12
- import { buildAckStanza } from '../Utils/stanza-ack.js';
13
- import { buildMergedTcTokenIndexWrite, isTcTokenExpired, readTcTokenIndex, resolveIssuanceJid, resolveTcTokenJid, storeTcTokensFromIqResult, TC_TOKEN_INDEX_KEY } from '../Utils/tc-token-utils.js';
14
- import { areJidsSameUser, binaryNodeToString, getAllBinaryNodeChildren, getBinaryNodeChild, getBinaryNodeChildBuffer, getBinaryNodeChildren, getBinaryNodeChildString, getBinaryNodeChildUInt, isJidGroup, isJidNewsletter, isJidStatusBroadcast, isLidUser, isPnUser, jidDecode, jidNormalizedUser, S_WHATSAPP_NET } from '../WABinary/index.js';
15
- import { extractGroupMetadata } from './groups.js';
16
- import { makeMessagesSocket } from './messages-send.js';
11
+ import { makeOfflineNodeProcessor } from '../Utils/offline-node-processor';
12
+ import { buildAckStanza } from '../Utils/stanza-ack';
13
+ import { buildMergedTcTokenIndexWrite, isTcTokenExpired, readTcTokenIndex, resolveIssuanceJid, resolveTcTokenJid, storeTcTokensFromIqResult, TC_TOKEN_INDEX_KEY } from '../Utils/tc-token-utils';
14
+ import { areJidsSameUser, binaryNodeToString, getAllBinaryNodeChildren, getBinaryNodeChild, getBinaryNodeChildBuffer, getBinaryNodeChildren, getBinaryNodeChildString, getBinaryNodeChildUInt, isJidGroup, isJidNewsletter, isJidStatusBroadcast, isLidUser, isPnUser, jidDecode, jidNormalizedUser, S_WHATSAPP_NET } from '../WABinary';
15
+ import { extractGroupMetadata } from './groups';
16
+ import { makeMessagesSocket } from './messages-send';
17
17
  const ENFORCEMENT_TYPE_VALUES = new Set(Object.values(ReachoutTimelockEnforcementType));
18
18
  function isValidEnforcementType(value) {
19
19
  return typeof value === 'string' && ENFORCEMENT_TYPE_VALUES.has(value);
@@ -1,11 +1,10 @@
1
- import NodeCache from '@cacheable/node-cache';
2
1
  import { Boom } from '@hapi/boom';
3
2
  import { proto } from '../../WAProto/index.js';
4
- import type { AnyMessageContent, MediaConnInfo, MessageReceiptType, MessageRelayOptions, MiscMessageGenerationOptions, SocketConfig, WAMessage, WAMessageKey } from '../Types/index.js';
5
- import { MessageRetryManager } from '../Utils/index.js';
3
+ import type { AnyMessageContent, MediaConnInfo, MessageReceiptType, MessageRelayOptions, MiscMessageGenerationOptions, SocketConfig, WAMessage, WAMessageKey } from '../Types';
4
+ import { MessageRetryManager } from '../Utils';
6
5
  import { TTLCache } from '../Utils/ttl-cache.js';
7
- import { type BinaryNode, type JidWithDevice } from '../WABinary/index.js';
8
- import { USyncQuery } from '../WAUSync/index.js';
6
+ import { type BinaryNode, type JidWithDevice } from '../WABinary';
7
+ import { USyncQuery } from '../WAUSync';
9
8
  export declare const buildMemberLabelMessage: (jid: string, memberLabel?: string | null) => {
10
9
  label: string;
11
10
  content: {
@@ -20,7 +19,7 @@ export declare const buildMemberLabelMessage: (jid: string, memberLabel?: string
20
19
  node: BinaryNode;
21
20
  };
22
21
  export declare const makeMessagesSocket: (config: SocketConfig) => {
23
- userDevicesCache: import("../Types/index.js").PossiblyExtendedCacheStore | NodeCache<JidWithDevice[]>;
22
+ userDevicesCache: any;
24
23
  devicesMutex: {
25
24
  mutex<T>(code: () => Promise<T> | T): Promise<T>;
26
25
  };
@@ -32,8 +31,8 @@ export declare const makeMessagesSocket: (config: SocketConfig) => {
32
31
  readMessages: (keys: WAMessageKey[]) => Promise<void>;
33
32
  refreshMediaConn: (forceGet?: boolean) => Promise<MediaConnInfo>;
34
33
  getMediaHost: () => string;
35
- waUploadToServer: import("../Types/index.js").WAMediaUploadFunction;
36
- outboundResendCache: import("../Types/index.js").CacheStore | TTLCache<{
34
+ waUploadToServer: import("../Types").WAMediaUploadFunction;
35
+ outboundResendCache: import("../Types").CacheStore | TTLCache<{
37
36
  jid: string;
38
37
  message: proto.IMessage;
39
38
  }>;
@@ -190,19 +189,19 @@ export declare const makeMessagesSocket: (config: SocketConfig) => {
190
189
  newsletterRecommended: (options?: any) => Promise<any>;
191
190
  newsletterSimilar: (jid: string, options?: any) => Promise<any>;
192
191
  newsletterFollowers: (jid: string, options?: any) => Promise<any>;
193
- newsletterCreate: (name: string, description?: string) => Promise<import("../Types/index.js").NewsletterMetadata>;
194
- newsletterUpdate: (jid: string, updates: import("../Types/index.js").NewsletterUpdate) => Promise<unknown>;
192
+ newsletterCreate: (name: string, description?: string) => Promise<import("../Types").NewsletterMetadata>;
193
+ newsletterUpdate: (jid: string, updates: import("../Types").NewsletterUpdate) => Promise<unknown>;
195
194
  newsletterSubscribers: (jid: string) => Promise<{
196
195
  subscribers: number;
197
196
  }>;
198
- newsletterMetadata: (type: "invite" | "jid", key: string) => Promise<import("../Types/index.js").NewsletterMetadata | null>;
197
+ newsletterMetadata: (type: "invite" | "jid", key: string) => Promise<import("../Types").NewsletterMetadata | null>;
199
198
  newsletterFollow: (jid: string) => Promise<unknown>;
200
199
  newsletterUnfollow: (jid: string) => Promise<unknown>;
201
200
  newsletterMute: (jid: string) => Promise<unknown>;
202
201
  newsletterUnmute: (jid: string) => Promise<unknown>;
203
202
  newsletterUpdateName: (jid: string, name: string) => Promise<unknown>;
204
203
  newsletterUpdateDescription: (jid: string, description: string) => Promise<unknown>;
205
- newsletterUpdatePicture: (jid: string, content: import("../Types/index.js").WAMediaUpload) => Promise<unknown>;
204
+ newsletterUpdatePicture: (jid: string, content: import("../Types").WAMediaUpload) => Promise<unknown>;
206
205
  newsletterRemovePicture: (jid: string) => Promise<unknown>;
207
206
  newsletterReactMessage: (jid: string, serverId: string, reaction?: string) => Promise<void>;
208
207
  newsletterFetchMessages: (jid: string, count: number, since: number, after: number) => Promise<any>;
@@ -247,8 +246,8 @@ export declare const makeMessagesSocket: (config: SocketConfig) => {
247
246
  newsletterChangeOwner: (jid: string, newOwnerJid: string) => Promise<void>;
248
247
  newsletterDemote: (jid: string, userJid: string) => Promise<void>;
249
248
  newsletterDelete: (jid: string) => Promise<void>;
250
- groupMetadata: (jid: string) => Promise<import("../Types/index.js").GroupMetadata>;
251
- groupCreate: (subject: string, participants: string[]) => Promise<import("../Types/index.js").GroupMetadata>;
249
+ groupMetadata: (jid: string) => Promise<import("../Types").GroupMetadata>;
250
+ groupCreate: (subject: string, participants: string[]) => Promise<import("../Types").GroupMetadata>;
252
251
  groupLeave: (id: string) => Promise<void>;
253
252
  groupUpdateSubject: (jid: string, subject: string) => Promise<void>;
254
253
  groupRequestParticipantsList: (jid: string) => Promise<{
@@ -258,7 +257,7 @@ export declare const makeMessagesSocket: (config: SocketConfig) => {
258
257
  status: string;
259
258
  jid: string | undefined;
260
259
  }[]>;
261
- groupParticipantsUpdate: (jid: string, participants: string[], action: import("../Types/index.js").ParticipantAction) => Promise<{
260
+ groupParticipantsUpdate: (jid: string, participants: string[], action: import("../Types").ParticipantAction) => Promise<{
262
261
  status: string;
263
262
  jid: string | undefined;
264
263
  content: BinaryNode;
@@ -269,13 +268,13 @@ export declare const makeMessagesSocket: (config: SocketConfig) => {
269
268
  groupAcceptInvite: (code: string) => Promise<string | undefined>;
270
269
  groupRevokeInviteV4: (groupJid: string, invitedJid: string) => Promise<boolean>;
271
270
  groupAcceptInviteV4: (key: string | WAMessageKey, inviteMessage: proto.Message.IGroupInviteMessage) => Promise<any>;
272
- groupGetInviteInfo: (code: string) => Promise<import("../Types/index.js").GroupMetadata>;
271
+ groupGetInviteInfo: (code: string) => Promise<import("../Types").GroupMetadata>;
273
272
  groupToggleEphemeral: (jid: string, ephemeralExpiration: number) => Promise<void>;
274
273
  groupSettingUpdate: (jid: string, setting: "announcement" | "not_announcement" | "locked" | "unlocked") => Promise<void>;
275
274
  groupMemberAddMode: (jid: string, mode: "admin_add" | "all_member_add") => Promise<void>;
276
275
  groupJoinApprovalMode: (jid: string, mode: "on" | "off") => Promise<void>;
277
276
  groupFetchAllParticipating: () => Promise<{
278
- [_: string]: import("../Types/index.js").GroupMetadata;
277
+ [_: string]: import("../Types").GroupMetadata;
279
278
  }>;
280
279
  serverProps: {
281
280
  privacyTokenOn1to1: boolean;
@@ -313,7 +312,7 @@ export declare const makeMessagesSocket: (config: SocketConfig) => {
313
312
  createCallLink: (type: "audio" | "video", event?: {
314
313
  startTime: number;
315
314
  }, timeoutMs?: number) => Promise<string | undefined>;
316
- getBotListV2: () => Promise<import("../Types/index.js").BotListInfo[]>;
315
+ getBotListV2: () => Promise<import("../Types").BotListInfo[]>;
317
316
  messageMutex: {
318
317
  mutex<T>(code: () => Promise<T> | T): Promise<T>;
319
318
  };
@@ -326,15 +325,15 @@ export declare const makeMessagesSocket: (config: SocketConfig) => {
326
325
  notificationMutex: {
327
326
  mutex<T>(code: () => Promise<T> | T): Promise<T>;
328
327
  };
329
- upsertMessage: (msg: WAMessage, type: import("../Types/index.js").MessageUpsertType) => Promise<void>;
330
- appPatch: (patchCreate: import("../Types/index.js").WAPatchCreate) => Promise<void>;
331
- sendPresenceUpdate: (type: import("../Types/index.js").WAPresence, toJid?: string) => Promise<void>;
328
+ upsertMessage: (msg: WAMessage, type: import("../Types").MessageUpsertType) => Promise<void>;
329
+ appPatch: (patchCreate: import("../Types").WAPatchCreate) => Promise<void>;
330
+ sendPresenceUpdate: (type: import("../Types").WAPresence, toJid?: string) => Promise<void>;
332
331
  presenceSubscribe: (toJid: string) => Promise<void>;
333
332
  profilePictureUrl: (jid: string, type?: "preview" | "image", timeoutMs?: number) => Promise<string | undefined>;
334
333
  fetchBlocklist: () => Promise<(string | undefined)[]>;
335
- fetchStatus: (...jids: string[]) => Promise<import("../WAUSync/index.js").USyncQueryResultList[] | undefined>;
336
- fetchDisappearingDuration: (...jids: string[]) => Promise<import("../WAUSync/index.js").USyncQueryResultList[] | undefined>;
337
- updateProfilePicture: (jid: string, content: import("../Types/index.js").WAMediaUpload, dimensions?: {
334
+ fetchStatus: (...jids: string[]) => Promise<import("../WAUSync").USyncQueryResultList[] | undefined>;
335
+ fetchDisappearingDuration: (...jids: string[]) => Promise<import("../WAUSync").USyncQueryResultList[] | undefined>;
336
+ updateProfilePicture: (jid: string, content: import("../Types").WAMediaUpload, dimensions?: {
338
337
  width?: number;
339
338
  height?: number;
340
339
  full?: boolean;
@@ -345,22 +344,22 @@ export declare const makeMessagesSocket: (config: SocketConfig) => {
345
344
  updateProfileName: (name: string) => Promise<void>;
346
345
  updateBlockStatus: (jid: string, action: "block" | "unblock") => Promise<void>;
347
346
  updateDisableLinkPreviewsPrivacy: (isPreviewsDisabled: boolean) => Promise<void>;
348
- updateCallPrivacy: (value: import("../Types/index.js").WAPrivacyCallValue) => Promise<void>;
349
- updateMessagesPrivacy: (value: import("../Types/index.js").WAPrivacyMessagesValue) => Promise<void>;
350
- updateLastSeenPrivacy: (value: import("../Types/index.js").WAPrivacyValue) => Promise<void>;
351
- updateOnlinePrivacy: (value: import("../Types/index.js").WAPrivacyOnlineValue) => Promise<void>;
352
- updateProfilePicturePrivacy: (value: import("../Types/index.js").WAPrivacyValue) => Promise<void>;
353
- updateStatusPrivacy: (value: import("../Types/index.js").WAPrivacyValue) => Promise<void>;
354
- updateReadReceiptsPrivacy: (value: import("../Types/index.js").WAReadReceiptsValue) => Promise<void>;
355
- updateGroupsAddPrivacy: (value: import("../Types/index.js").WAPrivacyGroupAddValue) => Promise<void>;
347
+ updateCallPrivacy: (value: import("../Types").WAPrivacyCallValue) => Promise<void>;
348
+ updateMessagesPrivacy: (value: import("../Types").WAPrivacyMessagesValue) => Promise<void>;
349
+ updateLastSeenPrivacy: (value: import("../Types").WAPrivacyValue) => Promise<void>;
350
+ updateOnlinePrivacy: (value: import("../Types").WAPrivacyOnlineValue) => Promise<void>;
351
+ updateProfilePicturePrivacy: (value: import("../Types").WAPrivacyValue) => Promise<void>;
352
+ updateStatusPrivacy: (value: import("../Types").WAPrivacyValue) => Promise<void>;
353
+ updateReadReceiptsPrivacy: (value: import("../Types").WAReadReceiptsValue) => Promise<void>;
354
+ updateGroupsAddPrivacy: (value: import("../Types").WAPrivacyGroupAddValue) => Promise<void>;
356
355
  updateDefaultDisappearingMode: (duration: number) => Promise<void>;
357
- getBusinessProfile: (jid: string) => Promise<import("../Types/index.js").WABusinessProfile | void>;
356
+ getBusinessProfile: (jid: string) => Promise<import("../Types").WABusinessProfile | void>;
358
357
  resyncAppState: (collections: readonly ("critical_unblock_low" | "regular_high" | "regular_low" | "critical_block" | "regular")[], isInitialSync: boolean) => Promise<void>;
359
- chatModify: (mod: import("../Types/index.js").ChatModification, jid: string) => Promise<void>;
358
+ chatModify: (mod: import("../Types").ChatModification, jid: string) => Promise<void>;
360
359
  cleanDirtyBits: (type: "account_sync" | "groups", fromTimestamp?: number | string) => Promise<void>;
361
360
  addOrEditContact: (jid: string, contact: proto.SyncActionValue.IContactAction) => Promise<void>;
362
361
  removeContact: (jid: string) => Promise<void>;
363
- placeholderResendCache: import("../Types/index.js").CacheStore;
362
+ placeholderResendCache: import("../Types").CacheStore;
364
363
  addLabel: (jid: string, labels: import("../Types/Label.js").LabelActionBody) => Promise<void>;
365
364
  addChatLabel: (jid: string, labelId: string) => Promise<void>;
366
365
  removeChatLabel: (jid: string, labelId: string) => Promise<void>;
@@ -431,7 +430,7 @@ export declare const makeMessagesSocket: (config: SocketConfig) => {
431
430
  [key: string]: string;
432
431
  }>;
433
432
  fetchServerLinkPreview: (url: string) => Promise<any>;
434
- reportSpam: (jid: string, options?: import("../Types/index.js").SpamReportOptions) => Promise<{
433
+ reportSpam: (jid: string, options?: import("../Types").SpamReportOptions) => Promise<{
435
434
  jid: string | undefined;
436
435
  flow: string | undefined;
437
436
  reported: boolean;
@@ -439,8 +438,8 @@ export declare const makeMessagesSocket: (config: SocketConfig) => {
439
438
  }>;
440
439
  type: "md";
441
440
  ws: import("./Client/websocket.js").WebSocketClient;
442
- ev: import("../Types/index.js").BaileysEventEmitter & {
443
- process(handler: (events: Partial<import("../Types/index.js").BaileysEventMap>) => void | Promise<void>): () => void;
441
+ ev: import("../Types").BaileysEventEmitter & {
442
+ process(handler: (events: Partial<import("../Types").BaileysEventMap>) => void | Promise<void>): () => void;
444
443
  buffer(): void;
445
444
  createBufferedFunction<A extends any[], T>(work: (...args: A) => Promise<T>): (...args: A) => Promise<T>;
446
445
  flush(): boolean;
@@ -448,11 +447,11 @@ export declare const makeMessagesSocket: (config: SocketConfig) => {
448
447
  destroy(): void;
449
448
  };
450
449
  authState: {
451
- creds: import("../Types/index.js").AuthenticationCreds;
452
- keys: import("../Types/index.js").SignalKeyStoreWithTransaction;
450
+ creds: import("../Types").AuthenticationCreds;
451
+ keys: import("../Types").SignalKeyStoreWithTransaction;
453
452
  };
454
- signalRepository: import("../Types/index.js").SignalRepositoryWithLIDStore;
455
- user: import("../Types/index.js").Contact | undefined;
453
+ signalRepository: import("../Types").SignalRepositoryWithLIDStore;
454
+ user: import("../Types").Contact | undefined;
456
455
  generateMessageTag: () => string;
457
456
  query: (node: BinaryNode, timeoutMs?: number, options?: {
458
457
  suppressTimeoutLog?: boolean;
@@ -474,9 +473,9 @@ export declare const makeMessagesSocket: (config: SocketConfig) => {
474
473
  updateServerTimeOffset: ({ attrs }: BinaryNode) => void;
475
474
  sendUnifiedSession: () => Promise<void>;
476
475
  wamBuffer: import("../index.js").BinaryInfo;
477
- waitForConnectionUpdate: (check: (u: Partial<import("../Types/index.js").ConnectionState>) => Promise<boolean | undefined>, timeoutMs?: number) => Promise<void>;
476
+ waitForConnectionUpdate: (check: (u: Partial<import("../Types").ConnectionState>) => Promise<boolean | undefined>, timeoutMs?: number) => Promise<void>;
478
477
  sendWAMBuffer: (wamBuffer: Buffer) => Promise<any>;
479
- executeUSyncQuery: (usyncQuery: USyncQuery) => Promise<import("../WAUSync/index.js").USyncQueryResult | undefined>;
478
+ executeUSyncQuery: (usyncQuery: USyncQuery) => Promise<import("../WAUSync").USyncQueryResult | undefined>;
480
479
  onWhatsApp: (...phoneNumber: string[]) => Promise<{
481
480
  jid: string;
482
481
  exists: boolean;
@@ -493,7 +492,7 @@ export declare const makeMessagesSocket: (config: SocketConfig) => {
493
492
  jid: string;
494
493
  username: unknown;
495
494
  }[]>;
496
- fetchAccountReachoutTimelock: () => Promise<import("../Types/index.js").ReachoutTimelockState>;
497
- fetchNewChatMessageCap: () => Promise<import("../Types/index.js").NewChatMessageCapInfo>;
495
+ fetchAccountReachoutTimelock: () => Promise<import("../Types").ReachoutTimelockState>;
496
+ fetchNewChatMessageCap: () => Promise<import("../Types").NewChatMessageCapInfo>;
498
497
  };
499
498
  //# sourceMappingURL=messages-send.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"messages-send.d.ts","sourceRoot":"","sources":["../../src/Socket/messages-send.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,uBAAuB,CAAA;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAA;AAE9C,OAAO,KAAK,EACX,iBAAiB,EACjB,aAAa,EACb,kBAAkB,EAClB,mBAAmB,EACnB,4BAA4B,EAC5B,YAAY,EACZ,SAAS,EACT,YAAY,EACZ,MAAM,UAAU,CAAA;AACjB,OAAO,EAmBN,mBAAmB,EAInB,MAAM,UAAU,CAAA;AAMjB,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAUhD,OAAO,EAEN,KAAK,UAAU,EAgBf,KAAK,aAAa,EAGlB,MAAM,aAAa,CAAA;AACpB,OAAO,EAAE,UAAU,EAAa,MAAM,YAAY,CAAA;AAGlD,eAAO,MAAM,uBAAuB,GAAI,KAAK,MAAM,EAAE,cAAc,MAAM,GAAG,IAAI;;;;;;;;;;;;CAe/E,CAAA;AAED,eAAO,MAAM,kBAAkB,GAAI,QAAQ,YAAY;;;;;+BA2qCd,MAAM,EAAE,cAAc,MAAM;2BA3zBhC,MAAM,EAAE,UAAU,OAAO;wBA4KvD,MAAM,WACF,KAAK,CAAC,QAAQ,4PAcpB,mBAAmB;uBA3bjB,MAAM,eACE,MAAM,GAAG,SAAS,cACnB,MAAM,EAAE,QACd,kBAAkB;yBAkDS,YAAY,EAAE,QAAQ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;;;;;aA8BC,CAAC;cAAgB,CAAC;cAAgB,CAAC;kBAIjD,CAAF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAoQU,CAAC;;;eA1qBT,CAAF;;;;;;;;;;;;;;;;;kBA6CW,CAAC;kBAAkB,CAAA;qBAAoB,CAAC;qBAChD,CAAL;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aA7GwB,CAAC;cAAgB,CAAC;YAAc,CAAC;eAG9C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAiyBmB,CAAC;;;;;;;;;;gBAqR3B,CAAA;iBAAoB,CAAC;cAAgB,CAAC;;;;iBAMD,CAAC;cAAgB,CAAC;;;;;;;;;4BA0B1D,CAAA;aACK,CAAC;;;;;;;;;;;;;;;;;gBA6DgB,CAAC;aAAe,CAAC;;;;;;;;aAcqB,CAAC;cAAgB,CAAC;kBAAoB,CAAC;gBAAkB,CAAC;gBACjH,CAAC;;;;;;;;;;;;;;;;;0DA76CN,GAAG,0BACF,GAAG;;;;;;;;;;;;;0BAkIC,CAAC;;;;wCAlDP,MAAM;;;;;;;;;;;;;;;;+BAiwBK,MAAO;;;;;;;gBA9jBU,CAAC;WAEzB,CAAL;mBAAqB,CAAC;;;;;;;;;;;CAqvCrB,CAAA"}
@@ -1,19 +1,19 @@
1
1
  import NodeCache from '@cacheable/node-cache';
2
2
  import { Boom } from '@hapi/boom';
3
3
  import { proto } from '../../WAProto/index.js';
4
- import { DEFAULT_CACHE_TTLS, MAX_OUTBOUND_RESEND_ENTRIES, MEMBER_LABEL_MAX_LENGTH, WA_DEFAULT_EPHEMERAL } from '../Defaults/index.js';
5
- import { aggregateMessageKeysNotFromMe, assertMediaContent, assertMeId, bindWaitForEvent, decryptMediaRetryData, DEF_MEDIA_HOST, encodeNewsletterMessage, encodeSignedDeviceIdentity, encodeWAMessage, encryptMediaRetryRequest, extractDeviceJids, generateMessageIDV2, generateParticipantHashV2, generateWAMessage, generateWAMessageFromContent, getStatusCodeForMediaRetry, getUrlFromDirectPath, getWAUploadToServer, MessageRetryManager, normalizeMessageContent, parseAndInjectE2ESessions, unixTimestampSeconds } from '../Utils/index.js';
4
+ import { DEFAULT_CACHE_TTLS, MAX_OUTBOUND_RESEND_ENTRIES, MEMBER_LABEL_MAX_LENGTH, WA_DEFAULT_EPHEMERAL } from '../Defaults';
5
+ import { aggregateMessageKeysNotFromMe, assertMediaContent, assertMeId, bindWaitForEvent, decryptMediaRetryData, DEF_MEDIA_HOST, encodeNewsletterMessage, encodeSignedDeviceIdentity, encodeWAMessage, encryptMediaRetryRequest, extractDeviceJids, generateMessageIDV2, generateParticipantHashV2, generateWAMessage, generateWAMessageFromContent, getStatusCodeForMediaRetry, getUrlFromDirectPath, getWAUploadToServer, MessageRetryManager, normalizeMessageContent, parseAndInjectE2ESessions, unixTimestampSeconds } from '../Utils';
6
6
  import { prepareAudioStickerMessage } from '../Utils/audio-sticker.js';
7
7
  import { prepareModernMessageContent } from '../Utils/modern-messages.js';
8
8
  import { getChatThemeExamples, isChatThemeExample, prepareChatThemeMessages } from '../Utils/chat-theme.js';
9
- import { getUrlInfo } from '../Utils/link-preview.js';
10
- import { makeKeyedMutex, makeMutex } from '../Utils/make-mutex.js';
9
+ import { getUrlInfo } from '../Utils/link-preview';
10
+ import { makeKeyedMutex, makeMutex } from '../Utils/make-mutex';
11
11
  import { TTLCache } from '../Utils/ttl-cache.js';
12
- import { getMessageReportingToken, shouldIncludeReportingToken } from '../Utils/reporting-utils.js';
13
- import { buildMergedTcTokenIndexWrite, isTcTokenExpired, resolveIssuanceJid, resolveTcTokenJid, shouldSendNewTcToken, storeTcTokensFromIqResult } from '../Utils/tc-token-utils.js';
14
- import { areJidsSameUser, getBinaryNodeChild, getBinaryNodeChildren, buildInteractiveBizNodes, isHostedLidUser, isHostedPnUser, isJidBot, isJidGroup, isJidMetaAI, isLidUser, isPnUser, jidDecode, jidEncode, jidNormalizedUser, PSA_WID, S_WHATSAPP_NET } from '../WABinary/index.js';
15
- import { USyncQuery, USyncUser } from '../WAUSync/index.js';
16
- import { makeNewsletterSocket } from './newsletter.js';
12
+ import { getMessageReportingToken, shouldIncludeReportingToken } from '../Utils/reporting-utils';
13
+ import { buildMergedTcTokenIndexWrite, isTcTokenExpired, resolveIssuanceJid, resolveTcTokenJid, shouldSendNewTcToken, storeTcTokensFromIqResult } from '../Utils/tc-token-utils';
14
+ import { areJidsSameUser, getBinaryNodeChild, getBinaryNodeChildren, buildInteractiveBizNodes, isHostedLidUser, isHostedPnUser, isJidBot, isJidGroup, isJidMetaAI, isLidUser, isPnUser, jidDecode, jidEncode, jidNormalizedUser, PSA_WID, S_WHATSAPP_NET } from '../WABinary';
15
+ import { USyncQuery, USyncUser } from '../WAUSync';
16
+ import { makeNewsletterSocket } from './newsletter';
17
17
  export const buildMemberLabelMessage = (jid, memberLabel) => {
18
18
  if (!isJidGroup(jid))
19
19
  throw new Boom('Member labels can only be applied to group JIDs', { statusCode: 400, data: { jid } });
@@ -1,3 +1,3 @@
1
- import type { BinaryNode } from '../WABinary/index.js';
1
+ import type { BinaryNode } from '../WABinary';
2
2
  export declare const executeWMexQuery: <T>(variables: Record<string, unknown>, queryId: string, dataPath: string, query: (node: BinaryNode) => Promise<BinaryNode>, generateMessageTag: () => string) => Promise<T>;
3
3
  //# sourceMappingURL=mex.d.ts.map
package/lib/Socket/mex.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Boom } from '@hapi/boom';
2
- import { getBinaryNodeChild, S_WHATSAPP_NET } from '../WABinary/index.js';
2
+ import { getBinaryNodeChild, S_WHATSAPP_NET } from '../WABinary';
3
3
  const wMexQuery = (variables, queryId, query, generateMessageTag) => {
4
4
  return query({
5
5
  tag: 'iq',