@fanzxnothuman/baileys 2.0.17
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 +479 -0
- package/WAProto/index.js +204542 -0
- package/engine-requirements.js +10 -0
- package/lib/Defaults/baileys-version.json +3 -0
- package/lib/Defaults/index.js +158 -0
- package/lib/Defaults/phonenumber-mcc.json +223 -0
- package/lib/Function/Download/tiktok.js +19 -0
- package/lib/Function/Tools/bypass.js +19 -0
- package/lib/Function/index.js +13 -0
- package/lib/Signal/Group/ciphertext-message.js +15 -0
- package/lib/Signal/Group/group-session-builder.js +99 -0
- package/lib/Signal/Group/group_cipher.js +131 -0
- package/lib/Signal/Group/index.js +141 -0
- package/lib/Signal/Group/keyhelper.js +78 -0
- package/lib/Signal/Group/queue-job.js +54 -0
- package/lib/Signal/Group/sender-chain-key.js +39 -0
- package/lib/Signal/Group/sender-key-distribution-message.js +76 -0
- package/lib/Signal/Group/sender-key-message.js +86 -0
- package/lib/Signal/Group/sender-key-name.js +53 -0
- package/lib/Signal/Group/sender-key-record.js +71 -0
- package/lib/Signal/Group/sender-key-state.js +123 -0
- package/lib/Signal/Group/sender-message-key.js +33 -0
- package/lib/Signal/libsignal.js +223 -0
- package/lib/Socket/Client/abstract-socket-client.js +13 -0
- package/lib/Socket/Client/index.js +35 -0
- package/lib/Socket/Client/mobile-socket-client.js +96 -0
- package/lib/Socket/Client/web-socket-client.js +96 -0
- package/lib/Socket/business.js +289 -0
- package/lib/Socket/chats.js +1230 -0
- package/lib/Socket/dugong.js +689 -0
- package/lib/Socket/groups.js +401 -0
- package/lib/Socket/index.js +12 -0
- package/lib/Socket/messages-recv.js +1531 -0
- package/lib/Socket/messages-send.js +1011 -0
- package/lib/Socket/newsletter.js +526 -0
- package/lib/Socket/registration.js +212 -0
- package/lib/Socket/socket.js +842 -0
- package/lib/Socket/usync.js +67 -0
- package/lib/Store/index.js +16 -0
- package/lib/Store/make-cache-manager-store.js +90 -0
- package/lib/Store/make-in-memory-store.js +520 -0
- package/lib/Store/make-ordered-dictionary.js +78 -0
- package/lib/Store/object-repository.js +27 -0
- package/lib/Types/Auth.js +2 -0
- package/lib/Types/Call.js +2 -0
- package/lib/Types/Chat.js +10 -0
- package/lib/Types/Contact.js +2 -0
- package/lib/Types/Events.js +2 -0
- package/lib/Types/GroupMetadata.js +2 -0
- package/lib/Types/Label.js +27 -0
- package/lib/Types/LabelAssociation.js +12 -0
- package/lib/Types/Message.js +14 -0
- package/lib/Types/Newsletter.js +38 -0
- package/lib/Types/Product.js +2 -0
- package/lib/Types/Signal.js +2 -0
- package/lib/Types/Socket.js +2 -0
- package/lib/Types/State.js +2 -0
- package/lib/Types/USync.js +2 -0
- package/lib/Types/index.js +67 -0
- package/lib/Utils/auth-utils.js +223 -0
- package/lib/Utils/baileys-event-stream.js +67 -0
- package/lib/Utils/business.js +308 -0
- package/lib/Utils/chat-utils.js +1030 -0
- package/lib/Utils/crypto.js +210 -0
- package/lib/Utils/decode-wa-message.js +225 -0
- package/lib/Utils/event-buffer.js +559 -0
- package/lib/Utils/generics.js +599 -0
- package/lib/Utils/history.js +132 -0
- package/lib/Utils/index.js +49 -0
- package/lib/Utils/link-preview.js +112 -0
- package/lib/Utils/logger.js +11 -0
- package/lib/Utils/lt-hash.js +58 -0
- package/lib/Utils/make-mutex.js +41 -0
- package/lib/Utils/messages-media.js +978 -0
- package/lib/Utils/messages.js +1052 -0
- package/lib/Utils/noise-handler.js +185 -0
- package/lib/Utils/process-message.js +466 -0
- package/lib/Utils/signal.js +199 -0
- package/lib/Utils/use-multi-file-auth-state.js +129 -0
- package/lib/Utils/validate-connection.js +285 -0
- package/lib/WABinary/constants.js +1307 -0
- package/lib/WABinary/decode.js +287 -0
- package/lib/WABinary/encode.js +286 -0
- package/lib/WABinary/generic-utils.js +227 -0
- package/lib/WABinary/index.js +37 -0
- package/lib/WABinary/jid-utils.js +92 -0
- package/lib/WABinary/types.js +2 -0
- package/lib/WAM/BinaryInfo.js +13 -0
- package/lib/WAM/constants.js +15260 -0
- package/lib/WAM/encode.js +153 -0
- package/lib/WAM/index.js +35 -0
- package/lib/WAUSync/Protocols/USyncContactProtocol.js +37 -0
- package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +78 -0
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +35 -0
- package/lib/WAUSync/Protocols/USyncStatusProtocol.js +53 -0
- package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.js +76 -0
- package/lib/WAUSync/Protocols/UsyncLIDProtocol.js +24 -0
- package/lib/WAUSync/Protocols/index.js +36 -0
- package/lib/WAUSync/USyncQuery.js +105 -0
- package/lib/WAUSync/USyncUser.js +26 -0
- package/lib/WAUSync/index.js +35 -0
- package/lib/index.js +65 -0
- package/package.json +109 -0
package/lib/index.js
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const chalk = require("chalk");
|
|
4
|
+
|
|
5
|
+
console.log(
|
|
6
|
+
chalk.hex("#6F00FF")("Modified Baileys") +
|
|
7
|
+
" " +
|
|
8
|
+
chalk.hex("#A970FF")("By Fanzx\n")
|
|
9
|
+
);
|
|
10
|
+
|
|
11
|
+
console.log(
|
|
12
|
+
chalk.hex("#B388FF")("Contact") +
|
|
13
|
+
" " +
|
|
14
|
+
chalk.hex("#E0CCFF")("@fanzxnothuman\n")
|
|
15
|
+
);
|
|
16
|
+
|
|
17
|
+
var __createBinding =
|
|
18
|
+
(this && this.__createBinding) ||
|
|
19
|
+
(Object.create
|
|
20
|
+
? function (o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
23
|
+
if (
|
|
24
|
+
!desc ||
|
|
25
|
+
("get" in desc ? !m.__esModule : desc.writable || desc.configurable)
|
|
26
|
+
) {
|
|
27
|
+
desc = {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () {
|
|
30
|
+
return m[k];
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
Object.defineProperty(o, k2, desc);
|
|
35
|
+
}
|
|
36
|
+
: function (o, m, k, k2) {
|
|
37
|
+
if (k2 === undefined) k2 = k;
|
|
38
|
+
o[k2] = m[k];
|
|
39
|
+
});
|
|
40
|
+
var __exportStar =
|
|
41
|
+
(this && this.__exportStar) ||
|
|
42
|
+
function (m, exports) {
|
|
43
|
+
for (var p in m)
|
|
44
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p))
|
|
45
|
+
__createBinding(exports, m, p);
|
|
46
|
+
};
|
|
47
|
+
var __importDefault =
|
|
48
|
+
(this && this.__importDefault) ||
|
|
49
|
+
function (mod) {
|
|
50
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
51
|
+
};
|
|
52
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
|
+
exports.makeWASocket = void 0;
|
|
54
|
+
const Socket_1 = __importDefault(require("./Socket"));
|
|
55
|
+
exports.makeWASocket = Socket_1.default;
|
|
56
|
+
__exportStar(require("../WAProto"), exports);
|
|
57
|
+
__exportStar(require("./Utils"), exports);
|
|
58
|
+
__exportStar(require("./Types"), exports);
|
|
59
|
+
__exportStar(require("./Store"), exports);
|
|
60
|
+
__exportStar(require("./Defaults"), exports);
|
|
61
|
+
__exportStar(require("./WABinary"), exports);
|
|
62
|
+
__exportStar(require("./WAM"), exports);
|
|
63
|
+
__exportStar(require("./WAUSync"), exports);
|
|
64
|
+
|
|
65
|
+
exports.default = Socket_1.default;
|
package/package.json
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@fanzxnothuman/baileys",
|
|
3
|
+
"version": "2.0.17",
|
|
4
|
+
"description": "WhatsApp API Modification By Fanzx & KyuuRzy",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public"
|
|
7
|
+
},
|
|
8
|
+
"keywords": [
|
|
9
|
+
"whatsapp",
|
|
10
|
+
"baileys",
|
|
11
|
+
"whatsapp-web",
|
|
12
|
+
"whatsapp-chat",
|
|
13
|
+
"whatsapp-group",
|
|
14
|
+
"botwa",
|
|
15
|
+
"fanzxnothuman",
|
|
16
|
+
"fantzy"
|
|
17
|
+
],
|
|
18
|
+
"homepage": "https://github.com/whiskeysockets/baileys",
|
|
19
|
+
"profile": {
|
|
20
|
+
"baseurl": "https://fanzx-project.my.id"
|
|
21
|
+
},
|
|
22
|
+
"license": "MIT",
|
|
23
|
+
"author": "Adhiraj Singh",
|
|
24
|
+
"main": "lib/index.js",
|
|
25
|
+
"types": "lib/index.d.ts",
|
|
26
|
+
"files": ["lib/*", "WAProto/*.js", "engine-requirements.js"],
|
|
27
|
+
"scripts": {
|
|
28
|
+
"build:all": "tsc && typedoc",
|
|
29
|
+
"build:docs": "typedoc",
|
|
30
|
+
"build:tsc": "tsc",
|
|
31
|
+
"changelog:last": "conventional-changelog -p angular -r 2",
|
|
32
|
+
"changelog:preview": "conventional-changelog -p angular -u",
|
|
33
|
+
"gen:protobuf": "sh WAProto/GenerateStatics.sh",
|
|
34
|
+
"lint": "eslint src --ext .js,.ts,.jsx,.tsx",
|
|
35
|
+
"lint:fix": "eslint src --fix --ext .js,.ts,.jsx,.tsx",
|
|
36
|
+
"prepack": "",
|
|
37
|
+
"prepare": "",
|
|
38
|
+
"preinstall": "node ./engine-requirements.js",
|
|
39
|
+
"release": "release-it",
|
|
40
|
+
"test": "jest"
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"@adiwajshing/keyed-db": "^0.2.4",
|
|
44
|
+
"@hapi/boom": "^9.1.3",
|
|
45
|
+
"@cacheable/node-cache": "^1.4.0",
|
|
46
|
+
"async-mutex": "^0.5.0",
|
|
47
|
+
"audio-decode": "^2.1.3",
|
|
48
|
+
"axios": "^1.3.3",
|
|
49
|
+
"cache-manager": "4.0.1",
|
|
50
|
+
"chalk": "^4.1.2",
|
|
51
|
+
"futoin-hkdf": "^1.5.1",
|
|
52
|
+
"libphonenumber-js": "^1.10.20",
|
|
53
|
+
"lodash": "^4.17.21",
|
|
54
|
+
"libsignal": "npm:@kyuu2nd/libsignal-node",
|
|
55
|
+
"music-metadata": "^7.12.3",
|
|
56
|
+
"node-cache": "^5.1.2",
|
|
57
|
+
"node-fetch": "^2.6.1",
|
|
58
|
+
"pino": "^7.0.0",
|
|
59
|
+
"protobufjs": "^7.2.4",
|
|
60
|
+
"uuid": "^9.0.0",
|
|
61
|
+
"ws": "^8.13.0"
|
|
62
|
+
},
|
|
63
|
+
"devDependencies": {
|
|
64
|
+
"@adiwajshing/eslint-config": "github:adiwajshing/eslint-config",
|
|
65
|
+
"@types/got": "^9.6.11",
|
|
66
|
+
"@types/jest": "^27.5.1",
|
|
67
|
+
"@types/node": "^16.0.0",
|
|
68
|
+
"@types/sharp": "^0.29.4",
|
|
69
|
+
"@types/ws": "^8.0.0",
|
|
70
|
+
"conventional-changelog-cli": "^2.2.2",
|
|
71
|
+
"eslint": "^8.0.0",
|
|
72
|
+
"jest": "^27.0.6",
|
|
73
|
+
"jimp": "^0.16.1",
|
|
74
|
+
"link-preview-js": "^3.0.0",
|
|
75
|
+
"open": "^8.4.2",
|
|
76
|
+
"qrcode-terminal": "^0.12.0",
|
|
77
|
+
"release-it": "^15.10.3",
|
|
78
|
+
"sharp": "^0.30.5",
|
|
79
|
+
"ts-jest": "^27.0.3",
|
|
80
|
+
"ts-node": "^10.8.1",
|
|
81
|
+
"typedoc": "^0.24.7",
|
|
82
|
+
"typescript": "^4.6.4",
|
|
83
|
+
"json": "^11.0.0"
|
|
84
|
+
},
|
|
85
|
+
"peerDependencies": {
|
|
86
|
+
"jimp": "^0.16.1",
|
|
87
|
+
"link-preview-js": "^3.0.0",
|
|
88
|
+
"qrcode-terminal": "^0.12.0",
|
|
89
|
+
"sharp": "^0.32.2"
|
|
90
|
+
},
|
|
91
|
+
"peerDependenciesMeta": {
|
|
92
|
+
"jimp": {
|
|
93
|
+
"optional": true
|
|
94
|
+
},
|
|
95
|
+
"link-preview-js": {
|
|
96
|
+
"optional": true
|
|
97
|
+
},
|
|
98
|
+
"qrcode-terminal": {
|
|
99
|
+
"optional": true
|
|
100
|
+
},
|
|
101
|
+
"sharp": {
|
|
102
|
+
"optional": true
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"packageManager": "yarn@1.22.19",
|
|
106
|
+
"engines": {
|
|
107
|
+
"node": ">=20.0.0"
|
|
108
|
+
}
|
|
109
|
+
}
|