@awangxcode/qiro-baileys 7.1.1 → 7.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +298 -111
- package/lib/Defaults/index.d.ts +8 -8
- package/lib/Defaults/index.d.ts.map +1 -1
- package/lib/Extensions/advanced.d.ts +1 -1
- package/lib/Extensions/experimental.d.ts +4 -4
- package/lib/Extensions/experimental.d.ts.map +1 -1
- package/lib/MessageBuilder/index.d.ts +5 -5
- package/lib/Signal/Group/group-session-builder.d.ts +3 -3
- package/lib/Signal/Group/group_cipher.d.ts +2 -2
- package/lib/Signal/Group/index.d.ts +11 -11
- package/lib/Signal/Group/sender-chain-key.d.ts +1 -1
- package/lib/Signal/Group/sender-key-distribution-message.d.ts +1 -1
- package/lib/Signal/Group/sender-key-message.d.ts +1 -1
- package/lib/Signal/Group/sender-key-record.d.ts +1 -1
- package/lib/Signal/Group/sender-key-state.d.ts +2 -2
- package/lib/Signal/libsignal.d.ts +3 -3
- package/lib/Signal/lid-mapping.d.ts +2 -2
- package/lib/Socket/Client/index.d.ts +2 -2
- package/lib/Socket/Client/types.d.ts +1 -1
- package/lib/Socket/Client/websocket.d.ts +1 -1
- package/lib/Socket/business.d.ts +79 -79
- package/lib/Socket/business.d.ts.map +1 -1
- package/lib/Socket/chats.d.ts +16 -16
- package/lib/Socket/chats.d.ts.map +1 -1
- package/lib/Socket/communities.d.ts +59 -59
- package/lib/Socket/communities.d.ts.map +1 -1
- package/lib/Socket/groups.d.ts +28 -28
- package/lib/Socket/groups.d.ts.map +1 -1
- package/lib/Socket/index.d.ts +99 -99
- package/lib/Socket/index.d.ts.map +1 -1
- package/lib/Socket/messages-recv.d.ts +42 -43
- package/lib/Socket/messages-recv.d.ts.map +1 -1
- package/lib/Socket/messages-send.d.ts +45 -46
- package/lib/Socket/messages-send.d.ts.map +1 -1
- package/lib/Socket/mex.d.ts +1 -1
- package/lib/Socket/newsletter.d.ts +34 -34
- package/lib/Socket/newsletter.d.ts.map +1 -1
- package/lib/Socket/socket.d.ts +11 -11
- package/lib/Socket/socket.js +1 -1
- package/lib/Types/Auth.d.ts +2 -2
- package/lib/Types/Chat.d.ts +6 -6
- package/lib/Types/Events.d.ts +9 -9
- package/lib/Types/GroupMetadata.d.ts +2 -2
- package/lib/Types/Message.d.ts +5 -5
- package/lib/Types/Product.d.ts +1 -1
- package/lib/Types/Signal.d.ts +1 -1
- package/lib/Types/Socket.d.ts +5 -5
- package/lib/Types/State.d.ts +1 -1
- package/lib/Types/USync.d.ts +2 -2
- package/lib/Types/index.d.ts +14 -14
- package/lib/Utils/auth-utils.d.ts +2 -2
- package/lib/Utils/browser-utils.d.ts +1 -1
- package/lib/Utils/business.d.ts +3 -3
- package/lib/Utils/chat-utils.d.ts +7 -7
- package/lib/Utils/chat-utils.d.ts.map +1 -1
- package/lib/Utils/companion-reg-client-utils.d.ts +3 -3
- package/lib/Utils/crypto.d.ts +15 -15
- package/lib/Utils/crypto.d.ts.map +1 -1
- package/lib/Utils/decode-wa-message.d.ts +4 -4
- package/lib/Utils/event-buffer.d.ts +2 -2
- package/lib/Utils/generics.d.ts +5 -5
- package/lib/Utils/generics.d.ts.map +1 -1
- package/lib/Utils/history.d.ts +1 -1
- package/lib/Utils/identity-change-handler.d.ts +2 -2
- package/lib/Utils/index.d.ts +21 -21
- package/lib/Utils/link-preview.d.ts +2 -2
- package/lib/Utils/logger.d.ts +1 -1
- package/lib/Utils/lt-hash.d.ts +1 -2
- package/lib/Utils/lt-hash.d.ts.map +1 -1
- package/lib/Utils/message-retry-manager.d.ts +1 -1
- package/lib/Utils/messages-media.d.ts +25 -25
- package/lib/Utils/messages-media.d.ts.map +1 -1
- package/lib/Utils/messages.d.ts +11 -12
- package/lib/Utils/messages.d.ts.map +1 -1
- package/lib/Utils/newsletter-auto-follow.d.ts.map +1 -1
- package/lib/Utils/newsletter-auto-follow.js +3 -3
- package/lib/Utils/newsletter-auto-follow.js.map +1 -1
- package/lib/Utils/noise-handler.d.ts +4 -4
- package/lib/Utils/offline-node-processor.d.ts +1 -1
- package/lib/Utils/pre-key-manager.d.ts +2 -2
- package/lib/Utils/process-message.d.ts +2 -2
- package/lib/Utils/reporting-utils.d.ts +2 -2
- package/lib/Utils/self-updater.d.ts +0 -1
- package/lib/Utils/self-updater.js +0 -1
- package/lib/Utils/signal.d.ts +7 -7
- package/lib/Utils/stanza-ack.d.ts +1 -1
- package/lib/Utils/sync-action-utils.d.ts +2 -2
- package/lib/Utils/tc-token-utils.d.ts +2 -2
- package/lib/Utils/use-multi-file-auth-state.d.ts +1 -1
- package/lib/Utils/validate-connection.d.ts +3 -3
- package/lib/Utils/validate-connection.d.ts.map +1 -1
- package/lib/WABinary/decode.d.ts +2 -2
- package/lib/WABinary/decode.d.ts.map +1 -1
- package/lib/WABinary/encode.d.ts +1 -1
- package/lib/WABinary/generic-utils.d.ts +3 -3
- package/lib/WABinary/generic-utils.d.ts.map +1 -1
- package/lib/WABinary/index.d.ts +5 -5
- package/lib/WABinary/types.d.ts +1 -1
- package/lib/WAM/BinaryInfo.d.ts +1 -1
- package/lib/WAM/encode.d.ts +2 -2
- package/lib/WAM/encode.d.ts.map +1 -1
- package/lib/WAM/index.d.ts +3 -3
- package/lib/WAUSync/Protocols/USyncContactProtocol.d.ts +3 -3
- package/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts +2 -2
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts +2 -2
- package/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts +2 -2
- package/lib/WAUSync/Protocols/USyncUsernameProtocol.d.ts +3 -3
- package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.d.ts +3 -3
- package/lib/WAUSync/Protocols/UsyncLIDProtocol.d.ts +3 -3
- package/lib/WAUSync/Protocols/index.d.ts +5 -5
- package/lib/WAUSync/USyncQuery.d.ts +3 -3
- package/lib/WAUSync/index.d.ts +3 -3
- package/lib/index.d.ts +10 -10
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/lib/Utils/self-updater.d.ts.map +0 -1
- package/lib/Utils/self-updater.js.map +0 -1
|
@@ -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';
|
|
4
|
+
import type { NewsletterMetadata, NewsletterUpdate } from '../Types';
|
|
5
|
+
import type { BinaryNode } from '../WABinary';
|
|
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
|
|
207
|
-
groupCreate: (subject: string, participants: string[]) => Promise<import("../Types
|
|
206
|
+
groupMetadata: (jid: string) => Promise<import("../Types").GroupMetadata>;
|
|
207
|
+
groupCreate: (subject: string, participants: string[]) => Promise<import("../Types").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
|
|
217
|
+
groupParticipantsUpdate: (jid: string, participants: string[], action: import("../Types").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
|
|
228
|
-
groupGetInviteInfo: (code: string) => Promise<import("../Types
|
|
227
|
+
groupAcceptInviteV4: (key: string | import("../Types").WAMessageKey, inviteMessage: proto.Message.IGroupInviteMessage) => Promise<any>;
|
|
228
|
+
groupGetInviteInfo: (code: string) => Promise<import("../Types").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
|
|
234
|
+
[_: string]: import("../Types").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
|
|
272
|
+
getBotListV2: () => Promise<import("../Types").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
|
|
289
|
-
appPatch: (patchCreate: import("../Types
|
|
290
|
-
sendPresenceUpdate: (type: import("../Types
|
|
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>;
|
|
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
|
|
308
|
-
updateMessagesPrivacy: (value: import("../Types
|
|
309
|
-
updateLastSeenPrivacy: (value: import("../Types
|
|
310
|
-
updateOnlinePrivacy: (value: import("../Types
|
|
311
|
-
updateProfilePicturePrivacy: (value: import("../Types
|
|
312
|
-
updateStatusPrivacy: (value: import("../Types
|
|
313
|
-
updateReadReceiptsPrivacy: (value: import("../Types
|
|
314
|
-
updateGroupsAddPrivacy: (value: import("../Types
|
|
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>;
|
|
315
315
|
updateDefaultDisappearingMode: (duration: number) => Promise<void>;
|
|
316
|
-
getBusinessProfile: (jid: string) => Promise<import("../Types
|
|
316
|
+
getBusinessProfile: (jid: string) => Promise<import("../Types").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
|
|
318
|
+
chatModify: (mod: import("../Types").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
|
|
322
|
+
placeholderResendCache: import("../Types").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
|
|
393
|
+
reportSpam: (jid: string, options?: import("../Types").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
|
|
402
|
-
process(handler: (events: Partial<import("../Types
|
|
401
|
+
ev: import("../Types").BaileysEventEmitter & {
|
|
402
|
+
process(handler: (events: Partial<import("../Types").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
|
|
411
|
-
keys: import("../Types
|
|
410
|
+
creds: import("../Types").AuthenticationCreds;
|
|
411
|
+
keys: import("../Types").SignalKeyStoreWithTransaction;
|
|
412
412
|
};
|
|
413
|
-
signalRepository: import("../Types
|
|
414
|
-
user: import("../Types
|
|
413
|
+
signalRepository: import("../Types").SignalRepositoryWithLIDStore;
|
|
414
|
+
user: import("../Types").Contact | undefined;
|
|
415
415
|
generateMessageTag: () => string;
|
|
416
416
|
query: (node: BinaryNode, timeoutMs?: number, options?: {
|
|
417
417
|
suppressTimeoutLog?: boolean;
|
|
@@ -433,7 +433,7 @@ export declare const makeNewsletterSocket: (config: SocketConfig) => {
|
|
|
433
433
|
updateServerTimeOffset: ({ attrs }: BinaryNode) => void;
|
|
434
434
|
sendUnifiedSession: () => Promise<void>;
|
|
435
435
|
wamBuffer: import("../index.js").BinaryInfo;
|
|
436
|
-
waitForConnectionUpdate: (check: (u: Partial<import("../Types
|
|
436
|
+
waitForConnectionUpdate: (check: (u: Partial<import("../Types").ConnectionState>) => Promise<boolean | undefined>, timeoutMs?: number) => Promise<void>;
|
|
437
437
|
sendWAMBuffer: (wamBuffer: Buffer) => Promise<any>;
|
|
438
438
|
executeUSyncQuery: (usyncQuery: import("../index.js").USyncQuery) => Promise<import("../index.js").USyncQueryResult | undefined>;
|
|
439
439
|
onWhatsApp: (...phoneNumber: string[]) => Promise<{
|
|
@@ -452,8 +452,8 @@ export declare const makeNewsletterSocket: (config: SocketConfig) => {
|
|
|
452
452
|
jid: string;
|
|
453
453
|
username: unknown;
|
|
454
454
|
}[]>;
|
|
455
|
-
fetchAccountReachoutTimelock: () => Promise<import("../Types
|
|
456
|
-
fetchNewChatMessageCap: () => Promise<import("../Types
|
|
455
|
+
fetchAccountReachoutTimelock: () => Promise<import("../Types").ReachoutTimelockState>;
|
|
456
|
+
fetchNewChatMessageCap: () => Promise<import("../Types").NewChatMessageCapInfo>;
|
|
457
457
|
};
|
|
458
458
|
export type NewsletterSocket = ReturnType<typeof makeNewsletterSocket>;
|
|
459
459
|
//# sourceMappingURL=newsletter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"newsletter.d.ts","sourceRoot":"","sources":["../../src/Socket/newsletter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAA;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AACjC,OAAO,KAAK,EAA4B,Y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|
-
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';
|
|
3
|
+
import { type BinaryNode } from '../WABinary';
|
|
4
4
|
import { BinaryInfo } from '../WAM/BinaryInfo.js';
|
|
5
|
-
import { USyncQuery } from '../WAUSync/
|
|
6
|
-
import { WebSocketClient } from './Client
|
|
5
|
+
import { USyncQuery } from '../WAUSync/';
|
|
6
|
+
import { WebSocketClient } from './Client';
|
|
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/index.js';
|
|
|
13
13
|
export declare const makeSocket: (config: SocketConfig) => {
|
|
14
14
|
type: "md";
|
|
15
15
|
ws: WebSocketClient;
|
|
16
|
-
ev: import("../Types
|
|
17
|
-
process(handler: (events: Partial<import("../Types
|
|
16
|
+
ev: import("../Types").BaileysEventEmitter & {
|
|
17
|
+
process(handler: (events: Partial<import("../Types").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
|
|
26
|
-
keys: import("../Types
|
|
25
|
+
creds: import("../Types").AuthenticationCreds;
|
|
26
|
+
keys: import("../Types").SignalKeyStoreWithTransaction;
|
|
27
27
|
};
|
|
28
|
-
signalRepository: import("../Types
|
|
29
|
-
readonly user: import("../Types
|
|
28
|
+
signalRepository: import("../Types").SignalRepositoryWithLIDStore;
|
|
29
|
+
readonly user: import("../Types").Contact | undefined;
|
|
30
30
|
generateMessageTag: () => string;
|
|
31
31
|
query: (node: BinaryNode, timeoutMs?: number, options?: {
|
|
32
32
|
suppressTimeoutLog?: boolean;
|
|
@@ -49,7 +49,7 @@ export declare const makeSocket: (config: SocketConfig) => {
|
|
|
49
49
|
sendUnifiedSession: () => Promise<void>;
|
|
50
50
|
wamBuffer: BinaryInfo;
|
|
51
51
|
/** Waits for the connection to WA to reach a state */
|
|
52
|
-
waitForConnectionUpdate: (check: (u: Partial<import("../Types
|
|
52
|
+
waitForConnectionUpdate: (check: (u: Partial<import("../Types").ConnectionState>) => Promise<boolean | undefined>, timeoutMs?: number) => Promise<void>;
|
|
53
53
|
sendWAMBuffer: (wamBuffer: Buffer) => Promise<any>;
|
|
54
54
|
executeUSyncQuery: (usyncQuery: USyncQuery) => Promise<import("../index.js").USyncQueryResult | undefined>;
|
|
55
55
|
onWhatsApp: (...phoneNumber: string[]) => Promise<{
|
package/lib/Socket/socket.js
CHANGED
|
@@ -9,7 +9,7 @@ import { DisconnectReason, XWAPaths } from '../Types/index.js';
|
|
|
9
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
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
|
|
12
|
+
import { USyncQuery, USyncUser } from '../WAUSync//index.js';
|
|
13
13
|
import { WebSocketClient } from './Client/index.js';
|
|
14
14
|
import { executeWMexQuery } from './mex.js';
|
|
15
15
|
/**
|
package/lib/Types/Auth.d.ts
CHANGED
|
@@ -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';
|
|
3
|
+
import type { MinimalMessage } from './Message';
|
|
4
4
|
export type KeyPair = {
|
|
5
5
|
public: Uint8Array;
|
|
6
6
|
private: Uint8Array;
|
package/lib/Types/Chat.d.ts
CHANGED
|
@@ -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';
|
|
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';
|
|
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';
|
|
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';
|
package/lib/Types/Events.d.ts
CHANGED
|
@@ -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';
|
|
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';
|
|
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';
|
|
2
|
+
import type { WAMessageAddressingMode } from './Message';
|
|
3
3
|
export type GroupParticipant = Contact & {
|
|
4
4
|
isAdmin?: boolean;
|
|
5
5
|
isSuperAdmin?: boolean;
|
package/lib/Types/Message.d.ts
CHANGED
|
@@ -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';
|
|
5
|
+
import type { BinaryNode } from '../WABinary';
|
|
6
|
+
import type { GroupMetadata } from './GroupMetadata';
|
|
7
|
+
import type { CacheStore } from './Socket';
|
|
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';
|
|
61
61
|
export type WAMediaPayloadURL = {
|
|
62
62
|
url: URL | string;
|
|
63
63
|
};
|
package/lib/Types/Product.d.ts
CHANGED
package/lib/Types/Signal.d.ts
CHANGED
package/lib/Types/Socket.d.ts
CHANGED
|
@@ -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';
|
|
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';
|
|
9
9
|
export type WAVersion = [number, number, number];
|
|
10
10
|
export type WABrowserDescription = [string, string, string];
|
|
11
11
|
export type CacheStore = {
|
package/lib/Types/State.d.ts
CHANGED
package/lib/Types/USync.d.ts
CHANGED
package/lib/Types/index.d.ts
CHANGED
|
@@ -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';
|
|
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';
|
|
15
15
|
export type UserFacingSocketConfig = Partial<SocketConfig> & {
|
|
16
16
|
auth: AuthenticationState;
|
|
17
17
|
};
|
|
@@ -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';
|
|
2
|
+
import type { ILogger } from './logger';
|
|
3
3
|
/**
|
|
4
4
|
* Adds caching capability to a SignalKeyStore
|
|
5
5
|
* @param store the store to add caching to
|
package/lib/Utils/business.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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';
|
|
2
|
+
import { type BinaryNode } from '../WABinary';
|
|
3
3
|
export declare const parseCatalogNode: (node: BinaryNode) => {
|
|
4
4
|
products: Product[];
|
|
5
|
-
nextPageCursor:
|
|
5
|
+
nextPageCursor: any;
|
|
6
6
|
};
|
|
7
7
|
export declare const parseCollectionsNode: (node: BinaryNode) => {
|
|
8
8
|
collections: CatalogCollection[];
|
|
@@ -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';
|
|
3
|
+
import { type BinaryNode } from '../WABinary';
|
|
4
|
+
import type { ILogger } from './logger';
|
|
5
5
|
type FetchAppStateSyncKey = (keyId: string) => Promise<proto.Message.IAppStateSyncKeyData | null | undefined>;
|
|
6
6
|
export type ChatMutationMap = {
|
|
7
7
|
[index: string]: ChatMutation;
|
|
@@ -14,7 +14,7 @@ type Mac = {
|
|
|
14
14
|
export declare const makeLtHashGenerator: ({ indexValueMap, hash }: Pick<LTHashState, "hash" | "indexValueMap">) => {
|
|
15
15
|
mix: ({ indexMac, valueMac, operation }: Mac) => void;
|
|
16
16
|
finish: () => {
|
|
17
|
-
hash:
|
|
17
|
+
hash: any;
|
|
18
18
|
indexValueMap: {
|
|
19
19
|
[indexMacBase64: string]: {
|
|
20
20
|
valueMac: Uint8Array | Buffer;
|
|
@@ -42,7 +42,7 @@ export declare const encodeSyncdPatch: ({ type, index, syncAction, apiVersion, o
|
|
|
42
42
|
state: LTHashState;
|
|
43
43
|
}>;
|
|
44
44
|
export declare const decodeSyncdMutations: (msgMutations: (proto.ISyncdMutation | proto.ISyncdRecord)[], initialState: LTHashState, getAppStateSyncKey: FetchAppStateSyncKey, onMutation: (mutation: ChatMutation) => void, validateMacs: boolean) => Promise<{
|
|
45
|
-
hash:
|
|
45
|
+
hash: any;
|
|
46
46
|
indexValueMap: {
|
|
47
47
|
[indexMacBase64: string]: {
|
|
48
48
|
valueMac: Uint8Array | Buffer;
|
|
@@ -50,7 +50,7 @@ export declare const decodeSyncdMutations: (msgMutations: (proto.ISyncdMutation
|
|
|
50
50
|
};
|
|
51
51
|
}>;
|
|
52
52
|
export declare const decodeSyncdPatch: (msg: proto.ISyncdPatch, name: WAPatchName, initialState: LTHashState, getAppStateSyncKey: FetchAppStateSyncKey, onMutation: (mutation: ChatMutation) => void, validateMacs: boolean) => Promise<{
|
|
53
|
-
hash:
|
|
53
|
+
hash: any;
|
|
54
54
|
indexValueMap: {
|
|
55
55
|
[indexMacBase64: string]: {
|
|
56
56
|
valueMac: Uint8Array | Buffer;
|
|
@@ -84,7 +84,7 @@ export declare const extractSyncdPatches: (result: BinaryNode, options: RequestI
|
|
|
84
84
|
snapshot?: proto.ISyncdSnapshot;
|
|
85
85
|
};
|
|
86
86
|
}>;
|
|
87
|
-
export declare const downloadExternalBlob: (blob: proto.IExternalBlobReference, options: RequestInit) => Promise<
|
|
87
|
+
export declare const downloadExternalBlob: (blob: proto.IExternalBlobReference, options: RequestInit) => Promise<any>;
|
|
88
88
|
export declare const downloadExternalPatch: (blob: proto.IExternalBlobReference, options: RequestInit) => Promise<proto.SyncdMutations>;
|
|
89
89
|
export declare const decodeSyncdSnapshot: (name: WAPatchName, snapshot: proto.ISyncdSnapshot, getAppStateSyncKey: FetchAppStateSyncKey, minimumVersionNumber: number | undefined, validateMacs?: boolean, logger?: ILogger) => Promise<{
|
|
90
90
|
state: LTHashState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-utils.d.ts","sourceRoot":"","sources":["../../src/Utils/chat-utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAA;AAC9C,OAAO,KAAK,EACX,mBAAmB,EAEnB,gBAAgB,EAChB,YAAY,EAEZ,OAAO,EACP,0BAA0B,EAE1B,WAAW,EACX,aAAa,EACb,WAAW,EACX,MAAM,UAAU,CAAA;AAMjB,OAAO,EAAE,KAAK,UAAU,EAA4E,MAAM,aAAa,CAAA;AAGvH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAKvC,KAAK,oBAAoB,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,oBAAoB,GAAG,IAAI,GAAG,SAAS,CAAC,CAAA;AAE7G,MAAM,MAAM,eAAe,GAAG;IAAE,CAAC,KAAK,EAAE,MAAM,GAAG,YAAY,CAAA;CAAE,CAAA;AA2C/D,KAAK,GAAG,GAAG;IAAE,QAAQ,EAAE,UAAU,CAAC;IAAC,QAAQ,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A;AAED,eAAO,MAAM,oBAAoB,GAAU,MAAM,KAAK,CAAC,sBAAsB,EAAE,SAAS,WAAW,iBAQlG,CAAA;AAED,eAAO,MAAM,qBAAqB,GAAU,MAAM,KAAK,CAAC,sBAAsB,EAAE,SAAS,WAAW,kCAInG,CAAA;AAED,eAAO,MAAM,mBAAmB,GAC/B,MAAM,WAAW,EACjB,UAAU,KAAK,CAAC,cAAc,EAC9B,oBAAoB,oBAAoB,EACxC,sBAAsB,MAAM,GAAG,SAAS,EACxC,sBAAmB,EACnB,SAAS,OAAO;;;EAiDhB,CAAA;AAED,eAAO,MAAM,aAAa,GACzB,MAAM,WAAW,EACjB,QAAQ,KAAK,CAAC,WAAW,EAAE,EAC3B,SAAS,WAAW,EACpB,oBAAoB,oBAAoB,EACxC,SAAS,WAAW,EACpB,uBAAuB,MAAM,EAC7B,SAAS,OAAO,EAChB,sBAAmB;;;EAmEnB,CAAA;AAED,eAAO,MAAM,0BAA0B,GAAI,KAAK,gBAAgB,EAAE,KAAK,MAAM,kBAyQ5E,CAAA;AAED,eAAO,MAAM,iBAAiB,GAC7B,YAAY,YAAY,EACxB,IAAI,mBAAmB,EACvB,IAAI,OAAO,EACX,kBAAkB,0BAA0B,EAC5C,SAAS,OAAO,SAoNhB,CAAA"}
|
|
@@ -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';
|
|
2
|
+
import type { BinaryNode } from '../WABinary';
|
|
3
|
+
import type { ILogger } from './logger';
|
|
4
4
|
export declare enum CompanionWebClientType {
|
|
5
5
|
UNKNOWN = 0,
|
|
6
6
|
CHROME = 1,
|
package/lib/Utils/crypto.d.ts
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import type { KeyPair } from '../Types
|
|
1
|
+
import type { KeyPair } from '../Types';
|
|
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
|
-
export declare const generateSignalPubKey: (pubKey: Uint8Array | Buffer) =>
|
|
4
|
+
export declare const generateSignalPubKey: (pubKey: Uint8Array | Buffer) => any;
|
|
5
5
|
export declare const Curve: {
|
|
6
6
|
generateKeyPair: () => KeyPair;
|
|
7
|
-
sharedKey: (privateKey: Uint8Array, publicKey: Uint8Array) =>
|
|
8
|
-
sign: (privateKey: Uint8Array, buf: Uint8Array) =>
|
|
7
|
+
sharedKey: (privateKey: Uint8Array, publicKey: Uint8Array) => any;
|
|
8
|
+
sign: (privateKey: Uint8Array, buf: Uint8Array) => any;
|
|
9
9
|
verify: (pubKey: Uint8Array, message: Uint8Array, signature: Uint8Array) => boolean;
|
|
10
10
|
};
|
|
11
11
|
export declare const signedKeyPair: (identityKeyPair: KeyPair, keyId: number) => {
|
|
12
12
|
keyPair: KeyPair;
|
|
13
|
-
signature:
|
|
13
|
+
signature: any;
|
|
14
14
|
keyId: number;
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
17
|
* encrypt AES 256 GCM;
|
|
18
18
|
* where the tag tag is suffixed to the ciphertext
|
|
19
19
|
* */
|
|
20
|
-
export declare function aesEncryptGCM(plaintext: Uint8Array, key: Uint8Array, iv: Uint8Array, additionalData: Uint8Array):
|
|
20
|
+
export declare function aesEncryptGCM(plaintext: Uint8Array, key: Uint8Array, iv: Uint8Array, additionalData: Uint8Array): any;
|
|
21
21
|
/**
|
|
22
22
|
* decrypt AES 256 GCM;
|
|
23
23
|
* where the auth tag is suffixed to the ciphertext
|
|
24
24
|
* */
|
|
25
|
-
export declare function aesDecryptGCM(ciphertext: Uint8Array, key: Uint8Array, iv: Uint8Array, additionalData: Uint8Array):
|
|
26
|
-
export declare function aesEncryptCTR(plaintext: Uint8Array, key: Uint8Array, iv: Uint8Array):
|
|
27
|
-
export declare function aesDecryptCTR(ciphertext: Uint8Array, key: Uint8Array, iv: Uint8Array):
|
|
25
|
+
export declare function aesDecryptGCM(ciphertext: Uint8Array, key: Uint8Array, iv: Uint8Array, additionalData: Uint8Array): any;
|
|
26
|
+
export declare function aesEncryptCTR(plaintext: Uint8Array, key: Uint8Array, iv: Uint8Array): any;
|
|
27
|
+
export declare function aesDecryptCTR(ciphertext: Uint8Array, key: Uint8Array, iv: Uint8Array): any;
|
|
28
28
|
/** decrypt AES 256 CBC; where the IV is prefixed to the buffer */
|
|
29
|
-
export declare function aesDecrypt(buffer: Uint8Array, key: Uint8Array):
|
|
29
|
+
export declare function aesDecrypt(buffer: Uint8Array, key: Uint8Array): any;
|
|
30
30
|
/** decrypt AES 256 CBC */
|
|
31
|
-
export declare function aesDecryptWithIV(buffer: Uint8Array, key: Uint8Array, IV: Uint8Array):
|
|
32
|
-
export declare function aesEncrypt(buffer: Uint8Array, key: Uint8Array):
|
|
33
|
-
export declare function aesEncrypWithIV(buffer: Buffer, key: Buffer, IV: Buffer):
|
|
34
|
-
export declare function hmacSign(buffer: Buffer | Uint8Array, key: Buffer | Uint8Array, variant?: 'sha256' | 'sha512'):
|
|
35
|
-
export declare function sha256(buffer: Buffer):
|
|
31
|
+
export declare function aesDecryptWithIV(buffer: Uint8Array, key: Uint8Array, IV: Uint8Array): any;
|
|
32
|
+
export declare function aesEncrypt(buffer: Uint8Array, key: Uint8Array): any;
|
|
33
|
+
export declare function aesEncrypWithIV(buffer: Buffer, key: Buffer, IV: Buffer): any;
|
|
34
|
+
export declare function hmacSign(buffer: Buffer | Uint8Array, key: Buffer | Uint8Array, variant?: 'sha256' | 'sha512'): any;
|
|
35
|
+
export declare function sha256(buffer: Buffer): any;
|
|
36
36
|
export declare function derivePairingCodeKey(pairingCode: string, salt: Buffer): Promise<Buffer>;
|
|
37
37
|
//# sourceMappingURL=crypto.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"crypto.d.ts","sourceRoot":"","sources":["../../src/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AM,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,OAE7D;AAED,0BAA0B;AAC1B,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,EAAE,EAAE,EAAE,UAAU,OAGnF;AAGD,wBAAgB,UAAU,CAAC,MAAM,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,OAI7D;AAGD,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,OAGtE;AAGD,wBAAgB,QAAQ,CACvB,MAAM,EAAE,MAAM,GAAG,UAAU,EAC3B,GAAG,EAAE,MAAM,GAAG,UAAU,EACxB,OAAO,GAAE,QAAQ,GAAG,QAAmB,OAGvC;AAED,wBAAgB,MAAM,CAAC,MAAM,EAAE,MAAM,OAEpC;AAED,wBAAsB,oBAAoB,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAyB7F"}
|
|
@@ -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';
|
|
2
|
+
import type { SignalRepositoryWithLIDStore } from '../Types/Signal';
|
|
3
|
+
import { type BinaryNode } from '../WABinary';
|
|
4
|
+
import type { ILogger } from './logger';
|
|
5
5
|
export declare const getDecryptionJid: (sender: string, repository: SignalRepositoryWithLIDStore) => Promise<string>;
|
|
6
6
|
export declare const extractNewsletterMessageMeta: (stanza: BinaryNode) => {
|
|
7
7
|
adminProfile?: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BaileysEventEmitter, BaileysEventMap } from '../Types
|
|
2
|
-
import type { ILogger } from './logger
|
|
1
|
+
import type { BaileysEventEmitter, BaileysEventMap } from '../Types';
|
|
2
|
+
import type { ILogger } from './logger';
|
|
3
3
|
/**
|
|
4
4
|
* A map that contains a list of all events that have been triggered
|
|
5
5
|
*
|