@awangxcode/qiro-baileys 7.0.0-rc26.2 → 7.0.0

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 (151) hide show
  1. package/lib/Defaults/index.d.ts +1 -1
  2. package/lib/Defaults/index.js +3 -3
  3. package/lib/Extensions/advanced.d.ts +1 -1
  4. package/lib/Extensions/experimental.d.ts +1 -1
  5. package/lib/MessageBuilder/index.d.ts +5 -5
  6. package/lib/MessageBuilder/index.js +2 -2
  7. package/lib/Signal/Group/group-session-builder.d.ts +3 -3
  8. package/lib/Signal/Group/group-session-builder.js +4 -4
  9. package/lib/Signal/Group/group_cipher.d.ts +2 -2
  10. package/lib/Signal/Group/group_cipher.js +4 -4
  11. package/lib/Signal/Group/index.d.ts +11 -11
  12. package/lib/Signal/Group/index.js +11 -11
  13. package/lib/Signal/Group/sender-chain-key.d.ts +1 -1
  14. package/lib/Signal/Group/sender-chain-key.js +1 -1
  15. package/lib/Signal/Group/sender-key-distribution-message.d.ts +1 -1
  16. package/lib/Signal/Group/sender-key-distribution-message.js +1 -1
  17. package/lib/Signal/Group/sender-key-message.d.ts +1 -1
  18. package/lib/Signal/Group/sender-key-message.js +1 -1
  19. package/lib/Signal/Group/sender-key-record.d.ts +1 -1
  20. package/lib/Signal/Group/sender-key-record.js +2 -2
  21. package/lib/Signal/Group/sender-key-state.d.ts +2 -2
  22. package/lib/Signal/Group/sender-key-state.js +2 -2
  23. package/lib/Signal/libsignal.d.ts +3 -3
  24. package/lib/Signal/libsignal.js +6 -6
  25. package/lib/Signal/lid-mapping.d.ts +2 -2
  26. package/lib/Signal/lid-mapping.js +1 -1
  27. package/lib/Socket/Client/index.d.ts +2 -2
  28. package/lib/Socket/Client/index.js +2 -2
  29. package/lib/Socket/Client/types.d.ts +1 -1
  30. package/lib/Socket/Client/websocket.d.ts +1 -1
  31. package/lib/Socket/Client/websocket.js +2 -2
  32. package/lib/Socket/business.d.ts +77 -77
  33. package/lib/Socket/business.js +5 -5
  34. package/lib/Socket/chats.d.ts +16 -16
  35. package/lib/Socket/chats.js +9 -9
  36. package/lib/Socket/communities.d.ts +56 -56
  37. package/lib/Socket/communities.js +5 -5
  38. package/lib/Socket/groups.d.ts +28 -28
  39. package/lib/Socket/groups.js +4 -4
  40. package/lib/Socket/index.d.ts +97 -97
  41. package/lib/Socket/index.js +4 -4
  42. package/lib/Socket/messages-recv.d.ts +42 -42
  43. package/lib/Socket/messages-recv.js +10 -10
  44. package/lib/Socket/messages-send.d.ts +45 -45
  45. package/lib/Socket/messages-send.js +9 -9
  46. package/lib/Socket/mex.d.ts +1 -1
  47. package/lib/Socket/mex.js +1 -1
  48. package/lib/Socket/newsletter.d.ts +34 -34
  49. package/lib/Socket/newsletter.js +5 -5
  50. package/lib/Socket/socket.d.ts +11 -11
  51. package/lib/Socket/socket.js +7 -7
  52. package/lib/Types/Auth.d.ts +2 -2
  53. package/lib/Types/Chat.d.ts +6 -6
  54. package/lib/Types/Events.d.ts +9 -9
  55. package/lib/Types/GroupMetadata.d.ts +2 -2
  56. package/lib/Types/Message.d.ts +5 -5
  57. package/lib/Types/Product.d.ts +1 -1
  58. package/lib/Types/Signal.d.ts +1 -1
  59. package/lib/Types/Socket.d.ts +5 -5
  60. package/lib/Types/Socket.js +1 -1
  61. package/lib/Types/State.d.ts +1 -1
  62. package/lib/Types/USync.d.ts +2 -2
  63. package/lib/Types/USync.js +1 -1
  64. package/lib/Types/index.d.ts +14 -14
  65. package/lib/Types/index.js +12 -12
  66. package/lib/Utils/auth-utils.d.ts +2 -2
  67. package/lib/Utils/auth-utils.js +4 -4
  68. package/lib/Utils/browser-utils.d.ts +1 -1
  69. package/lib/Utils/business.d.ts +2 -2
  70. package/lib/Utils/business.js +3 -3
  71. package/lib/Utils/chat-utils.d.ts +3 -3
  72. package/lib/Utils/chat-utils.js +7 -7
  73. package/lib/Utils/companion-reg-client-utils.d.ts +3 -3
  74. package/lib/Utils/companion-reg-client-utils.js +1 -1
  75. package/lib/Utils/crypto.d.ts +1 -1
  76. package/lib/Utils/crypto.js +1 -1
  77. package/lib/Utils/decode-wa-message.d.ts +4 -4
  78. package/lib/Utils/decode-wa-message.js +2 -2
  79. package/lib/Utils/event-buffer.d.ts +2 -2
  80. package/lib/Utils/event-buffer.js +4 -4
  81. package/lib/Utils/generics.d.ts +2 -2
  82. package/lib/Utils/generics.js +3 -3
  83. package/lib/Utils/history.d.ts +1 -1
  84. package/lib/Utils/history.js +5 -5
  85. package/lib/Utils/identity-change-handler.d.ts +2 -2
  86. package/lib/Utils/identity-change-handler.js +2 -2
  87. package/lib/Utils/index.d.ts +21 -21
  88. package/lib/Utils/index.js +21 -21
  89. package/lib/Utils/link-preview.d.ts +2 -2
  90. package/lib/Utils/link-preview.js +2 -2
  91. package/lib/Utils/message-retry-manager.d.ts +1 -1
  92. package/lib/Utils/messages-media.d.ts +4 -4
  93. package/lib/Utils/messages-media.js +4 -4
  94. package/lib/Utils/messages.d.ts +4 -4
  95. package/lib/Utils/messages.js +7 -7
  96. package/lib/Utils/noise-handler.d.ts +3 -3
  97. package/lib/Utils/noise-handler.js +3 -3
  98. package/lib/Utils/offline-node-processor.d.ts +1 -1
  99. package/lib/Utils/pre-key-manager.d.ts +2 -2
  100. package/lib/Utils/process-message.d.ts +2 -2
  101. package/lib/Utils/process-message.js +7 -7
  102. package/lib/Utils/reporting-utils.d.ts +2 -2
  103. package/lib/Utils/reporting-utils.js +1 -1
  104. package/lib/Utils/signal.d.ts +4 -4
  105. package/lib/Utils/signal.js +4 -4
  106. package/lib/Utils/stanza-ack.d.ts +1 -1
  107. package/lib/Utils/sync-action-utils.d.ts +2 -2
  108. package/lib/Utils/sync-action-utils.js +1 -1
  109. package/lib/Utils/tc-token-utils.d.ts +2 -2
  110. package/lib/Utils/tc-token-utils.js +1 -1
  111. package/lib/Utils/use-multi-file-auth-state.d.ts +1 -1
  112. package/lib/Utils/use-multi-file-auth-state.js +2 -2
  113. package/lib/Utils/validate-connection.d.ts +2 -2
  114. package/lib/Utils/validate-connection.js +5 -5
  115. package/lib/WABinary/decode.d.ts +1 -1
  116. package/lib/WABinary/decode.js +2 -2
  117. package/lib/WABinary/encode.d.ts +1 -1
  118. package/lib/WABinary/encode.js +2 -2
  119. package/lib/WABinary/generic-utils.d.ts +1 -1
  120. package/lib/WABinary/generic-utils.js +1 -1
  121. package/lib/WABinary/index.d.ts +5 -5
  122. package/lib/WABinary/index.js +5 -5
  123. package/lib/WABinary/types.d.ts +1 -1
  124. package/lib/WABinary/types.js +1 -1
  125. package/lib/WAM/BinaryInfo.d.ts +1 -1
  126. package/lib/WAM/encode.d.ts +1 -1
  127. package/lib/WAM/encode.js +2 -2
  128. package/lib/WAM/index.d.ts +3 -3
  129. package/lib/WAM/index.js +3 -3
  130. package/lib/WAUSync/Protocols/USyncContactProtocol.d.ts +3 -3
  131. package/lib/WAUSync/Protocols/USyncContactProtocol.js +2 -2
  132. package/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts +2 -2
  133. package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +1 -1
  134. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts +2 -2
  135. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +1 -1
  136. package/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts +2 -2
  137. package/lib/WAUSync/Protocols/USyncStatusProtocol.js +1 -1
  138. package/lib/WAUSync/Protocols/USyncUsernameProtocol.d.ts +3 -3
  139. package/lib/WAUSync/Protocols/USyncUsernameProtocol.js +2 -2
  140. package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.d.ts +3 -3
  141. package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.js +2 -2
  142. package/lib/WAUSync/Protocols/UsyncLIDProtocol.d.ts +3 -3
  143. package/lib/WAUSync/Protocols/index.d.ts +5 -5
  144. package/lib/WAUSync/Protocols/index.js +5 -5
  145. package/lib/WAUSync/USyncQuery.d.ts +3 -3
  146. package/lib/WAUSync/USyncQuery.js +5 -5
  147. package/lib/WAUSync/index.d.ts +3 -3
  148. package/lib/WAUSync/index.js +3 -3
  149. package/lib/index.d.ts +10 -10
  150. package/lib/index.js +11 -11
  151. package/package.json +2 -2
