lordceaser-baileys 2.0.39 → 2.0.41
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/index.js +59 -412
- package/package.json +8 -3
- package/WAProto/GenerateStatics.sh +0 -4
- package/WAProto/WAProto.proto +0 -3344
- package/WAProto/index.d.ts +0 -37016
- package/WAProto/index.js +0 -101044
- package/WASignalGroup/GroupProtocol.js +0 -1697
- package/WASignalGroup/ciphertext_message.js +0 -16
- package/WASignalGroup/group_cipher.js +0 -120
- package/WASignalGroup/group_session_builder.js +0 -46
- package/WASignalGroup/index.js +0 -5
- package/WASignalGroup/keyhelper.js +0 -21
- package/WASignalGroup/protobufs.js +0 -3
- package/WASignalGroup/queue_job.js +0 -69
- package/WASignalGroup/sender_chain_key.js +0 -50
- package/WASignalGroup/sender_key_distribution_message.js +0 -78
- package/WASignalGroup/sender_key_message.js +0 -92
- package/WASignalGroup/sender_key_name.js +0 -70
- package/WASignalGroup/sender_key_record.js +0 -56
- package/WASignalGroup/sender_key_state.js +0 -129
- package/WASignalGroup/sender_message_key.js +0 -39
- package/lib/Defaults/baileys-version.json +0 -3
- package/lib/Defaults/index.d.ts +0 -283
- package/lib/Defaults/index.js +0 -121
- package/lib/Defaults/phonenumber-mcc.json +0 -223
- package/lib/Signal/libsignal.d.ts +0 -3
- package/lib/Signal/libsignal.js +0 -152
- package/lib/Socket/Client/abstract-socket-client.d.ts +0 -17
- package/lib/Socket/Client/abstract-socket-client.js +0 -13
- package/lib/Socket/Client/index.d.ts +0 -3
- package/lib/Socket/Client/index.js +0 -19
- package/lib/Socket/Client/mobile-socket-client.d.ts +0 -13
- package/lib/Socket/Client/mobile-socket-client.js +0 -65
- package/lib/Socket/Client/web-socket-client.d.ts +0 -12
- package/lib/Socket/Client/web-socket-client.js +0 -62
- package/lib/Socket/business.d.ts +0 -148
- package/lib/Socket/business.js +0 -260
- package/lib/Socket/chats.d.ts +0 -83
- package/lib/Socket/chats.js +0 -879
- package/lib/Socket/groups.d.ts +0 -123
- package/lib/Socket/groups.js +0 -314
- package/lib/Socket/index.d.ts +0 -150
- package/lib/Socket/index.js +0 -10
- package/lib/Socket/messages-recv.d.ts +0 -135
- package/lib/Socket/messages-recv.js +0 -867
- package/lib/Socket/messages-send.d.ts +0 -128
- package/lib/Socket/messages-send.js +0 -677
- package/lib/Socket/registration.d.ts +0 -242
- package/lib/Socket/registration.js +0 -166
- package/lib/Socket/socket.d.ts +0 -43
- package/lib/Socket/socket.js +0 -619
- package/lib/Store/index.d.ts +0 -3
- package/lib/Store/index.js +0 -10
- package/lib/Store/make-cache-manager-store.d.ts +0 -14
- package/lib/Store/make-cache-manager-store.js +0 -83
- package/lib/Store/make-in-memory-store.d.ts +0 -118
- package/lib/Store/make-in-memory-store.js +0 -422
- package/lib/Store/make-ordered-dictionary.d.ts +0 -13
- package/lib/Store/make-ordered-dictionary.js +0 -81
- package/lib/Store/object-repository.d.ts +0 -10
- package/lib/Store/object-repository.js +0 -27
- package/lib/Types/Auth.d.ts +0 -110
- package/lib/Types/Auth.js +0 -2
- package/lib/Types/Call.d.ts +0 -13
- package/lib/Types/Call.js +0 -2
- package/lib/Types/Chat.d.ts +0 -107
- package/lib/Types/Chat.js +0 -4
- package/lib/Types/Contact.d.ts +0 -19
- package/lib/Types/Contact.js +0 -2
- package/lib/Types/Events.d.ts +0 -172
- package/lib/Types/Events.js +0 -2
- package/lib/Types/GroupMetadata.d.ts +0 -56
- package/lib/Types/GroupMetadata.js +0 -2
- package/lib/Types/Label.d.ts +0 -46
- package/lib/Types/Label.js +0 -27
- package/lib/Types/LabelAssociation.d.ts +0 -29
- package/lib/Types/LabelAssociation.js +0 -9
- package/lib/Types/Message.d.ts +0 -268
- package/lib/Types/Message.js +0 -9
- package/lib/Types/Product.d.ts +0 -78
- package/lib/Types/Product.js +0 -2
- package/lib/Types/Signal.d.ts +0 -57
- package/lib/Types/Signal.js +0 -2
- package/lib/Types/Socket.d.ts +0 -116
- package/lib/Types/Socket.js +0 -2
- package/lib/Types/State.d.ts +0 -27
- package/lib/Types/State.js +0 -2
- package/lib/Types/index.d.ts +0 -63
- package/lib/Types/index.js +0 -41
- package/lib/Utils/auth-utils.d.ts +0 -18
- package/lib/Utils/auth-utils.js +0 -206
- package/lib/Utils/baileys-event-stream.d.ts +0 -16
- package/lib/Utils/baileys-event-stream.js +0 -63
- package/lib/Utils/business.d.ts +0 -22
- package/lib/Utils/business.js +0 -234
- package/lib/Utils/chat-utils.d.ts +0 -71
- package/lib/Utils/chat-utils.js +0 -740
- package/lib/Utils/crypto.d.ts +0 -41
- package/lib/Utils/crypto.js +0 -153
- package/lib/Utils/decode-wa-message.d.ts +0 -20
- package/lib/Utils/decode-wa-message.js +0 -188
- package/lib/Utils/event-buffer.d.ts +0 -35
- package/lib/Utils/event-buffer.js +0 -520
- package/lib/Utils/generics.d.ts +0 -89
- package/lib/Utils/generics.js +0 -394
- package/lib/Utils/history.d.ts +0 -19
- package/lib/Utils/history.js +0 -94
- package/lib/Utils/index.d.ts +0 -17
- package/lib/Utils/index.js +0 -33
- package/lib/Utils/link-preview.d.ts +0 -21
- package/lib/Utils/link-preview.js +0 -93
- package/lib/Utils/logger.d.ts +0 -4
- package/lib/Utils/logger.js +0 -7
- package/lib/Utils/lt-hash.d.ts +0 -12
- package/lib/Utils/lt-hash.js +0 -51
- package/lib/Utils/make-mutex.d.ts +0 -7
- package/lib/Utils/make-mutex.js +0 -43
- package/lib/Utils/messages-media.d.ts +0 -107
- package/lib/Utils/messages-media.js +0 -674
- package/lib/Utils/messages.d.ts +0 -77
- package/lib/Utils/messages.js +0 -758
- package/lib/Utils/noise-handler.d.ts +0 -21
- package/lib/Utils/noise-handler.js +0 -155
- package/lib/Utils/process-message.d.ts +0 -42
- package/lib/Utils/process-message.js +0 -354
- package/lib/Utils/signal.d.ts +0 -32
- package/lib/Utils/signal.js +0 -161
- package/lib/Utils/use-multi-file-auth-state.d.ts +0 -12
- package/lib/Utils/use-multi-file-auth-state.js +0 -93
- package/lib/Utils/validate-connection.d.ts +0 -11
- package/lib/Utils/validate-connection.js +0 -205
- package/lib/WABinary/constants.d.ts +0 -27
- package/lib/WABinary/constants.js +0 -40
- package/lib/WABinary/decode.d.ts +0 -7
- package/lib/WABinary/decode.js +0 -254
- package/lib/WABinary/encode.d.ts +0 -3
- package/lib/WABinary/encode.js +0 -232
- package/lib/WABinary/generic-utils.d.ts +0 -15
- package/lib/WABinary/generic-utils.js +0 -110
- package/lib/WABinary/index.d.ts +0 -5
- package/lib/WABinary/index.js +0 -21
- package/lib/WABinary/jid-utils.d.ts +0 -31
- package/lib/WABinary/jid-utils.js +0 -62
- package/lib/WABinary/types.d.ts +0 -18
- package/lib/WABinary/types.js +0 -2
- package/lib/WAM/BinaryInfo.d.ts +0 -17
- package/lib/WAM/BinaryInfo.js +0 -13
- package/lib/WAM/constants.d.ts +0 -38
- package/lib/WAM/constants.js +0 -15350
- package/lib/WAM/encode.d.ts +0 -3
- package/lib/WAM/encode.js +0 -155
- package/lib/WAM/index.d.ts +0 -3
- package/lib/WAM/index.js +0 -19
- package/lib/index.d.ts +0 -11
- package/lib/index.js +0 -30
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { AxiosRequestConfig } from 'axios';
|
|
3
|
-
import type { Logger } from 'pino';
|
|
4
|
-
import { proto } from '../../WAProto';
|
|
5
|
-
import { BaileysEventEmitter, ChatModification, ChatMutation, Contact, InitialAppStateSyncOptions, LTHashState, WAPatchCreate, WAPatchName } from '../Types';
|
|
6
|
-
import { BinaryNode } from '../WABinary';
|
|
7
|
-
type FetchAppStateSyncKey = (keyId: string) => Promise<proto.Message.IAppStateSyncKeyData | null | undefined>;
|
|
8
|
-
export type ChatMutationMap = {
|
|
9
|
-
[index: string]: ChatMutation;
|
|
10
|
-
};
|
|
11
|
-
export declare const newLTHashState: () => LTHashState;
|
|
12
|
-
export declare const encodeSyncdPatch: ({ type, index, syncAction, apiVersion, operation }: WAPatchCreate, myAppStateKeyId: string, state: LTHashState, getAppStateSyncKey: FetchAppStateSyncKey) => Promise<{
|
|
13
|
-
patch: proto.ISyncdPatch;
|
|
14
|
-
state: LTHashState;
|
|
15
|
-
}>;
|
|
16
|
-
export declare const decodeSyncdMutations: (msgMutations: (proto.ISyncdMutation | proto.ISyncdRecord)[], initialState: LTHashState, getAppStateSyncKey: FetchAppStateSyncKey, onMutation: (mutation: ChatMutation) => void, validateMacs: boolean) => Promise<{
|
|
17
|
-
hash: Buffer;
|
|
18
|
-
indexValueMap: {
|
|
19
|
-
[indexMacBase64: string]: {
|
|
20
|
-
valueMac: Uint8Array | Buffer;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
}>;
|
|
24
|
-
export declare const decodeSyncdPatch: (msg: proto.ISyncdPatch, name: WAPatchName, initialState: LTHashState, getAppStateSyncKey: FetchAppStateSyncKey, onMutation: (mutation: ChatMutation) => void, validateMacs: boolean) => Promise<{
|
|
25
|
-
hash: Buffer;
|
|
26
|
-
indexValueMap: {
|
|
27
|
-
[indexMacBase64: string]: {
|
|
28
|
-
valueMac: Uint8Array | Buffer;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
}>;
|
|
32
|
-
export declare const extractSyncdPatches: (result: BinaryNode, options: AxiosRequestConfig<any>) => Promise<{
|
|
33
|
-
critical_block: {
|
|
34
|
-
patches: proto.ISyncdPatch[];
|
|
35
|
-
hasMorePatches: boolean;
|
|
36
|
-
snapshot?: proto.ISyncdSnapshot | undefined;
|
|
37
|
-
};
|
|
38
|
-
critical_unblock_low: {
|
|
39
|
-
patches: proto.ISyncdPatch[];
|
|
40
|
-
hasMorePatches: boolean;
|
|
41
|
-
snapshot?: proto.ISyncdSnapshot | undefined;
|
|
42
|
-
};
|
|
43
|
-
regular_high: {
|
|
44
|
-
patches: proto.ISyncdPatch[];
|
|
45
|
-
hasMorePatches: boolean;
|
|
46
|
-
snapshot?: proto.ISyncdSnapshot | undefined;
|
|
47
|
-
};
|
|
48
|
-
regular_low: {
|
|
49
|
-
patches: proto.ISyncdPatch[];
|
|
50
|
-
hasMorePatches: boolean;
|
|
51
|
-
snapshot?: proto.ISyncdSnapshot | undefined;
|
|
52
|
-
};
|
|
53
|
-
regular: {
|
|
54
|
-
patches: proto.ISyncdPatch[];
|
|
55
|
-
hasMorePatches: boolean;
|
|
56
|
-
snapshot?: proto.ISyncdSnapshot | undefined;
|
|
57
|
-
};
|
|
58
|
-
}>;
|
|
59
|
-
export declare const downloadExternalBlob: (blob: proto.IExternalBlobReference, options: AxiosRequestConfig<any>) => Promise<Buffer>;
|
|
60
|
-
export declare const downloadExternalPatch: (blob: proto.IExternalBlobReference, options: AxiosRequestConfig<any>) => Promise<proto.SyncdMutations>;
|
|
61
|
-
export declare const decodeSyncdSnapshot: (name: WAPatchName, snapshot: proto.ISyncdSnapshot, getAppStateSyncKey: FetchAppStateSyncKey, minimumVersionNumber: number | undefined, validateMacs?: boolean) => Promise<{
|
|
62
|
-
state: LTHashState;
|
|
63
|
-
mutationMap: ChatMutationMap;
|
|
64
|
-
}>;
|
|
65
|
-
export declare const decodePatches: (name: WAPatchName, syncds: proto.ISyncdPatch[], initial: LTHashState, getAppStateSyncKey: FetchAppStateSyncKey, options: AxiosRequestConfig<any>, minimumVersionNumber?: number, logger?: Logger, validateMacs?: boolean) => Promise<{
|
|
66
|
-
state: LTHashState;
|
|
67
|
-
mutationMap: ChatMutationMap;
|
|
68
|
-
}>;
|
|
69
|
-
export declare const chatModificationToAppPatch: (mod: ChatModification, jid: string) => WAPatchCreate;
|
|
70
|
-
export declare const processSyncAction: (syncAction: ChatMutation, ev: BaileysEventEmitter, me: Contact, initialSyncOpts?: InitialAppStateSyncOptions, logger?: Logger) => void;
|
|
71
|
-
export {};
|