@x4r1s3/baileys 0.0.0-stage → 1.0.1
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 +1245 -2
- package/SECURITY.md +47 -0
- package/WAProto/V +1 -0
- package/WAProto/WAProto.proto +8892 -0
- package/WAProto/index.d.ts +104128 -0
- package/WAProto/index.js +334920 -0
- package/assets/rolling-circle.svg +133 -0
- package/assets/x4r1s3-banner.svg +32 -0
- package/engine-requirements.js +27 -0
- package/lib/Builders/A2UI.js +245 -0
- package/lib/Builders/AIRich.js +179 -0
- package/lib/Builders/Button.js +108 -0
- package/lib/Builders/CFC.js +284 -0
- package/lib/Builders/Carousel.js +81 -0
- package/lib/Call/THIRD_PARTY_LICENSE.txt +21 -0
- package/lib/Call/astralena-v3.mjs +96 -0
- package/lib/Call/audio-feeder.mjs +201 -0
- package/lib/Call/audio-recorder.mjs +250 -0
- package/lib/Call/fetch-wasm-resources.mjs +104 -0
- package/lib/Call/index.mjs +707 -0
- package/lib/Call/relay-transport.mjs +563 -0
- package/lib/Call/signaling.mjs +660 -0
- package/lib/Call/types.mjs +17 -0
- package/lib/Call/video-feeder.mjs +94 -0
- package/lib/Call/voip-resources.mjs +259 -0
- package/lib/Call/wasm-engine.mjs +1372 -0
- package/lib/Call/worker-bootstrap.mjs +1042 -0
- package/lib/Defaults/ban-checker.js +56 -0
- package/lib/Defaults/index.js +170 -0
- package/lib/Signal/Group/ciphertext-message.js +23 -0
- package/lib/Signal/Group/group-session-builder.js +41 -0
- package/lib/Signal/Group/group_cipher.js +93 -0
- package/lib/Signal/Group/index.js +23 -0
- package/lib/Signal/Group/keyhelper.js +29 -0
- package/lib/Signal/Group/sender-chain-key.js +37 -0
- package/lib/Signal/Group/sender-key-distribution-message.js +74 -0
- package/lib/Signal/Group/sender-key-message.js +77 -0
- package/lib/Signal/Group/sender-key-name.js +59 -0
- package/lib/Signal/Group/sender-key-record.js +52 -0
- package/lib/Signal/Group/sender-key-state.js +95 -0
- package/lib/Signal/Group/sender-message-key.js +37 -0
- package/lib/Signal/libsignal.js +440 -0
- package/lib/Signal/lid-mapping.js +292 -0
- package/lib/Socket/Client/index.js +14 -0
- package/lib/Socket/Client/types.js +22 -0
- package/lib/Socket/Client/websocket.js +65 -0
- package/lib/Socket/aigroups.js +327 -0
- package/lib/Socket/ban-checker.js +165 -0
- package/lib/Socket/business.js +419 -0
- package/lib/Socket/chats.js +1921 -0
- package/lib/Socket/communities.js +443 -0
- package/lib/Socket/graphql.js +911 -0
- package/lib/Socket/groups.js +561 -0
- package/lib/Socket/index.js +49 -0
- package/lib/Socket/interactive-handler.js +612 -0
- package/lib/Socket/interop.js +575 -0
- package/lib/Socket/managed-account.js +220 -0
- package/lib/Socket/messages-recv.js +2193 -0
- package/lib/Socket/messages-send.js +4141 -0
- package/lib/Socket/mex.js +53 -0
- package/lib/Socket/newsletter.js +291 -0
- package/lib/Socket/privacy.js +458 -0
- package/lib/Socket/registration.js +440 -0
- package/lib/Socket/socket.js +1042 -0
- package/lib/Socket/status-actions.js +287 -0
- package/lib/Socket/username.js +241 -0
- package/lib/Store/index.js +16 -0
- package/lib/Store/make-cache-manager-store.js +101 -0
- package/lib/Store/make-in-memory-store.js +432 -0
- package/lib/Store/make-ordered-dictionary.js +90 -0
- package/lib/Store/object-repository.js +35 -0
- package/lib/Types/Auth.js +13 -0
- package/lib/Types/Bussines.js +13 -0
- package/lib/Types/Call.js +13 -0
- package/lib/Types/Chat.js +19 -0
- package/lib/Types/Contact.js +13 -0
- package/lib/Types/Events.js +13 -0
- package/lib/Types/GroupMetadata.js +13 -0
- package/lib/Types/Label.js +36 -0
- package/lib/Types/LabelAssociation.js +18 -0
- package/lib/Types/Message.js +30 -0
- package/lib/Types/Mex.js +53 -0
- package/lib/Types/Product.js +13 -0
- package/lib/Types/RichType.js +34 -0
- package/lib/Types/Signal.js +13 -0
- package/lib/Types/Socket.js +14 -0
- package/lib/Types/State.js +60 -0
- package/lib/Types/USync.js +13 -0
- package/lib/Types/index.js +37 -0
- package/lib/Utils/auth-utils.js +313 -0
- package/lib/Utils/ban-checker.js +48 -0
- package/lib/Utils/bot-capabilities.js +96 -0
- package/lib/Utils/bot-planning-replay.js +177 -0
- package/lib/Utils/browser-utils.js +40 -0
- package/lib/Utils/business.js +242 -0
- package/lib/Utils/c2582.js +147 -0
- package/lib/Utils/chat-utils.js +905 -0
- package/lib/Utils/companion-reg-client-utils.js +104 -0
- package/lib/Utils/consumer-application.js +114 -0
- package/lib/Utils/crypto.js +129 -0
- package/lib/Utils/decode-wa-message.js +496 -0
- package/lib/Utils/direct-chat-theme.js +164 -0
- package/lib/Utils/event-buffer.js +601 -0
- package/lib/Utils/experimental-proto.js +206 -0
- package/lib/Utils/games/miniapp.js +17 -0
- package/lib/Utils/games/slot-machine.js +270 -0
- package/lib/Utils/games/website-preview.js +306 -0
- package/lib/Utils/generics.js +402 -0
- package/lib/Utils/group-history.js +68 -0
- package/lib/Utils/group-wallpaper.js +168 -0
- package/lib/Utils/history.js +162 -0
- package/lib/Utils/identity-change-handler.js +60 -0
- package/lib/Utils/index.js +61 -0
- package/lib/Utils/jid-display-normalization.js +221 -0
- package/lib/Utils/link-preview.js +96 -0
- package/lib/Utils/logger.js +14 -0
- package/lib/Utils/lt-hash.js +19 -0
- package/lib/Utils/make-mutex.js +44 -0
- package/lib/Utils/message-composer.js +709 -0
- package/lib/Utils/message-inspect.js +79 -0
- package/lib/Utils/message-retry-manager.js +253 -0
- package/lib/Utils/message-security.js +167 -0
- package/lib/Utils/messages-media.js +1027 -0
- package/lib/Utils/messages.js +2467 -0
- package/lib/Utils/meta-ai-msmsg.js +215 -0
- package/lib/Utils/meta-compositing.js +239 -0
- package/lib/Utils/native-flow.js +158 -0
- package/lib/Utils/newsletter-live-update-utils.js +74 -0
- package/lib/Utils/newsletter-status-utils.js +152 -0
- package/lib/Utils/noise-handler.js +212 -0
- package/lib/Utils/offline-node-processor.js +51 -0
- package/lib/Utils/poll-manager.js +206 -0
- package/lib/Utils/portable-compat.js +12 -0
- package/lib/Utils/pre-key-manager.js +117 -0
- package/lib/Utils/process-message.js +610 -0
- package/lib/Utils/reporting-utils.js +269 -0
- package/lib/Utils/rich-message-utils.js +2841 -0
- package/lib/Utils/scheduled-message.js +107 -0
- package/lib/Utils/signal.js +212 -0
- package/lib/Utils/source-grep.js +57 -0
- package/lib/Utils/stanza-ack.js +49 -0
- package/lib/Utils/sticker-annotation.js +87 -0
- package/lib/Utils/sync-action-utils.js +59 -0
- package/lib/Utils/tc-token-utils.js +174 -0
- package/lib/Utils/use-multi-file-auth-state.js +132 -0
- package/lib/Utils/use-single-file-auth-state.js +108 -0
- package/lib/Utils/use-sqlite-auth-state.js +120 -0
- package/lib/Utils/validate-connection.js +221 -0
- package/lib/Utils/view-once-utils.js +218 -0
- package/lib/Utils/voip-rekey.js +32 -0
- package/lib/Utils/website-preview.js +27 -0
- package/lib/Utils/welcome-flow.js +228 -0
- package/lib/Utils/x4r1s3.js +144 -0
- package/lib/WABinary/constants.js +1475 -0
- package/lib/WABinary/decode.js +273 -0
- package/lib/WABinary/encode.js +231 -0
- package/lib/WABinary/generic-utils.js +242 -0
- package/lib/WABinary/index.js +17 -0
- package/lib/WABinary/jid-utils.js +107 -0
- package/lib/WABinary/types.js +13 -0
- package/lib/WAM/BinaryInfo.js +21 -0
- package/lib/WAM/constants.js +22864 -0
- package/lib/WAM/encode.js +161 -0
- package/lib/WAM/index.js +15 -0
- package/lib/WAUSync/Protocols/USyncBusinessProtocol.js +108 -0
- package/lib/WAUSync/Protocols/USyncContactProtocol.js +68 -0
- package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +65 -0
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +38 -0
- package/lib/WAUSync/Protocols/USyncFeatureProtocol.js +82 -0
- package/lib/WAUSync/Protocols/USyncPictureProtocol.js +40 -0
- package/lib/WAUSync/Protocols/USyncSidelistProtocol.js +37 -0
- package/lib/WAUSync/Protocols/USyncStatusProtocol.js +49 -0
- package/lib/WAUSync/Protocols/USyncTextStatusProtocol.js +46 -0
- package/lib/WAUSync/Protocols/USyncUsernameProtocol.js +36 -0
- package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.js +62 -0
- package/lib/WAUSync/Protocols/UsyncLIDProtocol.js +40 -0
- package/lib/WAUSync/Protocols/index.js +24 -0
- package/lib/WAUSync/USyncQuery.js +213 -0
- package/lib/WAUSync/USyncUser.js +66 -0
- package/lib/WAUSync/index.js +15 -0
- package/lib/antiban.cjs +4726 -0
- package/lib/index.d.ts +1895 -0
- package/lib/index.js +41 -0
- package/package.json +125 -4
package/lib/index.js
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @X4R1S3
|
|
3
|
+
*
|
|
4
|
+
* File: lib/index.js
|
|
5
|
+
* About: Lib module for the X4R1S3 WhatsApp protocol client.
|
|
6
|
+
* Important exports: makeWASocket, checkStatusWA
|
|
7
|
+
* Directions: Import the listed exports and preserve protocol, validation, and compatibility invariants when modifying.
|
|
8
|
+
*
|
|
9
|
+
* Copyright and attribution notice.
|
|
10
|
+
* Do not copy, reproduce, redistribute, modify, or create derivative works
|
|
11
|
+
* from this source without explicit written permission.
|
|
12
|
+
*/
|
|
13
|
+
import makeWASocket, { checkStatusWA } from './Socket/index.js';
|
|
14
|
+
export * from '../WAProto/index.js';
|
|
15
|
+
export * from './Utils/index.js';
|
|
16
|
+
export * from './Types/index.js';
|
|
17
|
+
export * from './Defaults/index.js';
|
|
18
|
+
export * from './Store/index.js';
|
|
19
|
+
export * from './WABinary/index.js';
|
|
20
|
+
export * from './WAM/index.js';
|
|
21
|
+
export * from './WAUSync/index.js';
|
|
22
|
+
export { Button } from './Builders/Button.js';
|
|
23
|
+
export { Carousel } from './Builders/Carousel.js';
|
|
24
|
+
export { AIRich } from './Builders/AIRich.js';
|
|
25
|
+
export { A2UI, sendA2UIWidget } from './Builders/A2UI.js';
|
|
26
|
+
export { CFC, CFCBuilder } from './Builders/CFC.js';
|
|
27
|
+
export { ActiveCall, CallState, VoipClient } from './Call/index.mjs';
|
|
28
|
+
export { buildRecentConversationsOnDemandRequest } from './Socket/messages-recv.js';
|
|
29
|
+
export { AstralenaV3VoipClient, createAstralenaV3VoipClient, astralenaV3Boolean } from './Call/astralena-v3.mjs';
|
|
30
|
+
export {
|
|
31
|
+
VOIP_RESOURCE_FILES,
|
|
32
|
+
VoipResourceError,
|
|
33
|
+
ensureVoipResources,
|
|
34
|
+
fetchVoipResourcesFromBrowser,
|
|
35
|
+
fetchVoipResourcesFromUrls,
|
|
36
|
+
inspectSessionVoipResources,
|
|
37
|
+
inspectVoipResources,
|
|
38
|
+
loadVoipResourcesFromPackage,
|
|
39
|
+
} from './Call/voip-resources.mjs';
|
|
40
|
+
export { makeWASocket, checkStatusWA };
|
|
41
|
+
export default makeWASocket;
|
package/package.json
CHANGED
|
@@ -1,6 +1,127 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@x4r1s3/baileys",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "X4R1S3 INNOVATIONS premium Baileys distribution by X4R1S3 and for X4R1S3 INNOVATIONS, X4R1S3, X4R1S3 INNOVATIONS, and X4R1S3, with rich messages, security utilities, and tested protocol extensions.",
|
|
5
|
+
"main": "lib/index.js",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"preinstall": "node ./engine-requirements.js",
|
|
9
|
+
"test": "node --test"
|
|
10
|
+
},
|
|
11
|
+
"engines": {
|
|
12
|
+
"node": ">=20.0.0"
|
|
13
|
+
},
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "https://github.com/X4R1S3/baileys.git"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"lib/**/*",
|
|
20
|
+
"WAProto/**/*",
|
|
21
|
+
"assets/**/*",
|
|
22
|
+
"SECURITY.md",
|
|
23
|
+
"engine-requirements.js"
|
|
24
|
+
],
|
|
25
|
+
"keywords": [
|
|
26
|
+
"automation",
|
|
27
|
+
"baileys",
|
|
28
|
+
"baileys-fork",
|
|
29
|
+
"baileys-mod",
|
|
30
|
+
"X4R1S3 INNOVATIONS",
|
|
31
|
+
"X4R1S3",
|
|
32
|
+
"bot-planning-replay",
|
|
33
|
+
"X4R1S3",
|
|
34
|
+
"interactive-messages",
|
|
35
|
+
"js-whatsapp",
|
|
36
|
+
"meta-compositing",
|
|
37
|
+
"multi-device",
|
|
38
|
+
"rich-messages",
|
|
39
|
+
"welcome-flow",
|
|
40
|
+
"whatsapp",
|
|
41
|
+
"whatsapp-api",
|
|
42
|
+
"whatsapp-bot",
|
|
43
|
+
"whatsapp-chat",
|
|
44
|
+
"whatsapp-group",
|
|
45
|
+
"whatsapp-web"
|
|
46
|
+
],
|
|
47
|
+
"homepage": "https://github.com/X4R1S3/baileys",
|
|
48
|
+
"author": "X4R1S3 INNOVATIONS",
|
|
49
|
+
"license": "MIT",
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"@adiwajshing/keyed-db": "^0.2.4",
|
|
52
|
+
"@cacheable/node-cache": "^1.4.0",
|
|
53
|
+
"@hapi/boom": "^9.1.3",
|
|
54
|
+
"async-mutex": "^0.5.0",
|
|
55
|
+
"cache-manager": "^7.2.8",
|
|
56
|
+
"fflate": "^0.8.2",
|
|
57
|
+
"libsignal": "^6.0.0",
|
|
58
|
+
"long": "^5.2.3",
|
|
59
|
+
"lru-cache": "^11.2.6",
|
|
60
|
+
"music-metadata": "^11.12.3",
|
|
61
|
+
"p-queue": "^9.1.0",
|
|
62
|
+
"pino": "^9.6.0",
|
|
63
|
+
"protobufjs": "^7.5.6",
|
|
64
|
+
"whatsapp-rust-bridge": "0.5.5",
|
|
65
|
+
"ws": "^8.19.0"
|
|
66
|
+
},
|
|
67
|
+
"peerDependencies": {
|
|
68
|
+
"@napi-rs/image": "~1.12.0",
|
|
69
|
+
"audio-decode": "^2.2.3",
|
|
70
|
+
"better-sqlite3": "^11.0.0",
|
|
71
|
+
"jimp": "^1.6.1",
|
|
72
|
+
"link-preview-js": "^3.0.0",
|
|
73
|
+
"sharp": "*",
|
|
74
|
+
"@roamhq/wrtc": "^0.10.0"
|
|
75
|
+
},
|
|
76
|
+
"peerDependenciesMeta": {
|
|
77
|
+
"@napi-rs/image": {
|
|
78
|
+
"optional": true
|
|
79
|
+
},
|
|
80
|
+
"audio-decode": {
|
|
81
|
+
"optional": true
|
|
82
|
+
},
|
|
83
|
+
"better-sqlite3": {
|
|
84
|
+
"optional": true
|
|
85
|
+
},
|
|
86
|
+
"jimp": {
|
|
87
|
+
"optional": true
|
|
88
|
+
},
|
|
89
|
+
"link-preview-js": {
|
|
90
|
+
"optional": true
|
|
91
|
+
},
|
|
92
|
+
"@roamhq/wrtc": {
|
|
93
|
+
"optional": true
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"packageManager": "yarn@4.9.2",
|
|
97
|
+
"types": "lib/index.d.ts",
|
|
98
|
+
"resolutions": {
|
|
99
|
+
"ajv@npm:^6.12.4": "^6.14.0",
|
|
100
|
+
"basic-ftp": "^5.2.4",
|
|
101
|
+
"brace-expansion@npm:^1.1.7": "^1.1.13",
|
|
102
|
+
"brace-expansion@npm:^2.0.1": "^2.0.3",
|
|
103
|
+
"flatted": "^3.4.2",
|
|
104
|
+
"glob@npm:^10.2.2": "^10.5.0",
|
|
105
|
+
"glob@npm:^10.3.10": "^10.5.0",
|
|
106
|
+
"glob@npm:^10.5.0": "^10.5.0",
|
|
107
|
+
"handlebars": "^4.7.9",
|
|
108
|
+
"ip-address": "^10.1.1",
|
|
109
|
+
"js-yaml@npm:^3.13.1": "^3.14.2",
|
|
110
|
+
"js-yaml@npm:^4.1.0": "^4.1.1",
|
|
111
|
+
"markdown-it": "^14.1.1",
|
|
112
|
+
"minimatch@npm:^3.0.4": "^3.1.5",
|
|
113
|
+
"minimatch@npm:^3.1.2": "^3.1.5",
|
|
114
|
+
"minimatch@npm:^5.0.1": "^5.1.8",
|
|
115
|
+
"minimatch@npm:^9.0.4": "^9.0.9",
|
|
116
|
+
"minimatch@npm:^9.0.5": "^9.0.9",
|
|
117
|
+
"picomatch@npm:^2.0.4": "^2.3.2",
|
|
118
|
+
"picomatch@npm:^2.3.1": "^2.3.2",
|
|
119
|
+
"picomatch@npm:^4.0.0": "^4.0.4",
|
|
120
|
+
"picomatch@npm:^4.0.2": "^4.0.4",
|
|
121
|
+
"socks": "^2.8.8",
|
|
122
|
+
"tar": "^7.5.11",
|
|
123
|
+
"tmp": "^0.2.5",
|
|
124
|
+
"underscore": "^1.13.8",
|
|
125
|
+
"yaml@npm:^2.6.1": "^2.8.4"
|
|
126
|
+
}
|
|
127
|
+
}
|