@@ -1,8 +1,8 @@
1
1
  import { proto } from '../../WAProto/index.js';
2
2
  import { Boom } from '@hapi/boom';
3
- import type { SocketConfig, WAMediaUpload } from '../Types';
4
- import type { NewsletterMetadata, NewsletterUpdate } from '../Types';
5
- import type { BinaryNode } from '../WABinary';
3
+ import type { SocketConfig, WAMediaUpload } from '../Types/index.js';
4
+ import type { NewsletterMetadata, NewsletterUpdate } from '../Types/index.js';
5
+ import type { BinaryNode } from '../WABinary/index.js';
6
6
  export declare const toNewsletterServerIds: (values: string | number | Array<string | number>, label?: string) => string[];
7
7
  export declare const toNewsletterUserSettingInput: (jid: string, type: "FOLLOWER_NOTIFICATIONS" | "ADMIN_NOTIFICATIONS", muted: boolean) => {
8
8
  input: {
@@ -203,8 +203,8 @@ export declare const makeNewsletterSocket: (config: SocketConfig) => {
203
203
  newsletterChangeOwner: (jid: string, newOwnerJid: string) => Promise<void>;
204
204
  newsletterDemote: (jid: string, userJid: string) => Promise<void>;
205
205
  newsletterDelete: (jid: string) => Promise<void>;
206
- groupMetadata: (jid: string) => Promise<import("../Types").GroupMetadata>;
207
- groupCreate: (subject: string, participants: string[]) => Promise<import("../Types").GroupMetadata>;
206
+ groupMetadata: (jid: string) => Promise<import("../Types/index.js").GroupMetadata>;
207
+ groupCreate: (subject: string, participants: string[]) => Promise<import("../Types/index.js").GroupMetadata>;
208
208
  groupLeave: (id: string) => Promise<void>;
209
209
  groupUpdateSubject: (jid: string, subject: string) => Promise<void>;
210
210
  groupRequestParticipantsList: (jid: string) => Promise<{
@@ -214,7 +214,7 @@ export declare const makeNewsletterSocket: (config: SocketConfig) => {
214
214
  status: string;
215
215
  jid: string | undefined;
216
216
  }[]>;
217
- groupParticipantsUpdate: (jid: string, participants: string[], action: import("../Types").ParticipantAction) => Promise<{
217
+ groupParticipantsUpdate: (jid: string, participants: string[], action: import("../Types/index.js").ParticipantAction) => Promise<{
218
218
  status: string;
219
219
  jid: string | undefined;
220
220
  content: BinaryNode;
@@ -224,14 +224,14 @@ export declare const makeNewsletterSocket: (config: SocketConfig) => {
224
224
  groupRevokeInvite: (jid: string) => Promise<string | undefined>;
225
225
  groupAcceptInvite: (code: string) => Promise<string | undefined>;
226
226
  groupRevokeInviteV4: (groupJid: string, invitedJid: string) => Promise<boolean>;
227
- groupAcceptInviteV4: (key: string | import("../Types").WAMessageKey, inviteMessage: proto.Message.IGroupInviteMessage) => Promise<any>;
228
- groupGetInviteInfo: (code: string) => Promise<import("../Types").GroupMetadata>;
227
+ groupAcceptInviteV4: (key: string | import("../Types/index.js").WAMessageKey, inviteMessage: proto.Message.IGroupInviteMessage) => Promise<any>;
228
+ groupGetInviteInfo: (code: string) => Promise<import("../Types/index.js").GroupMetadata>;
229
229
  groupToggleEphemeral: (jid: string, ephemeralExpiration: number) => Promise<void>;
230
230
  groupSettingUpdate: (jid: string, setting: "announcement" | "not_announcement" | "locked" | "unlocked") => Promise<void>;
231
231
  groupMemberAddMode: (jid: string, mode: "admin_add" | "all_member_add") => Promise<void>;
232
232
  groupJoinApprovalMode: (jid: string, mode: "on" | "off") => Promise<void>;
233
233
  groupFetchAllParticipating: () => Promise<{
234
- [_: string]: import("../Types").GroupMetadata;
234
+ [_: string]: import("../Types/index.js").GroupMetadata;
235
235
  }>;
236
236
  serverProps: {
237
237
  privacyTokenOn1to1: boolean;
@@ -269,7 +269,7 @@ export declare const makeNewsletterSocket: (config: SocketConfig) => {
269
269
  createCallLink: (type: "audio" | "video", event?: {
270
270
  startTime: number;
271
271
  }, timeoutMs?: number) => Promise<string | undefined>;
272
- getBotListV2: () => Promise<import("../Types").BotListInfo[]>;
272
+ getBotListV2: () => Promise<import("../Types/index.js").BotListInfo[]>;
273
273
  messageMutex: {
274
274
  mutex<T>(code: () => Promise<T> | T): Promise<T>;
275
275
  };
@@ -285,9 +285,9 @@ export declare const makeNewsletterSocket: (config: SocketConfig) => {
285
285
  fetchPrivacySettings: (force?: boolean) => Promise<{
286
286
  [_: string]: string;
287
287
  }>;
288
- upsertMessage: (msg: import("../Types").WAMessage, type: import("../Types").MessageUpsertType) => Promise<void>;
289
- appPatch: (patchCreate: import("../Types").WAPatchCreate) => Promise<void>;
290
- sendPresenceUpdate: (type: import("../Types").WAPresence, toJid?: string) => Promise<void>;
288
+ upsertMessage: (msg: import("../Types/index.js").WAMessage, type: import("../Types/index.js").MessageUpsertType) => Promise<void>;
289
+ appPatch: (patchCreate: import("../Types/index.js").WAPatchCreate) => Promise<void>;
290
+ sendPresenceUpdate: (type: import("../Types/index.js").WAPresence, toJid?: string) => Promise<void>;
291
291
  presenceSubscribe: (toJid: string) => Promise<void>;
292
292
  profilePictureUrl: (jid: string, type?: "preview" | "image", timeoutMs?: number) => Promise<string | undefined>;
293
293
  fetchBlocklist: () => Promise<(string | undefined)[]>;
@@ -304,22 +304,22 @@ export declare const makeNewsletterSocket: (config: SocketConfig) => {
304
304
  updateProfileName: (name: string) => Promise<void>;
305
305
  updateBlockStatus: (jid: string, action: "block" | "unblock") => Promise<void>;
306
306
  updateDisableLinkPreviewsPrivacy: (isPreviewsDisabled: boolean) => Promise<void>;
307
- updateCallPrivacy: (value: import("../Types").WAPrivacyCallValue) => Promise<void>;
308
- updateMessagesPrivacy: (value: import("../Types").WAPrivacyMessagesValue) => Promise<void>;
309
- updateLastSeenPrivacy: (value: import("../Types").WAPrivacyValue) => Promise<void>;
310
- updateOnlinePrivacy: (value: import("../Types").WAPrivacyOnlineValue) => Promise<void>;
311
- updateProfilePicturePrivacy: (value: import("../Types").WAPrivacyValue) => Promise<void>;
312
- updateStatusPrivacy: (value: import("../Types").WAPrivacyValue) => Promise<void>;
313
- updateReadReceiptsPrivacy: (value: import("../Types").WAReadReceiptsValue) => Promise<void>;
314
- updateGroupsAddPrivacy: (value: import("../Types").WAPrivacyGroupAddValue) => Promise<void>;
307
+ updateCallPrivacy: (value: import("../Types/index.js").WAPrivacyCallValue) => Promise<void>;
308
+ updateMessagesPrivacy: (value: import("../Types/index.js").WAPrivacyMessagesValue) => Promise<void>;
309
+ updateLastSeenPrivacy: (value: import("../Types/index.js").WAPrivacyValue) => Promise<void>;
310
+ updateOnlinePrivacy: (value: import("../Types/index.js").WAPrivacyOnlineValue) => Promise<void>;
311
+ updateProfilePicturePrivacy: (value: import("../Types/index.js").WAPrivacyValue) => Promise<void>;
312
+ updateStatusPrivacy: (value: import("../Types/index.js").WAPrivacyValue) => Promise<void>;
313
+ updateReadReceiptsPrivacy: (value: import("../Types/index.js").WAReadReceiptsValue) => Promise<void>;
314
+ updateGroupsAddPrivacy: (value: import("../Types/index.js").WAPrivacyGroupAddValue) => Promise<void>;
315
315
  updateDefaultDisappearingMode: (duration: number) => Promise<void>;
316
- getBusinessProfile: (jid: string) => Promise<import("../Types").WABusinessProfile | void>;
316
+ getBusinessProfile: (jid: string) => Promise<import("../Types/index.js").WABusinessProfile | void>;
317
317
  resyncAppState: (collections: readonly ("critical_unblock_low" | "regular_high" | "regular_low" | "critical_block" | "regular")[], isInitialSync: boolean) => Promise<void>;
318
- chatModify: (mod: import("../Types").ChatModification, jid: string) => Promise<void>;
318
+ chatModify: (mod: import("../Types/index.js").ChatModification, jid: string) => Promise<void>;
319
319
  cleanDirtyBits: (type: "account_sync" | "groups", fromTimestamp?: number | string) => Promise<void>;
320
320
  addOrEditContact: (jid: string, contact: proto.SyncActionValue.IContactAction) => Promise<void>;
321
321
  removeContact: (jid: string) => Promise<void>;
322
- placeholderResendCache: import("../Types").CacheStore;
322
+ placeholderResendCache: import("../Types/index.js").CacheStore;
323
323
  addLabel: (jid: string, labels: import("../Types/Label.js").LabelActionBody) => Promise<void>;
324
324
  addChatLabel: (jid: string, labelId: string) => Promise<void>;
325
325
  removeChatLabel: (jid: string, labelId: string) => Promise<void>;
@@ -390,7 +390,7 @@ export declare const makeNewsletterSocket: (config: SocketConfig) => {
390
390
  [key: string]: string;
391
391
  }>;
392
392
  fetchServerLinkPreview: (url: string) => Promise<any>;
393
- reportSpam: (jid: string, options?: import("../Types").SpamReportOptions) => Promise<{
393
+ reportSpam: (jid: string, options?: import("../Types/index.js").SpamReportOptions) => Promise<{
394
394
  jid: string | undefined;
395
395
  flow: string | undefined;
396
396
  reported: boolean;
@@ -398,8 +398,8 @@ export declare const makeNewsletterSocket: (config: SocketConfig) => {
398
398
  }>;
399
399
  type: "md";
400
400
  ws: import("./Client/websocket.js").WebSocketClient;
401
- ev: import("../Types").BaileysEventEmitter & {
402
- process(handler: (events: Partial<import("../Types").BaileysEventMap>) => void | Promise<void>): () => void;
401
+ ev: import("../Types/index.js").BaileysEventEmitter & {
402
+ process(handler: (events: Partial<import("../Types/index.js").BaileysEventMap>) => void | Promise<void>): () => void;
403
403
  buffer(): void;
404
404
  createBufferedFunction<A extends any[], T>(work: (...args: A) => Promise<T>): (...args: A) => Promise<T>;
405
405
  flush(): boolean;
@@ -407,11 +407,11 @@ export declare const makeNewsletterSocket: (config: SocketConfig) => {
407
407
  destroy(): void;
408
408
  };
409
409
  authState: {
410
- creds: import("../Types").AuthenticationCreds;
411
- keys: import("../Types").SignalKeyStoreWithTransaction;
410
+ creds: import("../Types/index.js").AuthenticationCreds;
411
+ keys: import("../Types/index.js").SignalKeyStoreWithTransaction;
412
412
  };
413
- signalRepository: import("../Types").SignalRepositoryWithLIDStore;
414
- user: import("../Types").Contact | undefined;
413
+ signalRepository: import("../Types/index.js").SignalRepositoryWithLIDStore;
414
+ user: import("../Types/index.js").Contact | undefined;
415
415
  generateMessageTag: () => string;
416
416
  query: (node: BinaryNode, timeoutMs?: number) => Promise<any>;
417
417
  waitForMessage: <T>(msgId: string, timeoutMs?: number | undefined) => Promise<T | undefined>;
@@ -431,7 +431,7 @@ export declare const makeNewsletterSocket: (config: SocketConfig) => {
431
431
  updateServerTimeOffset: ({ attrs }: BinaryNode) => void;
432
432
  sendUnifiedSession: () => Promise<void>;
433
433
  wamBuffer: import("../index.js").BinaryInfo;
434
- waitForConnectionUpdate: (check: (u: Partial<import("../Types").ConnectionState>) => Promise<boolean | undefined>, timeoutMs?: number) => Promise<void>;
434
+ waitForConnectionUpdate: (check: (u: Partial<import("../Types/index.js").ConnectionState>) => Promise<boolean | undefined>, timeoutMs?: number) => Promise<void>;
435
435
  sendWAMBuffer: (wamBuffer: Buffer) => Promise<any>;
436
436
  executeUSyncQuery: (usyncQuery: import("../index.js").USyncQuery) => Promise<import("../index.js").USyncQueryResult | undefined>;
437
437
  onWhatsApp: (...phoneNumber: string[]) => Promise<{
@@ -450,8 +450,8 @@ export declare const makeNewsletterSocket: (config: SocketConfig) => {
450
450
  jid: string;
451
451
  username: unknown;
452
452
  }[]>;
453
- fetchAccountReachoutTimelock: () => Promise<import("../Types").ReachoutTimelockState>;
454
- fetchNewChatMessageCap: () => Promise<import("../Types").NewChatMessageCapInfo>;
453
+ fetchAccountReachoutTimelock: () => Promise<import("../Types/index.js").ReachoutTimelockState>;
454
+ fetchNewChatMessageCap: () => Promise<import("../Types/index.js").NewChatMessageCapInfo>;
455
455
  };
456
456
  export type NewsletterSocket = ReturnType<typeof makeNewsletterSocket>;
457
457
  //# sourceMappingURL=newsletter.d.ts.map
@@ -1,12 +1,12 @@
1
1
  import { createHash } from 'crypto';
2
2
  import { proto } from '../../WAProto/index.js';
3
3
  import { Boom } from '@hapi/boom';
4
- import { QueryIds, XWAPaths } from '../Types';
5
- import { generateProfilePicture } from '../Utils/messages-media';
6
- import { getBinaryNodeChild, getBinaryNodeChildren, S_WHATSAPP_NET } from '../WABinary';
4
+ import { QueryIds, XWAPaths } from '../Types/index.js';
5
+ import { generateProfilePicture } from '../Utils/messages-media.js';
6
+ import { getBinaryNodeChild, getBinaryNodeChildren, S_WHATSAPP_NET } from '../WABinary/index.js';
7
7
  import { extractNewsletterMessageMeta } from '../Utils/decode-wa-message.js';
8
- import { makeGroupsSocket } from './groups';
9
- import { executeWMexQuery as genericExecuteWMexQuery } from './mex';
8
+ import { makeGroupsSocket } from './groups.js';
9
+ import { executeWMexQuery as genericExecuteWMexQuery } from './mex.js';
10
10
  import { makeNewsletterStatusSender, makeNewsletterStatusReactionSender, makeNewsletterStatusRevokeSender, makeNewsletterStatusFetcher, makeNewsletterStatusUpdatesFetcher, toNewsletterServerId } from '../Utils/newsletter-status.js';
11
11
  export const toNewsletterServerIds = (values, label = 'serverIds') => {
12
12
  const list = Array.isArray(values) ? values : [values];
@@ -1,9 +1,9 @@
1
1
  import { Boom } from '@hapi/boom';
2
- import { type NewChatMessageCapInfo, type ReachoutTimelockState, type SocketConfig } from '../Types';
3
- import { type BinaryNode } from '../WABinary';
2
+ import { type NewChatMessageCapInfo, type ReachoutTimelockState, type SocketConfig } from '../Types/index.js';
3
+ import { type BinaryNode } from '../WABinary/index.js';
4
4
  import { BinaryInfo } from '../WAM/BinaryInfo.js';
5
- import { USyncQuery } from '../WAUSync/';
6
- import { WebSocketClient } from './Client';
5
+ import { USyncQuery } from '../WAUSync/index.js';
6
+ import { WebSocketClient } from './Client/index.js';
7
7
  /**
8
8
  * Connects to WA servers and performs:
9
9
  * - simple queries (no retry mechanism, wait for connection establishment)
@@ -13,8 +13,8 @@ import { WebSocketClient } from './Client';
13
13
  export declare const makeSocket: (config: SocketConfig) => {
14
14
  type: "md";
15
15
  ws: WebSocketClient;
16
- ev: import("../Types").BaileysEventEmitter & {
17
- process(handler: (events: Partial<import("../Types").BaileysEventMap>) => void | Promise<void>): () => void;
16
+ ev: import("../Types/index.js").BaileysEventEmitter & {
17
+ process(handler: (events: Partial<import("../Types/index.js").BaileysEventMap>) => void | Promise<void>): () => void;
18
18
  buffer(): void;
19
19
  createBufferedFunction<A extends any[], T>(work: (...args: A) => Promise<T>): (...args: A) => Promise<T>;
20
20
  flush(): boolean;
@@ -22,11 +22,11 @@ export declare const makeSocket: (config: SocketConfig) => {
22
22
  destroy(): void;
23
23
  };
24
24
  authState: {
25
- creds: import("../Types").AuthenticationCreds;
26
- keys: import("../Types").SignalKeyStoreWithTransaction;
25
+ creds: import("../Types/index.js").AuthenticationCreds;
26
+ keys: import("../Types/index.js").SignalKeyStoreWithTransaction;
27
27
  };
28
- signalRepository: import("../Types").SignalRepositoryWithLIDStore;
29
- readonly user: import("../Types").Contact | undefined;
28
+ signalRepository: import("../Types/index.js").SignalRepositoryWithLIDStore;
29
+ readonly user: import("../Types/index.js").Contact | undefined;
30
30
  generateMessageTag: () => string;
31
31
  query: (node: BinaryNode, timeoutMs?: number) => Promise<any>;
32
32
  waitForMessage: <T>(msgId: string, timeoutMs?: number | undefined) => Promise<T | undefined>;
@@ -47,7 +47,7 @@ export declare const makeSocket: (config: SocketConfig) => {
47
47
  sendUnifiedSession: () => Promise<void>;
48
48
  wamBuffer: BinaryInfo;
49
49
  /** Waits for the connection to WA to reach a state */
50
- waitForConnectionUpdate: (check: (u: Partial<import("../Types").ConnectionState>) => Promise<boolean | undefined>, timeoutMs?: number) => Promise<void>;
50
+ waitForConnectionUpdate: (check: (u: Partial<import("../Types/index.js").ConnectionState>) => Promise<boolean | undefined>, timeoutMs?: number) => Promise<void>;
51
51
  sendWAMBuffer: (wamBuffer: Buffer) => Promise<any>;
52
52
  executeUSyncQuery: (usyncQuery: USyncQuery) => Promise<import("../index.js").USyncQueryResult | undefined>;
53
53
  onWhatsApp: (...phoneNumber: string[]) => Promise<{
@@ -3,14 +3,14 @@ import { randomBytes } from 'crypto';
3
3
  import { URL } from 'url';
4
4
  import { promisify } from 'util';
5
5
  import { proto } from '../../WAProto/index.js';
6
- import { DEF_CALLBACK_PREFIX, DEF_TAG_PREFIX, INITIAL_PREKEY_COUNT, MIN_PREKEY_COUNT, NOISE_WA_HEADER, PAIRING_RESPONSE_GRACE_MS, PROCESSABLE_HISTORY_TYPES, TimeMs, UPLOAD_TIMEOUT } from '../Defaults';
7
- import { QueryIds, ReachoutTimelockEnforcementType } from '../Types';
8
- import { DisconnectReason, XWAPaths } from '../Types';
9
- import { addTransactionCapability, aesEncryptCTR, bindWaitForConnectionUpdate, buildPairingQRData, bytesToCrockford, configureSuccessfulPairing, Curve, derivePairingCodeKey, generateLoginNode, generateMdTagPrefix, generateRegistrationNode, getCodeFromWSError, getCompanionPlatformId, getErrorCodeFromStreamError, handleCompanionRegRefresh, getNextPreKeysNode, makeEventBuffer, makeNoiseHandler, makePairingQRRenderer, promiseTimeout, signedKeyPair, xmppSignedPreKey } from '../Utils';
10
- import { assertNodeErrorFree, binaryNodeToString, encodeBinaryNode, getAllBinaryNodeChildren, getBinaryNodeChild, getBinaryNodeChildren, isLidUser, jidDecode, jidEncode, jidNormalizedUser, S_WHATSAPP_NET } from '../WABinary';
6
+ import { DEF_CALLBACK_PREFIX, DEF_TAG_PREFIX, INITIAL_PREKEY_COUNT, MIN_PREKEY_COUNT, NOISE_WA_HEADER, PAIRING_RESPONSE_GRACE_MS, PROCESSABLE_HISTORY_TYPES, TimeMs, UPLOAD_TIMEOUT } from '../Defaults/index.js';
7
+ import { QueryIds, ReachoutTimelockEnforcementType } from '../Types/index.js';
8
+ import { DisconnectReason, XWAPaths } from '../Types/index.js';
9
+ import { addTransactionCapability, aesEncryptCTR, bindWaitForConnectionUpdate, buildPairingQRData, bytesToCrockford, configureSuccessfulPairing, Curve, derivePairingCodeKey, generateLoginNode, generateMdTagPrefix, generateRegistrationNode, getCodeFromWSError, getCompanionPlatformId, getErrorCodeFromStreamError, handleCompanionRegRefresh, getNextPreKeysNode, makeEventBuffer, makeNoiseHandler, makePairingQRRenderer, promiseTimeout, signedKeyPair, xmppSignedPreKey } from '../Utils/index.js';
10
+ import { assertNodeErrorFree, binaryNodeToString, encodeBinaryNode, getAllBinaryNodeChildren, getBinaryNodeChild, getBinaryNodeChildren, isLidUser, jidDecode, jidEncode, jidNormalizedUser, S_WHATSAPP_NET } from '../WABinary/index.js';
11
11
  import { BinaryInfo } from '../WAM/BinaryInfo.js';
12
- import { USyncQuery, USyncUser } from '../WAUSync/';
13
- import { WebSocketClient } from './Client';
12
+ import { USyncQuery, USyncUser } from '../WAUSync/index.js';
13
+ import { WebSocketClient } from './Client/index.js';
14
14
  import { executeWMexQuery } from './mex.js';
15
15
  /**
16
16
  * Connects to WA servers and performs:
@@ -1,6 +1,6 @@
1
1
  import type { proto } from '../../WAProto/index.js';
2
- import type { Contact } from './Contact';
3
- import type { MinimalMessage } from './Message';
2
+ import type { Contact } from './Contact.js';
3
+ import type { MinimalMessage } from './Message.js';
4
4
  export type KeyPair = {
5
5
  public: Uint8Array;
6
6
  private: Uint8Array;
@@ -1,11 +1,11 @@
1
1
  import type { proto } from '../../WAProto/index.js';
2
- import type { AccountSettings } from './Auth';
2
+ import type { AccountSettings } from './Auth.js';
3
3
  import type { QuickReplyAction } from './Bussines.js';
4
- import type { BufferedEventData } from './Events';
5
- import type { LabelActionBody } from './Label';
6
- import type { ChatLabelAssociationActionBody } from './LabelAssociation';
7
- import type { MessageLabelAssociationActionBody } from './LabelAssociation';
8
- import type { MinimalMessage, WAMessageKey } from './Message';
4
+ import type { BufferedEventData } from './Events.js';
5
+ import type { LabelActionBody } from './Label.js';
6
+ import type { ChatLabelAssociationActionBody } from './LabelAssociation.js';
7
+ import type { MessageLabelAssociationActionBody } from './LabelAssociation.js';
8
+ import type { MinimalMessage, WAMessageKey } from './Message.js';
9
9
  /** privacy settings in WhatsApp Web */
10
10
  export type WAPrivacyValue = 'all' | 'contacts' | 'contact_blacklist' | 'none';
11
11
  export type WAPrivacyOnlineValue = 'all' | 'match_last_seen';
@@ -1,14 +1,14 @@
1
1
  import type { Boom } from '@hapi/boom';
2
2
  import { proto } from '../../WAProto/index.js';
3
- import type { AuthenticationCreds, LIDMapping } from './Auth';
4
- import type { WACallEvent } from './Call';
5
- import type { Chat, ChatUpdate, PresenceData } from './Chat';
6
- import type { Contact } from './Contact';
7
- import type { GroupMetadata, GroupParticipant, ParticipantAction, RequestJoinAction, RequestJoinMethod } from './GroupMetadata';
8
- import type { Label } from './Label';
9
- import type { LabelAssociation } from './LabelAssociation';
10
- import type { MessageUpsertType, MessageUserReceiptUpdate, WAMessage, WAMessageKey, WAMessageUpdate } from './Message';
11
- import type { ConnectionState, NewChatMessageCapInfo } from './State';
3
+ import type { AuthenticationCreds, LIDMapping } from './Auth.js';
4
+ import type { WACallEvent } from './Call.js';
5
+ import type { Chat, ChatUpdate, PresenceData } from './Chat.js';
6
+ import type { Contact } from './Contact.js';
7
+ import type { GroupMetadata, GroupParticipant, ParticipantAction, RequestJoinAction, RequestJoinMethod } from './GroupMetadata.js';
8
+ import type { Label } from './Label.js';
9
+ import type { LabelAssociation } from './LabelAssociation.js';
10
+ import type { MessageUpsertType, MessageUserReceiptUpdate, WAMessage, WAMessageKey, WAMessageUpdate } from './Message.js';
11
+ import type { ConnectionState, NewChatMessageCapInfo } from './State.js';
12
12
  export type BaileysEventMap = {
13
13
  /** connection state has been updated -- WS closed, opened, connecting etc. */
14
14
  'connection.update': Partial<ConnectionState>;
@@ -1,5 +1,5 @@
1
- import type { Contact } from './Contact';
2
- import type { WAMessageAddressingMode } from './Message';
1
+ import type { Contact } from './Contact.js';
2
+ import type { WAMessageAddressingMode } from './Message.js';
3
3
  export type GroupParticipant = Contact & {
4
4
  isAdmin?: boolean;
5
5
  isSuperAdmin?: boolean;
@@ -1,10 +1,10 @@
1
1
  import type { Readable } from 'stream';
2
2
  import type { URL } from 'url';
3
3
  import { proto } from '../../WAProto/index.js';
4
- import type { MediaType } from '../Defaults';
5
- import type { BinaryNode } from '../WABinary';
6
- import type { GroupMetadata } from './GroupMetadata';
7
- import type { CacheStore } from './Socket';
4
+ import type { MediaType } from '../Defaults/index.js';
5
+ import type { BinaryNode } from '../WABinary/index.js';
6
+ import type { GroupMetadata } from './GroupMetadata.js';
7
+ import type { CacheStore } from './Socket.js';
8
8
  export { proto as WAProto };
9
9
  export declare const AssociationType: typeof proto.MessageAssociation.AssociationType;
10
10
  export declare const ButtonHeaderType: typeof proto.Message.ButtonsMessage.HeaderType;
@@ -57,7 +57,7 @@ export type WALocationMessage = proto.Message.ILocationMessage;
57
57
  export type WAGenericMediaMessage = proto.Message.IVideoMessage | proto.Message.IImageMessage | proto.Message.IAudioMessage | proto.Message.IDocumentMessage | proto.Message.IStickerMessage;
58
58
  export declare const WAMessageStubType: typeof proto.WebMessageInfo.StubType;
59
59
  export declare const WAMessageStatus: typeof proto.WebMessageInfo.Status;
60
- import type { ILogger } from '../Utils/logger';
60
+ import type { ILogger } from '../Utils/logger.js';
61
61
  export type WAMediaPayloadURL = {
62
62
  url: URL | string;
63
63
  };
@@ -1,4 +1,4 @@
1
- import type { WAMediaUpload } from './Message';
1
+ import type { WAMediaUpload } from './Message.js';
2
2
  export type CatalogResult = {
3
3
  data: {
4
4
  paging: {
@@ -1,5 +1,5 @@
1
1
  import { proto } from '../../WAProto/index.js';
2
- import type { LIDMappingStore } from '../Signal/lid-mapping';
2
+ import type { LIDMappingStore } from '../Signal/lid-mapping.js';
3
3
  type DecryptGroupSignalOpts = {
4
4
  group: string;
5
5
  authorJid: string;
@@ -1,11 +1,11 @@
1
1
  import type { Agent } from 'https';
2
2
  import type { URL } from 'url';
3
3
  import { proto } from '../../WAProto/index.js';
4
- import type { ILogger } from '../Utils/logger';
5
- import type { AuthenticationState, LIDMapping, SignalAuthState, TransactionCapabilityOptions } from './Auth';
6
- import type { GroupMetadata } from './GroupMetadata';
7
- import { type MediaConnInfo, type WAMessageKey } from './Message';
8
- import type { SignalRepositoryWithLIDStore } from './Signal';
4
+ import type { ILogger } from '../Utils/logger.js';
5
+ import type { AuthenticationState, LIDMapping, SignalAuthState, TransactionCapabilityOptions } from './Auth.js';
6
+ import type { GroupMetadata } from './GroupMetadata.js';
7
+ import { type MediaConnInfo, type WAMessageKey } from './Message.js';
8
+ import type { SignalRepositoryWithLIDStore } from './Signal.js';
9
9
  export type WAVersion = [number, number, number];
10
10
  export type WABrowserDescription = [string, string, string];
11
11
  export type CacheStore = {
@@ -1,3 +1,3 @@
1
1
  import { proto } from '../../WAProto/index.js';
2
- import {} from './Message';
2
+ import {} from './Message.js';
3
3
  //# sourceMappingURL=Socket.js.map
@@ -1,5 +1,5 @@
1
1
  import { Boom } from '@hapi/boom';
2
- import type { Contact } from './Contact';
2
+ import type { Contact } from './Contact.js';
3
3
  export declare enum SyncState {
4
4
  /** The socket is connecting, but we haven't received pending notifications yet. */
5
5
  Connecting = 0,
@@ -1,5 +1,5 @@
1
- import type { BinaryNode } from '../WABinary';
2
- import { USyncUser } from '../WAUSync';
1
+ import type { BinaryNode } from '../WABinary/index.js';
2
+ import { USyncUser } from '../WAUSync/index.js';
3
3
  /**
4
4
  * Defines the interface for a USyncQuery protocol
5
5
  */
@@ -1,2 +1,2 @@
1
- import { USyncUser } from '../WAUSync';
1
+ import { USyncUser } from '../WAUSync/index.js';
2
2
  //# sourceMappingURL=USync.js.map
@@ -1,17 +1,17 @@
1
- export * from './Auth';
2
- export * from './GroupMetadata';
3
- export * from './Chat';
4
- export * from './Contact';
5
- export * from './State';
6
- export * from './Message';
7
- export * from './Socket';
8
- export * from './Events';
9
- export * from './Product';
10
- export * from './Call';
11
- export * from './Signal';
12
- export * from './Mex';
13
- import type { AuthenticationState } from './Auth';
14
- import type { SocketConfig } from './Socket';
1
+ export * from './Auth.js';
2
+ export * from './GroupMetadata.js';
3
+ export * from './Chat.js';
4
+ export * from './Contact.js';
5
+ export * from './State.js';
6
+ export * from './Message.js';
7
+ export * from './Socket.js';
8
+ export * from './Events.js';
9
+ export * from './Product.js';
10
+ export * from './Call.js';
11
+ export * from './Signal.js';
12
+ export * from './Mex.js';
13
+ import type { AuthenticationState } from './Auth.js';
14
+ import type { SocketConfig } from './Socket.js';
15
15
  export type UserFacingSocketConfig = Partial<SocketConfig> & {
16
16
  auth: AuthenticationState;
17
17
  };
@@ -1,15 +1,15 @@
1
- export * from './Auth';
2
- export * from './GroupMetadata';
3
- export * from './Chat';
4
- export * from './Contact';
5
- export * from './State';
6
- export * from './Message';
7
- export * from './Socket';
8
- export * from './Events';
9
- export * from './Product';
10
- export * from './Call';
11
- export * from './Signal';
12
- export * from './Mex';
1
+ export * from './Auth.js';
2
+ export * from './GroupMetadata.js';
3
+ export * from './Chat.js';
4
+ export * from './Contact.js';
5
+ export * from './State.js';
6
+ export * from './Message.js';
7
+ export * from './Socket.js';
8
+ export * from './Events.js';
9
+ export * from './Product.js';
10
+ export * from './Call.js';
11
+ export * from './Signal.js';
12
+ export * from './Mex.js';
13
13
  export var DisconnectReason;
14
14
  (function (DisconnectReason) {
15
15
  DisconnectReason[DisconnectReason["connectionClosed"] = 428] = "connectionClosed";
@@ -1,5 +1,5 @@
1
- import type { AuthenticationCreds, CacheStore, SignalKeyStore, SignalKeyStoreWithTransaction, TransactionCapabilityOptions } from '../Types';
2
- import type { ILogger } from './logger';
1
+ import type { AuthenticationCreds, CacheStore, SignalKeyStore, SignalKeyStoreWithTransaction, TransactionCapabilityOptions } from '../Types/index.js';
2
+ import type { ILogger } from './logger.js';
3
3
  /**
4
4
  * Adds caching capability to a SignalKeyStore
5
5
  * @param store the store to add caching to
@@ -4,10 +4,10 @@ import { AsyncLocalStorage } from 'async_hooks';
4
4
  import { Mutex } from 'async-mutex';
5
5
  import { randomBytes } from 'crypto';
6
6
  import PQueue from 'p-queue';
7
- import { DEFAULT_CACHE_TTLS } from '../Defaults';
8
- import { Curve, signedKeyPair } from './crypto';
9
- import { delay, generateRegistrationId } from './generics';
10
- import { PreKeyManager } from './pre-key-manager';
7
+ import { DEFAULT_CACHE_TTLS } from '../Defaults/index.js';
8
+ import { Curve, signedKeyPair } from './crypto.js';
9
+ import { delay, generateRegistrationId } from './generics.js';
10
+ import { PreKeyManager } from './pre-key-manager.js';
11
11
  /**
12
12
  * Adds caching capability to a SignalKeyStore
13
13
  * @param store the store to add caching to
@@ -1,4 +1,4 @@
1
- import type { BrowsersMap } from '../Types';
1
+ import type { BrowsersMap } from '../Types/index.js';
2
2
  export declare const Browsers: BrowsersMap;
3
3
  export declare const getPlatformId: (browser: string) => string;
4
4
  //# sourceMappingURL=browser-utils.d.ts.map
@@ -1,5 +1,5 @@
1
- import type { CatalogCollection, OrderDetails, Product, ProductCreate, ProductUpdate, WAMediaUpload, WAMediaUploadFunction } from '../Types';
2
- import { type BinaryNode } from '../WABinary';
1
+ import type { CatalogCollection, OrderDetails, Product, ProductCreate, ProductUpdate, WAMediaUpload, WAMediaUploadFunction } from '../Types/index.js';
2
+ import { type BinaryNode } from '../WABinary/index.js';
3
3
  export declare const parseCatalogNode: (node: BinaryNode) => {
4
4
  products: Product[];
5
5
  nextPageCursor: string | undefined;
@@ -3,9 +3,9 @@ import { createHash } from 'crypto';
3
3
  import { createWriteStream, promises as fs } from 'fs';
4
4
  import { tmpdir } from 'os';
5
5
  import { join } from 'path';
6
- import { getBinaryNodeChild, getBinaryNodeChildren, getBinaryNodeChildString } from '../WABinary';
7
- import { generateMessageIDV2 } from './generics';
8
- import { getStream, getUrlFromDirectPath } from './messages-media';
6
+ import { getBinaryNodeChild, getBinaryNodeChildren, getBinaryNodeChildString } from '../WABinary/index.js';
7
+ import { generateMessageIDV2 } from './generics.js';
8
+ import { getStream, getUrlFromDirectPath } from './messages-media.js';
9
9
  export const parseCatalogNode = (node) => {
10
10
  const catalogNode = getBinaryNodeChild(node, 'product_catalog');
11
11
  const products = getBinaryNodeChildren(catalogNode, 'product').map(parseProductNode);
@@ -1,7 +1,7 @@
1
1
  import { proto } from '../../WAProto/index.js';
2
- import type { BaileysEventEmitter, ChatModification, ChatMutation, Contact, InitialAppStateSyncOptions, LTHashState, WAPatchCreate, WAPatchName } from '../Types';
3
- import { type BinaryNode } from '../WABinary';
4
- import type { ILogger } from './logger';
2
+ import type { BaileysEventEmitter, ChatModification, ChatMutation, Contact, InitialAppStateSyncOptions, LTHashState, WAPatchCreate, WAPatchName } from '../Types/index.js';
3
+ import { type BinaryNode } from '../WABinary/index.js';
4
+ import type { ILogger } from './logger.js';
5
5
  type FetchAppStateSyncKey = (keyId: string) => Promise<proto.Message.IAppStateSyncKeyData | null | undefined>;
6
6
  export type ChatMutationMap = {
7
7
  [index: string]: ChatMutation;
@@ -1,13 +1,13 @@
1
1
  import { Boom } from '@hapi/boom';
2
2
  import { expandAppStateKeys } from 'whatsapp-rust-bridge';
3
3
  import { proto } from '../../WAProto/index.js';
4
- import { LabelAssociationType } from '../Types/LabelAssociation';
5
- import { getBinaryNodeChild, getBinaryNodeChildren, isJidGroup, jidNormalizedUser } from '../WABinary';
6
- import { aesDecrypt, aesEncrypt, hmacSign } from './crypto';
7
- import { toNumber } from './generics';
8
- import { LT_HASH_ANTI_TAMPERING } from './lt-hash';
9
- import { downloadContentFromMessage } from './messages-media';
10
- import { emitSyncActionResults, processContactAction } from './sync-action-utils';
4
+ import { LabelAssociationType } from '../Types/LabelAssociation.js';
5
+ import { getBinaryNodeChild, getBinaryNodeChildren, isJidGroup, jidNormalizedUser } from '../WABinary/index.js';
6
+ import { aesDecrypt, aesEncrypt, hmacSign } from './crypto.js';
7
+ import { toNumber } from './generics.js';
8
+ import { LT_HASH_ANTI_TAMPERING } from './lt-hash.js';
9
+ import { downloadContentFromMessage } from './messages-media.js';
10
+ import { emitSyncActionResults, processContactAction } from './sync-action-utils.js';
11
11
  const mutationKeys = (keydata) => {
12
12
  const keys = expandAppStateKeys(keydata);
13
13
  return {
@@ -1,6 +1,6 @@
1
- import type { AuthenticationCreds, WABrowserDescription } from '../Types';
2
- import type { BinaryNode } from '../WABinary';
3
- import type { ILogger } from './logger';
1
+ import type { AuthenticationCreds, WABrowserDescription } from '../Types/index.js';
2
+ import type { BinaryNode } from '../WABinary/index.js';
3
+ import type { ILogger } from './logger.js';
4
4
  export declare enum CompanionWebClientType {
5
5
  UNKNOWN = 0,
6
6
  CHROME = 1,
@@ -1,5 +1,5 @@
1
1
  import { randomBytes } from 'crypto';
2
- import { getBinaryNodeChild } from '../WABinary';
2
+ import { getBinaryNodeChild } from '../WABinary/index.js';
3
3
  export var CompanionWebClientType;
4
4
  (function (CompanionWebClientType) {
5
5
  CompanionWebClientType[CompanionWebClientType["UNKNOWN"] = 0] = "UNKNOWN";
@@ -1,4 +1,4 @@
1
- import type { KeyPair } from '../Types';
1
+ import type { KeyPair } from '../Types/index.js';
2
2
  export { md5, hkdf } from 'whatsapp-rust-bridge';
3
3
  /** prefix version byte to the pub keys, required for some curve crypto functions */
4
4
  export declare const generateSignalPubKey: (pubKey: Uint8Array | Buffer) => Uint8Array<ArrayBufferLike> | Buffer<ArrayBufferLike>;
@@ -1,6 +1,6 @@
1
1
  import { createCipheriv, createDecipheriv, createHash, createHmac, randomBytes } from 'crypto';
2
2
  import * as curve from 'libsignal/src/curve.js';
3
- import { KEY_BUNDLE_TYPE } from '../Defaults';
3
+ import { KEY_BUNDLE_TYPE } from '../Defaults/index.js';
4
4
  export { md5, hkdf } from 'whatsapp-rust-bridge';
5
5
  // insure browser & node compatibility
6
6
  const { subtle } = globalThis.crypto;
@@ -1,7 +1,7 @@
1
- import type { WAMessage } from '../Types';
2
- import type { SignalRepositoryWithLIDStore } from '../Types/Signal';
3
- import { type BinaryNode } from '../WABinary';
4
- import type { ILogger } from './logger';
1
+ import type { WAMessage } from '../Types/index.js';
2
+ import type { SignalRepositoryWithLIDStore } from '../Types/Signal.js';
3
+ import { type BinaryNode } from '../WABinary/index.js';
4
+ import type { ILogger } from './logger.js';
5
5
  export declare const getDecryptionJid: (sender: string, repository: SignalRepositoryWithLIDStore) => Promise<string>;
6
6
  export declare const extractNewsletterMessageMeta: (stanza: BinaryNode) => {
7
7
  adminProfile?: {