mod-baileys 1.0.2 → 2.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.
- package/LICENSE +21 -0
- package/README.md +15 -61
- package/lib/Defaults/constants.js +74 -0
- package/lib/Defaults/index.d.ts +53 -0
- package/lib/Defaults/index.js +6 -6
- package/lib/Defaults/media.js +48 -0
- package/lib/Signal/Group/ciphertext-message.d.ts +9 -0
- package/lib/Signal/Group/group-session-builder.d.ts +14 -0
- package/lib/Signal/Group/group_cipher.d.ts +17 -0
- package/lib/Signal/Group/index.d.ts +11 -0
- package/lib/Signal/Group/keyhelper.d.ts +10 -0
- package/lib/Signal/Group/queue-job.d.ts +1 -0
- package/lib/Signal/Group/sender-chain-key.d.ts +13 -0
- package/lib/Signal/Group/sender-key-distribution-message.d.ts +16 -0
- package/lib/Signal/Group/sender-key-message.d.ts +18 -0
- package/lib/Signal/Group/sender-key-name.d.ts +17 -0
- package/lib/Signal/Group/sender-key-record.d.ts +30 -0
- package/lib/Signal/Group/sender-key-state.d.ts +38 -0
- package/lib/Signal/Group/sender-message-key.d.ts +11 -0
- package/lib/Signal/libsignal.d.ts +3 -0
- package/lib/Signal/libsignal.js +5 -5
- package/lib/Socket/Client/abstract-socket-client.d.ts +17 -0
- package/lib/Socket/Client/index.d.ts +3 -0
- package/lib/Socket/Client/index.js +3 -3
- package/lib/Socket/Client/mobile-socket-client.d.ts +13 -0
- package/lib/Socket/Client/mobile-socket-client.js +1 -1
- package/lib/Socket/Client/web-socket-client.d.ts +12 -0
- package/lib/Socket/Client/web-socket-client.js +2 -2
- package/lib/Socket/business.d.ts +171 -0
- package/lib/Socket/chats.d.ts +267 -0
- package/lib/Socket/groups.d.ts +115 -0
- package/lib/Socket/groups.js +6 -6
- package/lib/Socket/index.d.ts +173 -0
- package/lib/Socket/index.js +2 -2
- package/lib/Socket/luxu.d.ts +268 -0
- package/lib/Socket/{dew.js → luxu.js} +11 -11
- package/lib/Socket/messages-recv.d.ts +161 -0
- package/lib/Socket/messages-send.d.ts +149 -0
- package/lib/Socket/messages-send.js +10 -10
- package/lib/Socket/newsletter.d.ts +134 -0
- package/lib/Socket/newsletter.js +5 -8
- package/lib/Socket/registration.d.ts +267 -0
- package/lib/Socket/registration.js +4 -4
- package/lib/Socket/socket.d.ts +43 -0
- package/lib/Socket/socket.js +10 -9
- package/lib/Socket/usync.d.ts +36 -0
- package/lib/Store/index.d.ts +3 -0
- package/lib/Store/index.js +2 -2
- package/lib/Store/make-cache-manager-store.d.ts +13 -0
- package/lib/Store/make-cache-manager-store.js +3 -3
- package/lib/Store/make-in-memory-store.d.ts +118 -0
- package/lib/Store/make-in-memory-store.js +7 -7
- package/lib/Store/make-ordered-dictionary.d.ts +13 -0
- package/lib/Store/object-repository.d.ts +10 -0
- package/lib/Types/Auth.d.ts +110 -0
- package/lib/Types/Call.d.ts +13 -0
- package/lib/Types/Chat.d.ts +102 -0
- package/lib/Types/Contact.d.ts +19 -0
- package/lib/Types/Events.d.ts +157 -0
- package/lib/Types/GroupMetadata.d.ts +55 -0
- package/lib/Types/Label.d.ts +35 -0
- package/lib/Types/LabelAssociation.d.ts +29 -0
- package/lib/Types/Message.d.ts +273 -0
- package/lib/Types/Message.js +1 -1
- package/lib/Types/Newsletter.d.ts +103 -0
- package/lib/Types/Product.d.ts +78 -0
- package/lib/Types/Signal.d.ts +57 -0
- package/lib/Types/Socket.d.ts +111 -0
- package/lib/Types/State.d.ts +27 -0
- package/lib/Types/USync.d.ts +25 -0
- package/lib/Types/index.d.ts +57 -0
- package/lib/Types/index.js +12 -12
- package/lib/Utils/auth-utils.d.ts +18 -0
- package/lib/Utils/auth-utils.js +3 -3
- package/lib/Utils/baileys-event-stream.d.ts +16 -0
- package/lib/Utils/baileys-event-stream.js +2 -2
- package/lib/Utils/business.d.ts +22 -0
- package/lib/Utils/chat-utils.d.ts +71 -0
- package/lib/Utils/chat-utils.js +7 -7
- package/lib/Utils/crypto.d.ts +41 -0
- package/lib/Utils/crypto.js +1 -1
- package/lib/Utils/decode-wa-message.d.ts +19 -0
- package/lib/Utils/decode-wa-message.js +3 -3
- package/lib/Utils/event-buffer.d.ts +35 -0
- package/lib/Utils/event-buffer.js +4 -4
- package/lib/Utils/generics.d.ts +92 -0
- package/lib/Utils/generics.js +5 -5
- package/lib/Utils/history.d.ts +15 -0
- package/lib/Utils/history.js +6 -6
- package/lib/Utils/index.d.ts +17 -0
- package/lib/Utils/index.js +17 -17
- package/lib/Utils/link-preview.d.ts +21 -0
- package/lib/Utils/link-preview.js +2 -2
- package/lib/Utils/logger.d.ts +4 -0
- package/lib/Utils/lt-hash.d.ts +12 -0
- package/lib/Utils/lt-hash.js +1 -1
- package/lib/Utils/make-mutex.d.ts +7 -0
- package/lib/Utils/messages-media.d.ts +116 -0
- package/lib/Utils/messages-media.js +837 -548
- package/lib/Utils/messages.d.ts +77 -0
- package/lib/Utils/messages.js +1539 -497
- package/lib/Utils/noise-handler.d.ts +21 -0
- package/lib/Utils/noise-handler.js +4 -4
- package/lib/Utils/process-message.d.ts +41 -0
- package/lib/Utils/process-message.js +7 -7
- package/lib/Utils/signal.d.ts +32 -0
- package/lib/Utils/signal.js +4 -4
- package/lib/Utils/use-multi-file-auth-state.d.ts +13 -0
- package/lib/Utils/use-multi-file-auth-state.js +3 -3
- package/lib/Utils/validate-connection.d.ts +11 -0
- package/lib/Utils/validate-connection.js +6 -6
- package/lib/WABinary/constants.d.ts +30 -0
- package/lib/WABinary/decode.d.ts +7 -0
- package/lib/WABinary/decode.js +2 -2
- package/lib/WABinary/encode.d.ts +3 -0
- package/lib/WABinary/encode.js +2 -2
- package/lib/WABinary/generic-utils.d.ts +17 -0
- package/lib/WABinary/generic-utils.js +2 -2
- package/lib/WABinary/index.d.ts +5 -0
- package/lib/WABinary/index.js +5 -5
- package/lib/WABinary/jid-utils.d.ts +31 -0
- package/lib/WABinary/jid-utils.js +3 -0
- package/lib/WABinary/types.d.ts +18 -0
- package/lib/WAM/BinaryInfo.d.ts +17 -0
- package/lib/WAM/constants.d.ts +38 -0
- package/lib/WAM/encode.d.ts +3 -0
- package/lib/WAM/encode.js +1 -1
- package/lib/WAM/index.d.ts +3 -0
- package/lib/WAM/index.js +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/UsyncBotProfileProtocol.d.ts +3 -3
- package/lib/WAUSync/Protocols/UsyncLIDProtocol.d.ts +2 -2
- package/lib/WAUSync/Protocols/index.d.ts +4 -4
- package/lib/WAUSync/USyncQuery.d.ts +28 -0
- package/lib/WAUSync/USyncQuery.js +4 -4
- package/lib/WAUSync/USyncUser.d.ts +12 -0
- package/lib/WAUSync/index.js +3 -3
- package/lib/index.d.ts +12 -0
- package/lib/index.js +10 -18
- package/lib/temp +1 -0
- package/package.json +5 -5
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import makeWASocket from './Socket';
|
|
2
|
+
export * from '../WAProto';
|
|
3
|
+
export * from './Utils';
|
|
4
|
+
export * from './Types';
|
|
5
|
+
export * from './Store';
|
|
6
|
+
export * from './Defaults';
|
|
7
|
+
export * from './WABinary';
|
|
8
|
+
export * from './WAM';
|
|
9
|
+
export * from './WAUSync';
|
|
10
|
+
export type WASocket = ReturnType<typeof makeWASocket>;
|
|
11
|
+
export { makeWASocket };
|
|
12
|
+
export default makeWASocket;
|
package/lib/index.js
CHANGED
|
@@ -2,15 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const chalk = require("chalk");
|
|
4
4
|
|
|
5
|
-
console.log(chalk.
|
|
6
|
-
██████╗ ███████╗██╗ ██╗ ██████╗ ██████╗ ██████╗ ███████╗██████╗ ███████╗
|
|
7
|
-
██╔══██╗██╔════╝██║ ██║ ██╔════╝██╔═══██╗██╔══██╗██╔════╝██╔══██╗██╔════╝
|
|
8
|
-
██║ ██║█████╗ ██║ █╗ ██║ ██║ ██║ ██║██║ ██║█████╗ ██████╔╝███████╗
|
|
9
|
-
██║ ██║██╔══╝ ██║███╗██║ ██║ ██║ ██║██║ ██║██╔══╝ ██╔══██╗╚════██║
|
|
10
|
-
██████╔╝███████╗╚███╔███╔╝ ╚██████╗╚██████╔╝██████╔╝███████╗██║ ██║███████║
|
|
11
|
-
╚═════╝ ╚══════╝ ╚══╝╚══╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚══════╝╚═╝ ╚═╝╚══════╝`));
|
|
12
|
-
console.log(chalk.gray("------------------------------"));
|
|
13
|
-
console.log(chalk.whiteBright("\n• Modified Baileys by Dew Coders Team"));
|
|
5
|
+
console.log(chalk.whiteBright("\n• Modified Baileys by Dew Coders"));
|
|
14
6
|
console.log(chalk.cyan("• Author: ") + chalk.greenBright("@Hansa Dewmina"));
|
|
15
7
|
console.log(chalk.gray("------------------------------\n"));
|
|
16
8
|
|
|
@@ -33,15 +25,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
33
25
|
};
|
|
34
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
27
|
exports.makeWASocket = void 0;
|
|
36
|
-
const Socket_1 = __importDefault(require("
|
|
28
|
+
const Socket_1 = __importDefault(require("./Socket"));
|
|
37
29
|
exports.makeWASocket = Socket_1.default;
|
|
38
|
-
__exportStar(require("
|
|
39
|
-
__exportStar(require("
|
|
40
|
-
__exportStar(require("
|
|
41
|
-
__exportStar(require("
|
|
42
|
-
__exportStar(require("
|
|
43
|
-
__exportStar(require("
|
|
44
|
-
__exportStar(require("
|
|
45
|
-
__exportStar(require("
|
|
30
|
+
__exportStar(require("../WAProto"), exports);
|
|
31
|
+
__exportStar(require("./Utils"), exports);
|
|
32
|
+
__exportStar(require("./Types"), exports);
|
|
33
|
+
__exportStar(require("./Store"), exports);
|
|
34
|
+
__exportStar(require("./Defaults"), exports);
|
|
35
|
+
__exportStar(require("./WABinary"), exports);
|
|
36
|
+
__exportStar(require("./WAM"), exports);
|
|
37
|
+
__exportStar(require("./WAUSync"), exports);
|
|
46
38
|
|
|
47
39
|
exports.default = Socket_1.default;
|
package/lib/temp
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
DEW CODERS OFC
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mod-baileys",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "WhatsApp Modified By Dew Coders",
|
|
5
5
|
"keywords": [
|
|
6
|
-
"whatsapp-baileys"
|
|
6
|
+
"whatsapp-baileys","mod-baileys","Hansa Dewmina", "Dew Coders"
|
|
7
7
|
],
|
|
8
|
-
"homepage": "https://github.com/dew-coders/
|
|
8
|
+
"homepage": "https://github.com/dew-coders/Dew-Baileys",
|
|
9
9
|
"repository": {
|
|
10
|
-
"url": "https://github.com/dew-coders/
|
|
10
|
+
"url": "https://github.com/dew-coders/Dew-Baileys"
|
|
11
11
|
},
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"author": "Hansa Dewmina",
|
|
@@ -101,6 +101,6 @@
|
|
|
101
101
|
"node": ">=20.0.0"
|
|
102
102
|
},
|
|
103
103
|
"bugs": {
|
|
104
|
-
"url": "https://github.com/dew-coders/
|
|
104
|
+
"url": "https://github.com/dew-coders/Dew-Baileys/issues"
|
|
105
105
|
}
|
|
106
106
|
}
|