cuki-bailx 1.1.1 → 1.2.2
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/WAProto/index.js +79296 -118676
- package/engine-requirements.js +1 -1
- package/lib/Defaults/baileys-version.json +1 -1
- package/lib/Defaults/index.d.ts +6 -4
- package/lib/Defaults/index.js +102 -78
- package/lib/Defaults/phonenumber-mcc.json +223 -0
- package/lib/Socket/Client/{types.d.ts → abstract-socket-client.d.ts} +2 -1
- package/lib/Socket/Client/index.d.ts +3 -2
- package/lib/Socket/Client/index.js +3 -2
- package/lib/Socket/Client/mobile-socket-client.d.ts +13 -0
- package/lib/Socket/Client/mobile-socket-client.js +65 -0
- package/lib/Socket/Client/{websocket.d.ts → web-socket-client.d.ts} +1 -2
- package/lib/Socket/Client/{websocket.js → web-socket-client.js} +2 -12
- package/lib/Socket/business.d.ts +58 -59
- package/lib/Socket/chats.d.ts +27 -29
- package/lib/Socket/chats.js +90 -97
- package/lib/Socket/dugong.d.ts +219 -0
- package/lib/Socket/dugong.js +441 -0
- package/lib/Socket/groups.d.ts +32 -41
- package/lib/Socket/groups.js +5 -20
- package/lib/Socket/index.d.ts +64 -63
- package/lib/Socket/index.js +2 -2
- package/lib/Socket/messages-recv.js +65 -9
- package/lib/Socket/messages-send.d.ts +47 -49
- package/lib/Socket/messages-send.js +312 -379
- package/lib/Socket/newsletter.d.ts +37 -39
- package/lib/Socket/newsletter.js +40 -54
- package/lib/Socket/registration.d.ts +267 -0
- package/lib/Socket/registration.js +166 -0
- package/lib/Socket/socket.d.ts +10 -10
- package/lib/Socket/socket.js +628 -0
- package/lib/Socket/socket.js.bak +38 -43
- package/lib/Socket/usync.d.ts +3 -3
- package/lib/Store/index.d.ts +2 -1
- package/lib/Store/index.js +3 -1
- package/lib/Store/make-cache-manager-store.d.ts +13 -0
- package/lib/Store/make-cache-manager-store.js +83 -0
- package/lib/Store/make-in-memory-store.d.ts +24 -24
- package/lib/Store/make-in-memory-store.js +11 -13
- package/lib/Store/make-ordered-dictionary.d.ts +1 -1
- package/lib/Store/make-ordered-dictionary.js +2 -2
- package/lib/Types/Auth.d.ts +7 -0
- package/lib/Types/Call.d.ts +1 -1
- package/lib/Types/Chat.d.ts +7 -14
- package/lib/Types/Contact.d.ts +1 -5
- package/lib/Types/Events.d.ts +2 -44
- package/lib/Types/GroupMetadata.d.ts +2 -11
- package/lib/Types/Label.js +1 -1
- package/lib/Types/LabelAssociation.js +1 -1
- package/lib/Types/Message.d.ts +21 -148
- package/lib/Types/Message.js +2 -0
- package/lib/Types/Newsletter.d.ts +13 -0
- package/lib/Types/Newsletter.js +17 -3
- package/lib/Types/Socket.d.ts +9 -17
- package/lib/Types/index.d.ts +1 -8
- package/lib/Types/index.js +2 -2
- package/lib/Utils/auth-utils.d.ts +3 -3
- package/lib/Utils/auth-utils.js +13 -6
- package/lib/Utils/business.js +2 -2
- package/lib/Utils/chat-utils.d.ts +16 -15
- package/lib/Utils/chat-utils.js +35 -36
- package/lib/Utils/crypto.d.ts +16 -15
- package/lib/Utils/crypto.js +29 -71
- package/lib/Utils/decode-wa-message.d.ts +6 -22
- package/lib/Utils/decode-wa-message.js +56 -65
- package/lib/Utils/event-buffer.d.ts +2 -2
- package/lib/Utils/event-buffer.js +7 -11
- package/lib/Utils/generics.d.ts +20 -17
- package/lib/Utils/generics.js +23 -73
- package/lib/Utils/history.d.ts +0 -4
- package/lib/Utils/history.js +6 -4
- package/lib/Utils/link-preview.d.ts +2 -2
- package/lib/Utils/link-preview.js +1 -34
- package/lib/Utils/logger.d.ts +3 -10
- package/lib/Utils/lt-hash.d.ts +2 -2
- package/lib/Utils/lt-hash.js +6 -6
- package/lib/Utils/make-mutex.d.ts +2 -2
- package/lib/Utils/messages-media.d.ts +24 -28
- package/lib/Utils/messages-media.js +115 -263
- package/lib/Utils/messages.d.ts +10 -8
- package/lib/Utils/messages.js +72 -298
- package/lib/Utils/noise-handler.d.ts +12 -10
- package/lib/Utils/noise-handler.js +23 -18
- package/lib/Utils/process-message.d.ts +4 -5
- package/lib/Utils/process-message.js +23 -74
- package/lib/Utils/signal.d.ts +1 -2
- package/lib/Utils/signal.js +35 -37
- package/lib/Utils/use-multi-file-auth-state.d.ts +1 -0
- package/lib/Utils/use-multi-file-auth-state.js +6 -51
- package/lib/Utils/validate-connection.d.ts +4 -3
- package/lib/Utils/validate-connection.js +52 -20
- package/lib/WABinary/constants.d.ts +4 -4
- package/lib/WABinary/constants.js +13 -1276
- package/lib/WABinary/decode.d.ts +4 -3
- package/lib/WABinary/decode.js +13 -26
- package/lib/WABinary/encode.d.ts +2 -1
- package/lib/WABinary/encode.js +17 -39
- package/lib/WABinary/generic-utils.d.ts +3 -1
- package/lib/WABinary/generic-utils.js +85 -2
- package/lib/WABinary/jid-utils.d.ts +5 -10
- package/lib/WABinary/jid-utils.js +5 -26
- package/lib/WAM/BinaryInfo.d.ts +11 -2
- package/lib/WAM/encode.d.ts +2 -1
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +1 -1
- package/lib/index.d.ts +2 -6
- package/lib/index.js +7 -22
- package/lib/index.js.bak +37 -0
- package/package.json +103 -111
- package/LICENSE +0 -21
- package/WAProto/GenerateStatics.sh +0 -4
- package/WAProto/WAProto.proto +0 -4775
- package/WAProto/index.d.ts +0 -55057
- package/WAProto/index.ts.ts +0 -53473
- package/WAProto/p.html +0 -1
- package/lib/WABinary/jid-utils.js.bak +0 -83
- /package/lib/Socket/Client/{types.js → abstract-socket-client.js} +0 -0
package/package.json
CHANGED
|
@@ -1,117 +1,109 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
"homepage": "",
|
|
19
|
-
"repository": {
|
|
20
|
-
"url": ""
|
|
21
|
-
},
|
|
22
|
-
"license": "MIT",
|
|
23
|
-
"author": "cuki digital",
|
|
24
|
-
"main": "lib/index.js",
|
|
25
|
-
"types": "lib/index.d.ts",
|
|
26
|
-
"files": [
|
|
27
|
-
"lib/*",
|
|
28
|
-
"WAProto/*",
|
|
29
|
-
"engine-requirements.js"
|
|
30
|
-
],
|
|
31
|
-
"scripts": {
|
|
32
|
-
"build:all": "tsc && typedoc",
|
|
33
|
-
"build:docs": "typedoc",
|
|
34
|
-
"build:tsc": "tsc",
|
|
35
|
-
"changelog:last": "conventional-changelog -p angular -r 2",
|
|
36
|
-
"changelog:preview": "conventional-changelog -p angular -u",
|
|
37
|
-
"changelog:update": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
|
|
38
|
-
"example": "node --inspect -r ts-node/register Example/example.ts",
|
|
39
|
-
"gen:protobuf": "sh WAProto/GenerateStatics.sh",
|
|
40
|
-
"lint": "eslint src --ext .js,.ts,.jsx,.tsx",
|
|
41
|
-
"lint:fix": "eslint src --fix --ext .js,.ts,.jsx,.tsx",
|
|
42
|
-
"prepack": "echo 'Cuki'",
|
|
43
|
-
"prepare": "echo 'Baileys'",
|
|
44
|
-
"preinstall": "node ./engine-requirements.js",
|
|
45
|
-
"release": "release-it",
|
|
46
|
-
"test": "jest"
|
|
47
|
-
},
|
|
48
|
-
"dependencies": {
|
|
49
|
-
"@adiwajshing/keyed-db": "^0.2.4",
|
|
50
|
-
"@cacheable/node-cache": "^1.4.0",
|
|
51
|
-
"@hapi/boom": "^9.1.3",
|
|
52
|
-
"async-mutex": "^0.5.0",
|
|
53
|
-
"axios": "^1.6.0",
|
|
54
|
-
"chalk": "^4.1.2",
|
|
55
|
-
"gradient-string": "^2.0.2",
|
|
56
|
-
"cache-manager": "^5.7.6",
|
|
57
|
-
"cheerio": "^1.0.0-rc.10",
|
|
58
|
-
"libphonenumber-js": "^1.10.20",
|
|
59
|
-
"libsignal": "",
|
|
60
|
-
"lodash": "^4.17.21",
|
|
61
|
-
"music-metadata": "^7.12.3",
|
|
62
|
-
"pino": "^9.6",
|
|
63
|
-
"protobufjs": "^6.11.3",
|
|
64
|
-
"uuid": "^10.0.0",
|
|
65
|
-
"ws": "^8.13.0"
|
|
66
|
-
},
|
|
67
|
-
"devDependencies": {
|
|
68
|
-
"@adiwajshing/eslint-config": "github:adiwajshing/eslint-config",
|
|
69
|
-
"@types/got": "^9.6.11",
|
|
70
|
-
"@types/jest": "^27.5.1",
|
|
71
|
-
"@types/node": "^16.18.126",
|
|
72
|
-
"@types/sharp": "^0.29.4",
|
|
73
|
-
"@types/ws": "^8.0.0",
|
|
74
|
-
"conventional-changelog-cli": "^2.2.2",
|
|
75
|
-
"eslint": "^8.0.0",
|
|
76
|
-
"jest": "^27.0.6",
|
|
77
|
-
"jimp": "^0.16.1",
|
|
78
|
-
"json": "^11.0.0",
|
|
79
|
-
"link-preview-js": "^3.0.0",
|
|
80
|
-
"open": "^8.4.2",
|
|
81
|
-
"qrcode-terminal": "^0.12.0",
|
|
82
|
-
"release-it": "^15.10.3",
|
|
83
|
-
"sharp": "^0.34.1",
|
|
84
|
-
"ts-jest": "^27.0.3",
|
|
85
|
-
"ts-node": "^10.8.1",
|
|
86
|
-
"typedoc": "^0.27.9",
|
|
87
|
-
"typescript": "^5.8.2"
|
|
88
|
-
},
|
|
89
|
-
"peerDependencies": {
|
|
90
|
-
"audio-decode": "^2.1.3",
|
|
91
|
-
"jimp": "^0.16.1",
|
|
92
|
-
"link-preview-js": "^3.0.0",
|
|
93
|
-
"qrcode-terminal": "^0.12.0",
|
|
94
|
-
"sharp": "^0.34.1"
|
|
95
|
-
},
|
|
96
|
-
"peerDependenciesMeta": {
|
|
97
|
-
"audio-decode": {
|
|
98
|
-
"optional": true
|
|
2
|
+
"name": "cuki-bailx",
|
|
3
|
+
"version": "1.2.2",
|
|
4
|
+
"description": "Simple whatsapp baileys",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"whatsapp",
|
|
7
|
+
"laurine-wabot",
|
|
8
|
+
"baileys",
|
|
9
|
+
"whatsapp-web",
|
|
10
|
+
"whatsapp-chat",
|
|
11
|
+
"whatsapp-group",
|
|
12
|
+
"botwa",
|
|
13
|
+
"cuki"
|
|
14
|
+
],
|
|
15
|
+
"homepage": "—",
|
|
16
|
+
"repository": {
|
|
17
|
+
"url": "—"
|
|
99
18
|
},
|
|
100
|
-
"
|
|
101
|
-
|
|
19
|
+
"license": "MIT",
|
|
20
|
+
"author": "Adhiraj Singh",
|
|
21
|
+
"main": "lib/index.js",
|
|
22
|
+
"types": "lib/index.d.ts",
|
|
23
|
+
"files": [
|
|
24
|
+
"lib/*",
|
|
25
|
+
"WAProto/*.js",
|
|
26
|
+
"engine-requirements.js"
|
|
27
|
+
],
|
|
28
|
+
"scripts": {
|
|
29
|
+
"build:all": "tsc && typedoc",
|
|
30
|
+
"build:docs": "typedoc",
|
|
31
|
+
"build:tsc": "tsc",
|
|
32
|
+
"changelog:last": "conventional-changelog -p angular -r 2",
|
|
33
|
+
"changelog:preview": "conventional-changelog -p angular -u",
|
|
34
|
+
"changelog:update": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
|
|
35
|
+
"example": "node --inspect -r ts-node/register Example/example.ts",
|
|
36
|
+
"gen:protobuf": "sh WAProto/GenerateStatics.sh",
|
|
37
|
+
"lint": "eslint src --ext .js,.ts,.jsx,.tsx",
|
|
38
|
+
"lint:fix": "eslint src --fix --ext .js,.ts,.jsx,.tsx",
|
|
39
|
+
"prepack": "",
|
|
40
|
+
"prepare": "",
|
|
41
|
+
"preinstall": "node ./engine-requirements.js",
|
|
42
|
+
"release": "release-it",
|
|
43
|
+
"test": "jest"
|
|
102
44
|
},
|
|
103
|
-
"
|
|
104
|
-
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"@adiwajshing/keyed-db": "^0.2.4",
|
|
47
|
+
"@hapi/boom": "^9.1.3",
|
|
48
|
+
"@cacheable/node-cache": "^1.4.0",
|
|
49
|
+
"audio-decode": "^2.1.3",
|
|
50
|
+
"axios": "^1.3.3",
|
|
51
|
+
"cache-manager": "4.0.1",
|
|
52
|
+
"chalk": "^4.1.2",
|
|
53
|
+
"futoin-hkdf": "^1.5.1",
|
|
54
|
+
"libphonenumber-js": "^1.10.20",
|
|
55
|
+
"libsignal": "npm:@shennmine/libsignal-node",
|
|
56
|
+
"music-metadata": "^7.12.3",
|
|
57
|
+
"node-cache": "^5.1.2",
|
|
58
|
+
"pino": "^7.0.0",
|
|
59
|
+
"protobufjs": "^7.2.4",
|
|
60
|
+
"uuid": "^9.0.0",
|
|
61
|
+
"ws": "^8.13.0"
|
|
105
62
|
},
|
|
106
|
-
"
|
|
107
|
-
|
|
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"
|
|
108
84
|
},
|
|
109
|
-
"
|
|
110
|
-
|
|
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"
|
|
111
108
|
}
|
|
112
|
-
|
|
113
|
-
"packageManager": "yarn@1.22.19",
|
|
114
|
-
"engines": {
|
|
115
|
-
"node": ">=20.0.0"
|
|
116
|
-
}
|
|
117
|
-
}
|
|
109
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 yupra
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
yarn pbjs -t static-module -w commonjs -o ./WAProto/index.js ./WAProto/WAProto.proto;
|
|
2
|
-
yarn pbts -o ./WAProto/index.d.ts ./WAProto/index.js;
|
|
3
|
-
|
|
4
|
-
#protoc --plugin=./node_modules/.bin/protoc-gen-ts_proto --ts_proto_opt=env=node,useOptionals=true,forceLong=long --ts_proto_out=. ./src/Binary/WAMessage.proto;
|