@sanzoffc/baileys 3.0.1 → 3.0.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/LICENSE +1 -1
- package/WAProto/WAProto.proto +769 -233
- package/WAProto/index.js +65801 -141371
- package/lib/Defaults/index.js +117 -114
- package/lib/Defaults/index.js.bak +123 -0
- package/lib/KeyDB/BinarySearch.js +20 -0
- package/lib/KeyDB/KeyedDB.js +167 -0
- package/lib/KeyDB/index.js +4 -0
- package/lib/Signal/Group/ciphertext-message.js +12 -14
- package/lib/Signal/Group/group-session-builder.js +10 -42
- package/lib/Signal/Group/group_cipher.js +75 -87
- package/lib/Signal/Group/index.js +13 -57
- package/lib/Signal/Group/keyhelper.js +17 -52
- package/lib/Signal/Group/sender-chain-key.js +27 -33
- package/lib/Signal/Group/sender-key-distribution-message.js +62 -63
- package/lib/Signal/Group/sender-key-message.js +65 -66
- package/lib/Signal/Group/sender-key-name.js +45 -44
- package/lib/Signal/Group/sender-key-record.js +39 -49
- package/lib/Signal/Group/sender-key-state.js +80 -93
- package/lib/Signal/Group/sender-message-key.js +27 -28
- package/lib/Signal/libsignal.js +313 -163
- package/lib/Signal/lid-mapping.js +155 -0
- package/lib/Socket/Client/index.js +4 -18
- package/lib/Socket/Client/types.js +12 -12
- package/lib/Socket/Client/websocket.js +51 -71
- package/lib/Socket/Client/websocket.js.bak +53 -0
- package/lib/Socket/business.js +359 -242
- package/lib/Socket/chats.js +858 -945
- package/lib/Socket/communities.js +413 -0
- package/lib/Socket/groups.js +304 -324
- package/lib/Socket/index.js +15 -9
- package/lib/Socket/messages-recv.js +1105 -1046
- package/lib/Socket/messages-send.js +615 -389
- package/lib/Socket/mex.js +45 -0
- package/lib/Socket/newsletter.js +224 -227
- package/lib/Socket/socket.js +795 -621
- package/lib/Store/index.js +6 -8
- package/lib/Store/make-cache-manager-store.js +75 -0
- package/lib/Store/make-in-memory-store.js +286 -435
- package/lib/Store/make-ordered-dictionary.js +77 -79
- package/lib/Store/object-repository.js +24 -26
- package/lib/Types/Auth.js +3 -2
- package/lib/Types/Bussines.js +3 -0
- package/lib/Types/Call.js +3 -2
- package/lib/Types/Chat.js +9 -4
- package/lib/Types/Contact.js +3 -2
- package/lib/Types/Events.js +3 -2
- package/lib/Types/GroupMetadata.js +3 -2
- package/lib/Types/Label.js +24 -26
- package/lib/Types/LabelAssociation.js +6 -8
- package/lib/Types/Message.js +12 -7
- package/lib/Types/Newsletter.js +32 -17
- package/lib/Types/Newsletter.js.bak +33 -0
- package/lib/Types/Product.js +3 -2
- package/lib/Types/Signal.js +3 -2
- package/lib/Types/Socket.js +4 -2
- package/lib/Types/State.js +11 -2
- package/lib/Types/USync.js +3 -2
- package/lib/Types/index.js +27 -41
- package/lib/Utils/auth-utils.js +211 -191
- package/lib/Utils/baileys-event-stream.js +44 -0
- package/lib/Utils/browser-utils.js +21 -31
- package/lib/Utils/business.js +213 -214
- package/lib/Utils/chat-utils.js +711 -689
- package/lib/Utils/crypto.js +112 -175
- package/lib/Utils/decode-wa-message.js +254 -194
- package/lib/Utils/event-buffer.js +510 -500
- package/lib/Utils/generics.js +318 -430
- package/lib/Utils/history.js +83 -90
- package/lib/Utils/index.js +21 -35
- package/lib/Utils/link-preview.js +71 -116
- package/lib/Utils/logger.js +5 -7
- package/lib/Utils/lt-hash.js +40 -46
- package/lib/Utils/make-mutex.js +34 -41
- package/lib/Utils/message-retry-manager.js +33 -48
- package/lib/Utils/messages-media.js +573 -825
- package/lib/Utils/messages.js +349 -489
- package/lib/Utils/noise-handler.js +138 -144
- package/lib/Utils/pre-key-manager.js +85 -0
- package/lib/Utils/process-message.js +321 -384
- package/lib/Utils/signal.js +147 -139
- package/lib/Utils/use-multi-file-auth-state.js +95 -109
- package/lib/Utils/validate-connection.js +183 -212
- package/lib/WABinary/constants.js +1298 -1298
- package/lib/WABinary/decode.js +231 -256
- package/lib/WABinary/encode.js +207 -239
- package/lib/WABinary/generic-utils.js +119 -40
- package/lib/WABinary/index.js +7 -21
- package/lib/WABinary/jid-utils.js +87 -79
- package/lib/WABinary/types.js +3 -2
- package/lib/WAM/BinaryInfo.js +10 -12
- package/lib/WAM/constants.js +22851 -15348
- package/lib/WAM/encode.js +135 -136
- package/lib/WAM/index.js +5 -19
- package/lib/WAUSync/Protocols/USyncContactProtocol.js +28 -30
- package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +49 -53
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +27 -28
- package/lib/WAUSync/Protocols/USyncStatusProtocol.js +36 -39
- package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.js +50 -50
- package/lib/WAUSync/Protocols/UsyncLIDProtocol.js +26 -20
- package/lib/WAUSync/Protocols/index.js +6 -20
- package/lib/WAUSync/USyncQuery.js +86 -85
- package/lib/WAUSync/USyncUser.js +23 -25
- package/lib/WAUSync/index.js +5 -19
- package/lib/index.js +18 -49
- package/package.json +65 -78
- package/README.MD +0 -1295
- package/WAProto/GenerateStatics.sh +0 -4
- package/WAProto/p.html +0 -1
- package/engine-requirements.js +0 -10
- package/lib/Defaults/wileys-version.json +0 -3
- package/lib/Signal/Group/queue-job.js +0 -57
- package/lib/Socket/usync.js +0 -70
- package/lib/Utils/wileys-event-stream.js +0 -63
package/package.json
CHANGED
|
@@ -1,116 +1,103 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanzoffc/baileys",
|
|
3
|
-
"version": "3.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "3.0.3",
|
|
4
|
+
"description": "Websocket Whatsapp API for Node.js",
|
|
5
5
|
"keywords": [
|
|
6
|
-
"wileys",
|
|
7
|
-
"baileys",
|
|
8
|
-
"baileys/wileys",
|
|
9
|
-
"wileys/baileys",
|
|
10
6
|
"whatsapp",
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
7
|
+
"websocket",
|
|
8
|
+
"api",
|
|
9
|
+
"nodejs",
|
|
10
|
+
"baileys",
|
|
11
|
+
"wabot",
|
|
12
|
+
"proto",
|
|
13
|
+
"whatsapp-websocket"
|
|
16
14
|
],
|
|
17
|
-
"homepage": "https://
|
|
15
|
+
"homepage": "https://github.com/Sanz-notdev/baileys-new",
|
|
18
16
|
"repository": {
|
|
19
|
-
"
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+ssh://git@github.com/Sanz-notdev/baileys-new.git"
|
|
20
19
|
},
|
|
21
20
|
"license": "MIT",
|
|
22
|
-
"author": "
|
|
23
|
-
"main": "lib/index.js",
|
|
24
|
-
"types": "lib/index.d.ts",
|
|
21
|
+
"author": "sanzxcode",
|
|
22
|
+
"main": "./lib/index.js",
|
|
25
23
|
"files": [
|
|
26
24
|
"lib/*",
|
|
27
|
-
"WAProto/*"
|
|
28
|
-
"engine-requirements.js"
|
|
25
|
+
"WAProto/*"
|
|
29
26
|
],
|
|
30
27
|
"scripts": {
|
|
31
|
-
"build:all": "tsc && typedoc",
|
|
32
|
-
"build:docs": "typedoc",
|
|
33
|
-
"build:tsc": "tsc",
|
|
34
|
-
"changelog:last": "conventional-changelog -p angular -r 2",
|
|
35
|
-
"changelog:preview": "conventional-changelog -p angular -u",
|
|
36
28
|
"changelog:update": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
|
|
37
|
-
"
|
|
29
|
+
"changelog:preview": "conventional-changelog -p angular -u",
|
|
30
|
+
"changelog:last": "conventional-changelog -p angular -r 2",
|
|
38
31
|
"gen:protobuf": "sh WAProto/GenerateStatics.sh",
|
|
39
|
-
"
|
|
40
|
-
"lint
|
|
41
|
-
"
|
|
42
|
-
"prepare": "echo 'Wileys WhatsApp Library'",
|
|
43
|
-
"preinstall": "node ./engine-requirements.js",
|
|
32
|
+
"example": "node --inspect Example/example.js",
|
|
33
|
+
"lint": "eslint src --ext .js",
|
|
34
|
+
"lint:fix": "yarn lint --fix",
|
|
44
35
|
"release": "release-it",
|
|
45
36
|
"test": "jest"
|
|
46
37
|
},
|
|
47
38
|
"dependencies": {
|
|
48
|
-
"@
|
|
49
|
-
"@cacheable/node-cache": "
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
39
|
+
"@whiskeysockets/eslint-config": "github:whiskeysockets/eslint-config",
|
|
40
|
+
"@cacheable/node-cache": "*",
|
|
41
|
+
"gradient-string": "2.0.2",
|
|
42
|
+
"@skycodee/libsignal": "npm:@sanzoffc/libsignal-node",
|
|
43
|
+
"moment-timezone": "*",
|
|
44
|
+
"music-metadata": "*",
|
|
45
|
+
"cache-manager": "*",
|
|
46
|
+
"async-mutex": "*",
|
|
47
|
+
"@hapi/boom": "*",
|
|
48
|
+
"pbjs": "^0.0.14",
|
|
49
|
+
"protobufjs": "*",
|
|
50
|
+
"lru-cache": "*",
|
|
51
|
+
"readline": "*",
|
|
52
|
+
"p-queue": "*",
|
|
53
|
+
"lodash": "*",
|
|
54
|
+
"figlet": "*",
|
|
55
|
+
"axios": "*",
|
|
56
|
+
"path": "*",
|
|
57
|
+
"pino": "*",
|
|
58
|
+
"ws": "*",
|
|
59
|
+
"fs": "*",
|
|
60
|
+
"os": "*"
|
|
65
61
|
},
|
|
66
62
|
"devDependencies": {
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"@types/
|
|
72
|
-
"@types/
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"json": "
|
|
78
|
-
"
|
|
79
|
-
"open": "^8.4.2",
|
|
80
|
-
"qrcode-terminal": "^0.12.0",
|
|
81
|
-
"release-it": "^15.10.3",
|
|
82
|
-
"sharp": "^0.34.1",
|
|
83
|
-
"ts-jest": "^27.0.3",
|
|
84
|
-
"ts-node": "^10.8.1",
|
|
85
|
-
"typedoc": "^0.27.9",
|
|
86
|
-
"typescript": "^5.8.2"
|
|
63
|
+
"conventional-changelog-cli": "*",
|
|
64
|
+
"link-preview-js": "*",
|
|
65
|
+
"protobufjs-cli": "*",
|
|
66
|
+
"cache-manager": "*",
|
|
67
|
+
"@types/jest": "*",
|
|
68
|
+
"@types/node": "*",
|
|
69
|
+
"release-it": "*",
|
|
70
|
+
"@types/ws": "*",
|
|
71
|
+
"eslint": "*",
|
|
72
|
+
"jest": "*",
|
|
73
|
+
"json": "*",
|
|
74
|
+
"open": "*"
|
|
87
75
|
},
|
|
88
76
|
"peerDependencies": {
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"qrcode-terminal": "^0.12.0",
|
|
93
|
-
"sharp": "^0.34.1"
|
|
77
|
+
"link-preview-js": "*",
|
|
78
|
+
"audio-decode": "*",
|
|
79
|
+
"jimp": ">=0.16.0"
|
|
94
80
|
},
|
|
95
81
|
"peerDependenciesMeta": {
|
|
96
82
|
"audio-decode": {
|
|
97
83
|
"optional": true
|
|
98
84
|
},
|
|
85
|
+
"chalk": { "optional": true },
|
|
99
86
|
"jimp": {
|
|
100
87
|
"optional": true
|
|
101
88
|
},
|
|
102
89
|
"link-preview-js": {
|
|
103
90
|
"optional": true
|
|
104
|
-
},
|
|
105
|
-
"qrcode-terminal": {
|
|
106
|
-
"optional": true
|
|
107
|
-
},
|
|
108
|
-
"sharp": {
|
|
109
|
-
"optional": true
|
|
110
91
|
}
|
|
111
92
|
},
|
|
112
93
|
"packageManager": "yarn@1.22.19",
|
|
113
94
|
"engines": {
|
|
114
95
|
"node": ">=20.0.0"
|
|
96
|
+
},
|
|
97
|
+
"directories": {
|
|
98
|
+
"lib": "lib"
|
|
99
|
+
},
|
|
100
|
+
"bugs": {
|
|
101
|
+
"url": "https://github.com/skycodee/Baileys/issues"
|
|
115
102
|
}
|
|
116
|
-
}
|
|
103
|
+
}
|